/* Selimpex ERP — glass theme. Midnight + electric blue / cyan. */
:root {
  --navy: #0f2740; --navy-2: #0a1a2b; --navy-3: #06101c; --orange: #2f7cf6; --orange-2: #5cc8ff;
  --ink: #eaf2fb; --ink-2: rgba(234,242,251,.72); --ink-3: rgba(234,242,251,.5);
  --glass: rgba(255,255,255,.075); --glass-2: rgba(255,255,255,.12); --glass-line: rgba(255,255,255,.14);
  --ok: #3ddc97; --bad: #ff6b6b; --warn: #ffc857; --info: #6ec5ff;
  --radius: 18px; --shadow: 0 18px 50px rgba(2,8,16,.45);
  --side: 270px;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; color: var(--ink); font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; font-size: 14px;
  background: var(--navy-3);
  overflow-x: hidden;
}
/* Living background: factory photo, deep navy wash and slow drifting colour blobs. */
.bg-scene { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.bg-scene::before { content: ''; position: absolute; inset: -20px; background: url('../img/bg-factory.jpg') center/cover no-repeat; filter: blur(6px) saturate(1.1); transform: scale(1.05); opacity: .35; }
.bg-scene::after { content: ''; position: absolute; inset: 0; background: radial-gradient(1200px 700px at 10% 0%, rgba(15,39,64,.55), transparent 60%), linear-gradient(160deg, rgba(6,16,28,.92), rgba(10,26,43,.88) 45%, rgba(4,12,22,.95)); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: 1; animation: drift 22s ease-in-out infinite alternate; }
.blob.b1 { width: 520px; height: 520px; background: #2f7cf6; top: -160px; right: -120px; opacity: .28; }
.blob.b2 { width: 600px; height: 600px; background: #0d9488; bottom: -220px; left: -160px; animation-duration: 28s; }
.blob.b3 { width: 380px; height: 380px; background: #2563eb; top: 40%; left: 45%; opacity: .22; animation-duration: 34s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,-40px) scale(1.12); } 100% { transform: translate(-40px,50px) scale(.95); } }

a { color: var(--orange-2); text-decoration: none; }
a:hover { color: #a5e4ff; }
::selection { background: var(--orange); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* Glass surfaces */
.glass { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: var(--shadow); }
.card-g { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: var(--shadow); padding: 20px; position: relative; }
.card-g h5, .card-g h6 { font-weight: 600; letter-spacing: .2px; }

/* Sidebar */
.side { display: none; position: fixed; top: 84px; left: 10px; right: 10px; bottom: 10px; z-index: 36; flex-direction: column; padding: 14px 12px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(168deg, rgba(26,58,96,.94) 0%, rgba(12,30,52,.96) 45%, rgba(6,16,30,.98) 100%); border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 60px rgba(2,8,16,.5), inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.3); }
/* Gloss: a soft sheen over the top of the pane and a faint blue glow behind the brand. */
.side::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 22%, rgba(255,255,255,0) 40%), radial-gradient(360px 220px at 20% 0%, rgba(47,124,246,.35), transparent 70%); }
.side > * { position: relative; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 16px; border-bottom: 1px solid var(--glass-line); margin-bottom: 10px; }
.brand .logo-tile { width: 46px; height: 54px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(47,124,246,.35); flex: none; overflow: hidden; }
.brand .logo-tile img { width: 40px; }
.brand b { display: block; font-size: 16px; letter-spacing: 1.5px; }
.brand b { color: #fff; }
.brand small { color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .5px; }
.nav-scroll { overflow-y: auto; flex: 1; margin-right: -6px; padding-right: 6px; }
.nav-sec { margin: 6px 0; }
.nav-sec > button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box; padding: 8px 10px; color: rgba(255,255,255,.68); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.4px; border-radius: 10px; }
.nav-sec > button:hover { color: #fff; }
.nav-sec > button i { transition: transform .3s; }
.nav-sec.closed > button i { transform: rotate(-90deg); }
.nav-items { overflow: hidden; transition: max-height .35s ease; max-height: 900px; }
.nav-sec.closed .nav-items { max-height: 0; }
.nav-link-g { display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 3px 0; border-radius: 12px; color: #fff; font-size: 13.5px; font-weight: 500; position: relative; overflow: hidden; transition: background .25s, color .25s, transform .25s, box-shadow .25s; }
.nav-link-g i { font-size: 16px; width: 20px; text-align: center; color: #8fd3ff; transition: transform .3s, color .3s; }
.nav-link-g:hover { background: rgba(255,255,255,.1); color: #fff; transform: translateX(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.nav-link-g:hover i { transform: scale(1.15); color: #fff; }
/* Selected item: a shiny blue button with a glass highlight across its top half. */
.nav-link-g.on { background: linear-gradient(135deg, #4a9bff 0%, #2f7cf6 48%, #0ea5e9 100%); color: #fff; transform: none;
  box-shadow: 0 8px 22px rgba(47,124,246,.5), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(0,0,0,.15); }
.nav-link-g.on::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 52%; border-radius: 12px 12px 40% 40% / 12px 12px 30% 30%; background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.04)); pointer-events: none; }
.nav-link-g.on i { color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.nav-link-g.on:hover { transform: translateX(2px); box-shadow: 0 12px 28px rgba(47,124,246,.6), inset 0 1px 0 rgba(255,255,255,.5); }
.side-foot { border-top: 1px solid var(--glass-line); padding-top: 10px; margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), #7dd3fc); display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
.side-foot .who { flex: 1; min-width: 0; line-height: 1.2; }
.side-foot .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who b { color: #fff; }
.side-foot .who small { color: rgba(255,255,255,.68); font-size: 11px; }

/* Main */
.main { margin: 0; padding: 92px 18px 40px; min-height: 100vh; }
.pagehead { display: flex; align-items: center; gap: 14px; padding: 2px 4px 14px; }
.pagehead h1 { font-size: 22px; margin: 0; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.2px; }
.pagehead h1 small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 400; letter-spacing: .3px; margin-top: 2px; }

/* Top bar: glossy navy glass across the top, menus drop down from it. */
.topnav { position: fixed; top: 10px; left: 10px; right: 10px; height: 68px; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 18px;
  background: linear-gradient(100deg, rgba(26,58,96,.94) 0%, rgba(12,30,52,.96) 50%, rgba(8,20,36,.97) 100%); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 50px rgba(2,8,16,.45), inset 0 1px 0 rgba(255,255,255,.24), inset 0 -1px 0 rgba(0,0,0,.3); }
.topnav::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 48%, rgba(255,255,255,0) 52%), radial-gradient(420px 120px at 12% 0%, rgba(47,124,246,.4), transparent 70%); }
.topnav > * { position: relative; }
.topnav .brand { padding: 0; margin: 0; border: 0; gap: 10px; flex: none; }
.topnav .brand .logo-tile { width: 40px; height: 46px; border-radius: 11px; }
.topnav .brand .logo-tile img { width: 34px; }
.topnav .brand b { font-size: 15px; }
.topnav .brand small { font-size: 10.5px; }
.menubar { display: flex; align-items: center; gap: 3px; flex: 1; justify-content: center; min-width: 0; }
.menubar > * { flex: none; }
.mb-item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 12px; border: 0; background: transparent; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; position: relative; overflow: hidden; cursor: pointer; transition: background .25s, box-shadow .25s, transform .25s; }
.mb-item i:first-child { color: #8fd3ff; font-size: 15px; transition: color .25s; }
.mb-item .chev { font-size: 10px; opacity: .65; margin-left: -1px; }
.mb-item:hover, .mb-group.show > .mb-item { background: rgba(255,255,255,.11); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.mb-item:hover i:first-child { color: #fff; }
.mb-item.on { background: linear-gradient(135deg, #4a9bff 0%, #2f7cf6 48%, #0ea5e9 100%); box-shadow: 0 8px 22px rgba(47,124,246,.5), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(0,0,0,.15); }
.mb-item.on::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 52%; border-radius: 12px 12px 40% 40% / 12px 12px 30% 30%; background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.04)); pointer-events: none; }
.mb-item.on i { color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.top-menu { background: linear-gradient(180deg, rgba(16,38,64,.98), rgba(8,20,36,.98)) !important; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 8px; min-width: 240px; margin-top: 12px !important; box-shadow: 0 24px 60px rgba(2,8,16,.55), inset 0 1px 0 rgba(255,255,255,.18); }
.top-menu .dropdown-item { display: flex; align-items: center; gap: 10px; color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.top-menu .dropdown-item i { color: #8fd3ff; width: 18px; text-align: center; font-size: 15px; }
.top-menu .dropdown-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.top-menu .dropdown-item.on { background: linear-gradient(135deg, #4a9bff, #2f7cf6 55%, #0ea5e9); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.top-menu .dropdown-item.on i { color: #fff; }
.top-menu.cols2.show { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; min-width: 520px; }
.tn-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.tn-right .search-g { width: 200px; }
.tn-right .search-g input { background: rgba(255,255,255,.1) !important; border-color: rgba(255,255,255,.2) !important; color: #fff !important; padding: 8px 12px 8px 34px !important; font-size: 13px; }
.tn-right .search-g input::placeholder { color: rgba(255,255,255,.55); }
.tn-right .search-g i { color: rgba(255,255,255,.6); }
.tn-right .btn-glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }
.tn-right .btn-glass:hover { background: rgba(255,255,255,.22); }
.tn-right .clock { color: rgba(255,255,255,.65); }
.tn-right .clock b { color: #fff; }
.avatar-btn { all: unset; cursor: pointer; border-radius: 50%; }
.avatar-btn .avatar { width: 36px; height: 36px; box-shadow: 0 6px 16px rgba(47,124,246,.45), inset 0 1px 0 rgba(255,255,255,.4); transition: transform .25s; }
.avatar-btn:hover .avatar { transform: scale(1.06); }
.user-menu { min-width: 220px; }
.search-g { position: relative; width: 280px; }
.search-g input { padding-left: 36px !important; border-radius: 999px !important; }
.search-g i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.tn-right .burger { display: none; }
.clock { color: var(--ink-3); font-size: 12px; text-align: right; line-height: 1.25; white-space: nowrap; }
.clock b { color: var(--ink); font-size: 14px; font-weight: 600; display: block; }

/* Buttons */
.btn-g { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 12px; border: 0; font-weight: 500; font-size: 13.5px; cursor: pointer; position: relative; overflow: hidden; transition: transform .2s, box-shadow .25s, filter .2s; color: #fff; text-decoration: none; }
.btn-g:hover { transform: translateY(-2px); color: #fff; }
.btn-g:active { transform: translateY(0) scale(.98); }
.btn-primary-g { background: linear-gradient(135deg, var(--orange), #0ea5e9); box-shadow: 0 8px 24px rgba(47,124,246,.38); }
.btn-primary-g:hover { box-shadow: 0 12px 30px rgba(47,124,246,.55); }
.btn-glass, .btn-glass:visited { background: var(--glass-2); border: 1px solid var(--glass-line); color: var(--ink); backdrop-filter: blur(10px); display: inline-flex; align-items: center; gap: 6px; border-radius: 12px; padding: 8px 14px; font-size: 13px; transition: background .2s, transform .2s; cursor: pointer; }
.btn-glass:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateY(-1px); }
.btn-glass.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 10px; }
.btn-danger-g { background: linear-gradient(135deg, #e5484d, #ff7a7a); box-shadow: 0 8px 22px rgba(229,72,77,.35); }
.btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 10px; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.45); animation: ripple .6s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Forms */
.form-control, .form-select, .fc { background: rgba(4,12,22,.45) !important; border: 1px solid rgba(255,255,255,.16) !important; color: var(--ink) !important; border-radius: 12px !important; padding: 9px 12px; font-size: 13.5px; transition: border-color .2s, box-shadow .2s, background .2s; }
.form-control::placeholder { color: var(--ink-3); }
.form-control:focus, .form-select:focus { border-color: var(--orange) !important; box-shadow: 0 0 0 4px rgba(47,124,246,.18) !important; background: rgba(4,12,22,.6) !important; }
.form-select option { background: var(--navy-2); color: var(--ink); }
.form-label { color: var(--ink-2); font-size: 12px; font-weight: 500; margin-bottom: 5px; letter-spacing: .3px; }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.7); cursor: pointer; }
.form-check-input { background-color: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.form-check-input:checked { background-color: var(--orange); border-color: var(--orange); }
.chip-check { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); margin: 0 6px 8px 0; cursor: pointer; font-size: 12.5px; transition: all .2s; user-select: none; }
.chip-check input { display: none; }
.chip-check:has(input:checked) { background: rgba(47,124,246,.22); border-color: rgba(47,124,246,.6); color: #fff; box-shadow: 0 0 16px rgba(47,124,246,.25); }
.input-plus { display: flex; gap: 6px; }
.input-plus .form-control { flex: 1; }

/* Tables */
.table-wrap { overflow: auto; border-radius: 14px; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl th { position: sticky; top: 0; background: rgba(10,26,43,.92); backdrop-filter: blur(10px); color: var(--ink-2); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; padding: 11px 12px; text-align: left; white-space: nowrap; z-index: 1; border-bottom: 1px solid var(--glass-line); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.06); }
.tbl .num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 700; background: rgba(47,124,246,.12); border-top: 1px solid rgba(47,124,246,.4); }
.tbl tr.neg td.num:last-child, .tbl td.neg { color: var(--bad); }
.tbl tr.warn td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.tbl tr.muted td { color: var(--ink-3); font-style: italic; }
.tbl a { color: #cfe6ff; font-weight: 500; }
.tbl a:hover { color: #fff; text-decoration: underline; }
.lines-tbl td { padding: 6px 6px; border-bottom: 0; }
.lines-tbl .form-control { padding: 7px 10px; }
.lines-tbl tr { animation: rowIn .35s ease both; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

/* Badges & pills */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--glass-2); border: 1px solid var(--glass-line); white-space: nowrap; }
.pill.o { background: rgba(47,124,246,.2); border-color: rgba(47,124,246,.5); color: #cfe6ff; }
.pill.g { background: rgba(61,220,151,.15); border-color: rgba(61,220,151,.45); color: #a6f5d0; }
.pill.r { background: rgba(255,107,107,.15); border-color: rgba(255,107,107,.45); color: #ffc2c2; }
.pill.b { background: rgba(110,197,255,.15); border-color: rgba(110,197,255,.45); color: #c4e8ff; }
.stock-tag { font-size: 11px; margin-top: 3px; display: block; color: var(--ink-3); min-height: 14px; }
.stock-tag.ok { color: var(--ok); } .stock-tag.low { color: var(--bad); }

/* KPI tiles */
.kpi { padding: 20px; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.kpi:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(2,8,16,.6); }
.kpi .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #fff; margin-bottom: 14px; }
.kpi .val { font-size: 28px; font-weight: 700; letter-spacing: .3px; line-height: 1.1; }
.kpi .val small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.kpi .lbl { color: var(--ink-2); font-size: 12.5px; margin-top: 4px; }
.kpi .glow { position: absolute; width: 160px; height: 160px; right: -50px; top: -50px; border-radius: 50%; filter: blur(40px); opacity: .45; }
.g-orange { background: linear-gradient(135deg, #2f7cf6, #7dd3fc); } .gl-orange { background: #2f7cf6; }
.g-blue { background: linear-gradient(135deg, #0d9488, #22d3ee); } .gl-blue { background: #14b8a6; }
.g-teal { background: linear-gradient(135deg, #11a683, #3ddc97); } .gl-teal { background: #20c997; }
.g-pink { background: linear-gradient(135deg, #0ea5e9, #fb7185); } .gl-pink { background: #22d3ee; }

/* Hero */
.hero { position: relative; overflow: hidden; border-radius: 24px; min-height: 210px; padding: 30px; display: flex; align-items: center; margin-bottom: 20px; border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; transform: scale(1.06); animation: kenburns 24s ease-in-out infinite alternate; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,16,28,.95) 0%, rgba(10,26,43,.8) 45%, rgba(10,26,43,.15) 100%); }
.hero > .hero-in { position: relative; z-index: 1; max-width: 640px; }
.hero h2 { font-weight: 700; font-size: 30px; margin: 4px 0 8px; }
.hero h2 span { background: linear-gradient(90deg, #7dd3fc, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--ink-2); margin: 0 0 16px; }
.hero .eyebrow { font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--orange-2); font-weight: 600; }
@keyframes kenburns { from { transform: scale(1.06) translate(0,0); } to { transform: scale(1.16) translate(-2%, -2%); } }
.hero-strip { position: absolute; right: 24px; bottom: -10px; z-index: 1; display: flex; gap: 12px; }
.hero-strip img { width: 92px; height: 130px; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255,255,255,.35); box-shadow: 0 14px 30px rgba(0,0,0,.45); transition: transform .4s; animation: floaty 6s ease-in-out infinite; }
.hero-strip img:nth-child(2) { animation-delay: -1.5s; margin-top: -26px; } .hero-strip img:nth-child(3) { animation-delay: -3s; } .hero-strip img:nth-child(4) { animation-delay: -4.5s; margin-top: -26px; }
.hero-strip img:hover { transform: scale(1.08) rotate(-2deg); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Module banner on list / form pages */
.banner { position: relative; overflow: hidden; border-radius: 20px; padding: 22px 26px; margin-bottom: 18px; border: 1px solid var(--glass-line); min-height: 118px; display: flex; align-items: center; gap: 18px; box-shadow: var(--shadow); }
.banner .hero-bg { animation-duration: 30s; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,16,28,.96), rgba(10,26,43,.82) 55%, rgba(10,26,43,.6)); }
.banner > *:not(.hero-bg) { position: relative; z-index: 1; }
.banner .b-ico { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, var(--orange), #7dd3fc); box-shadow: 0 10px 30px rgba(47,124,246,.45); flex: none; }
.banner h2 { font-size: 22px; font-weight: 700; margin: 0; }
.banner p { color: var(--ink-2); margin: 3px 0 0; font-size: 13px; }
.banner .b-act { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Quick actions */
.qa { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px 10px; text-align: center; color: var(--ink); border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); transition: all .3s cubic-bezier(.2,.8,.2,1); height: 100%; }
.qa i { font-size: 24px; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(47,124,246,.18); color: var(--orange-2); transition: all .3s; }
.qa span { font-size: 12.5px; font-weight: 500; }
.qa:hover { transform: translateY(-5px); background: var(--glass-2); color: #fff; border-color: rgba(47,124,246,.45); box-shadow: 0 16px 36px rgba(47,124,246,.18); }
.qa:hover i { background: var(--orange); color: #fff; transform: rotate(-8deg) scale(1.08); }

/* Bars in lists */
.bar-row { margin-bottom: 12px; }
.bar-row .top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--orange), #a5e4ff); width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 12px rgba(47,124,246,.6); }
.bar.blue > i { background: linear-gradient(90deg, #14b8a6, #67e8f9); box-shadow: 0 0 12px rgba(20,184,166,.6); }

/* Timeline of recent entries */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; align-items: center; padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.feed li:last-child { border: 0; }
.feed .fi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--glass-2); color: var(--orange-2); flex: none; }
.feed .ft { flex: 1; min-width: 0; font-size: 13px; }
.feed .ft small { display: block; color: var(--ink-3); font-size: 11.5px; }

/* Filters bar */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px 16px; margin-bottom: 16px; }
.filters .f { display: flex; flex-direction: column; }
.filters .f label { font-size: 11px; color: var(--ink-3); margin-bottom: 4px; letter-spacing: .4px; }
.filters .form-control, .filters .form-select { padding: 7px 10px; font-size: 13px; min-width: 140px; }
.filters .grow { flex: 1; }
.sum-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sum-strip .pill { padding: 6px 14px; font-size: 12.5px; }

/* Pager */
.pager { display: flex; gap: 6px; justify-content: center; margin: 16px 0 4px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 10px; border-radius: 10px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--ink-2); font-size: 13px; }
.pager a:hover { background: var(--glass-2); color: #fff; }
.pager a.on { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 0 6px 18px rgba(47,124,246,.45); }

/* Toasts */
.toast-g { position: fixed; top: 22px; right: 22px; z-index: 2000; min-width: 300px; max-width: 460px; padding: 14px 18px 14px 16px; display: flex; gap: 12px; align-items: flex-start; animation: toastIn .55s cubic-bezier(.2,.9,.3,1.3) both; }
.toast-g i { font-size: 20px; }
.toast-g.success { border-left: 4px solid var(--ok); } .toast-g.success i { color: var(--ok); }
.toast-g.danger { border-left: 4px solid var(--bad); } .toast-g.danger i { color: var(--bad); }
.toast-g.hide { animation: toastOut .4s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px); } }

/* Page progress */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 3000; background: linear-gradient(90deg, var(--orange), #cfe6ff); box-shadow: 0 0 12px var(--orange); transition: width .4s ease, opacity .3s; }

/* Entrance animations */
.reveal { opacity: 0; transform: translateY(18px); animation: up .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes up { to { opacity: 1; transform: none; } }
.fade-page { animation: fadePage .5s ease both; }
@keyframes fadePage { from { opacity: 0; } to { opacity: 1; } }

/* Modal */
.modal-content.glass { background: rgba(10,26,43,.85); color: var(--ink); }
.modal-header, .modal-footer { border-color: var(--glass-line); }
.btn-close { filter: invert(1); }
.modal-backdrop.show { opacity: .6; backdrop-filter: blur(4px); }

/* Doc view (screen) */
.doc-sheet { padding: 28px; }
.doc-head { display: flex; gap: 18px; align-items: center; border-bottom: 1px solid var(--glass-line); padding-bottom: 18px; margin-bottom: 18px; }
.doc-head .logo-tile { width: 64px; height: 76px; background: #fff; border-radius: 14px; display: grid; place-items: center; flex: none; }
.doc-head .logo-tile img { width: 56px; }
.doc-head .co b { font-size: 20px; letter-spacing: 1px; display: block; }
.doc-head .co small { color: var(--ink-3); display: block; }
.doc-head .doc-id { margin-left: auto; text-align: right; }
.doc-head .doc-id .t { font-size: 13px; color: var(--orange-2); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.doc-head .doc-id .n { font-size: 30px; font-weight: 700; line-height: 1.1; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 18px; margin-bottom: 20px; }
.kv div small { display: block; color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.kv div b { font-weight: 500; }
.sign-row { display: none; }
.empty { text-align: center; padding: 50px 20px; color: var(--ink-3); }
.empty i { font-size: 46px; display: block; margin-bottom: 10px; color: rgba(47,124,246,.6); animation: floaty 4s ease-in-out infinite; }
.text-dim { color: var(--ink-3) !important; }
.text-o { color: var(--orange-2) !important; }
hr.g { border-color: var(--glass-line); opacity: 1; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; }
.login-art { position: relative; overflow: hidden; padding: 50px; display: flex; flex-direction: column; justify-content: flex-end; }
.login-art .hero-bg { animation-duration: 30s; }
.login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,16,28,.97) 8%, rgba(6,16,28,.5) 55%, rgba(10,26,43,.2)); }
.login-art > *:not(.hero-bg) { position: relative; z-index: 1; }
.login-art h1 { font-size: 46px; font-weight: 700; line-height: 1.1; margin: 0 0 12px; }
.login-art h1 span { background: linear-gradient(90deg, #7dd3fc, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-art p { color: var(--ink-2); max-width: 520px; font-size: 15px; }
.login-gallery { display: flex; gap: 14px; margin-top: 26px; }
.login-gallery img { width: 110px; height: 150px; object-fit: cover; border-radius: 16px; border: 2px solid rgba(255,255,255,.3); box-shadow: 0 20px 40px rgba(0,0,0,.5); animation: floaty 7s ease-in-out infinite; }
.login-gallery img:nth-child(2) { animation-delay: -2s; } .login-gallery img:nth-child(3) { animation-delay: -4s; } .login-gallery img:nth-child(4) { animation-delay: -5.5s; }
.stats-row { display: flex; gap: 34px; margin-top: 28px; }
.stats-row b { font-size: 26px; display: block; color: #fff; } .stats-row small { color: var(--ink-3); font-size: 12px; letter-spacing: .5px; }
.login-panel { display: grid; place-items: center; padding: 30px; }
.login-card { width: 100%; max-width: 410px; padding: 36px 34px; }
.login-card .logo-big { width: 96px; height: 114px; background: #fff; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 16px 40px rgba(47,124,246,.35); animation: pulseGlow 3.5s ease-in-out infinite; }
.login-card .logo-big img { width: 84px; }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 16px 40px rgba(47,124,246,.3); } 50% { box-shadow: 0 16px 60px rgba(47,124,246,.6); } }
.login-card h3 { text-align: center; font-weight: 600; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: var(--ink-3); margin-bottom: 24px; font-size: 13px; }
.pw-wrap { position: relative; } .pw-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--ink-3); }

/* Responsive */
@media (max-width: 1560px) { .topnav .brand > span:last-child, .tn-right .clock { display: none; } .tn-right .search-g { width: 170px; } }
@media (max-width: 1400px) { .hero-strip { display: none; } .tn-right .search-g { width: 140px; } .mb-item { padding: 8px 9px; gap: 5px; font-size: 12.5px; } }
@media (max-width: 991px) {
  .menubar { display: none; }
  body.nav-open .side { display: flex; animation: drawerIn .3s cubic-bezier(.2,.8,.2,1) both; }
  .main { padding: 88px 10px 30px; }
  .tn-right .burger { display: inline-flex; }
  .tn-right .search-g, .topnav .brand small { display: none; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .banner .b-act { margin-left: 0; width: 100%; justify-content: flex-start; }
  .banner { flex-wrap: wrap; }
}
.scrim { display: none; }
body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 35; backdrop-filter: blur(2px); }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Print: clean white pages. Paper header / footer exist only on paper. */
.print-head, .print-foot { display: none; }
@media print {
  @page { margin: 12mm 10mm 14mm; }
  html { background: #fff; }
  body { background: #fff !important; color: #000 !important; font-size: 11px; padding-bottom: 8mm; }
  .bg-scene, .side, .topnav, .pagehead, .no-print, .toast-g, #progress, .banner, .scrim, .filters, .pager, .sum-strip, .dropdown-menu { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; min-height: 0 !important; }
  .print-head { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid #0f2740; padding-bottom: 8px; margin-bottom: 10px; }
  .print-head img { width: 46px; height: auto; }
  .print-head .ph-co { flex: 1; line-height: 1.3; }
  .print-head .ph-co b { font-size: 16px; display: block; letter-spacing: .5px; }
  .print-head .ph-co small { display: block; color: #555; font-size: 10px; }
  .print-head .ph-title { text-align: right; line-height: 1.3; }
  .print-head .ph-title b { font-size: 15px; display: block; }
  .print-head .ph-title small { display: block; color: #333; font-size: 10.5px; max-width: 320px; }
  .print-foot { display: block; position: fixed; bottom: 0; left: 0; right: 0; font-size: 9px; color: #666; border-top: 1px solid #ccc; padding-top: 3px; }
  /* Tables: every row on paper, not just the first screenful; headers repeat on each page. */
  .table-wrap { overflow: visible !important; max-height: none !important; border-radius: 0; }
  .tbl { font-size: 10.5px; width: 100%; border-collapse: collapse; }
  .tbl th, .tbl td { padding: 4px 6px; }
  .tbl thead { display: table-header-group; }
  .tbl tfoot { display: table-footer-group; }
  .tbl tr { page-break-inside: avoid; break-inside: avoid; }
  .tbl td.dt, .tbl td.num { white-space: nowrap; }
  .tbl td a { white-space: nowrap; }
  .text-dim { color: #555 !important; }
  .card-g { margin-bottom: 8px !important; }
  canvas { max-width: 100% !important; }
  .glass, .card-g { background: #fff !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; color: #000 !important; padding: 0 !important; }
  .doc-head { border-color: #0f2740; }
  .doc-head .doc-id .t { color: #0f2740; }
  .doc-head .co small, .kv div small { color: #555; }
  .tbl th { background: #0f2740 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; position: static; }
  .tbl td { border-bottom: 1px solid #ccc; color: #000; }
  .tbl tfoot td { background: #f3f3f8 !important; border-top: 2px solid #0f2740; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tbl a { color: #000; }
  .pill { border: 1px solid #999; color: #000 !important; background: none !important; }
  .sign-row { display: flex; justify-content: space-between; margin-top: 60px; }
  .sign-row div { border-top: 1px solid #000; width: 28%; text-align: center; padding-top: 6px; }
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* VectorIT credit under the sign-in box */
.vit-credit { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--glass-line); text-align: center; color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.vit-label { font-size: 10.5px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.vit-brand { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 4px; color: #5c8dff; text-decoration: none; transition: transform .25s; }
.vit-brand:hover { color: #7dd3fc; transform: translateY(-1px); }
.vit-brand svg { width: 34px; height: 34px; flex: none; }
.vit-brand span { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.vit-brand em { color: #5c8dff; font-style: normal; }
.vit-contact { overflow-wrap: anywhere; }

/* Top-bar menus (New, Screen look) */
.new-menu, .theme-menu, .user-menu { background: linear-gradient(180deg, rgba(16,38,64,.98), rgba(8,20,36,.98)) !important; min-width: 250px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; margin-top: 12px !important; box-shadow: 0 24px 60px rgba(2,8,16,.55), inset 0 1px 0 rgba(255,255,255,.18); }
.new-menu .dropdown-item, .theme-menu .dropdown-item, .user-menu .dropdown-item, .user-menu b { color: #fff; }
.new-menu .dropdown-item:hover, .theme-menu .dropdown-item:hover, .user-menu .dropdown-item:hover, .theme-menu .dropdown-item.on { background: rgba(47,124,246,.3); color: #fff; }

/* ---- Light screen look: working pages (entry, lists, reports). Sidebar and page banners stay dark glass. ---- */
[data-theme=light] {
  --orange-2: #1f6fe0;
  --ink: #12233a; --ink-2: rgba(18,35,58,.74); --ink-3: rgba(18,35,58,.55);
  --glass: rgba(255,255,255,.86); --glass-2: rgba(15,39,64,.06); --glass-line: rgba(15,39,64,.12);
  --ok: #0f9d63; --bad: #d93a3a; --warn: #c98a00; --info: #1f7fd1;
  --shadow: 0 10px 30px rgba(15,39,64,.10);
}
[data-theme=light] body { background: #eef3f9; }
[data-theme=light] .bg-scene::before { opacity: .06; filter: blur(8px) grayscale(.4); }
[data-theme=light] .bg-scene::after { background: linear-gradient(160deg, rgba(244,247,252,.97), rgba(232,239,248,.95) 50%, rgba(240,244,250,.97)); }
[data-theme=light] .blob { opacity: .10 !important; }
[data-theme=light] a { color: #1f5fcc; }
[data-theme=light] a:hover { color: #0f3f99; }
[data-theme=light] ::-webkit-scrollbar-thumb { background: rgba(15,39,64,.22); background-clip: padding-box; }
/* Dark islands inside the light page */
[data-theme=light] .side, [data-theme=light] .topnav, [data-theme=light] .banner, [data-theme=light] .hero, [data-theme=light] .new-menu, [data-theme=light] .theme-menu, [data-theme=light] .user-menu, [data-theme=light] .top-menu {
  --orange-2: #5cc8ff; --ink: #eaf2fb; --ink-2: rgba(234,242,251,.72); --ink-3: rgba(234,242,251,.5);
  --glass-2: rgba(255,255,255,.12); --glass-line: rgba(255,255,255,.14); color: var(--ink);
}
[data-theme=light] .side, [data-theme=light] .topnav { box-shadow: 0 16px 44px rgba(15,39,64,.32), inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.3); }
[data-theme=light] .side a, [data-theme=light] .topnav a:not(.dropdown-item) { color: #fff; }
[data-theme=light] .banner a:not(.btn-g):not(.btn-glass) { color: var(--ink-2); }
[data-theme=light] .banner .btn-glass, [data-theme=light] .hero .btn-glass, [data-theme=light] .side .btn-glass, [data-theme=light] .topnav .btn-glass { color: #fff; }
/* Buttons */
[data-theme=light] .btn-glass, [data-theme=light] .btn-glass:visited { background: #fff; border-color: rgba(15,39,64,.16); color: var(--ink); box-shadow: 0 2px 6px rgba(15,39,64,.06); }
[data-theme=light] .btn-glass:hover { background: #e8f0fd; color: #0f3f99; }
[data-theme=light] .side .btn-glass, [data-theme=light] .topnav .btn-glass, [data-theme=light] .banner .btn-glass, [data-theme=light] .hero .btn-glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); box-shadow: none; }
[data-theme=light] .side .btn-glass:hover, [data-theme=light] .topnav .btn-glass:hover, [data-theme=light] .banner .btn-glass:hover, [data-theme=light] .hero .btn-glass:hover { background: rgba(255,255,255,.22); color: #fff; }
/* Forms: white boxes, clear borders */
[data-theme=light] .form-control, [data-theme=light] .form-select, [data-theme=light] .fc { background: #fff !important; border: 1px solid rgba(15,39,64,.22) !important; color: var(--ink) !important; }
[data-theme=light] .form-control:focus, [data-theme=light] .form-select:focus { background: #fff !important; border-color: #2f7cf6 !important; box-shadow: 0 0 0 4px rgba(47,124,246,.15) !important; }
[data-theme=light] .form-control:disabled, [data-theme=light] .form-control[readonly] { background: #f2f5f9 !important; }
[data-theme=light] .form-select option { background: #fff; color: var(--ink); }
[data-theme=light] input[type=date]::-webkit-calendar-picker-indicator { filter: none; opacity: .65; }
[data-theme=light] .form-check-input { background-color: #fff; border-color: rgba(15,39,64,.35); }
[data-theme=light] .form-check-input:checked { background-color: #2f7cf6; border-color: #2f7cf6; }
[data-theme=light] .chip-check { background: #fff; border-color: rgba(15,39,64,.18); }
[data-theme=light] .chip-check:has(input:checked) { background: #e3edfd; border-color: #2f7cf6; color: #0f3f99; box-shadow: none; }
/* Tables */
[data-theme=light] .tbl th { background: #f1f5fa; color: rgba(18,35,58,.72); border-bottom: 1px solid rgba(15,39,64,.14); }
[data-theme=light] .tbl td { border-bottom: 1px solid rgba(15,39,64,.08); }
[data-theme=light] .tbl tbody tr:hover { background: #f3f7fd; }
[data-theme=light] .tbl tfoot td { background: #e8f0fd; border-top: 1px solid rgba(47,124,246,.45); }
[data-theme=light] .tbl a { color: #1f5fcc; }
[data-theme=light] .tbl a:hover { color: #0f3f99; }
/* Pills */
[data-theme=light] .pill { background: #f1f5fa; border-color: rgba(15,39,64,.14); color: var(--ink); }
[data-theme=light] .pill.o { background: #e3edfd; border-color: #a9c6f7; color: #1849a6; }
[data-theme=light] .pill.g { background: #e1f6ec; border-color: #9fdcc0; color: #0b6e45; }
[data-theme=light] .pill.r { background: #fdeaea; border-color: #f2b3b3; color: #a82727; }
[data-theme=light] .pill.b { background: #e3f1fc; border-color: #a7d2f2; color: #135f99; }
[data-theme=light] .banner .pill, [data-theme=light] .side .pill { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #eaf2fb; }
/* Other pieces */
[data-theme=light] .kpi:hover { box-shadow: 0 18px 40px rgba(15,39,64,.16); }
[data-theme=light] .qa:hover { color: #0f3f99; background: #fff; }
[data-theme=light] .qa i { background: #e3edfd; color: #1f6fe0; }
[data-theme=light] .bar { background: rgba(15,39,64,.08); }
[data-theme=light] .feed li { border-bottom-color: rgba(15,39,64,.08); }
[data-theme=light] .pager a:hover { background: #e8f0fd; color: #0f3f99; }
[data-theme=light] .modal-content.glass { background: #fff; color: var(--ink); }
[data-theme=light] .btn-close { filter: none; }
[data-theme=light] .doc-head .logo-tile, [data-theme=light] .brand .logo-tile { box-shadow: 0 4px 14px rgba(15,39,64,.15); }
[data-theme=light] .text-light { color: var(--ink) !important; }
[data-theme=light] .text-white { color: var(--ink) !important; }
[data-theme=light] .side .text-white, [data-theme=light] .banner .text-white, [data-theme=light] .banner .text-light { color: #fff !important; }
[data-theme=light] hr.g { border-color: rgba(15,39,64,.14); }

/* Light look: coloured buttons and tiles keep their own text colour (the plain-link blue must not win over them). */
[data-theme=light] a.btn-g, [data-theme=light] .btn-g, [data-theme=light] .btn-g:hover, [data-theme=light] .btn-g:visited,
[data-theme=light] .btn-primary-g, [data-theme=light] .btn-danger-g { color: #fff; }
[data-theme=light] a.qa, [data-theme=light] .qa { color: var(--ink); }
[data-theme=light] a.qa:hover { color: #0f3f99; }
[data-theme=light] a.pill { color: inherit; }
[data-theme=light] a.pill.b { color: #135f99; } [data-theme=light] a.pill.o { color: #1849a6; }
[data-theme=light] .pager a { color: var(--ink-2); }
[data-theme=light] .pager a.on { color: #fff; }
[data-theme=light] .feed a, [data-theme=light] .kv a { color: #1f5fcc; }
[data-theme=light] .hero .pill, [data-theme=light] .hero p { color: rgba(234,242,251,.85); }
[data-theme=light] .hero .btn-glass { color: #fff; }

/* Buttons that sit on a photo (page banners, dashboard hero): solid dark glass so they read on any part of the picture. */
.banner .btn-glass, .hero .btn-glass, [data-theme=light] .banner .btn-glass, [data-theme=light] .hero .btn-glass {
  background: rgba(6,16,28,.66); border: 1px solid rgba(255,255,255,.38); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.banner .btn-glass:hover, .hero .btn-glass:hover, [data-theme=light] .banner .btn-glass:hover, [data-theme=light] .hero .btn-glass:hover {
  background: rgba(47,124,246,.7); border-color: rgba(255,255,255,.6); color: #fff; }
.banner .pill, .hero .pill, [data-theme=light] .banner .pill, [data-theme=light] .hero .pill { background: rgba(6,16,28,.55); border-color: rgba(255,255,255,.35); color: #fff; }
.banner h2, .banner p, .hero p, [data-theme=light] .banner p, [data-theme=light] .hero p { text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* Quick date chips under the From / To boxes */
.quick-dates { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; order: 99; }
.qd-btn { border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink-2); border-radius: 999px; padding: 4px 11px; font-size: 12px; cursor: pointer; transition: all .2s; }
.qd-btn:hover { background: rgba(47,124,246,.18); color: var(--ink); border-color: rgba(47,124,246,.5); }
.qd-btn.on { background: linear-gradient(135deg, #4a9bff, #2f7cf6); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(47,124,246,.35); }
[data-theme=light] .qd-btn { background: #fff; border-color: rgba(15,39,64,.18); color: var(--ink-2); }
[data-theme=light] .qd-btn:hover { background: #e8f0fd; color: #0f3f99; }
[data-theme=light] .qd-btn.on { color: #fff; }

/* Table tools: live filter, count, sort hint */
.tbl-tools { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--glass-line); flex-wrap: wrap; }
.tbl-tools .tf-wrap { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.tbl-tools .tf-wrap > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.tbl-tools .tbl-filter { padding-left: 34px !important; padding-right: 30px !important; border-radius: 999px !important; font-size: 13px; }
.tbl-tools .tf-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-3); font-size: 18px; line-height: 1; cursor: pointer; display: none; }
.tbl-tools.active .tf-clear { display: block; }
.tbl-tools .tbl-count { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.tbl-tools.active .tbl-count { color: #2f7cf6; font-weight: 600; }
.tbl-tools .tbl-hint { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.tbl th[data-sort] { cursor: pointer; user-select: none; }
.tbl th[data-sort]:hover { color: var(--ink); }
.tbl th[data-sort].asc::after { content: ' \25B2'; font-size: 9px; color: #2f7cf6; }
.tbl th[data-sort].desc::after { content: ' \25BC'; font-size: 9px; color: #2f7cf6; }
@media (max-width: 700px) { .tbl-tools .tbl-hint { display: none; } }

/* Printed tables: zebra rows, clear totals, filter note */
@media print {
  .tbl-tools, .quick-dates { display: none !important; }
  .tbl tbody tr:nth-child(even) td { background: #f3f6fa !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tbl th[data-sort]::after { content: '' !important; }
  .print-head .ph-title .pf { color: #1f5fcc; font-weight: 600; }
  .tbl tfoot td { font-size: 11px; }
  .intro, .text-dim.reveal { margin: 0 0 6px; }
}

/* Top-bar search: stays dark glass with white text when focused, in both looks. */
.tn-right .search-g input:focus, [data-theme=light] .tn-right .search-g input:focus, [data-theme=dark] .tn-right .search-g input:focus {
  background: rgba(255,255,255,.18) !important; border-color: rgba(143,211,255,.9) !important; color: #fff !important; box-shadow: 0 0 0 4px rgba(47,124,246,.3) !important; caret-color: #fff; }
.tn-right .search-g input::selection { background: #2f7cf6; color: #fff; }

/* Account statement (knitter / dyeing house) */
.stmt { padding: 18px 22px; margin-bottom: 16px; border-left: 4px solid #2f7cf6; }
.stmt-head { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 12px; }
.stmt-head small { display: block; color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.stmt-head b { font-size: 15px; }
.stmt-sum { border-collapse: collapse; min-width: 320px; }
.stmt-sum td { padding: 5px 10px 5px 0; border-bottom: 1px dashed var(--glass-line); font-size: 13.5px; }
.stmt-sum td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 30px; }
.stmt-sum tr.close td { font-weight: 700; border-bottom: 2px solid #2f7cf6; border-top: 1px solid #2f7cf6; font-size: 14.5px; }
.stmt-note { margin: 12px 0 0; color: var(--ink-2); font-size: 12.5px; }
@media print {
  .stmt { border: 1px solid #0f2740 !important; border-left: 6px solid #0f2740 !important; padding: 10px 14px !important; margin-bottom: 10px !important; page-break-inside: avoid; }
  .stmt-head small, .stmt-note { color: #444; }
  .stmt-sum td { border-bottom-color: #bbb; }
  .stmt-sign { display: flex; margin-top: 40px; }
}
