/* Maa Vaishno Corrugators ERP — premium theme (navy · sapphire · kraft gold) */
:root {
  --bg: #f4f5f8; --panel: #ffffff; --ink: #0d1321; --ink-2: #374055; --muted: #6b7386; --line: #e8eaf0; --line-2: #d8dce5;
  --brand: #2643c9; --brand-600: #1f37a8; --brand-700: #182b86; --brand-soft: #eef1fd; --brand-ring: rgba(38,67,201,.16);
  --gold: #b8862b; --gold-2: #d9a943; --gold-soft: #fbf4e4;
  --navy: #0b1222; --navy-2: #131d36; --navy-3: #1c2848;
  --grad: linear-gradient(135deg, #142057 0%, #2643c9 62%, #4a6cf0 100%);
  --side: #0b1222; --side-2: #141e38; --side-ink: #a3abc4;
  --green: #067a55; --green-bg: #dcf7ea; --blue: #1d5bd8; --blue-bg: #e0ebff; --amber: #a35a06; --amber-bg: #fdf1d8; --red: #c8231f; --red-bg: #fde6e5;
  --violet: #6a3fd4; --violet-bg: #eee8fd; --cyan: #0b7f9a; --cyan-bg: #dbf4fa; --pink: #c0266b; --pink-bg: #fce6f0; --orange: #c2540a; --orange-bg: #ffecdc; --teal: #0b7d72; --teal-bg: #d8f5f0;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --shadow-md: 0 4px 12px -2px rgba(16,24,40,.08), 0 2px 4px -2px rgba(16,24,40,.05);
  --shadow-lg: 0 18px 40px -12px rgba(16,24,40,.22), 0 4px 10px -4px rgba(16,24,40,.08);
  --font-head: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #d8e0fb; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-family: var(--font-head); font-size: 23px; margin: 0; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
h3 { font-family: var(--font-head); font-size: 15px; margin: 0; font-weight: 700; letter-spacing: -.005em; }
.muted { color: var(--muted); } .small { font-size: 12px; } .num { text-align: right; font-variant-numeric: tabular-nums; }
.spacer { flex: 1; } .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; } .g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.span2 { grid-column: span 2; }
svg.ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 1px; }
* { scrollbar-width: thin; scrollbar-color: #c9cfdb transparent; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side { background: radial-gradient(140% 50% at 0% 0%, rgba(184,134,43,.10) 0%, transparent 55%), linear-gradient(180deg, #0b1222 0%, #0e172c 60%, #0b1222 100%); color: var(--side-ink);
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; scrollbar-color: #263252 transparent; border-right: 1px solid #0f1830; }
.brand { padding: 20px 18px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 6px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #d9a943, #a8741f); color: #1a1205; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .02em; box-shadow: 0 6px 18px rgba(184,134,43,.35), inset 0 1px 0 rgba(255,255,255,.35); flex: none; }
.brand-name { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 14px; line-height: 1.2; letter-spacing: 0; }
.brand-sub { font-size: 10.5px; color: #c8a560; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.nav { padding: 2px 12px 16px; display: flex; flex-direction: column; gap: 1px; }
.nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #5d6787; padding: 16px 10px 6px; font-weight: 700; }
.nav a { color: var(--side-ink); padding: 7px 10px; border-radius: 9px; display: flex; align-items: center; gap: 11px; font-size: 13.4px; font-weight: 500; transition: background .15s, color .15s; position: relative; }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; text-decoration: none; }
.nav a .chip { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: transparent; color: #7c86a6; transition: color .15s, background .15s; }
.nav a:hover .chip { color: #dfe4f2; }
.nav a .chip svg.ic { width: 17px; height: 17px; }
.nav a.active { background: linear-gradient(90deg, rgba(217,169,67,.16), rgba(255,255,255,.04)); color: #fff; font-weight: 600; }
.nav a.active::before { content: ''; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-2); }
.nav a.active .chip { color: var(--gold-2); background: rgba(217,169,67,.12); }
.side-foot { margin-top: auto; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.06); font-size: 12px; }
.secure-pill { display: flex; align-items: center; gap: 8px; color: #8f98b5; font-size: 11.5px; }
.secure-pill i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.18); }
.user-box { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.side-foot button { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: var(--side-ink); border-radius: 8px; padding: 6px 10px; cursor: pointer; margin-top: 8px; font: inherit; font-size: 12px; width: 100%; }
.side-foot button:hover { color: #fff; border-color: rgba(255,255,255,.18); }
.main-wrap { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 62px; background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 26px; position: sticky; top: 0; z-index: 20; }
.topbar .menu-btn { display: none; }
.search-wrap { position: relative; width: min(440px, 44vw); } .search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #8a92a6; width: 17px; height: 17px; }
.search-wrap input { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px 9px 38px; background: #f5f6f9; font: inherit; font-size: 13.5px; transition: all .15s; }
.search-wrap input:focus { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); border-color: var(--brand); background: #fff; }
.search-wrap kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 10.5px/1 "Inter", sans-serif; color: #8a92a6; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px; background: #fff; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 9px; border: 1px solid transparent; background: none; padding: 4px 8px 4px 4px; border-radius: 12px; cursor: pointer; font: inherit; color: var(--ink); }
.user-btn:hover, .user-btn.open { background: #f2f4f8; border-color: var(--line); }
.user-btn .avatar { width: 34px; height: 34px; font-size: 12.5px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-2); }
.user-btn .who { text-align: left; line-height: 1.2; } .user-btn .who b { display: block; font-size: 13px; } .user-btn .who small { color: var(--muted); font-size: 11.5px; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu-pop .mp-head { display: flex; gap: 10px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-pop .mp-head .avatar { width: 40px; height: 40px; }
.menu-pop a, .menu-pop button.mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ink-2); cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button.mi:hover { background: #f3f5f9; color: var(--ink); text-decoration: none; }
.menu-pop .mi.danger { color: var(--red); } .menu-pop svg.ic { width: 17px; height: 17px; color: #7a8297; } .menu-pop .mi.danger svg.ic { color: var(--red); }
.menu-pop .mp-meta { padding: 8px 10px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4px; }
#main { padding: 26px 30px 56px; max-width: 1580px; width: 100%; animation: pagein .2s ease-out; }
@keyframes pagein { from { opacity: .4; transform: translateY(3px); } }
.demo-banner { background: linear-gradient(90deg, #1a2a6c, #2643c9 50%, #1a2a6c); color: #f6dfa8; text-align: center; font-weight: 700; padding: 6px; font-size: 11.5px; letter-spacing: .08em; border-bottom: 1px solid rgba(217,169,67,.35); }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; font-size: 13.5px; } .page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-title { display: flex; gap: 14px; align-items: center; }
.page-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, #2643c9) 11%, white); border: 1px solid color-mix(in srgb, var(--c, #2643c9) 20%, white); }
.page-icon svg.ic { width: 22px; height: 22px; }

/* hero */
.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 28px 30px; color: #fff; margin-bottom: 22px; box-shadow: var(--shadow-lg);
  background: radial-gradient(70% 120% at 100% 0%, rgba(217,169,67,.28) 0%, transparent 55%), repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px), linear-gradient(135deg, #0d1733 0%, #18296b 55%, #2643c9 100%); }
.hero::after { content: ''; position: absolute; right: -80px; top: -110px; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(255,255,255,.10); }
.hero::before { content: ''; position: absolute; right: 120px; bottom: -150px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(217,169,67,.22); }
.hero h1 { font-size: 27px; color: #fff; } .hero p { opacity: .85; margin: 6px 0 0; }
.hero .row { position: relative; z-index: 1; }
.hero .inp { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; color-scheme: dark; }
.qa { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 20px; position: relative; z-index: 1; }
.qa a { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 13px; backdrop-filter: blur(4px); transition: all .15s; }
.qa a:hover { background: rgba(255,255,255,.16); border-color: rgba(217,169,67,.55); text-decoration: none; transform: translateY(-1px); }
.qa a .chip { width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--c); display: grid; place-items: center; }

/* ---------- cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; min-width: 0; }
.card-head { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-head h3 { display: flex; align-items: center; gap: 9px; } .card-head h3 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #2643c9) 16%, transparent); }
.card-body { padding: 18px 20px; }
.card-body > .table-wrap { margin: -18px -20px; }
.error-card { padding: 20px; border-color: var(--red-bg); }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 15px; box-shadow: var(--shadow); color: inherit; display: flex; gap: 13px; align-items: flex-start; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.kpi::after { content: ''; position: absolute; right: -28px; bottom: -28px; width: 90px; height: 90px; border-radius: 50%; background: color-mix(in srgb, var(--c, #2643c9) 7%, transparent); }
a.kpi:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--c, #2643c9) 30%, var(--line)); }
.kpi-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, #2643c9) 11%, white); color: var(--c, var(--brand)); flex: none; }
.kpi-ic svg.ic { width: 19px; height: 19px; }
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.kpi-value { font-family: var(--font-head); font-size: clamp(18px, 1.5vw, 24px); overflow-wrap: anywhere; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.warn { --c: #d48a0c; } .kpi.danger { --c: #d9342f; } .kpi.good { --c: #0e9467; } .kpi.accent { --c: #2643c9; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; transition: all .15s; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.btn:hover { background: #f7f8fb; border-color: #c3c9d6; color: var(--ink); text-decoration: none; } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg.ic { width: 16px; height: 16px; }
.btn.primary { background: linear-gradient(180deg, #2f4fdb, #2643c9); border-color: #1f37a8; color: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.12), inset 0 1px 0 rgba(255,255,255,.16); }
.btn.primary:hover { background: linear-gradient(180deg, #2a47cf, #1f37a8); box-shadow: 0 4px 12px rgba(38,67,201,.28); }
.btn.success { background: linear-gradient(180deg, #11a172, #0b8a60); border-color: #0a7a55; color: #fff; }
.btn.warn { background: linear-gradient(180deg, #e8a21f, #cf8a0f); border-color: #b97a0b; color: #fff; }
.btn.info { background: linear-gradient(180deg, #1593b3, #0b7f9a); border-color: #0a6f87; color: #fff; }
.btn.pink { background: linear-gradient(180deg, #2f4fdb, #2643c9); border-color: #1f37a8; color: #fff; }
.btn.gold { background: linear-gradient(180deg, #dcae4c, #b8862b); border-color: #a2761f; color: #1e1404; }
.btn.danger { background: #fff; border-color: #f2b8b5; color: var(--red); } .btn.danger:hover { background: #fff5f5; border-color: #e88f8a; }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.icon-btn { border: none; background: none; cursor: pointer; font-size: 16px; color: var(--muted); padding: 6px 8px; border-radius: 8px; display: inline-grid; place-items: center; } .icon-btn:hover { background: #f1f3f7; color: var(--ink); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.green { background: var(--green-bg); color: var(--green); border-color: #bdeed6; } .badge.blue { background: var(--blue-bg); color: var(--blue); border-color: #c6d9fd; }
.badge.amber { background: var(--amber-bg); color: var(--amber); border-color: #f7dfa8; } .badge.red { background: var(--red-bg); color: var(--red); border-color: #f7c6c3; } .badge.grey { background: #f1f3f7; color: var(--ink-2); border-color: #e2e5ec; }
.badge.violet { background: var(--violet-bg); color: var(--violet); } .badge.cyan { background: var(--cyan-bg); color: var(--cyan); } .badge.pink { background: var(--pink-bg); color: var(--pink); }
.badge.orange { background: var(--orange-bg); color: var(--orange); } .badge.teal { background: var(--teal-bg); color: var(--teal); }
.badge.gold { background: var(--gold-soft); color: #8a6114; border-color: #efd9a6; }

/* ---------- tables ---------- */
.table-tools { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; position: relative; }
.table-tools .search { border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 11px; min-width: 240px; font: inherit; background: #f7f8fa; }
.table-tools .search:focus { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); border-color: var(--brand); background: #fff; }
.scroll-x { overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; color: #5b6478; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 16px; background: #f8f9fb; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; position: sticky; top: 0; }
.tbl th.sortable { cursor: pointer; } .tbl th.sortable:hover { color: var(--brand); }
.tbl td { padding: 11px 16px; border-bottom: 1px solid #f0f2f6; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:nth-child(even) td { background: #fcfcfd; }
.tbl tr.clickable { cursor: pointer; } .tbl tr.clickable:hover td { background: #f4f6fe; }
.tbl tr.row-warn td { background: #fffaeb !important; } .tbl tr.row-danger td { background: #fef4f3 !important; }
.tbl td.empty { text-align: center; color: var(--muted); padding: 40px; }
.tbl td.num, .tbl th.num { text-align: right; }
.pager { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.col-menu { position: absolute; right: 14px; top: 52px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px 12px; z-index: 20; max-height: 360px; overflow-y: auto; min-width: 220px; }
.col-menu label { display: flex; gap: 8px; align-items: center; padding: 4px 2px; font-size: 13px; cursor: pointer; }
.mini { width: 100%; border-collapse: collapse; font-size: 13px; } .mini th, .mini td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; } .mini th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; background: #fafbfc; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid.g3f { grid-template-columns: repeat(3, minmax(0, 1fr)); } .form-grid.g4f { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .field.full { grid-column: 1 / -1; }
.field.inline { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 8px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); } .req { color: var(--red); }
.field input, .field select, .field textarea, .inp { border: 1px solid var(--line-2); border-radius: 10px; padding: 8.5px 11px; font: inherit; background: #fff; width: 100%; min-width: 0; color: var(--ink); transition: border-color .15s, box-shadow .15s; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.field input:hover, .field select:hover, .field textarea:hover, .inp:hover { border-color: #c3c9d6; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.field input[type=checkbox] { width: auto; accent-color: var(--brand); box-shadow: none; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }
.help { color: var(--muted); font-size: 11.5px; }
.form-section { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 700; border-bottom: 1px solid var(--line); padding: 10px 0 6px; margin-top: 8px; }
.form-error { color: var(--red); margin-top: 10px; font-weight: 600; min-height: 1em; white-space: pre-wrap; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 0; } .check { font-weight: 500 !important; display: flex; gap: 6px; align-items: center; }
.filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; } .filters .field { min-width: 150px; }
.page-head .inp, .filters .inp, .table-tools .inp, .hero .inp { width: auto; }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(9,14,30,.55); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 18px; width: min(700px, 100%); box-shadow: 0 30px 80px -20px rgba(9,14,30,.5); overflow: hidden; animation: pop .18s ease-out; border: 1px solid rgba(255,255,255,.6); }
.modal.wide { width: min(1080px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 20px 22px; max-height: 72vh; overflow-y: auto; }
.modal-foot { padding: 13px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #fafbfc; }

#toasts { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: #0d1321; color: #fff; padding: 12px 16px 12px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(8px); transition: .25s; max-width: 420px; border-left: 4px solid #34d399; font-weight: 500; }
.toast.show { opacity: 1; transform: none; } .toast.err { border-left-color: #f87171; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { border: none; background: none; padding: 10px 14px; font: inherit; font-weight: 600; font-size: 13.4px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; transition: color .15s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; font-size: 13px; } .dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 500; }

.alerts { display: flex; flex-direction: column; gap: 7px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: inherit; border: 1px solid transparent; }
.alert.danger { background: #fef4f3; border-color: #f9d3d0; } .alert.warn { background: #fffaeb; border-color: #f6e2ad; } .alert.info { background: #f2f6ff; border-color: #d3e0fd; }
.alert b { white-space: nowrap; } a.alert:hover { text-decoration: none; filter: brightness(.98); }
.notice { background: #fffaeb; border: 1px solid #f3dc9f; color: #6e4508; padding: 11px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 14px; }
.notice.info { background: #f2f5ff; border-color: #d3dcfb; color: #1c2a6b; } .notice.good { background: #effbf5; border-color: #b9ebd2; color: #075238; }

/* stepper */
.stepper { display: flex; overflow-x: auto; padding: 6px 0; }
.step { flex: 1; min-width: 120px; position: relative; padding: 0 6px; text-align: center; }
.step .dot { width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 7px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: #e8ebf1; color: #6b7386; position: relative; z-index: 1; border: 3px solid #fff; box-shadow: 0 0 0 1px #e2e5ec; }
.step::before { content: ''; position: absolute; top: 16px; left: -50%; right: 50%; height: 3px; border-radius: 2px; background: #e8ebf1; }
.step:first-child::before { display: none; }
.step.Completed .dot { background: #0e9467; color: #fff; box-shadow: 0 0 0 1px #0e9467; } .step.Completed::before { background: #0e9467; }
.step.In\ Progress .dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-ring); } .step.Skipped .dot { background: #cdd2dc; color: #fff; text-decoration: line-through; }
.step.On\ Hold .dot { background: #d48a0c; color: #fff; }
.step .nm { font-size: 12px; font-weight: 700; } .step .st { font-size: 11px; color: var(--muted); }
.progress-mini { display: flex; gap: 2px; } .progress-mini span { width: 14px; height: 7px; border-radius: 3px; background: #e5e8ee; }
.progress-mini span.Completed { background: #10b981; } .progress-mini span.In\ Progress { background: var(--brand); } .progress-mini span.Skipped { background: #cdd2dc; } .progress-mini span.On\ Hold { background: #e5a11c; }
.bar { height: 8px; background: #eef0f5; border-radius: 99px; overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--brand)); }

.chart-box { position: relative; height: 270px; }

/* AI */
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 920px; padding: 12px 16px; border-radius: 14px; } .msg.user { align-self: flex-end; background: var(--grad); color: #fff; box-shadow: var(--shadow-md); }
.msg.bot { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); } .msg.bot p { margin: 0 0 8px; white-space: pre-wrap; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; } .chip-q { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--ink-2); }
.chip-q:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* ---------- login (split screen) ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); background: #fff; }
.login-art { position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column;
  background: radial-gradient(60% 50% at 85% 10%, rgba(217,169,67,.30) 0%, transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(74,108,240,.35) 0%, transparent 60%),
  repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 2px, transparent 2px 16px), linear-gradient(160deg, #0a1022 0%, #121d44 55%, #1a2c78 100%); }
.login-art::after { content: ''; position: absolute; right: -160px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(217,169,67,.25); box-shadow: 0 0 0 60px rgba(255,255,255,.02), 0 0 0 120px rgba(255,255,255,.015); }
.login-art .la-brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.login-art .la-brand .brand-logo, .login-art .la-brand img { width: 54px; height: 54px; border-radius: 14px; background: #fff; padding: 5px; object-fit: contain; }
.login-art .la-brand .brand-mark { width: 54px; height: 54px; font-size: 18px; border-radius: 14px; }
.login-art .la-name { font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.login-art .la-sub { color: #d9b66a; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.login-art .la-mid { margin: auto 0; position: relative; z-index: 1; max-width: 520px; padding: 40px 0; }
.login-art h2 { font-family: var(--font-head); font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 800; }
.login-art h2 em { font-style: normal; background: linear-gradient(90deg, #f3d38b, #d9a943); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-art p { color: #b7c0dc; font-size: 15px; margin: 0 0 26px; }
.la-feats { display: grid; gap: 12px; }
.la-feat { display: flex; gap: 12px; align-items: center; color: #dfe4f3; font-size: 14px; }
.la-feat span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #e9c677; flex: none; }
.la-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; } .la-tags span { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #c9d0e6; }
.login-art .la-foot { position: relative; z-index: 1; color: #7f89a8; font-size: 12px; }
.login-panel { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.login-box { width: min(400px, 100%); }
.login-box .lb-mobile-brand { display: none; }
.login-box h1 { font-size: 27px; margin: 0 0 6px; } .login-box > p { margin: 0 0 26px; color: var(--muted); }
.login-box .field { margin-top: 16px; } .login-box .field label { font-size: 13px; }
.login-box .field input { padding: 11px 13px; font-size: 14.5px; border-radius: 11px; }
.input-ic { position: relative; } .input-ic > svg.ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #8a92a6; width: 17px; height: 17px; pointer-events: none; }
.input-ic input { padding-left: 40px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #6b7386; cursor: pointer; padding: 6px 8px; border-radius: 8px; font: 600 12px "Inter", sans-serif; }
.pw-toggle:hover { background: #f1f3f7; color: var(--ink); }
.caps { display: none; margin-top: 6px; font-size: 12px; color: var(--amber); font-weight: 600; } .caps.on { display: block; }
.login-box .btn.primary { width: 100%; justify-content: center; margin-top: 22px; padding: 12px; font-size: 14.5px; border-radius: 11px; }
.login-err { display: none; margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 13px; font-weight: 500; gap: 10px; align-items: flex-start; }
.login-err.on { display: flex; } .login-err.warn { background: #fffaeb; border: 1px solid #f3dc9f; color: #6e4508; } .login-err.lock { background: #fef4f3; border: 1px solid #f7c6c3; color: #8f1b17; }
.login-err svg.ic { flex: none; margin-top: 1px; }
.login-secure { display: flex; align-items: center; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.login-secure svg.ic { color: #0e9467; width: 16px; height: 16px; }
.strength { display: flex; gap: 4px; margin-top: 8px; } .strength i { flex: 1; height: 4px; border-radius: 4px; background: #e5e8ee; }
.strength.s1 i:nth-child(-n+1) { background: #e5534b; } .strength.s2 i:nth-child(-n+2) { background: #e5a11c; } .strength.s3 i:nth-child(-n+3) { background: #4a8fe7; } .strength.s4 i { background: #0e9467; }
.rules { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.rules li::before { content: '○'; margin-right: 7px; } .rules li.ok { color: var(--green); } .rules li.ok::before { content: '●'; }
@media (max-width: 960px) { .login { grid-template-columns: 1fr; } .login-art { display: none; } .login-box .lb-mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; } }

.loading { padding: 40px; text-align: center; color: var(--muted); }
.route-row { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.route-row .seq { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; font-size: 12px; } .route-row select, .route-row input { max-width: 320px; }
.line-items .tbl td { padding: 5px 6px; } .line-items input, .line-items select { width: 100%; min-width: 70px; border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 7px; font: inherit; }
.calc-trace { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px; white-space: pre-wrap; }
.tag-list { display: flex; flex-wrap: wrap; gap: 4px; } .tag { background: #eef1fd; color: #1f37a8; border-radius: 6px; padding: 2px 7px; font-size: 11.5px; font-weight: 600; }

/* CRM cards */
.cust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.cust-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.cust-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cust-card .top { display: flex; gap: 12px; align-items: center; }
.cust-card .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; } .cust-card .stats div { background: #f8fafc; border-radius: 10px; padding: 7px 8px; } .cust-card .stats b { display: block; font-size: 14px; }
.profile-hero { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, #f6f7fb, #eef1fd); border: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.profile-hero .avatar { width: 64px; height: 64px; font-size: 22px; border-radius: 18px; }

/* pipeline */
.pipe { display: grid; gap: 12px; }
.pipe-col { background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; min-height: 160px; display: flex; flex-direction: column; }
.pipe-col .ph { padding: 10px 12px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 14px 14px 0 0; background: #fff; }
.pipe-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.04); border-left: 3px solid var(--c); }
.pipe-card:hover { box-shadow: var(--shadow); }

/* reel size chart & godown */
.matrix { border-collapse: separate; border-spacing: 4px; font-size: 12.5px; }
.matrix th { font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 6px; white-space: nowrap; position: sticky; top: 0; background: #fff; }
.matrix th.mat { writing-mode: horizontal-tb; text-align: center; max-width: 120px; white-space: normal; }
.matrix td { text-align: center; padding: 6px 4px; border-radius: 8px; min-width: 64px; }
.matrix td.size { font-weight: 800; color: var(--ink); background: #f1f5f9; position: sticky; left: 0; }
.matrix td.cell { cursor: pointer; } .matrix td.cell:hover { outline: 2px solid var(--brand); }
.matrix td.has { background: color-mix(in srgb, var(--c) 18%, white); color: color-mix(in srgb, var(--c) 80%, black); font-weight: 700; }
.matrix td small { display: block; font-weight: 500; opacity: .8; font-size: 10.5px; }
.godown { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.gline { min-width: 170px; background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 8px; flex: none; }
.gline h4 { margin: 2px 4px 8px; font-size: 13px; display: flex; justify-content: space-between; }
.grow { background: #fff; border: 1px dashed var(--line-2); border-radius: 10px; padding: 6px; margin-bottom: 6px; }
.grow .rl { font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.reel-chip { display: inline-flex; align-items: center; gap: 4px; margin: 2px; padding: 3px 7px; border-radius: 7px; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--c); cursor: pointer; }
.reel-chip.tukda { background: #fff; color: var(--c); border: 1.5px dashed var(--c); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; } .legend span { display: inline-flex; gap: 6px; align-items: center; } .legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }

/* estimator */
.est { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr); gap: 18px; align-items: start; }
.est-result { position: sticky; top: 76px; }
.big-figure { font-size: 40px; font-weight: 900; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.layer-row { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.layer-row .lname { font-weight: 700; font-size: 12.5px; display: flex; align-items: center; gap: 6px; } .layer-row .lname i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.sheet-viz { background: repeating-linear-gradient(45deg, #fef3c7, #fef3c7 6px, #fde68a 6px, #fde68a 12px); border: 2px solid #d97706; border-radius: 6px; position: relative; margin: 6px auto 0; display: grid; place-items: center; color: #78350f; font-weight: 800; font-size: 12px; text-align: center; }
.cost-bars .cb { display: grid; grid-template-columns: 120px 1fr 80px; gap: 8px; align-items: center; font-size: 12.5px; padding: 3px 0; }
.stack-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: #eef1f7; } .stack-bar i { display: block; height: 100%; }

@media (max-width: 1200px) { .est { grid-template-columns: 1fr; } .est-result { position: static; } }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } .span2 { grid-column: auto; } .form-grid.g4f { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .side { transform: none; } body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 30; }
  .topbar .menu-btn { display: inline-block; } .topbar { padding: 0 12px; } .topbar .hide-sm { display: none; }
  #main { padding: 14px; } .g2, .g3, .g4 { grid-template-columns: 1fr; } .form-grid, .form-grid.g3f, .form-grid.g4f { grid-template-columns: 1fr; }
  .page-head .row { flex-wrap: wrap; } .hero { padding: 20px; }
}
@media print { .side, .topbar, .no-print, .demo-banner { display: none !important; } .app { display: block; } #main { padding: 0; } .card { box-shadow: none; } }

.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } @media (max-width: 1300px) { .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 600px) { .kpis.k4 { grid-template-columns: 1fr; } }
.ply-tbl td { padding: 6px 8px; } .ply-tbl .inp { padding: 6px 8px; } .ply-tbl .lname { font-weight: 700; display: flex; gap: 6px; align-items: center; white-space: nowrap; } .ply-tbl .lname i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.measured { display: inline-block; min-width: 54px; padding: 5px 8px; border-radius: 8px; background: #ecfdf5; color: #047857; text-align: center; }
.plies { display: flex; flex-direction: column; gap: 10px; }
.ply { border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 12px; padding: 10px 12px; background: #fcfdff; }
.ply-name { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; } .ply-name i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.ply-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 10px; }
.ply-grid .wide { grid-column: span 2; }
.pf { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .pf > span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.pf .inp { padding: 7px 9px; }
@media (max-width: 700px) { .ply-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ply-grid .wide { grid-column: 1 / -1; } }
.type-pick { display: flex; flex-direction: column; gap: 6px; }
.type-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.type-tile { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; border: 1.5px solid var(--line-2); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.type-tile svg.ic { grid-row: span 2; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.type-tile small { color: var(--muted); font-size: 11.5px; } .type-tile:hover { border-color: #9fb0f0; }
.type-tile.on { border-color: var(--brand); background: linear-gradient(135deg, #eef1fd, #f5f7ff); box-shadow: 0 4px 14px rgba(79,70,229,.18); } .type-tile.on svg.ic { background: var(--brand); color: #fff; }
.fx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.fx { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; background: #fff; } .fx.on { border-color: #c5d0f7; background: #f5f7ff; }
.top-sheets { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-chip { border: 1.5px solid var(--line-2); background: #fff; border-radius: 9px; padding: 5px 10px; font: inherit; font-weight: 700; cursor: pointer; } .sheet-chip small { font-weight: 500; color: var(--muted); }
.sheet-chip.on { border-color: #d97706; background: #fffbeb; color: #92400e; }
@media (max-width: 700px) { .type-row, .fx-grid { grid-template-columns: 1fr; } }
.track-lane { display: flex; gap: 3px; min-width: 260px; }
.tl { flex: 1; min-width: 46px; border-radius: 6px; padding: 3px 5px; background: #eef1f7; color: #64748b; font-size: 10.5px; line-height: 1.2; display: flex; flex-direction: column; }
.tl span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; } .tl small { font-size: 10px; opacity: .9; }
.tl.Completed { background: #d1fae5; color: #047857; } .tl.In-Progress { background: #dfe5fb; color: #1f37a8; box-shadow: inset 0 0 0 1.5px #3d5ae0; } .tl.On-Hold { background: #fef3c7; color: #92400e; }
.tbl td.nw, .tbl td.nw b { white-space: nowrap; }
.ply-grid .wide3 { grid-column: span 3; } @media (max-width: 700px) { .ply-grid .wide3 { grid-column: 1 / -1; } }

/* ---- round 6: artwork, route chips, QC weight journey ---- */
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { position: relative; width: 96px; text-align: center; }
.thumb .tim, .thumb.sm { width: 96px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line, #e5e7eb); background: #f8fafc; cursor: zoom-in; display: flex; align-items: center; justify-content: center; }
.thumb.sm { width: 54px; height: 40px; border-radius: 8px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .pdf { font-weight: 800; color: #b91c1c; font-size: 13px; }
.thumb small { display: block; font-size: 11px; color: #64748b; margin-top: 2px; }
.thumb .x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #ef4444; color: #fff; font-size: 11px; cursor: pointer; }
.rchips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 640px; }
.rchip { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; white-space: nowrap; }
.rchip.Completed { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.rchip.InProgress { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; font-weight: 700; }
.rchip.OnHold { background: #fef3c7; color: #92400e; }
.rchip.Skipped { text-decoration: line-through; opacity: .6; }
.route-preview { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: linear-gradient(90deg, #eef1fd, #f6f7fb); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.route-preview .arrow { color: #9fb0f0; font-weight: 800; }
.qc-calc .notice { margin: 0; }
.wj { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.wj-step { position: relative; padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px dashed #cbd5e1; }
.wj-step.on { background: linear-gradient(135deg, #ecfeff, #eef1fd); border: 1px solid #c5d0f7; }
.wj-step b { font-size: 18px; display: block; margin: 4px 0; }
.wj-n { width: 22px; height: 22px; border-radius: 50%; background: #3d5ae0; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
@media (max-width: 800px) { .wj { grid-template-columns: 1fr 1fr; } }
.notice.warn { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.est-mini { padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, #eef1fd, #f0fdfa); border: 1px solid #dfe5fb; display: flex; flex-direction: column; gap: 2px; }
.est-mini b { font-size: 17px; color: #141d4a; }
.est-mini small { color: #64748b; font-size: 11px; }
.history-card { border: 1px solid #fde68a; background: linear-gradient(135deg, #fffbeb, #fff7ed); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.history-card h4 { margin: 0 0 8px; font-size: 13px; color: #92400e; letter-spacing: .02em; }
.mode-toggle { display: inline-flex; background: #f1f5f9; border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.mode-toggle button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 700; color: #475569; cursor: pointer; }
.mode-toggle button.on { background: #fff; color: #2643c9; box-shadow: 0 1px 4px rgba(15,23,42,.12); }
.fit-diagram { display: grid; gap: 2px; width: 120px; height: 120px; border: 3px solid #3d5ae0; border-radius: 6px; background: #c5d0f7; padding: 2px; }
.fit-diagram i { background: #fff; border-radius: 2px; }
.route-row.not-req { opacity: .55; }
.fx-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chip { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 999px; border: 1px solid #e2e8f0; cursor: pointer; font-weight: 600; font-size: 13px; }
.fx-chip.on { background: #f5f3ff; border-color: #a78bfa; color: #5b21b6; }
.tp-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.tp-step { display: flex; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid #e2e8f0; border-top: 4px solid var(--c); background: #fff; }
.tp-n { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.tp-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.seg button { border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 8px; padding: 5px 9px; font-size: 12px; font-weight: 600; cursor: pointer; color: #475569; }
.seg button.on { background: #2643c9; border-color: #2643c9; color: #fff; }
.tp-b .badge { white-space: normal; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; flex: none; }
.login-logo { height: 72px; max-width: 220px; object-fit: contain; margin: 0 auto 8px; display: block; }
.brand-name { line-height: 1.15; }
.quote-logo { height: 64px; max-width: 200px; object-fit: contain; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 70px 1fr 110px; gap: 10px; align-items: center; }
.bar { height: 10px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #3d5ae0, #3d5ae0); border-radius: 999px; }
.press-card { padding: 16px; text-decoration: none; color: inherit; display: block; transition: transform .15s; }
.press-card:hover { transform: translateY(-2px); }
.style-ref { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px dashed #c5d0f7; border-radius: 12px; background: #fafaff; }
.style-ref svg { width: 150px; height: 104px; flex: none; }
.style-ref .small { max-width: 220px; }
.brand-name { letter-spacing: 0 !important; font-size: 14px !important; }
.loc { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.loc.press { background: #f6f7fb; color: #be185d; border: 1px solid #fbcfe8; }
.loc.inhouse { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.seq-list { display: flex; flex-direction: column; gap: 4px; }
.seq-item { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.plan-table td { vertical-align: middle; }
.badge.pink { background: #fce7f3; color: #be185d; }
.spots { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; width: 100%; }
.spot-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fx .inp[placeholder] { min-width: 58px; }

/* ---- Admin panel & security ---- */
.hide-sm {}
.ap-hero { padding-bottom: 22px; }
.ap-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f0cf85; margin-bottom: 8px; }
.ap-eyebrow svg.ic { width: 15px; height: 15px; }
.ap-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 22px; position: relative; z-index: 1; }
.ap-stat { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 13px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(4px); }
.ap-stat-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #e8ecf8; flex: none; }
.ap-stat.good .ap-stat-ic { background: rgba(52,211,153,.18); color: #6ee7b7; } .ap-stat.bad .ap-stat-ic { background: rgba(248,113,113,.22); color: #fca5a5; } .ap-stat.warn .ap-stat-ic { background: rgba(251,191,36,.2); color: #fcd34d; }
.ap-stat-v { font-family: var(--font-head); font-size: 22px; font-weight: 800; line-height: 1.05; } .ap-stat-l { font-size: 11.5px; color: #c4cbe2; } .ap-stat-s { font-size: 11px; color: #e3c27a; }
.ap-locked { background: #fff; border: 1px solid #f5c7c4; border-left: 4px solid var(--red); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; box-shadow: var(--shadow); }
.ap-locked > .row { color: var(--red); margin-bottom: 8px; } .ap-locked > .row svg.ic { width: 17px; height: 17px; }
.ap-locked-row { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.ap-user { display: flex; gap: 10px; align-items: center; } .ap-user .avatar { width: 34px; height: 34px; font-size: 12.5px; } .ap-user b { font-weight: 600; }
.ap-pop { width: 220px; }
.ap-editor { display: flex; flex-direction: column; gap: 4px; }
.ap-step { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); } .ap-step:last-of-type { border-bottom: 0; }
.ap-sn { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #f0cf85; display: grid; place-items: center; font-weight: 800; font-size: 13px; font-family: var(--font-head); }
.ap-sb h4 { margin: 3px 0 10px; font-family: var(--font-head); font-size: 14.5px; } .ap-sb > p { margin: -4px 0 12px; }
.role-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-bottom: 10px; }
.role-tile { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 1.5px solid var(--line-2); background: #fff; border-radius: 12px; padding: 11px 12px; cursor: pointer; font: inherit; color: var(--ink); transition: all .15s; }
.role-tile:hover { border-color: #9fb0f0; background: #fafbff; }
.role-tile.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-ring); }
.role-tile.admin.on { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(184,134,43,.18); }
.rt-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f1f3f8; color: var(--ink-2); flex: none; }
.role-tile.on .rt-ic { background: var(--brand); color: #fff; } .role-tile.admin.on .rt-ic, .role-card.admin .rt-ic { background: var(--gold); color: #fff; }
.rt-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .rt-t b { font-size: 13.5px; } .rt-t small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.pm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pm-group { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pm-gh { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); background: #fafbfc; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.pm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; border-bottom: 1px solid #f1f3f6; } .pm-row:last-child { border-bottom: 0; }
.pm-row.changed { background: #fbfaf3; }
.pm-label { font-size: 13px; display: flex; align-items: center; gap: 7px; } .pm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); }
.pm-seg { flex: none; flex-wrap: nowrap; background: #f1f3f7; padding: 3px; border-radius: 9px; gap: 2px; }
.pm-seg button { border: 0; background: transparent; padding: 4px 9px; font-size: 11.5px; border-radius: 7px; color: var(--muted); }
.pm-seg button.on.lv-none { background: #fff; color: var(--ink-2); box-shadow: var(--shadow); } .pm-seg button.on.lv-view { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.pm-seg button.on.lv-edit { background: var(--brand); color: #fff; box-shadow: var(--shadow); } .pm-seg button:disabled { cursor: not-allowed; opacity: .55; }
.pm-seg.disabled button.on.lv-edit { background: var(--gold); opacity: 1; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.role-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; box-shadow: var(--shadow); }
.role-card.admin { background: linear-gradient(135deg, #fffdf6, #fff); border-color: #efd9a6; }
.role-card p { margin: 10px 0; }
.rc-perms { display: flex; flex-direction: column; gap: 6px; } .rc-perms > div { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.lvl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; margin-right: 2px; } .lvl.edit { background: var(--brand); color: #fff; } .lvl.view { background: var(--blue-bg); color: var(--blue); }
.tag.grey { background: #f1f3f7; color: var(--ink-2); }
.cred { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .cred > div { border: 1px dashed #c9cfdb; border-radius: 12px; padding: 12px 14px; background: #fafbfc; }
.cred small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 4px; } .cred b { font-size: 17px; letter-spacing: .02em; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.checks-list { display: flex; flex-direction: column; gap: 4px; }
.ck { display: flex; gap: 11px; align-items: flex-start; padding: 9px 4px; border-bottom: 1px dashed var(--line); } .ck:last-child { border-bottom: 0; }
.ck-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; } .ck-ic svg.ic { width: 15px; height: 15px; }
.ck.ok .ck-ic { background: var(--green-bg); color: var(--green); } .ck.bad .ck-ic { background: var(--amber-bg); color: var(--amber); }
.badge svg.ic { width: 12px; height: 12px; }
@media (max-width: 1200px) { .ap-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pm { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .ap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hide-sm { display: none !important; } .cred { grid-template-columns: 1fr; } .ap-step { grid-template-columns: 1fr; } .ap-sn { display: none; } }
.ap-user b { white-space: nowrap; } .ap-user .small { white-space: nowrap; }
.lb-mobile-brand .la-name { font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--ink); }
.lb-mobile-brand .la-sub { color: var(--gold); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.lb-mobile-brand .brand-logo, .lb-mobile-brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; border: 1px solid var(--line); padding: 3px; }

/* ---- round 11: illustrations, motion & polish ---- */
.art { display: block; width: 100%; height: auto; }
.art-float { animation: floaty 6s ease-in-out infinite; transform-origin: center; }
.art-float2 { animation: floaty 7s ease-in-out infinite reverse; }
.art-twinkle path { animation: twinkle 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.art-twinkle path:nth-child(2) { animation-delay: .9s; } .art-twinkle path:nth-child(3) { animation-delay: 1.7s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: center; position: relative; z-index: 1; }
.hero-art { align-self: end; margin: -10px -6px -18px 0; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.hero-filter { margin-top: 14px; }
.hero-dash .qa { margin-top: 16px; }
.art-login { width: min(360px, 80%); margin: 0 0 18px -8px; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
@media (max-width: 1100px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } }

/* page header icon: rich gradient tile */
.page-icon { background: linear-gradient(145deg, color-mix(in srgb, var(--c, #2643c9) 92%, white), color-mix(in srgb, var(--c, #2643c9) 75%, black)); color: #fff; border: 0;
  box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--c, #2643c9) 60%, transparent), inset 0 1px 0 rgba(255,255,255,.3); }

/* card header icon */
.card-head h3 .ch-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, #2643c9) 11%, white); color: var(--c, var(--brand)); }
.card-head h3 .ch-ic svg.ic { width: 15px; height: 15px; }
.card { transition: box-shadow .2s, border-color .2s; } .card:hover { box-shadow: var(--shadow-md); }

/* empty states */
.tbl td.empty { padding: 34px 20px 38px; background: #fff !important; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); }
.empty-state .art-empty { width: 170px; margin-bottom: 4px; animation: floaty 6s ease-in-out infinite; }
.empty-state b { color: var(--ink); font-family: var(--font-head); font-size: 15px; }
.empty-state span { font-size: 12.5px; }
.empty-state.sm svg.ic { width: 28px; height: 28px; color: #9aa3b8; margin-bottom: 4px; }

/* skeleton loading */
.skel { display: block; background: linear-gradient(90deg, #eceef3 0%, #f6f7fa 40%, #eceef3 80%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.skel-page .kpis { margin-bottom: 18px; }

/* staggered entrance */
#main .kpis > *, #main > div > .card, #main > div > .grid > *, .role-grid > *, .gs-step { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
#main .kpis > *:nth-child(2) { animation-delay: .04s; } #main .kpis > *:nth-child(3) { animation-delay: .08s; } #main .kpis > *:nth-child(4) { animation-delay: .12s; }
#main .kpis > *:nth-child(5) { animation-delay: .16s; } #main .kpis > *:nth-child(6) { animation-delay: .2s; }
#main > div > .grid > *:nth-child(2) { animation-delay: .08s; } #main > div > .grid > *:nth-child(3) { animation-delay: .14s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* buttons: soft shine on primary & gold */
.btn.primary, .btn.gold { position: relative; overflow: hidden; }
.btn.primary::after, .btn.gold::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.btn.primary:hover::after, .btn.gold:hover::after { transform: translateX(120%); }
.btn.gold:hover { filter: brightness(1.05); box-shadow: 0 6px 16px rgba(184,134,43,.35); }

/* sidebar & table micro-interactions */
.nav a { transition: background .15s, color .15s, padding-left .15s; } .nav a:hover { padding-left: 13px; }
.nav a.active .chip { box-shadow: 0 0 14px rgba(217,169,67,.35); }
.tbl tr.clickable td:first-child { box-shadow: inset 3px 0 0 transparent; transition: box-shadow .15s; } .tbl tr.clickable:hover td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.tab { position: relative; } .tab::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: -1px; height: 2px; background: var(--brand); transition: left .2s, right .2s; } .tab:hover::after { left: 14px; right: 14px; opacity: .35; } .tab.active::after { left: 0; right: 0; opacity: 1; }
.kpi-ic { transition: transform .2s; } a.kpi:hover .kpi-ic { transform: scale(1.08) rotate(-4deg); }

/* toasts */
.toast { display: flex; align-items: center; gap: 10px; } .t-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(52,211,153,.18); color: #6ee7b7; flex: none; }
.toast.err .t-ic { background: rgba(248,113,113,.2); color: #fca5a5; } .t-ic svg.ic { width: 14px; height: 14px; }

/* getting started */
.gs { padding: 18px 20px; background: linear-gradient(135deg, #fff 0%, #fffdf7 100%); border-color: #efe3c4; }
.gs-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.gs-ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold-2) calc(var(--p) * 1%), #efe6d2 0); position: relative; flex: none; }
.gs-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; } .gs-ring b { position: relative; font-size: 13px; font-family: var(--font-head); }
.gs-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.gs-step { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: all .15s; }
.gs-step:hover { text-decoration: none; border-color: #9fb0f0; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.gs-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.gs-step.ok { background: #f7fcf9; border-color: #cdeedd; } .gs-step.ok .gs-ic { background: var(--green-bg); color: var(--green); } .gs-step.ok b { color: var(--muted); text-decoration: line-through; text-decoration-color: #b7c0cf; }
.gs-t { display: flex; flex-direction: column; flex: 1; min-width: 0; } .gs-t b { font-size: 13px; } .gs-t small { color: var(--muted); font-size: 11.5px; }
.gs-go { transform: rotate(-90deg); color: #9aa3b8; width: 16px !important; height: 16px !important; }
.empty-state.boxed { padding: 28px 16px 30px; border: 1px dashed var(--line-2); border-radius: 14px; background: linear-gradient(180deg, #fff, #fafbfd); text-align: center; }
.empty-state.boxed > span, .empty-state.compact > span { max-width: 520px; text-align: center; font-size: 13px; }
.empty-state.compact { padding: 8px 0 4px; } .empty-state.compact .art-empty { width: 110px; }
.bk-status { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fafbfc; }
.bk-status.on { background: #effbf5; border-color: #b9ebd2; } .bk-status.bad { background: #fef4f3; border-color: #f7c6c3; }
.bk-dot { width: 12px; height: 12px; border-radius: 50%; background: #b6bdcc; flex: none; }
.bk-status.on .bk-dot { background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.18); animation: pulse 2s infinite; } .bk-status.bad .bk-dot { background: var(--red); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,.18); } 50% { box-shadow: 0 0 0 8px rgba(16,185,129,.06); } }
.bk-steps { margin: 0; padding-left: 20px; display: grid; gap: 12px; font-size: 13.4px; } .bk-steps li::marker { color: var(--gold); font-weight: 800; }
.db-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .db-big > div { background: #f7f8fb; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.db-big small { display: block; color: var(--muted); font-size: 11.5px; } .db-big b { font-family: var(--font-head); font-size: 18px; }

/* ---- printable documents (A4 preview → print / PDF) ---- */
.pd-overlay { position: fixed; inset: 0; z-index: 90; background: #5b6275; display: flex; flex-direction: column; animation: fade .15s; }
.pd-toolbar { display: flex; gap: 8px; align-items: center; padding: 10px 18px; background: #0b1222; color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.pd-toolbar b { font-family: var(--font-head); } .pd-toolbar .seg { background: rgba(255,255,255,.08); } .pd-toolbar .seg button { color: #c9d0e6; } .pd-toolbar .seg button.on { background: #fff; color: var(--ink); }
.pd-x { color: #fff !important; font-size: 16px; }
.pd-scroll { flex: 1; overflow: auto; padding: 26px 16px 60px; }
.pd-page { width: 210mm; min-height: 297mm; margin: 0 auto; background: #fff; color: #111; padding: 12mm 12mm 10mm; box-shadow: 0 10px 40px rgba(0,0,0,.35); font: 11.5px/1.45 "Inter", Arial, sans-serif; display: flex; flex-direction: column; }
.pd-page.landscape { width: 297mm; min-height: 210mm; }
.pd-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 3px solid #0b1222; position: relative; }
.pd-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: #b8862b; }
.pd-co { display: flex; gap: 12px; align-items: flex-start; }
.pd-logo { width: 62px; height: 62px; object-fit: contain; }
.pd-mark { width: 56px; height: 56px; border-radius: 10px; background: #0b1222; color: #d9a943; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.pd-name { font-family: var(--font-head); font-size: 19px; font-weight: 800; color: #0b1222; line-height: 1.15; } .pd-tag { color: #8a6114; font-size: 10.5px; font-weight: 600; margin-top: 1px; }
.pd-addr { white-space: pre-line; color: #444; font-size: 10.5px; margin-top: 4px; }
.pd-title { text-align: right; min-width: 180px; } .pd-doc { font-family: var(--font-head); font-size: 17px; font-weight: 800; color: #b8862b; letter-spacing: .06em; text-transform: uppercase; }
.pd-code { font-size: 13px; font-weight: 700; margin-top: 2px; } .pd-date { color: #444; font-size: 11px; }
.pd-body { flex: 1; padding-top: 14px; }
.pd-sec { margin-bottom: 12px; break-inside: avoid-page; } .pd-sh { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #0b1222; border-left: 3px solid #b8862b; padding: 1px 0 1px 7px; margin-bottom: 6px; }
.pd-kv { width: 100%; border-collapse: collapse; } .pd-kv th, .pd-kv td { border: 1px solid #cfd3db; padding: 4px 7px; text-align: left; vertical-align: top; }
.pd-kv th { background: #f3f4f7; color: #333; font-weight: 600; width: 16%; white-space: nowrap; } .pd-kv.c3 th { width: 11%; } .pd-kv.c1 th { width: 25%; }
.pd-tbl { width: 100%; border-collapse: collapse; } .pd-tbl th, .pd-tbl td { border: 1px solid #cfd3db; padding: 5px 7px; text-align: left; vertical-align: top; }
.pd-tbl th { background: #0b1222; color: #f0d9a6; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.pd-tbl tbody tr:nth-child(even) td { background: #f8f9fb; } .pd-tbl tfoot td { font-weight: 800; background: #f3f4f7; }
.pd-tbl.compact th, .pd-tbl.compact td { padding: 3px 5px; font-size: 10px; } .pd-tbl .num { text-align: right; white-space: nowrap; } .pd-empty { text-align: center !important; color: #777; padding: 14px !important; }
.pd-tbl tr { break-inside: avoid; }
.pd-note { border: 1px dashed #b8862b; background: #fffaf0; padding: 7px 10px; border-radius: 6px; margin-bottom: 10px; white-space: pre-wrap; }
.pd-sign { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 24px; margin-top: 34px; break-inside: avoid; text-align: center; color: #333; font-size: 10.5px; }
.pd-line { border-top: 1px solid #555; margin-bottom: 4px; height: 0; margin-top: 26px; }
.pd-foot { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #cfd3db; padding-top: 6px; margin-top: 12px; color: #666; font-size: 9.5px; }
.pd-chk { display: inline-block; width: 11px; height: 11px; border: 1px solid #555; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }
.pd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .pd-art { max-width: 100%; max-height: 160px; border: 1px solid #cfd3db; border-radius: 6px; }
.pd-big { font-size: 14px; font-weight: 800; }
@media print {
  body.printing > *:not(.pd-overlay) { display: none !important; }
  body.printing { background: #fff !important; }
  body.printing .pd-overlay { position: static; background: #fff; display: block; }
  body.printing .pd-toolbar { display: none; }
  body.printing .pd-scroll { padding: 0; overflow: visible; }
  body.printing .pd-page { width: auto; min-height: 0; box-shadow: none; padding: 0; margin: 0; }
  .pd-tbl th { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .pd-head, .pd-mark, .pd-tbl tbody tr:nth-child(even) td, .pd-kv th, .pd-note { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 860px) { .pd-page, .pd-page.landscape { width: 100%; min-height: 0; padding: 14px; } .pd-toolbar { flex-wrap: wrap; } }
.pd-toolbar .seg button { background: transparent; border: 0; padding: 5px 11px; border-radius: 7px; cursor: pointer; font: inherit; font-size: 12px; }
.pd-page.pd-export { width: 194mm !important; min-height: 0 !important; padding: 0 !important; box-shadow: none !important; margin: 0 !important; }
.pd-page.landscape.pd-export { width: 281mm !important; }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; white-space: nowrap; }
.row-actions .icon-btn { font-size: 14px; padding: 5px 7px; text-decoration: none; } .row-actions .icon-btn.danger:hover { background: var(--red-bg); }
.tag.gold { background: var(--gold-soft); color: #8a6114; }
/* import from Excel */
.imp-drop { border: 2px dashed var(--line-2); border-radius: 16px; padding: 36px 20px; text-align: center; cursor: pointer; background: #fafbfd; display: flex; flex-direction: column; gap: 6px; align-items: center; transition: all .15s; }
.imp-drop:hover, .imp-drop.over { border-color: var(--brand); background: var(--brand-soft); }
.imp-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 24px; margin-bottom: 6px; box-shadow: 0 8px 18px -6px rgba(38,67,201,.5); }
.imp-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.imp-sum > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fafbfc; } .imp-sum b { display: block; font-family: var(--font-head); font-size: 22px; } .imp-sum small { color: var(--muted); }
.imp-sum .ok { background: #effbf5; border-color: #b9ebd2; } .imp-sum .warn { background: #fffaeb; border-color: #f3dc9f; } .imp-sum .bad { background: #fef4f3; border-color: #f7c6c3; }
.imp-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 10px; padding: 7px 12px 7px 9px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; transition: all .15s; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.back-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.back-btn:disabled { opacity: .4; cursor: default; box-shadow: none; }
.back-btn svg.ic { width: 17px; height: 17px; }

/* rate: cost sheet vs final (party) */
.rate-box { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line, #e3e8f2); border-radius: 12px; background: linear-gradient(180deg, #fffdf6, #fff); }
.rate-box dl { margin: 8px 0; }
.rate-box .badge.warn { background: #fff4e0; color: #9a5a00; }
.rate-box .badge.ok { background: #e7f7ee; color: #1d7a46; }

/* pager: numbered pages + go to page */
.pager { flex-wrap: wrap; row-gap: 8px; }
.pager .pg-nums { display: inline-flex; gap: 4px; align-items: center; }
.pager .pg-btn { min-width: 32px; justify-content: center; }
.pager .pg-gap { padding: 0 2px; color: var(--muted); }
.pager .pg-go { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.pager .pg-input { width: 64px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.pager .pg-size select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin-left: 4px; }
@media print { .pager .pg-go, .pager .pg-size, .pager .pg-nums, .pager .pg-btn { display: none !important; } }
.pager .pg-btn.primary:disabled { opacity: 1; cursor: default; }

/* route inside planning */
.route-mini { padding: 10px 12px; border: 1px dashed var(--line, #d7deea); border-radius: 12px; background: #f8faff; margin-bottom: 12px; }
.route-mini .route-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sheet-plan .reel-sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.soot-tip { color: var(--accent, #7a5a12); }

.stage-picks{display:flex;flex-wrap:wrap;gap:6px}
.chip-check{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid var(--line,#d9dee7);border-radius:999px;font-size:12.5px;cursor:pointer;background:#fff}
.chip-check input{margin:0}
.chip-check.on{background:#eaf1ff;border-color:#3b6fd8;color:#1d3f8f;font-weight:600}

/* आज का काम */
.today-group{margin-bottom:18px}.today-group h3{margin:0 0 8px}
.today-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
.today-card{background:#fff;border:1px solid var(--line,#e3e7ee);border-radius:14px;padding:14px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.today-card.running{border-color:#3b6fd8;box-shadow:0 0 0 2px #3b6fd822}
.today-card .job{font-weight:800;font-size:16px}.today-card .who{margin:4px 0 6px;font-weight:600}
.today-card .facts{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:13px;color:#334155}
.today-card .progress-line{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;margin:8px 0}
.today-btns{display:flex;gap:8px;flex-wrap:wrap}.btn.big{padding:12px 16px;font-size:15px;border-radius:12px;flex:1;min-width:110px}
