/* =========================================================================
   IT Varmine – premium UI (Bootstrap 5.3 + custom design tokens)
   ========================================================================= */
:root {
  --itm-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --itm-primary: #6366f1;
  --itm-primary-2: #8b5cf6;
  --itm-accent: #22d3ee;
  --itm-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #22d3ee 100%);
  --itm-radius: 16px;
  --itm-sb-w: 260px;
  --itm-sb-mini: 78px;
  --bs-primary: #6366f1;
  --bs-primary-rgb: 99, 102, 241;
  --bs-link-color: #6366f1;
  --bs-link-color-rgb: 99, 102, 241;
}
[data-bs-theme="light"] {
  --itm-bg: #f4f6fb;
  --itm-surface: rgba(255, 255, 255, .78);
  --itm-surface-solid: #ffffff;
  --itm-border: rgba(15, 23, 42, .08);
  --itm-text: #0f172a;
  --itm-muted: #64748b;
  --itm-sb-bg: #0f172a;
  --itm-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --bs-body-bg: var(--itm-bg);
  --bs-body-color: var(--itm-text);
}
[data-bs-theme="dark"] {
  --itm-bg: #0b1020;
  --itm-surface: rgba(22, 28, 48, .72);
  --itm-surface-solid: #151b2e;
  --itm-border: rgba(148, 163, 184, .12);
  --itm-text: #e2e8f0;
  --itm-muted: #94a3b8;
  --itm-sb-bg: #070b17;
  --itm-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  --bs-body-bg: var(--itm-bg);
  --bs-body-color: var(--itm-text);
  --bs-border-color: var(--itm-border);
  --bs-secondary-color: var(--itm-muted);
  --bs-tertiary-bg: #10162a;
}
html, body { font-family: var(--itm-font); }
body {
  background: var(--itm-bg);
  background-image:
    radial-gradient(900px 500px at 100% -10%, rgba(99, 102, 241, .14), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(34, 211, 238, .10), transparent 60%);
  background-attachment: fixed;
  color: var(--itm-text);
  min-height: 100vh;
}
.fw-700 { font-weight: 700 !important; } .fw-800 { font-weight: 800 !important; }
.text-secondary { color: var(--itm-muted) !important; }
a { text-decoration: none; }
::selection { background: rgba(99, 102, 241, .35); }

/* ---------- buttons ---------- */
.btn { border-radius: 12px; font-weight: 600; }
.btn-primary { background: var(--itm-grad); background-size: 200% 200%; border: 0; box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .7); transition: background-position .4s, transform .15s, box-shadow .2s; }
.btn-primary:hover, .btn-primary:focus { background-position: 100% 50%; transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(99, 102, 241, .85); }
.btn-icon { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--itm-surface); border: 1px solid var(--itm-border); color: var(--itm-text); }
.btn-icon.sm { width: 32px; height: 32px; border-radius: 10px; font-size: .8rem; }
.btn-icon:hover { color: var(--itm-primary); border-color: var(--itm-primary); }
.btn-chip { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; padding: .4rem .85rem; font-size: .8rem; background: rgba(239, 68, 68, .12); color: #ef4444; border: 1px solid rgba(239, 68, 68, .3); }
.btn-chip.on { background: rgba(16, 185, 129, .14); color: #10b981; border-color: rgba(16, 185, 129, .35); }
.seg .btn { border: 1px solid var(--itm-border); color: var(--itm-muted); background: var(--itm-surface); }
.seg .btn-check:checked + .btn { background: var(--itm-grad); color: #fff; border-color: transparent; }

/* ---------- glass cards ---------- */
.glass { background: var(--itm-surface); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--itm-border); border-radius: var(--itm-radius); box-shadow: var(--itm-shadow); }
.card.glass { overflow: visible; }
.card.glass > .card-header, .card.glass > .card-footer { background: transparent; border-color: var(--itm-border); padding: .9rem 1.2rem; }
.card.glass > .card-header { border-radius: var(--itm-radius) var(--itm-radius) 0 0; }
.form-control, .form-select { border-radius: 12px; border-color: var(--itm-border); background-color: var(--itm-surface-solid); }
.form-control:focus, .form-select:focus { border-color: var(--itm-primary); box-shadow: 0 0 0 .2rem rgba(99, 102, 241, .2); }
.form-label { font-weight: 600; font-size: .85rem; }
.section-label { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--itm-muted); font-weight: 700; margin-bottom: .8rem; }

/* ---------- sidebar ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--itm-sb-w); background: var(--itm-sb-bg); color: #cbd5e1; display: flex; flex-direction: column;
  z-index: 1040; transition: width .25s ease, transform .25s ease; border-right: 1px solid rgba(148, 163, 184, .08); }
.sidebar::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 300px at 0 0, rgba(99, 102, 241, .25), transparent 70%); pointer-events: none; }
.sb-brand { display: flex; align-items: center; gap: .8rem; padding: 1.2rem 1.2rem 1rem; color: #fff; position: relative; }
.sb-brand b { display: block; font-size: 1.05rem; letter-spacing: .02em; } .sb-brand small { color: #94a3b8; font-size: .75rem; }
.brand-mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: var(--itm-grad);
  box-shadow: 0 10px 24px -8px rgba(99, 102, 241, .8); }
.brand-mark.sm { width: 40px; height: 40px; border-radius: 12px; font-size: 1.05rem; flex: none; }
.logo-plate { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 12px; padding: .5rem .8rem; flex: none; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6); }
.logo-plate img { display: block; height: 22px; width: auto; }
.logo-plate.mini { display: none; width: 44px; height: 44px; padding: 0; } .logo-plate.mini img { height: 24px; }
.sb-brand { flex-direction: column; align-items: stretch; gap: .5rem; }
.sb-title { line-height: 1.2; } .sb-title b { font-size: .95rem; }
html.sb-mini .logo-plate.mini { display: flex; margin: 0 auto; }
@media (max-width: 991.98px) { html.sb-mini .logo-plate.mini { display: none; } }
.auth-logo { display: inline-flex; background: #fff; border-radius: 14px; padding: .7rem 1.1rem; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.auth-logo img { height: 34px; width: auto; display: block; }
.rep-logo { display: none; margin-bottom: 1rem; } .rep-logo img { height: 40px; }
@media print { .rep-logo { display: block; } }
.sb-nav { padding: .5rem .75rem; overflow-y: auto; flex: 1; position: relative; }
.sb-label { text-transform: uppercase; font-size: .66rem; letter-spacing: .12em; color: #64748b; padding: 1rem .8rem .4rem; font-weight: 700; }
.sb-link { display: flex; align-items: center; gap: .85rem; color: #cbd5e1; padding: .62rem .85rem; border-radius: 12px; margin-bottom: 2px; font-weight: 500; font-size: .92rem; transition: background .2s, color .2s, transform .15s; }
.sb-link i { width: 20px; text-align: center; color: #94a3b8; transition: color .2s; }
.sb-link:hover { background: rgba(148, 163, 184, .08); color: #fff; transform: translateX(2px); }
.sb-link.active { background: linear-gradient(90deg, rgba(99, 102, 241, .35), rgba(99, 102, 241, .05)); color: #fff; box-shadow: inset 3px 0 0 #8b5cf6; }
.sb-link.active i { color: #a5b4fc; }
.sb-foot { padding: 1rem 1.4rem; font-size: .72rem; color: #475569; position: relative; }
.main { margin-left: var(--itm-sb-w); transition: margin .25s ease; min-height: 100vh; }
html.sb-mini .sidebar { width: var(--itm-sb-mini); }
html.sb-mini .sidebar .sb-text { display: none; }
html.sb-mini .sb-link { justify-content: center; }
html.sb-mini .main { margin-left: var(--itm-sb-mini); }
.sb-backdrop { display: none; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); width: var(--itm-sb-w) !important; }
  html.sb-open .sidebar { transform: none; }
  html.sb-open .sb-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 1035; }
  html.sb-mini .sidebar .sb-text { display: initial; }
  .main, html.sb-mini .main { margin-left: 0; }
}

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 1rem; padding: .85rem 1.5rem;
  background: color-mix(in srgb, var(--itm-bg) 80%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--itm-border); }
.page-title { font-size: 1.25rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.user-chip { display: flex; align-items: center; gap: .6rem; border-radius: 14px; padding: .3rem .6rem .3rem .3rem; border: 1px solid var(--itm-border); background: var(--itm-surface); color: var(--itm-text); }
.user-chip small { color: var(--itm-muted); font-size: .7rem; font-weight: 500; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--itm-grad); color: #fff; font-weight: 800; }
.content { padding: 1.5rem; max-width: 1700px; }

/* ---------- dashboard ---------- */
.hero { padding: 1.5rem; position: relative; z-index: 30; }
.hero::after { content: ''; position: absolute; inset: 0; border-radius: var(--itm-radius); pointer-events: none; background: radial-gradient(600px 160px at 90% 0, rgba(139, 92, 246, .16), transparent 70%); }
.search-box { display: flex; gap: .75rem; flex-wrap: wrap; position: relative; z-index: 5; }
.search-ico { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--itm-muted); pointer-events: none; z-index: 2; }
.search-box .form-control, .toolbar .form-control { padding-left: 2.6rem; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; display: none; padding: .4rem; max-height: 360px; overflow: auto; z-index: 1000; box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .45); background: var(--itm-surface-solid); }
.suggest.show { display: block; }
.suggest a { display: flex; align-items: center; gap: .75rem; padding: .55rem .7rem; border-radius: 10px; color: var(--itm-text); }
.suggest a:hover, .suggest a.active { background: rgba(99, 102, 241, .14); }
.suggest small { color: var(--itm-muted); margin-left: auto; font-size: .75rem; }
.kpi { padding: 1.1rem 1.2rem; height: 100%; position: relative; overflow: hidden; }
.kpi .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.15rem; color: #fff; }
.kpi .val { font-size: 1.75rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.kpi .lbl { color: var(--itm-muted); font-size: .8rem; font-weight: 600; }
.kpi .sub { font-size: .75rem; color: var(--itm-muted); }
.kpi::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: currentColor; opacity: .05; }
.g1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); } .g2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.g3 { background: linear-gradient(135deg, #10b981, #22c55e); } .g4 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.g5 { background: linear-gradient(135deg, #ec4899, #f43f5e); } .g6 { background: linear-gradient(135deg, #14b8a6, #0ea5e9); }
.g7 { background: linear-gradient(135deg, #a855f7, #ec4899); } .g8 { background: linear-gradient(135deg, #64748b, #334155); }
.dom-card { padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--itm-border); background: var(--itm-surface-solid); height: 100%; }
.dom-card h6 { font-weight: 700; font-size: .9rem; }
.dom-row { display: flex; align-items: center; gap: .5rem; font-size: .82rem; padding: .28rem 0; }
.dom-row .bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(148, 163, 184, .15); overflow: hidden; }
.dom-row .bar span { display: block; height: 100%; border-radius: 99px; background: var(--itm-grad); width: 0; }
.dom-row b { min-width: 34px; text-align: right; }
.alert-item { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 12px; margin-bottom: .5rem; font-size: .88rem; border: 1px solid var(--itm-border); }
.alert-item i { margin-top: 3px; }
.alert-item.danger { background: rgba(239, 68, 68, .1); color: #ef4444; } .alert-item.warning { background: rgba(245, 158, 11, .1); color: #f59e0b; }
.alert-item.info { background: rgba(59, 130, 246, .1); color: #60a5fa; } .alert-item.ok { background: rgba(16, 185, 129, .1); color: #10b981; }
.timeline { list-style: none; margin: 0; padding: .4rem 1.2rem; }
.timeline li { position: relative; padding: .65rem 0 .65rem 1.4rem; border-left: 2px solid var(--itm-border); font-size: .85rem; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 1rem; width: 10px; height: 10px; border-radius: 50%; background: var(--itm-grad); }
.timeline small { color: var(--itm-muted); display: block; }

/* ---------- search result / ID cards ---------- */
.res-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem; border-radius: 14px; background: rgba(99, 102, 241, .08); border: 1px solid rgba(99, 102, 241, .2); }
.res-head .avatar { width: 46px; height: 46px; font-size: 1.1rem; border-radius: 14px; }
.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 600; background: rgba(148, 163, 184, .14); color: var(--itm-text); }
.id-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .75rem; margin-top: .9rem; }
.id-card { display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; border-radius: 14px; border: 1px solid var(--itm-border); background: var(--itm-surface-solid); transition: transform .15s, border-color .2s; }
.id-card:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, .45); }
.id-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.id-card .t { font-size: .72rem; color: var(--itm-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.id-card .v { font-weight: 600; word-break: break-all; font-size: .9rem; }

/* ---------- tables ---------- */
.toolbar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .85rem 1rem; }
.data-table { --bs-table-bg: transparent; font-size: .87rem; }
.data-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--itm-muted); font-weight: 700; border-bottom-color: var(--itm-border); white-space: nowrap; padding: .8rem .75rem; cursor: pointer; user-select: none; }
.data-table thead th.sorted::after { content: ' \f0dc'; font-family: 'Font Awesome 6 Free'; font-weight: 900; opacity: .6; }
.data-table td { border-color: var(--itm-border); padding: .62rem .75rem; vertical-align: middle; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: rgba(99, 102, 241, .06); }
.group-card { margin-bottom: 1.25rem; }
.group-head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--itm-border); }
.group-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--itm-grad); }
.group-head h6 { margin: 0; font-weight: 800; letter-spacing: .04em; }
.group-head .count { margin-left: auto; }
.group-card.collapsed .table-responsive { display: none; }
.pw-cell { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.pw-dots { letter-spacing: .15em; color: var(--itm-muted); margin-right: .2rem; }
.icon-btn { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; border: 1px solid var(--itm-border); background: transparent; color: var(--itm-muted); transition: all .15s; }
.icon-btn:hover { color: #fff; background: var(--itm-primary); border-color: var(--itm-primary); }
.icon-btn.copied { background: #10b981; border-color: #10b981; color: #fff; }
.icon-btn.danger:hover { background: #ef4444; border-color: #ef4444; }
.row-actions { white-space: nowrap; text-align: right; }
.badge-st { padding: .3em .7em; border-radius: 999px; font-weight: 600; font-size: .72rem; }
.st-active, .st-available, .st-free { background: rgba(16, 185, 129, .14); color: #10b981; }
.st-assigned { background: rgba(59, 130, 246, .14); color: #60a5fa; }
.st-spare, .st-inactive, .st-exited, .st-lost { background: rgba(148, 163, 184, .16); color: var(--itm-muted); }
.st-damaged { background: rgba(239, 68, 68, .14); color: #ef4444; } .st-under-repair { background: rgba(245, 158, 11, .14); color: #f59e0b; }
.st-moved { background: rgba(139, 92, 246, .14); color: #a78bfa; } .st-released { background: rgba(34, 211, 238, .14); color: #22d3ee; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--itm-muted); }
.empty i { font-size: 2rem; display: block; margin-bottom: .6rem; opacity: .5; }
.skeleton { height: 240px; border-radius: var(--itm-radius); background: linear-gradient(90deg, var(--itm-surface) 25%, rgba(148, 163, 184, .1) 50%, var(--itm-surface) 75%); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- onboarding ---------- */
.ob-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.ob-item { padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--itm-border); background: var(--itm-surface-solid); transition: opacity .2s, border-color .2s; }
.ob-item:has(.form-check-input:checked) { border-color: rgba(99, 102, 241, .5); }
.ob-item:has(.form-check-input:not(:checked)) { opacity: .55; }
.form-switch .form-check-input { width: 2.6em; height: 1.35em; cursor: pointer; }
.form-check-input:checked { background-color: var(--itm-primary); border-color: var(--itm-primary); }
.pv-row { display: flex; gap: .75rem; padding: .65rem 0; border-bottom: 1px dashed var(--itm-border); font-size: .9rem; }
.pv-row:last-child { border: 0; }
.pv-row .k { width: 120px; color: var(--itm-muted); font-weight: 600; flex: none; }
.pv-row .v { font-weight: 600; word-break: break-all; }

/* ---------- modals, toasts ---------- */
.modal-content.glass { background: var(--itm-surface-solid); }
.modal-header, .modal-footer { border-color: var(--itm-border); }
.toast-zone { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 2000; display: flex; flex-direction: column; gap: .6rem; }
.itm-toast { min-width: 280px; max-width: 420px; padding: .85rem 1rem; border-radius: 14px; display: flex; gap: .7rem; align-items: flex-start; color: #fff; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); font-size: .9rem; }
.itm-toast.ok { background: linear-gradient(135deg, #059669, #10b981); } .itm-toast.err { background: linear-gradient(135deg, #dc2626, #f43f5e); }
.itm-toast.info { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.secret-view { font-family: ui-monospace, Consolas, monospace; font-size: 1.15rem; padding: .9rem 1rem; border-radius: 12px; background: rgba(99, 102, 241, .1); border: 1px dashed rgba(99, 102, 241, .5); word-break: break-all; text-align: center; letter-spacing: .03em; }

/* ---------- auth pages ---------- */
.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 2rem 1rem; overflow-x: hidden; }
.auth-bg { position: fixed; inset: 0; z-index: -1; background: radial-gradient(800px 500px at 20% 10%, rgba(99, 102, 241, .35), transparent 60%), radial-gradient(700px 500px at 90% 90%, rgba(34, 211, 238, .22), transparent 60%), var(--itm-bg); }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.orb.o1 { width: 280px; height: 280px; background: #6366f1; top: 10%; left: 12%; } .orb.o2 { width: 240px; height: 240px; background: #22d3ee; bottom: 12%; right: 14%; }
.orb.o3 { width: 180px; height: 180px; background: #ec4899; top: 55%; left: 45%; opacity: .3; }
.auth-card { width: 100%; max-width: 420px; padding: 2.4rem; border-radius: 24px; background: var(--itm-surface); backdrop-filter: blur(20px); border: 1px solid var(--itm-border); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.auth-card.wide { max-width: 820px; }
.pw-eye { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); color: var(--itm-muted); z-index: 5; }


@media print { .sidebar, .topbar, .toolbar, .row-actions { display: none !important; } .main { margin: 0; } }

/* ---------- exit alerts / restore popup ---------- */
.exit-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem 1.2rem; margin-bottom: .75rem; border-radius: var(--itm-radius);
  background: linear-gradient(135deg, rgba(220, 38, 38, .18), rgba(244, 63, 94, .08)); border: 1px solid rgba(239, 68, 68, .45); }
.exit-alert .ex-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #dc2626, #f43f5e); flex: none;
  animation: pulseRed 2s infinite; }
@keyframes pulseRed { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); } 50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } }
.exit-alert .tag { background: rgba(239, 68, 68, .16); color: #fca5a5; }
[data-bs-theme="light"] .exit-alert .tag { color: #b91c1c; }
.modal-head-green { background: linear-gradient(135deg, #059669, #10b981); color: #fff; border-radius: var(--itm-radius) var(--itm-radius) 0 0; }
.modal-head-red { background: linear-gradient(135deg, #dc2626, #f43f5e); color: #fff; border-radius: var(--itm-radius) var(--itm-radius) 0 0; }
.mv-list { list-style: none; padding: 0; margin: 0 0 .75rem; }
.mv-list li { display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; border-radius: 10px; margin-bottom: .35rem; border: 1px solid var(--itm-border); font-size: .9rem; }
.child-row td { background: rgba(139, 92, 246, .05); }
.child-row td:first-child { padding-left: 2rem; }

/* ---------- phase 2 ---------- */
.st-pending { background: rgba(245, 158, 11, .16); color: #f59e0b; } .st-completed, .st-paid { background: rgba(16, 185, 129, .14); color: #10b981; }
.st-waived, .st-stopped, .st-n-a { background: rgba(148, 163, 184, .16); color: var(--itm-muted); }
.st-in-progress { background: rgba(59, 130, 246, .14); color: #60a5fa; } .st-return { background: rgba(239, 68, 68, .14); color: #ef4444; }
.row-late td { background: rgba(239, 68, 68, .08) !important; } .row-late td:first-child { box-shadow: inset 3px 0 0 #ef4444; }
.mini-stat { padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--itm-border); background: var(--itm-surface-solid); height: 100%; }
.mini-stat small { display: block; color: var(--itm-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: .2rem; }
.pay-form { padding: .9rem; border-radius: 14px; border: 1px dashed rgba(99, 102, 241, .45); background: rgba(99, 102, 241, .05); }
.cond-row { padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--itm-border); margin-bottom: .6rem; background: var(--itm-surface-solid); }
.report-head { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; }
a.alert-item { text-decoration: none; } a.alert-item:hover { filter: brightness(1.15); }
@media print {
  body { background: #fff !important; color: #000; } .glass { box-shadow: none !important; backdrop-filter: none !important; background: #fff !important; border: 1px solid #ddd !important; }
  .no-print, .toast-zone { display: none !important; } .content { padding: 0; max-width: none; } .rep-sec { break-inside: avoid; }
  [data-bs-theme="dark"] body, [data-bs-theme="dark"] .card { color: #000 !important; } .data-table td, .data-table th { color: #000 !important; }
}

.mv-switch { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .8rem; border-radius: 12px; border: 1px solid var(--itm-border); background: var(--itm-surface-solid); margin-bottom: .5rem; }
.mv-switch small { text-align: right; word-break: break-all; max-width: 55%; }

/* seat change */
.mv-group { border: 1px solid rgba(148, 163, 184, .18); border-radius: 12px; padding: .8rem .9rem; margin-bottom: 1rem; }
.mv-choice { display: grid; grid-template-columns: 1fr minmax(170px, 210px); gap: .6rem; align-items: center; margin-bottom: .5rem; }
.mv-choice:last-child { margin-bottom: 0; }
.sum-box { border: 1px dashed rgba(99, 102, 241, .5); border-radius: 12px; padding: .8rem .9rem; background: rgba(99, 102, 241, .06); }
.sum-row { margin-bottom: .45rem; }
@media (max-width: 575.98px) { .mv-choice { grid-template-columns: 1fr; } }

.cl-sec + .cl-sec { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(148, 163, 184, .15); }
.cl-sec-head { display: flex; align-items: center; margin-bottom: .6rem; }
.btn-icon { padding: .15rem .4rem; color: #94a3b8; border: 0; background: transparent; flex: none; } .btn-icon:hover { color: #f87171; }

/* induction box: blinks while there is a new entry */
.ind-box { padding: 1rem 1.2rem; border-radius: 16px; border: 2px solid rgba(34, 197, 94, .7); animation: indBlink 1.2s ease-in-out infinite; }
.ind-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(34, 197, 94, .18); color: #22c55e; font-size: 1.2rem; }
@keyframes indBlink { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); border-color: rgba(34, 197, 94, .95); } 50% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); border-color: rgba(34, 197, 94, .25); } }
@media (prefers-reduced-motion: reduce) { .ind-box { animation: none; } }
