/* Tivuma · light teal workspace, based on the owner's five-screen brief. */
:root {
  --teal: #007f83;
  --bg: #f7fbfa;
  --ink: #15323b;
  --muted: #546b75;
  --line: #e3eeed;
  --mint: #11bea5;
  --green-shadow: 0 6px 24px rgb(13 91 93 / 6%);
}
html { scroll-padding-top: 24px; }
body { background: var(--bg); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button, a { transition: background-color .17s, border-color .17s, box-shadow .17s; }
button { border-radius: 11px; font-size: 13px; }
button.primary, .green-pages button.active {
  color: #fff;
  background: linear-gradient(125deg, #0aada0 0%, #008b88 62%, #00777e 100%);
  border-color: #008d89;
  box-shadow: inset 0 1px 1px #b9fff173, 0 4px 12px #009c8c24;
}
button.primary:hover { background: linear-gradient(125deg, #009a91, #006d74); box-shadow: 0 5px 17px #008c8133; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #007f83; outline-offset: 3px;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.green-shell { --sidebar-width: 232px; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); isolation: isolate; }
.green-shell .main {
  position: relative; isolation: isolate; margin: 0; max-width: none; min-width: 0; padding: 0 30px 24px;
  background: radial-gradient(ellipse at 100% 0, #dff7f335, transparent 42%), linear-gradient(130deg, #fbfdfdf0, #f4fafbd9);
}
.green-shell .main::before, .green-shell .main::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none; background: url('/static/green-waves.svg') no-repeat;
}
.green-shell .main::before { top: 0; left: 0; width: 100%; height: 230px; background-size: 100% auto; opacity: .6; }
.green-shell .main::after { bottom: 0; right: 0; width: min(680px, 75%); height: 220px; background-size: 100% auto; transform: rotate(180deg); opacity: .45; }
.green-shell .sidebar {
  width: var(--sidebar-width); padding: 30px 14px 20px; background: #ffffffeb; border-right: 1px solid #dfedeb;
  box-shadow: 4px 0 24px #117b7610; overflow-y: auto; overflow-x: hidden; z-index: 10;
}
.green-shell .sidebar::after { content: ''; position: absolute; pointer-events: none; bottom: 140px; left: 0; width: 100%; height: 260px; background: url('/static/green-waves.svg') no-repeat left bottom / 550px; opacity: .18; z-index: -1; }
.green-shell .sidebar > .brand { margin-left: 23px; font-size: 39px; letter-spacing: -2px; }
.green-shell .sidebar .tagline { margin: 9px 0 30px 24px; color: #334b55; font-size: 11px; letter-spacing: 0; }
.green-shell .sidebar nav { gap: 7px; }
.green-shell .sidebar nav button { min-height: 49px; padding: 12px 16px; border-radius: 12px; color: #263f4a; font-size: 13px; font-weight: 600; gap: 14px; }
.green-shell .sidebar nav button:hover { background: #eaf9f5; border-color: #b7e7df; }
.green-shell .sidebar nav button.active {
  color: #fff; border-color: #08b8a3; background: linear-gradient(115deg, #10bba7, #008e8a 66%, #008087);
  box-shadow: inset 0 1px 2px #adffef94, 0 4px 13px #08aa9830;
}
.green-shell .sidebar nav svg { width: 21px; height: 21px; }
.green-shell .side-bottom { padding-top: 35px; }
.green-shell .company-chip { padding: 19px 4px 0; gap: 10px; }
.green-shell .company-chip > div { min-width: 0; overflow-wrap: anywhere; }
.green-shell .company-chip b { font-size: 12px; }
.green-shell .company-chip small { font-size: 10px; }
.avatar { background: linear-gradient(130deg, #dff8f6, #c7f4ec); color: #007c80; border: 1px solid #dbf4ee; }
.green-shell .topbar { height: 76px; margin-bottom: 25px; border-bottom: 0; position: relative; z-index: 1; }
.green-shell .topbar .actions { gap: 15px; }
.green-shell .topbar .actions > button { display: grid; place-items: center; padding: 10px; border-color: #edf3f3; background: #fff9; box-shadow: 0 3px 12px #446f7009; }
.green-shell .topbar .avatar { border-radius: 50%; width: 38px; height: 38px; }
.green-shell .topbar select { min-height: 40px; max-width: 120px; font-weight: 600; color: var(--ink); border-radius: 9px; background: #ffffff90; }
.green-shell .topbar .pill { font-size: 10px; border: 1px solid #eae2fb; }
.desktop-crumb { display: flex; align-items: center; gap: 13px; font-size: 12px; color: #455c66; }
.green-breadcrumb-home { display: grid; place-items: center; min-height: 30px; padding: 5px; border: 0; background: transparent; color: var(--teal); }
.green-breadcrumb-home svg { width: 18px; height: 18px; }
.green-page-header { margin-bottom: 25px; min-height: 70px; gap: 16px; }
.green-heading { display: flex; align-items: center; gap: 17px; min-width: 0; }
.green-heading > div { min-width: 0; }
.green-page-icon { width: 61px; height: 61px; display: grid; place-items: center; flex: none; border-radius: 18px; color: var(--teal); border: 1px solid #c8f5eb; background: linear-gradient(140deg, #edfffb, #baf4e9); box-shadow: inset 0 1px 2px white; }
.green-page-icon svg { width: 30px; height: 30px; stroke-width: 1.7; }
.green-page-header h1 { font-size: clamp(26px, 2.5vw, 35px); line-height: 1.15; color: #102d37; font-weight: 750; letter-spacing: -.9px; margin: 0 0 7px; overflow-wrap: anywhere; }
.green-page-header p { font-size: 13px; max-width: 650px; line-height: 1.5; color: #47616f; }
.green-page-header .actions button { min-height: 45px; display: inline-flex; gap: 9px; align-items: center; justify-content: center; padding: 10px 19px; white-space: nowrap; }
.green-page-header .actions svg { width: 19px; height: 19px; }
.green-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 25px; }
.green-kpi { position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 15px; padding: 21px 19px; min-height: 115px; border: 1px solid #e2efed; border-radius: 17px; background: linear-gradient(135deg, #fff, #f8fdfccf); box-shadow: var(--green-shadow); min-width: 0; }
.green-kpi::after { content: ''; position: absolute; right: -26px; bottom: -36px; width: 150px; height: 62px; border-radius: 50%; transform: rotate(-28deg); background: linear-gradient(140deg, #93eede1a, #43ddc64d); box-shadow: 0 -13px 0 #bff8ed35; pointer-events: none; }
.green-kpi > div { position: relative; z-index: 1; min-width: 0; }
.green-kpi h2 { font-size: 12px; line-height: 1.5; font-weight: 550; letter-spacing: -.15px; margin: 0 0 7px; color: #304e58; }
.green-kpi-value { color: #0b3040; font-size: clamp(20px, 1.9vw, 28px); font-weight: 750; line-height: 1.18; letter-spacing: -.7px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.green-kpi p { font-size: 10px; line-height: 1.5; color: var(--muted); margin: 9px 0 0; }
.green-kpi-icon { display: grid; place-items: center; flex: none; width: 45px; height: 45px; background: #ddf8f4; color: #00858a; border-radius: 14px; }
.green-kpi-icon svg { width: 25px; height: 25px; stroke-width: 1.8; }
.green-currency-amount { display: block; white-space: nowrap; }
.green-kpi.success .green-kpi-icon { color: #168336; background: #e3f9df; }
.green-kpi.success::after { background: #c4f5cf7a; }
.green-kpi.amber .green-kpi-icon { color: #b76b00; background: #fff3d9; }
.green-kpi.amber::after { background: #ffedc87a; }
.green-kpi.rose .green-kpi-icon { color: #c63747; background: #ffebef; }
.green-kpi.rose::after { background: #ffe3e97a; }
.green-kpi.blue .green-kpi-icon { color: #2365cf; background: #e8f2ff; }
.green-kpi.purple .green-kpi-icon { color: #7b46b4; background: #f2eafa; }
.green-kpi.featured { border-color: #00ad9b; background: linear-gradient(125deg, #00a69b, #008c88 62%, #006b79); box-shadow: inset 0 1px 2px #8bffe1a8, 0 8px 25px #008e8426; }
.green-kpi.featured h2, .green-kpi.featured .green-kpi-value, .green-kpi.featured p { color: white; }
.green-kpi.featured .green-kpi-icon { color: white; background: #ffffff20; }
.green-kpi.featured::after { background: #67e7d047; }
.green-tabs { display: flex; align-items: stretch; gap: 12px; margin-bottom: 20px; border-bottom: 1px solid #e0eceb; overflow-x: auto; scrollbar-width: thin; }
.green-tabs button { position: relative; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; flex: none; min-height: 47px; padding: 10px 12px; font-size: 12px; color: #324b59; box-shadow: none; white-space: nowrap; }
.green-tabs button:hover { background: #eaf9f4a1; }
.green-tabs button.active { color: #007b7d; border-bottom-color: #009f95; font-weight: 750; }
.green-tabs button span { font-size: 11px; margin-left: 4px; font-weight: 500; }
.green-tabs button span::before { content: '('; }
.green-tabs button span::after { content: ')'; }
.green-data-card { padding: 0; overflow: hidden; border: 1px solid #e2ecec; border-radius: 17px; background: #ffffffed; box-shadow: var(--green-shadow); }
.green-toolbar { padding: 18px 19px; display: flex; justify-content: space-between; align-items: center; gap: 14px; min-width: 0; }
.green-toolbar h2 { margin: 0; }
.green-toolbar > .actions { min-width: 0; flex-wrap: nowrap; }
.green-search { min-width: 150px; width: min(360px, 100%); position: relative; font-weight: 400; }
.green-search > svg { position: absolute; left: 13px; top: 13px; width: 18px; height: 18px; color: #546a76; pointer-events: none; }
.green-search input { margin: 0; min-height: 43px; height: 43px; font-size: 12px; padding: 10px 33px 10px 39px; border-color: #dce7e8; border-radius: 11px; box-shadow: inset 0 1px 2px #365a5d05; background: #fff; }
.green-search input::placeholder { color: #627784; opacity: 1; }
.green-control { min-width: 0; }
.green-control select { margin: 0; max-width: 225px; min-height: 43px; padding: 8px 30px 8px 12px; font-size: 12px; background: white; border-color: #dce7e8; border-radius: 10px; }
.green-filter-toggle { display: flex; align-items: center; gap: 8px; min-height: 43px; box-shadow: 0 2px 7px #23495108; white-space: nowrap; }
.green-filter-toggle svg { width: 17px; height: 17px; }
.green-filter-toggle.active { background: #e0f7f1; border-color: #70cfc0; color: #006d72; }
.green-extra-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 0 19px 18px; border-bottom: 1px solid var(--line); background: #fbfdfc; }
.green-extra-filters > label { min-width: 125px; flex: 1 1 145px; max-width: 250px; font-size: 11px; }
.green-extra-filters > label input, .green-extra-filters > label select { font-size: 12px; min-height: 41px; }
.green-extra-filters button { display: inline-flex; gap: 6px; align-items: center; }
.green-table-wrap { width: 100%; margin: 0; overflow-x: auto; overscroll-behavior-x: contain; }
.green-table { width: 100%; font-size: 11.5px; line-height: 1.5; }
.green-table thead { background: #f7fafbd9; }
.green-table th { color: #3e5867; padding: 13px 12px; font-size: 10px; letter-spacing: .15px; font-weight: 600; white-space: nowrap; }
.green-table th button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; min-height: 30px; font-size: inherit; letter-spacing: inherit; text-transform: uppercase; color: inherit; white-space: nowrap; }
.green-table th button span { font-size: 13px; color: #6f8592; font-weight: 400; }
.green-table td { padding: 14px 12px; border-bottom: 1px solid #e8f0f0; color: #173643; overflow-wrap: anywhere; }
.green-table td:not(.num) { max-width: 300px; }
.green-table td.green-description { max-width: 235px; min-width: 110px; }
.green-table tr:hover td { background: #f4fcf9a6; }
.green-table .subtext { margin-top: 3px; font-size: 10px; line-height: 1.5; }
.green-table .doc-number { white-space: nowrap; color: #008187; font-size: 11.5px; letter-spacing: -.1px; }
.green-table .doc-link { min-height: 27px; font-weight: 650; text-align: left; }
.green-table .doc-link:hover { text-decoration: underline; background: transparent; }
.green-client-link { max-width: 185px; }
.green-row-actions { display: flex; align-items: center; gap: 5px; }
.green-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 31px; min-height: 33px; padding: 6px; color: #007e82; background: white; border: 1px solid #dde8e8; border-radius: 9px; box-shadow: 0 2px 4px #2f585409; }
.green-icon-button:hover { background: #e7f9f4; border-color: #8ed6c9; }
.green-icon-button svg { width: 17px; height: 17px; stroke-width: 1.8; }
.pill { border-radius: 7px; font-size: 10px; font-weight: 650; line-height: 1.5; padding: 4px 8px; }
.pill.paid, .pill.accepted { color: #126633; background: #dcf8e5; }
.pill.sent, .pill.partial, .pill.unpaid { background: #fff1d8; color: #875600; }
.pill.draft { color: #65379a; background: #efe7fc; }
.pill.issued { color: #006f78; background: #def6f2; }
.pill.rejected, .pill.overdue, .pill.refund_due { color: #a52c41; background: #ffe9ee; }
.pill.settled { background: #e7f3f3; color: #3b6268; }
.pill.corrected { background: #f1eafa; color: #734895; }
.green-positive { color: #167b3b; }
.green-negative, .green-overdue { color: #b13448; }
.green-pagination { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 13px; border-top: 1px solid #e8f0ef; font-size: 11px; color: #405c67; }
.green-pagination label { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 400; }
.green-pagination select { width: 65px; min-height: 37px; padding: 6px 10px; font-size: 12px; margin: 0; }
.green-pages { display: flex; align-items: center; gap: 5px; }
.green-pages button { min-width: 34px; min-height: 35px; padding: 6px 9px; font-size: 11px; border-radius: 9px; color: #20505a; }
.green-pages button.active { color: white; }
.green-pages button:disabled { background: #f4f8f7; border-color: #edf2f1; opacity: .6; }
.green-empty { padding: 45px 22px; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.green-empty-icon { background: #e8f9f3; width: 58px; height: 58px; border-radius: 17px; color: var(--teal); display: grid; place-items: center; margin-bottom: 16px; }
.green-empty-icon svg { width: 27px; height: 27px; }
.green-empty h3, .green-empty h2 { margin: 0 0 9px; color: #25434e; }
.green-empty p { color: var(--muted); font-size: 12px; max-width: 390px; }
.green-empty button { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; }
.green-data-note { margin: 16px 4px 0; color: #5b717a; font-size: 10px; }
.green-client-layout { display: grid; grid-template-columns: minmax(0, 1fr) 305px; gap: 20px; align-items: start; }
.green-client-list { min-width: 0; }
.green-client-layout .green-toolbar { padding: 15px; }
.green-client-layout .green-table td { padding: 13px 10px; }
.green-client-layout .green-kpis { gap: 12px; }
.green-client-layout .green-kpi { gap: 9px; padding: 17px 12px; min-height: 106px; }
.green-client-layout .green-kpi-icon { width: 35px; height: 35px; border-radius: 11px; }
.green-client-layout .green-kpi-icon svg { width: 21px; height: 21px; }
.green-client-layout .green-kpi h2 { font-size: 10px; }
.green-client-layout .green-kpi-value { font-size: 22px; }
.green-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.green-person > div { min-width: 0; }
.green-person .avatar { width: 35px; height: 35px; flex: none; border-radius: 50%; font-size: 12px; }
.green-selected-row td { background: #e7f7f3b0; border-bottom-color: #addfd4; border-top: 1px solid #addfd4; }
.green-selected-row td:first-child { box-shadow: inset 3px 0 #009e91; }
.green-contact { display: grid; gap: 4px; font-size: 10px; }
.green-contact span { display: flex; gap: 7px; align-items: flex-start; overflow-wrap: anywhere; }
.green-contact svg { color: var(--teal); width: 13px; height: 13px; margin-top: 1px; }
.green-detail-panel { padding: 21px 18px; border-radius: 17px; box-shadow: var(--green-shadow); min-width: 0; }
.green-client-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 17px; }
.green-client-heading .avatar { width: 48px; height: 48px; flex: none; font-size: 17px; border-radius: 15px; }
.green-client-heading h2 { margin: 0 0 2px; font-size: 16px; color: #12323e; line-height: 1.4; overflow-wrap: anywhere; }
.green-contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 20px; }
.green-contact-actions a, .green-contact-actions button { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 8px; min-height: 39px; border: 1px solid #e0eceb; border-radius: 10px; font-size: 10px; font-weight: 550; }
.green-contact-actions svg { width: 16px; height: 16px; color: #008d89; }
.green-detail-panel > section { border-top: 1px solid var(--line); padding: 16px 0 0; margin-bottom: 17px; }
.green-detail-panel h3 { font-size: 12px; color: #1b3a47; margin: 0 0 12px; }
.green-detail-panel > .actions { margin-top: 20px; }
.green-detail-panel > .actions button { display: inline-flex; gap: 6px; font-size: 11px; padding: 8px 9px; min-height: 38px; }
.green-detail-panel > .actions svg { width: 15px; height: 15px; }
.green-contact-list { margin: 0; display: grid; gap: 10px; font-size: 10px; }
.green-contact-list > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
.green-contact-list dt { color: #627780; }
.green-contact-list dd { margin: 0; color: #243f4a; overflow-wrap: anywhere; }
.green-mini-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.green-mini-kpis > div { min-width: 0; background: linear-gradient(125deg, #eaf8f9, #f4fbf8); padding: 11px 9px; border-radius: 10px; font-size: 10px; }
.green-mini-kpis strong { display: block; font-size: 22px; margin-top: 5px; }
.green-client-balance { padding: 13px 0 0; display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.green-client-balance strong { font-size: 15px; }
.green-detail-panel .section-title { margin-bottom: 6px; }
.green-detail-panel .section-title h3 { margin: 0; }
.green-detail-panel .section-title button { font-size: 10px; }
.green-related { padding: 12px 0; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 0; border-bottom: 1px solid #edf3f2; background: none; width: 100%; min-width: 0; text-align: left; font-size: 10px; color: #27434f; }
.green-related > span:nth-child(2) { flex: 1; min-width: 0; }
.green-related b { font-weight: 600; overflow-wrap: anywhere; display: block; }
.green-related small { display: block; font-size: 9px; margin-top: 3px; color: #5a717e; }
.green-related > svg { width: 15px; height: 15px; color: #50717c; flex: none; }
.green-file-icon { color: #008a8f; background: #e5faf6; border-radius: 10px; width: 36px; height: 36px; display: grid; place-items: center; flex: none; }
.green-file-icon svg { width: 20px; height: 20px; }
.green-file-icon.pdf { color: #c53d52; background: #ffebee; }
.green-file-icon.image { color: #008b8d; background: #dcf8f3; }
.green-file-icon.xml { color: #7840b0; background: #f3eafa; }
.green-files-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
.green-files-layout > div { min-width: 0; }
.green-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.green-category { padding: 15px 12px; min-width: 0; display: flex; align-items: center; gap: 9px; text-align: left; background: #ffffffeb; border-color: #e3efec; box-shadow: var(--green-shadow); border-radius: 15px; }
.green-category span:last-child { min-width: 0; }
.green-category b { font-size: 10px; display: block; overflow-wrap: anywhere; }
.green-category small { display: block; font-size: 9px; font-weight: 400; margin-top: 4px; }
.green-category.active { background: #e5faf3; border-color: #62cdbb; box-shadow: 0 0 0 1px #62cdbb; }
.green-recent-files { padding: 20px; box-shadow: var(--green-shadow); }
.green-recent-files h2 { font-size: 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.green-recent-files h2 svg { color: var(--teal); width: 21px; }
.green-export-link { display: inline-flex; align-items: center; gap: 7px; min-height: 37px; font-size: 11px; font-weight: 600; }
.green-export-link svg { width: 16px; height: 16px; }
.green-recent-files .green-export-link { margin-top: 18px; }
.green-cash-context { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.green-cash-context .actions button { min-height: 37px; padding: 6px 13px; display: inline-flex; gap: 7px; align-items: center; }
.green-cash-context svg { width: 17px; height: 17px; }
.green-cash-context p { margin: 0; color: var(--muted); font-size: 10px; }
.green-report-controls { display: flex; flex-wrap: wrap; gap: 18px; align-items: end; justify-content: space-between; margin: 0 0 23px; padding: 17px 20px; background: #ffffffb0; border: 1px solid #e1eeeb; border-radius: 14px; }
.green-report-controls .cash-period-form { margin: 0; gap: 10px; }
.green-report-controls .cash-period-form .form-grid { gap: 10px; }
.green-report-controls .cash-period-form label { font-size: 10px; }
.green-report-controls .cash-period-form select, .green-report-controls .cash-period-form input { min-height: 37px; font-size: 11px; padding: 6px 10px; }
.green-report-controls .cash-period-form button { min-height: 37px; white-space: nowrap; font-size: 11px; }
.green-report-controls .actions { gap: 15px; }
.green-charts { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; margin-bottom: 23px; }
.green-charts .card { min-width: 0; border-radius: 17px; padding: 20px; background: #ffffffdf; box-shadow: var(--green-shadow); }
.green-charts h2 { font-size: 14px; line-height: 1.4; margin: 0 0 16px; }
.green-charts .section-title { margin-bottom: 7px; align-items: baseline; }
.green-charts .section-title h2 { margin-bottom: 0; }
.green-chart-empty { min-height: 185px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #5c7a82; }
.green-chart-empty > svg { width: 30px; height: 30px; color: #6ca89f; margin: 0 0 12px; }
.green-chart-empty p { font-size: 11px; margin: 0 0 5px; }
.green-chart-empty small { font-size: 10px; max-width: 290px; }
.green-balance-figure { margin: 18px 0 0; }
.green-balance-chart { width: 100%; height: auto; vertical-align: top; }
.green-balance-chart text { fill: #516b76; font-family: inherit; font-size: 10px; }
.green-outflow-chart { display: flex; gap: 19px; align-items: center; padding-top: 14px; }
.green-donut { width: 145px; aspect-ratio: 1; flex: none; border-radius: 50%; padding: 21px; display: grid; place-items: center; }
.green-donut > div { border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; width: 100%; height: 100%; text-align: center; }
.green-donut strong { font-size: 12px; line-height: 1.4; }
.green-donut small { display: block; font-size: 10px; margin-top: 3px; }
.green-outflow-chart ul { margin: 0; padding: 0; list-style: none; min-width: 0; flex: 1; }
.green-outflow-chart li { display: grid; grid-template-columns: 7px minmax(0, 1fr); gap: 6px; align-items: start; font-size: 9px; padding: 5px 0; line-height: 1.5; }
.green-outflow-chart li b { grid-column: 2; font-size: 10px; font-weight: 650; }
.green-legend-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 4px; }
.green-skip-link { position: fixed; top: -80px; left: 250px; z-index: 200; padding: 12px 20px; background: white; border: 2px solid var(--teal); border-radius: 9px; }
.green-skip-link:focus { top: 12px; }
.green-menu-backdrop, .green-sidebar-close { display: none; }
.green-loading { padding: 30px 0; }
.green-loading p { color: var(--muted); font-size: 13px; }
.green-skeleton { height: 95px; border-radius: 16px; margin-bottom: 20px; background: linear-gradient(95deg, #e7f3ef, #f5faf9, #e7f3ef); background-size: 200% 100%; animation: green-loading 1.3s ease-in-out infinite alternate; }
@keyframes green-loading { to { background-position: 100% 0; } }
.green-shell .footer-note { position: relative; font-size: 10px; color: #566f76; margin-top: 28px; }
@media (min-width: 1750px) {
  .green-shell { --sidebar-width: 248px; }
  .green-shell .main { padding-left: 40px; padding-right: 40px; }
  .green-table { font-size: 13px; }
  .green-table td, .green-table th { padding-left: 16px; padding-right: 16px; }
  .green-client-layout { grid-template-columns: minmax(0, 1fr) 350px; }
  .green-files-layout { grid-template-columns: minmax(0, 1fr) 310px; }
}
@media (max-width: 1350px) {
  .green-shell { --sidebar-width: 215px; }
  .green-shell .main { padding-left: 23px; padding-right: 23px; }
  .green-shell .sidebar nav button { padding-left: 12px; font-size: 12px; gap: 10px; }
  .green-kpi { padding: 18px 14px; gap: 11px; }
  .green-kpi-icon { width: 39px; height: 39px; }
  .green-kpi h2 { font-size: 11px; }
  .green-kpi-value { font-size: 23px; }
  .green-files-layout { grid-template-columns: minmax(0, 1fr) 235px; gap: 15px; }
  .green-categories { gap: 8px; }
  .green-category { padding: 13px 8px; gap: 6px; }
  .green-category .green-file-icon { width: 29px; height: 32px; }
  .green-outflow-chart { flex-direction: column; gap: 10px; align-items: stretch; }
  .green-donut { width: 120px; padding: 17px; align-self: center; }
  .green-outflow-chart li { grid-template-columns: 7px 1fr auto; }
  .green-outflow-chart li b { grid-column: auto; }
}
@media (max-width: 1190px) {
  .green-client-layout { grid-template-columns: minmax(0, 1fr); }
  .green-detail-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 25px; }
  .green-detail-panel .green-client-heading, .green-detail-panel .green-contact-actions { grid-column: 1 / -1; }
  .green-detail-panel .green-client-heading { margin: 0; }
  .green-detail-panel .green-contact-actions { display: flex; margin: 0; }
  .green-detail-panel .green-contact-actions > * { padding-left: 14px; padding-right: 14px; }
  .green-client-layout .green-kpi-value { font-size: 24px; }
  .green-files-layout { grid-template-columns: minmax(0, 1fr); }
  .green-recent-files { display: none; }
  .green-report-controls { gap: 10px; }
  .green-report-controls .cash-period-form { flex: 1; }
  .green-charts { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
  .green-table td, .green-table th { padding-left: 9px; padding-right: 9px; }
  .green-kpis { gap: 11px; }
  .green-kpi { padding: 17px 12px; gap: 8px; }
  .green-kpi-icon { width: 34px; height: 34px; border-radius: 10px; }
  .green-kpi-icon svg { width: 22px; height: 22px; }
  .green-kpi-value { font-size: 22px; }
  .green-row-actions { gap: 3px; }
  .green-icon-button { min-width: 29px; padding: 5px; }
}
@media (max-width: 1000px) {
  .green-shell { --sidebar-width: 190px; }
  .green-shell .sidebar { padding-left: 10px; padding-right: 10px; }
  .green-shell .sidebar > .brand { margin-left: 13px; font-size: 34px; }
  .green-shell .sidebar .tagline { margin-left: 13px; }
  .green-shell .sidebar nav button { font-size: 11px; gap: 8px; }
  .green-shell .main { padding-left: 18px; padding-right: 18px; }
  .green-kpis, .green-client-layout .green-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .green-kpi { padding: 18px; min-height: 105px; gap: 14px; }
  .green-kpi-value { font-size: 26px; }
  .green-kpi h2 { font-size: 12px; }
  .green-kpi-icon { width: 42px; height: 42px; border-radius: 13px; }
  .green-heading { gap: 12px; }
  .green-page-icon { width: 48px; height: 48px; border-radius: 14px; }
  .green-page-icon svg { width: 25px; height: 25px; }
  .green-page-header h1 { font-size: 27px; }
  .green-page-header p { font-size: 11px; }
  .green-page-header .actions button { padding: 9px 13px; min-height: 43px; font-size: 12px; }
  .green-toolbar { padding: 14px; }
  .green-charts { grid-template-columns: minmax(0, 1fr); }
  .green-outflow-chart { flex-direction: row; align-items: center; gap: 25px; }
  .green-outflow-chart li { font-size: 11px; }
  .green-outflow-chart li b { font-size: 11px; }
  .green-report-controls .cash-period-form { align-items: end; }
  .green-report-controls .cash-period-form .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .green-shell { display: block; }
  .green-shell .main { padding-left: 24px; padding-right: 24px; }
  .green-shell .sidebar { position: fixed; inset: 0 auto 0 0; height: 100dvh; width: 285px; padding: 28px 18px; transform: translateX(-105%); visibility: hidden; transition: transform .18s, visibility .18s; background: white; z-index: 60; }
  .green-shell.green-menu-open .sidebar { transform: translateX(0); visibility: visible; }
  .green-shell .sidebar nav button { min-height: 48px; font-size: 13px; padding: 11px 14px; gap: 13px; }
  .green-shell .topbar .desktop-crumb { display: none; }
  .green-shell .mobile-brand { display: flex; gap: 12px; align-items: center; font-size: 28px; }
  .green-menu-open .green-menu-backdrop { display: block; position: fixed; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: #143e465c; z-index: 50; backdrop-filter: blur(2px); }
  .green-sidebar-close { display: grid; place-items: center; position: absolute; top: 18px; right: 14px; width: 34px; min-height: 34px; padding: 6px; border: 0; background: #edf8f5; }
  .green-sidebar-close svg { width: 18px; height: 18px; }
}
@media (max-width: 760px) {
  .green-shell { display: block; }
  .green-shell .main { padding: 0 16px 22px; min-height: 100dvh; }
  .green-shell .main::before { height: 130px; background-size: auto 160px; opacity: .38; }
  .green-shell .main::after { height: 140px; opacity: .3; }
  .green-shell .sidebar { position: fixed; inset: 0 auto 0 0; height: 100dvh; bottom: 0; width: min(295px, 83vw); padding: 27px 18px 22px; transform: translateX(-105%); display: flex; visibility: hidden; transition: transform .18s ease, visibility .18s; background: #fff; border-right: 1px solid var(--line); border-top: 0; z-index: 60; }
  .green-shell .sidebar > .brand, .green-shell .sidebar > .tagline, .green-shell .side-bottom { display: block; }
  .green-shell .sidebar > .brand { margin-left: 15px; font-size: 38px; }
  .green-shell .sidebar .tagline { margin-left: 15px; margin-bottom: 28px; }
  .green-shell .sidebar nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .green-shell .sidebar nav button { flex-direction: row; justify-content: flex-start; gap: 13px; min-height: 48px; font-size: 13px; padding: 11px 14px; white-space: normal; line-height: 1.4; }
  .green-shell .side-bottom { margin-top: auto; padding-top: 22px; }
  .green-shell .company-chip { padding-top: 17px; margin-top: 15px; }
  .green-shell .topbar { height: 68px; margin-bottom: 21px; gap: 9px; }
  .green-shell .topbar .actions { gap: 6px; }
  .green-shell .topbar .actions > button { min-height: 36px; padding: 7px; }
  .green-shell .topbar .actions > button svg { width: 18px; height: 18px; }
  .green-shell .topbar .pill { font-size: 9px; padding: 3px 5px; }
  .green-shell .topbar select { max-width: 88px; padding: 5px; font-size: 11px; }
  .green-shell .desktop-crumb { display: none; }
  .green-shell .mobile-brand { display: flex; align-items: center; gap: 10px; font-size: 26px; letter-spacing: -1px; }
  .green-shell .mobile-brand .green-icon-button { width: 35px; height: 36px; }
  .green-shell .green-menu-open .sidebar { visibility: visible; transform: translateX(0); }
  .green-shell.green-menu-open .sidebar { visibility: visible; transform: translateX(0); }
  .green-menu-open .green-menu-backdrop { display: block; position: fixed; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: #143e465c; z-index: 50; backdrop-filter: blur(2px); }
  .green-sidebar-close { display: grid; place-items: center; position: absolute; top: 18px; right: 14px; width: 34px; min-height: 34px; padding: 6px; border: 0; background: #edf8f5; }
  .green-sidebar-close svg { width: 18px; height: 18px; }
  .green-page-header { display: flex; align-items: stretch; flex-direction: column; gap: 18px; margin-bottom: 20px; }
  .green-page-header .actions { width: auto; justify-content: flex-start; }
  .green-page-header .actions button { padding: 11px 18px; min-height: 45px; }
  .green-page-header h1 { font-size: 28px; margin-bottom: 5px; }
  .green-page-header p { font-size: 12px; }
  .green-heading { align-items: flex-start; gap: 12px; }
  .green-page-icon { width: 49px; height: 49px; }
  .green-kpis, .green-client-layout .green-kpis { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 22px; }
  .green-kpi, .green-client-layout .green-kpi { display: flex; align-items: center; min-height: 93px; padding: 17px 18px; gap: 15px; border-radius: 15px; }
  .green-kpi h2, .green-client-layout .green-kpi h2 { font-size: 12px; margin-bottom: 5px; }
  .green-kpi-value, .green-client-layout .green-kpi-value { font-size: 28px; }
  .green-kpi-icon, .green-client-layout .green-kpi-icon { width: 45px; height: 45px; border-radius: 13px; }
  .green-kpi-icon svg { width: 25px; height: 25px; }
  .green-kpi p { font-size: 10px; }
  .green-tabs { gap: 7px; margin-bottom: 16px; max-width: 100%; }
  .green-tabs button { min-height: 45px; padding: 10px 11px; font-size: 12px; }
  .green-toolbar { padding: 14px; flex-wrap: wrap; gap: 11px; }
  .green-search { width: 100%; }
  .green-search input { height: 45px; min-height: 45px; font-size: 13px; }
  .green-toolbar .actions { flex: 1; flex-wrap: nowrap; }
  .green-toolbar .green-control { flex: 1; }
  .green-toolbar .green-control select { max-width: none; width: 100%; min-height: 44px; }
  .green-filter-toggle { min-height: 44px; }
  .green-extra-filters { padding: 0 14px 15px; gap: 10px; }
  .green-extra-filters > label { max-width: none; }
  .green-table-wrap { overflow: visible; width: 100%; margin: 0; }
  .green-table, .green-table tbody { display: block; width: 100%; }
  .green-table thead { display: none; }
  .green-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; padding: 18px 16px; border-top: 1px solid #e2eeeb; }
  .green-table td, .green-table td:not(.num), .green-client-layout .green-table td { display: block; min-width: 0; max-width: none; padding: 0; border: 0; font-size: 12px; text-align: left; background: none; white-space: normal; overflow-wrap: anywhere; }
  .green-table td::before { content: attr(data-label); display: block; font-size: 10px; color: #5c727d; margin-bottom: 4px; font-weight: 400; }
  .green-table .green-main-cell, .green-table .green-actions-cell { grid-column: 1 / -1; }
  .green-table .green-main-cell::before, .green-table .green-actions-cell::before { display: none; }
  .green-table .green-main-cell { padding-bottom: 9px !important; border-bottom: 1px solid #eaf1ef; }
  .green-table .green-actions-cell { padding-top: 4px; }
  .green-table td.green-description { min-width: 0; }
  .green-table .doc-link { font-size: 12px; min-height: 30px; max-width: none; }
  .green-table .doc-number { font-size: 14px; }
  .green-table .subtext { font-size: 10px; }
  .green-row-actions { gap: 9px; }
  .green-icon-button { min-width: 43px; min-height: 43px; padding: 10px; border-radius: 11px; }
  .green-icon-button svg { width: 20px; height: 20px; }
  .pill { font-size: 10px; white-space: normal; }
  .green-pagination { flex-wrap: wrap; padding: 14px; gap: 14px; }
  .green-pagination label { font-size: 11px; }
  .green-pagination select { min-height: 41px; }
  .green-pages { width: 100%; justify-content: flex-end; gap: 6px; }
  .green-pages button { min-width: 40px; min-height: 42px; }
  .green-selected-row { background: #eaf9f5; box-shadow: inset 3px 0 #11ad98; }
  .green-selected-row td:first-child { box-shadow: none; }
  .green-client-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .green-detail-panel { display: block; padding: 20px; scroll-margin-top: 16px; }
  .green-client-heading { margin-bottom: 16px !important; }
  .green-client-heading h2 { font-size: 18px; }
  .green-detail-panel .green-contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
  .green-contact-actions a, .green-contact-actions button { min-height: 43px; font-size: 12px; }
  .green-contact-list { font-size: 12px; }
  .green-contact-list > div { grid-template-columns: 80px minmax(0, 1fr); }
  .green-contact { font-size: 11px; }
  .green-files-layout { display: block; }
  .green-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 17px; }
  .green-category { min-height: 77px; padding: 13px; gap: 8px; }
  .green-category b { font-size: 11px; }
  .green-category small { font-size: 10px; }
  .green-category .green-file-icon { width: 33px; height: 36px; }
  .green-cash-context { gap: 11px; }
  .green-cash-context p { flex-basis: 100%; font-size: 10px; order: 3; }
  .green-report-controls { padding: 15px; display: block; }
  .green-report-controls .cash-period-form { display: block; }
  .green-report-controls .cash-period-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .green-report-controls .cash-period-form .form-grid label:first-child { grid-column: 1 / -1; }
  .green-report-controls .cash-period-form input, .green-report-controls .cash-period-form select { min-height: 43px; font-size: 13px; }
  .green-report-controls .cash-period-form button { margin-top: 13px; min-height: 43px; font-size: 12px; }
  .green-report-controls .actions { margin-top: 14px; }
  .green-charts { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .green-charts .card { padding: 17px 14px; }
  .green-charts h2 { font-size: 13px; }
  .green-charts .section-title { flex-wrap: wrap; gap: 5px; }
  .green-balance-chart { min-height: 160px; }
  .green-outflow-chart { flex-direction: column; gap: 14px; }
  .green-outflow-chart ul { width: 100%; }
  .green-donut { width: 145px; padding: 21px; }
  .green-donut strong { font-size: 13px; }
  .green-outflow-chart li { font-size: 11px; }
  .green-skip-link { left: 10px; }
  .green-shell .footer-note { font-size: 10px; line-height: 1.7; margin-bottom: 8px; }
  .green-shell .activity-card { display: block; }
  .green-shell .card.activity-card { margin-top: 0; }
  .green-shell .metrics { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
