/* ============================================================
   LAPSO18 — Global CSS
   Creado por Lemus Concept
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Source+Serif+4:wght@400;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --navy:        #0d1b2a;
  --navy-mid:    #1a2e44;
  --navy-light:  #24405c;
  --copper:      #b87333;
  --copper-lt:   #cc8f50;
  --copper-pale: rgba(184,115,51,0.12);
  --white:       #f5f4f0;
  --bg:          #eef2f7;
  --white-pure:  #ffffff;
  --slate:       #6b8196;
  --slate-lt:    #a8bccf;
  --border-dark: rgba(255,255,255,0.08);
  --border:      #e0e8f0;
  --green:       #1e9e6b;
  --amber:       #d4961a;
  --red:         #c0392b;
  --sidebar-w:   260px;
  --topbar-h:    62px;
  --radius:      6px;
  --shadow:      0 1px 4px rgba(13,27,42,.08), 0 4px 16px rgba(13,27,42,.06);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; background: var(--bg); color: var(--navy); min-height: 100vh; font-size: 14px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
button { font-family: 'Lato', sans-serif; cursor: pointer; }
input, select, textarea { font-family: 'Lato', sans-serif; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c0cfdc; border-radius: 10px; }

/* ── LOGIN ─────────────────────────────────────────────────── */
.login-wrap { display: flex; min-height: 100vh; }
.login-left {
  width: 52%; background: var(--navy);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; padding: 60px 52px;
}
.login-left::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 480px; height: 480px;
  border: 72px solid rgba(184,115,51,.07); border-radius: 50%; pointer-events: none;
}
.login-left::after {
  content: ''; position: absolute; bottom: -100px; left: -80px;
  width: 380px; height: 380px;
  border: 55px solid rgba(184,115,51,.05); border-radius: 50%; pointer-events: none;
}
.ll-logo { z-index: 2; text-align: center; margin-bottom: 48px; }
.ll-logo img { width: 300px; max-width: 100%; filter: brightness(0) invert(1) sepia(.3) saturate(1.5) hue-rotate(180deg) brightness(1.4); }
.ll-feat-list { z-index: 2; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 380px; }
.ll-feat { display: flex; align-items: flex-start; gap: 12px; padding: 13px 15px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); }
.ll-feat-ico { width: 30px; height: 30px; flex-shrink: 0; background: var(--copper-pale); border: 1px solid rgba(184,115,51,.3); display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.ll-feat-ico svg { width: 15px; height: 15px; color: var(--copper-lt); }
.ll-feat-text { font-size: 13px; color: var(--slate-lt); line-height: 1.4; }
.ll-feat-text strong { color: #fff; }
.ll-credit { margin-top: auto; padding-top: 28px; z-index: 2; font-size: 11px; color: var(--slate); }
.ll-credit span { color: var(--copper-lt); }
.login-right { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 60px 48px; background: #fff; position: relative; }
.lr-logo { margin-bottom: 32px; text-align: center; }
.lr-logo img { width: 220px; }
.login-card { width: 100%; max-width: 380px; }
.lc-title { font-family: 'Source Serif 4', serif; font-size: 26px; color: var(--navy); margin-bottom: 4px; }
.lc-sub { font-size: 13.5px; color: var(--slate); margin-bottom: 30px; }
.form-group { margin-bottom: 15px; }
.form-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--navy-light); margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 13px; border: 1.5px solid #d5dfe9; background: #fafcfe; font-size: 14px; color: var(--navy); border-radius: var(--radius); outline: none; transition: border-color .2s, box-shadow .2s; }
.form-control:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(184,115,51,.1); }
.btn-login { width: 100%; padding: 13px; background: var(--navy); color: #fff; border: none; font-size: 14px; font-weight: 700; border-radius: var(--radius); transition: background .2s; margin-top: 6px; }
.btn-login:hover { background: var(--copper); }
.lr-credit { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 11px; color: #b0bec9; }
.lr-credit span { color: var(--copper); }
.login-link { margin-top: 18px; text-align: center; font-size: 13px; color: var(--slate); }
.login-link a { color: var(--copper); font-weight: 700; }
.login-error { background: rgba(192,57,43,.1); border: 1px solid rgba(192,57,43,.3); color: var(--red); padding: 10px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px; }

/* ── SIDEBAR ───────────────────────────────────────────────── */
.sidebar { width: var(--sidebar-w); flex-shrink: 0; background: var(--navy); position: fixed; top: 0; left: 0; height: 100vh; display: flex; flex-direction: column; z-index: 200; overflow-y: auto; transition: transform .25s; }
.sb-logo { padding: 18px 20px 16px; border-bottom: 1px solid var(--border-dark); }
.sb-logo img { width: 160px; max-width: 100%; filter: brightness(0) invert(1) sepia(.2) saturate(1.2) brightness(1.3); }
.sb-logo-sub { font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--slate); margin-top: 5px; }
.sb-section { padding: 16px 0 4px; }
.sb-lbl { padding: 0 20px 7px; font-size: 9.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(168,188,207,.5); }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 20px; color: var(--slate-lt); cursor: pointer; border-left: 3px solid transparent; font-size: 13.5px; font-weight: 400; transition: all .15s; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: rgba(184,115,51,.1); color: #fff; border-left-color: var(--copper); font-weight: 700; }
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-badge { margin-left: auto; background: var(--copper); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 12px; }
.sb-sep { margin: 6px 20px; border: none; border-top: 1px solid var(--border-dark); }
.sb-user { padding: 13px 20px; border-top: 1px solid var(--border-dark); display: flex; align-items: center; gap: 10px; }
.sb-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-light); border: 2px solid var(--copper); display: flex; align-items: center; justify-content: center; font-family: 'Source Serif 4', serif; font-size: 14px; color: var(--copper); flex-shrink: 0; }
.sb-uinfo { flex: 1; overflow: hidden; }
.sb-uname { font-size: 12.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-urole { font-size: 10.5px; color: var(--slate); }
.sb-credit { padding: 9px 20px; font-size: 9.5px; color: rgba(107,129,150,.7); border-top: 1px solid var(--border-dark); }
.sb-credit span { color: var(--copper-lt); }

/* ── MAIN / TOPBAR ─────────────────────────────────────────── */
.main-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { height: var(--topbar-h); background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 100; }
.topbar-title { font-family: 'Source Serif 4', serif; font-size: 20px; color: var(--navy); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.mobile-header { display: none; height: 56px; background: var(--navy); padding: 0 16px; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 300; }
.mobile-header img { width: 130px; filter: brightness(0) invert(1) sepia(.2) saturate(1.2) brightness(1.3); }
.hamburger { background: none; border: none; }
.hamburger svg { width: 24px; height: 24px; color: #fff; }
.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 199; }
.sb-overlay.on { display: block; }

/* ── PAGE ──────────────────────────────────────────────────── */
.page-content { padding: 26px 28px; flex: 1; }
.page-credit { padding: 14px 28px; text-align: right; font-size: 11px; color: var(--slate); border-top: 1px solid var(--border); background: #fff; }
.page-credit span { color: var(--copper); }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; font-size: 13px; font-weight: 700; border-radius: var(--radius); border: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--copper); }
.btn-secondary { background: transparent; border: 1.5px solid var(--border); color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-copper { background: var(--copper); color: #fff; }
.btn-copper:hover { background: var(--copper-lt); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-icon { width: 38px; height: 38px; padding: 0; justify-content: center; background: #f0f4f8; border: none; color: var(--navy-mid); border-radius: var(--radius); position: relative; }
.btn-icon svg { width: 18px; height: 18px; }
.notif-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; background: var(--copper); border-radius: 50%; border: 2px solid #fff; }

/* ── CARDS ─────────────────────────────────────────────────── */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.card-head { padding: 15px 20px; border-bottom: 1px solid #f0f5fa; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.card-title { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.card-sub { font-size: 11.5px; color: var(--slate); margin-top: 2px; }
.card-body { padding: 20px; }
.card-body-flush { padding: 0; }
.card-action { font-size: 12px; color: var(--copper); font-weight: 700; cursor: pointer; }
.card-action:hover { color: var(--copper-lt); }

/* ── KPI ───────────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi-card { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); border: 1px solid var(--border); border-top: 3px solid var(--copper); position: relative; }
.kpi-label { font-size: 10.5px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.kpi-value { font-family: 'IBM Plex Mono', monospace; font-size: 28px; font-weight: 500; color: var(--navy); line-height: 1; }
.kpi-value-sm { font-size: 20px; }
.kpi-footer { font-size: 11.5px; color: var(--slate); margin-top: 7px; }
.kpi-ico { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; background: rgba(13,27,42,.05); border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.kpi-ico svg { width: 18px; height: 18px; color: var(--navy-light); }
.tag-up { color: var(--green); font-weight: 700; }
.tag-down { color: var(--red); font-weight: 700; }
.tag-neutral { color: var(--amber); font-weight: 700; }

/* ── STATUS PILLS ──────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-green  { background: rgba(30,158,107,.10); color: var(--green); }
.pill-amber  { background: rgba(212,150,26,.10);  color: var(--amber); }
.pill-navy   { background: rgba(26,46,68,.10);    color: var(--navy-mid); }
.pill-red    { background: rgba(192,57,43,.10);   color: var(--red); }
.pill-copper { background: rgba(184,115,51,.10);  color: var(--copper); }

/* ── PROGRESS ──────────────────────────────────────────────── */
.prog-wrap { background: #eef2f7; border-radius: 3px; overflow: hidden; }
.prog-bar  { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--copper), var(--copper-lt)); }
.prog-bar.done { background: linear-gradient(90deg, #1e9e6b, #27c484); }
.prog-bar.warn { background: linear-gradient(90deg, #d4961a, #e8ab30); }
.h6  { height: 6px;  }
.h8  { height: 8px;  }
.h10 { height: 10px; }

/* ── DATA TABLE ────────────────────────────────────────────── */
.dt { width: 100%; border-collapse: collapse; }
.dt th { text-align: left; padding: 10px 16px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--slate); background: #f8fbff; border-bottom: 1px solid var(--border); }
.dt td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid #f4f7fb; color: var(--navy); vertical-align: middle; }
.dt tr:last-child td { border-bottom: none; }
.dt tr:hover td { background: #fafcff; }
.mono { font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.text-copper { color: var(--copper); }
.text-slate  { color: var(--slate); }
.text-sm { font-size: 12px; }

/* ── TOOLBAR ───────────────────────────────────────────────── */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.search-wrap { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 0 12px; flex: 1; max-width: 340px; }
.search-wrap svg { width: 16px; height: 16px; color: var(--slate); flex-shrink: 0; }
.search-wrap input { border: none; outline: none; font-size: 13.5px; color: var(--navy); padding: 10px 0; background: transparent; width: 100%; }
select.filter { padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff; font-size: 13px; color: var(--navy); outline: none; }

/* ── FORM ──────────────────────────────────────────────────── */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; margin-bottom: 18px; }
.fc-head { padding: 14px 22px; background: #f8fbff; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 9px; }
.fc-head svg { width: 16px; height: 16px; color: var(--copper); }
.fc-title { font-size: 13px; font-weight: 700; color: var(--navy); }
.fc-body { padding: 22px; }
.form-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-full  { grid-column: 1/-1; }
.fc { }
.fc label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--navy-light); margin-bottom: 6px; }
.fc input, .fc select, .fc textarea { width: 100%; padding: 10px 13px; border: 1.5px solid #d5dfe9; background: #fafcfe; font-size: 13.5px; color: var(--navy); border-radius: var(--radius); outline: none; transition: border-color .2s; }
.fc input:focus, .fc select:focus, .fc textarea:focus { border-color: var(--copper); }
.fc input[readonly] { background: #f0f5fa; color: var(--copper); font-family: 'IBM Plex Mono', monospace; }
.fc textarea { resize: vertical; min-height: 72px; }
.form-heading { font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--slate); padding-bottom: 10px; border-bottom: 1px solid var(--border); margin: 20px 0 14px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ── ITEMS TABLE ───────────────────────────────────────────── */
.items-tbl { width: 100%; border-collapse: collapse; }
.items-tbl th { text-align: left; padding: 9px 10px; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--slate); background: #f8fbff; border-bottom: 1px solid var(--border); }
.items-tbl td { padding: 6px 6px; vertical-align: middle; }
.items-tbl td input, .items-tbl td select { width: 100%; padding: 8px 10px; border: 1.5px solid #e0e8f0; border-radius: 4px; font-size: 13px; color: var(--navy); background: #fff; outline: none; }
.items-tbl td input:focus, .items-tbl td select:focus { border-color: var(--copper); }
.items-tbl td input[readonly] { background: #f0f5fa; font-family: 'IBM Plex Mono', monospace; color: var(--navy-light); }
.btn-del { width: 28px; height: 28px; background: transparent; border: 1px solid #e0e8f0; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: var(--slate); transition: all .15s; cursor: pointer; }
.btn-del:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-del svg { width: 13px; height: 13px; }
.btn-add-row { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: transparent; border: 1.5px dashed #b5c8da; color: var(--slate); font-size: 12.5px; font-weight: 700; border-radius: var(--radius); margin-top: 10px; transition: all .15s; }
.btn-add-row:hover { border-color: var(--copper); color: var(--copper); }
.totals-panel { background: var(--navy); border-radius: var(--radius); padding: 18px 22px; margin-top: 18px; }
.total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; color: var(--slate-lt); border-bottom: 1px solid rgba(255,255,255,.06); }
.total-row:last-child { border-bottom: none; }
.total-row span:last-child { font-family: 'IBM Plex Mono', monospace; }
.total-row.grand { font-size: 18px; font-weight: 700; color: #fff; margin-top: 8px; padding-top: 10px; }

/* ── QUOTE LIST ────────────────────────────────────────────── */
.quote-list { display: flex; flex-direction: column; gap: 10px; }
.quote-row { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 18px; cursor: pointer; transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow); }
.quote-row:hover { border-color: var(--copper); box-shadow: 0 4px 20px rgba(184,115,51,.12); }
.qr-num { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--copper); font-weight: 500; min-width: 100px; }
.qr-info { flex: 1; }
.qr-client { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.qr-desc { font-size: 12px; color: var(--slate); }
.qr-amount { text-align: right; min-width: 120px; }
.qr-main { font-family: 'IBM Plex Mono', monospace; font-size: 15px; font-weight: 500; color: var(--navy); }
.qr-tax { font-size: 10.5px; color: var(--slate); margin-top: 2px; }
.qr-prog { min-width: 140px; }
.qr-prog-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--slate); margin-bottom: 5px; }

/* ── TIMELINE ──────────────────────────────────────────────── */
.tracking-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.timeline { padding-left: 28px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 0; left: 10px; width: 2px; height: 100%; background: var(--border); }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-dot { position: absolute; left: -28px; top: 14px; width: 22px; height: 22px; background: #fff; border: 2.5px solid #ccd8e5; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1; }
.tl-dot.done   { border-color: var(--green);  background: var(--green); }
.tl-dot.active { border-color: var(--copper); background: var(--copper); }
.tl-dot svg { width: 11px; height: 11px; color: #fff; }
.tl-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 17px; box-shadow: var(--shadow); }
.tl-card.active { border-color: var(--copper); }
.tl-card.pending { opacity: .52; }
.tl-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.tl-title { font-size: 14px; font-weight: 700; color: var(--navy); }
.tl-date  { font-size: 11px; color: var(--slate); }
.tl-desc  { font-size: 12.5px; color: var(--slate); line-height: 1.5; margin-bottom: 10px; }

/* ── GANTT ─────────────────────────────────────────────────── */
.gantt-wrap { overflow-x: auto; }
.gantt-tbl { width: 100%; border-collapse: collapse; min-width: 760px; }
.gantt-tbl th { padding: 10px 14px; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--slate); background: #f8fbff; border-bottom: 1px solid var(--border); text-align: left; }
.gantt-tbl td { padding: 9px 14px; border-bottom: 1px solid #f4f7fb; font-size: 13px; color: var(--navy); vertical-align: middle; }
.gantt-tbl tr:hover td { background: #fafcff; }
.lvl1 td:first-child { font-weight: 700; }
.lvl2 td:first-child { padding-left: 30px; color: var(--navy-mid); }
.lvl3 td:first-child { padding-left: 48px; color: var(--slate); font-style: italic; }
.g-outer { background: #eef2f7; border-radius: 3px; height: 18px; overflow: hidden; }
.g-bar { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--copper), var(--copper-lt)); display: flex; align-items: center; padding: 0 6px; min-width: 20px; }
.g-bar span { font-size: 10px; font-weight: 700; color: #fff; white-space: nowrap; }
.g-bar.g-green { background: linear-gradient(90deg, #1e9e6b, #27c484); }
.g-bar.g-amber { background: linear-gradient(90deg, #d4961a, #e8ab30); }

/* ── REPORT TYPES ──────────────────────────────────────────── */
.rtg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.rtc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; text-align: center; cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.rtc:hover { border-color: var(--copper); box-shadow: 0 4px 20px rgba(184,115,51,.12); }
.rtc-ico { width: 52px; height: 52px; background: rgba(13,27,42,.05); border-radius: 8px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.rtc-ico svg { width: 24px; height: 24px; color: var(--navy-mid); }
.rtc-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.rtc-desc { font-size: 12px; color: var(--slate); line-height: 1.4; }

/* ── SETTINGS ──────────────────────────────────────────────── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.logo-drop { border: 2px dashed #b8cad8; border-radius: var(--radius); padding: 30px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; margin-bottom: 16px; }
.logo-drop:hover { border-color: var(--copper); background: rgba(184,115,51,.03); }
.logo-drop svg { width: 36px; height: 36px; color: var(--slate); margin-bottom: 8px; }
.logo-drop p { font-size: 13px; color: var(--slate); }
.logo-drop p strong { color: var(--navy); }

/* ── ACTIVITY ──────────────────────────────────────────────── */
.act-feed { display: flex; flex-direction: column; }
.act-item { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid #f4f7fb; }
.act-item:last-child { border-bottom: none; }
.act-dot { width: 8px; height: 8px; background: var(--copper); border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.act-text { font-size: 12.5px; color: var(--navy); line-height: 1.5; }
.act-time { font-size: 11px; color: var(--slate); margin-top: 2px; }

/* ── MODAL ─────────────────────────────────────────────────── */
.modal-wrap { display: none; position: fixed; inset: 0; background: rgba(13,27,42,.6); z-index: 500; align-items: center; justify-content: center; padding: 20px; }
.modal-wrap.on { display: flex; }
.modal { background: #fff; border-radius: 8px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden; }
.modal-head { padding: 16px 22px; background: var(--navy); display: flex; align-items: center; justify-content: space-between; }
.modal-head-title { font-size: 15px; font-weight: 700; color: #fff; }
.modal-close { background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; }
.modal-close:hover { color: #fff; }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 13px; }
.modal-foot { padding: 14px 22px; background: #f8fbff; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ── FLASH ─────────────────────────────────────────────────── */
.flash { padding: 12px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.flash-success { background: rgba(30,158,107,.1); border: 1px solid rgba(30,158,107,.3); color: var(--green); }
.flash-error   { background: rgba(192,57,43,.1);  border: 1px solid rgba(192,57,43,.3);  color: var(--red); }
.flash-info    { background: rgba(184,115,51,.1); border: 1px solid rgba(184,115,51,.3); color: var(--copper); }

/* ── DASH GRID ─────────────────────────────────────────────── */
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.flex-col { display: flex; flex-direction: column; gap: 18px; }
.flex-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mt-4 { margin-top: 4px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mb-4 { margin-bottom: 4px; } .mb-18 { margin-bottom: 18px; }
.w-full { width: 100%; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .tracking-layout { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .rtg { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-header { display: flex; }
  .topbar { display: none; }
  .page-content { padding: 16px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .quote-row { flex-wrap: wrap; }
  .qr-prog { min-width: 100%; order: 10; }
  .qr-amount { text-align: left; }
  .rtg { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-wrap { max-width: 100%; }
}
@media (max-width: 540px) {
  .login-wrap { flex-direction: column; }
  .login-left { width: 100%; padding: 36px 24px; min-height: auto; }
  .ll-feat-list { display: none; }
  .login-right { padding: 36px 20px; }
  .kpi-grid { grid-template-columns: 1fr; }
}

/* ── PRINT ─────────────────────────────────────────────────── */
@media print {
  .sidebar, .topbar, .mobile-header, .form-actions, .toolbar .btn,
  .btn-primary, .btn-secondary, .page-credit { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}
