:root {
  --bg: #f5f5f7;
  --bg-2: #eef2f7;
  --panel: rgba(255, 255, 255, .78);
  --panel-strong: rgba(255, 255, 255, .96);
  --text: #111827;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: rgba(17, 24, 39, .09);
  --brand: #0a84ff;
  --brand-2: #0066d6;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #f59e0b;
  --shadow: 0 20px 60px rgba(15, 23, 42, .10);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, .075);
  --radius: 26px;
  --radius-sm: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(10,132,255,.14), transparent 34%),
    radial-gradient(circle at 88% 6%, rgba(52,199,89,.10), transparent 30%),
    linear-gradient(180deg, #fff 0%, var(--bg) 48%, var(--bg-2) 100%);
  overflow-x: hidden;
}
body.drawer-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }
.app-shell { min-height: 100vh; }
.boot-card, .login-card, .blocked-card {
  width: min(470px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
}
.boot-card h1, .login-card h1, .blocked-card h1 { margin: 18px 0 8px; letter-spacing: -.055em; font-size: clamp(34px, 7vw, 54px); line-height: .95; }
.boot-card p, .login-card p, .blocked-card p { margin: 0 auto 20px; color: var(--muted); line-height: 1.7; max-width: 420px; }
.boot-logo, .brand-logo {
  display: block;
  object-fit: cover;
  background: #111827;
  box-shadow: 0 20px 45px rgba(17,24,39,.18);
}
.boot-logo { width: 74px; height: 74px; border-radius: 24px; margin: 0 auto; }
.brand-logo { width: 42px; height: 42px; border-radius: 14px; flex: 0 0 auto; }
.brand-orb {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-weight: 900;
  font-size: 28px;
  box-shadow: 0 20px 45px rgba(17,24,39,.20);
}
.loader {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  margin: 12px auto 0;
  border: 3px solid rgba(17, 24, 39, .10);
  border-top-color: rgba(17, 24, 39, .70);
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 15px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 750;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(15,23,42,.18); box-shadow: var(--shadow-soft); }
.btn.primary { background: linear-gradient(180deg, #1f8fff, var(--brand)); color: #fff; border-color: var(--brand); box-shadow: 0 12px 26px rgba(10,132,255,.22); }
.btn.primary:hover { background: linear-gradient(180deg, var(--brand), var(--brand-2)); }
.btn.danger { color: #b91c1c; background: #fff5f5; border-color: #fecaca; }
.btn.success { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.small { padding: 8px 11px; min-height: 34px; font-size: 12px; }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.dashboard {
  width: min(1600px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 42px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: rgba(245, 245, 247, .78);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  width: min(1600px, calc(100% - 28px));
  margin: 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  padding: 0;
  flex: 0 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand strong { display: block; letter-spacing: -.035em; }
.brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.admin-info { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.avatar { width: 38px; height: 38px; border-radius: 999px; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.layout {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 10px;
}
.side-btn {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 16px;
  margin-bottom: 5px;
  font-weight: 750;
  text-align: left;
}
.side-btn:hover, .side-btn.active { background: #fff; border-color: var(--line); color: var(--text); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.side-ico { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: #f3f4f6; flex: 0 0 auto; color: #111827; }
.side-btn.active .side-ico { background: #eaf4ff; color: var(--brand); }
.app-icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drawer-backdrop { display: none; }
.content { min-width: 0; }
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 4px 0 18px;
}
.page-head h1 { margin: 0; font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -.065em; line-height: .95; }
.page-head p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.grid { display: grid; gap: 14px; }
.grid.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.grid.two { grid-template-columns: 1.05fr .95fr; }
.card {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 0;
}
.card.flat { box-shadow: var(--shadow-soft); }
.card h2, .card h3 { margin: 0 0 10px; letter-spacing: -.04em; }
.card p { color: var(--muted); margin: 0; line-height: 1.6; }
.metric { min-height: 138px; display: flex; flex-direction: column; justify-content: space-between; }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 750; }
.metric-value { font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: -.06em; margin-top: 10px; }
.metric-sub { color: var(--muted); font-size: 12px; line-height: 1.45; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: #f9fafb; border: 1px solid var(--line); color: #374151; font-weight: 750; font-size: 12px; white-space: nowrap; }
.pill.good { background: #ecfdf5; color: #166534; border-color: #bbf7d0; }
.pill.warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.pill.bad { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.toolbar-left, .toolbar-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.field { display: grid; gap: 7px; }
.field label { color: #374151; font-size: 12px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, .12);
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  min-height: 44px;
  padding: 11px 13px;
  outline: none;
  box-shadow: 0 1px 2px rgba(15,23,42,.035);
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(10,132,255,.70); box-shadow: 0 0 0 4px rgba(10,132,255,.12); }
.search-input { width: min(360px, 100%); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 920px; }
th, td { padding: 12px 13px; border-bottom: 1px solid rgba(17,24,39,.075); text-align: left; vertical-align: top; font-size: 13px; }
th { color: #4b5563; font-size: 12px; font-weight: 850; background: #f9fafb; position: sticky; top: 0; z-index: 1; }
td strong { color: #111827; }
td .muted, .muted { color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.user-card { display: flex; gap: 10px; align-items: center; min-width: 220px; }
.user-card img { width: 34px; height: 34px; border-radius: 999px; object-fit: cover; background: #f3f4f6; border: 1px solid var(--line); }
.user-card b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.user-card span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.empty { border: 1px dashed rgba(17,24,39,.16); background: rgba(255,255,255,.65); border-radius: var(--radius-sm); padding: 28px 16px; color: var(--muted); text-align: center; }
.toast-root { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 10px; width: min(390px, calc(100% - 36px)); }
.toast { border: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(18px); border-radius: 18px; box-shadow: var(--shadow); padding: 13px 14px; line-height: 1.45; animation: toastIn .22s ease; }
.toast b { display: block; margin-bottom: 3px; }
.toast small { color: var(--muted); }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(17, 24, 39, .52); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 18px; z-index: 90; }
.modal { width: min(560px, 100%); border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.96); box-shadow: 0 30px 90px rgba(0,0,0,.22); padding: 20px; }
.modal h3 { margin: 0 0 8px; letter-spacing: -.04em; font-size: 24px; }
.modal p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1180px) {
  .grid.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .mobile-menu-btn { display: inline-grid; place-items: center; }
  .topbar-inner, .dashboard { width: calc(100% - 20px); }
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    z-index: 70;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, calc(100vw - 52px));
    border-radius: 0 28px 28px 0;
    padding: calc(18px + env(safe-area-inset-top)) 12px 18px;
    transform: translateX(-110%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .sidebar.open { transform: translateX(0); }
  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    background: rgba(17,24,39,.36);
    backdrop-filter: blur(4px);
    transition: opacity .2s ease;
  }
  .drawer-backdrop.show { opacity: 1; pointer-events: auto; }
}
@media (max-width: 680px) {
  .topbar-inner { height: auto; min-height: 64px; padding: 10px 0; }
  .brand span, .admin-info .admin-name { display: none; }
  .brand-logo { width: 38px; height: 38px; border-radius: 13px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .head-actions { justify-content: stretch; }
  .head-actions .btn { flex: 1 1 auto; }
  .grid.metrics, .form-grid { grid-template-columns: 1fr; }
  .card { padding: 15px; border-radius: 20px; }
  .toolbar { align-items: stretch; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .toolbar-left > *, .toolbar-right > * { flex: 1 1 auto; }
  .search-input { width: 100%; }
  table { min-width: 840px; }
  .toast-root { right: 9px; bottom: 9px; width: calc(100% - 18px); }
}


/* ===================== SELECTA ADMIN MOBILE UX HARDENING v3 ===================== */
.sidebar-mobile-head {
  display: none;
}

@media (max-width: 980px) {
  :root {
    --radius: 22px;
    --radius-sm: 16px;
  }

  body {
    background:
      radial-gradient(circle at 20% -5%, rgba(10,132,255,.16), transparent 35%),
      linear-gradient(180deg, #ffffff 0%, #f5f5f7 55%, #eef2f7 100%);
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 55;
    background: rgba(250, 250, 252, .88);
  }

  .topbar-inner {
    width: min(100% - 20px, 760px);
    min-height: 64px;
    height: auto;
    padding: max(8px, env(safe-area-inset-top)) 0 8px;
    gap: 10px;
  }

  .mobile-menu-btn {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    min-height: 46px;
    border-radius: 16px;
    padding: 0;
    flex: 0 0 auto;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 9px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .brand strong {
    font-size: 14px;
    line-height: 1.1;
  }

  .brand span {
    display: block;
    font-size: 11px;
    max-width: 148px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-info {
    flex: 0 0 auto;
    gap: 6px;
  }

  .admin-info .admin-name {
    display: none;
  }

  .avatar {
    width: 34px;
    height: 34px;
  }

  .admin-info #logoutBtn {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .dashboard {
    width: min(100% - 20px, 760px);
    padding: 12px 0 calc(30px + env(safe-area-inset-bottom));
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sidebar {
    position: fixed;
    z-index: 80;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 340px);
    max-width: 360px;
    padding: calc(14px + env(safe-area-inset-top)) 12px calc(18px + env(safe-area-inset-bottom));
    border-radius: 0 30px 30px 0;
    background: rgba(255, 255, 255, .96);
    box-shadow: 24px 0 70px rgba(15, 23, 42, .18);
    transform: translateX(-110%);
    transition: transform .24s cubic-bezier(.2,.8,.2,1);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 2px 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .sidebar-mobile-brand img {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    object-fit: cover;
    background: #111827;
  }

  .sidebar-mobile-brand strong,
  .sidebar-mobile-brand span {
    display: block;
  }

  .sidebar-mobile-brand strong {
    font-size: 14px;
    letter-spacing: -.02em;
  }

  .sidebar-mobile-brand span {
    color: var(--muted);
    font-size: 11px;
    margin-top: 1px;
  }

  .sidebar-close {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 14px;
  }

  .side-btn {
    min-height: 52px;
    border-radius: 18px;
    padding: 12px 12px;
    margin-bottom: 8px;
    font-size: 15px;
  }

  .side-ico {
    width: 34px;
    height: 34px;
    border-radius: 13px;
  }

  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    background: rgba(17,24,39,.38);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: opacity .2s ease;
  }

  .drawer-backdrop.show {
    opacity: 1;
    pointer-events: auto;
  }

  .content {
    width: 100%;
    min-width: 0;
  }

  .page-head {
    margin: 4px 0 12px;
    gap: 12px;
    align-items: stretch;
  }

  .page-head h1 {
    font-size: clamp(28px, 9vw, 42px);
    line-height: .98;
    letter-spacing: -.055em;
  }

  .page-head p {
    font-size: 13px;
    line-height: 1.45;
    margin-top: 6px;
  }

  .head-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
  }

  .head-actions .btn {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .grid {
    gap: 10px;
  }

  .grid.metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 14px;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
  }

  .card h2 {
    font-size: 19px;
  }

  .card h3 {
    font-size: 17px;
  }

  .card p {
    font-size: 13px;
  }

  .metric {
    min-height: 112px;
    padding: 13px;
  }

  .metric-label {
    font-size: 11px;
    gap: 6px;
  }

  .metric-label .pill {
    display: none;
  }

  .metric-value {
    font-size: clamp(26px, 8vw, 34px);
    margin-top: 8px;
  }

  .metric-sub {
    font-size: 11px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .toolbar h2 {
    margin: 0;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .toolbar .btn,
  .toolbar select,
  .toolbar input,
  .toolbar .pill {
    width: 100%;
    min-height: 46px;
  }

  .pill {
    justify-content: center;
    border-radius: 14px;
    min-height: 34px;
    white-space: normal;
    text-align: center;
  }

  input,
  select,
  textarea {
    min-height: 48px;
    border-radius: 16px;
    font-size: 16px;
    padding: 12px 14px;
  }

  textarea {
    min-height: 104px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .form-grid .field {
    grid-column: 1 / -1;
  }

  .form-grid button[type="submit"] {
    min-height: 50px;
    width: 100%;
    border-radius: 16px;
  }

  .btn {
    min-height: 46px;
    border-radius: 16px;
    padding: 10px 13px;
  }

  .btn.small {
    min-height: 42px;
    border-radius: 14px;
    padding: 9px 11px;
    font-size: 13px;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .responsive-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody {
    display: grid;
    gap: 10px;
  }

  .responsive-table tr {
    display: block;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    padding: 10px;
  }

  .responsive-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    width: 100%;
    border-bottom: 1px solid rgba(17,24,39,.07);
    padding: 10px 2px;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .responsive-table td:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
  }

  .responsive-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .03em;
  }

  .responsive-table td[data-label="Aksi"] {
    display: block;
  }

  .responsive-table td[data-label="Aksi"]::before {
    display: block;
    margin-bottom: 8px;
  }

  .row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .row-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .row-actions .btn[data-copy-id] {
    grid-column: 1 / -1;
  }

  .user-card {
    min-width: 0;
    width: 100%;
  }

  .user-card img {
    width: 32px;
    height: 32px;
  }

  .user-card b,
  .user-card span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  td > strong,
  td > .muted,
  td strong,
  td span {
    overflow-wrap: anywhere;
  }

  .modal-backdrop {
    place-items: end center;
    padding: 10px;
  }

  .modal {
    width: 100%;
    max-height: min(86vh, 620px);
    overflow: auto;
    border-radius: 24px 24px 20px 20px;
    padding: 18px;
  }

  .modal h3 {
    font-size: 22px;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .toast-root {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: calc(100% - 20px);
  }

  .toast {
    border-radius: 18px;
  }

  .empty {
    padding: 22px 14px;
    border-radius: 18px;
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .topbar-inner,
  .dashboard {
    width: calc(100% - 16px);
  }

  .brand span {
    display: none;
  }

  .admin-info #logoutBtn {
    padding-inline: 9px;
  }

  .head-actions {
    grid-template-columns: 1fr;
  }

  .grid.metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric {
    min-height: 102px;
    padding: 12px;
  }

  .metric-value {
    font-size: 25px;
  }

  .responsive-table td {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px;
    font-size: 12.5px;
  }

  .row-actions {
    grid-template-columns: 1fr;
  }

  .row-actions .btn[data-copy-id] {
    grid-column: auto;
  }
}

@media (max-width: 360px) {
  .grid.metrics {
    grid-template-columns: 1fr;
  }

  .mobile-menu-btn {
    width: 42px;
    height: 42px;
  }

  .brand-logo,
  .avatar {
    width: 32px;
    height: 32px;
  }

  .admin-info #logoutBtn {
    font-size: 11px;
  }
}
