/* =========================================================================
   Aveno Code — Management System
   Identity: Navy #0B2744 + Gold #C7943C (from the AC mark)
   ========================================================================= */
:root {
  --navy-950: #061628;
  --navy-900: #0B2744;
  --navy-800: #133458;
  --navy-700: #1D4570;
  --navy-100: #E6ECF3;
  --navy-50:  #F2F5F9;
  --gold-600: #B07F2B;
  --gold-500: #C7943C;
  --gold-400: #D6AC62;
  --gold-100: #F7EEDC;
  --gold-50:  #FBF7EE;

  --bg: #F4F5F8;
  --surface: #FFFFFF;
  --surface-2: #F8F9FB;
  --line: #E5E8EE;
  --line-strong: #D5DAE3;
  --text: #0E1B2C;
  --text-2: #4A586B;
  --text-3: #8592A3;

  --green: #12805C;  --green-bg: #E5F5EE;
  --blue: #2563C9;   --blue-bg: #E8F0FC;
  --amber: #B26A00;  --amber-bg: #FDF2DD;
  --red: #C8322F;    --red-bg: #FCE9E8;
  --violet: #6B4FC4; --violet-bg: #EFEBFB;
  --teal: #0F7C86;   --teal-bg: #E2F4F5;
  --slate: #4A586B;  --slate-bg: #EDF0F4;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(11, 39, 68, .05);
  --shadow: 0 1px 2px rgba(11, 39, 68, .04), 0 4px 16px rgba(11, 39, 68, .06);
  --shadow-lg: 0 10px 40px rgba(11, 39, 68, .16);
  --sidebar-w: 256px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.6; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; color: var(--navy-900); }
p { margin: 0 0 .6em; }
img { max-width: 100%; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.ic { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.bold { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }

/* ------------------------------------------------------------- layout */
.app { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--sidebar-w); z-index: 40;
  background: var(--navy-900);
  background-image: radial-gradient(120% 60% at 100% 0%, rgba(199,148,60,.13), transparent 60%),
                    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #C9D4E2; display: flex; flex-direction: column; transition: transform .25s ease;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 18px; }
.sidebar-brand img { height: 30px; width: auto; }
.sidebar-brand .bt { line-height: 1.15; }
.sidebar-brand .bt b { color: #fff; font-size: 16px; letter-spacing: .2px; display: block; }
.sidebar-brand .bt span { color: var(--gold-400); font-size: 10.5px; letter-spacing: 1.6px; direction: ltr; display: block; text-align: start; }
.nav { flex: 1; overflow-y: auto; padding: 6px 12px 20px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-label { font-size: 11px; color: #6E829B; padding: 16px 12px 6px; font-weight: 600; letter-spacing: .3px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #C3CEDC;
  font-weight: 500; position: relative; transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(199,148,60,.14); color: #fff; }
.nav a.active::before {
  content: ""; position: absolute; inset-inline-start: -12px; top: 8px; bottom: 8px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--gold-500);
}
[dir="rtl"] .nav a.active::before { border-radius: 4px 0 0 4px; }
.nav a.active .ic { color: var(--gold-400); }
.nav .count {
  margin-inline-start: auto; background: var(--gold-500); color: var(--navy-950); font-size: 11px;
  font-weight: 700; border-radius: 20px; padding: 0 7px; line-height: 19px; min-width: 20px; text-align: center;
}
.nav .count.red { background: #E5534B; color: #fff; }
.sidebar-foot { padding: 14px 16px 18px; border-top: 1px solid rgba(255,255,255,.07); }
.me { display: flex; align-items: center; gap: 10px; color: #fff; }
.me .who { flex: 1; min-width: 0; line-height: 1.3; }
.me .who b { display: block; font-size: 13.5px; }
.me .who span { font-size: 11.5px; color: #8EA0B6; }
.me a.icon-btn { color: #8EA0B6; }
.me a.icon-btn:hover { color: #fff; background: rgba(255,255,255,.08); }

.main { flex: 1; margin-inline-start: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 64px;
  padding: 0 28px; background: rgba(244,245,248,.86); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .menu-btn { display: none; }
.search-box { position: relative; flex: 1; max-width: 460px; }
.search-box input {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface);
  padding: 0 40px 0 14px; font: inherit; color: var(--text); outline: none; transition: border .15s, box-shadow .15s;
}
.search-box input:focus { border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(199,148,60,.15); }
.search-box .ic { position: absolute; inset-inline-start: 13px; top: 11px; color: var(--text-3); }
.search-box kbd { position: absolute; inset-inline-end: 10px; top: 10px; font: 11px var(--font); color: var(--text-3); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; background: var(--surface-2); }
.topbar .spacer { flex: 1; }
.top-actions { display: flex; align-items: center; gap: 8px; }

.timer-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 12px; border-radius: 30px;
  background: var(--navy-900); color: #fff; font-size: 13px; max-width: 280px;
}
.timer-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #E5534B; animation: pulse 1.4s infinite; }
.timer-pill .t { font-variant-numeric: tabular-nums; color: var(--gold-400); font-weight: 600; }
.timer-pill a { color: #fff; }
.timer-pill button { background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 20px; width: 26px; height: 26px; display: grid; place-items: center; cursor: pointer; }
@keyframes pulse { 50% { opacity: .35; } }

.content { padding: 8px 28px 48px; max-width: 1480px; width: 100%; }

/* ------------------------------------------------------------- page header */
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 14px 0 22px; }
.page-head .titles { flex: 1; min-width: 220px; }
.page-head h1 { font-size: 24px; letter-spacing: -.2px; }
.page-head .sub { color: var(--text-2); margin-top: 4px; font-size: 13.5px; }
.crumbs { display: flex; gap: 6px; align-items: center; color: var(--text-3); font-size: 12.5px; margin-bottom: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--text-2); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: 600 13.5px var(--font); cursor: pointer; white-space: nowrap; transition: all .15s; text-decoration: none;
}
.btn:hover { border-color: var(--navy-700); color: var(--navy-900); }
.btn-primary { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn-gold { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--navy-950); }
.btn-danger { color: var(--red); border-color: #F0C6C4; background: #fff; }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--navy-50); border-color: transparent; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 7px; gap: 4px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 0;
  background: transparent; color: var(--text-2); cursor: pointer; position: relative; transition: background .15s;
}
.icon-btn:hover { background: var(--navy-50); color: var(--navy-900); }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn .dotcount {
  position: absolute; top: 3px; inset-inline-end: 3px; min-width: 18px; height: 18px; border-radius: 10px; padding: 0 5px;
  background: #E5534B; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--bg);
}
form.inline { display: inline; }

/* ------------------------------------------------------------- cards / grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15px; flex: 1; display: flex; align-items: center; gap: 8px; }
.card-head h3 .ic { color: var(--gold-500); }
.card-body { padding: 18px 20px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.between { justify-content: space-between; }
.mt { margin-top: 18px; } .mt-s { margin-top: 10px; } .mb { margin-bottom: 18px; }

/* KPI tiles */
.kpi {
  position: relative; overflow: hidden; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); display: block; color: inherit;
}
a.kpi:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: inherit; }
.kpi .k-label { color: var(--text-2); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.kpi .k-value { font-size: 28px; font-weight: 700; color: var(--navy-900); margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.kpi .k-foot { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.kpi .k-icon {
  position: absolute; inset-inline-end: 16px; top: 16px; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; background: var(--navy-50); color: var(--navy-800);
}
.kpi.gold .k-icon { background: var(--gold-100); color: var(--gold-600); }
.kpi.red .k-icon { background: var(--red-bg); color: var(--red); }
.kpi.green .k-icon { background: var(--green-bg); color: var(--green); }
/* slanted accent echoing the AC mark */
.kpi::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 46px; height: 4px;
  background: var(--navy-900); clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}
.kpi.gold::after { background: var(--gold-500); }
.kpi.red::after { background: var(--red); }
.kpi.green::after { background: var(--green); }

/* Hero / welcome */
.hero {
  position: relative; overflow: hidden; border-radius: 18px; padding: 24px 26px; color: #fff; margin-bottom: 20px;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 60%, #24507F 100%);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.hero::before {
  content: ""; position: absolute; inset-inline-end: -40px; top: -60px; width: 300px; height: 220px;
  background: var(--gold-500); opacity: .16; transform: skewX(-32deg); border-radius: 30px;
}
.hero::after {
  content: ""; position: absolute; inset-inline-end: 120px; bottom: -90px; width: 160px; height: 160px;
  border: 26px solid rgba(255,255,255,.05); transform: skewX(-32deg); border-radius: 26px;
}
.hero h2 { color: #fff; font-size: 22px; }
.hero .hsub { color: #B9C7D8; margin-top: 4px; }
.hero .hgrow { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.hero .att-box {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); padding: 12px 14px 12px 16px; border-radius: 14px;
}
.hero .att-box .lbl { font-size: 12px; color: #B9C7D8; }
.hero .att-box .val { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero .att-box .val small { font-size: 12px; color: var(--gold-400); font-weight: 600; }

/* ------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: start; font-weight: 600; color: var(--text-3); font-size: 12px; padding: 11px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: #FAFBFD; }
.table .actions { white-space: nowrap; text-align: end; }
.table td.tl { font-weight: 600; color: var(--navy-900); }
.card > .table-wrap > .table th:first-child { border-start-start-radius: var(--radius); }
tr.row-danger td { background: #FFF8F7; }
tr.row-warn td { background: #FFFCF4; }

/* ------------------------------------------------------------- badges / chips */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--slate-bg); color: var(--slate);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-violet { background: var(--violet-bg); color: var(--violet); }
.badge-teal { background: var(--teal-bg); color: var(--teal); }
.badge-slate { background: var(--slate-bg); color: var(--slate); }
.badge-muted { background: #F1F2F4; color: #98A1AE; }
.badge-gold { background: var(--gold-100); color: var(--gold-600); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--navy-50); color: var(--navy-800); font-size: 12px; font-weight: 500; }

.prio { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.prio i { width: 3px; height: 12px; border-radius: 2px; background: var(--line-strong); display: inline-block; }
.prio-low i:nth-child(1) { background: var(--slate); }
.prio-medium i:nth-child(-n+2) { background: var(--blue); }
.prio-high i:nth-child(-n+3) { background: var(--amber); }
.prio-urgent i { background: var(--red); }
.prio-low { color: var(--slate); } .prio-medium { color: var(--blue); } .prio-high { color: var(--amber); } .prio-urgent { color: var(--red); }

/* tabs (filters) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; color: var(--text-2); font-weight: 600;
  font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs a:hover { color: var(--navy-900); }
.tabs a.active { color: var(--navy-900); border-bottom-color: var(--gold-500); }
.tabs a .n { background: var(--navy-50); color: var(--text-2); border-radius: 20px; font-size: 11px; padding: 0 7px; line-height: 18px; }
.tabs a.active .n { background: var(--gold-100); color: var(--gold-600); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a { padding: 5px 12px; border-radius: 7px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.seg a.active { background: var(--navy-900); color: #fff; }
.seg a .n { opacity: .65; font-weight: 500; margin-inline-start: 3px; }

/* ------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .req { color: var(--red); }
.field .help { font-size: 12px; color: var(--text-3); }
.field .err { font-size: 12px; color: var(--red); }
.input {
  width: 100%; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  padding: 8px 12px; font: inherit; color: var(--text); outline: none; transition: border .15s, box-shadow .15s;
}
textarea.input { resize: vertical; line-height: 1.65; }
select.input { cursor: pointer; }
.input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(199,148,60,.16); }
.input[type="color"] { padding: 4px; height: 40px; width: 80px; }
.field.has-error .input { border-color: #E9A09D; }
.checkbox { width: 18px; height: 18px; accent-color: var(--navy-900); }
.check-row { display: flex; align-items: center; gap: 9px; min-height: 40px; }
.check-row label { font-weight: 500; color: var(--text); font-size: 14px; }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; max-height: 220px; overflow: auto; }
.checks-grid label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13.5px; cursor: pointer; }
.checks-grid input { accent-color: var(--navy-900); width: 16px; height: 16px; }
.checks-grid > div { display: contents; }
.file-input { font: inherit; font-size: 13px; padding: 8px; border: 1px dashed var(--line-strong); border-radius: 10px; width: 100%; background: var(--surface-2); }
.form-actions { display: flex; gap: 10px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.errorlist { margin: 0; padding: 0; list-style: none; }
.alert-box { padding: 12px 14px; border-radius: 10px; background: var(--red-bg); color: var(--red); font-size: 13.5px; margin-bottom: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .input { width: auto; min-width: 150px; min-height: 36px; padding: 5px 10px; font-size: 13.5px; }
.filters .search { flex: 1; min-width: 200px; max-width: 320px; }

/* ------------------------------------------------------------- avatars / presence */
.avatar {
  position: relative; display: inline-grid; place-items: center; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: #fff; font-weight: 700;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar .pdot {
  position: absolute; bottom: -1px; inset-inline-end: -1px; width: 30%; height: 30%; min-width: 9px; min-height: 9px;
  border-radius: 50%; border: 2px solid #fff; background: #B3BCC8;
}
.avatar .pdot.online { background: #1FB57A; box-shadow: 0 0 0 0 rgba(31,181,122,.6); animation: ping 2s infinite; }
.avatar .pdot.away { background: #F2B53A; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31,181,122,.5); } 70% { box-shadow: 0 0 0 6px rgba(31,181,122,0); } 100% { box-shadow: 0 0 0 0 rgba(31,181,122,0); } }
.avatars { display: flex; }
.avatars .avatar { border: 2px solid #fff; margin-inline-start: -8px; }
.avatars .avatar:first-child { margin-inline-start: 0; }
.presence-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.presence-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #B3BCC8; }
.presence-tag.online { color: var(--green); } .presence-tag.online::before { background: #1FB57A; }
.presence-tag.away { color: var(--amber); } .presence-tag.away::before { background: #F2B53A; }
.presence-tag.offline { color: var(--text-3); }

/* ------------------------------------------------------------- lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .t { font-weight: 600; color: var(--navy-900); display: block; }
.list .s { font-size: 12.5px; color: var(--text-3); }
.empty { padding: 34px 20px; text-align: center; color: var(--text-3); }
.empty .ic { color: var(--line-strong); margin-bottom: 6px; }
.empty b { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 3px; }

.progress { height: 7px; background: var(--navy-50); border-radius: 10px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--navy-800), var(--navy-700)); }
.progress.gold > span { background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); }
.progress.red > span { background: var(--red); }
.progress.green > span { background: var(--green); }
.progress.amber > span { background: #E3A13A; }

.dl { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; font-size: 13.5px; margin: 0; }
.dl dt { color: var(--text-3); }
.dl dd { margin: 0; color: var(--text); font-weight: 500; word-break: break-word; }

/* ------------------------------------------------------------- notifications dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: 380px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  display: none; z-index: 60; overflow: hidden;
}
.dropdown.open .dropdown-menu { display: block; animation: drop .16s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.notif-list { max-height: 420px; overflow-y: auto; }
.notif { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); position: relative; }
.notif:hover { background: var(--surface-2); color: var(--text); }
.notif.unread { background: #FBF8F1; }
.notif.unread::after { content: ""; position: absolute; inset-inline-end: 14px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); }
.notif .ni { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--navy-50); color: var(--navy-800); }
.notif .ni.warning { background: var(--amber-bg); color: var(--amber); }
.notif .ni.danger { background: var(--red-bg); color: var(--red); }
.notif .ni.success { background: var(--green-bg); color: var(--green); }
.notif .nt { font-weight: 600; font-size: 13.5px; line-height: 1.45; padding-inline-end: 14px; }
.notif .nm { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.notif .na { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }

/* toasts */
.toasts { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast {
  display: flex; gap: 12px; align-items: flex-start; background: var(--navy-900); color: #fff; padding: 13px 16px;
  border-radius: 13px; box-shadow: var(--shadow-lg); font-size: 13.5px; animation: slidein .25s ease;
  border-inline-start: 4px solid var(--gold-500);
}
.toast.success { border-inline-start-color: #1FB57A; }
.toast.error, .toast.danger { border-inline-start-color: #E5534B; }
.toast.warning { border-inline-start-color: #F2B53A; }
.toast a { color: var(--gold-400); }
.toast .x { margin-inline-start: auto; background: none; border: 0; color: #8EA0B6; cursor: pointer; padding: 0; }
@keyframes slidein { from { opacity: 0; transform: translateY(10px); } }

/* modal */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(6,22,40,.45); backdrop-filter: blur(2px); }
.modal.open { display: flex; }
.modal-card { background: var(--surface); width: 100%; max-width: 560px; border-radius: 16px; box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto; animation: drop .18s ease; }
.modal-card .card-head { position: sticky; top: 0; background: var(--surface); z-index: 1; border-radius: 16px 16px 0 0; }

/* ------------------------------------------------------------- client & project cards */
.entity-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.entity { display: flex; flex-direction: column; padding: 18px; gap: 12px; color: inherit; transition: box-shadow .15s, border-color .15s, transform .15s; }
a.entity:hover { box-shadow: var(--shadow); border-color: var(--line-strong); color: inherit; transform: translateY(-1px); }
.entity .eh { display: flex; gap: 12px; align-items: center; }
.entity .logo { width: 46px; height: 46px; border-radius: 12px; background: var(--navy-50); color: var(--navy-800); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.entity .logo img { width: 100%; height: 100%; object-fit: cover; }
.entity .en { font-weight: 700; color: var(--navy-900); font-size: 15px; }
.entity .es { font-size: 12.5px; color: var(--text-3); }
.entity .stats { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-2); padding-top: 12px; border-top: 1px dashed var(--line); margin-top: auto; }
.entity .stats b { color: var(--navy-900); }

/* project folder card */
.folder-card { position: relative; padding: 0; overflow: hidden; }
.folder-card .tabhead { height: 8px; background: var(--fc, var(--gold-500)); }
.folder-card .tabhead::after {
  content: ""; position: absolute; top: 0; inset-inline-start: 18px; width: 90px; height: 14px; background: var(--fc, var(--gold-500));
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); border-radius: 0 0 4px 4px;
}
.folder-card .fbody { padding: 20px 18px 16px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.folder-card .code { font-size: 11.5px; color: var(--text-3); font-family: ui-monospace, monospace; direction: ltr; }

/* folder explorer */
.explorer { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fx {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); text-align: center; color: var(--text); position: relative;
}
.fx:hover { border-color: var(--gold-400); background: var(--gold-50); color: var(--text); }
.fx .ficon { width: 52px; height: 42px; position: relative; }
.fx .fname { font-size: 13px; font-weight: 600; line-height: 1.35; word-break: break-word; }
.fx .fmeta { font-size: 11.5px; color: var(--text-3); }
.fx .fdel { position: absolute; top: 4px; inset-inline-end: 4px; opacity: 0; }
.fx:hover .fdel { opacity: 1; }
.ftype { width: 38px; height: 46px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; position: relative; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.ftype.pdf { background: #D9483B; } .ftype.doc { background: #2B6BD6; } .ftype.xls { background: #1B8A55; }
.ftype.zip { background: #8B6A3E; } .ftype.img { background: #8A4FD0; } .ftype.file { background: #6B7A8F; }
.thumb { width: 100%; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.dropzone { border: 2px dashed var(--line-strong); border-radius: 12px; padding: 18px; text-align: center; color: var(--text-2); background: var(--surface-2); transition: all .15s; }
.dropzone.drag { border-color: var(--gold-500); background: var(--gold-50); }

/* vault */
.secret { font-family: ui-monospace, Menlo, monospace; letter-spacing: 1px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 3px 9px; direction: ltr; display: inline-block; min-width: 120px; font-size: 13px; }

/* ------------------------------------------------------------- kanban */
.board { display: grid; grid-template-columns: repeat(4, minmax(260px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: #ECEFF3; border-radius: 14px; padding: 10px; min-height: 300px; display: flex; flex-direction: column; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px 12px; font-weight: 700; color: var(--navy-900); font-size: 14px; }
.col-head .cnt { background: #fff; border-radius: 20px; padding: 0 8px; font-size: 12px; color: var(--text-2); }
.col-head .bar { width: 10px; height: 10px; border-radius: 3px; }
.col-body { display: flex; flex-direction: column; gap: 9px; flex: 1; min-height: 120px; border-radius: 10px; transition: background .15s; }
.col-body.over { background: rgba(199,148,60,.14); outline: 2px dashed var(--gold-400); outline-offset: 2px; }
.kcard { background: #fff; border-radius: 11px; padding: 12px 13px; box-shadow: 0 1px 2px rgba(11,39,68,.08); cursor: grab; border: 1px solid transparent; color: inherit; display: block; }
.kcard:hover { border-color: var(--line-strong); color: inherit; }
.kcard.dragging { opacity: .5; transform: rotate(1deg); }
.kcard .kt { font-weight: 600; font-size: 13.5px; color: var(--navy-900); line-height: 1.45; margin: 6px 0 8px; }
.kcard .kp { font-size: 11.5px; color: var(--text-3); }
.kcard .kf { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); }
.kcard .kf .due.over { color: var(--red); font-weight: 600; }
.kcard .kf .due.soon { color: var(--amber); font-weight: 600; }

/* task detail */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px; padding-inline-start: 26px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 7px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .tdot { position: absolute; inset-inline-start: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-100); border: 3px solid var(--gold-500); }
.comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment .bubble { flex: 1; min-width: 0; }
.comment .meta { font-size: 12px; color: var(--text-3); }
.comment .meta b { color: var(--navy-900); font-size: 13.5px; margin-inline-end: 6px; }
.comment .body { margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.comment.system { padding: 8px 0; color: var(--text-3); font-size: 12.5px; gap: 8px; align-items: center; }
.mention { color: var(--gold-600); font-weight: 600; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.check-item.done span { text-decoration: line-through; color: var(--text-3); }
.check-item .del { opacity: 0; margin-inline-start: auto; }
.check-item:hover .del { opacity: 1; }

/* ------------------------------------------------------------- calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.cal .dow { padding: 10px; font-size: 12px; font-weight: 700; color: var(--text-3); background: var(--surface-2); border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.cal .day { min-height: 118px; padding: 6px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 3px; }
.cal .day.out { background: var(--surface-2); }
.cal .day.out .dn { color: #C0C7D1; }
.cal .dn { font-size: 12.5px; font-weight: 700; color: var(--text-2); display: flex; justify-content: space-between; align-items: center; }
.cal .day.today .dn span { background: var(--navy-900); color: #fff; border-radius: 7px; padding: 0 7px; }
.cal .dn a { opacity: 0; color: var(--text-3); }
.cal .day:hover .dn a { opacity: 1; }
.ev { display: block; font-size: 11.5px; padding: 2px 7px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--blue-bg); color: var(--blue); font-weight: 500; border-inline-start: 3px solid currentColor; }
.ev:hover { filter: brightness(.95); }
.ev.urgent, .ev.overdue { background: var(--red-bg); color: var(--red); }
.ev.high { background: var(--amber-bg); color: var(--amber); }
.ev.low { background: var(--slate-bg); color: var(--slate); }
.ev.done { background: #F1F2F4; color: #98A1AE; text-decoration: line-through; }
.ev.sub { background: var(--gold-100); color: var(--gold-600); }
.ev.project { background: var(--navy-900); color: #fff; border-inline-start-color: var(--gold-500); }
.ev.milestone { background: var(--teal-bg); color: var(--teal); }
.ev.leave { background: var(--violet-bg); color: var(--violet); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* attendance sheet */
.sheet td, .sheet th { padding: 6px 4px !important; text-align: center !important; font-size: 11.5px; }
.sheet .cell { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font-weight: 700; font-size: 10.5px; }
.cell.present { background: var(--green-bg); color: var(--green); }
.cell.late { background: var(--amber-bg); color: var(--amber); }
.cell.remote { background: var(--teal-bg); color: var(--teal); }
.cell.leave { background: var(--violet-bg); color: var(--violet); }
.cell.absent { background: var(--red-bg); color: var(--red); }
.cell.none { background: transparent; color: #CBD2DB; }
.sheet .wknd { background: #FAFAFB; }

/* charts */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .b span.v { width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--navy-700), var(--navy-900)); border-radius: 7px 7px 3px 3px; min-height: 4px; position: relative; }
.bars .b.today span.v { background: linear-gradient(180deg, var(--gold-400), var(--gold-600)); }
.bars .b small { font-size: 11px; color: var(--text-3); }
.bars .b em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--navy-900); }
.chart-box { position: relative; height: 280px; }

/* invoice print */
.invoice-paper { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.inv-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 24px; border-bottom: 3px solid var(--navy-900); position: relative; }
.inv-head::after { content: ""; position: absolute; bottom: -3px; inset-inline-end: 0; width: 120px; height: 3px; background: var(--gold-500); }
.inv-head img { height: 74px; }
.inv-title { text-align: end; }
.inv-title h2 { font-size: 30px; letter-spacing: 1px; }
.inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.inv-meta h4 { font-size: 12px; color: var(--text-3); font-weight: 600; margin-bottom: 6px; }
.inv-items th { background: var(--navy-900) !important; color: #fff !important; }
.inv-totals { margin-inline-start: auto; width: 320px; max-width: 100%; margin-top: 16px; }
.inv-totals .r { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.inv-totals .r.total { font-size: 18px; font-weight: 700; color: var(--navy-900); border-bottom: 2px solid var(--navy-900); }
.inv-totals .r.bal { color: var(--red); font-weight: 700; }
.stamp { display: inline-block; border: 3px solid currentColor; padding: 4px 16px; border-radius: 8px; font-weight: 800; font-size: 18px; transform: rotate(-8deg); }

/* login */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.auth-art {
  position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(150deg, var(--navy-900), var(--navy-950));
}
.auth-art::before { content: ""; position: absolute; width: 520px; height: 360px; background: var(--gold-500); opacity: .12; transform: skewX(-32deg); top: -120px; inset-inline-end: -160px; border-radius: 60px; }
.auth-art::after { content: ""; position: absolute; width: 380px; height: 380px; border: 60px solid rgba(255,255,255,.04); transform: skewX(-32deg); bottom: -160px; inset-inline-start: 40px; border-radius: 60px; }
.auth-art .big { position: relative; z-index: 1; }
.auth-art .big h1 { color: #fff; font-size: 36px; line-height: 1.35; }
.auth-art .big h1 em { font-style: normal; color: var(--gold-400); }
.auth-art .big p { color: #A9B9CC; font-size: 15.5px; max-width: 460px; margin-top: 14px; }
.auth-art ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; color: #D4DEEA; position: relative; z-index: 1; }
.auth-art ul li { display: flex; gap: 10px; align-items: center; }
.auth-art ul li .ic { color: var(--gold-400); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form .box { width: 100%; max-width: 380px; }
.auth-form .box img { height: 120px; display: block; margin: 0 auto 26px; }
.auth-form h2 { font-size: 22px; margin-bottom: 4px; }

/* misc */
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.section-title { font-size: 13px; font-weight: 700; color: var(--text-3); margin: 0 0 10px; letter-spacing: .2px; }
.link-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.link-row:last-child { border-bottom: 0; }
.link-row .ic { color: var(--gold-500); }
.link-row a { direction: ltr; word-break: break-all; }
.note-card { padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.note-card.pinned { background: var(--gold-50); border-color: #EBD8B2; }
.note-card h4 { font-size: 15px; margin-bottom: 6px; }
.note-card .nb { white-space: pre-wrap; color: var(--text-2); font-size: 13.5px; }
.day-meter { display: flex; height: 10px; border-radius: 10px; overflow: hidden; background: var(--navy-50); }
.ann { border-inline-start: 3px solid var(--gold-500); padding: 2px 14px; margin-bottom: 14px; }
.ann h4 { font-size: 14.5px; }
.ann p { color: var(--text-2); font-size: 13.5px; white-space: pre-wrap; margin: 4px 0; }
.sub-days { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.state-expired { color: var(--red); } .state-expiring { color: var(--amber); } .state-active { color: var(--green); } .state-cancelled { color: var(--text-3); }
.overlay { display: none; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1200px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .sidebar { transform: translateX(100%); }
  [dir="ltr"] .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .overlay.show { display: block; position: fixed; inset: 0; background: rgba(6,22,40,.4); z-index: 35; }
  .main { margin-inline-start: 0; }
  .topbar { padding: 0 16px; }
  .topbar .menu-btn { display: inline-grid; }
  .content { padding: 8px 16px 40px; }
  .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .search-box kbd { display: none; }
  .timer-pill .tname { display: none; }
}
@media (max-width: 640px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 14px; }
  .kpi .k-value { font-size: 22px; }
  .kpi .k-icon { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 20px; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dd { margin-bottom: 8px; }
  .inv-meta { grid-template-columns: 1fr; }
  .invoice-paper { padding: 20px; }
  .cal .day { min-height: 70px; }
  .cal .ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; border: 0; }
  .hero { padding: 20px; }
  .search-box { max-width: none; }
}

@media print {
  .sidebar, .topbar, .page-actions, .no-print, .toasts { display: none !important; }
  .main { margin: 0 !important; }
  .content { padding: 0 !important; max-width: none; }
  body { background: #fff; }
  .card, .invoice-paper { border: 0; box-shadow: none; }
  .inv-items th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* finance chart (pure CSS, no external library) */
.fin-chart { display: flex; align-items: stretch; gap: 6px; height: 260px; padding-top: 8px; border-bottom: 1px solid var(--line-strong);
  background: repeating-linear-gradient(to top, transparent 0, transparent 51px, #EEF0F4 51px, #EEF0F4 52px); }
.fin-chart .fm { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; outline: none; }
.fin-chart .fbars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.fin-chart .fbars span { width: 40%; max-width: 16px; min-height: 2px; border-radius: 4px 4px 0 0; }
.fin-chart .inc { background: #2F6CB0; } .fin-chart .exp { background: #B07F2B; }
.fin-chart small { font-size: 10.5px; color: var(--text-3); padding-top: 6px; transform: translateY(100%); position: absolute; bottom: 0; }
.fin-chart .fm:hover .fbars, .fin-chart .fm:focus .fbars { background: rgba(11,39,68,.04); border-radius: 6px; }
.fin-chart .tip { display: none; position: absolute; bottom: 70%; z-index: 5; background: var(--navy-900); color: #fff; padding: 8px 10px; border-radius: 9px; font-size: 12px; white-space: nowrap; box-shadow: var(--shadow-lg); }
.fin-chart .tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 5px; }
.fin-chart .fm:hover .tip, .fin-chart .fm:focus .tip { display: block; }
.fin-chart + .mb { margin-bottom: 0; }

/* internal staff portal (login) */
body.portal { min-height: 100vh; background: var(--navy-950);
  background-image: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 70%); }
.portal-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; gap: 18px; }
.portal-card { width: 100%; max-width: 400px; background: var(--surface); border-radius: 18px; padding: 32px 30px 26px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--gold-500); }
.portal-logo { display: block; height: 96px; margin: 0 auto 18px; }
.portal-badge { display: flex; width: fit-content; margin: 0 auto 18px; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--navy-800); background: var(--navy-50); border-radius: 20px; padding: 4px 12px; }
.portal-card h1 { font-size: 20px; text-align: center; }
.portal-card > p.muted { text-align: center; margin: 4px 0 20px; font-size: 13.5px; }
.portal-help { text-align: center; font-size: 12.5px; color: var(--text-3); margin: 18px 0 0; }
.portal-foot { color: #6E829B; font-size: 12px; }

/* login side panel: brand only */
.art-brand { text-align: center; }
.art-brand img { height: 120px; width: auto; display: block; margin: 0 auto 22px; }
.art-brand h1 { color: #fff; font-size: 38px; direction: ltr; letter-spacing: .5px; }
.art-tag { color: var(--gold-400); letter-spacing: 6px; font-size: 13px; margin-top: 8px; direction: ltr; }
@media (max-width: 960px) {
  .auth-form .box::before { content: ""; display: block; height: 90px; margin: 0 auto 22px;
    background: url("../img/logo-full.png") center / contain no-repeat; }
}

/* appointments */
.appt-date { width: 44px; height: 46px; border-radius: 10px; background: var(--navy-900); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; flex-shrink: 0; }
.appt-date b { font-size: 17px; } .appt-date span { font-size: 10.5px; color: var(--gold-400); }
.appt-day { margin-bottom: 18px; }
.appt-day h3 { font-size: 14px; color: var(--text-2); margin: 0 0 8px; }
.appt-time { font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; min-width: 52px; }
.ev.appt { background: #FDF2DD; color: #8a5a00; }
/* pipeline */
.pipe { display: grid; grid-template-columns: repeat(7, minmax(205px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.pipe .col { min-height: 260px; }
.pipe .col-head small { display: block; font-weight: 500; font-size: 11.5px; color: var(--text-3); }
.pcard { background: #fff; border-radius: 11px; padding: 11px 12px; box-shadow: 0 1px 2px rgba(11,39,68,.08); cursor: grab; border: 1px solid transparent; display: block; color: inherit; }
.pcard:hover { border-color: var(--line-strong); color: inherit; }
.pcard .pn { font-weight: 700; color: var(--navy-900); font-size: 13.5px; }
.pcard .pm { font-size: 11.5px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.pcard .pv { font-weight: 700; color: var(--gold-600); }
/* email compose */
.compose-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.preview-frame { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 12px; background: #F2F4F8; }
.tpl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-chips a { font-size: 12.5px; padding: 5px 11px; border-radius: 20px; border: 1px solid var(--line-strong); color: var(--text-2); background: #fff; }
.tpl-chips a.active, .tpl-chips a:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.quick-mails { display: flex; flex-wrap: wrap; gap: 6px; }
.radio-row { display: flex; flex-direction: column; gap: 8px; }
.radio-row label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
@media (max-width: 960px) { .compose-grid { grid-template-columns: minmax(0, 1fr); } .preview-frame { height: 520px; } }

.radio-row input[type=radio] { width: 17px; height: 17px; accent-color: var(--navy-900); }
