:root {
  --ls-navy: #071525;
  --ls-navy-2: #0c2238;
  --ls-navy-3: #12324f;
  --ls-teal: #1bb6a1;
  --ls-teal-dark: #128f7e;
  --ls-amber: #e0a24b;
  --ls-rose: #d4656a;
  --ls-bg: #eef3f8;
  --ls-card: #ffffff;
  --ls-line: #d7e0ea;
  --ls-text: #152536;
  --ls-muted: #5d7186;
  --ls-sidebar-w: 260px;
  --ls-top-h: 60px;
  --ls-radius: 14px;
  --ls-shadow: 0 10px 30px rgba(7, 21, 37, .06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body.ls-app {
  margin: 0;
  font-family: "Segoe UI", "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ls-text);
  background:
    radial-gradient(900px 280px at 100% 0%, rgba(27,182,161,.08), transparent 55%),
    var(--ls-bg);
  font-size: 14px;
}

.ls-shell { display: flex; min-height: 100vh; }

.ls-sidebar {
  width: var(--ls-sidebar-w);
  background: linear-gradient(180deg, #08192b 0%, #06101c 100%);
  color: #c9d6e4;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #0a2a44;
}
.ls-brand {
  height: var(--ls-top-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.ls-brand:hover { color: #fff; }
.ls-brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(180deg, #2ad4bc, var(--ls-teal-dark));
  display: grid; place-items: center;
  color: #04241f; font-size: 16px;
  box-shadow: 0 6px 16px rgba(27,182,161,.35);
}
.ls-brand small {
  display: block; font-weight: 500; font-size: 10px;
  letter-spacing: .12em; color: #7f97ad; text-transform: uppercase;
}

.ls-nav {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 8px 28px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(27,182,161,.55) transparent;
}
.ls-nav::-webkit-scrollbar { width: 4px; }
.ls-nav::-webkit-scrollbar-track { background: transparent; }
.ls-nav::-webkit-scrollbar-thumb {
  background: rgba(27,182,161,.45);
  border-radius: 99px;
}
.ls-nav::-webkit-scrollbar-thumb:hover { background: rgba(27,182,161,.75); }

.ls-nav-label {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #6c849a; padding: 16px 12px 6px;
}
.ls-nav a, .ls-nav button.ls-nav-toggle {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  color: #c5d3e2; text-decoration: none;
  padding: 8px 12px; border-radius: 9px;
  background: none; border: 0; cursor: pointer;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.ls-nav a:hover, .ls-nav button.ls-nav-toggle:hover { background: rgba(27,182,161,.12); color: #fff; }
.ls-nav a.active {
  background: var(--ls-teal);
  color: #04241f;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(27,182,161,.22);
}
.ls-nav i { width: 18px; text-align: center; font-size: 15px; }
.ls-sub { padding-left: 28px; display: none; }
.ls-sub.open { display: block; }
.ls-sub a { padding: 6px 12px; font-size: 13px; }

.ls-main { margin-left: var(--ls-sidebar-w); flex: 1; min-width: 0; }

.ls-top {
  height: var(--ls-top-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ls-line);
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px;
  position: sticky; top: 0; z-index: 1030;
}
.ls-top .breadcrumb a { color: var(--ls-muted); text-decoration: none; }
.ls-top .breadcrumb a:hover { color: var(--ls-teal-dark); }
.ls-search { flex: 1; max-width: 520px; position: relative; }
.ls-search input {
  width: 100%; border: 1px solid var(--ls-line); border-radius: 999px;
  padding: 8px 14px 8px 36px; background: #f5f8fb;
  outline: none;
}
.ls-search input:focus {
  border-color: #9ad9d0;
  box-shadow: 0 0 0 3px rgba(27,182,161,.15);
  background: #fff;
}
.ls-search i { position: absolute; left: 12px; top: 9px; color: var(--ls-muted); }

.ls-top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ls-bell {
  position: relative; color: var(--ls-navy);
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: #f4f7fa; text-decoration: none;
}
.ls-bell:hover { background: #e8f6f3; color: var(--ls-teal-dark); }
.ls-bell .dot {
  position: absolute; top: 4px; right: 4px;
  background: var(--ls-rose); color: #fff; border-radius: 999px;
  font-size: 10px; min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center;
}

.ls-user {
  display: flex; align-items: center; gap: 10px;
  background: #f4f7fa; border: 1px solid transparent;
  border-radius: 999px; padding: 4px 10px 4px 4px;
  color: var(--ls-text);
}
.ls-user:hover, .ls-user:focus, .ls-user.show {
  background: #fff; border-color: var(--ls-line);
  color: var(--ls-text);
}
.ls-user::after { margin-left: 2px; }
.ls-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(180deg, var(--ls-navy-3), var(--ls-navy));
  color: #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.ls-user-meta { text-align: left; line-height: 1.15; }
.ls-user-meta strong { display: block; font-size: 13px; }
.ls-user-meta small { display: block; color: var(--ls-muted); font-size: 11px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-top .dropdown-menu {
  border: 1px solid var(--ls-line);
  border-radius: 12px;
  box-shadow: var(--ls-shadow);
  padding: 8px;
  min-width: 220px;
}
.ls-top .dropdown-item { border-radius: 8px; }
.ls-top .dropdown-item-text { padding: 6px 12px; }

.ls-content { padding: 24px 26px 56px; }
.ls-page-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.ls-page-title h1 { font-size: 24px; margin: 0; font-weight: 750; letter-spacing: -.02em; }
.ls-page-title p { margin: 6px 0 0; color: var(--ls-muted); }

.ls-card {
  background: var(--ls-card);
  border: 1px solid var(--ls-line);
  border-radius: var(--ls-radius);
  box-shadow: var(--ls-shadow);
  overflow: hidden;
}
.ls-card-h {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ls-line);
  font-weight: 650;
  background: linear-gradient(180deg, #fff, #f8fbfd);
}
.ls-card-b { padding: 16px 18px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.kpi {
  background: var(--ls-card);
  border: 1px solid var(--ls-line);
  border-radius: var(--ls-radius);
  padding: 16px 18px 16px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--ls-shadow);
  min-height: 108px;
}
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ls-teal); }
.kpi.amber::before { background: var(--ls-amber); }
.kpi.rose::before { background: var(--ls-rose); }
.kpi.navy::before { background: var(--ls-navy-3); }
.kpi .label { color: var(--ls-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.kpi .value { font-size: 24px; font-weight: 750; margin-top: 8px; letter-spacing: -.03em; }
.kpi .hint { color: var(--ls-muted); font-size: 12px; margin-top: 6px; }

.ls-table-wrap { overflow: auto; max-height: calc(100vh - 280px); scrollbar-width: thin; scrollbar-color: #b7c6d4 transparent; }
.ls-table-wrap::-webkit-scrollbar { height: 6px; width: 6px; }
.ls-table-wrap::-webkit-scrollbar-thumb { background: #c3d0dc; border-radius: 99px; }
.ls-table { width: 100%; margin: 0; font-size: 13px; }
.ls-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: #f4f7fa; color: var(--ls-muted);
  font-weight: 650; text-transform: uppercase; font-size: 11px; letter-spacing: .06em;
  border-bottom: 1px solid var(--ls-line); white-space: nowrap;
}
.ls-table td, .ls-table th { padding: 9px 12px; border-bottom: 1px solid #edf1f5; vertical-align: middle; }
.ls-table tbody tr:hover { background: #f7fbfa; }
.ls-compact td, .ls-compact th { padding: 5px 8px; }
.ls-table a { color: var(--ls-navy-3); text-decoration: none; font-weight: 600; }
.ls-table a:hover { color: var(--ls-teal-dark); }

.badge-draft { background: #e8eef4; color: #4a6074; }
.badge-posted, .badge-success { background: #d8f3ee; color: #0b6b5d; }
.badge-cancelled, .badge-danger { background: #f8d9db; color: #8a2e34; }
.badge-warning { background: #fce8c9; color: #8a5a12; }
.badge-quarantine { background: #e4d9f7; color: #5b3d91; }
.badge-info { background: #d7e8fb; color: #1d4f86; }
.badge { font-weight: 650; }

.ls-tabs { border-bottom: 1px solid var(--ls-line); display: flex; gap: 4px; padding: 0 8px; overflow-x: auto; scrollbar-width: thin; }
.ls-tabs a { padding: 12px 14px; color: var(--ls-muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.ls-tabs a.active { color: var(--ls-teal-dark); border-bottom-color: var(--ls-teal); font-weight: 650; }

.btn-teal { background: var(--ls-teal); border-color: var(--ls-teal); color: #04241f; font-weight: 650; }
.btn-teal:hover { background: var(--ls-teal-dark); color: #fff; border-color: var(--ls-teal-dark); }
.btn-navy { background: var(--ls-navy-2); border-color: var(--ls-navy-2); color: #fff; }

.ls-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ls-filters .form-control, .ls-filters .form-select { min-width: 160px; }

.alert { border: 0; border-radius: 12px; }
.alert-warning { background: #fff6e8; color: #7a5410; }
.alert-success { background: #e7f7f3; color: #0b6b5d; }
.alert-danger { background: #fdecee; color: #8a2e34; }

.breadcrumb { background: none; padding: 0; margin: 0; font-size: 12px; }

.auth-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  background:
    radial-gradient(900px 420px at 12% 10%, #16344f, transparent 50%),
    radial-gradient(700px 380px at 90% 90%, #0d3d38, transparent 45%),
    #071525;
}
.auth-card {
  width: 420px; background: #fff; border-radius: 20px; padding: 36px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.auth-card h1 { font-size: 22px; }
.auth-card .brand { color: var(--ls-teal-dark); font-weight: 800; letter-spacing: .08em; }

.form-control, .form-select {
  border-color: var(--ls-line);
  border-radius: 10px;
}
.form-control:focus, .form-select:focus {
  border-color: #9ad9d0;
  box-shadow: 0 0 0 3px rgba(27,182,161,.16);
}

@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
  .ls-sidebar { transform: translateX(-100%); transition: .2s; }
  .ls-sidebar.open { transform: none; }
  .ls-main { margin-left: 0; }
  .ls-user-meta { display: none; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .ls-content { padding: 16px; }
  .ls-page-title h1 { font-size: 20px; }
}
