.finance-workspace{flex-direction:column;gap:20px;min-width:0;padding-bottom:24px;display:flex}.finance-workspace h2{letter-spacing:0}.finance-toolbar,.finance-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.finance-toolbar{justify-content:space-between}.finance-toolbar h2{margin-right:auto}.finance-filters{flex-wrap:wrap;align-items:end;gap:12px;display:flex}.finance-filters .field{flex:145px;min-width:0}.finance-select{width:100%;min-width:0;height:var(--field-height);border:1px solid var(--border);border-radius:var(--field-radius);color:var(--foreground);font-size:var(--field-font-size);background:#fff;padding:0 12px;display:block}.finance-select:focus-visible{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #34745b1f}.finance-select:disabled{opacity:.7;background:var(--secondary)}.finance-metrics{border-block:1px solid var(--border);grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;padding:20px 0;display:grid}.finance-metrics span{color:var(--muted-foreground);margin-bottom:10px;font-size:12px;display:block}.finance-metrics strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:24px}.finance-table{border:1px solid var(--border);background:#fff;border-radius:6px;width:100%;overflow-x:auto}.finance-table td{vertical-align:top}.finance-table td small{white-space:normal;overflow-wrap:anywhere;max-width:280px;color:var(--muted-foreground);display:block}.finance-table td input{min-width:85px}.finance-table td:first-child input{min-width:180px}.finance-table [data-slot=table-head]{letter-spacing:0}.finance-form,.finance-form fieldset{flex-direction:column;gap:18px;min-width:0;display:flex}.finance-form fieldset{border:0;margin:0;padding:0}.finance-form button[type=submit]{align-self:flex-start}.finance-error{color:#943f3f;background:#fff2f2;border:1px solid #edcece;border-radius:6px;padding:12px;font-size:13px}.finance-success{color:#34745b;font-size:13px}.finance-status{color:#795a22;background:#fff3da;border-radius:4px;padding:3px 7px;font-size:11px;display:inline-block}.finance-status.settled{color:#316645;background:#eaf4ed}.supplier-overview{margin-bottom:9px}.supplier-directory-card{overflow:hidden}.supplier-directory-heading .search-box{width:230px}.supplier-table{overflow-x:auto}.supplier-row{cursor:pointer}.supplier-row:hover{background:#fafcf9}.supplier-row:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.supplier-row-action{text-align:right;width:58px}.supplier-row-action button{color:#708078}.supplier-credit{color:#34745b;font-weight:500}.supplier-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:8px 0;display:grid}.supplier-detail-grid>div{border:1px solid var(--border);background:#fafcf9;border-radius:8px;flex-direction:column;gap:7px;min-width:0;padding:14px;display:flex}.supplier-detail-grid span{color:var(--muted-foreground);font-size:11px}.supplier-detail-grid strong,.supplier-detail-grid a{min-width:0;color:var(--foreground);overflow-wrap:anywhere;align-items:center;gap:7px;font-size:13px;font-weight:500;display:flex}.supplier-detail-grid a{color:var(--primary)}.supplier-detail-grid svg{flex:none;width:15px;height:15px}.supplier-detail-wide{grid-column:1/-1}.supplier-detail-actions{justify-content:flex-end;margin-top:6px;display:flex}.purchase-register,.purchase-workflow{flex-direction:column;gap:20px;display:flex}.purchase-stats{margin-bottom:9px}.purchase-register-card{overflow:hidden}.purchase-filters{border-top:1px solid var(--border);grid-template-columns:auto minmax(210px,1.4fr) repeat(2,minmax(150px,1fr)) auto;align-items:end;gap:14px;padding:20px 24px;display:grid}.purchase-payment-filter{background:#eef3efb8;border:1px solid #dce5de;border-radius:8px;align-self:end;gap:2px;padding:2px;display:flex}.purchase-payment-filter button{height:32px;box-shadow:none;white-space:nowrap;border-radius:6px;padding:0 9px;font-size:11px;font-weight:500}.purchase-payment-filter button[aria-pressed=true]{box-shadow:0 2px 6px #1b4f391f}.purchase-payment-filter button span{background:#ffffff61;border-radius:999px;place-items:center;min-width:19px;height:19px;margin-left:3px;font-size:10px;font-weight:500;display:inline-grid}.purchase-table{border-top:1px solid var(--border);overflow-x:auto}.purchase-row{cursor:pointer}.purchase-row:hover{background:#fafcf9}.purchase-row:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.purchase-empty{border-top:1px solid var(--border);color:var(--muted-foreground);padding:28px 24px}.purchase-workflow-heading>div{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.purchase-workflow-heading h2{font-size:21px}.purchase-workflow-heading p{width:100%;color:var(--muted-foreground);padding-left:1px;font-size:12px}.purchase-workflow-layout{grid-template-columns:minmax(0,1fr) 310px;align-items:start;gap:24px;display:grid}.purchase-workflow-main{flex-direction:column;gap:20px;display:flex}.purchase-workflow-main [data-slot=card-content]{padding:0 24px 24px}.purchase-mode{gap:7px;display:flex}.purchase-mode button{height:32px;font-size:11px}.purchase-lines{margin-bottom:14px;overflow-x:auto}.purchase-line-head,.purchase-line{grid-template-columns:minmax(220px,1fr) 110px 130px 38px;align-items:center;gap:10px;min-width:560px;display:grid}.purchase-line-head{color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.6px;padding:0 3px 8px;font-size:10px}.purchase-line{border-top:1px solid var(--border);padding:9px 0}.purchase-line input{height:38px}.purchase-add-line+.field{margin-top:24px}.purchase-summary{position:sticky;top:24px}.purchase-summary [data-slot=card-content]{padding:0 24px 24px}.purchase-balance-line{border-top:1px dashed var(--border);margin-top:20px;padding-top:18px}.purchase-summary .finance-error{margin-top:14px}.reports-dashboard{flex-direction:column;gap:20px;display:flex}.report-range-card{background:linear-gradient(100deg,#fbfdfb 0%,#f3f8f4 100%);border:1px solid #dce6df;border-radius:11px;flex-wrap:nowrap;align-items:center;gap:14px;min-height:50px;padding:6px 7px 6px 18px;overflow-x:auto;box-shadow:0 7px 24px #1f3e2b0d;flex-direction:row!important;display:flex!important}.report-range-copy{white-space:nowrap;flex-direction:row;align-items:center;gap:11px;min-width:295px;margin-right:auto;display:flex}.report-range-copy strong{color:#35463a;white-space:nowrap;font-size:12px;font-weight:600}.report-kicker{letter-spacing:1.2px;color:var(--muted-foreground);border-right:1px solid #d9e2dc;padding-right:11px;font-size:9px;font-weight:700}.report-range-tabs{background:#e8efeab8;border:1px solid #dce5de;border-radius:9px;gap:3px;padding:3px;display:flex}.report-range-tabs button{height:32px;box-shadow:none;white-space:nowrap;border-radius:6px;padding:0 14px;font-size:11px}.report-range-tabs button[aria-pressed=true]{box-shadow:0 3px 9px #1b4f3929}.report-custom-dates{flex:none;grid-template-columns:148px auto 148px;align-items:center;gap:7px;display:grid}.report-custom-dates>span{color:#849087;text-transform:uppercase;font-size:9px;font-weight:600}.report-custom-dates input{background:#ffffffbf;height:32px;font-size:10px!important}.report-range-card.has-custom-range .report-range-copy{min-width:260px}.report-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.report-metric{isolation:isolate;border:0;min-height:146px;transition:transform .2s,box-shadow .2s;position:relative;overflow:hidden;box-shadow:0 12px 32px #24483217}.report-metric:hover{transform:translateY(-2px);box-shadow:0 16px 38px #24483221}.report-metric:before,.report-metric:after{content:"";z-index:-1;pointer-events:none;border-radius:999px;position:absolute}.report-metric:before{background:#ffffff57;width:180px;height:180px;top:-105px;right:-78px}.report-metric:after{border:18px solid #ffffff29;width:105px;height:105px;bottom:-80px;right:42px}.report-metric.green{color:#173d2c;background:linear-gradient(135deg,#e8f7ed 0%,#d5eddf 52%,#bfe1ce 100%)}.report-metric.amber{color:#4e3a13;background:linear-gradient(135deg,#fff8e9 0%,#f7e8c8 52%,#ead09a 100%)}.report-metric.profit{color:#123f38;background:linear-gradient(135deg,#e3f6f1 0%,#c9eae0 48%,#abd9cd 100%)}.report-metric.red{color:#5d2924;background:linear-gradient(135deg,#fff0ed 0%,#f5d8d3 52%,#e7bbb4 100%)}.report-metric [data-slot=card-content]{z-index:1;padding:21px 23px;position:relative}.report-metric-top{color:currentColor;opacity:.82;letter-spacing:1.1px;justify-content:space-between;align-items:center;font-size:10px;font-weight:700;display:flex}.report-metric-top i{color:currentColor;background:#ffffff6b;border:1px solid #ffffff7a;border-radius:10px;place-items:center;width:34px;height:34px;display:grid;box-shadow:inset 0 1px #ffffff8c}.report-metric.amber .report-metric-top i,.report-metric.red .report-metric-top i{color:currentColor;background:#ffffff5c}.report-metric-top svg{width:17px;height:17px}.report-metric [data-slot=card-content]>strong{letter-spacing:-1px;font-variant-numeric:tabular-nums;margin:12px 0 6px;font-size:31px;display:block}.report-metric p{color:currentColor;opacity:.72;font-size:11px;line-height:1.5}.report-insight-grid{grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr);gap:20px;display:grid}.report-insight-grid [data-slot=card-content]{padding:23px 24px}.report-card-title{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:25px;display:flex}.report-card-title>span{align-items:center;gap:9px;font-size:13px;font-weight:600;display:flex}.report-card-title svg{color:#78907d;width:17px}.report-card-title small{color:var(--muted-foreground);font-size:10px}.report-feature-value{margin-bottom:16px;font-size:22px;display:block}.report-feature-meta{flex-wrap:wrap;gap:8px;display:flex}.report-feature-meta span{color:#65776a;background:#f2f6f2;border-radius:6px;padding:7px 10px;font-size:11px}.report-empty{color:var(--muted-foreground);padding:18px 0;font-size:12px}.report-product-bars{flex-direction:column;gap:15px;display:flex}.report-product-bars>div>div{justify-content:space-between;gap:12px;margin-bottom:7px;font-size:11px;display:flex}.report-product-bars strong{font-weight:500}.report-product-bars span{color:var(--muted-foreground)}.report-product-track{background:#edf1ed;border-radius:6px;height:7px;display:block;overflow:hidden}.report-product-track i{border-radius:inherit;background:linear-gradient(90deg,#6d987b,#9bbc9e);height:100%;display:block}.report-comparison-card{overflow:hidden}.report-comparison-heading{border-bottom:1px solid var(--border)}.report-legend{color:var(--muted-foreground);gap:16px;font-size:10px;display:flex}.report-legend span{align-items:center;gap:6px;display:flex}.report-legend i{border-radius:3px;width:9px;height:9px}.report-legend .current,.comparison-chart .current{background:#34745b}.report-legend .comparison,.comparison-chart .comparison{background:#b7c7bb}.report-comparison-dates{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;padding:20px 24px 4px;display:grid}.report-comparison-dates>div{grid-template-columns:auto 1fr 1fr;align-items:center;gap:10px;display:grid}.report-comparison-dates strong{color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.7px;font-size:10px}.report-comparison-dates input{height:36px;font-size:11px!important}.comparison-chart{flex-direction:column;gap:23px;padding:28px 24px;display:flex}.comparison-group{grid-template-columns:95px 1fr;align-items:center;gap:16px;display:grid}.comparison-group>strong{font-size:12px;font-weight:500}.comparison-bars{flex-direction:column;gap:7px;display:flex}.comparison-bars>div{background:#f4f6f4;border-radius:5px;height:22px;position:relative;overflow:hidden}.comparison-bars>div>span{border-radius:inherit;min-width:0;height:100%;display:block}.comparison-bars small{color:#26382b;mix-blend-mode:multiply;font-size:10px;font-weight:600;position:absolute;top:50%;left:9px;transform:translateY(-50%)}.report-change-row{border-top:1px solid var(--border);grid-template-columns:repeat(3,1fr);display:grid}.report-change-row>div{border-right:1px solid var(--border);justify-content:space-between;gap:10px;padding:18px 24px;font-size:11px;display:flex}.report-change-row>div:last-child{border-right:0}.report-change-row span{color:var(--muted-foreground)}.report-change-row .positive{color:#34745b}.report-change-row .negative{color:#a9534b}.report-lifetime-card{overflow:hidden}.report-lifetime-card .section-heading{border-bottom:1px solid var(--border)}.report-customer-sales-heading{align-items:center}.report-customer-sales-controls{justify-content:flex-end;align-items:center;gap:10px;margin-left:auto;display:flex}.report-customer-range-tabs button{height:29px;padding:0 11px;font-size:10px}.report-customer-custom-dates{grid-template-columns:126px auto 126px}.report-customer-custom-dates input{height:29px}.report-customer-sales-empty{margin:24px}.report-lifetime-total{color:#34745b;white-space:nowrap;background:#edf5ef;border-radius:7px;padding:7px 10px;font-size:10px;font-weight:600}.lifetime-customer-chart{flex-direction:column;padding:10px 24px 16px;display:flex}.lifetime-customer-row{border-bottom:1px solid #edf1ee;grid-template-columns:30px minmax(150px,220px) minmax(180px,1fr) 90px;align-items:center;gap:14px;min-height:55px;display:grid}.lifetime-customer-row:last-child{border-bottom:0}.lifetime-rank{color:#9aa69e;font-variant-numeric:tabular-nums;font-size:10px}.lifetime-customer-name{min-width:0}.lifetime-customer-name strong{text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600;display:block;overflow:hidden}.lifetime-customer-name small{color:var(--muted-foreground);margin-top:4px;font-size:9px;display:block}.lifetime-customer-bar{background:#eef3ef;border-radius:999px;height:9px;overflow:hidden}.lifetime-customer-bar i{border-radius:inherit;background:linear-gradient(90deg,#34745b 0%,#6fa181 55%,#abd0b4 100%);height:100%;display:block}.lifetime-customer-value{text-align:right;color:#314d3c;font-variant-numeric:tabular-nums;font-size:11px}.report-footnote{color:var(--muted-foreground);font-size:10px;line-height:1.7}.sidebar{overflow-y:auto}@media (max-width:760px){.finance-toolbar{align-items:stretch}.finance-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.finance-metrics strong{font-size:20px}.finance-form .form-grid{grid-template-columns:1fr}.finance-filters .field{flex-basis:calc(50% - 12px)}.finance-actions{gap:6px}.supplier-directory-heading .search-box{width:min(190px,55vw)}.supplier-detail-grid{grid-template-columns:1fr}.supplier-detail-wide{grid-column:auto}.purchase-filters{grid-template-columns:1fr 1fr;padding:17px 15px}.purchase-payment-filter{grid-column:1/-1;width:max-content;max-width:100%;overflow-x:auto}.purchase-payment-filter+.field{grid-column:1/-1}.purchase-filters .field{min-width:0}.purchase-workflow-layout{grid-template-columns:1fr}.purchase-summary{position:static}.purchase-workflow-main [data-slot=card-content],.purchase-summary [data-slot=card-content]{padding:0 15px 20px}.purchase-mode{width:100%}.purchase-mode button{flex:1}.report-range-card{flex-wrap:wrap;gap:9px;padding:10px 11px;overflow-x:visible}.report-range-copy{width:100%;min-width:0;margin-right:0}.report-range-tabs{width:100%;overflow-x:auto}.report-range-tabs button{flex-shrink:0}.report-custom-dates{order:3;grid-template-columns:1fr auto 1fr;width:100%;margin-left:0!important}.report-summary-grid,.report-insight-grid,.report-comparison-dates{grid-template-columns:1fr}.report-comparison-dates>div{grid-template-columns:1fr 1fr}.report-comparison-dates strong{grid-column:1/-1}.report-card-title{align-items:flex-start}.report-legend{width:100%}.comparison-group{grid-template-columns:75px 1fr}.report-change-row{grid-template-columns:1fr}.report-change-row>div{border-right:0;border-bottom:1px solid var(--border)}.report-change-row>div:last-child{border-bottom:0}.report-customer-sales-heading{align-items:flex-start}.report-customer-sales-controls{flex-wrap:wrap;justify-content:flex-start;width:100%;margin-left:0}.report-customer-range-tabs{width:auto;max-width:100%}.report-customer-custom-dates{order:2;grid-template-columns:1fr auto 1fr;width:100%}.report-customer-sales-controls .report-lifetime-total{margin-left:auto}.lifetime-customer-chart{padding:8px 15px 14px}.lifetime-customer-row{grid-template-columns:22px minmax(105px,1fr) 75px;gap:9px}.lifetime-customer-bar{grid-column:2/-1;width:100%;margin-top:-7px}}
