/* PLPM company system
   Layout: deep navy sidebar · white top bar · light working area with white panels
   Brand: blue #2636ab, gold #fbb621 */
:root {
  --navy-950: #080d33;
  --navy-900: #0d1450;
  --navy-800: #16206b;
  --blue: #2636ab;
  --blue-600: #1e2b92;
  --blue-50: #eef0fb;
  --blue-100: #dde1f6;
  --gold: #fbb621;
  --gold-600: #d99a0b;
  --gold-50: #fff7e4;
  --ink: #0f1433;
  --ink-2: #3c4263;
  --muted: #747a98;
  --line: #e3e5ee;
  --line-2: #eef0f5;
  --bg: #f3f4f8;
  --card: #ffffff;
  --green: #0c8558;
  --green-50: #e3f4ec;
  --red: #cf3f3f;
  --red-50: #fcebeb;
  --amber: #a86d00;
  --amber-50: #fff3d9;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 20, 51, .04), 0 2px 8px rgba(15, 20, 51, .04);
  --shadow-lg: 0 10px 30px rgba(15, 20, 51, .12);
  --sidebar: 252px;
  --font: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.012em; }
code { background: var(--line-2); padding: 2px 6px; border-radius: 6px; font-size: 12.5px; word-break: break-word; }
[dir="auto"], [dir="rtl"] { font-family: "IBM Plex Sans Arabic", var(--font); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.pos { color: var(--green); font-weight: 600; }
.neg { color: var(--red); font-weight: 600; }
.cur { font-size: .62em; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.ico { flex: none; }
.inline { display: inline; margin: 0; }

/* ---------- Shell ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%); color: #fff;
}
.brand { display: block; padding: 24px 24px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.brand img { height: 48px; width: auto; display: block; }
.nav { flex: 1; overflow-y: auto; padding: 10px 14px 18px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-section { margin: 22px 12px 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .38); }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-bottom: 2px; border-radius: 10px;
  color: rgba(255, 255, 255, .68); font-weight: 500; transition: background .15s, color .15s;
}
.nav-item .ico { color: rgba(255, 255, 255, .45); transition: color .15s; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav-item:hover .ico { color: rgba(255, 255, 255, .8); }
.nav-item.active { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; }
.nav-item.active .ico { color: var(--gold); }
.nav-item.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.sidebar-foot { display: flex; align-items: center; gap: 6px; padding: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.user { flex: 1; display: flex; align-items: center; gap: 11px; padding: 6px; border-radius: 10px; min-width: 0; color: #fff; }
.user:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
.avatar {
  width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-600)); color: var(--navy-950);
}
.user-meta { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.user-meta b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { font-size: 11.5px; color: rgba(255, 255, 255, .5); }
.logout { color: rgba(255, 255, 255, .5); padding: 9px; border-radius: 9px; display: grid; place-items: center; }
.logout:hover { color: #fff; background: rgba(207, 63, 63, .35); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 32px; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.titles { flex: 1; min-width: 220px; }
.crumb { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 2px; }
.topbar h1 { font-size: 21px; font-weight: 600; line-height: 1.25; }
.subtitle { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 7px; color: var(--ink); cursor: pointer; }
.content { padding: 28px 32px 56px; max-width: 1440px; width: 100%; }
.scrim { display: none; }

/* ---------- Embedded apps ---------- */
.content.full { padding: 0; max-width: none; flex: 1; display: flex; flex-direction: column; }
.frame-wrap { flex: 1; display: flex; flex-direction: column; min-height: calc(100vh - 78px); }
.app-frame { flex: 1; width: 100%; border: 0; background: #fff; display: block; }
.frame-help { padding: 8px 32px; font-size: 12px; color: var(--muted); background: #f8f9fc; border-top: 1px solid var(--line); }
.nav-item.subtle { color: rgba(255, 255, 255, .45); font-size: 13px; }
.nav-ext { margin-left: auto; font-style: normal; opacity: .5; display: grid; }
.mini-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--app); color: #fff; margin-right: 10px; vertical-align: middle; }

/* ---------- Home tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-bottom: 30px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; min-height: 168px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tile::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 150px; height: 150px; border-radius: 50%; background: var(--app); opacity: .07; transition: opacity .18s, transform .18s; }
.tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tile:hover::after { opacity: .13; transform: scale(1.1); }
.tile-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--app); box-shadow: 0 6px 16px -6px var(--app); }
.tile b { font-size: 17px; font-weight: 600; }
.tile small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.tile-go { position: absolute; top: 20px; right: 20px; color: #b4b9cf; transition: color .18s, transform .18s; }
.tile:hover .tile-go { color: var(--blue); transform: translateX(2px); }
.tile.add { border: 2px dashed #d2d6e6; box-shadow: none; background: transparent; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.tile.add::after { display: none; }
.tile.add:hover { border-color: var(--blue); color: var(--blue); transform: none; box-shadow: none; }
.tile-badge { position: absolute; top: 18px; right: 18px; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: 600 13.5px var(--font); cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { border-color: #cfd3e2; background: #f8f9fc; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue-100); outline-offset: 1px; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(38, 54, 171, .3); }
.btn-primary:hover { background: var(--blue-600); border-color: var(--blue-600); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.btn-gold:hover { background: #ffc340; border-color: #ffc340; }
.btn-glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.btn-glass:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .3); }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { background: #0a7049; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { height: 31px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.danger-text { color: var(--red); }
.btn-row { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn-row.left { justify-content: flex-start; }
.push-right { margin-left: auto; }

/* ---------- Panels ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line-2); }
.card:not(.flush) > .card-head { margin: -22px -22px 16px; }
.card-head a.small { font-weight: 600; }
.card-title { font-size: 14.5px; font-weight: 600; }
.card > .card-title { margin-bottom: 12px; }
.card-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line-2); background: #fafbfd; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-1 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.grid-2 > .card, .grid-1 > .card { margin-bottom: 0; }
.grid-2 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.grid-1 + .grid-2, .grid-2 + .grid-2, .grid-2 + .grid-1, .grid-2 + .card, .card + .grid-2 { margin-top: 20px; }
.empty { color: var(--muted); text-align: center; padding: 30px 16px !important; }

/* ---------- Dashboard hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 18px; padding: 28px 30px; margin-bottom: 22px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(251, 182, 33, .22) 0%, rgba(251, 182, 33, 0) 45%),
              linear-gradient(120deg, var(--navy-900) 0%, var(--blue) 100%);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.hero::after {
  content: ""; position: absolute; right: -90px; top: -150px; width: 380px; height: 380px; border-radius: 50%;
  border: 26px solid rgba(251, 182, 33, .35); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(18deg); pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }
.hero-date { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-weight: 600; }
.hero h2 { font-size: 26px; font-weight: 600; margin-top: 4px; }
.hero p { margin: 6px 0 0; color: rgba(255, 255, 255, .75); max-width: 560px; }
.hero-actions { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 26px; }
.kpi {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.kpi:hover { text-decoration: none; border-color: var(--blue-100); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.kpi em { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #a0a5bd; }
.kpi-ico { font-style: normal; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex: none; }
.kpi b { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi b small { font-size: 15px; color: var(--muted); font-weight: 500; }
.kpi b.kpi-text { font-size: 19px; }
.kpi > small { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi.warn .kpi-ico { font-style: normal; background: var(--gold-50); color: var(--gold-600); }
.kpi.warn > small::before, .kpi.danger > small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.kpi.warn > small::before { background: var(--gold); }
.kpi.danger .kpi-ico { font-style: normal; background: var(--red-50); color: var(--red); }
.kpi.danger > small::before { background: var(--red); }
.kpi.danger b { color: var(--red); }
.kpi.accent { background: linear-gradient(135deg, var(--navy-900), var(--blue)); border-color: transparent; color: #fff; }
.kpi.accent span, .kpi.accent .cur, .kpi.accent > small { color: rgba(255, 255, 255, .72); }

/* ---------- Dashboard sections ---------- */
.dash-section { margin-bottom: 30px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash-head h2 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.dash-head h2 .ico { color: var(--blue); }
.dash-head a { font-weight: 600; font-size: 13px; }
.chart-card { padding-bottom: 16px; }
.chart-box { position: relative; height: 260px; }
.chart-box svg { display: block; overflow: visible; }
.chart-empty { height: 260px; display: grid; place-items: center; }
.c-grid { stroke: #eceef4; stroke-width: 1; }
.c-lbl { fill: var(--muted); font-size: 11.5px; font-family: var(--font); }
.c-big { fill: var(--ink); font-size: 20px; font-weight: 600; font-family: var(--font); }
.c-hover { fill: var(--blue); fill-opacity: .05; pointer-events: none; }
.seg { cursor: pointer; transition: opacity .15s; }
.seg:hover { opacity: .85; }
.chart-tip {
  display: none; position: absolute; z-index: 5; pointer-events: none; background: var(--navy-900); color: #fff;
  font-size: 12px; line-height: 1.55; padding: 8px 11px; border-radius: 9px; white-space: nowrap; box-shadow: var(--shadow-lg);
}
.chart-tip i, .chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.chart-legend { position: absolute; top: 0; right: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; font-size: 12px; color: var(--ink-2); max-width: 75%; }
.chart-legend li { display: flex; align-items: center; }
.chart-legend.side { top: 50%; transform: translateY(-50%); flex-direction: column; gap: 8px; }
.chart-legend.side span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-legend.side b { margin-left: 10px; font-weight: 600; color: var(--ink); }

/* ---------- Company apps ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.app-tile {
  display: flex; align-items: center; gap: 13px; padding: 14px 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.app-tile:hover { text-decoration: none; border-color: var(--blue-100); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.app-icon { width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--app); font-size: 14px; }
.app-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-text b { font-size: 14px; font-weight: 600; }
.app-text small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-go { color: var(--muted); }
.group-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 6px 0 10px; }
.app-grid + .group-title { margin-top: 26px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.swatches { display: flex; gap: 8px; padding-top: 4px; }
.swatches label { position: relative; }
.swatches input { position: absolute; opacity: 0; }
.swatches i { display: block; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatches input:checked + i { box-shadow: 0 0 0 2px var(--ink); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; padding: 11px 20px; background: #f8f9fc; border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.table th.right { text-align: right; }
.table th.center { text-align: center; }
.table td { padding: 13px 20px; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table.compact td, .table.compact th { padding: 10px 20px; }
.card:not(.flush) .table.compact td { padding-left: 0; padding-right: 8px; }
.link-row { cursor: pointer; }
.link-row:hover td { background: #f7f8ff; }
.table td.wrap { white-space: normal; }
.table td.wrap .badge { margin: 2px 0; }
.table-scroll { overflow-x: auto; }
.table input, .table select { height: 34px; }
.num-input { width: 120px; text-align: right; }
.num-input.sm { width: 90px; height: 32px; }
.w-qty { width: 170px; }
.row-warn td { background: #fffaf0; }
.row-done td { opacity: .6; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; line-height: 1.35; }
.badge-gray { background: var(--line-2); color: var(--ink-2); }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-red { background: var(--red-50); color: var(--red); }
.badge-amber { background: var(--amber-50); color: var(--amber); }
.badge-blue { background: var(--blue-50); color: var(--blue); }

/* ---------- Forms ---------- */
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid #d9dce8; border-radius: var(--radius-sm);
  padding: 0 12px; height: 40px; width: 100%; min-width: 0; transition: border-color .15s;
}
input:hover, select:hover, textarea:hover { border-color: #c4c8da; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
textarea { padding: 10px 12px; height: auto; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; height: auto; accent-color: var(--blue); }
input[type=file] { padding: 8px; height: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field.wide { grid-column: 1 / -1; }
.field.narrow { max-width: 360px; }
.form-section { font-size: 14px; font-weight: 600; margin: 28px 0 14px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.form-section.first { margin-top: 0; padding-top: 0; border-top: 0; }
.form-actions { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; margin: 14px 18px 0 0; cursor: pointer; }
.checks-row { display: flex; flex-wrap: wrap; }
.checks-row .check { margin-top: 4px; }
.note { background: var(--gold-50); border: 1px solid #f6dea3; padding: 11px 14px; border-radius: var(--radius-sm); }
.top-gap { margin-top: 18px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.perm-group { border: 1px solid var(--line); border-radius: 12px; padding: 8px 16px 14px; margin: 0; }
.perm-group legend { font-weight: 600; padding: 0 6px; }
.perm-group .check { display: flex; margin: 8px 0 0; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form > input { max-width: 380px; }
.inline-form .field { min-width: 200px; }
.inline-edit { display: flex; gap: 8px; align-items: center; max-width: 420px; }
.inline-edit input { height: 32px; }
.lines td { padding-left: 0; padding-right: 10px; }
.lines th { background: none; padding-left: 0; }
.block-code { display: block; padding: 10px 12px; margin: 6px 0 12px; overflow-x: auto; white-space: nowrap; }

/* ---------- Toolbar, tabs, pager, flash ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input[type=search] { max-width: 300px; }
.toolbar select, .toolbar input[type=date], .toolbar input[type=month] { width: auto; }
.toolbar-stats { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.inline-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.active { color: var(--blue); border-bottom-color: var(--gold); }
.pager { display: flex; align-items: center; gap: 12px; justify-content: flex-end; color: var(--muted); font-size: 13px; margin: -6px 0 20px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 500; border: 1px solid; }
.flash-success { background: var(--green-50); color: #086a46; border-color: #bfe5d4; }
.flash-error { background: var(--red-50); color: #a52f2f; border-color: #f3c6c6; }
.flash-info { background: var(--blue-50); color: var(--blue); border-color: var(--blue-100); }
.tally { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------- Details ---------- */
.details { margin: 0; display: grid; }
.details > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.details > div:last-child { border-bottom: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.details.cols { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.steps { padding-left: 18px; margin: 0 0 16px; }
.steps li { margin-bottom: 10px; }

/* ---------- Sites & daily count ---------- */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.site-grid .card { margin: 0; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .15s, border-color .15s; }
.site-grid .card:hover { border-color: var(--blue-100); box-shadow: var(--shadow-lg); }
.site-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.site-name { font-size: 16px; font-weight: 600; color: var(--ink); }
.site-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; background: #f8f9fc; border-radius: 11px; }
.site-stats div { padding: 10px 14px; border-right: 1px solid var(--line); }
.site-stats div:last-child { border-right: 0; }
.site-stats dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.site-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.site-card p { margin: 0; flex: 1; }
.muted-card { opacity: .6; }
.count-form { max-width: 780px; }
.count-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 14px; }
.count-head, .count-row { display: grid; grid-template-columns: 1fr 120px 140px; gap: 12px; align-items: center; padding: 11px 16px; }
.count-head { background: #f8f9fc; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); }
.count-row { border-bottom: 1px solid var(--line-2); cursor: text; }
.count-row:last-child { border-bottom: 0; }
.count-row:focus-within { background: var(--blue-50); }
.count-item { display: flex; flex-direction: column; min-width: 0; }
.count-item small { color: var(--muted); }
.count-last { color: var(--ink-2); font-weight: 600; }
.count-last small { color: var(--muted); font-weight: 400; }
.count-row input { text-align: right; font-size: 16px; font-weight: 600; }
.add-more { margin-top: 16px; }
.add-more summary { cursor: pointer; font-weight: 600; color: var(--blue); margin-bottom: 10px; }

/* ---------- HR requests ---------- */
.req-form { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr); gap: 16px; align-items: end; }
.req-form .note-field { grid-column: 1 / span 3; }
.emp-picker { position: relative; }
.emp-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 10; list-style: none; margin: 0; padding: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; max-height: 320px; overflow: auto; box-shadow: var(--shadow-lg);
}
.emp-list li { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.emp-list li.on, .emp-list li:hover { background: var(--blue-50); }
.emp-list li.empty { color: var(--muted); cursor: default; }
.emp-list .nm { flex: 1; min-width: 0; font-weight: 500; }
.emp-list .br { font-size: 12px; color: var(--muted); white-space: nowrap; }
.emp-picker .code { font-size: 12px; color: var(--muted); min-width: 3em; font-variant-numeric: tabular-nums; }
.emp-picked { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--blue-50); border-radius: var(--radius-sm); }
.emp-picked b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.emp-picked button { border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; line-height: 1; }

/* ---------- Payslip ---------- */
.payslip { max-width: 780px; padding: 34px; }
.payslip-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--gold); padding-bottom: 18px; margin-bottom: 18px; }
.payslip-head img { height: 54px; }
.payslip-head h2 { font-size: 22px; text-align: right; }
.payslip-head p { margin: 0; text-align: right; }
.slip-lines { margin-top: 20px; }
.slip-lines td { padding-left: 0; padding-right: 0; }
.slip-lines .sub-line td { color: var(--ink-2); font-size: 13px; padding-left: 14px; }
.slip-lines .total td { font-size: 17px; font-weight: 700; border-top: 2px solid var(--ink); color: var(--blue); }
.signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 60px; }
.signatures div { border-top: 1px solid var(--ink-2); padding-top: 6px; color: var(--muted); font-size: 12.5px; }

/* ---------- Login & install ---------- */
.login-body { min-height: 100vh; background: var(--bg); }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 56px; color: #fff; background: linear-gradient(140deg, var(--navy-900), var(--blue)); }
.arc { position: absolute; border-radius: 50%; border: 34px solid transparent; }
.arc1 { width: 720px; height: 720px; right: -260px; top: -300px; border-top-color: var(--gold); border-right-color: var(--gold); transform: rotate(18deg); }
.arc2 { width: 560px; height: 560px; right: -120px; top: -150px; border-top-color: rgba(255, 255, 255, .12); border-right-color: rgba(255, 255, 255, .12); transform: rotate(10deg); }
.login-art-text { position: relative; }
.login-art h2 { font-size: 34px; font-weight: 600; }
.login-art p { opacity: .8; font-size: 16px; margin: 8px 0 0; max-width: 360px; }
.login-card { align-self: center; justify-self: center; width: 100%; max-width: 390px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.login-card h1 { font-size: 24px; font-weight: 600; }
.login-card p { margin: -8px 0 4px; }
.login-logo { height: 64px; width: auto; align-self: flex-start; margin-bottom: 10px; }
.install { max-width: 720px; margin: 0 auto; padding: 40px 16px; }
.install .login-logo { display: block; margin: 0 auto 20px; }
.install h1 { font-size: 22px; margin-bottom: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .scrim.show { display: block; position: fixed; inset: 0; background: rgba(8, 13, 51, .45); z-index: 20; }
  .menu-btn { display: grid; }
  .topbar { padding: 14px 16px; gap: 12px; }
  .topbar h1 { font-size: 19px; }
  .actions { width: 100%; }
  .content { padding: 18px 16px 40px; }
  .hero { padding: 22px; }
  .hero h2 { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .details.cols { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .table th, .table td { padding: 10px 12px; }
  .card.flush { overflow-x: auto; }
  .toolbar input[type=search] { max-width: none; }
  .toolbar-stats { margin-left: 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi b { font-size: 24px; }
  .count-head, .count-row { grid-template-columns: 1fr 74px 96px; gap: 8px; padding: 10px; }
  .sticky-actions { position: sticky; bottom: 0; background: var(--card); padding: 10px 0; margin-bottom: -10px; }
  .req-form { grid-template-columns: 1fr 1fr; }
  .req-form .emp-field, .req-form .note-field, .req-form .submit-field { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .kpis { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Print ---------- */
@media print {
  .sidebar, .topbar .actions, .menu-btn, .flash, .pager, .scrim { display: none !important; }
  body, .content { background: #fff; padding: 0; }
  .topbar { position: static; padding: 0 0 10px; border: 0; }
  .card { box-shadow: none; border: 0; }
}

/* ---- Cloudflare edition additions */
button.logout { background: none; border: 0; cursor: pointer; }
.sidebar-foot form.inline { display: contents; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; background: #0f1535; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); font-size: 14px; }
.toast a { color: #fbb621; font-weight: 600; margin-left: 6px; }
.tile-mini { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; vertical-align: middle; margin-right: 6px; }
button[disabled] { opacity: .6; cursor: progress; }

/* ---- Dashboard */
.nav-dash { background: linear-gradient(90deg, rgba(242,193,78,.16), rgba(242,193,78,.03)); color: #fff !important; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(242,193,78,.22); margin-top: 4px; }
.nav-dash .ico { color: var(--gold) !important; }
.dash-hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 36px; margin-bottom: 22px; border-radius: 24px;
  background: radial-gradient(70% 130% at 100% 0%, rgba(242,193,78,.22), transparent 60%), radial-gradient(60% 120% at 0% 100%, rgba(80,100,255,.22), transparent 60%), linear-gradient(135deg, #0d1335, #0a0f28 60%, #120f1f);
  border: 1px solid rgba(242,193,78,.22); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06); color: #fff; }
.dash-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(70% 90% at 30% 30%, #000, transparent); mask-image: radial-gradient(70% 90% at 30% 30%, #000, transparent); }
.dash-hero-text { position: relative; max-width: 560px; }
.dash-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold, #f2c14e); }
.dash-hero h2 { font-size: 34px; line-height: 1.1; margin: 10px 0 8px; font-weight: 600; }
.dash-hero h2 em { font-style: italic; background: linear-gradient(90deg, #ffe29a, #f2c14e 60%, #d99a0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash-hero p { margin: 0; color: rgba(226,229,245,.72); }
.dash-rings { position: relative; display: flex; gap: 18px; flex-wrap: wrap; }
.dash-ring { --c: #3ccf91; width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); box-shadow: 0 0 30px -10px var(--c); }
.dash-ring.warn { --c: #f2c14e; } .dash-ring.bad { --c: #ff6b6b; }
.dash-ring > div { width: 94px; height: 94px; border-radius: 50%; background: #0b1030; display: grid; place-items: center; align-content: center; text-align: center; }
.dash-ring b { font-size: 26px; font-weight: 700; line-height: 1; color: #fff; }
.dash-ring b small { font-size: 13px; color: rgba(255,255,255,.6); }
.dash-ring span { font-size: 10.5px; color: rgba(226,229,245,.65); letter-spacing: .04em; margin-top: 4px; max-width: 80px; line-height: 1.25; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.dash-kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 18px; text-decoration: none !important; color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.dash-kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(242,193,78,.18), transparent 70%); }
.dash-kpi:hover { transform: translateY(-3px); border-color: rgba(242,193,78,.35); }
.dash-kpi span { font-size: 12.5px; color: var(--muted); }
.dash-kpi b { font-size: 30px; font-weight: 700; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-kpi b small { font-size: 13px; color: var(--muted); font-weight: 500; }
.dash-kpi i { font-style: normal; font-size: 12px; color: var(--muted); }
.dash-kpi.bad b { color: #ff7a7a; } .dash-kpi.warn b { color: #f2c14e; }
.dash-delta { font-weight: 700; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; margin-right: 4px; }
.dash-delta.up { color: #ff8a8a; background: rgba(255,107,107,.12); }
.dash-delta.down { color: #5fe0a8; background: rgba(60,207,145,.12); }
.dash-delta.flat { color: var(--muted); }
.dash-grid { display: grid; gap: 20px; margin-bottom: 20px; }
.dash-grid.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.dash-grid.g-11 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-grid > .card { margin-bottom: 0; }
.dash-card { border-radius: 20px; }
.dash-card.flush-body { padding: 0; overflow: hidden; }
.dash-card.flush-body .dash-head { padding: 18px 20px 0; }
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.dash-head h3 { margin: 0; font-size: 17px; font-weight: 600; color: #fff; }
.dash-head span { font-size: 12px; color: var(--muted); }
.chart-box.tall { height: 290px; }
.seg { stroke: #0b1030 !important; }
.dash-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; box-shadow: 0 0 10px currentColor; }
.dash-table td { vertical-align: middle; }
.dash-heat { display: grid; grid-template-columns: minmax(90px, max-content) repeat(var(--cols), minmax(14px, 1fr)); gap: 5px; align-items: center; }
.dash-heat .dh-day { font-size: 10.5px; color: var(--muted); text-align: center; }
.dash-heat .dh-site { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.dash-heat i, .dash-legend i { display: block; aspect-ratio: 1; border-radius: 5px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.05); }
.dash-heat i.on, .dash-legend i.on { background: linear-gradient(135deg, #3ccf91, #1fa56d); border-color: transparent; box-shadow: 0 0 10px -3px #3ccf91; }
.dash-heat i.pending, .dash-legend i.pending { background: rgba(242,193,78,.18); border: 1px dashed rgba(242,193,78,.6); }
.dash-legend { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; }
.dash-legend i { display: inline-block; width: 12px; height: 12px; margin-left: 8px; }
.dash-bars { display: grid; gap: 11px; }
.dash-bar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 54px; gap: 12px; align-items: center; text-decoration: none !important; color: var(--ink); }
.db-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-name small { color: var(--muted); }
.db-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.db-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d99a0b, #f2c14e, #ffe29a); box-shadow: 0 0 12px -2px rgba(242,193,78,.7); }
.dash-bar b { text-align: right; font-variant-numeric: tabular-nums; color: #fff; }
.dash-bar:hover .db-name { color: var(--gold, #f2c14e); }
.dash-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.dash-app { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; text-decoration: none !important; color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.dash-app:hover { transform: translateY(-2px); border-color: rgba(242,193,78,.35); }
.dash-app .tile-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.dash-app b { display: block; color: #fff; font-size: 14px; }
.dash-app small { color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) { .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-grid.g-21, .dash-grid.g-11 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .dash-hero { padding: 24px 20px; } .dash-hero h2 { font-size: 26px; } .dash-ring { width: 96px; height: 96px; } .dash-ring > div { width: 76px; height: 76px; } .dash-ring b { font-size: 20px; } .dash-kpi b { font-size: 24px; } }
.dash-card.flush-body .table.compact td { padding-left: 20px; padding-right: 20px; }
.dash-table td:first-child { white-space: nowrap; }
.dash-card.flush-body .dash-head { margin-bottom: 8px; }
.dash-heat-wrap { overflow-x: auto; }
@media (max-width: 600px) {
  .dash-rings { gap: 10px; justify-content: space-between; width: 100%; }
  .dash-ring { width: 88px; height: 88px; } .dash-ring > div { width: 70px; height: 70px; }
  .dash-ring b { font-size: 18px; } .dash-ring span { font-size: 9.5px; }
  .dash-heat { grid-template-columns: minmax(70px, max-content) repeat(var(--cols), minmax(10px, 1fr)); gap: 3px; }
  .dash-heat .dh-site { font-size: 11px; } .dash-heat .dh-day { font-size: 9px; }
  .dash-bar { grid-template-columns: minmax(0, 1fr) 70px 44px; gap: 8px; }
}

/* ---- Dashboard v2 */
.dash-bar-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.dash-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.dash-seg a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none !important; white-space: nowrap; }
.dash-seg a:hover { color: #fff; background: rgba(255,255,255,.05); }
.dash-seg a.on { background: linear-gradient(135deg, #ffe29a, #f2c14e 50%, #d99a0b); color: #1b1404; }
.dash-seg a i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dash-seg.sites { overflow-x: auto; max-width: 100%; flex-wrap: nowrap; }
.dash-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.dash-live i { width: 8px; height: 8px; border-radius: 50%; background: #3ccf91; box-shadow: 0 0 0 0 rgba(60,207,145,.6); animation: livePulse 2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(60,207,145,.6); } 70% { box-shadow: 0 0 0 9px rgba(60,207,145,0); } 100% { box-shadow: 0 0 0 0 rgba(60,207,145,0); } }
.dash-alerts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 22px; }
.dash-alerts .section-label { grid-column: 1 / -1; margin: 0; }
.dash-alert { --c: #f2c14e; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; text-decoration: none !important; color: var(--ink);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 14%, transparent), rgba(255,255,255,.02)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); transition: transform .2s; }
.dash-alert:hover { transform: translateY(-2px); }
.dash-alert.bad { --c: #ff6b6b; } .dash-alert.info { --c: #5b7cff; } .dash-alert.good { --c: #3ccf91; }
.da-ico { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.dash-alert b { display: block; color: #fff; font-size: 14px; }
.dash-alert small { color: var(--muted); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.da-go { margin-left: auto; color: var(--c); opacity: .7; flex: none; }
.dash-kpi.gold { background: linear-gradient(145deg, rgba(242,193,78,.2), rgba(242,193,78,.04)); border-color: rgba(242,193,78,.4); }
.dash-kpi.gold b { color: #ffe29a; }
.spark { display: block; }
.dash-plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dp-site { --c: #f2c14e; border-radius: 14px; padding: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-top: 3px solid var(--c); }
.dp-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.dp-head b { color: #fff; font-size: 15px; }
.dp-head span { font-weight: 700; color: var(--c); font-size: 15px; }
.dp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.dp-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-row small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.dp-row b { color: #5fe0a8; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.dp-more { font-size: 12px; color: var(--muted); padding-top: 6px; }
.dash-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dc-day { min-height: 92px; border-radius: 10px; padding: 7px; background: rgba(255,255,255,.025); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dc-day.has { background: rgba(255,107,107,.06); border-color: rgba(255,107,107,.25); }
.dc-day.today { box-shadow: inset 0 0 0 1px rgba(242,193,78,.5); }
.dc-date { font-size: 10.5px; color: var(--muted); display: flex; gap: 5px; align-items: baseline; }
.dc-date b { font-size: 15px; color: #fff; }
.dc-items { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dc-items a { --c: #f2c14e; display: block; font-size: 11px; line-height: 1.25; color: var(--ink); text-decoration: none !important; padding: 3px 5px; border-radius: 5px; background: rgba(255,255,255,.04); border-left: 2px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-items a small { display: block; color: var(--muted); font-size: 9.5px; }
.dc-items em { font-style: normal; font-size: 10.5px; color: #ff8a8a; }
.dc-none { color: rgba(255,255,255,.15); font-size: 12px; }
.dash-people { display: grid; gap: 10px; }
.dpp { display: grid; grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, 1fr) 90px; gap: 12px; align-items: center; }
.dpp-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #1b1404; background: linear-gradient(135deg, #ffe29a, #f2c14e 55%, #d99a0b); }
.dpp-who { min-width: 0; } .dpp-who b { display: block; color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dpp-who small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dpp-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.dpp-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3a52d9, #5b7cff, #a7b7ff); }
.dpp-n { text-align: right; } .dpp-n b { display: block; color: #fff; font-size: 16px; } .dpp-n small { color: var(--muted); font-size: 11px; } .dpp-n em { color: #ff8a8a; font-style: normal; }
@media (max-width: 1100px) { .dash-cal { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dash-live { margin-left: 0; } .dash-cal { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dpp { grid-template-columns: 30px minmax(0, 1fr) 70px; } .dpp-bar { display: none; } .dash-alerts { grid-template-columns: 1fr; } }
.dash-cal { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.dc-day { min-height: 110px; padding: 9px; }
.dc-items a { font-size: 12px; }
.dc-items a small { font-size: 10.5px; }
.dpp { grid-template-columns: 34px minmax(0, 1.3fr) minmax(0, 1fr) 120px; }
.dpp-n b i { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 500; }
.dash-card.flush-body .table.compact td:first-child .dash-dot { margin-right: 8px; }
.dash-heat { grid-template-columns: minmax(90px, max-content) repeat(var(--cols), minmax(14px, 44px)); }
.dash-grid.g-111 { grid-template-columns: repeat(3, minmax(0, 1fr)); } @media (max-width: 1100px) { .dash-grid.g-111 { grid-template-columns: 1fr; } }
.dash-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } @media (max-width: 1100px) { .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Tagline in the middle of the top bar */
.topbar { position: sticky; }
.topbar-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.topbar-tag::before, .topbar-tag::after { content: ""; width: 38px; height: 1px; background: linear-gradient(90deg, transparent, rgba(242,193,78,.7)); }
.topbar-tag::after { transform: scaleX(-1); }
.topbar-tag span { font-family: "Playfair Display", "Fraunces", Georgia, serif; font-style: italic; font-size: 14px; letter-spacing: .06em; color: rgba(242,193,78,.85); }
@media (max-width: 1100px) { .topbar-tag { display: none; } }
