/* WeIT Solution - theme v2 (b45). Pure look: colours, shapes, spacing. No layout or behaviour changes. Remove the <link> in index.html to go back. */
:root {
  --t-bg: #F2F5FB; --t-card: #FFFFFF; --t-line: #E3EAF5; --t-line2: #D3DDEE;
  --t-ink: #0C1B33; --t-muted: #61708A;
  --t-grad: linear-gradient(135deg, #0A5BE0 0%, #0B7BF0 55%, #12B5F7 100%);
  --t-side: linear-gradient(185deg, #0B2A63 0%, #0A3C97 55%, #0B57D6 130%);
  --t-shadow: 0 1px 2px rgba(12,27,51,.05), 0 8px 24px -8px rgba(12,27,51,.10);
  --t-shadow-lg: 0 2px 4px rgba(12,27,51,.06), 0 18px 40px -12px rgba(12,27,51,.18);
  --radius: 14px; --shadow: var(--t-shadow); --line: var(--t-line); --line-strong: var(--t-line2); --surface: #F7F9FE;
}
body { background: var(--t-bg); color: var(--t-ink); }

/* ------------------------------------------------ shell */
.shell { background: var(--t-bg); }
.sidebar { background: var(--t-side); padding: 20px 14px; box-shadow: 4px 0 24px -8px rgba(8,25,60,.35); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.sidebar .brand, .sidebar > div:first-child { letter-spacing: -.01em; }
.nav { gap: 3px; }
.nav a { border-radius: 11px; padding: 10px 13px; font-weight: 540; transition: background .15s, transform .15s; }
.nav a:hover { background: rgba(255,255,255,.12); transform: translateX(2px); }
.nav a.active { background: linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,.09)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.nav a.active::before { left: -14px; width: 4px; background: #38D0FF; box-shadow: 0 0 12px #38D0FF; }
.nav-group { color: rgba(255,255,255,.45); letter-spacing: .14em; }
.topbar { background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--t-line); padding: 12px 30px; }
.topbar .who b { color: var(--t-ink); }
.page { padding: 30px 30px 96px; max-width: 1480px; animation: t-rise .28s ease-out; }
@keyframes t-rise { from { opacity: 0; transform: translateY(6px); } }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 26px; letter-spacing: -.025em; font-weight: 720; }
.page-head p { font-size: 14px; max-width: 760px; }
.crumbs { color: #0B6BF0; letter-spacing: .1em; font-size: 11.5px; font-weight: 700; }

/* ------------------------------------------------ cards, stats */
.card { background: var(--t-card); border: 1px solid var(--t-line); border-radius: 16px; box-shadow: var(--t-shadow); overflow: hidden; }
.card-h { padding: 16px 20px; border-bottom: 1px solid var(--t-line); font-weight: 650; background: linear-gradient(180deg, #fff, #FAFCFF); }
.card-b { padding: 20px; }
.stat { position: relative; padding: 18px 20px 17px; border-radius: 16px; overflow: hidden; transition: transform .16s, box-shadow .16s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--t-shadow-lg); }
.stat::after { content: ""; position: absolute; right: -26px; top: -26px; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle, rgba(18,181,247,.20), transparent 70%); }
.stat .label { text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; font-weight: 650; color: var(--t-muted); }
.stat .value { font-size: 31px; font-weight: 760; letter-spacing: -.03em; background: var(--t-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat.accent { border-top: 0; }
.stat.accent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--t-grad); }
.kpis { gap: 14px; }
.kpi { background: var(--t-card); border: 1px solid var(--t-line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--t-shadow); position: relative; overflow: hidden; transition: transform .16s, box-shadow .16s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--t-shadow-lg); }
.kpi::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--t-grad); }
.kpi .k { color: var(--t-muted); font-weight: 650; letter-spacing: .06em; font-size: 11.5px; }
.kpi .v { color: var(--t-ink); font-size: 27px; font-weight: 750; letter-spacing: -.025em; }
@media (prefers-color-scheme: dark) { .kpi { background: var(--t-card); border-color: var(--t-line); } .kpi .v { color: var(--t-ink); } }

/* ------------------------------------------------ buttons */
.btn { border-radius: 11px; border: 1px solid var(--t-line2); padding: 8px 15px; font-weight: 580; box-shadow: 0 1px 1px rgba(12,27,51,.04); transition: background .14s, border-color .14s, box-shadow .14s, transform .1s; }
.btn:hover { background: #F0F6FF; border-color: #7FA8EE; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--t-grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -6px rgba(10,91,224,.65); }
.btn.primary:hover { filter: brightness(1.07); background: var(--t-grad); }
.btn.accent { background: linear-gradient(135deg, #12B5F7, #38D0FF); border-color: transparent; color: #003256; }
.btn.danger { border-color: #F2C0C0; }
.btn.danger.solid { background: linear-gradient(135deg, #D32F2F, #EF5350); border-color: transparent; }
.btn.ghost { box-shadow: none; }
.btn.sm { border-radius: 9px; }

/* ------------------------------------------------ tables */
table { border-collapse: separate; border-spacing: 0; }
th { background: #F5F8FE; color: #52627E; font-size: 11.5px; letter-spacing: .07em; padding: 12px 16px; border-bottom: 1px solid var(--t-line); }
td { padding: 12px 16px; border-bottom: 1px solid #EDF2FA; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: #F6FAFF; }
.card > .table-wrap, .card > table { border-radius: 0; }
.empty { color: var(--t-muted); padding: 46px 20px; }
.pager { background: #FAFCFF; }

/* ------------------------------------------------ tabs, chips, badges */
.tabs { gap: 6px; border-bottom: 0; background: #E8EEF9; padding: 5px; border-radius: 14px; display: inline-flex; max-width: 100%; margin-bottom: 20px; }
.tab { border: 0; border-radius: 10px; padding: 8px 16px; margin: 0; color: #4B5C78; font-weight: 600; transition: background .14s, color .14s, box-shadow .14s; }
.tab:hover { color: #0A5BE0; background: rgba(255,255,255,.55); }
.tab.active { background: #fff; color: #0A5BE0; box-shadow: 0 2px 8px -2px rgba(12,27,51,.18); border: 0; }
.badge { padding: 3px 10px; font-weight: 640; letter-spacing: .01em; }
.chip { border-radius: 999px; box-shadow: 0 1px 2px rgba(12,27,51,.04); }
.status-pill, .status-btn { border-radius: 14px; }
.filters { background: #F7F9FE; border-bottom: 1px solid var(--t-line); padding: 16px 20px; }

/* ------------------------------------------------ forms */
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=time], input[type=search], input[type=tel], input[type=datetime-local], select, textarea {
  border: 1px solid var(--t-line2); border-radius: 11px; padding: 9px 12px; min-height: 38px; background: #fff; transition: border-color .14s, box-shadow .14s; }
input:hover, select:hover, textarea:hover { border-color: #8FB0E8; }
input:focus, select:focus, textarea:focus { border-color: #0B6BF0; box-shadow: 0 0 0 4px rgba(11,107,240,.14); outline: none; }
.field > label, .lbl { color: #2D3E5A; font-weight: 640; }
.note { background: linear-gradient(180deg, #F1F7FF, #EBF3FF); border: 1px solid #D5E5FC; border-radius: 12px; padding: 12px 15px; color: #123A7A; }
.note.warn { background: #FFF8E6; border-color: #F4DFA3; }
.note.ok { background: #EAF9F1; border-color: #BCE8D0; }
.err { border-radius: 11px; }
.secret { border-radius: 11px; background: #F7F9FE; }
.bar { height: 9px; background: #E3ECFA; } .bar > i { background: var(--t-grad); }

/* ------------------------------------------------ modal, toast, call pop-up */
.overlay { background: rgba(9,22,46,.55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal { border-radius: 20px; box-shadow: 0 30px 80px -10px rgba(9,22,46,.5); border: 1px solid rgba(255,255,255,.6); animation: t-pop .18s ease-out; }
@keyframes t-pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal-h { padding: 18px 22px; background: linear-gradient(180deg, #fff, #F8FAFF); border-radius: 20px 20px 0 0; font-weight: 680; }
.modal-b { padding: 22px; }
.toast { border-radius: 13px; box-shadow: var(--t-shadow-lg); }
.cust-card { border-radius: 22px; }

/* ------------------------------------------------ sign-in screen */
.auth-hero { background: radial-gradient(900px 500px at 8% -10%, rgba(56,208,255,.45), transparent 60%), radial-gradient(700px 500px at 100% 110%, rgba(18,181,247,.28), transparent 60%), linear-gradient(160deg, #0A4FCB 0%, #0A2C73 100%); }
.auth-form { background: var(--t-bg); }
.auth-box { background: #fff; padding: 30px; border-radius: 22px; box-shadow: var(--t-shadow-lg); border: 1px solid var(--t-line); }

/* ------------------------------------------------ small touches */
::selection { background: #BFDBFE; }
a { color: #0A5BE0; }
* { scrollbar-width: thin; scrollbar-color: #C5D3EA transparent; }
@media (max-width: 900px) { .page { padding: 20px 16px 90px; } .tabs { display: flex; } .topbar { padding: 10px 14px; } }
@media (prefers-reduced-motion: reduce) { .page, .modal { animation: none; } .nav a:hover, .stat:hover, .kpi:hover { transform: none; } }

/* filter rows (date / select / search boxes sitting beside buttons) must not stretch to the full width */
.actions > input, .actions > select { width: auto; min-width: 150px; max-width: 260px; }
.actions > input[type=search], .actions > input[type=text] { min-width: 220px; }
.actions { align-items: center; }
input:not([type]) { border: 1px solid var(--t-line2); border-radius: 11px; padding: 9px 12px; min-height: 38px; background: #fff; }
input:not([type]):focus { border-color: #0B6BF0; box-shadow: 0 0 0 4px rgba(11,107,240,.14); outline: none; }
.actions > input[type=search] { min-width: 300px; }
