
:root {
  --blue: #1a56db;
  --blue-l: #ebf3ff;
  --blue-d: #1341a3;
  --green: #057a55;
  --green-l: #ecfdf5;
  --orange: #b45309;
  --orange-l: #fffbeb;
  --red: #c81e1e;
  --red-l: #fef2f2;
  --navy: #0d1b2e;
  --navy2: #122040;
  --text: #111827;
  --text2: #4b5563;
  --text3: #9ca3af;
  --border: #e5e7eb;
  --bg: #f3f4f6;
  --white: #ffffff;
  --sidebar: 240px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; width: 100%; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; width: 100%; max-width: 100%; }

/* ── LOGIN ── */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
}
.login-box {
  background: var(--white); border-radius: 16px; padding: 40px;
  width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .ico { font-size: 40px; margin-bottom: 8px; }
.login-logo h1 { font-size: 22px; font-weight: 800; color: var(--navy); }
.login-logo p { font-size: 13px; color: var(--text2); margin-top: 2px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--text2); }
.form-group input, .form-group select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 14px; color: var(--text);
  outline: none; transition: border .15s; background: var(--white);
}
.form-group input:focus, .form-group select:focus { border-color: var(--blue); }
.btn-login {
  width: 100%; padding: 12px; background: var(--blue); color: #fff;
  border: none; border-radius: 8px; font-family: inherit; font-size: 14px;
  font-weight: 700; cursor: pointer; margin-top: 6px; transition: background .15s;
}
.btn-login:hover { background: var(--blue-d); }
.login-hint { text-align: center; margin-top: 20px; font-size: 12px; color: var(--text3); }
.hint-role { cursor: pointer; color: var(--blue); font-weight: 600; }

/* ── APP LAYOUT ── */
.app-layout { display: flex; min-height: 100vh; max-width: 100vw; overflow: hidden; position: relative; }
.layout-body { margin-left: var(--sidebar); flex: 1; min-width: 0; max-width: calc(100vw - var(--sidebar)); display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar); background: var(--navy); position: fixed;
  top: 0; left: 0; bottom: 0; display: flex; flex-direction: column; z-index: 50;
  overflow-y: auto;
}
.sb-brand {
  padding: 22px 18px 18px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sb-brand-row { display: flex; align-items: center; gap: 10px; }
.sb-ico {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 17px;
  font-family: 'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif;
}
.sb-name { color: #fff; font-size: 15px; font-weight: 800; }
.sb-tag { color: rgba(255,255,255,0.3); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }

.sb-section { padding: 14px 10px 4px; }
.sb-sec-lbl { color: rgba(255,255,255,0.3); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 0 8px; margin-bottom: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 7px; cursor: pointer;
  color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 500;
  transition: all .15s; margin-bottom: 1px;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
.nav-item.active { background: rgba(26,86,219,0.3); color: #fff; }
.nav-item.active .ni { color: var(--blue); }
.ni { font-size: 15px; width: 20px; text-align: center; font-family: 'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif; }
.nb { margin-left: auto; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 10px; }

.sb-user {
  margin-top: auto; padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 10px;
}
.sb-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.sb-uname { color: #fff; font-size: 12px; font-weight: 600; }
.sb-urole { color: rgba(255,255,255,0.35); font-size: 11px; }
.sb-logout {
  margin-left: auto; color: rgba(255,255,255,0.3); font-size: 18px;
  cursor: pointer; transition: color .15s;
}
.sb-logout:hover { color: var(--red); }

/* ── MAIN ── */
.main { flex: 1; padding: 28px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.pg-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.pg-sub { color: var(--text2); font-size: 12px; margin-top: 2px; }
.topbar-right { display: flex; gap: 8px; align-items: center; }

/* BUTTONS */
.btn { padding: 9px 16px; border-radius: 8px; border: none; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { filter: brightness(1.1); }
.btn-outline { background: var(--white); color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-danger { background: var(--red-l); color: var(--red); border: 1px solid #fecaca; }
.btn-danger:hover { background: var(--red); color: #fff; }

/* CARDS */
.card { background: var(--white); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 14px; font-weight: 700; }
.card-sub { font-size: 12px; color: var(--text2); margin-top: 1px; }
.card-body { padding: 20px; }

/* KPI */
.kpi-row { display: grid; gap: 16px; margin-bottom: 20px; }
.kpi-4 { grid-template-columns: repeat(4,1fr); }
.kpi-3 { grid-template-columns: repeat(3,1fr); }
.kpi-2 { grid-template-columns: repeat(2,1fr); }
.kpi {
  background: var(--white); border-radius: 12px; border: 1px solid var(--border);
  padding: 18px; transition: box-shadow .15s;
}
.kpi:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.kpi-ico { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 12px; }
.kpi-val { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 3px; }
.kpi-lbl { font-size: 12px; color: var(--text2); font-weight: 500; }

/* TABLE */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 10px 14px; background: var(--bg); color: var(--text2); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-bottom: 1px solid var(--border); }
td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f9fafb; }

/* BADGE */
.badge { padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; display: inline-block; }
.b-green { background: var(--green-l); color: var(--green); }
.b-orange { background: var(--orange-l); color: var(--orange); }
.b-red { background: var(--red-l); color: var(--red); }
.b-blue { background: var(--blue-l); color: var(--blue); }

/* PROGRESS */
.prog-wrap { background: var(--border); border-radius: 20px; overflow: hidden; height: 6px; }
.prog-bar { height: 6px; border-radius: 20px; }

/* MODAL */
.modal-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; }
.modal-bg.open { display: flex; }
.modal { background: var(--white); border-radius: 14px; padding: 28px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.modal-title { font-size: 16px; font-weight: 800; margin-bottom: 20px; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.modal-close { position: absolute; top: 12px; right: 16px; font-size: 20px; cursor: pointer; color: var(--text3); }

/* FORM */
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: 12px; font-weight: 700; color: var(--text2); margin-bottom: 5px; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 13px; color: var(--text); outline: none;
}
.fg input:focus, .fg select:focus { border-color: var(--blue); }
.fg textarea { resize: vertical; min-height: 70px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* CHART — canvas-based */
.chart-wrap {
  position: relative;
  width: 100%;
  height: 180px;      /* fixed height — canvas reads this, never grows */
  overflow: hidden;
}
.chart-wrap canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.chart-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--text2); }
.chart-legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* STOCK LEVEL */
.stock-low { color: var(--red); font-weight: 700; }
.stock-ok { color: var(--green); font-weight: 600; }

/* PROFIT */
.profit-positive { color: var(--green); font-weight: 700; }
.profit-negative { color: var(--red); font-weight: 700; }
.profit-badge { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:700; }
.profit-badge.up { background:var(--green-l); color:var(--green); }
.profit-badge.down { background:var(--red-l); color:var(--red); }

/* ── MOBILE TOPBAR ── */
.mob-topbar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--navy); height: 56px;
  align-items: center; justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.mob-brand { color: #fff; font-size: 15px; font-weight: 800; display:flex; align-items:center; gap:8px; }
.mob-menu-btn {
  background: none; border: none; color: #fff; font-size: 22px; cursor: pointer;
  width: 40px; height: 40px; display:flex; align-items:center; justify-content:center;
  border-radius: 10px; transition: background .15s;
}
.mob-menu-btn:hover, .mob-menu-btn:active { background: rgba(255,255,255,0.12); }

/* ── SIDEBAR OVERLAY ── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 99; backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ── BOTTOM NAV (mobile) ── */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 4px 0 env(safe-area-inset-bottom, 4px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.bottom-nav-inner { display: flex; }
.bnav-item {
  text-decoration: none;
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 2px 5px; cursor: pointer;
  color: var(--text3); font-size: 9px; font-weight: 700; letter-spacing: .02em;
  transition: color .15s; border: none; background: none; font-family: inherit;
  text-transform: uppercase; min-height: 48px; justify-content: center;
}
.bnav-item.active { color: var(--blue); }
.bnav-item.active .bnav-icon-wrap {
  background: var(--blue-l); border-radius: 12px; transform: translateY(-2px);
}
.bnav-icon-wrap {
  width: 36px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; transition: all .2s;
}
.bnav-icon { font-size: 17px; line-height: 1; }

/* ── MOBILE CARD TABLE (replaces horizontal scroll on mobile) ── */
.mob-card-list { display: none; }
@media (max-width: 640px) {
  .mob-card-list { display: flex; flex-direction: column; gap: 10px; }
  .mob-card-list + .tbl-wrap { display: none; }
}
.mob-row-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 6px;
}
.mob-row-card .mrc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mob-row-card .mrc-title { font-size: 13px; font-weight: 700; color: var(--text); }
.mob-row-card .mrc-sub { font-size: 11px; color: var(--text3); margin-top: 1px; }
.mob-row-card .mrc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.mob-row-card .mrc-field { font-size: 11px; color: var(--text2); }
.mob-row-card .mrc-field span { font-weight: 700; color: var(--text); }
.mob-row-card .mrc-actions { display: flex; gap: 8px; margin-top: 6px; }
.mob-row-card .mrc-actions .btn { flex: 1; justify-content: center; font-size: 12px; padding: 8px 10px; }
.mob-row-card .mrc-amount { font-size: 16px; font-weight: 800; color: var(--green); }

/* GRIDS — defined before media queries so mobile overrides work */
.sp { margin-bottom: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-bottom: 18px; }


/* ── PAGINATION ── */
.pagination { display:flex; align-items:center; gap:4px; padding:14px 16px; flex-wrap:wrap; border-top:1px solid var(--border); }
.pg-btn { padding:6px 12px; border-radius:7px; font-size:12px; font-weight:600; color:var(--text2); text-decoration:none; border:1.5px solid var(--border); background:var(--white); transition:all .15s; display:inline-flex; align-items:center; }
.pg-btn:hover:not(.pg-disabled):not(.pg-active) { background:var(--blue-l); color:var(--blue); border-color:#bfdbfe; }
.pg-active { background:var(--blue) !important; color:#fff !important; border-color:var(--blue) !important; }
.pg-disabled { opacity:.38; pointer-events:none; }
.pg-ellipsis { color:var(--text3); padding:0 4px; font-size:13px; }
.pg-info { margin-left:auto; font-size:12px; color:var(--text3); }

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 768px) {
  .mob-topbar { display: flex; }

  .sidebar {
    transform: translateX(-110%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    top: 0; z-index: 100; width: 272px;
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
  }
  .sidebar.open { transform: translateX(0); }

  .layout-body { margin-left: 0; width: 100%; max-width: 100vw; }
  .main {
    margin-left: 0;
    padding: 14px 14px 24px;
    padding-top: calc(56px + 14px);
  }

  /* KPI grids — 2 per row on mobile */
  .kpi-row { display: grid !important; }
  .kpi-4 { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .kpi-3 { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .kpi-2 { grid-template-columns: 1fr 1fr !important; gap: 10px; }

  /* KPI card — vertical, compact */
  .kpi {
    padding: 14px 12px;
    display: block;
  }
  .kpi-ico { margin-bottom: 8px; width: 34px; height: 34px; font-size: 16px; }
  .kpi-val { font-size: 18px; margin-bottom: 2px; }
  .kpi-lbl { font-size: 10px; }

  /* Chart container — fixed height, no overflow, no resize growth */
  .chart-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
  }
  .chart-wrap canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
  }

  /* Grids — single column on mobile */
  .grid2 { grid-template-columns: 1fr; gap: 12px; }
  .grid3 { grid-template-columns: 1fr; gap: 12px; }

  /* Inside grid cards — full width tables, no horizontal scroll */
  .grid2 table, .grid3 table { min-width: unset !important; width: 100%; }
  .grid2 th, .grid3 th { padding: 8px 10px; font-size: 10px; }
  .grid2 td, .grid3 td { padding: 9px 10px; font-size: 12px; }
  .grid2 .chart-wrap, .grid3 .chart-wrap { height: 160px; }
  .grid2 .alert, .grid3 .alert { font-size: 12px; }

  /* Form rows to single col */
  .fg-row { grid-template-columns: 1fr; gap: 0; }

  /* Modal sheet from bottom */
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal {
    border-radius: 20px 20px 0 0;
    padding: 20px 18px calc(env(safe-area-inset-bottom, 0px) + 20px);
    max-width: 100%; width: 100%;
    max-height: 92vh; overflow-y: auto;
  }
  .modal::before {
    content: ''; display: block; width: 36px; height: 4px;
    background: var(--border); border-radius: 4px;
    margin: 0 auto 16px; 
  }
  .modal-title { font-size: 15px; }

  /* Page header */
  .pg-title { font-size: 17px; }
  .pg-sub { font-size: 11px; }

  /* Topbar — title only, button below on its own row */
  .topbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .topbar-right { display: flex; gap: 8px; }
  .topbar-right .btn { flex: 1; justify-content: center; padding: 10px 12px; min-height: 40px; }

  /* Cards */
  .card-body { padding: 12px; }
  .card-head { padding: 12px 14px; flex-wrap: wrap; gap: 6px; }
  .card-title { font-size: 13px; }

  /* Order summary card — unstick on mobile so it flows naturally */
  .order-summary-card { position: static !important; }

  /* chart stays full width — height fixed by .chart-wrap CSS */

  /* Tables: horizontal scroll with hint */
  .tbl-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -12px;
    padding: 0 12px;
  }
  /* Full data tables need min-width for horizontal scroll */
  .screen > .card .tbl-wrap table,
  .screen > div > .card .tbl-wrap table { min-width: 520px; }
  /* But dashboard grid summary tables stay full width */
  .grid2 .tbl-wrap table,
  .grid3 .tbl-wrap table { min-width: unset !important; width: 100%; }
  th { padding: 8px 10px; font-size: 10px; }
  td { padding: 10px; font-size: 12px; }

  /* Progress bars */
  .prog-wrap { height: 8px; }
  .prog-bar { height: 8px; }

  /* Alert text */
  .alert { font-size: 12px; padding: 10px 12px; }

  /* Login */
  .login-box {
    padding: 28px 20px 24px;
    margin: 0 12px;
    border-radius: 16px;
    max-width: 100%;
  }
  .login-logo .ico { font-size: 34px; }
  .login-logo h1 { font-size: 20px; }

  /* Order form checkboxes — bigger touch targets */
  #order-items > div {
    padding: 12px 10px;
    gap: 8px;
  }
  #order-items input[type="checkbox"] {
    width: 20px; height: 20px; flex-shrink: 0;
  }
  #order-items input[type="number"] {
    width: 56px; padding: 6px 6px; font-size: 14px;
  }

  /* Sticky order summary on mobile */
  .order-sticky-wrap { position: static !important; }

  /* Profit KPI sub-text smaller */
  .kpi > div[style*="font-size:11px"] { font-size: 10px !important; }

  /* Doctor performance progress bars */
  .prog-label { font-size: 11px; }

  /* Badges */
  .badge { font-size: 10px; padding: 2px 7px; }

  /* Avatar */
  .av { width: 26px; height: 26px; font-size: 10px; }

  /* ID codes */
  .id-code { font-size: 11px; }
}

@media (max-width: 480px) {
  .main { padding: 12px 10px 20px; padding-top: calc(56px + 12px); }

  /* KPI stays 2 per row */
  .kpi-row { display: grid !important; }
  .kpi-4, .kpi-3, .kpi-2 { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .kpi { padding: 11px 9px; display: block; }
  .kpi-ico { width: 28px; height: 28px; font-size: 13px; margin-bottom: 5px; }
  .kpi-val { font-size: 15px; }
  .kpi-lbl { font-size: 9px; }

  /* grid2/grid3 single column on tiny phones too */
  .grid2 { grid-template-columns: 1fr; gap: 10px; }
  .grid3 { grid-template-columns: 1fr; gap: 10px; }
  .grid2 table, .grid3 table { min-width: unset !important; width: 100%; }
  .grid2 .chart-wrap, .grid3 .chart-wrap { height: 150px; }

  /* standalone chart */
  .chart-wrap { height: 150px; }

  /* Bottom nav */
  .bnav-item { font-size: 8px; }
  .bnav-icon { font-size: 15px; }

  .pg-title { font-size: 15px; }
  .login-box { padding: 22px 16px 20px; margin: 0 8px; }
}

/* ── SAFE AREA SUPPORT (iPhone notch / home bar) ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav {
    padding-bottom: calc(env(safe-area-inset-bottom) + 4px);
  }
  @media (max-width: 768px) {
    .main {
      padding-bottom: env(safe-area-inset-bottom, 20px);
    }
  }
}

/* ── TOUCH IMPROVEMENTS ── */
@media (hover: none) and (pointer: coarse) {
  /* Bigger tap targets on pure touch devices */
  .nav-item { padding: 11px 10px; }
  .btn { min-height: 40px; }
  .btn-sm { min-height: 34px; }
  .bnav-item { min-height: 52px; }
  .hint-role { padding: 4px 8px; }
  /* Remove hover states that feel stuck on touch */
  .kpi:hover { box-shadow: none; }
  tr:hover td { background: transparent; }
}

/* SCREEN */
.screen { display: none; }
.screen.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ALERT */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.alert-warn { background: var(--orange-l); border: 1px solid #fde68a; }
.alert-info { background: var(--blue-l); border: 1px solid #bfdbfe; }
.alert-success { background: var(--green-l); border: 1px solid #a7f3d0; }

/* AVATAR */
.av { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.av-b { background: #1a56db; }
.av-g { background: #057a55; }
.av-o { background: #b45309; }
.av-p { background: #6d28d9; }

.id-code { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--blue); font-weight: 500; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }
