/* Emerald reporting theme: readable type, clear controls, spacious records. */
:root {
  --ink: #173b32; --muted: #60736b; --green: #126c51; --green-dark: #103f33;
  --lime: #dcf2af; --bg: #f1f5f2; --line: #dde7e0; --shadow: 0 6px 24px #123e2f08;
  font-family: "Segoe UI", Arial, sans-serif;
}
body { font-size: 16px; line-height: 1.55; }
:focus-visible { outline: 3px solid #2c886a; }
h1 { font-size: 36px; letter-spacing: -1px; line-height: 1.2; }
h2 { font-size: 23px; letter-spacing: -.4px; line-height: 1.35; }
h3 { font-size: 19px; }small { font-size: 13px; }
.eyebrow { font-size: 12px; letter-spacing: 1.5px; margin-bottom: 10px; }
.brand { gap: 12px; font-size: 28px; }.brand-light { color: #def0e7; }
.brand-symbol { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; font-size: 31px; }
.brand-symbol span { font-size: 18px; right: 6px; top: 2px; }
.sidebar { width: 264px; background: linear-gradient(165deg, #104b3b, #10382f); color: #e0eee6; padding: 32px 20px 22px; overflow-y: auto; }
.sidebar .brand { margin: 0 5px 48px; }.side-caption { font-size: 11px; color: #b6d0c1; padding-inline: 14px; }
.sidebar nav a { padding: 15px 16px; min-height: 54px; margin-bottom: 10px; border-radius: 12px; font-weight: 600; font-size: 16px; }
.sidebar nav a > span { font-size: 24px; width: 24px; }.sidebar nav a:hover { background: #ffffff10; }
.sidebar nav .active { background: var(--lime); color: #153e2d; box-shadow: 0 4px 14px #051e181c; }
.sidebar-bottom { padding-top: 32px; }.connection { margin: 18px 10px; padding: 22px 4px; border-color: #ffffff25; gap: 12px; font-size: 15px; }
.connection small { color: #b4cfc0; font-size: 12px; margin-top: 4px; }.connection i { width: 8px; height: 8px; flex-shrink: 0; background: var(--lime); }
.settings-link, .logout { padding: 13px 14px; color: #d0e5d8; font-size: 15px; border-radius: 8px; }
.settings-link:hover, .logout:hover { background: #ffffff0d; color: #fff; }
.workspace { margin-left: 264px; min-width: 0; }
.topbar { height: auto; min-height: 88px; background: #ffffffed; gap: 16px; padding: 16px 36px; position: sticky; top: 0; z-index: 5; }
.topbar .eyebrow { margin: 0 0 2px; font-size: 11px; letter-spacing: 1.5px; }.top-title { font-size: 19px; }
.admin-pill { gap: 12px; font-size: 14px; }.avatar { width: 40px; height: 40px; background: #eaf3df; }
.mode { background: #eef4ed; color: #4e6957; font-size: 12px; padding: 5px 11px; font-weight: 500; }
.workspace main { padding: 22px 36px 30px; max-width: 1840px; }
.sync { color: #57705e; font-size: 12px; margin-bottom: 20px; }.sync.stale { color: #8b5819; }
.page-heading { align-items: center; gap: 24px; margin-bottom: 28px; background: linear-gradient(115deg, #e3efdf, #f6f9f2); border: 1px solid #d9e5d5; border-left: 5px solid #237657; border-radius: 16px; padding: 28px 30px; }
.page-heading > div { min-width: 0; }.page-heading p { font-size: 16px; margin-top: 10px; }
.month-form { flex-shrink: 0; }.month-form label { font-size: 13px; font-weight: 600; color: #506850; margin-bottom: 8px; }
.month-form > div { gap: 10px; }.month-form input { width: 185px; }
.button { border-radius: 10px; padding: 11px 20px; font-size: 15px; min-height: 46px; }
.button.secondary { border-color: #cbd9ce; }.button.secondary:hover { background: #eaf2e7; }
.button.small { font-size: 14px; padding: 9px 15px; min-height: 42px; }
.button.wide { margin-top: 26px; height: auto; min-height: 52px; font-size: 16px; }.button.wide span { font-size: 22px; }
.text-link { font-size: 15px; }.metrics { gap: 20px; }
.metric { border-radius: 16px; padding: 25px; }
.metric > div { gap: 10px; color: #566f61; font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.metric i { font-size: 21px; width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; background: #edf5e6; }
.metrics .metric > strong { font-size: clamp(28px, 2vw, 38px); font-weight: 700; line-height: 1.25; white-space: normal; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric > small { margin-top: 12px; font-size: 13px; }
.metric.featured { background: linear-gradient(120deg, #105a43, #1b7855); border-color: #126348; }
.metric.featured > div, .metric.featured > small { color: #e1f0e4; }
.metric-note { color: #62735f; font-size: 13px; margin: 15px 2px 28px; }
.chart-grid { grid-template-columns: minmax(0, 1.8fr) minmax(350px, 1fr); gap: 24px; margin-bottom: 28px; }
.panel { border-radius: 16px; min-width: 0; }.panel-heading { padding: 25px 28px; }
.panel-heading p { font-size: 14px; margin-top: 6px; }.legend { gap: 8px; font-size: 13px; }
.legend i { height: 9px; width: 9px; flex-shrink: 0; border-radius: 3px; }
.chart-scroll { overflow-x: auto; }.chart { min-width: 620px; padding-bottom: 16px; height: 295px; }
.chart text { font-size: 15px; fill: #607266; }.grid-line { stroke: #e4ebe4; }.chart-bar { fill: #268060; }.chart-bar:hover { fill: #789e47; }
.status-list { padding: 0 28px 22px; }.status-list > div { gap: 16px; padding: 15px 0; border-color: #eaf0e8; }
.status-list > div > span:first-child { color: #425e50; font-size: 15px; }.status-list > div > span:last-child { gap: 18px; }
.status-list strong { font-size: 16px; }.status-list small { font-size: 14px; min-width: 100px; font-variant-numeric: tabular-nums; }
.dot { height: 9px; width: 9px; }
table { min-width: 1200px; font-size: 15px; white-space: normal; }
th { color: #47614e; font-size: 12px; letter-spacing: .75px; background: #edf3e9; padding: 17px 18px; border-color: #dce6d8; font-weight: 700; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 28px; }th:last-child, td:last-child { padding-right: 28px; }
td { padding: 23px 18px; border-color: #e4ece3; color: #314f41; vertical-align: middle; }
tbody tr:nth-child(even) { background: #fafcf9; }tbody tr:hover { background: #f0f7e9; }td:first-child { white-space: nowrap; }
td strong { font-size: 15px; font-weight: 600; }td small { font-size: 13px; color: #64765e; margin-top: 7px; }
.reference { min-width: 275px; max-width: 350px; overflow-wrap: anywhere; }.reference a { font-size: 14px; color: #116449; font-weight: 650; }.reference a:hover { text-decoration: underline; }.reference small { font-size: 12px; }
.number { white-space: nowrap; }.amount { font-weight: 700; color: #143d2e; font-size: 17px; font-variant-numeric: tabular-nums; }.mono { font-size: 14px; overflow-wrap: anywhere; }
.badge { gap: 7px; border-radius: 8px; padding: 6px 11px; font-size: 13px; background: #fff4d6; color: #805810; white-space: nowrap; }.badge:before { width: 6px; height: 6px; flex-shrink: 0; }
.badge.status-1 { background: #eaf1fb; color: #3b6596; }.badge.status-2 { background: #e4f3e5; color: #256b3c; }.badge.status-3 { background: #ffebe7; color: #a43f35; }.badge.status-4 { background: #f2eafb; color: #735294; }
.row-view { height: 40px; width: 40px; border-color: #cdddc8; border-radius: 10px; font-size: 22px; background: #fff; }.row-view:hover { background: #dff0ce; border-color: #91b976; }
.empty p { font-size: 15px; margin: 10px 0 20px; }.empty-icon { font-size: 36px; color: #6d8d5f; margin-bottom: 15px; }.empty.compact { padding: 44px 24px; min-height: 295px; }
.filter-form { gap: 20px; padding: 25px 28px; margin-bottom: 28px; }.filter-form label { font-size: 14px; font-weight: 600; color: #47614e; min-width: 155px; }.filter-form .search-field { min-width: 285px; }
.filter-form input, .filter-form select { margin-top: 9px; }
input, select { border-color: #bfcec0; border-radius: 9px; padding: 11px 13px; min-height: 46px; font-size: 16px; }input:focus, select:focus { border-color: #2d815a; outline: 3px solid #3c895a25; }input::placeholder { color: #6c7b66; font-size: 14px; }
.filter-actions { gap: 18px; }.filter-actions a { font-size: 15px; }.filtered-total small { font-size: 13px; }.filtered-total strong { font-size: 26px; }
.pagination { gap: 16px; padding: 24px 28px; font-size: 14px; }.pagination > div { gap: 9px; }
footer { margin-top: 30px; flex-wrap: wrap; gap: 10px; color: #64745e; font-size: 12px; }footer span { color: #64745e; }
.details { max-width: 1180px; }.details dl { padding: 0 28px 24px; }.details dl > div { padding: 20px 0; border-color: #e4ebe1; }dt { font-size: 14px; }dd { font-size: 16px; font-weight: 500; }.detail-note { padding: 22px 28px; background: #f1f6ec; font-size: 14px; }
.page-heading > .badge { padding: 9px 16px; font-size: 15px; }
.security-panel { max-width: 640px; padding: 32px; }.security-panel label { font-size: 15px; font-weight: 600; margin-top: 22px; }.security-panel input { margin-top: 9px; }.security-panel p { font-size: 14px; margin: 20px 0; }
.notice { padding: 16px 18px; font-size: 15px; border-color: #c7dfba; border-radius: 10px; color: #365a36; }.notice.error { border-color: #edcabc; color: #91422d; }
.login-aside { background: linear-gradient(150deg, #104d3b, #10382f); }.login-aside > .brand { font-size: 30px; }.login-aside .eyebrow { color: #c8e1b5; font-size: 12px; }
.login-aside h1 { font-size: clamp(38px, 4.5vw, 66px); font-weight: 600; }.login-aside p { font-size: 17px; color: #c7e0d1; max-width: 420px; }.login-aside small { color: #b4cfc0; font-size: 13px; }.login-points { font-size: 14px; color: #dfefdb; }
.login-main { min-height: 100vh; background: #f3f7f0; }.login-card { max-width: 460px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 15px 50px #123e2f08; }
.login-card h2 { font-size: 36px; }.login-card > p { font-size: 16px; margin: 12px 0 30px; }.login-card label { font-size: 15px; font-weight: 600; margin-top: 22px; }.login-card input { height: 50px; }
.login-note { font-size: 13px; color: #60735c; }.login-main > small { margin-top: 40px; font-size: 13px; color: #67775f; }
.topbar .logout { font-size: 24px; width: 40px; min-height: 44px; text-align: center; }
@media (max-width: 1450px) {
  .sidebar { width: 240px; padding-inline: 16px; }.sidebar .brand { font-size: 25px; }.workspace { margin-left: 240px; }.workspace main, .topbar { padding-inline: 26px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.metrics .metric > strong { font-size: 34px; }
  .chart-grid { grid-template-columns: minmax(0, 1.5fr) minmax(315px, 1fr); gap: 20px; }.panel-heading, .status-list { padding-inline: 22px; }.status-list > div > span:last-child { gap: 10px; }.status-list small { min-width: 90px; }
  .page-heading { align-items: flex-start; flex-direction: column; padding: 26px; }.month-form { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }.month-form label { margin: 0; }
}
@media (max-width: 1100px) {
  .sidebar { width: 220px; padding-inline: 14px; }.sidebar .brand { font-size: 23px; gap: 9px; }.workspace { margin-left: 220px; }.chart-grid { grid-template-columns: minmax(0, 1fr); }.chart { height: 290px; }
  .status-list { display: block; }.status-list > div { padding-block: 14px; }.mode { display: none; }.admin-pill { font-size: 13px; gap: 9px; }.top-title { font-size: 17px; }
  .metric { padding: 22px; }.metric > div { font-size: 14px; }.metrics .metric > strong { font-size: 30px; }.login-aside { padding: 36px; }.login-main { padding: 30px; }.login-card { padding: 26px; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; padding: 22px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 22px; overflow: visible; }.sidebar .brand { margin: 0; font-size: 27px; }.sidebar nav { display: flex; gap: 10px; width: 100%; }.sidebar nav a { margin: 0; padding: 12px 14px; flex: 1; font-size: 15px; gap: 10px; min-height: 48px; }
  .side-caption, .sidebar-bottom { display: none; }.workspace { margin-left: 0; }.topbar { padding: 12px 22px; min-height: 76px; position: static; }.topbar .eyebrow { font-size: 10px; }.top-title { font-size: 16px; }.avatar { display: none; }.admin-pill { font-size: 12px; gap: 6px; }
  .mobile-settings { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; font-size: 23px; color: var(--green); }
  .workspace main { padding: 20px 18px 28px; }.sync { text-align: left; font-size: 12px; margin-bottom: 18px; }h1 { font-size: 30px; }h2 { font-size: 21px; }.page-heading { padding: 23px; gap: 22px; margin-bottom: 22px; }.page-heading p { font-size: 15px; }
  .metrics { gap: 14px; }.metric { padding: 22px; }.metric > div { font-size: 15px; }.metrics .metric > strong { font-size: 30px; }.metric > small { font-size: 13px; }.metric i { display: grid; width: 32px; height: 32px; }
  .metric-note { font-size: 13px; margin-bottom: 24px; }.chart-grid { gap: 22px; }.panel-heading { padding: 22px; flex-wrap: wrap; gap: 14px; }.panel-heading p { font-size: 14px; }.panel-heading .text-link { font-size: 14px; }
  .chart { height: 260px; min-width: 650px; padding-inline: 12px; }.legend { font-size: 13px; }.status-list { padding-inline: 22px; }.status-list > div > span:first-child { font-size: 15px; }.status-list > div > span:last-child { display: flex; }.status-list small { font-size: 14px; }
  .filter-form { padding: 22px; gap: 18px 14px; }.filter-form label { min-width: 135px; }.filter-form .search-field { min-width: 100%; order: 3; }.filter-actions { order: 4; }.filtered-total strong { font-size: 24px; }
  .pagination { padding: 22px; flex-wrap: wrap; font-size: 14px; }.details dl { grid-template-columns: 1fr; padding-inline: 22px; }.detail-note { padding: 22px; }
  .login-shell { display: flex; flex-direction: column; }.login-aside { min-height: 0; padding: 24px; }.login-aside > div, .login-aside > small { display: none; }.login-aside > .brand { font-size: 27px; }.login-main { min-height: calc(100vh - 92px); padding: 32px 20px; }.login-card { padding: 26px; }.login-card h2 { font-size: 32px; }.login-main > small { margin-top: 28px; }.security-panel { padding: 24px; }
}
@media (max-width: 520px) {
  .metrics { grid-template-columns: minmax(0, 1fr); }.metrics .metric > strong { font-size: 34px; }.metric > div { margin-bottom: 14px; }.metric > small { margin-top: 10px; }
  .month-form, .month-form > div { width: 100%; }.month-form input { flex: 1; min-width: 0; width: 0; }.month-form .button { padding-inline: 15px; }
  .sidebar nav a { padding-inline: 11px; gap: 9px; font-size: 14px; }.sidebar nav a > span { font-size: 21px; }.topbar { padding-inline: 18px; gap: 8px; }.page-heading > .badge { align-self: flex-start; }.login-card { padding: 24px; }
}
@media (max-width: 760px) {
  .table-scroll { overflow: visible; }
  .table-scroll table, .table-scroll tbody { display: block; width: 100%; min-width: 0; }
  .table-scroll thead { display: none; }
  .table-scroll tbody { padding: 0 16px 18px; }
  .table-scroll tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 12px; padding: 20px; margin-bottom: 14px; background: #fbfdf9; border: 1px solid var(--line); border-radius: 12px; }
  .table-scroll tr:last-child { border-bottom: 1px solid var(--line); margin-bottom: 0; }
  .table-scroll td { display: block; min-width: 0; max-width: none; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; text-align: left; }
  .table-scroll td::before { content: attr(data-label); display: block; font: 600 12px/1.5 "Segoe UI", Arial, sans-serif; color: #61735e; margin-bottom: 5px; }
  .table-scroll td small { margin-top: 4px; }
  .table-scroll td:nth-child(1) { order: 1; }
  .table-scroll td:nth-child(5) { order: 2; text-align: right; }
  .table-scroll td:nth-child(2) { order: 3; grid-column: 1 / -1; }
  .table-scroll td:nth-child(3) { order: 4; grid-column: 1 / -1; }
  .table-scroll td:nth-child(4) { order: 5; }
  .table-scroll td:nth-child(6) { order: 6; }
  .table-scroll td:nth-child(7) { order: 7; grid-column: 1 / -1; }
  .table-scroll td:nth-child(7)::before { display: none; }
  .table-scroll .row-view { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 44px; }
  .table-scroll .row-view::before { content: 'View details'; font-size: 14px; font-weight: 600; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .row-view, .sidebar nav a { transition: background-color .15s ease, border-color .15s ease; }
}
