:root {
  --bg: #f4f7f9;
  --surface: #ffffff;
  --ink: #333c45;
  --ink-2: #5a6872;
  --muted: #8a97a3;
  --brand: #0091da;
  --brand-2: #00a0e3;
  --brand-soft: #e6f5fc;
  --border: #e3e9ed;
  --border-2: #d7dfe5;
  --head: #f6f0e4;
  --head-2: #efe8da;
  --row-alt: #fafcfe;
  --total-blue: #dceffb;
  --total-yellow: #fdf6d8;
  --neg: #d9534f;
  --pos: #1f9d63;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(38, 57, 71, .06), 0 1px 3px rgba(38, 57, 71, .04);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------------------------------------------------------------- top nav */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 14px 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand { display: flex; align-items: center; gap: 8px; margin-right: 8px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #4cc3f0, #0287c9 62%, #01679c);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: -.5px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45);
}
.brand-name { font-size: 15px; font-weight: 800; letter-spacing: 1.4px; color: #2c3742; }
.brand-name span { display: block; font-size: 7.5px; letter-spacing: 2.6px; font-weight: 600; color: var(--muted); margin-top: -2px; }

.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav a {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 18px;
  font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap;
}
.mainnav a svg { width: 14px; height: 14px; opacity: .75; }
.mainnav a:hover { background: #eef4f8; color: var(--ink); }
.mainnav a.active { background: var(--brand); color: #fff; box-shadow: 0 1px 3px rgba(0,145,218,.35); }
.mainnav a.active svg { opacity: 1; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px;
  border: 1px solid var(--border-2); border-radius: 16px;
  background: #fff; font-size: 11.5px; font-weight: 600; color: var(--ink-2);
}
.pill .caret { font-size: 8px; color: var(--muted); }
.pill.user { border: none; padding-right: 4px; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: #e8eef3; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.btn-release {
  height: 30px; padding: 0 16px; border: 0; border-radius: 16px;
  background: var(--brand-2); color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: .3px; cursor: pointer;
}
.btn-release:hover { background: #0090cc; }

/* -------------------------------------------------------------- page shell */
.shell { display: flex; min-height: calc(100vh - 56px); }

.sidebar {
  width: 216px; flex: 0 0 216px;
  background: #fff; border-right: 1px solid var(--border);
  padding-bottom: 24px;
}
.sidebar-title {
  padding: 14px 16px 10px;
  font-size: 15px; font-weight: 700; color: #2f3942;
}
.side-group { border-top: 1px solid #edf1f4; }
.side-group > .side-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px 9px 16px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  background: #fbfcfd; cursor: pointer;
}
.side-group > .side-head .chev { font-size: 9px; color: #9aa7b2; transition: transform .15s; }
.side-group.open > .side-head { background: #f4f8fa; color: #2f3942; }
.side-group.open > .side-head .chev { transform: rotate(90deg); }
.side-group .side-items { display: none; padding: 2px 0 8px; }
.side-group.open .side-items { display: block; }
.side-items a {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px 7px 24px;
  font-size: 11.5px; color: #55636e;
  border-left: 3px solid transparent;
}
.side-items a:hover { background: #f5fafd; color: var(--brand); }
.side-items a.active {
  color: var(--brand); font-weight: 700;
  background: #f2f9fd; border-left-color: var(--brand);
}
.star { color: #e9b949; font-size: 10px; }

.main { flex: 1; min-width: 0; padding: 16px 18px 40px; }

.page-head { display: flex; align-items: flex-end; gap: 26px; margin-bottom: 14px; }
.page-title { font-size: 22px; font-weight: 400; color: #3a444d; margin: 0 0 2px; }
.page-sub { font-size: 11.5px; color: var(--muted); }
.tabs { display: flex; gap: 22px; }
.tab {
  padding-bottom: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  border-bottom: 2px solid transparent;
}
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab:hover { color: var(--brand); }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 8px;
  font-size: 12px; font-weight: 600; color: #4a565f;
}
.card-body { padding: 0 14px 12px; }

.grid { display: grid; gap: 14px; }
.grid-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-dash-top { grid-template-columns: 1.55fr 1fr 1fr; }
.grid-dash-bottom { grid-template-columns: 1.1fr 1fr; }
.mt14 { margin-top: 14px; }

/* KPI */
.kpi {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 12px 14px 13px; min-height: 92px;
}
.kpi-label {
  font-size: 10px; font-weight: 700; letter-spacing: .6px;
  color: #7d8b96; text-transform: uppercase; margin-bottom: 8px;
}
.kpi-value { font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: -.4px; }
.kpi-value.neg { color: var(--neg); }
.kpi-value.pos { color: #2aa06a; }
.kpi-value.neutral { color: #35414b; }
.kpi-delta { margin-top: 9px; font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.kpi-delta .dn { color: var(--neg); }
.kpi-delta .up { color: var(--pos); }
.kpi-icon {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #9fb0bd; background: #f6f9fb; border: 1px solid #edf2f5;
}
.kpi-icon svg { width: 19px; height: 19px; }

.chart-wrap { position: relative; width: 100%; }
.h180 { height: 180px; }
.h200 { height: 200px; }
.h215 { height: 215px; }

.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-size: 10px; color: var(--ink-2); }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 4px; }

/* ------------------------------------------------------------- filter bar */
.filters {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 10px 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
}
.field { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.field label { font-weight: 600; white-space: nowrap; }
.input, .select {
  height: 28px; padding: 0 8px;
  border: 1px solid var(--border-2); border-radius: 4px;
  background: #fff; font-size: 11.5px; color: #3d4952;
}
.input:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(0,145,218,.12); }
.select { min-width: 150px; }
.btn {
  height: 28px; padding: 0 18px; border: 0; border-radius: 4px;
  background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.btn:hover { background: #0081c4; }
.btn.ghost { background: #fff; border: 1px solid var(--border-2); color: var(--ink-2); }
.btn.ghost:hover { background: #f5f9fb; }
.btn.sm { height: 24px; padding: 0 10px; font-size: 11px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); }

/* ---------------------------------------------------------------- toolbar */
.toolbar {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  background: #fff; border: 1px solid var(--border);
  border-bottom: 1px solid var(--border); border-top: none;
  font-size: 11.5px; color: #5d6b76;
}
.toolbar .tbtn {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border-radius: 3px; cursor: pointer; color: #6b7783; border: 1px solid transparent;
  background: none;
}
.toolbar .tbtn:hover { background: #f1f6f9; border-color: var(--border); }
.toolbar .zoom { height: 22px; border: 1px solid var(--border-2); border-radius: 3px; font-size: 11px; padding: 0 2px; }
.toolbar .pages { padding: 0 6px; }
.toolbar .spacer { flex: 1; }
.toolbar .find { display: flex; align-items: center; gap: 4px; color: #8b98a3; }
.toolbar .find input { height: 22px; border: 1px solid var(--border-2); border-radius: 3px; padding: 0 6px; font-size: 11px; width: 150px; }

/* ------------------------------------------------------------- report view */
.report-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: auto;
  max-height: calc(100vh - 210px);
}
.report-title { padding: 16px 18px 2px; }
.report-title h2 { margin: 0; font-size: 14px; font-weight: 700; color: #38424b; }
.report-title p { margin: 4px 0 0; font-size: 11.5px; color: #6b7885; }

table.rep {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
table.rep th, table.rep td {
  border-right: 1px solid #edf1f4;
  border-bottom: 1px solid #eef2f5;
  padding: 5px 9px;
  white-space: nowrap;
}
table.rep th:last-child, table.rep td:last-child { border-right: none; }
table.rep thead th {
  background: var(--head);
  color: #4a5158;
  font-weight: 600;
  text-align: right;
  position: sticky; top: 0; z-index: 2;
  border-bottom: 1px solid #e2d9c6;
}
table.rep thead tr:nth-child(2) th { top: 25px; }
table.rep thead th.grp {
  text-align: center; background: var(--head-2); font-size: 11px;
  letter-spacing: .4px; text-transform: uppercase; color: #5b5344;
}
table.rep thead th.corner { text-align: left; background: var(--head-2); }
table.rep td { text-align: right; color: #43505a; }
table.rep td.lbl {
  text-align: left; color: #3f4b55; font-weight: 500;
  position: sticky; left: 0; background: #fff; z-index: 1;
  border-right: 1px solid var(--border-2); min-width: 172px;
}
table.rep thead th.corner, table.rep thead th.first {
  position: sticky; left: 0; z-index: 3;
}
table.rep tbody tr:nth-child(even) td { background: var(--row-alt); }
table.rep tbody tr:nth-child(even) td.lbl { background: var(--row-alt); }
table.rep tr.total td { background: var(--total-blue) !important; font-weight: 700; color: #2f4653; }
table.rep tr.total td.lbl { font-weight: 700; }
table.rep tr.subtotal td { background: #f3f8fb !important; font-weight: 600; }
table.rep tr.grand td { background: var(--total-yellow) !important; font-weight: 700; color: #4c4633; }
table.rep tr.section td { background: #f7fafc !important; font-weight: 700; color: #46525c; letter-spacing: .2px; }
table.rep tr.group-row td { background: #eef4f8 !important; font-weight: 700; color: #3c4a55; }
table.rep td.neg { color: var(--neg); }
table.rep td.muted { color: #96a3ae; }
table.rep td.sub { color: #7a8792; font-size: 10.5px; }
table.rep tbody tr:hover td { background: #f3fafe; }
table.rep tbody tr:hover td.lbl { background: #f3fafe; }
table.rep.dense th, table.rep.dense td { padding: 4px 7px; font-size: 11px; }

.report-foot-note { padding: 8px 18px 12px; font-size: 10.5px; color: var(--muted); }

/* ------------------------------------------------------------ list tables */
table.list { width: 100%; border-collapse: collapse; font-size: 11.5px; }
table.list th {
  background: #f7fafc; text-align: left; font-weight: 600; color: #5d6b76;
  padding: 8px 10px; border-bottom: 1px solid var(--border);
}
table.list td { padding: 7px 10px; border-bottom: 1px solid #f1f5f8; color: #46525c; }
table.list tr:hover td { background: #fafcfe; }
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.list tr.tot td { background: #f4f9fc; font-weight: 700; }
.tag {
  display: inline-block; padding: 1px 7px; border-radius: 9px;
  font-size: 10px; font-weight: 600; background: #eef4f8; color: #5c6b77;
}
.tag.green { background: #e6f6ee; color: #1f8a58; }
.tag.red { background: #fdeceb; color: #c0453f; }
.tag.blue { background: #e6f4fc; color: #0a7fb8; }

/* --------------------------------------------------------------- cash up */
.cashup-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; align-items: start; }
.cashup-table input.amount {
  width: 108px; height: 26px; text-align: right; padding: 0 7px;
  border: 1px solid var(--border-2); border-radius: 3px; font-variant-numeric: tabular-nums;
}
.cashup-table input.amount:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(0,145,218,.12); }
.cashup-table input.amount.dirty { border-color: #e6b355; background: #fffdf4; }
.cashup-summary { padding: 12px 14px; }
.sumrow { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #edf1f4; font-size: 12px; }
.sumrow:last-child { border-bottom: none; }
.sumrow strong { font-variant-numeric: tabular-nums; }
.sumrow.big { font-size: 13px; font-weight: 700; }

.note {
  display: flex; gap: 8px; padding: 10px 12px; border-radius: 5px;
  background: #f0f8fd; border: 1px solid #d8ecf8; color: #44626f; font-size: 11.5px;
}

/* ----------------------------------------------------------------- footer */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; border-top: 1px solid var(--border);
  font-size: 10.5px; color: #93a0ab; background: #fff;
}
.footer a { margin-left: 14px; }
.footer a:hover { color: var(--brand); }

/* --------------------------------------------------------------- imports */
.import-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f4f7; }
.import-row:last-child { border-bottom: none; }
.file-ic {
  width: 28px; height: 28px; border-radius: 4px; background: #fdeceb; color: #d9534f;
  display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700;
}
.import-name { font-size: 11.5px; font-weight: 600; color: #3f4b55; }
.import-meta { font-size: 10.5px; color: var(--muted); }

.empty { padding: 40px; text-align: center; color: var(--muted); font-size: 12px; }

@media (max-width: 1180px) {
  .grid-dash-top { grid-template-columns: 1fr 1fr; }
  .grid-dash-bottom { grid-template-columns: 1fr; }
  .grid-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .grid-dash-top, .grid-2, .cashup-grid { grid-template-columns: 1fr; }
  .mainnav { display: none; }
}

/* ============================================================ utilities */
.link { color: var(--brand); font-weight: 600; }
.link:hover { text-decoration: underline; }
.nowrap { white-space: nowrap; }
.muted { color: #96a3ae; }
.neg { color: var(--neg); }
.pos { color: var(--pos); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
code {
  font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 10.5px;
  background: #f2f6f9; border: 1px solid var(--border); border-radius: 3px;
  padding: 1px 4px; color: #46525d;
}
.linkbtn {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  color: var(--brand); font-size: 11.5px; font-weight: 600;
}
.linkbtn:hover { text-decoration: underline; }
.sub-head {
  padding: 8px 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: #8695a1; background: #fbfcfd;
  border-bottom: 1px solid #eef2f5;
}

/* ---------------------------------------------------------------- alerts */
.alert {
  border-radius: var(--radius); padding: 10px 14px; font-size: 11.5px;
  margin: 12px 0; border: 1px solid transparent; line-height: 1.5;
}
.alert.good { background: #eaf7f0; border-color: #c9e9d8; color: #1a7a4c; }
.alert.bad { background: #fdeceb; border-color: #f6cfcc; color: #b8443e; }
.alert.info { background: var(--brand-soft); border-color: #c8e7f7; color: #0a6a97; }

/* ----------------------------------------------------------- empty state */
.empty-state { padding: 26px 22px; text-align: center; }
.empty-state h3 { margin: 10px 0 6px; font-size: 14px; font-weight: 600; color: #4a5763; }
.empty-state p {
  margin: 0 auto; max-width: 560px; font-size: 11.5px;
  color: var(--muted); line-height: 1.6;
}
.empty-mark {
  width: 46px; height: 46px; margin: 0 auto; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.empty-mark svg { width: 22px; height: 22px; }
.empty-actions { margin-top: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------ user menu */
.pill-form { margin: 0; }
.pill-select {
  border: 1px solid var(--border-2); border-radius: 12px; padding: 3px 8px;
  background: #fff; font-size: 11px; cursor: pointer; max-width: 190px;
}
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 232px;
  background: #fff; border: 1px solid var(--border-2); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(38, 57, 71, .14); padding: 6px 0; text-align: left;
}
.user-pop-head { padding: 8px 12px 10px; border-bottom: 1px solid #eef2f5; }
.user-pop-head strong { display: block; font-size: 12px; }
.user-pop-head span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.user-pop-head .tag { margin-top: 6px; display: inline-block; }
.user-pop a, .user-pop form button {
  display: block; width: 100%; text-align: left; padding: 7px 12px;
  font-size: 11.5px; color: var(--ink-2); background: none; border: none; cursor: pointer;
}
.user-pop a:hover, .user-pop form button:hover { background: #f5fafd; color: var(--brand); }
.user-pop form { border-top: 1px solid #eef2f5; margin-top: 4px; padding-top: 4px; }

/* --------------------------------------------------------------- admin */
.admin-tabs { margin: 2px 0 0; }
.admin-form { padding: 12px 14px 14px; display: block; }
.admin-form.inline { display: inline-block; width: 100%; }
.form-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px; margin-bottom: 10px;
}
.form-grid.single { grid-template-columns: 1fr; }
.form-grid .auth-field { margin: 0; }
.form-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 8px; border-top: 1px solid #f0f4f7; margin-top: 8px;
}
.form-inline { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.form-inline .auth-field { margin: 0; flex: 1; min-width: 140px; }

.rights-cell { font-size: 10.5px; color: var(--muted); }
.rights-group { border-top: 1px solid #eef2f5; }
.rights-group:first-of-type { border-top: none; }
.rights-group-head {
  padding: 8px 14px 6px; font-size: 10px; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase; color: #8d9aa6;
}
.rights-table td { vertical-align: top; }
.rights-label { width: 46%; }
.rights-label strong { font-size: 11.5px; display: block; margin-bottom: 2px; }
.rights-default { width: 104px; text-align: right; }
.rights-choice { width: 220px; white-space: nowrap; }
.rights-choice .chk { margin-right: 10px; }

.activity-table td { font-size: 11px; }
.activity-table .detail-cell { color: var(--ink-2); max-width: 380px; }
.activity-table .detail-cell .import-meta { display: inline; }

.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 14px; border-top: 1px solid #eef2f5;
}
.btn.disabled, .btn[disabled] {
  opacity: .45; pointer-events: none; cursor: default;
}

.action-list { list-style: none; margin: 0; padding: 4px 14px 12px; }
.action-list li { padding: 10px 0; border-bottom: 1px solid #f2f5f8; }
.action-list li:last-child { border-bottom: none; }
.action-list strong { font-size: 12px; display: block; margin-bottom: 3px; }
.action-list p { margin: 0 0 8px; font-size: 10.5px; color: var(--muted); line-height: 1.5; }

.period-pills { border-radius: var(--radius); border-bottom: 1px solid var(--border); margin-bottom: 10px; }

/* ---------------------------------------------------------------- auth */
.auth-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 30px 18px;
  background: linear-gradient(170deg, #eef6fa 0%, var(--bg) 45%);
}
.auth-card {
  width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(38, 57, 71, .09);
  padding: 26px 26px 24px;
}
.auth-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.auth-brand .brand-mark { width: 34px; height: 34px; font-size: 13px; }
.auth-title { margin: 0 0 4px; font-size: 19px; font-weight: 600; color: #37424c; }
.auth-sub { margin: 0 0 14px; font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--ink-2); }
.auth-field > span { font-weight: 600; }
.auth-field small { font-size: 10px; color: var(--muted); }
.auth-field .input, .auth-field .select { width: 100%; height: 32px; }
.auth-submit { height: 34px; margin-top: 4px; width: 100%; }
.auth-hint { margin: 14px 0 0; font-size: 11px; color: var(--muted); text-align: center; }
.auth-foot { margin: 16px 0 0; font-size: 10.5px; color: #9aa7b2; }

@media (max-width: 1180px) {
  .grid-dash-top { grid-template-columns: 1fr 1fr; }
  .grid-dash-bottom { grid-template-columns: 1fr; }
  .grid-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .grid-dash-top, .grid-2, .cashup-grid { grid-template-columns: 1fr; }
  .mainnav { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .rights-choice { width: auto; }
}
