@charset "UTF-8";
@font-face {
  font-family: "Noto Arabic";
  src: url("/fonts/NotoSansArabic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #23344e;
  --muted: #728198;
  --primary: #245db0;
  --primary-dark: #173762;
  --primary-light: #eaf1fc;
  --gold: #d7b66f;
  --paper: #f5f7fb;
  --line: #e2e8f1;
  --white: #fff;
  --red: #ae443e;
  --red-light: #fff0ed;
  --amber: #947021;
  --shadow: 0 8px 32px #17376210;
  --radius: 18px;
  --font: "Noto Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #c5a85e;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 19px;
  line-height: 1.5;
}
h3 {
  font-size: 16px;
}
small {
  font-size: 12px;
}
svg.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.currency {
  font-size: 0.6em;
  font-weight: 400;
  margin-inline-start: 4px;
  opacity: 0.75;
}
.text-red {
  color: var(--red);
}
.text-primary {
  color: var(--primary);
}
.text-left {
  text-align: left;
}
.nowrap {
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -60px;
  right: 15px;
  z-index: 100;
  background: var(--primary-dark);
  color: #fff;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.loading-screen {
  display: flex;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  color: var(--muted);
}
.loading-mark {
  background: var(--primary-dark);
  color: var(--gold);
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 36px;
  width: 72px;
  height: 72px;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.shell {
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 248px;
  background: var(--primary-dark);
  color: #fff;
  padding: 31px 22px 20px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 45px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #d7b66f50;
  border-radius: 13px;
  color: var(--gold);
}
.brand-mark .icon {
  height: 29px;
  width: 29px;
}
.brand-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}
.brand-subtitle {
  display: block;
  font-size: 11px;
  opacity: 0.55;
  letter-spacing: 0.1px;
  margin-top: 3px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #c4d2e977;
  margin: 36px 14px 10px;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-link {
  border: 0;
  background: none;
  text-align: right;
  color: #c4d2e9;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 11px;
  min-height: 46px;
  font-size: 14px;
}
.nav-link:hover {
  background: #ffffff0a;
  color: #fff;
}
.nav-link.active {
  background: #ffffff13;
  color: #fff;
  box-shadow: inset -3px 0 var(--gold);
}
.nav-link.active .icon {
  color: var(--gold);
}
.sidebar-footer {
  margin-top: auto;
  padding: 20px 10px 0;
  border-top: 1px solid #ffffff15;
}
.avatar {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e9eef8;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-info {
  flex: 1;
  min-width: 0;
}
.user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
}
.user-role {
  font-size: 11px;
  opacity: 0.55;
}
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  border-radius: 11px;
  flex-shrink: 0;
}
.sidebar .icon-button {
  border: 0;
  width: 30px;
}
.workspace {
  margin-right: 248px;
}
.topbar {
  height: 88px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar-context {
  display: flex;
  align-items: center;
  gap: 11px;
}
.context-icon {
  color: var(--primary);
  background: var(--primary-light);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}
.context-title {
  font-weight: 600;
  font-size: 14px;
}
.context-meta {
  font-size: 11px;
  color: var(--muted);
}
.topbar-tools {
  display: flex;
  gap: 12px;
  align-items: center;
}
.segmented {
  background: #edf1f7;
  padding: 4px;
  border-radius: 12px;
  display: flex;
  gap: 3px;
}
.segmented button {
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
}
.segmented button.active {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 2px 6px #00000009;
  font-weight: 600;
}
.segmented .icon {
  width: 17px;
  height: 17px;
}
.period-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 7px 11px;
  font-size: 12px;
  background: #fff;
}
.period-control input {
  border: 0;
  background: transparent;
  max-width: 130px;
  color: var(--ink);
  font-size: 12px;
  min-height: 24px;
}
.period-control .icon {
  width: 17px;
  height: 17px;
}
.main {
  max-width: 1480px;
  margin: auto;
  padding: 33px 42px 60px;
  min-height: calc(100dvh - 89px);
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 5px;
}
.page-description {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.heading-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 11px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(0.98);
}
.btn .icon {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--primary);
}
.btn-danger {
  background: var(--red-light);
  color: var(--red);
  border-color: #f5d9d2;
}
.btn-small {
  min-height: 36px;
  font-size: 12px;
  padding: 6px 11px;
}
.btn-block {
  width: 100%;
}
.text-button {
  background: none;
  border: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 0;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.text-button .icon {
  height: 15px;
  width: 15px;
}
.bottom-nav {
  display: none;
}
.mobile-brand {
  display: none;
}
.account-indicator {
  font-size: 12px;
  padding: 10px 14px;
  background: var(--primary-light);
  border: 1px solid #d9e5f7;
  border-radius: 11px;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.account-indicator .icon {
  width: 17px;
  height: 17px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 17px;
  margin-bottom: 24px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.stat-card.featured {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}
.stat-label {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
}
.stat-label .icon {
  width: 18px;
  height: 18px;
}
.stat-value {
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 13px 0 12px;
  line-height: 1.3;
}
.stat-note {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.featured .stat-note {
  color: #bdcee8;
}
.featured:after {
  content: "";
  width: 140px;
  height: 140px;
  border: 1px solid #ffffff0a;
  position: absolute;
  left: -48px;
  top: -42px;
  border-radius: 50%;
  box-shadow:
    0 0 0 30px #ffffff04,
    0 0 0 60px #ffffff03;
}
.stat-footer {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.featured .stat-footer {
  border-color: #ffffff15;
}
.stat-footer b {
  font-weight: 600;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: 21px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 21px;
}
.panel-header {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.panel-title {
  font-size: 16px;
}
.panel-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.panel-body {
  padding: 22px;
}
.panel-footer {
  padding: 10px 22px;
  background: #fbfcfe;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.mini-icon {
  width: 39px;
  height: 39px;
  background: var(--primary-light);
  border-radius: 12px;
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mini-icon.orange {
  color: var(--amber);
  background: #faf3e1;
}
.mini-icon.red {
  color: var(--red);
  background: var(--red-light);
}
.mini-icon .icon {
  width: 19px;
  height: 19px;
}
.activity-row {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.activity-row:last-child {
  border-bottom: 0;
}
.activity-row:first-child {
  padding-top: 0;
}
.activity-row .value {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.activity-title {
  font-size: 13px;
  font-weight: 600;
}
.activity-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  background: #edf1f7;
  color: #61728c;
  white-space: nowrap;
}
.badge.success {
  background: #e8f0fc;
  color: #2c5795;
}
.badge.warning {
  background: #fcf3de;
  color: #9b772a;
}
.badge.danger {
  background: #fbece8;
  color: #b15145;
}
.badge.info {
  background: #eaf1fb;
  color: #416b9f;
}
.dot {
  width: 5px;
  height: 5px;
  background: currentColor;
  display: inline-block;
  border-radius: 50%;
}
.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.mini-stat {
  background: #f5f8fd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
}
.mini-stat strong {
  display: block;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 6px;
}
.mini-stat span {
  font-size: 11px;
  color: var(--muted);
}
.progress-track {
  height: 8px;
  border-radius: 10px;
  background: #edf1f7;
  overflow: hidden;
  margin: 12px 0;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
}
.key-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  padding: 10px 0;
}
.key-value + .key-value {
  border-top: 1px solid var(--line);
}
.key-value span:first-child {
  color: var(--muted);
}
.key-value strong {
  font-weight: 600;
}
.tip-box {
  background: #faf7ef;
  border: 1px solid #eee7d8;
  border-radius: 13px;
  padding: 16px;
  font-size: 12px;
  color: #857249;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
}
.tip-box .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  min-height: 90px;
  font-size: 11px;
  color: var(--ink);
  text-align: center;
  padding: 12px 8px;
}
.quick-action .icon {
  color: var(--primary);
  height: 22px;
  width: 22px;
}
.quick-action:hover {
  background: var(--primary-light);
  border-color: #cadbf2;
}
.quick-actions:has([data-action="advance.new"]) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.advance-balance {
  background: var(--primary-light);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 18px;
  margin-block: 16px;
}
.advance-balance .key-value {
  align-items: flex-start;
  gap: 16px;
}
.section-label {
  font-size: 13px;
  margin-bottom: 12px;
  font-weight: 600;
}
.empty-state {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 210px;
}
.empty-state.compact {
  min-height: 150px;
  padding: 24px 15px;
}
.empty-symbol {
  background: #f0f4fb;
  color: #94a5bd;
  width: 57px;
  height: 57px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.empty-symbol .icon {
  width: 26px;
  height: 26px;
}
.empty-state h3 {
  font-size: 15px;
  margin-bottom: 7px;
}
.empty-state p {
  color: var(--muted);
  font-size: 12px;
  max-width: 340px;
  margin-bottom: 15px;
}
.welcome-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-bottom: 24px;
}
.welcome-panel h2 {
  font-size: 23px;
  margin: 10px 0;
}
.welcome-panel p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 470px;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12px;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}
.step small {
  color: var(--muted);
  font-size: 11px;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}
.summary-item {
  padding: 18px;
  background: #fff;
}
.summary-item span {
  color: var(--muted);
  font-size: 11px;
  display: block;
  margin-bottom: 6px;
}
.summary-item b {
  font-size: 19px;
  font-weight: 600;
}
@media (min-width: 961px) {
  .summary-strip:has(> .summary-item:nth-child(5)) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .summary-strip:has(> .summary-item:nth-child(5)) > .summary-item:last-child {
    grid-column: 1 / -1;
  }
}
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.search-field {
  position: relative;
  min-width: 200px;
  max-width: 360px;
  flex: 1;
}
.search-field .icon {
  position: absolute;
  right: 13px;
  top: 13px;
  color: #8f9fb7;
  width: 18px;
  height: 18px;
}
.search-field input {
  padding-right: 40px !important;
}
.filter-chips {
  display: flex;
  gap: 5px;
  overflow: auto;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  min-height: 40px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.chip.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #bed1ee;
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: right;
}
th {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  background: #fafcfe;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcfe;
}
.flat-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 37px;
  height: 34px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafd;
  font-weight: 700;
  direction: ltr;
  font-size: 12px;
}
.table-main {
  font-weight: 600;
  font-size: 12px;
}
.table-secondary {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.record-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  min-width: 0;
}
.record-card .record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.record-card h3 {
  font-size: 14px;
}
.record-card .record-detail {
  font-size: 12px;
  color: var(--muted);
  margin: 9px 0;
}
.record-card .record-foot {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.record-amount {
  font-size: 25px;
  font-weight: 600;
  margin-top: 12px;
}
.notice {
  padding: 14px 17px;
  border-radius: 12px;
  background: #edf3fc;
  border: 1px solid #d5e2f6;
  color: #45638f;
  font-size: 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 20px;
}
.notice.warning {
  background: #fff8e8;
  border-color: #efe2bc;
  color: #8b722f;
}
.notice.error {
  background: var(--red-light);
  color: var(--red);
  border-color: #f5d9d2;
}
.notice .icon {
  height: 19px;
  width: 19px;
  flex-shrink: 0;
  margin-top: 1px;
}
.audit-list {
  padding: 4px 22px;
}
.audit-entry {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.audit-entry:last-child {
  border-bottom: 0;
}
.audit-entry summary {
  cursor: pointer;
  list-style: none;
}
.audit-entry summary::-webkit-details-marker {
  display: none;
}
.audit-values {
  background: #f5f7fb;
  padding: 13px;
  border-radius: 9px;
  margin-top: 12px;
  overflow: auto;
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
}
.audit-values pre {
  font: inherit;
  white-space: pre-wrap;
}
.file-links {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.file-link {
  font-size: 11px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.file-link .icon {
  width: 15px;
  height: 15px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.settings-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.settings-card h2 {
  margin: 15px 0 6px;
  font-size: 17px;
}
.settings-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.settings-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab {
  padding: 12px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.history-title {
  font-size: 16px;
  margin: 25px 0 14px;
}
.line-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.line-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}
.line-list li:last-child {
  border-bottom: 0;
}
.cards-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0 14px;
}
dialog {
  border: 0;
  padding: 0;
  border-radius: 21px;
  width: min(610px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 25px 100px #0d2b5735;
  overflow: visible;
}
dialog.wide {
  width: min(860px, calc(100% - 32px));
}
dialog::backdrop {
  background: #122c5055;
  backdrop-filter: blur(3px);
}
.dialog-inner {
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 21px;
}
.dialog-header {
  padding: 22px 25px 17px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  flex-shrink: 0;
}
.dialog-header h2 {
  font-size: 20px;
}
.dialog-header p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.dialog-header .icon-button {
  border-color: transparent;
}
.dialog-body {
  padding: 24px 25px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 17px 25px;
  border-top: 1px solid var(--line);
  background: #f9fbfe;
  flex-shrink: 0;
}
.dialog-footer .btn:first-child {
  min-width: 150px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.balance-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field > label {
  font-size: 12px;
  font-weight: 600;
}
.field .hint {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.field input,
.field select,
.field textarea,
.filters input,
.filters select {
  width: 100%;
  background: #fff;
  border: 1px solid #dce4f0;
  border-radius: 10px;
  min-height: 44px;
  padding: 9px 11px;
  color: var(--ink);
  font-size: 13px;
  outline-offset: 2px;
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}
.field input[readonly] {
  background: #f2f5fa;
}
.field input[type="file"] {
  font-size: 11px;
  padding: 9px;
}
.field input[type="file"]::file-selector-button {
  background: var(--primary-light);
  border: 0;
  color: var(--primary);
  border-radius: 6px;
  padding: 5px 8px;
  margin-inline-end: 10px;
}
.field input[type="checkbox"],
.field input[type="radio"] {
  width: 19px;
  min-height: 19px;
  height: 19px;
  accent-color: var(--primary);
  flex-shrink: 0;
  margin: 0;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  padding: 10px 0;
  cursor: pointer;
}
.check-label input {
  margin-top: 2px !important;
}
.form-divider {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 600;
}
.form-alert {
  padding: 12px;
  border-radius: 9px;
  background: var(--red-light);
  color: var(--red);
  font-size: 12px;
  margin-bottom: 17px;
}
.form-total {
  background: var(--primary-light);
  padding: 15px;
  border: 1px solid #d1e0f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 17px;
}
.form-total strong {
  font-size: 22px;
}
.selectable-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 8px;
  cursor: pointer;
}
.selectable-row:has(input:checked) {
  background: var(--primary-light);
  border-color: #a8bee2;
}
.selectable-row input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.selectable-row .grow {
  min-width: 0;
}
.selectable-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.selection-box {
  max-height: 300px;
  overflow-y: auto;
  padding: 2px;
}
.receipt-batch-list {
  max-height: min(46vh, 440px);
}
.receipt-batch-row:has(input:disabled) {
  background: var(--paper);
  cursor: default;
}
.receipt-batch-row .grow {
  overflow-wrap: anywhere;
}
.receipt-batch-amount {
  flex-shrink: 0;
  text-align: end;
}
.assignment-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.2fr;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.assignment-row select,
.rate-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  min-height: 38px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
}
.rate-row {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.form-intro {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-dark);
  color: #fff;
  border: 1px solid #ffffff20;
  border-radius: 12px;
  box-shadow: 0 8px 30px #17376230;
  padding: 14px 24px;
  z-index: 100;
  max-width: calc(100% - 32px);
  font-size: 13px;
  text-align: center;
}
.toast.error {
  background: #8e3b36;
}
.error-panel {
  max-width: 600px;
  margin: 60px auto;
  padding: 30px;
  text-align: center;
}
.error-panel p {
  margin: 15px 0;
  color: var(--muted);
}
.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.auth-aside {
  background: var(--primary-dark);
  padding: 55px clamp(30px, 7vw, 110px);
  display: flex;
  flex-direction: column;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.auth-aside:after {
  content: "";
  height: 450px;
  width: 450px;
  border: 1px solid #e9d6a715;
  border-radius: 50%;
  position: absolute;
  bottom: -190px;
  left: -170px;
  box-shadow:
    0 0 0 70px #ffffff02,
    0 0 0 140px #ffffff02;
  pointer-events: none;
}
.auth-message {
  margin: auto 0;
  z-index: 1;
}
.auth-message h1 {
  font-size: 40px;
  line-height: 1.6;
  max-width: 380px;
  font-weight: 500;
  margin: 25px 0 18px;
}
.auth-message p {
  font-size: 14px;
  color: #b9cbe6;
  max-width: 390px;
}
.auth-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-top: 25px;
  color: #cad8ee;
}
.auth-feature .icon {
  color: var(--gold);
  width: 18px;
  height: 18px;
}
.auth-caption {
  font-size: 11px;
  color: #aebfdb;
  z-index: 1;
}
.auth-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form {
  width: 100%;
  max-width: 365px;
}
.auth-form h2 {
  font-size: 27px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.auth-form > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 30px;
}
.auth-form .field {
  margin-bottom: 18px;
}
.auth-form .btn {
  margin-top: 10px;
  min-height: 47px;
}
.auth-footnote {
  margin-top: 25px !important;
  text-align: center;
  font-size: 11px !important;
}
.auth-mobile-brand {
  display: none;
}
.busy-overlay {
  opacity: 0.65;
  pointer-events: none;
}
.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;
}
.separation {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.details-grid .detail-label {
  font-size: 10px;
  color: var(--muted);
}
.details-grid .detail-value {
  font-size: 13px;
  margin-top: 3px;
}
.attachment-thumb {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.more-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  text-align: right;
  padding: 23px;
  color: var(--ink);
}
.more-card .icon {
  color: var(--primary);
  margin-bottom: 11px;
  width: 25px;
  height: 25px;
}
.more-card strong {
  display: block;
  font-size: 14px;
}
.more-card small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.form-preview {
  border: 1px dashed #b7cbe8;
  border-radius: 10px;
  background: #f5f8fd;
  padding: 13px;
  font-size: 12px;
  margin-top: 16px;
}
@media (min-width: 1600px) {
  .main {
    padding-top: 42px;
  }
  .stats-grid {
    gap: 22px;
  }
  .stat-card {
    padding: 26px;
  }
  .dashboard-grid {
    gap: 26px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 215px;
    padding: 26px 15px 20px;
  }
  .workspace {
    margin-right: 215px;
  }
  .main {
    padding: 28px 25px 50px;
  }
  .topbar {
    padding: 0 25px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr);
    gap: 16px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 18px;
  }
  .stat-value {
    font-size: 29px;
  }
  .topbar-context .context-meta {
    display: none;
  }
  .topbar-tools {
    gap: 8px;
  }
  .segmented button {
    padding: 7px 10px;
  }
  .card-list {
    gap: 12px;
  }
}
@media (max-width: 960px) {
  .sidebar {
    width: 190px;
    padding-inline: 12px;
  }
  .workspace {
    margin-right: 190px;
  }
  .brand-title {
    font-size: 24px;
  }
  .brand-mark {
    width: 39px;
  }
  .brand-subtitle {
    font-size: 10px;
  }
  .nav-link {
    font-size: 12px;
    gap: 10px;
    padding-inline: 10px;
  }
  .main {
    padding: 24px 20px 50px;
  }
  .topbar {
    padding: 0 20px;
    gap: 10px;
  }
  .topbar-context {
    display: none;
  }
  .topbar-tools {
    justify-content: space-between;
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card.featured {
    grid-column: 1/-1;
  }
  .featured .stat-value {
    font-size: 36px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .welcome-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .card-list {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    padding: 40px;
  }
  .auth-message h1 {
    font-size: 32px;
  }
  .auth-content {
    padding: 30px;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 14px;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    margin-right: 0;
  }
  .topbar {
    height: auto;
    min-height: 122px;
    padding: 16px 20px 13px;
    display: block;
    position: sticky;
    top: 0;
    z-index: 15;
    box-shadow: 0 2px 10px #17376204;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
  }
  .mobile-brand .brand {
    gap: 8px;
  }
  .mobile-brand .brand-mark {
    background: var(--primary-dark);
    width: 32px;
    height: 33px;
    border-radius: 9px;
  }
  .mobile-brand .brand-mark .icon {
    width: 23px;
    height: 23px;
  }
  .mobile-brand .brand-title {
    font-size: 23px;
    color: var(--primary-dark);
  }
  .mobile-brand .brand-subtitle {
    display: none;
  }
  .mobile-brand .avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 13px;
  }
  .mobile-brand .user-role {
    color: var(--muted);
    opacity: 1;
    font-size: 10px;
    margin-left: 7px;
  }
  .topbar-tools {
    gap: 12px;
  }
  .segmented {
    flex: 1;
    max-width: 245px;
    padding: 3px;
  }
  .segmented button {
    flex: 1;
    justify-content: center;
    padding: 6px 9px;
    font-size: 11px;
  }
  .period-control {
    padding: 5px 8px;
    gap: 5px;
    font-size: 11px;
  }
  .period-control input {
    width: 112px;
    font-size: 11px;
  }
  .period-control .icon {
    display: none;
  }
  .main {
    padding: 25px 18px calc(100px + env(safe-area-inset-bottom));
    min-height: calc(100dvh - 122px);
  }
  .page-heading {
    margin-bottom: 22px;
    gap: 12px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-description {
    font-size: 11px;
    max-width: 280px;
    line-height: 1.7;
  }
  .heading-actions {
    padding-top: 5px;
  }
  .heading-actions .btn {
    font-size: 11px;
    padding: 8px 10px;
    min-height: 40px;
    gap: 5px;
  }
  .heading-actions .btn .icon {
    width: 16px;
    height: 16px;
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background: #fffffff5;
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--line);
    display: flex;
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
    z-index: 25;
    box-shadow: 0 -3px 20px #17376205;
  }
  .bottom-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: 0;
    color: #8999b0;
    font-size: 9px;
    min-height: 50px;
    border-radius: 10px;
    padding: 5px 2px;
  }
  .bottom-link .icon {
    height: 21px;
    width: 21px;
  }
  .bottom-link.active {
    color: var(--primary);
    background: #edf3fd;
  }
  .stats-grid {
    gap: 12px;
    margin-bottom: 19px;
  }
  .stat-card {
    padding: 17px 16px;
    border-radius: 16px;
  }
  .stat-card.featured {
    padding: 21px 22px;
  }
  .stat-label {
    font-size: 11px;
    gap: 6px;
  }
  .stat-label .icon {
    width: 16px;
    height: 16px;
  }
  .stat-value {
    font-size: 25px;
    margin: 12px 0 11px;
  }
  .featured .stat-value {
    font-size: 36px;
    margin: 17px 0 18px;
  }
  .stat-note {
    font-size: 10px;
  }
  .stat-footer {
    font-size: 10px;
    padding-top: 10px;
  }
  .stat-card:not(.featured) .stat-footer {
    display: block;
  }
  .stat-card:not(.featured) .stat-footer b {
    display: block;
    margin-top: 4px;
  }
  .dashboard-grid {
    gap: 0;
  }
  .panel {
    border-radius: 16px;
    margin-bottom: 18px;
  }
  .panel-header {
    padding: 17px 18px;
  }
  .panel-title {
    font-size: 15px;
  }
  .panel-body {
    padding: 18px;
  }
  .panel-subtitle {
    font-size: 10px;
  }
  .panel-footer {
    padding: 10px 18px;
  }
  .mini-stats {
    gap: 10px;
  }
  .mini-stat {
    padding: 13px;
  }
  .mini-stat strong {
    font-size: 22px;
  }
  .activity-title {
    font-size: 12px;
  }
  .activity-meta {
    font-size: 10px;
  }
  .activity-row {
    gap: 10px;
    padding-block: 14px;
  }
  .activity-row .value {
    font-size: 13px;
  }
  .mini-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .quick-actions {
    gap: 8px;
  }
  .quick-action {
    min-height: 85px;
    font-size: 10px;
  }
  .account-indicator {
    font-size: 10px;
    padding: 10px 12px;
  }
  .welcome-panel {
    padding: 22px;
    gap: 18px;
  }
  .welcome-panel h2 {
    font-size: 21px;
  }
  .welcome-panel p {
    font-size: 12px;
  }
  .welcome-panel .steps {
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .summary-strip {
    border-radius: 12px;
  }
  .summary-item {
    padding: 14px;
  }
  .summary-item span {
    font-size: 10px;
  }
  .summary-item b {
    font-size: 18px;
  }
  .filters {
    gap: 10px;
  }
  .search-field {
    min-width: 0;
    max-width: none;
    width: 100%;
    flex-basis: 100%;
  }
  .filter-chips {
    width: 100%;
    gap: 6px;
    padding-bottom: 3px;
  }
  .chip {
    font-size: 10px;
    padding: 7px 11px;
    min-height: 36px;
  }
  .record-card {
    padding: 17px;
    border-radius: 14px;
  }
  .record-amount {
    font-size: 24px;
  }
  .record-card .record-detail {
    font-size: 11px;
  }
  .record-card .record-foot {
    gap: 6px;
  }
  .record-card .record-foot .btn {
    font-size: 10px;
    padding: 6px 9px;
    min-height: 36px;
  }
  .responsive-table thead {
    display: none;
  }
  .responsive-table,
  .responsive-table tbody {
    display: block;
  }
  .responsive-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 17px;
    border-bottom: 1px solid var(--line);
  }
  .responsive-table tr:last-child {
    border-bottom: 0;
  }
  .responsive-table td {
    display: block;
    padding: 0;
    border: 0;
    font-size: 11px;
  }
  .responsive-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 9px;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .responsive-table td:first-child {
    grid-column: 1/-1;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }
  .responsive-table td:first-child::before {
    display: none;
  }
  .responsive-table td:last-child.actions-cell {
    grid-column: 1/-1;
    display: flex;
    justify-content: flex-end;
  }
  .responsive-table td:last-child.actions-cell::before {
    display: none;
  }
  .responsive-table .row {
    gap: 8px;
  }
  .table-main {
    font-size: 12px;
  }
  .empty-state {
    padding: 32px 20px;
    min-height: 220px;
  }
  .empty-state.compact {
    min-height: 155px;
  }
  .notice {
    font-size: 11px;
    padding: 12px 13px;
  }
  .settings-card {
    padding: 21px;
  }
  .settings-card h2 {
    font-size: 16px;
  }
  .audit-list {
    padding-inline: 17px;
  }
  .audit-entry {
    padding-block: 16px;
  }
  .audit-values {
    font-size: 10px;
  }
  .more-grid {
    gap: 12px;
  }
  .more-card {
    padding: 20px 16px;
  }
  .more-card strong {
    font-size: 13px;
  }
  .more-card small {
    font-size: 10px;
  }
  .toast {
    bottom: calc(87px + env(safe-area-inset-bottom));
    font-size: 12px;
    padding: 12px 17px;
    max-width: calc(100% - 30px);
    width: max-content;
  }
  .auth-page {
    display: block;
    min-height: 100dvh;
    background: var(--paper);
    padding-bottom: 30px;
  }
  .auth-aside {
    display: none;
  }
  .auth-content {
    padding: 33px 24px;
    display: block;
  }
  .auth-form {
    max-width: 410px;
    margin: 0 auto;
    background: #fff;
    padding: 25px 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .auth-form h2 {
    font-size: 23px;
  }
  .auth-mobile-brand {
    display: flex;
    justify-content: center;
    padding-top: 45px;
  }
  .auth-mobile-brand .brand {
    color: var(--primary-dark);
  }
  .auth-mobile-brand .brand-mark {
    background: var(--primary-dark);
    height: 46px;
    width: 45px;
  }
  .auth-mobile-brand .brand-subtitle {
    opacity: 0.6;
  }
  .auth-footnote {
    font-size: 10px !important;
  }
  .form-grid {
    gap: 15px;
  }
  .form-grid .field {
    grid-column: 1/-1;
  }
  .balance-preview-grid {
    grid-template-columns: 1fr;
  }
  dialog,
  dialog.wide {
    width: 100%;
    max-width: 100%;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 23px 23px 0 0;
  }
  .dialog-inner {
    max-height: 94dvh;
    border-radius: 23px 23px 0 0;
  }
  .dialog-header {
    padding: 21px 20px 15px;
  }
  .dialog-header h2 {
    font-size: 19px;
  }
  .dialog-body {
    padding: 21px 20px;
  }
  .dialog-footer {
    padding: 15px 20px calc(15px + env(safe-area-inset-bottom));
  }
  .dialog-footer .btn {
    flex: 1;
    font-size: 12px;
  }
  .dialog-header:before {
    content: "";
    position: absolute;
    top: 7px;
    right: calc(50% - 17px);
    width: 34px;
    height: 3px;
    background: #dce4f0;
    border-radius: 4px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .field > label {
    font-size: 11px;
  }
  .field .hint {
    font-size: 10px;
  }
  .assignment-row {
    grid-template-columns: 42px 1fr 1.15fr;
    gap: 8px;
    font-size: 11px;
  }
  .assignment-row select {
    font-size: 12px;
    padding: 7px 5px;
  }
  .rate-row {
    grid-template-columns: 1fr 110px;
  }
  .details-grid {
    gap: 14px;
  }
  .details-grid .detail-value {
    font-size: 12px;
  }
  .selection-box {
    max-height: 280px;
  }
  .form-total strong {
    font-size: 21px;
  }
  .page-heading .heading-actions.stack {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 360px) {
  .main {
    padding-inline: 13px;
  }
  .topbar {
    padding-inline: 14px;
  }
  .stat-value {
    font-size: 22px;
  }
  .stat-card {
    padding: 15px 13px;
  }
  .segmented button {
    padding-inline: 6px;
    font-size: 10px;
  }
  .period-control input {
    width: 104px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .heading-actions .btn {
    font-size: 10px;
    padding-inline: 8px;
  }
  .record-card {
    padding: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition: none !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .bottom-nav,
  .heading-actions,
  .btn,
  .toast {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  .main {
    padding: 0;
  }
  .panel,
  .record-card,
  .stat-card {
    break-inside: avoid;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  body {
    background: #fff;
  }
  a {
    color: inherit;
  }
}

.sidebar {
  overflow-y: auto;
}
.nav-list {
  flex-shrink: 0;
}

.file-picker {
  position: relative;
  border: 1px dashed #aec6e8;
  background: #f4f8fe;
  border-radius: 11px;
  min-height: 48px;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 12px;
  overflow: hidden;
}
.file-picker span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  height: 100%;
  width: 100%;
}
.file-picker:focus-within {
  outline: 3px solid #c5a85e;
  outline-offset: 3px;
}

/* Large amounts and long entered descriptions must stay inside phone cards. */
.record-card h3,
.activity-title,
.record-detail,
.detail-value,
.page-description {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .btn,
  .btn-small,
  .heading-actions .btn,
  .record-card .record-foot .btn,
  .chip,
  .segmented button,
  .text-button,
  .check-label {
    min-height: 44px;
  }
  .icon-button,
  .mobile-brand .avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .period-control {
    min-height: 50px;
  }
  .period-control input {
    min-height: 38px;
  }
  .assignment-row select,
  .rate-row input {
    min-height: 44px;
  }
  .stat-card:not(.featured) .stat-value > .money.long {
    font-size: 0.6em;
  }
  .featured .stat-value > .money.long {
    font-size: 0.8em;
  }
  .summary-item .money.long {
    font-size: 13px;
  }
}
