/* Tabler 1.5.1: shared brand theme and existing application layout contracts. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.admin-web {
  --radius-card: 12px;
  --radius-control: 8px;
  --shadow-card: 0 2px 8px rgba(30, 31, 84, 0.035);
  --shadow-soft: var(--shadow-card);
  --radius: var(--radius-card);
  --form-control-height: 40px;
  display: block;
  padding-left: 218px;
  background: var(--color-bg);
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.admin-web .ui-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.admin-web .ui-icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.admin-web button { font-weight: 500; box-shadow: none; }
.admin-web button:focus-visible { box-shadow: 0 0 0 5px #5557a5; }
.admin-web :is(input, select, textarea) { font-family: inherit; border-radius: 8px; }
.admin-web :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]) { min-height: var(--form-control-height); }
.admin-web :is(.dictionary-editor-row, .fiscal-template-form) button { min-height: var(--form-control-height); }
.admin-web .manager-status-row { align-items: end; }
.admin-web .dictionary-editor-row > .row-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 320px; max-width: 100%; justify-self: end; }
.admin-web label { font-size: 13px; font-weight: 500; }
.admin-web h1 { color: var(--ink); font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.5px; }
.admin-web h2 { color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -0.2px; }
.admin-web h3 { color: var(--ink); font-size: 15px; font-weight: 600; }
.admin-web :is(.section-head p, .page-head p, .empty-state) { font-size: 13px; }
.admin-web :is(.page-head, .section-head) { gap: 16px; }
.admin-web .page-head { flex-direction: row; align-items: center; margin-bottom: 20px; min-height: 56px; }
.admin-web .page-head::before { display: none; }
.admin-web .page-head p { margin: 4px 0 0; }
.admin-web main { padding: 28px 28px 40px; background: none; overflow-x: visible; }
.admin-web .panel { padding: 20px; margin-bottom: 16px; border-color: var(--line); }
.admin-web :is(.grid, .dashboard-grid, .dashboard-column) { gap: 16px; }
.admin-web .dashboard-panel { margin-bottom: 0; }
.admin-web .section-head { margin-bottom: 16px; }
.admin-web .tabs { padding: 4px; gap: 4px; background: var(--primary-soft); border: 0; border-radius: 8px; }
.admin-web .tabs button { padding-inline: 16px; }
.admin-web .tabs button.active { border-color: transparent; box-shadow: 0 1px 4px rgba(30, 31, 84, 0.08); }
.admin-web :is(.client-card, .list-item, .payment-card, .payment-intent-card) { border-radius: 10px; box-shadow: none; }
.admin-web :is(.client-card, .list-item) { border-color: var(--line); }
.admin-web .client-head { gap: 16px; }
.admin-web :is(.client-title > strong, .client-name) { font-size: 17px; font-weight: 600; }
.admin-web .client-title small { font-size: 13px; }
.admin-web :is(.client-profile-block, .client-summary-item, .client-stat, .payment-intent-evidence-item) { border-radius: 8px; }
.admin-web :is(.actions, .filters) { gap: 8px; }
.admin-web .payment-intent-evidence-item-actions { gap: var(--action-gap); }
.admin-web #calendar .page-head { flex-wrap: wrap; }
.admin-web .calendar-date-option { border-radius: 8px; }
.admin-web :is(th, td) { padding: 12px; }
.admin-web th { font-weight: 500; font-size: 13px; color: var(--muted); }
.admin-web :is(.money-cell, .summary-row strong) { font-variant-numeric: tabular-nums; }
.admin-web :is(.badge, .admin-task-type, .admin-task-critical) { border-radius: 8px; font-weight: 500; }
.admin-web .badge { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; text-align: center; }
.admin-web .danger-panel { background: var(--bad-soft); }
.admin-web dialog { border-radius: 12px; font-family: inherit; }
.admin-web :is(.fiscal-pending-shortcut, #calendarGrid .day) { border-radius: 8px; }
.admin-web dialog::backdrop { background: rgba(11, 11, 49, 0.38); }
.admin-web .dialog-head { gap: 16px; }
.admin-web .dialog-actions { gap: 8px; }

.admin-web .app-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 16px 28px; }
.admin-web .toolbar-menu { width: 44px; min-height: 44px; padding: 8px; flex: 0 0 44px; }
.admin-web .global-search { position: relative; width: min(440px, calc(100% - 64px)); max-width: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; box-shadow: none; }
.admin-web .global-search > label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.admin-web .global-search-field { width: 100%; }
.admin-web .global-search input { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 72px 10px 18px; background: var(--panel); font-size: 13px; }
.admin-web .global-search kbd { border-radius: 6px; font-family: inherit; font-size: 11px; }
.admin-web .global-search-results { z-index: 100; top: calc(100% + 8px); right: 0; width: max(100%, 320px); max-width: calc(100vw - 32px); border-radius: 8px; }

.admin-web .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.admin-web .stats article { min-width: 0; min-height: 132px; grid-template-rows: auto auto auto; align-content: start; gap: 8px; padding: 20px; border-radius: 8px; overflow: visible; }
.admin-web .stats span { font-size: 13px; font-weight: 400; line-height: 1.35; padding-right: 32px; }
.admin-web .stats strong { grid-row: 2; align-self: start; font-size: 28px; line-height: 1.2; font-weight: 600; color: var(--ink); letter-spacing: -0.5px; white-space: nowrap; overflow-wrap: normal; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.admin-web .stats .stats-icon { position: absolute; right: 18px; top: 18px; color: var(--muted); }
.admin-web .stats article.stats-action-card { background: var(--panel); border-color: var(--line); color: var(--ink); }
.admin-web .stats-action-card :is(span, strong) { color: var(--ink); }
.admin-web .stats-action-card span { padding: 0; }
.admin-web .stats-export-button { grid-row: 3; min-height: 28px; margin: 0; padding: 0; font-size: 13px; border: 0; border-radius: 2px; background: transparent; color: var(--primary); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--muted); }
.admin-web .stats-export-button:hover { background: transparent; color: var(--primary); text-decoration-color: var(--primary); }
.admin-web .today-overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: stretch; margin-bottom: 16px; }
.admin-web .today-overview-grid > .panel { min-width: 0; margin: 0; }
.admin-web .today-overview-grid > .dashboard-month { order: 0; }
.admin-web .today-overview-grid > .today-calendar-panel { order: 0; }
.admin-web .dashboard-month .summary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin: 24px 0; }
.admin-web .dashboard-month .summary-row { display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; align-items: flex-start; text-align: left; padding: 0; border: 0; min-width: 0; background: none; }
.admin-web .dashboard-month .summary-row span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.admin-web .dashboard-month .summary-row strong { font-size: 24px; line-height: 1.2; font-weight: 600; white-space: nowrap; overflow-wrap: normal; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.admin-web #monthCollectionHint { font-size: 12px; line-height: 1.4; color: var(--muted); }
.admin-web #monthCollection .data-region-status { order: 1; margin: 0; min-height: 0; font-size: 12px; flex-wrap: wrap; }
.admin-web #monthCollection[aria-busy="false"] .data-region-status:not(.status-error) { display: none; }
.admin-web .today-calendar-panel { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr auto; gap: var(--action-gap); padding: 16px; }
.admin-web .today-calendar-panel .section-head { grid-area: 1 / 1 / 2 / -1; display: flex; flex-direction: row; margin: 0; align-items: center; }
.admin-web .today-calendar-panel .data-region-status { grid-area: 6 / 2; min-height: 0; margin: 0; font-size: 11px; justify-content: flex-end; flex-direction: row; align-self: center; }
.admin-web .today-calendar-panel .data-region-status.status-error { grid-area: 7 / 1 / 8 / -1; flex-wrap: wrap; font-size: 13px; }
.admin-web .today-calendar-panel > .compact-note { grid-area: 4 / 1 / 5 / -1; margin: 4px 0; }
.admin-web .today-calendar-panel > button[data-view] { grid-area: 5 / 1 / 6 / -1; }
.admin-web .today-calendar-panel h2 { margin: 0; }
.admin-web .calendar-title-link { min-height: 32px; padding: 0; background: none; color: var(--ink); font-size: 18px; font-weight: 600; border-radius: 4px; }
.admin-web .calendar-title-link:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.admin-web .today-calendar-controls { grid-area: 2 / 1 / 3 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; text-align: center; }
.admin-web .today-calendar-controls strong { font-size: 13px; font-weight: 500; }
.admin-web .calendar-arrow { width: 44px; min-height: 44px; padding: 8px; }
.admin-web .calendar-arrow .ui-icon { width: 18px; height: 18px; flex-basis: 18px; }
.admin-web .calendar-arrow.previous .ui-icon { transform: rotate(180deg); }
.admin-web .today-calendar-grid { grid-area: 3 / 1 / 4 / -1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; align-content: start; }
.admin-web .today-calendar-grid .calendar-weekday { font-size: 11px; padding: 2px 0 4px; text-align: center; color: var(--muted); }
.admin-web .today-calendar-grid .day { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; width: 100%; min-height: 28px; padding: 4px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); box-shadow: none; }
.admin-web .today-calendar-grid .day-number { font-size: 12px; font-weight: 400; margin: 0; color: inherit; }
.admin-web .today-calendar-grid .day-number::after { display: none; }
.admin-web .today-calendar-grid .day.empty { visibility: hidden; }
.admin-web .today-calendar-grid .day.is-today { background: var(--brand-deep); color: #fff; }
.admin-web .today-calendar-grid button.day:not(.is-today):hover { background: var(--primary-soft); }
.admin-web .today-calendar-grid .badge { position: absolute; bottom: 1px; left: calc(50% - 2px); width: 4px; min-width: 4px; height: 4px; min-height: 4px; padding: 0; border: 0; border-radius: 1px; background: var(--primary); }
.admin-web .today-calendar-grid .badge span { display: none; }
.admin-web .today-calendar-grid .badge.overdue { background: var(--bad); }
.admin-web .today-calendar-grid .badge.partial { background: var(--warn); }
.admin-web .today-calendar-grid .badge.paid { background: var(--good); }
.admin-web .today-calendar-grid .is-today .badge { background: #fff; }
.admin-web .today-calendar-current { grid-area: 6 / 1; align-self: center; justify-self: start; min-height: 28px; margin: 0; padding: 4px 10px; font-size: 12px; }
.admin-web .admin-task-overview { padding: 20px; }
.admin-web .admin-task-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.admin-web .admin-task-preview > .empty-state { grid-column: 1 / -1; }
.admin-web .admin-task-card.is-compact { min-width: 0; padding: 16px; gap: 12px; }
.admin-web .admin-task-card.is-compact .payment-intent-card-head { flex-wrap: wrap; align-items: flex-start; }
.admin-web .admin-task-card.is-compact .admin-task-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-web .admin-task-card.is-compact .admin-task-next { flex-direction: column; align-items: stretch; }
.admin-web .admin-task-card.is-compact .admin-task-next-actions { justify-content: flex-start; }
.admin-web .admin-task-card.is-compact .admin-task-next-actions button { white-space: normal; }
.admin-web .tbank-payment-panel { gap: 16px; }

@media (max-width: 1279px) {
  .admin-web .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-web .stats article { padding: 16px; }
  .admin-web .stats-icon { opacity: 0.7; }
  .admin-web .today-overview-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .admin-web .admin-task-preview { grid-template-columns: 1fr; }
}

@media (max-width: 1023px) {
  .admin-web { padding-left: 0; --form-control-height: 44px; }
  .admin-web.nav-open { overflow: hidden; }
  .admin-web .app-toolbar { min-height: 64px; padding: 12px 16px 4px; gap: 16px; }
  .admin-web main { padding: 16px; }
  .admin-web .global-search { width: min(440px, calc(100% - 56px)); }
  .admin-web .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-web .stats article, .admin-web .stats article.stats-action-card { min-height: 0; }
  .admin-web .stats strong { font-size: clamp(22px, 4vw, 30px); }
  .admin-web .today-overview-grid { grid-template-columns: 1fr; }
  .admin-web .today-calendar-panel { width: 100%; }
  .admin-web .today-calendar-grid { gap: 6px; }
  .admin-web .today-calendar-grid .day { min-height: 44px; }
  .admin-web .today-calendar-grid .day-number { font-size: 14px; }
  .admin-web .today-calendar-grid .calendar-weekday { font-size: 12px; }
  .admin-web :is(button, .calendar-arrow, .today-calendar-current, .stats-export-button) { min-height: 44px; }
  .admin-web .calendar-title-link { min-height: 44px; }
  .admin-web .stats-export-button { padding-inline: 0; }
}

@media (max-width: 599px) {
  .admin-web .page-head { flex-wrap: wrap; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
  .admin-web .page-head > div:first-of-type { flex-basis: 100%; }
  .admin-web h1 { font-size: 26px; }
  .admin-web .panel { padding: 16px; }
  .admin-web .stats, .admin-web #today > .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .admin-web .stats article { padding: 14px; gap: 4px; }
  .admin-web .stats span { padding-right: 0; font-size: 12px; }
  .admin-web .stats .stats-icon { display: none; }
  .admin-web .stats strong { font-size: 22px; letter-spacing: -0.4px; }
  .admin-web .stats-export-button { font-size: 12px; padding-inline: 0; }
  .admin-web .stats-action-card { gap: 4px; }
  .admin-web .global-search input { padding-left: 14px; padding-right: 14px; }
  .admin-web .global-search kbd { display: none; }
  .admin-web .global-search-results { width: calc(100vw - 32px); }
  .admin-web .dashboard-month .summary-list { grid-template-columns: 1fr; gap: 16px; }
  .admin-web .dashboard-month .summary-row strong { font-size: 20px; }
  .admin-web :is(.tbank-payment-panel, .admin-task-overview) > .section-head { flex-direction: column; align-items: stretch; }
  .admin-web dialog { border-radius: 8px; }
}

@media (max-width: 560px) {
  .admin-web .dictionary-editor-row > .row-actions { grid-template-columns: minmax(0, 1fr); width: 100%; }
}

html.android-shell .admin-web { --form-control-height: 48px; }

html.android-shell .admin-web.nav-open .nav-group-items button {
  min-height: 48px;
}

@media (prefers-reduced-motion: reduce) {
  .admin-web :is(.sidebar, .brand-copy) { transition: none; }
  .admin-web :is(.view, .brand-copy, .nav-label) { animation: none !important; }
}

@media print {
  .admin-web { display: block; padding: 0; background: #fff; font-size: 12px; }
  .admin-web :is(.sidebar, .app-toolbar, .sidebar-backdrop, .today-calendar-current, .today-calendar-controls) { display: none !important; }
  .admin-web main { padding: 0; overflow: visible; }
  .admin-web .page-head { margin-bottom: 10px; }
  .admin-web .panel { padding: 12px; margin-bottom: 10px; box-shadow: none; }
  .admin-web .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .admin-web .stats article { padding: 10px 10px 10px 12px; }
  .admin-web .stats strong { font-size: 17px; }
  .admin-web .grid.two { gap: 10px; }
  .admin-web .report-table :is(th, td) { padding: 5px 6px; }
}

/* Shared Tabler tokens. Application rules below retain financial/role layouts. */
:root {
  --tblr-primary: #27285b; --tblr-primary-rgb: 39,40,91; --tblr-primary-fg: #fff;
  --tblr-font-sans-serif: "IBM Plex Sans", "Segoe UI", sans-serif;
  --tblr-body-font-family: var(--tblr-font-sans-serif);
  --tblr-body-font-size: 15px; --tblr-body-color: #17182f; --tblr-body-bg: #f4f5fa;
  --tblr-border-color: #d9dbe9; --tblr-link-color: #27285b;
  --tblr-border-radius: 6px; --tblr-border-radius-lg: 10px;
  --tblr-success: #1f6f55; --tblr-danger: #a83a32;
}
body.tabler-app {display:block;padding-left:96px;background:#f4f5fa;font-family:var(--tblr-font-sans-serif);font-size:15px;line-height:1.5;--radius-card:8px;--radius-control:6px;--shadow-card:0 1px 3px #0b0b3105;}
.tabler-app *, .tabler-app *::before, .tabler-app *::after {box-sizing:border-box;}
.tabler-app [hidden], .tabler-app .hidden {display:none !important;}
.tabler-app main {min-width:0;max-width:none;width:auto;margin:0;padding:28px;overflow:visible;}
.tabler-app .panel.card {display:block;padding:22px;border:1px solid var(--line);border-radius:8px;background:white;box-shadow:var(--shadow-card);}
.tabler-app .panel.card.grid, .tabler-app .panel.card.today-calendar-panel {display:grid;}
.tabler-app .dictionary-editor-list {container-type:inline-size;}
@container (max-width:600px) {
 .admin-web .dictionary-editor-row {grid-template-columns:minmax(0,1fr);}
 .admin-web .dictionary-editor-row>.row-actions {width:100%;}
}
.tabler-app :is(.panel,.client-card,.payment-card,.list-card,.secretary-dialog,.summary-list) {min-width:0;}
.tabler-app :is(.grid,.dashboard-grid,.dashboard-column,.secretary-layout) {gap:20px;}
.tabler-app :is(.page-head,.secretary-hero) {gap:20px;margin:0 0 24px;}
.tabler-app :is(h1,h2,h3) {color:var(--ink);font-family:inherit;}
.tabler-app h1 {font-size:32px;line-height:1.2;font-weight:600;letter-spacing:-.5px;}
.tabler-app h2 {font-size:18px;line-height:1.35;font-weight:600;}
.tabler-app h3 {font-size:16px;line-height:1.4;font-weight:600;}
.tabler-app :is(.page-head,.secretary-hero)::before {display:none;}
.tabler-app :is(.section-head,.secretary-section-head,.form-title-row) {gap:16px;margin-bottom:18px;}
.tabler-app :is(.actions,.row-actions,.list-card-actions,.form-actions,.dialog-actions) {gap:10px;}
.tabler-app :where(.btn) {--tblr-btn-font-weight:500;font-family:inherit;font-weight:500;min-height:40px;padding:8px 14px;line-height:1.4;border-radius:6px !important;box-shadow:none;white-space:normal;background:var(--primary);color:#fff;}
.tabler-app :where(.btn):hover {background:var(--primary-dark);}
.tabler-app .btn:is(.button-secondary,.password-toggle) {color:var(--primary);background:white;border-color:var(--line);}
.tabler-app .btn:is(.button-secondary,.password-toggle):hover {background:var(--primary-soft);border-color:var(--primary-line);}
.tabler-app .btn.button-ghost {background:transparent;color:var(--primary);border-color:transparent;}
.tabler-app .btn.button-success {background:var(--good);color:white;}
.tabler-app .btn.button-warning {background:var(--warn-soft);color:var(--warn);border-color:#efd08c;}
.tabler-app .btn.button-danger {background:var(--bad-soft);color:var(--bad);border-color:#ecc4bf;}
.tabler-app .btn:disabled {opacity:.55;cursor:not-allowed;}
.tabler-app :is(.form-control,.form-select) {font:inherit;font-size:14px;min-width:0;width:100%;min-height:40px;border:1px solid var(--line);border-radius:6px;background-color:#fff;color:var(--ink);box-shadow:0 1px 2px #0b0b3105;}
.tabler-app .form-select {padding-right:36px;}
.tabler-app .form-check-input {flex-shrink:0;width:18px;height:18px;min-height:0;padding:0;vertical-align:middle;}
.tabler-app :is(input,select,textarea,button,a,summary):focus-visible {outline:3px solid #7779bd;outline-offset:2px;box-shadow:none;}
.tabler-app label {font-size:13px;line-height:1.45;}
.tabler-app .table {width:100%;margin:0;color:var(--ink);--tblr-table-bg:transparent;--tblr-table-border-color:var(--line);}
.tabler-app .table :is(th,td) {padding:12px;vertical-align:middle;border-color:var(--line);}
.tabler-app .table th {font-size:12px;font-weight:500;color:var(--muted);white-space:normal;}
.tabler-app .badge {font-size:12px;font-weight:500;line-height:1.4;white-space:normal;text-align:center;border-radius:4px;}
.tabler-app .ui-symbols {position:absolute;width:0;height:0;overflow:hidden;}
.tabler-app .ui-icon {width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.tabler-app .sidebar {position:fixed;inset:0 auto 0 0;z-index:120;display:flex;flex-direction:column;align-items:stretch;width:96px;height:100dvh;min-height:0;margin:0;padding:24px 16px 18px;overflow:hidden;background:#0b0b31;border:0;border-radius:0;}
.tabler-app .sidebar .brand {display:flex;flex:0 0 auto;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:52px;max-width:100%;margin:0 0 28px;padding:0;background:transparent;color:#fff;border:0;}
.tabler-app .brand-logo {width:38px;height:48px;flex:0 0 38px;object-fit:contain;opacity:1;margin:0;}
.tabler-app .brand-copy {display:block;min-width:0;opacity:1;visibility:visible;white-space:normal;}
.tabler-app .brand strong {font-size:17px;font-weight:600;line-height:1.3;}
.tabler-app .brand small {font-size:11px;color:#b6b7d1;}
.tabler-app .sidebar nav {position:static;display:flex;flex:1;flex-direction:column;gap:6px;min-height:0;width:100%;padding:0;margin:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;}
.tabler-app .sidebar :is(nav>button,.nav-group>summary,.nav-group-items button) {position:relative;display:flex;flex-shrink:0;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:6px !important;background:transparent;color:#cacbe1;font-size:13px;font-weight:400;line-height:1.4;text-align:left;}
.tabler-app .sidebar :is(nav>button.active,nav>button:hover,.nav-group:has(button.active)>summary,.nav-group>summary:hover,.nav-group-items button.active,.nav-group-items button:hover) {background:#27285b;color:#fff;box-shadow:none;}
.tabler-app .sidebar :is(nav button,.nav-group>summary)::before {display:none;}
.tabler-app .sidebar .nav-label {display:inline;min-width:0;white-space:normal;}
.tabler-app .nav-group {position:static;min-width:0;background:transparent;border:0;}
.tabler-app .nav-group>summary::after {display:block;margin-left:auto;flex:0 0 5px;}
.tabler-app .nav-group-items {position:static;grid-template-columns:1fr;display:none;padding:4px 0;background:none;border:0;box-shadow:none;}
.tabler-app .nav-group[open]>.nav-group-items {display:grid;gap:3px;}
.tabler-app .nav-group-items button {padding-left:22px;font-size:12px;}
.tabler-app .nav-group-items .ui-icon {width:17px;height:17px;flex-basis:17px;}
.tabler-app .sidebar .nav-count-badge {position:static;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:20px;min-height:20px;margin:0 0 0 auto;padding:1px 5px;border-radius:4px;background:#d6d6ee;color:#17182f;font-size:11px;}
.tabler-app .sidebar :is(.nav-password,.nav-logout) {width:100%;min-height:40px;margin:8px 0 0;padding:8px;background:transparent;color:#cacbe1;border-color:#ffffff20;font-size:12px;}
.tabler-app .sidebar :is(.nav-password,.nav-logout):hover {background:#27285b;}
.tabler-app .sidebar .session-identity {margin:14px 0 4px;font-size:11px;color:#aaaecb;}
.tabler-app .sidebar .sidebar-spacer {flex:0;}
.tabler-app .sidebar .nav-scroll-hint, .tabler-app .toolbar-menu {display:none;}
.tabler-app .app-toolbar {display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;padding:16px 28px;background:#fff;border-bottom:1px solid var(--line);}
.tabler-app .toolbar-caption {font-size:12px;color:var(--muted);}
.tabler-app.admin-web .global-search {margin-left:auto;}
.tabler-app .sidebar-backdrop {position:fixed;z-index:110;inset:0;width:100%;height:100dvh;max-width:none;padding:0;border:0;border-radius:0 !important;background:#0b0b3160;}
.tabler-app .sidebar-backdrop[hidden] {display:none;}
.tabler-app dialog {max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--line);border-radius:12px;background:white;font-family:inherit;box-shadow:0 24px 80px #0b0b312e;}
.tabler-app dialog::backdrop {background:#0b0b3166;backdrop-filter:blur(3px);}
.tabler-app dialog :is(h2,h3) {margin-top:0;}
.tabler-app dialog .dialog-actions {margin-top:20px;}
.tabler-app .tabs {gap:4px;padding:4px;background:#ececf6;border:0;border-radius:6px;}
.tabler-app .tabs .btn {background:transparent;color:var(--muted);border:0;}
.tabler-app .tabs .btn.active {background:#fff;color:var(--primary);box-shadow:0 1px 3px #0b0b3110;}
.tabler-app .stats {gap:16px;margin-bottom:24px;}
.tabler-app .stats article {background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow-card);}
.tabler-app .stats-action-card .stats-export-button {background:transparent;color:var(--primary);border:0;padding:0;justify-content:flex-start;}
.tabler-app .stats-action-card :is(span,strong) {color:var(--ink);}
.tabler-app .dashboard-panel :is(.upcoming-summary,.overdue-summary) {grid-template-columns:minmax(0,1fr) auto 44px;gap:10px;}
.tabler-app .dashboard-panel :is(.upcoming-summary,.overdue-summary)>strong {white-space:normal;overflow-wrap:anywhere;}
.tabler-app.secretary-page .secretary-main {width:auto;max-width:none;margin:0;padding:28px;}
.tabler-app .secretary-hero {background:none;border:0;padding:0;}
.tabler-app .secretary-hero h1 {font-size:30px;}
.tabler-app .secretary-stats {gap:16px;margin-bottom:24px;}
.tabler-app .secretary-stats article {border:1px solid var(--line);border-radius:8px;box-shadow:none;background:#fff;}
.tabler-app .secretary-section {background:none;}
.tabler-app.secretary-page #appStatus:not(:empty) {position:relative;inset:auto;z-index:auto;width:100%;max-width:none;max-height:none;margin:0 0 20px;overflow:visible;}
.tabler-app :is(.list-card,.secretary-panel) {background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:none;}
.tabler-app .secretary-sidebar .nav-label-short {display:none;}
.tabler-app .secretary-sidebar .nav-label-long {display:inline;}
.tabler-app .secretary-sidebar .sidebar-account-actions {display:grid;grid-template-columns:1fr;gap:0;}
.tabler-app .secretary-sidebar .password-action-long {display:inline;}
.tabler-app .secretary-sidebar .password-action-short {display:none;}
.preview-banner {display:none;}
.local-preview .preview-banner {display:block;position:sticky;top:0;z-index:130;padding:6px 16px;background:#e9eaf3;color:#4e5372;font:12px/20px var(--tblr-font-sans-serif);text-align:center;border-bottom:1px solid #d9dbe9;}
.tabler-app.local-preview .sidebar {top:33px;height:calc(100dvh - 33px);}
.login-page {margin:0;min-height:100dvh;display:grid;place-content:center;background:#0b0b31;font-family:var(--tblr-font-sans-serif);color:#17182f;}
.login-page .preview-banner {position:fixed;inset:0 0 auto;}
.login-page main.card {width:min(420px,calc(100vw - 32px));padding:32px;border:1px solid #d9dbe9;border-radius:10px;background:#fff;box-shadow:0 24px 70px #0003;}
.login-page .brand {display:flex;gap:16px;align-items:center;margin-bottom:28px;}
.login-page .brand img {width:46px;height:54px;object-fit:contain;}
.login-page h1 {font:600 26px/1.3 var(--tblr-font-sans-serif);margin:0 0 4px;color:#27285b;}
.login-page p {margin:0;color:#626780;}
.login-page label {display:block;font-size:14px;font-weight:500;margin-bottom:20px;}
.login-page .form-control {margin-top:8px;min-height:44px;border-color:#d9dbe9;}
.login-page .password-field {display:grid;gap:8px;margin-bottom:20px;}
.login-page .password-field label {margin:0;}
.login-page .password-toggle {justify-self:start;min-height:40px;color:#27285b;font-size:13px;}
.login-page .remember {display:flex;align-items:center;gap:10px;font-weight:400;}
.login-page .remember input {width:18px;height:18px;}
.login-page button[type=submit] {width:100%;min-height:44px;background:#27285b;color:#fff;}
.login-page .error {min-height:20px;margin-top:16px;font-size:13px;color:#a83a32;}
.login-page :is(button,input):focus-visible {outline:3px solid #7779bd;outline-offset:3px;}
.login-page button.button-press-glinting {background-image:linear-gradient(110deg,transparent 35%,#ffffff40 47%,#ffffff40 53%,transparent 65%);background-repeat:no-repeat;background-size:300% 100%;animation:button-press-glint-sweep 280ms linear both;}
@keyframes button-press-glint-sweep {from {background-position:100% 0;} to {background-position:0 0;}}
@media(prefers-reduced-motion:reduce) {.login-page button.button-press-glinting {background-image:none;animation:none;}}
html.android-shell .login-page :is(input:not([type=checkbox]),button,.remember) {min-height:48px;}
html.android-shell .tabler-app :is(button,summary,input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select) {min-height:48px;}
html.android-shell :is(#weeklyReportManagers,#weeklyReportSettingsManagers) .manager-tag {min-height:48px;}

@media(max-width:1279px) {
 .tabler-app .stats {grid-template-columns:repeat(2,minmax(0,1fr));}
 .tabler-app .today-overview-grid {grid-template-columns:1fr;}
}
@media(max-width:1023px) {
 body.tabler-app {padding-left:0;}
 .tabler-app .sidebar {width:280px;max-width:calc(100vw - 32px);visibility:hidden;transform:translateX(-100%);}
 .tabler-app.nav-open .sidebar {visibility:visible;transform:none;transition-delay:0s;}
 .tabler-app.nav-open {overflow:hidden;}
 .tabler-app .toolbar-menu {display:inline-flex;flex:0 0 44px;width:44px;min-height:44px;padding:8px;background:none;color:var(--ink);font-size:21px;}
 .tabler-app .sidebar nav {display:flex;flex-direction:column;gap:6px;overflow-y:auto;}
 .tabler-app .app-toolbar {min-height:68px;padding:12px 16px;gap:12px;}
 .tabler-app .toolbar-caption {display:none;}
 .tabler-app :is(main,.secretary-main), .tabler-app.secretary-page .secretary-main {padding:20px 16px;}
 .tabler-app :is(.btn,.form-control,.form-select) {min-height:44px;}
 .tabler-app.admin-web .global-search {width:min(440px,100%);}
 .tabler-app.secretary-page .toolbar-caption {display:inline;}
 .tabler-app .sidebar .secretary-nav {width:100%;padding:10px 12px;}
 .tabler-app .sidebar .brand-copy {display:block;}
 .tabler-app .secretary-sidebar :is(.session-identity,.sidebar-account-actions) {position:static;width:auto;max-width:100%;}
}
@media(max-width:599px) {
 .tabler-app .panel.card {padding:16px;}
 .tabler-app h1, .tabler-app .secretary-hero h1 {font-size:26px;}
 .tabler-app .stats strong {font-size:24px;}
 .tabler-app .stats span {font-size:12px;}
 .tabler-app dialog {max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:18px;}
 .tabler-app .secretary-sidebar nav {display:flex;width:100%;grid-template-columns:none;}
 .tabler-app .secretary-sidebar .nav-label-long {display:inline;}
 .tabler-app .secretary-sidebar .nav-label-short {display:none;}
 .tabler-app .secretary-sidebar .brand small {display:block;}
}
@media(max-width:389px) {.tabler-app .stats, .tabler-app #today>.stats {grid-template-columns:1fr;}}
@media(prefers-reduced-motion:reduce) {.tabler-app .sidebar {transition:none;}}
/* Shared desktop rail; expansion overlays content without moving it. */
.tabler-app .weekly-report-status {margin:12px 0 0;}
.tabler-app .toolbar-menu {display:inline-flex;position:absolute;width:1px;height:1px;min-height:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
.tabler-app .toolbar-menu:focus-visible {position:relative;width:auto;height:44px;min-height:44px;padding:8px;overflow:visible;clip-path:none;}
.tabler-app .sidebar {transition:width 280ms ease;}
.tabler-app.nav-open .sidebar {width:280px;}
.tabler-app .sidebar :is(.nav-password,.nav-logout) {display:flex;gap:10px;align-items:center;}
@media(min-width:1024px) {
 .tabler-app .sidebar {overflow:clip;}
 .tabler-app .sidebar nav {width:248px;min-width:248px;max-width:none;}
 .tabler-app:is(.nav-open,:not(.nav-open)) .sidebar .brand {width:204px;max-width:none;flex:0 0 auto;justify-content:flex-start;}
 .tabler-app .sidebar .brand-copy {flex:0 0 120px;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity 180ms ease,visibility 0s linear 180ms;}
 .tabler-app .sidebar .brand :is(strong,small) {white-space:nowrap;}
 .tabler-app .sidebar .nav-label {flex:0 0 auto;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity 180ms ease,visibility 0s linear 180ms;}
 /* Keep text rasterization stable when the opacity transition reaches 1. */
 .tabler-app .sidebar :is(.brand-copy,.nav-label) {will-change:opacity;}
 .tabler-app.nav-open .sidebar :is(.brand-copy,.nav-label) {opacity:1;visibility:visible;transition-delay:120ms,0s;}
 .tabler-app:not(.nav-open) .sidebar :is(.session-identity,.nav-group-items) {display:none;}
 .tabler-app:not(.nav-open) .sidebar :is(nav>button,.nav-group>summary,.nav-password,.nav-logout) {justify-content:flex-start;padding:10px 12px;min-height:44px;}
 .tabler-app:not(.nav-open) .sidebar .nav-group>summary::after {display:none;}
 .tabler-app:not(.nav-open) .sidebar .nav-count-badge {position:absolute;right:0;top:0;min-width:18px;min-height:18px;}
 .tabler-app .secretary-sidebar .sidebar-account-actions {width:248px;max-width:none;}
}
@media(max-width:1023px) {
 .tabler-app .sidebar {transition:transform 280ms ease,visibility 0s linear 280ms;}
}
@media(prefers-reduced-motion:reduce) {.tabler-app .sidebar {transition:none;}}
/* Dialog and search motion is independent of route transitions. */
@keyframes tabler-section-enter {from {opacity:0;transform:translateY(6px);} to {opacity:1;transform:none;}}
@keyframes tabler-dialog-enter {from {opacity:0;} to {opacity:1;}}
@keyframes tabler-backdrop-enter {from {opacity:0;} to {opacity:1;}}
@media screen and (prefers-reduced-motion:no-preference) {
 .tabler-app dialog[open] {animation:tabler-dialog-enter 220ms cubic-bezier(.22,1,.36,1);}
 .tabler-app dialog[open]::backdrop {animation:tabler-backdrop-enter 180ms ease-out;}
 .tabler-app .global-search-results:not([hidden]) {animation:tabler-section-enter 140ms ease-out;}
 .tabler-app .btn:active:not(:disabled) {transform:translateY(1px);}
 .login-page main.card {animation:tabler-dialog-enter 280ms cubic-bezier(.22,1,.36,1);}
}
@media print {
 body.tabler-app {padding:0;background:white;font-size:12px;}
 .tabler-app.admin-web .report-table :is(th,td) {padding:5px 6px;}
 .local-preview .preview-banner,.tabler-app .app-toolbar,.tabler-app .sidebar {display:none !important;}
}
