:is(.app-shell,.platform-shell){--paper:#f5f7f6;--surface-soft:#f7f9f7;--ink:#20372b;--muted:#627168;--line:#e3e9e5;--line-strong:#cfd9d2;--nav:#143628;--nav-active:#2a493a;--nav-text:#bed1c4;--nav-label:#a9c2b1;--success-bg:#edf5ef;--success:#186642;--warning-bg:#faf3e3;--warning:#835e16;font-size:14px}.app-shell{grid-template-columns:232px minmax(0,1fr);background:var(--paper)}.sidebar{padding:24px 16px;gap:22px}.brand{gap:10px;padding:0 12px}.brand .app-brand-wordmark{font-size:1.14rem;font-weight:600;letter-spacing:-.035em}.brand .brand-mark{width:32px;height:32px}.workspace-farm{display:flex;gap:10px;align-items:center;padding:13px 12px;background:rgb(255 255 255/.065);border-radius:11px;color:#e7f0ea}.workspace-farm svg{width:19px;height:19px;flex:none;color:#bfd8c7}.workspace-farm strong{display:block;font-size:.83rem;font-weight:500;overflow-wrap:anywhere}.workspace-farm small{display:block;font-size:.7rem;color:var(--nav-text);margin-top:4px}.sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgb(255 255 255/.18) transparent}.sidebar>nav{gap:18px}.nav-section,.sidebar>nav{display:flex;flex-direction:column}.nav-section{gap:2px}.nav-label{margin:0;padding:0 12px 6px;font-size:.65rem;font-weight:600;line-height:1.2;letter-spacing:.09em;text-transform:uppercase;color:var(--nav-label)}.nav-link{position:relative;display:flex;align-items:center;gap:10px;min-height:38px;padding:0 12px;border-radius:8px;font-size:.82rem;font-weight:500;line-height:1.25;color:var(--nav-text);box-shadow:none}.nav-link svg{width:17px;height:17px;flex:none}.nav-link:hover{background:rgb(255 255 255/.06);color:#fff}.nav-link.active{background:var(--nav-active);color:#fff;box-shadow:none}.nav-link.active:before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--brass)}.nav-link:focus-visible{outline:2px solid var(--green-border);outline-offset:-2px}.sidebar-foot{display:flex;align-items:center;gap:10px;padding:16px 12px 0}.sidebar-foot strong{display:block;color:#e7f0ea;font-weight:500;font-size:.78rem;overflow-wrap:anywhere}.sidebar-foot small{display:block;font-size:.7rem;margin-top:4px}.sidebar-avatar{width:32px;height:32px;flex:none;background:rgb(255 255 255/.1);border-radius:50%;display:grid;place-items:center;color:#e7f0ea}.topbar{min-height:68px;height:auto;padding:17px 30px;background:var(--surface)}.topbar-right{gap:12px;font-size:.8rem}.topbar-right .button{font-size:.76rem}.workspace-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:.76rem}.workspace-breadcrumb svg{width:13px;height:13px;flex:none}.workspace-breadcrumb [aria-current]{color:var(--ink);font-weight:500}.workspace-breadcrumb a:hover{color:var(--green)}:is(.app-shell,.platform-shell) .kpi-value,:is(.app-shell,.platform-shell) h1,:is(.app-shell,.platform-shell) h2,:is(.app-shell,.platform-shell) h3{font-family:var(--font-inter),Arial,sans-serif}:is(.app-shell,.platform-shell) h1{font-size:1.75rem;font-weight:600;letter-spacing:-.04em}:is(.app-shell,.platform-shell) h2{font-size:.95rem;font-weight:600;letter-spacing:-.02em}.page{padding:30px 32px 64px}.page-heading{align-items:center;margin-bottom:25px}.page-heading-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px}.app-shell .eyebrow{font-size:.71rem;font-weight:500;text-transform:none;letter-spacing:0;color:var(--muted);margin-bottom:9px}.app-shell .subhead{font-size:.84rem;line-height:1.65;margin-top:8px;max-width:760px}:is(.app-shell,.platform-shell) .button{font-size:.8rem;font-weight:500;padding:10px 13px;border-radius:8px;min-height:39px}:is(.app-shell,.platform-shell) .button.secondary{background:var(--surface)}.card{box-shadow:none}.app-shell .card-head{padding:18px 21px;flex-wrap:wrap}.app-shell .card-body{padding:21px}.card-head h2{display:flex;align-items:center;gap:8px}.card-head h2 svg{flex:none}.app-shell .card+.card{margin-top:20px}.grid>.card+.card,.record-aside>.card+.card,.record-main>.card+.card,.record-metrics>.card+.card,.section-grid>.card+.card{margin-top:0}.table-wrap.card{border-radius:14px}.app-shell .table-wrap{position:relative}:is(.app-shell,.platform-shell) table{font-size:.82rem}:is(.app-shell,.platform-shell) th{padding:13px 17px;font-weight:500;font-size:.7rem;letter-spacing:0;background:var(--surface-soft)}:is(.app-shell,.platform-shell) td{padding:18px 17px;vertical-align:middle}:is(.app-shell,.platform-shell) td strong{font-weight:600}:is(.app-shell,.platform-shell) tbody tr:hover{background:#f5f9f6}.table-link{font-weight:600}.cell-secondary{display:block;font-size:.72rem;font-weight:400;color:var(--muted);margin-top:6px;line-height:1.5;white-space:normal;max-width:340px;overflow-wrap:anywhere}.app-shell .record-cell{display:block}.numeric{text-align:right;font-variant-numeric:tabular-nums}.numeric .cell-secondary{margin-left:auto}.actions-cell{text-align:right;white-space:nowrap}.description-cell{min-width:180px;max-width:360px;white-space:normal;line-height:1.6;overflow-wrap:anywhere}.row-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end}.record-actions{gap:3px}.icon-action{width:34px;height:34px;border:0;border-radius:7px;color:var(--muted);background:transparent}.icon-action:hover{background:var(--green-light);color:var(--green)}.icon-action.destructive{color:var(--muted)}.icon-action.destructive:hover{background:var(--danger-bg);color:var(--danger)}.app-shell .badge{border-radius:6px;padding:5px 8px;font-size:.68rem;font-weight:500;line-height:1.4}.table-toolbar{justify-content:space-between;gap:12px;margin-bottom:16px}.table-toolbar,.table-toolbar form{display:flex;align-items:flex-end;flex-wrap:wrap}.table-toolbar form{gap:10px}.table-filter{display:flex;flex-direction:column;gap:7px;font-size:.72rem;color:var(--muted);font-weight:500}.table-filter .search-input{min-width:210px;max-width:280px;height:40px}.table-filter select.search-input{min-width:160px}.table-filter-note{color:var(--muted);font-size:.74rem}.app-shell .pagination{background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:13px 17px;margin-top:12px}.pagination-summary{font-size:.74rem}.pagination-control,.pagination-number{border:0;border-radius:7px;font-weight:500;font-size:.75rem}.pagination-number.current{color:var(--green);background:var(--green-light)}.pagination-control.disabled{background:transparent}.app-shell .field{font-size:.78rem;font-weight:500;color:var(--ink);gap:8px}.field small{font-size:.72rem;font-weight:400;color:var(--muted);line-height:1.6}.app-shell .field input,.app-shell .field select,.app-shell .field textarea,.app-shell .search-input{background:var(--surface);border-color:var(--line-strong);font-size:.84rem;min-width:0}.app-shell .field textarea{height:auto;min-height:105px;line-height:1.6}.app-shell .form-card{padding:26px;max-width:1000px}.app-shell .card .form-card{max-width:none}.app-shell .form-grid{gap:22px}.app-shell .notice{line-height:1.6;margin-bottom:18px}.empty{display:grid;justify-items:center;gap:12px;padding:45px 24px;font-size:.84rem;line-height:1.6}.empty svg{margin:0;width:28px;height:28px}.empty p{margin:0;max-width:440px}.app-shell .kpi{padding:20px;min-height:126px}.app-shell .kpi-value{font-weight:600;margin-top:12px;letter-spacing:-.035em}.kpi-label{font-size:.78rem}.kpi-label svg{color:var(--green);width:17px;height:17px}.kpi-note{font-size:.72rem;line-height:1.5}.app-shell .quick-link{font-size:.79rem;font-weight:500;padding:14px}.record-back{display:inline-flex;align-items:center;gap:7px;color:var(--green);font-size:.76rem;font-weight:500;margin-bottom:18px}.record-back svg{width:15px;height:15px}.record-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.record-metric{padding:20px;min-width:0}.record-metric-label{color:var(--muted);font-size:.75rem}.record-metric-value{font-size:clamp(1rem,2.2vw,1.55rem);font-weight:600;letter-spacing:-.035em;font-variant-numeric:tabular-nums;margin:11px 0;overflow-wrap:anywhere}.record-metric-note{color:var(--muted);font-size:.72rem;line-height:1.5}.record-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:20px;align-items:start}.record-aside,.record-main{display:flex;flex-direction:column;gap:20px;min-width:0}.record-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 22px;margin:0}.record-field{min-width:0}.record-field.full{grid-column:1/-1}.record-field dt{font-size:.72rem;color:var(--muted);margin-bottom:7px}.record-field dd{margin:0;font-size:.85rem;font-weight:500;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}.record-tag{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;background:var(--green-light);color:var(--green);border-radius:5px;font-size:.72rem;margin:2px 6px 2px 0}.record-note{padding-top:20px;border-top:1px solid var(--line);margin-top:24px}.record-note h3{margin:0 0 7px;font-size:.79rem;font-weight:500}.record-note p{margin:0;font-size:.81rem;line-height:1.7;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.record-person{display:flex;align-items:center;gap:12px}.record-person-icon{width:38px;height:38px;display:grid;place-items:center;background:var(--green-light);color:var(--green);border-radius:10px;flex:none}.record-person-icon svg{width:18px;height:18px}.record-person strong{font-weight:500;font-size:.86rem;overflow-wrap:anywhere}.record-related-link{display:block;border-top:1px solid var(--line);padding-top:17px;margin-top:20px;font-size:.77rem}.record-event{display:flex;gap:10px;align-items:flex-start}.record-event+.record-event{margin-top:20px}.record-event>svg{width:17px;height:17px;color:var(--green);flex:none;margin-top:3px}.record-event strong{font-size:.8rem;font-weight:500}.record-event p{line-height:1.65;margin:5px 0 0}.record-event p,.record-removal p{font-size:.73rem;color:var(--muted)}.record-removal p{margin:10px 0 0;line-height:1.6}.record-editor{margin-top:24px;scroll-margin-top:24px}.detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.detail-fields>.stat-row{display:flex;flex-direction:column;gap:7px;border:0;padding:0;min-width:0}.detail-fields>.stat-row>span{font-size:.72rem;color:var(--muted)}.detail-fields>.stat-row>strong{font-weight:500;font-size:.85rem;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.detail-fields>.full,.detail-fields>.notice{grid-column:1/-1}.settings-inline-form{display:flex;align-items:center;gap:9px;flex:1;min-width:0}.settings-inline-form input:not([type=hidden]){width:100%;min-width:0;flex:1;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);padding:10px 11px;font-size:.84rem;color:var(--ink)}.settings-inline-form input:focus-visible{outline:2px solid var(--green);outline-offset:2px}.stat-row{align-items:flex-start;font-size:.81rem}.stat-row>strong{overflow-wrap:anywhere;text-align:right;font-weight:500;min-width:0}.detail-fields>.stat-row>strong{text-align:left}.platform-shell .platform-title h1{font-size:1.85rem}.platform-shell .platform-table-wrap{border-color:var(--line)}.platform-shell .platform-stats strong{font-family:var(--font-inter),Arial,sans-serif;font-weight:600}.login-shell{--nav:#143628}.login-form h2{font-family:var(--font-inter),Arial,sans-serif;font-weight:600;letter-spacing:-.035em}.login-form .button{font-weight:500}@media(max-width:1180px){.record-layout{grid-template-columns:minmax(0,1fr)}.record-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:960px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.page{padding:26px 24px 60px}.topbar{padding:16px 24px}.brand .app-brand-wordmark{font-size:1rem}.sidebar{padding:24px 12px}}@media(max-width:760px){.app-shell{display:block}.topbar{padding:14px 18px;min-height:62px;flex-wrap:wrap;gap:10px}.page{padding:24px 18px 60px}.mobile-nav{padding:10px}.mobile-nav a{display:flex;align-items:center;gap:7px;border-radius:7px}.mobile-nav svg{width:16px;height:16px}.mobile-nav-link.active{color:#fff;background:var(--nav-active)}.topbar-user{display:none}.topbar-right{gap:8px}.topbar-right .avatar{display:none}.workspace-breadcrumb{font-size:.72rem}.page-heading{align-items:stretch}.page-heading-actions{justify-content:flex-start}.record-metrics{gap:10px}.record-metric{padding:16px}.record-metric-value{font-size:1.15rem}}@media(max-width:540px){.detail-fields,.record-aside,.record-fields,.record-metrics{grid-template-columns:1fr}.record-metric-value{font-size:1.4rem}.record-field.full{grid-column:auto}.page-heading-actions,.table-filter,.table-toolbar,.table-toolbar form{width:100%}.table-filter .search-input{width:100%;max-width:none}.record-page .card-head .small{width:100%}.form-actions{flex-wrap:wrap}}@media(pointer:coarse){.icon-action,.pagination-control,.pagination-number{min-width:44px;min-height:44px}.app-shell .button{min-height:44px}.app-shell .field input,.app-shell .field select,.app-shell .field textarea,.app-shell .search-input{font-size:16px}}@media(prefers-reduced-motion:no-preference){.button,.card,.icon-action,.nav-link{transition:background-color .15s ease,border-color .15s ease}}.form-section-title{font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:26px 0 14px;padding-top:18px;border-top:1px solid var(--line)}.form-card>.form-grid:first-of-type>.form-section-title:first-of-type,.form-card>.form-section-title:first-of-type,.form-section-title:first-child{margin-top:0;padding-top:0;border-top:0}.link-fields{border:0;margin:0;padding:0;min-width:0}.link-fields legend{font-weight:700;padding:0;margin-bottom:4px}.link-fields .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px}.animal-details{border:1px solid var(--line);border-radius:8px;padding:12px 14px}.animal-details summary{cursor:pointer;font-weight:700}.animal-details[open] summary{margin-bottom:12px}.link-tags{display:inline-flex;flex-wrap:wrap}.table-filter .date-filter{min-width:150px}.filter-summary{display:flex;gap:22px;flex-wrap:wrap;align-items:baseline;padding:12px 16px;border-bottom:1px solid var(--line);font-size:.8rem;color:var(--muted)}.filter-summary strong{color:var(--ink);font-size:.95rem;margin-left:6px}.category-account{display:flex;gap:6px;align-items:center}.category-account select{height:34px;border:1px solid var(--line-strong);border-radius:6px;padding:4px 8px;background:var(--surface);color:var(--ink);font-size:.8rem}@media(max-width:760px){.link-fields .form-grid{grid-template-columns:1fr}}.negative{color:var(--danger)}tr.total-row td{border-top:2px solid var(--line-strong);background:var(--surface-soft)}.attachment-input{gap:6px}.attachment-drop{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;padding:10px 14px;border:1px dashed var(--line-strong);border-radius:8px;background:var(--surface-soft);color:var(--ink);font-weight:600;cursor:pointer}.attachment-drop svg{width:18px;height:18px;color:var(--green)}.attachment-input:focus-within .attachment-drop{border-color:var(--green);box-shadow:0 0 0 3px var(--focus-ring)}.attachment-picked{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:8px}.attachment-picked li{display:flex;align-items:center;gap:10px;padding:6px 8px;border:1px solid var(--line);border-radius:8px}.attachment-picked img{object-fit:cover}.attachment-icon,.attachment-picked img{width:44px;height:44px;border-radius:6px}.attachment-icon{display:inline-flex;align-items:center;justify-content:center;background:var(--surface-soft);color:var(--muted)}.attachment-icon.large{width:100%;height:100%}.attachment-icon.large svg{width:34px;height:34px}.attachment-name{display:flex;flex-direction:column;min-width:0;flex:1;font-size:.82rem;overflow-wrap:anywhere}.attachment-grid{list-style:none;margin:0 0 16px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}.attachment-tile{border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;background:var(--surface)}.attachment-thumb{display:block;aspect-ratio:4/3;background:var(--surface-soft)}.attachment-thumb img{width:100%;height:100%;object-fit:cover;display:block}.attachment-meta{padding:8px 10px 0;display:flex;flex-direction:column;gap:2px;min-width:0}.attachment-meta .attachment-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attachment-tile .row-actions{padding:4px 6px 6px;justify-content:flex-end}.attachment-add{border-top:1px solid var(--line);padding-top:14px}.card-head h2 svg{width:17px;height:17px;vertical-align:-3px;margin-right:6px;color:var(--muted)}.payment-proof{display:inline-flex;gap:4px;margin-left:6px}.attachment-count{display:inline-flex;align-items:center;gap:2px;margin-left:8px;font-size:.72rem;color:var(--muted)}.attachment-count svg{width:13px;height:13px}.statement-page .toolbar{align-items:flex-end;gap:12px}.toolbar:has(>.date-range){align-items:flex-end}.statement-period{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}.statement-quick{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.statement-actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}.statement-sheet{padding:26px}.statement-head{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid var(--line)}.statement-head h1{margin:4px 0 6px;font-size:1.5rem}.statement-party{display:flex;flex-direction:column;gap:3px;text-align:right;font-size:.84rem;color:var(--muted)}.statement-party strong{color:var(--ink);font-size:1rem}.statement-ageing,.statement-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:18px 0}.statement-ageing div,.statement-summary div{border:1px solid var(--line);border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}.statement-ageing span,.statement-summary span{font-size:.74rem;color:var(--muted)}.statement-ageing strong,.statement-summary strong{font-size:1.05rem}.statement-due{background:var(--green-light);border-color:var(--green-line)!important}.statement-ageing .overdue{background:var(--warning-bg)}.statement-subhead{font-size:1rem;margin:26px 0 0}.statement-opening td{color:var(--muted);font-style:italic}.statement-foot{margin-top:22px;padding-top:12px;border-top:1px solid var(--line)}.balance-owing{color:var(--warning);font-weight:700}@media(max-width:640px){.statement-party{text-align:left}.statement-actions{margin-left:0}}@media print{.mobile-nav,.no-print,.sidebar,.topbar{display:none!important}.app-shell,.main,.page{display:block!important;padding:0!important;margin:0!important;background:#fff!important}.statement-sheet{border:0!important;box-shadow:none!important;padding:0!important}.statement-sheet a{color:inherit;text-decoration:none}.table-wrap{overflow:visible!important}tr{break-inside:avoid}}.withdrawal-badges{display:inline-flex;flex-wrap:wrap;gap:4px;margin-left:6px;vertical-align:middle}.withdrawal-badges .badge{white-space:nowrap}.withdrawal-confirm span:first-child{display:flex;gap:8px;align-items:flex-start;font-weight:600}.withdrawal-confirm input{width:auto;height:auto;margin-top:3px}.withdrawal-notice{border-left:4px solid var(--danger)}.field-label{display:inline}.field:has(:required)>.field-label:after{content:" *"/"";color:var(--danger);font-weight:700}.form-card:has(:required) .form-actions:before,.record-editor form:has(:required) .form-actions:before{content:"* Required";color:var(--muted);font-size:.74rem;margin-right:auto;align-self:center}.chip{border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);border-radius:999px;padding:3px 10px;font-size:.74rem;cursor:pointer}.chip:focus-visible,.chip:hover{border-color:var(--green);color:var(--green)}.notice.error,.notice[role=alert]{background:var(--danger-bg);border-color:var(--danger-line);color:var(--danger)}.form-error{margin-bottom:16px}.sticky-actions{position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--line);padding:0 20px 16px;z-index:2}.sticky-actions .form-actions{margin-top:0}@media(max-width:540px){.hide-narrow{display:none}}.button:disabled{opacity:.65;cursor:progress}.workspace-error{padding:40px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}.workspace-error .toolbar{justify-content:center;margin-top:8px}.payment-form:has(select[name=partnerId] option[value=""]:checked) .partner-treatment{display:none}.date-field{position:relative}.date-value{position:absolute;left:12px;bottom:0;width:1px;height:1px;opacity:0;pointer-events:none}.date-trigger{display:flex;align-items:center;gap:8px;width:100%;height:42px;padding:0 12px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;font-size:.86rem;font-weight:400;text-align:left;cursor:pointer}.date-trigger svg{width:17px;height:17px;color:var(--muted);flex:none}.date-trigger:hover{border-color:var(--green-border,var(--line-strong))}.date-trigger:focus-visible,.date-trigger[data-state=open]{border-color:var(--green);box-shadow:0 0 0 3px var(--focus-ring);outline:none}.date-trigger:disabled{background:var(--surface-soft);color:var(--muted);cursor:not-allowed}.date-trigger.compact{height:40px;min-width:170px}.range-trigger{min-width:240px;height:auto;min-height:40px;padding:5px 10px}.range-trigger>span{display:flex;flex-direction:column;line-height:1.25;flex:1;min-width:0}.range-trigger strong{font-size:.82rem}.range-trigger small{font-size:.72rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.date-popover{z-index:60;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 44px rgba(16,24,40,.18);padding:12px;max-width:min(calc(100vw - 24px),var(--radix-popover-content-available-width,100vw));max-height:var(--radix-popover-content-available-height,calc(100vh - 24px));overflow:auto}.date-popover table{width:auto;border-collapse:collapse;margin:0}.date-popover td,.date-popover th{padding:0;border:0;background:none;height:auto;text-align:center;font-size:inherit;text-transform:none;letter-spacing:normal;white-space:nowrap}.date-popover tr{border:0;background:none}.date-popover tr:hover td{background:none}.date-popover .rdp-root{--rdp-accent-color:var(--green);--rdp-accent-background-color:var(--green-light);--rdp-day-height:36px;--rdp-day-width:36px;--rdp-day_button-height:34px;--rdp-day_button-width:34px;--rdp-day_button-border-radius:8px;--rdp-months-gap:1.25rem;--rdp-nav-height:2.25rem;--rdp-nav_button-height:2rem;--rdp-nav_button-width:2rem;font-size:.84rem}.date-popover .rdp-dropdown{font:inherit}.date-popover .rdp-caption_label{font-size:.86rem}.date-popover .rdp-weekday{font-size:.72rem;color:var(--muted);font-weight:600}.date-popover-foot{display:flex;gap:6px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:8px;padding-top:10px}.range-layout{display:flex;gap:14px}.range-presets{list-style:none;margin:0;padding:0 12px 0 0;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:2px;min-width:150px}.range-presets button{width:100%;text-align:left;border:0;background:none;padding:7px 10px;border-radius:6px;color:var(--ink);font:inherit;font-size:.82rem;cursor:pointer}.range-presets button:hover{background:var(--surface-soft)}.range-presets button.active{background:var(--green-light);color:var(--green);font-weight:700}.range-foot{justify-content:space-between}.range-actions{display:flex;gap:8px}.chip svg{width:12px;height:12px;vertical-align:-2px}.chip:disabled{opacity:.5;cursor:not-allowed}@media(max-width:640px){.range-layout{flex-direction:column}.range-presets{flex-direction:row;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--line);padding:0 0 10px}.range-presets button{width:auto;border:1px solid var(--line);border-radius:999px;padding:5px 10px}.range-trigger{min-width:0;width:100%}}.sale-product{border:0;padding:0;margin:0}.sale-product legend{margin-bottom:7px}.sale-product-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:center}.sale-product-row .field select{font-weight:600}.sale-product-hint{margin:0}.product-kinds,.sale-stage{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-kinds legend,.sale-stage legend{margin-bottom:7px}.choice-card{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);cursor:pointer;font-weight:400}.choice-card input{width:16px;height:16px;margin:2px 0 0;flex:none;accent-color:var(--green)}.choice-card span{display:flex;flex-direction:column;gap:2px}.choice-card strong{font-size:.86rem}.choice-card small{color:var(--muted);font-size:.76rem;line-height:1.4}.choice-card.active{border-color:var(--green);background:var(--green-light);box-shadow:inset 0 0 0 1px var(--green)}.choice-card:has(input:focus-visible){outline:2px solid var(--green);outline-offset:2px}.animal-picker-head{display:flex;align-items:center;gap:12px;justify-content:space-between}.animal-picker-head .search-input{flex:1;max-width:320px}.animal-choice .badge{margin-left:4px}.sale-total{justify-content:flex-end}.sale-total strong{font-size:1.35rem}.product-dialog{width:min(560px,calc(100vw - 32px))}.product-fields{display:flex;flex-direction:column;gap:16px;margin-top:18px}@media(max-width:640px){.product-kinds,.sale-product-row,.sale-stage{grid-template-columns:1fr}.animal-picker-head .search-input{max-width:none}}.animal-choice:has(.animal-choice-text){align-items:flex-start;padding:6px 4px;border-radius:7px}.animal-choice:has(input:checked){background:var(--green-light)}.animal-choice-text{display:flex;flex-direction:column;gap:1px;min-width:0}.animal-choice-text strong{font-weight:600;font-size:.84rem;overflow-wrap:anywhere}.animal-choice-text small{color:var(--muted);font-size:.74rem}.animal-choice-text .badge{margin:3px 0 0;align-self:flex-start}.animal-choice:has(.animal-choice-text) input{margin-top:2px}.help-trigger{min-height:36px;padding:6px 12px}.help-overlay{position:fixed;inset:0;background:rgba(10,31,23,.28);z-index:1000}.help-panel{position:fixed;top:0;right:0;bottom:0;width:min(440px,100vw);background:var(--surface);border-left:1px solid var(--line);box-shadow:-18px 0 50px rgba(16,24,40,.16);z-index:1001;display:flex;flex-direction:column;overflow:hidden}.help-panel-head{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}.help-panel-head h2{margin:0;font-size:1.1rem;flex:1}.help-panel .help-browser{padding:16px 18px 28px;overflow:auto;flex:1}.help-browser{display:flex;flex-direction:column;gap:16px}.help-browser h4{margin:4px 0 8px;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.help-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line-strong);border-radius:10px;padding:0 6px 0 12px;background:var(--surface)}.help-search:focus-within{border-color:var(--green);box-shadow:0 0 0 3px var(--focus-ring)}.help-search>svg{width:18px;height:18px;color:var(--muted);flex:none}.help-search input{flex:1;border:0;outline:0;height:44px;font:inherit;font-size:.95rem;background:transparent;min-width:0}.help-examples{display:flex;flex-wrap:wrap;gap:6px}.help-results{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.help-result{display:flex;gap:10px;align-items:flex-start;width:100%;text-align:left;border:1px solid transparent;border-radius:10px;padding:10px;background:none;font:inherit;color:var(--ink);cursor:pointer}.help-result:focus-visible,.help-result:hover{background:var(--green-light);border-color:var(--green-line);outline:0}.help-result svg{width:17px;height:17px;flex:none;margin-top:2px;color:var(--green)}.help-result span{display:flex;flex-direction:column;gap:2px;min-width:0}.help-result strong{font-size:.9rem}.help-result small{color:var(--muted);font-size:.8rem;line-height:1.45}.help-empty{padding:12px;border:1px dashed var(--line-strong);border-radius:10px}.help-empty p{margin:0 0 4px}.help-back{align-self:flex-start;padding-left:0}.help-article h3{margin:4px 0 6px;font-size:1.2rem}.help-article>.muted{margin:0 0 14px;line-height:1.55}.help-steps{margin:0 0 16px;padding:0;list-style:none;counter-reset:step;display:flex;flex-direction:column;gap:10px}.help-steps li{counter-increment:step;position:relative;padding-left:36px;line-height:1.55;font-size:.92rem}.help-steps li:before{content:counter(step);position:absolute;left:0;top:0;width:24px;height:24px;border-radius:50%;background:var(--green-light);color:var(--green);font-weight:700;font-size:.78rem;display:grid;place-items:center}.help-step-link{display:inline-flex;align-items:center;gap:4px;margin-left:8px;font-weight:600;color:var(--green);font-size:.85rem;white-space:nowrap}.help-step-link svg{width:14px;height:14px}.help-tips{background:var(--surface-soft);border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin-bottom:16px;font-size:.88rem}.help-tips ul{margin:6px 0 0;padding-left:18px;line-height:1.55}.help-related{display:flex;flex-direction:column;gap:2px;margin-top:20px}.help-related>strong{font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}.help-page .help-browser{max-width:760px}@media(max-width:640px){.help-trigger span{display:none}}.toolbar-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-end}.form-section-note{margin:-6px 0 14px;max-width:72ch;line-height:1.5}.form-grid>.form-section-title{grid-column:1/-1;margin:8px 0 -4px}.form-grid>.form-section-title:first-child{margin-top:0}.tab-bar{display:none}@media(max-width:760px){.tab-bar{position:fixed;left:0;right:0;bottom:0;z-index:900;display:grid;grid-template-columns:repeat(5,1fr);align-items:end;gap:2px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -6px 24px rgba(16,24,40,.08)}.tab-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;padding:4px 2px;border:0;border-radius:10px;background:none;color:var(--muted);font:inherit;font-size:.68rem;font-weight:500;cursor:pointer;-webkit-tap-highlight-color:transparent}.tab-item svg{width:22px;height:22px}.tab-item.active{color:var(--green);font-weight:600}.tab-item.active svg{stroke-width:2.3}.tab-add:focus-visible,.tab-item:focus-visible{outline:2px solid var(--green);outline-offset:2px}.tab-add{justify-self:center;align-self:center;display:grid;place-items:center;width:52px;height:52px;margin-top:-18px;border:4px solid var(--surface);border-radius:50%;background:var(--green);color:#fff;box-shadow:0 6px 16px rgba(20,108,67,.35);cursor:pointer}.tab-add svg{width:24px;height:24px;stroke-width:2.4}.main{padding-bottom:calc(76px + env(safe-area-inset-bottom))}}.sheet-overlay{position:fixed;inset:0;background:rgba(10,31,23,.35);z-index:1000}.sheet{position:fixed;left:0;right:0;bottom:0;z-index:1001;max-height:85dvh;overflow:auto;background:var(--surface);border-radius:18px 18px 0 0;padding:8px 18px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -18px 50px rgba(16,24,40,.2)}.sheet-handle{width:40px;height:4px;border-radius:2px;background:var(--line-strong);margin:2px auto 8px}.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.sheet-head h2{margin:0;font-size:1.05rem}.sheet-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sheet-action{display:flex;align-items:center;gap:10px;min-height:56px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);font-size:.86rem;font-weight:600;color:var(--ink)}.sheet-action svg{width:20px;height:20px;color:var(--green);flex:none}.sheet-action:active{background:var(--green-light)}.sheet-who{margin:0 0 12px}.sheet-menu section+section{margin-top:16px}.sheet-menu h3{margin:0 0 6px;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}.sheet-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.sheet-link{display:flex;align-items:center;gap:10px;min-height:46px;padding:10px 12px;border-radius:10px;font-size:.86rem;font-weight:500;color:var(--ink)}.sheet-link svg{width:18px;height:18px;color:var(--muted);flex:none}.sheet-link.active{background:var(--green-light);color:var(--green);font-weight:600}.sheet-link.active svg{color:var(--green)}@media print{.sheet,.sheet-overlay,.tab-bar{display:none!important}}@media (max-width:1100px){.section-grid{grid-template-columns:minmax(0,1fr)}}@media (max-width:760px){.dashboard-filters{width:100%}.dashboard-filters .table-filter{flex:1 1 150px;min-width:0}.dashboard-filters .search-input{flex:none;width:100%}}.sheet:focus{outline:none}.pay-now span:first-child{display:flex;gap:8px;align-items:flex-start;font-weight:500}.pay-now input{width:auto;height:auto;margin-top:3px;accent-color:var(--green)}.medicine-source{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.medicine-source legend{margin-bottom:7px}@media(max-width:640px){.medicine-source{grid-template-columns:1fr}}.help-panel .help-chat{min-height:0}.chat-log,.help-panel .help-chat{flex:1;display:flex;flex-direction:column}.chat-log{overflow:auto;padding:16px 18px;gap:12px;background:var(--surface-soft)}.chat-bubble{max-width:92%;padding:11px 13px;border-radius:14px;font-size:.88rem;line-height:1.55;overflow-wrap:anywhere}.chat-bubble.user{align-self:flex-end;background:var(--green);color:#fff;border-bottom-right-radius:4px}.chat-bubble.bot{align-self:flex-start;background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:4px;width:92%}.chat-text{margin:0;white-space:pre-line}.chat-title{display:block;margin:10px 0 2px;font-size:.9rem}.chat-badge{display:inline-flex;align-items:center;gap:5px;font-size:.68rem;font-weight:600;color:var(--green);background:var(--green-light);border-radius:6px;padding:3px 7px;margin-bottom:7px}.chat-badge.muted{color:var(--muted);background:var(--surface-soft)}.chat-badge svg{width:12px;height:12px}.chat-steps ol{margin:8px 0 10px;padding:0;list-style:none;counter-reset:step;display:flex;flex-direction:column;gap:8px}.chat-steps li{counter-increment:step;position:relative;padding-left:30px}.chat-steps li:before{content:counter(step);position:absolute;left:0;top:1px;width:21px;height:21px;border-radius:50%;background:var(--green-light);color:var(--green);font-weight:700;font-size:.72rem;display:grid;place-items:center}.chat-tip{margin:0 0 10px;font-size:.8rem;color:var(--muted)}.chat-go{min-height:34px!important;padding:7px 12px!important}.chat-guide{border:1px solid var(--line);border-radius:10px;margin-top:8px;background:var(--surface-soft)}.chat-guide summary{display:flex;align-items:center;gap:8px;padding:9px 11px;cursor:pointer;font-weight:600;font-size:.84rem;list-style:none}.chat-guide summary::-webkit-details-marker{display:none}.chat-guide summary svg{width:16px;height:16px;color:var(--green);flex:none}.chat-guide .chat-chevron{margin-left:auto;color:var(--muted);transition:transform .15s ease}.chat-guide[open] .chat-chevron{transform:rotate(180deg)}.chat-guide .chat-steps{padding:0 11px 11px}.chat-choices{display:flex;flex-direction:column;gap:2px;margin-top:8px}.chat-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.chat-also{margin:10px 0 0;font-size:.8rem;color:var(--muted)}.link-button{border:0;background:none;padding:0;font:inherit;color:var(--green);font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:5px}.link-button:hover{text-decoration:underline}.link-button svg{width:14px;height:14px}.chat-typing{display:flex;align-items:center;gap:8px;color:var(--muted);width:auto}.chat-typing svg{width:16px;height:16px}.chat-input{display:flex;gap:8px;align-items:flex-end;padding:12px 14px;border-top:1px solid var(--line);background:var(--surface)}.chat-input textarea{flex:1;resize:none;min-height:44px;max-height:120px;border:1px solid var(--line-strong);border-radius:12px;padding:11px 12px;font:inherit;font-size:.9rem;line-height:1.4}.chat-input textarea:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px var(--focus-ring)}.chat-send{width:44px;min-width:44px;height:44px;padding:0!important;border-radius:12px}.chat-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 14px 12px;background:var(--surface);font-size:.78rem}@media(pointer:coarse){.chat-input textarea{font-size:16px}}