/* ════════════════════════════════════════════════════════════════════════
   MLCC — Mobile Location Command Center · styles
   Preserves the workbook's colour semantics:
     blue  = input cell      yellow = assumption to confirm
     green = computed result  pink   = set-aside reserve (move to a fund)
   ════════════════════════════════════════════════════════════════════════ */

.mlcc-tabs { display:flex; gap:6px; flex-wrap:wrap; margin:2px 0 18px; }
.mlcc-tab {
  padding:9px 16px; border-radius:10px; cursor:pointer; font-size:13px; font-weight:600;
  color:var(--rr-text-muted); background:rgba(255,255,255,0.03);
  border:1px solid var(--rr-border); transition:all .15s;
}
.mlcc-tab:hover { color:var(--rr-text); border-color:var(--rr-pink); }
.mlcc-tab.active {
  color:#fff; background:linear-gradient(135deg, var(--rr-pink), var(--rr-magenta));
  border-color:transparent; box-shadow:0 0 18px rgba(242,57,247,0.32);
}

/* layout */
.mlcc-grid2 { display:grid; grid-template-columns:minmax(320px,1fr) minmax(340px,1.1fr); gap:18px; align-items:start; }
.mlcc-grid3 { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
@media (max-width:880px){ .mlcc-grid2 { grid-template-columns:1fr; } }

/* form rows */
.mlcc-form { display:flex; flex-direction:column; gap:2px; }
.mlcc-row {
  display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center;
  padding:8px 4px; border-bottom:1px solid rgba(255,255,255,0.05);
}
.mlcc-row:last-child { border-bottom:none; }
.mlcc-row .mlcc-lbl { font-size:13px; color:var(--rr-text); }
.mlcc-row .mlcc-note { display:block; font-size:11px; color:var(--rr-text-muted); margin-top:2px; line-height:1.35; }
.mlcc-row .mlcc-unit { font-size:11px; color:var(--rr-text-muted); margin-left:6px; }
.mlcc-ctl { display:flex; align-items:center; justify-content:flex-end; gap:4px; white-space:nowrap; }

/* editable cells, colour-coded by role */
.mlcc-cell {
  width:118px; padding:8px 10px; text-align:right; font-size:13.5px; font-weight:600;
  border-radius:8px; color:var(--rr-text); font-family:inherit;
  background:var(--rr-surface-2); border:1px solid var(--rr-inner);
  transition:border-color .15s, box-shadow .15s;
}
.mlcc-cell:focus { outline:none; border-color:var(--rr-pink); box-shadow:0 0 0 3px rgba(242,57,247,0.16); }
.mlcc-cell.text { text-align:left; width:100%; }
select.mlcc-cell { width:auto; text-align:left; }

/* colour semantics */
.mlcc-input   { background:rgba(88,249,244,0.07);  border-color:rgba(88,249,244,0.30); }   /* blue/cyan = input */
.mlcc-assume  { background:rgba(255,241,64,0.09);  border-color:rgba(255,241,64,0.34); }   /* yellow = confirm */
.mlcc-reserve { background:rgba(242,57,247,0.08);  border-color:rgba(242,57,247,0.30); }   /* pink = set-aside */
.mlcc-computed{ background:rgba(70,227,155,0.08);  border-color:rgba(70,227,155,0.28); color:#7ef0b6; }

/* legend chips */
.mlcc-legend { display:flex; gap:14px; flex-wrap:wrap; font-size:11px; color:var(--rr-text-muted); margin-top:10px; }
.mlcc-legend span { display:inline-flex; align-items:center; gap:6px; }
.mlcc-dot { width:11px; height:11px; border-radius:3px; display:inline-block; }
.mlcc-dot.blue{background:rgba(88,249,244,0.5);} .mlcc-dot.yellow{background:rgba(255,241,64,0.6);}
.mlcc-dot.green{background:rgba(70,227,155,0.6);} .mlcc-dot.pink{background:rgba(242,57,247,0.6);}

/* the big CALL verdict hero — neon-glass pane; status wash + border stay on top */
.mlcc-call {
  border-radius:16px; padding:20px 22px; margin-bottom:16px;
  background:var(--ng-sheen), var(--ng-tint-card);
  -webkit-backdrop-filter:blur(var(--ng-blur-card)) saturate(var(--ng-sat));
  backdrop-filter:blur(var(--ng-blur-card)) saturate(var(--ng-sat));
  border:1px solid var(--ng-edge-pink);
  box-shadow:inset 0 1px 0 var(--ng-edge-spec), inset 0 0 0 1px var(--ng-edge-cyan), var(--ng-shadow), var(--ng-glow);
}
.mlcc-call .mlcc-call-h { font-size:11px; letter-spacing:1.5px; text-transform:uppercase; opacity:.8; margin-bottom:6px; }
.mlcc-call .mlcc-call-v { font-size:22px; font-weight:800; line-height:1.2; }
.mlcc-call.go     { background:linear-gradient(135deg,rgba(70,227,155,0.18),rgba(70,227,155,0.05)), var(--ng-sheen), var(--ng-tint-card); border-color:rgba(70,227,155,0.5); color:#7ef0b6;
  box-shadow:inset 0 1px 0 var(--ng-edge-spec), inset 0 0 0 1px rgba(70,227,155,0.18), var(--ng-shadow); }
.mlcc-call.raise  { background:linear-gradient(135deg,rgba(255,194,75,0.18),rgba(255,194,75,0.05)), var(--ng-sheen), var(--ng-tint-card); border-color:rgba(255,194,75,0.5); color:#ffce6a;
  box-shadow:inset 0 1px 0 var(--ng-edge-spec), inset 0 0 0 1px rgba(255,194,75,0.18), var(--ng-shadow); }
.mlcc-call.nogo   { background:linear-gradient(135deg,rgba(255,107,138,0.18),rgba(255,107,138,0.05)), var(--ng-sheen), var(--ng-tint-card); border-color:rgba(255,107,138,0.5); color:#ff8fa3;
  box-shadow:inset 0 1px 0 var(--ng-edge-spec), inset 0 0 0 1px rgba(255,107,138,0.18), var(--ng-shadow); }

/* metric tiles — neon-glass (matches .kpi in styles.css) */
.mlcc-metric {
  border-radius:12px; padding:14px 16px;
  background:var(--ng-sheen), var(--ng-tint-card);
  -webkit-backdrop-filter:blur(var(--ng-blur-card)) saturate(var(--ng-sat));
  backdrop-filter:blur(var(--ng-blur-card)) saturate(var(--ng-sat));
  border:1px solid var(--ng-edge-pink);
  box-shadow:inset 0 1px 0 var(--ng-edge-spec), inset 0 0 0 1px var(--ng-edge-cyan), var(--ng-shadow), var(--ng-glow);
}
.mlcc-metric .m-k { font-size:11px; text-transform:uppercase; letter-spacing:.8px; color:var(--rr-text-muted); }
.mlcc-metric .m-v { font-size:20px; font-weight:700; margin-top:4px; }
.mlcc-metric.reserve { border-color:rgba(242,57,247,0.32); background:linear-gradient(rgba(242,57,247,0.05),rgba(242,57,247,0.05)), var(--ng-sheen), var(--ng-tint-card); }
.mlcc-metric.reserve .m-v { color:#f59bf7; }
.mlcc-metric .m-sub { font-size:11px; color:var(--rr-text-muted); margin-top:3px; }

/* profit build-up table */
.mlcc-pnl { width:100%; border-collapse:collapse; font-size:13px; }
.mlcc-pnl td { padding:7px 8px; border-bottom:1px solid rgba(255,255,255,0.05); }
.mlcc-pnl td.amt { text-align:right; font-variant-numeric:tabular-nums; font-weight:600; }
.mlcc-pnl tr.set-aside td { color:#f59bf7; }
.mlcc-pnl tr.net td { font-size:15px; font-weight:800; border-top:2px solid var(--rr-border); }
.mlcc-pnl tr.net td.amt.pos { color:#7ef0b6; } .mlcc-pnl tr.net td.amt.neg { color:#ff8fa3; }
.mlcc-pos { color:#7ef0b6; } .mlcc-neg { color:#ff8fa3; }

/* data tables (menu, saved, bands) */
.mlcc-table { width:100%; border-collapse:collapse; font-size:13px; }
.mlcc-table th { text-align:left; padding:9px 8px; font-size:10.5px; text-transform:uppercase; letter-spacing:.7px; color:var(--rr-text-muted); border-bottom:1px solid var(--rr-border); }
.mlcc-table td { padding:7px 8px; border-bottom:1px solid rgba(255,255,255,0.045); vertical-align:middle; }
.mlcc-table tr:hover td { background:rgba(242,57,247,0.035); }
.mlcc-table td.r, .mlcc-table th.r { text-align:right; font-variant-numeric:tabular-nums; }
.mlcc-mixwarn { color:#ff8fa3; font-weight:700; }
.mlcc-mixok { color:#7ef0b6; font-weight:700; }

/* badges */
.mlcc-badge { display:inline-block; padding:3px 9px; border-radius:999px; font-size:11px; font-weight:700; }
.mlcc-badge.go { background:rgba(70,227,155,0.15); color:#7ef0b6; border:1px solid rgba(70,227,155,0.4); }
.mlcc-badge.raise { background:rgba(255,194,75,0.15); color:#ffce6a; border:1px solid rgba(255,194,75,0.4); }
.mlcc-badge.nogo { background:rgba(255,107,138,0.15); color:#ff8fa3; border:1px solid rgba(255,107,138,0.4); }

.mlcc-banner { padding:11px 14px; border-radius:10px; font-size:12.5px; margin-bottom:14px;
  background:rgba(255,194,75,0.10); border:1px solid rgba(255,194,75,0.4); color:#ffce6a; }
.mlcc-help { font-size:12px; color:var(--rr-text-muted); line-height:1.5; margin-top:6px; }
.mlcc-aim { font-size:15px; font-weight:700; color:#7ef0b6; padding:14px 16px; border-radius:12px;
  background:rgba(70,227,155,0.08); border:1px solid rgba(70,227,155,0.3); margin-top:12px; }
.mlcc-btn-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; align-items:center; }
.mlcc-invoice-ctl { display:inline-flex; gap:6px; align-items:center; }

/* Options modal (Create Invoice/Quote) */
.mlcc-modal-overlay { position:fixed; inset:0; z-index:1000; background:rgba(10,4,24,0.72); backdrop-filter:blur(3px);
  display:flex; align-items:center; justify-content:center; padding:20px; }
.mlcc-modal { width:min(480px,94vw); border:1px solid rgba(242,57,247,0.4); border-radius:16px; padding:22px;
  background:var(--ng-sheen), var(--ng-tint-overlay);
  -webkit-backdrop-filter:blur(var(--ng-blur-overlay)) saturate(var(--ng-sat));
  backdrop-filter:blur(var(--ng-blur-overlay)) saturate(var(--ng-sat));
  box-shadow:inset 0 1px 0 var(--ng-edge-spec), inset 0 0 0 1px var(--ng-edge-cyan), var(--ng-shadow-overlay); }
.mlcc-modal-h { font-size:18px; font-weight:800; letter-spacing:-0.2px; }
.mlcc-modal-sub { font-size:12px; color:var(--rr-text-muted); margin:2px 0 14px; }
.mlcc-modal-opt { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:11px 0; border-top:1px solid var(--rr-border); }
.mlcc-modal-q { font-size:13.5px; font-weight:600; }
.mlcc-modal-q .mlcc-note { display:block; font-weight:400; }
.mlcc-seg { display:inline-flex; border:1px solid var(--rr-border); border-radius:9px; overflow:hidden; flex:0 0 auto; }
.mlcc-seg-btn { padding:7px 16px; font-size:13px; font-weight:700; background:transparent; color:var(--rr-text-muted); border:0; cursor:pointer; }
.mlcc-seg-btn:hover { color:var(--rr-text); }
.mlcc-seg-btn.active { background:rgba(242,57,247,0.22); color:#f8a8fb; }
.mlcc-modal-info { font-size:12.5px; color:var(--rr-text); margin-top:14px; padding:10px 12px; border-radius:10px;
  background:rgba(88,249,244,0.07); border:1px solid rgba(88,249,244,0.25); }
.mlcc-modal-btns { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }

/* ── Round 2/3: nav icon, calendar, status, PUBINNO ──────────────────────── */
.nav-item .ico-img { width:18px; height:18px; object-fit:cover; border-radius:4px; opacity:1; display:block; box-shadow:0 0 0 1px rgba(242,57,247,0.3); }
.mlcc-bird { width:13px; height:13px; object-fit:contain; vertical-align:-2px; margin-right:4px; }
.mlcc-actions { white-space:nowrap; }
.mlcc-actions .btn { margin:1px; }

/* calendar */
.mlcc-cal-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; flex-wrap:wrap; }
.mlcc-cal-title { font-size:20px; font-weight:800; letter-spacing:-0.3px; }
.mlcc-cal-nav { display:flex; gap:6px; }
.mlcc-cal-legend { display:flex; gap:16px; flex-wrap:wrap; align-items:center; font-size:11px; color:var(--rr-text-muted); margin-bottom:12px; }
.mlcc-cal-legend span { display:inline-flex; align-items:center; gap:6px; }
.mlcc-cal-key { width:12px; height:12px; border-radius:3px; display:inline-block; border:1px solid transparent; }
.mlcc-cal-key.empty { background:rgba(255,107,138,0.14); border-color:rgba(255,107,138,0.4); }
.mlcc-cal-key.pending { background:rgba(255,194,75,0.18); border-color:rgba(255,194,75,0.5); }
.mlcc-cal-key.approved { background:rgba(242,57,247,0.18); border-color:rgba(242,57,247,0.55); }

.mlcc-cal { width:100%; border-collapse:separate; border-spacing:5px; min-width:820px; }
.mlcc-cal thead th { font-size:10.5px; text-transform:uppercase; letter-spacing:.7px; color:var(--rr-text-muted); padding:4px 6px; text-align:left; }
.mlcc-cal th.mlcc-cal-rail, .mlcc-cal td.mlcc-cal-rail { width:150px; }
.mlcc-cal-cell { vertical-align:top; height:96px; border-radius:10px; padding:6px 7px; border:1px solid var(--rr-border); background:rgba(255,255,255,0.02); }
.mlcc-cal-cell.out { background:transparent; border-color:transparent; opacity:.35; }
.mlcc-cal-cell.empty { background:rgba(255,107,138,0.05); border-color:rgba(255,107,138,0.28); border-style:dashed; }
.mlcc-cal-dnum { font-size:12px; font-weight:700; color:var(--rr-text-muted); margin-bottom:4px; }
.mlcc-cal-none { font-size:10.5px; color:#ff8fa3; display:flex; align-items:center; gap:5px; line-height:1.25; }
.mlcc-cal-excl { display:inline-flex; width:15px; height:15px; align-items:center; justify-content:center; border-radius:50%; background:#ff6b8a; color:#180a2e; font-weight:900; font-size:11px; }
.mlcc-cal-chip { display:flex; flex-direction:column; gap:1px; padding:4px 6px; border-radius:7px; font-size:11px; margin-bottom:3px; }
.mlcc-cal-chip .mlcc-cal-time { font-weight:700; font-variant-numeric:tabular-nums; opacity:.9; font-size:9.5px; white-space:nowrap; }
.mlcc-cal-chip .mlcc-cal-row { display:flex; align-items:center; gap:4px; }
.mlcc-cal-chip .mlcc-cal-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mlcc-cal-chip .mlcc-cal-amt { font-weight:700; }
.mlcc-cal-chip.pending { background:rgba(255,194,75,0.14); border:1px solid rgba(255,194,75,0.4); color:#ffce6a; }
.mlcc-cal-chip.approved { background:rgba(242,57,247,0.15); border:1px solid rgba(242,57,247,0.5); color:#f8a8fb; }
.mlcc-cal-chip.denied { background:rgba(255,255,255,0.03); border:1px dashed rgba(255,107,138,0.35); color:var(--rr-text-muted); text-decoration:line-through; }
.mlcc-cal-rail { vertical-align:top; padding:8px; border-radius:10px; background:linear-gradient(180deg,rgba(242,57,247,0.06),rgba(88,249,244,0.05)); border:1px solid var(--rr-border); }
.mlcc-cal-railh { font-size:10px; text-transform:uppercase; letter-spacing:.7px; color:var(--rr-text-muted); margin-bottom:6px; }
.mlcc-cal-railgrp { margin-bottom:8px; }
.mlcc-cal-railcap { font-size:10px; text-transform:uppercase; letter-spacing:.4px; color:var(--rr-text-muted); font-weight:700; margin-bottom:2px; }
.mlcc-cal-railgrp.tent .mlcc-cal-railcap, .mlcc-cal-railgrp.tent .mlcc-cal-railrow { color:var(--rr-text-muted); }
.mlcc-cal-railrow { display:flex; justify-content:space-between; gap:8px; font-size:12px; font-weight:700; margin-bottom:2px; }
.mlcc-cal-railrow > span:first-child { font-weight:600; opacity:.75; }
.mlcc-cal-railgrp.tent { font-weight:600; }
.mlcc-cal-month { margin-top:16px; padding-top:14px; border-top:1px solid var(--rr-border); }
.mlcc-cal-monthh { font-size:12px; text-transform:uppercase; letter-spacing:.8px; color:var(--rr-text-muted); margin-bottom:10px; }
.mlcc-cal-monthgrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; }

/* Event Targets */
/* muted sub-line for notes inside tables (the base .mlcc-note rule is scoped to .mlcc-row) */
.mlcc-table .mlcc-note { display:block; font-size:11px; color:var(--rr-text-muted); margin-top:2px; line-height:1.35; }
.mlcc-tgt-filters { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 4px; }
.mlcc-tgt-chip { display:inline-flex; align-items:center; gap:7px; padding:6px 12px; border-radius:20px; font-size:12.5px; font-weight:600;
  background:rgba(255,255,255,0.03); border:1px solid var(--rr-border); color:var(--rr-text); cursor:pointer; }
.mlcc-tgt-chip:hover { border-color:rgba(242,57,247,0.5); }
.mlcc-tgt-chip.active { background:rgba(242,57,247,0.16); border-color:rgba(242,57,247,0.6); color:#f8a8fb; }
.mlcc-tgt-count { font-size:11px; opacity:.8; background:rgba(0,0,0,0.25); border-radius:10px; padding:1px 7px; }
.mlcc-tgt-pri { display:inline-block; font-size:10px; font-weight:800; letter-spacing:.5px; padding:2px 8px; border-radius:6px; }
.mlcc-tgt-pri.high { background:rgba(242,57,247,0.18); color:#f8a8fb; border:1px solid rgba(242,57,247,0.5); }
.mlcc-tgt-pri.medium { background:rgba(88,249,244,0.12); color:#7ef0ea; border:1px solid rgba(88,249,244,0.4); }
.mlcc-tgt-pri.low { background:rgba(255,255,255,0.05); color:var(--rr-text-muted); border:1px solid var(--rr-border); }
.mlcc-tgt-table { min-width:1080px; }
.mlcc-tgt-table td { vertical-align:top; }
.mlcc-tgt-table td:nth-child(4) { max-width:280px; white-space:normal; }
.mlcc-tgt-table td:nth-child(6), .mlcc-tgt-table td:nth-child(7) { max-width:190px; white-space:normal; }
.mlcc-tgt-table a { color:#7ef0ea; text-decoration:none; }
.mlcc-tgt-table a:hover { text-decoration:underline; }

/* Truck Pitch Deck viewer — tint + edge only (opaque iframe covers the pane; blur would be pure cost) */
.mlcc-pitch-frame { margin-top:12px; border:1px solid var(--ng-edge-pink); border-radius:12px; overflow:hidden;
  background:var(--ng-tint-card); box-shadow:var(--ng-shadow), var(--ng-glow); }
.mlcc-pitch-frame iframe { width:100%; height:78vh; min-height:520px; border:0; display:block; background:#fff; }

/* PUBINNO placeholder */
.mlcc-ph { opacity:.92; }
.mlcc-muted { color:var(--rr-text-muted); }
.mlcc-metric.mlcc-ph .m-v { color:var(--rr-text-muted); }
.mlcc-todo { border-color:rgba(255,194,75,0.35) !important; background:linear-gradient(rgba(255,194,75,0.05),rgba(255,194,75,0.05)), var(--ng-sheen), var(--ng-tint-card) !important; } /* yellow wash layered over the glass so the .rr-card recipe isn't clobbered */
.mlcc-todolist { margin:6px 0 0; padding-left:18px; font-size:12.5px; line-height:1.6; color:var(--rr-text); }
.mlcc-todolist li { margin-bottom:6px; }

/* no backdrop-filter support → opaque fallbacks (mirrors styles.css) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mlcc-call, .mlcc-metric { background:var(--rr-panel-2); }
  .mlcc-modal { background:rgba(20,4,34,0.97); }
}
