/* ==========================================================
   Dye Management System — Govind Jewellers
   ========================================================== */
:root {
  --navy: #0f1b33;
  --navy-2: #16243f;
  --gold: #b8862f;
  --gold-dark: #9a6d1f;
  --gold-light: #ecd59f;
  --gold-soft: #fbf3e2;
  --bg: #f4f6fa;
  --card: #ffffff;
  --border: #e7eaf0;
  --text: #111827;
  --muted: #6b7280;
  --green: #1f9d55;   --green-bg: #e3f6ea;
  --orange: #b8741a;  --orange-bg: #fdf0dc;
  --blue: #2563eb;    --blue-bg: #e4edfe;
  --pink: #c2368f;    --pink-bg: #fbe6f3;
  --purple: #7c3aed;  --purple-bg: #efe8fd;
  --red: #dc2626;     --red-bg: #fde8e8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 10px rgba(16, 24, 40, .04);
  --sidebar-w: 240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.ic { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt { margin-top: 20px; } .mb { margin-bottom: 20px; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #e7ebf3; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column;
  padding: 18px 14px; z-index: 40; transition: transform .25s ease;
}
.brand { text-align: center; padding: 6px 6px 18px; border-bottom: 1px solid rgba(236, 213, 159, .35); margin: 0 10px 22px; }
.brand-mark { color: var(--gold-light); display: inline-block; }
.brand-name { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--gold-light); line-height: 1; }
.brand-name .l1 { display: block; font-size: 34px; font-weight: 600; }
.brand-name .l2 { display: block; font-size: 25px; font-weight: 500; margin-top: 2px; }
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav a {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px;
  color: #e7ebf3; font-size: 16px; font-weight: 500; transition: background .15s;
}
.nav a:hover { background: rgba(255, 255, 255, .07); }
.nav a.active { background: linear-gradient(180deg, #f0dba8, #e3c27f); color: var(--navy); font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.sidebar-foot { margin-top: auto; padding: 12px 10px 4px; font-size: 12px; color: #8d97ab; text-align: center; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 84px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center;
  gap: 20px; padding: 0 28px; position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 30px; font-weight: 700; margin: 0; letter-spacing: -.4px; white-space: nowrap; display: flex; align-items: center; gap: 12px; }
.topbar .menu-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--text); }
.top-search { flex: 1; max-width: 540px; margin-left: auto; display: flex; border: 1px solid #d5d9e2; border-radius: 10px; overflow: hidden; background: #fff; }
.top-search input { flex: 1; border: 0; padding: 12px 16px; font: inherit; font-size: 14px; outline: none; min-width: 0; }
.top-search button { border: 0; background: var(--navy); color: #fff; width: 56px; cursor: pointer; display: grid; place-items: center; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn { position: relative; background: none; border: 0; cursor: pointer; color: var(--text); padding: 6px; border-radius: 50%; display: grid; place-items: center; }
.icon-btn:hover { background: #f1f3f7; }
.dot { position: absolute; top: 4px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: #e11d48; border: 2px solid #fff; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 320px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); padding: 8px; display: none; z-index: 50;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu .dm-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; font-weight: 600; }
.dropdown-menu a, .dropdown-menu button.dm-item {
  display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 8px; font-size: 14px;
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit;
}
.dropdown-menu a:hover, .dropdown-menu button.dm-item:hover { background: #f5f6f9; }
.user-menu { width: 230px; }

.content { padding: 26px 28px 40px; flex: 1; }
.page-title { display: flex; align-items: center; gap: 14px; margin: 4px 0 22px; }
.page-title h2 { font-size: 30px; margin: 0; letter-spacing: -.3px; }
.page-title .ic-wrap { color: var(--gold); }
.page-title .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h3 { margin: 0; font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.link { color: #1d4ed8; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { text-decoration: underline; }

.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 20px 16px; transition: transform .15s, box-shadow .15s; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16, 24, 40, .08); }
.stat .s-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.stat .s-label { font-size: 16px; font-weight: 500; white-space: nowrap; }
.stat .s-value { font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; }
.s-total .s-ic { background: #e6efff; color: #2453c7; }
.s-available .s-ic { background: var(--green-bg); color: var(--green); } .s-available .s-value { color: var(--green); }
.s-casting .s-ic { background: var(--purple-bg); color: #5b21b6; }
.s-production .s-ic { background: var(--orange-bg); color: var(--orange); }
.s-transit .s-ic { background: var(--pink-bg); color: var(--pink); }

.grid-dash { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.grid-left { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 22px; align-items: start; }
.grid-half { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.grid-dash > *, .grid-left > *, .grid-half > *, .detail-grid > *, .stack > * { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 22px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table thead th { background: #f3f5f9; text-align: left; font-weight: 600; padding: 14px 12px; white-space: nowrap; font-size: 14.5px; }
.table thead th:first-child { border-radius: 10px 0 0 10px; }
.table thead th:last-child { border-radius: 0 10px 10px 0; }
.table tbody td { padding: 10px 12px; border-bottom: 1px solid #eef0f4; vertical-align: middle; }
.table tbody tr:hover td { background: #fafbfd; }
.table .empty { text-align: center; color: var(--muted); padding: 34px; }
.thumb { width: 76px; height: 58px; border-radius: 8px; object-fit: cover; background: #f4efe4; border: 1px solid #efe7d6; }
.thumb-ph { width: 76px; height: 58px; border-radius: 8px; background: var(--gold-soft); color: #c9a35a; display: grid; place-items: center; border: 1px solid #efe4cc; }
.dye-nos { max-width: 180px; word-break: break-word; }
.row-actions { display: flex; gap: 6px; align-items: center; }
.row-actions a, .row-actions button { background: none; border: 0; padding: 6px; border-radius: 6px; cursor: pointer; color: var(--text); display: grid; place-items: center; }
.row-actions a:hover, .row-actions button:hover { background: #eef1f6; }
.row-actions .del { color: var(--red); }
.row-actions form { margin: 0; }

.badge { display: inline-block; padding: 7px 14px; border-radius: 7px; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.badge-available { background: var(--green-bg); color: var(--green); }
.badge-casting { background: var(--orange-bg); color: var(--orange); }
.badge-production { background: var(--blue-bg); color: var(--blue); }
.badge-transit { background: var(--pink-bg); color: var(--pink); }
.badge-sm { padding: 3px 9px; font-size: 12.5px; }
.badge-role { background: #eef1f6; color: #374151; }

/* ---------- Forms ---------- */
.input, select.input, textarea.input {
  width: 100%; padding: 12px 15px; font: inherit; font-size: 15px; border: 1px solid #d5d9e2; border-radius: 9px;
  background: #fff; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 134, 47, .15); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
label.lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.req { color: var(--red); }
.field { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 20px; border-radius: 9px;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: filter .15s, background .15s;
  white-space: nowrap;
}
.btn-gold { background: linear-gradient(180deg, #c09038, #9e7022); color: #fff; box-shadow: 0 2px 6px rgba(158, 112, 34, .3); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-light { background: #fff; border-color: #cfd4dd; color: var(--text); }
.btn-light:hover { background: #f6f7fa; }
.btn-danger { background: #fff; border-color: #f3c4c4; color: var(--red); }
.btn-danger:hover { background: var(--red-bg); }
.btn-lg { padding: 15px 26px; font-size: 19px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }

/* Quick search panel */
.quick-search .input { margin-bottom: 14px; }
.qs-cat { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-bottom: 18px; }
.qs-cat label { font-weight: 600; font-size: 17px; }
.qs-cat .input { margin: 0; }

/* Donut */
.donut-wrap { display: flex; align-items: center; gap: 26px; }
.donut { width: 176px; height: 176px; border-radius: 50%; position: relative; flex-shrink: 0; }
.donut::after { content: ''; position: absolute; inset: 30px; background: #fff; border-radius: 50%; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; z-index: 1; }
.donut-center strong { display: block; font-size: 26px; line-height: 1; }
.donut-center span { font-size: 15px; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.legend li a { display: flex; align-items: center; gap: 10px; }
.legend li a:hover .lg-name { text-decoration: underline; }
.legend .sw { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.legend .lg-val { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Quick actions */
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.qa a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px 10px;
  border-radius: 10px; background: #f3f5f9; border: 1px solid #e6e9ef; font-size: 18px; font-weight: 500; text-align: center;
  transition: transform .15s, background .15s;
}
.qa a:hover { transform: translateY(-2px); background: #eceff5; }
.qa a.primary { background: linear-gradient(180deg, #f1dcab, #e6c785); border-color: #e2c37e; }

/* ---------- Add / Edit dye ---------- */
.form-card { max-width: 920px; padding: 26px; }
.uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.upload-box { border-radius: 12px; overflow: hidden; background: #f8f9fb; border: 1px solid #eef0f4; }
.upload-head { background: var(--gold-soft); display: flex; align-items: center; gap: 18px; padding: 16px 22px; }
.upload-head .ic { color: var(--gold); }
.upload-head strong { display: block; font-size: 21px; }
.upload-head span { font-size: 15px; color: #4b5563; }
.dropzone {
  margin: 14px; border: 2px dashed #8b93a3; border-radius: 10px; min-height: 230px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 18px; cursor: pointer; position: relative; background: #fff;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: #fffcf5; }
.dropzone .dz-ic { color: #555d6b; margin-bottom: 12px; }
.dropzone .dz-title { font-size: 17px; font-weight: 500; }
.dropzone .dz-sub { font-size: 14.5px; color: #4b5563; margin-top: 4px; }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone .dz-preview { position: absolute; inset: 0; background: #fff; display: none; border-radius: 8px; }
.dropzone .dz-preview img { width: 100%; height: 100%; object-fit: contain; }
.dropzone.has-image .dz-preview { display: block; }
.dropzone .dz-change { position: absolute; bottom: 10px; right: 10px; background: rgba(15, 27, 51, .85); color: #fff; padding: 5px 10px; border-radius: 6px; font-size: 12.5px; display: none; }
.dropzone.has-image .dz-change { display: block; }

.frow {
  display: grid; grid-template-columns: 56px 200px 1fr; align-items: center; gap: 18px; background: #fafbfc;
  border: 1px solid #f0f1f4; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px;
}
.frow .f-ic { width: 48px; height: 48px; border-radius: 9px; background: #eef0f4; display: grid; place-items: center; color: #374151; }
.frow label { font-weight: 700; font-size: 18.5px; }
.frow .hint { grid-column: 3; font-size: 12.5px; color: var(--muted); margin-top: -10px; }
.form-actions { display: grid; grid-template-columns: 1.8fr 1fr; gap: 24px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ---------- Dye detail ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.img-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fafbfc; }
.img-card .ttl { padding: 10px 14px; background: var(--gold-soft); font-weight: 600; }
.img-card .pic { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #fff; }
.img-card .pic img { width: 100%; height: 100%; object-fit: contain; }
.img-card .pic .ph { color: #c9a35a; text-align: center; font-size: 14px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 12px 16px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #eef1f6; border-radius: 6px; padding: 3px 10px; font-weight: 600; font-size: 14px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.timeline li::after { content: ''; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: #eceef3; }
.timeline li:last-child::after { display: none; }
.timeline .t-meta { font-size: 13px; color: var(--muted); }

/* ---------- Misc ---------- */
.flash { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.flash-success { background: var(--green-bg); color: #166534; border: 1px solid #bfe7cd; }
.flash-error { background: var(--red-bg); color: #991b1b; border: 1px solid #f6c6c6; }
.flash a { text-decoration: underline; margin-left: auto; font-weight: 600; }
.errors { background: var(--red-bg); color: #991b1b; border: 1px solid #f6c6c6; border-radius: 10px; padding: 12px 18px; margin-bottom: 20px; }
.errors ul { margin: 6px 0 0; padding-left: 18px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filters .input { width: auto; min-width: 150px; padding: 10px 14px; }
.filters .grow { flex: 1; min-width: 200px; }

.pagination { display: flex; gap: 6px; justify-content: flex-end; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-size: 14px; }
.pagination .cur { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .dis { color: #b5bac4; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 22px; flex-wrap: wrap; }
.tabs a { padding: 11px 16px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 8px; align-items: center; }
.tabs a.active { color: var(--text); border-color: var(--gold); }

.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.rcard { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow .15s, transform .15s; display: block; }
.rcard:hover { box-shadow: 0 8px 22px rgba(16, 24, 40, .09); transform: translateY(-2px); }
.rcard .rimg { aspect-ratio: 4 / 3; background: var(--gold-soft); display: grid; place-items: center; color: #c9a35a; }
.rcard .rimg img { width: 100%; height: 100%; object-fit: cover; }
.rcard .rbody { padding: 12px 14px; }
.rcard .rtitle { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.rcard .rmeta { font-size: 13.5px; color: #4b5563; margin-top: 6px; display: grid; gap: 2px; }

.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix tfoot td { font-weight: 700; border-top: 2px solid var(--border); padding: 12px; }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-stats > * { display: block; background: #f6f7fa; border-radius: 10px; padding: 12px 14px; }
.mini-stats strong { display: block; font-size: 24px; }

.preview-box { display: none; align-items: center; gap: 14px; padding: 12px; border: 1px dashed #d5d9e2; border-radius: 10px; margin-bottom: 14px; background: #fafbfc; }
.preview-box.show { display: flex; }
.preview-box img, .preview-box .thumb-ph { width: 64px; height: 50px; }

/* Login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { background: linear-gradient(160deg, var(--navy), #1c2d52); color: var(--gold-light); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; }
.login-art .brand-name .l1 { font-size: 60px; }
.login-art .brand-name .l2 { font-size: 42px; }
.login-art p { color: #c4cbe0; max-width: 360px; margin-top: 26px; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-form .card { width: 100%; max-width: 420px; padding: 34px; }
.login-form h2 { margin: 0 0 6px; font-size: 26px; }

.error-page { max-width: 520px; margin: 60px auto; text-align: center; }

/* Responsive */
.backdrop { display: none; }
@media (max-width: 1400px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .grid-dash, .detail-grid, .grid-left, .grid-half { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 35; }
  .main { margin-left: 0; }
  .topbar { padding: 0 16px; height: 68px; gap: 12px; }
  .topbar .menu-btn { display: grid; }
  .topbar h1 { font-size: 18px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; }
  .top-actions { gap: 4px; }
  .avatar { width: 36px; height: 36px; }
  .dropdown-menu { width: min(320px, calc(100vw - 24px)); }
  .stat .s-label { white-space: normal; font-size: 14px; }
  .topbar h1 .ic { display: none; }
  .top-search { display: none; }
  .content { padding: 18px 14px 30px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 14px; gap: 12px; }
  .stat .s-ic { width: 44px; height: 44px; }
  .stat .s-value { font-size: 24px; }
  .qa { grid-template-columns: repeat(2, 1fr); }
  .uploads, .img-pair { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 44px 1fr; }
  .frow .f-ic { width: 40px; height: 40px; }
  .frow label { font-size: 16px; }
  .frow .input { grid-column: 1 / -1; }
  .frow .hint { grid-column: 1 / -1; margin-top: -8px; }
  .form-actions { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { padding: 30px; }
  .login-art .brand-name .l1 { font-size: 40px; } .login-art .brand-name .l2 { font-size: 28px; }
  .login-art p { display: none; }
  .donut-wrap { flex-direction: column; align-items: stretch; }
  .donut { margin: 0 auto; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .page-title h2 { font-size: 24px; }
  .kv { grid-template-columns: 110px 1fr; }
}
@media print {
  .sidebar, .topbar, .no-print, .filters, .pagination { display: none !important; }
  .main { margin: 0; }
  .card { box-shadow: none; }
}
