:root{--ink:#11233a;--muted:#647186;--green:#126f34;--sidebar:#10392d;--line:#e6ebf0;--surface:#fff;--canvas:#f7f9fa;--radius:11px;--shadow:0 3px 12px #1a2e3d12;font-family:system-ui,'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--canvas);font-size:13px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e8b539;outline-offset:3px}button{border:1px solid #d8e0e6;border-radius:6px;background:#fff;padding:8px 12px}input,select{background:white;border:1px solid #d8e0e6;border-radius:5px;padding:9px 12px;min-width:0}label{display:grid;gap:7px}.primary{background:var(--green);color:#fff;border-color:var(--green);font-weight:600}h1,h2,p,ul,dl{margin:0}ul{padding:0;list-style:none}dd{margin:0}.icon{display:block;flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:10px;top:-80px;z-index:100;background:#fff;padding:12px}.skip-link:focus{top:10px}.page-error{position:relative;z-index:20;padding:14px 24px;background:#fff1ef;color:#9a241c;border-bottom:1px solid #eabbb5}.entry{max-width:530px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:14px;padding:32px;margin:8vh auto}.entry-brand{display:flex;gap:12px;align-items:center;margin-bottom:24px;padding:16px;background:var(--sidebar);color:#fff;border-radius:10px}.entry-brand small{display:block}.entry h1{font-size:24px}.entry>p{margin:12px 0 24px;color:var(--muted);line-height:1.6}.entry form{display:grid;gap:16px;margin:20px 0}.entry summary{padding:12px 0;cursor:pointer}.company-list>li{display:flex;gap:16px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}.company-list small{color:var(--muted)}
.sidebar{position:fixed;inset:0 auto 0 0;width:220px;background:var(--sidebar);color:#fff;z-index:30}.brand{height:72px;background:#143f31;display:flex;gap:8px;align-items:center;padding:17px 18px 15px 22px}.brand strong{font-size:15px;line-height:20px}.brand small{display:block;font:inherit}.sidebar nav{position:absolute;top:90px;bottom:226px;left:10px;right:10px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#326d46 transparent}.nav-link{border:0;background:none;color:#fff;display:flex;align-items:center;gap:20px;width:100%;height:46px;padding:0 16px;text-align:left;font-size:14px;font-weight:500;border-radius:5px}.nav-link.active{background:#326d46;font-weight:600}.nav-link:hover{background:#265e42}.sidebar-bottom{position:absolute;bottom:0;width:220px}.landscape{display:block;width:220px;height:129px;object-fit:cover}.today{height:97px;display:flex;align-items:center;gap:18px;padding:12px 17px;background:var(--sidebar)}.today div{display:grid;gap:4px}.today span{font-size:12px}.today time{font-size:13px}.workspace{margin-left:220px}.topbar{position:relative;z-index:20;height:59px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 42px 0 20px;gap:16px}.search{display:flex;align-items:center;gap:7px;position:relative;width:455px;height:35px;border:1px solid #d8e0e6;border-radius:6px;background:#f3f6f9;padding:0 10px}.search input{background:none;border:0;min-width:0;width:100%;font-size:13px;padding:0}.search input::placeholder{color:#8b97ab}.topbar-right{display:flex;align-items:center;gap:20px}.bell{position:relative;border:0;background:none;padding:0 9px}.badge{position:absolute;top:-9px;right:-3px;min-width:17px;height:17px;border-radius:9px;background:#e72e2e;color:white;font-size:11px;display:grid;place-items:center}.profile{border-left:1px solid var(--line);padding-left:22px;position:relative}.profile-trigger{display:flex;align-items:center;gap:12px;border:0;background:none;padding:0}.avatar{display:grid;place-items:center;border-radius:50%;width:39px;height:39px;background:#e5eee9;color:#126336;font-size:14px;font-weight:700}.profile-name{display:grid;text-align:left;gap:4px;width:104px;overflow:hidden}.profile-name strong{font-size:13px;overflow:hidden;text-overflow:ellipsis}.profile-name small{font-size:12px;color:#526176;white-space:nowrap}.profile-menu{position:absolute;z-index:50;right:0;top:49px;width:270px;padding:18px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}.profile-menu>strong{display:block;margin-bottom:14px}.profile-menu form{display:grid;gap:12px;margin-top:12px}.search-results{position:absolute;left:0;right:0;top:42px;max-height:320px;overflow:auto;background:white;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);z-index:50}.search-results button{display:block;width:100%;border:0;border-radius:0;text-align:left;padding:12px}.search-results p{padding:15px;color:var(--muted)}.search-results button:hover{background:#e8f5eb}.banner-title{display:flex;align-items:flex-start;gap:19px;padding:13px 28px}.banner-title h1{font-size:27px;line-height:34px;margin:0 0 6px}.banner-title p{color:#526176;font-size:14px;line-height:20px}.dashboard{padding:2px 40px 15px 21px;display:grid;gap:12px}.kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.kpi{height:95px;background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);display:flex;gap:18px;padding:12px;align-items:flex-start;overflow:hidden}.kpi-icon{width:56px;height:54px;border-radius:12px;background:#edf8f1;display:grid;place-items:center;flex-shrink:0}.kpi-icon.orange{background:#fff4e6}.kpi-icon.danger{background:#ffedf0}.kpi>div:last-child{min-width:0;padding-top:3px}.kpi h2{font-size:12px;color:#526176;font-weight:500;line-height:17px;white-space:nowrap}.kpi strong{display:block;font-size:15px;font-weight:700;line-height:24px;margin-top:3px;white-space:nowrap}.kpi small{display:block;font-size:11px;line-height:14px;color:#8591a1;margin-top:4px}.row{display:grid;gap:10px;min-width:0}.row-top{grid-template-columns:486fr 416fr 469fr}.row-middle{grid-template-columns:511fr 386fr 472fr;gap:11px}.row-bottom{grid-template-columns:540fr 353fr 475fr;gap:12px;margin-top:-2px}.card{position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:12px;min-width:0;overflow:hidden}.row-top>.card{height:241px}.row-middle>.card{height:244px}.row-bottom>.card{height:170px}.card-head{display:flex;align-items:flex-start;gap:12px;min-height:32px}.card-head h2{font-size:16px;font-weight:600;line-height:20px;color:var(--ink)}.card-head p{font-size:11px;color:var(--muted);line-height:13px;margin-top:0}.card-symbol{font-size:18px;color:var(--green);line-height:24px;min-width:24px;text-align:center}.all-link{margin-left:auto;padding:4px 0;border:0;background:none;white-space:nowrap;font-size:11px;color:var(--muted);line-height:17px}.all-link span{margin-left:7px}.farm-summary{display:grid;grid-template-columns:1fr 1fr;gap:3px 12px;margin-top:10px}.farm-summary>div{display:flex;align-items:center;gap:13px;border:1px solid var(--line);border-radius:6px;padding:8px 11px;min-height:60px}.farm-summary>div>span{width:36px;color:var(--green);font-size:24px;text-align:left}.farm-summary dt{color:var(--muted);font-size:11px;line-height:16px}.farm-summary dd{font-weight:600;font-size:13px;line-height:19px}.distribution{display:flex;align-items:center;gap:28px;margin:15px 12px 0 18px}.donut{position:relative;width:166px;height:166px;flex-shrink:0}.donut>svg{width:166px;height:166px;display:block;transform:rotate(0deg)}.donut>span{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.donut strong{font-size:21px}.donut small{font-size:11px;color:var(--muted)}.legend{flex:1;min-width:0;max-height:166px;overflow:auto;font-size:11px}.legend li{display:flex;align-items:center;gap:8px;min-height:35px}.legend small{margin-left:auto;color:var(--muted)}.dot{width:11px;height:11px;border-radius:3px;flex-shrink:0}.color-0{background:#1b703a}.color-1{background:#39a646}.color-2{background:#f7c82c}.color-3{background:#ef4444}.color-4{background:#8650c9}.chart-window{position:absolute;top:14px;right:8px;display:flex;gap:3px;align-items:center}.chart-window select{border:0;background:white;font-size:11px;padding:0;color:var(--muted);width:79px}.chart-apply{font-size:11px;padding:2px 3px}.js-ready .chart-apply{display:none}.bar-chart{display:block;width:100%;height:183px;margin-top:15px}.bar-chart line{stroke:#e3ece8;stroke-width:1}.bar-chart text{font-family:inherit;font-size:11px;fill:#6a7e82}.bar-chart rect{fill:var(--green)}.record-list{margin-top:13px}.record-list li{display:flex;align-items:center;gap:12px;min-height:35px;border-bottom:1px solid var(--line);padding:3px 0}.record-list li:last-child{border-bottom:0}.record-list strong{display:block;font-size:11px;font-weight:500;line-height:15px}.record-list small{display:block;color:var(--muted);font-size:11px;line-height:14px}.record-list time{font-size:11px;color:var(--muted);white-space:nowrap}.task-box{color:#69796a;font-size:23px}.list-date{margin-left:auto;text-align:right}.list-date .urgent,.urgent{color:#d74b38}.activity-mark{font-size:18px;color:var(--green);width:24px;text-align:center}.recent li>time{margin-left:auto}.recent strong{font-size:11px}.empty{display:flex;align-items:center;justify-content:center;min-height:92px;color:var(--muted);font-size:12px;line-height:1.7;text-align:center;padding:12px;overflow-wrap:anywhere}.map-empty{min-height:182px;margin-top:6px;background:#f3f7f4;border:1px dashed #b9cdbf;border-radius:7px;display:flex;flex-direction:column;align-items:center;justify-content:center}.map-empty .empty{min-height:0;padding:8px}.map-empty button{font-size:11px;padding:5px 9px}.weather{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:20px}.weather dt{font-size:11px;color:var(--muted);white-space:nowrap}.weather dd{font-size:16px;font-weight:600;margin-top:8px}.weather small{display:block;font-size:11px;color:var(--muted);line-height:12px;margin-top:3px}.weather-alert{display:block;width:100%;padding:8px 12px;margin-top:12px;border:0;background:#fef5e8;font-size:11px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stock-list{margin-top:5px}.stock-list li{margin:0 0 10px}.stock-list li>div{display:flex;gap:10px;justify-content:space-between;font-size:11px;line-height:16px}.stock-list strong{font-size:11px;font-weight:600;white-space:nowrap}.stock-list small{display:block;font-size:11px;color:var(--muted)}.stock-list small.urgent{color:#d74b38}.finance-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:3px}.finance-summary>div{background:#e8f5eb;border-radius:5px;padding:6px 9px;min-height:44px}.finance-summary>div:nth-child(2){background:#fcebec}.finance-summary>div:nth-child(3){background:#ecf2ff}.finance-summary dt{font-size:11px;color:var(--muted);white-space:nowrap}.finance-summary dd{font-size:13px;font-weight:700;color:var(--green);margin-top:4px;white-space:nowrap}.finance-summary>div:nth-child(2) dd{color:#e84b3e}.finance-note{font-size:11px;color:var(--muted);margin-top:14px;line-height:16px}dialog{border:1px solid var(--line);border-radius:12px;padding:24px;max-width:min(680px,calc(100vw - 32px));width:650px;max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 20px 80px #122e3244}dialog::backdrop{background:#0b241d77}dialog>header{display:flex;align-items:center;gap:18px;justify-content:space-between;margin-bottom:16px}dialog h2{font-size:20px}dialog>header>button{font-size:22px;line-height:1;padding:5px 8px}dialog form{display:grid;gap:14px;padding-top:16px}dialog summary{cursor:pointer;padding-top:18px;font-weight:600}dialog .record-list li{min-height:58px}dialog .weather{margin-bottom:15px}.alert-item{padding:14px;background:#fff6e9;border-radius:8px;margin-bottom:12px}.alert-item p{line-height:1.7;margin-top:6px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th,td{text-align:left;border-bottom:1px solid var(--line);padding:10px}th{background:#f3f6f9}.mobile-menu,.mobile-close{display:none}
/* Reuse the existing tiled-map helper with a V3 namespace; the overview is read-only. */
.vs3-geo-map{position:relative;height:184px;margin-top:7px;overflow:hidden;border-radius:7px;background:#dce7e3}.vs3-geo-mapcanvas{width:100%;height:184px;cursor:grab;touch-action:none}.vs3-geo-mapcanvas:active{cursor:grabbing}.vs3-geo-tools{position:absolute;right:7px;top:42px;display:grid;gap:2px}.vs3-geo-tools button{border:1px solid #abc3b5;border-radius:3px;background:white;color:#19483b;width:30px;height:30px;padding:2px;font-weight:700}.vs3-geo-credit{position:absolute;bottom:2px;right:2px;background:#fffe;padding:1px 3px;font-size:11px}.vs3-geo-fallback{position:absolute;bottom:20px;left:4px;right:4px;background:#fff6e9;padding:5px;font-size:11px;max-height:62px;overflow:auto}.vs3-geo-labels{position:absolute;inset:0;pointer-events:none}.vs3-geo-area-badge{position:absolute;transform:translate(-50%,-50%);background:#10392ddd;color:#fff;border:1px solid #ffffff99;border-radius:4px;font-size:11px;line-height:13px;padding:4px 6px;max-width:150px;text-align:center}.limit-note{display:block;font-size:11px;color:var(--muted)}
@media(max-width:1440px){.kpi{gap:10px;padding:10px}.kpi-icon{width:45px}.kpi strong{font-size:15px}.kpi h2{font-size:11px}.card-head{gap:8px}.card-head h2{font-size:14px}.distribution{gap:10px;margin-left:0}.donut,.donut>svg{width:140px;height:140px}.farm-summary>div{padding:8px 6px;gap:5px}.farm-summary>div>span{width:25px}.finance-summary{gap:4px}.finance-summary>div{padding:6px}.finance-summary dd{font-size:11px}.all-link{font-size:11px}.banner-title p{max-width:72%;font-size:12px}.row-top .card:last-child .card-head h2{max-width:160px}}
@media(max-width:1180px){.dashboard{padding:14px 20px}.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.kpi{gap:18px}.row-top,.row-middle,.row-bottom{grid-template-columns:1fr 1fr;gap:12px}.row>.card:last-child{grid-column:1/-1}.row-bottom>.card{height:auto;min-height:170px}.row-bottom{margin-top:0}.card-head h2{font-size:16px}.distribution{justify-content:center;gap:30px}.donut,.donut>svg{width:166px;height:166px}.legend{max-width:210px}.banner-title p{max-width:90%}.topbar{gap:10px}.search{width:350px}.profile-name{display:none}.profile{padding-left:12px}.topbar-right{gap:12px}.today{font-size:12px}}
@media(max-width:780px){.workspace{margin-left:0}.sidebar{transform:translateX(-100%);transition:transform .15s ease}.sidebar.open{transform:translateX(0)}.mobile-menu,.mobile-close{display:block}.mobile-menu{border:0;background:none;padding:4px;font-size:22px}.mobile-close{border:0;background:none;color:white;margin-left:auto;font-size:24px;padding:0}.topbar{padding:0 12px;gap:8px}.search{flex:1;width:auto}.search input{font-size:12px}.topbar-right{gap:5px}.profile{padding-left:8px}.profile-trigger{gap:4px}.profile-trigger>.icon{display:none}.avatar{width:31px;height:31px;font-size:12px}.profile-menu{right:-5px;top:42px;width:250px}.banner-title{padding:16px;gap:12px}.banner-title h1{font-size:23px;line-height:28px}.banner-title p{font-size:11px;line-height:17px;max-width:100%}.dashboard{padding:12px;gap:12px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi{height:91px;gap:10px;padding:10px}.kpi-icon{width:44px;height:48px}.kpi h2{font-size:11px}.kpi strong{font-size:15px}.kpi small{font-size:11px}.row-top,.row-middle,.row-bottom{grid-template-columns:1fr}.row>.card:last-child{grid-column:auto}.row-top>.card,.row-middle>.card{height:auto;min-height:241px}.row-bottom>.card{min-height:170px}.card-head h2{font-size:15px}.farm-summary>div{padding:9px;gap:8px}.distribution{justify-content:space-evenly;gap:20px;margin-bottom:8px}.farm-summary>div>span{width:30px}.card-symbol{min-width:20px}.entry{margin:24px 12px;padding:24px}.today{height:88px}.landscape{height:80px}.sidebar nav{bottom:168px}.sidebar-bottom{height:168px}.bell{padding:0 5px}.profile-menu form label{font-size:12px}.weather small{font-size:11px}.finance-summary{gap:8px}.finance-summary dd{font-size:12px}.page-error{font-size:12px;padding:12px}.row-top .card:last-child .card-head h2{max-width:none}.vs3-geo-map,.vs3-geo-mapcanvas{height:184px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
[hidden]{display:none!important}
.report-chart-row{display:grid;grid-template-columns:1.15fr 1fr;gap:12px;margin:12px 0}.report-chart-row .business-chart{height:130px;margin-top:0}.report-chart-row .distribution{margin:10px 0 0;gap:12px}.report-chart-row .donut,.report-chart-row .donut>svg{width:105px;height:105px}.report-chart-row .donut strong{font-size:14px}.report-chart-row .legend{font-size:11px}.report-metrics{margin-top:12px!important}.report-preview .report-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.report-preview .report-metrics strong{font-size:14px}.report-print .report-chart-row{break-inside:avoid}.report-print .report-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:780px){.report-chart-row{grid-template-columns:1fr}.report-preview .report-metrics{grid-template-columns:1fr 1fr}}

/* Screens 09–16: native, data-driven views from the user's exported design references. */
.trade-grid,.partner-grid,.cost-grid,.report-grid,.settings-grid,.readings-grid,.calendar-layout,.detail-overview-grid{display:grid;gap:12px;margin-top:10px}.trade-grid>div,.partner-grid>div,.cost-grid>div,.report-grid>div,.settings-grid>div,.readings-grid>div,.calendar-layout>div,.detail-overview-grid>div{min-width:0}.trade-grid{grid-template-columns:1.4fr .85fr 1fr;grid-template-areas:'trend distribution detail' 'list list detail';align-items:start}.trade-list{grid-area:list}.trade-trend{grid-area:trend}.trade-distribution{grid-area:distribution}.trade-detail{grid-area:detail}.trade-grid .trade-trend>.card,.trade-grid .trade-distribution>.card{min-height:248px}.trade-trend .business-chart{height:166px;margin-top:5px}.trade-distribution .distribution{margin:15px 0 0;gap:12px}.trade-distribution .donut,.trade-distribution .donut>svg{width:146px;height:146px}.trade-distribution .donut strong{font-size:17px}.trade-distribution .legend li{font-size:11px;min-height:27px}.trade-grid .trade-list>.card{min-height:348px}.trade-detail>.card{min-height:610px}.trade-detail .detail-list>div{min-height:31px}.trade-detail .business-history{max-height:220px}.trade-detail .business-history li{flex-wrap:wrap;gap:7px}.trade-detail .business-history button{font-size:11px}.trade-purchases{grid-template-columns:1fr 1fr 1.25fr;grid-template-areas:'list list detail' 'trend distribution detail'}.trade-purchases .trade-list>.card{min-height:238px}.trade-purchases .trade-detail>.card{min-height:606px}.section-title{font-size:15px;margin:20px 0 8px}.quality-section{margin-top:12px;background:white;border:1px solid var(--line);border-radius:11px;padding:15px}.quality-section>summary{font-weight:600;cursor:pointer}.quality-section .business-history{max-height:250px}.quality-section button{font-size:11px}.partner-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-areas:'list list detail detail' 'kind region balances balances'}.partner-list{grid-area:list}.partner-detail{grid-area:detail}.partner-kind{grid-area:kind}.partner-region{grid-area:region}.partner-balances{grid-area:balances}.partner-list>.card,.partner-detail>.card{min-height:365px}.partner-kind>.card,.partner-region>.card,.partner-balances>.card{min-height:216px}.partner-detail .detail-list{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.partner-grid .distribution{margin:20px 0 0;gap:12px}.partner-grid .donut,.partner-grid .donut>svg{width:115px;height:115px}.partner-grid .legend{font-size:11px}.partner-grid .legend li{min-height:25px}.cost-grid{grid-template-columns:repeat(12,minmax(0,1fr));grid-template-areas:'list list list list list list list trend trend trend trend trend' 'distribution distribution distribution distribution detail detail detail detail detail detail detail detail' 'summary summary summary summary summary summary summary summary summary summary summary summary'}.cost-list{grid-area:list}.cost-trend{grid-area:trend}.cost-distribution{grid-area:distribution}.cost-detail{grid-area:detail}.cost-summary{grid-area:summary}.cost-list>.card,.cost-trend>.card{min-height:241px}.cost-trend .business-chart{height:165px;margin-top:8px}.cost-distribution>.card,.cost-detail>.card{min-height:216px}.cost-grid .distribution{margin:15px 0 0;gap:20px}.cost-grid .donut,.cost-grid .donut>svg{width:150px;height:150px}.cost-grid .donut strong{font-size:17px}.summary-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-top:8px}.summary-tiles>div{padding:14px;border:1px solid var(--line);border-radius:7px;display:grid;gap:8px}.summary-tiles small{font-size:11px;color:#75849a}.summary-tiles strong{font-size:16px}.report-grid{grid-template-columns:minmax(0,2.15fr) minmax(0,1fr);grid-template-areas:'templates schedule' 'preview detail' 'history detail';align-items:start}.report-templates{grid-area:templates}.report-preview{grid-area:preview}.report-history{grid-area:history}.report-schedule{grid-area:schedule}.report-detail{grid-area:detail}.template-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-top:4px}.template-grid button{min-width:0;display:flex;flex-direction:column;gap:12px;text-align:left;padding:15px 10px;border:1px solid var(--line);border-radius:7px;min-height:115px}.template-grid button:hover{background:#f2f8f3;border-color:var(--green)}.template-grid button>span{font-size:23px;color:var(--green)}.template-grid strong{font-size:11px;line-height:17px}.template-grid small{font-size:11px;line-height:15px;color:#75849a}.report-preview>.card{min-height:250px}.report-history>.card{min-height:150px}.report-schedule>.card{min-height:180px}.report-detail>.card{min-height:320px}.report-links{display:flex;gap:14px;flex-wrap:wrap;margin:10px 0;font-size:11px}.report-links a{text-decoration:none}.report-preview .screen-table{max-height:350px}.settings-tabs{margin-top:0;margin-bottom:0;background:#fff;border:1px solid var(--line);border-radius:11px;padding:4px;box-shadow:var(--shadow);justify-content:flex-start;gap:30px}.settings-tabs button{padding:12px 30px;font-size:12px}.settings-tabs [aria-selected=true]{background:#e8f5eb;border:0;border-radius:5px}.settings-grid{grid-template-columns:1.6fr 1fr 1fr;grid-template-areas:'company preferences session' 'company export export';margin-top:0}.settings-company{grid-area:company}.settings-preferences{grid-area:preferences}.settings-session{grid-area:session}.settings-export{grid-area:export}.settings-company form{display:grid;gap:18px;padding:8px 4px}.settings-company .form-grid{gap:20px}.settings-company .form-grid label{font-size:11px}.settings-company .primary{justify-self:end}.settings-preferences>.card,.settings-session>.card{min-height:270px}.settings-company>.card{min-height:470px}.settings-export>.card{min-height:160px}.screen-settings [role=tabpanel]>.card{min-height:280px}.screen-settings [role=tabpanel]>.card>form{max-width:520px;display:grid;gap:14px;margin-top:14px}.readings-grid .card{height:100%}.readings-map .vs3-geo-map,.readings-map .vs3-geo-mapcanvas{height:225px}.readings-map .map-empty{min-height:225px}.readings-map .inline-actions{margin:10px 0}.readings-map .screen-table{max-height:155px}.readings-map button{font-size:11px}.readings-chart .business-chart{height:151px;margin-top:4px}.readings-chart .empty{min-height:160px}.readings-alerts .alert-item{font-size:11px;padding:10px}.readings-history .screen-table{max-height:310px}.calendar-layout{grid-template-columns:2.15fr 1.1fr 1fr;grid-template-areas:'month detail upcoming' 'notes notes notes'}.calendar-month{grid-area:month}.calendar-day-detail{grid-area:detail}.calendar-upcoming{grid-area:upcoming}.calendar-notes{grid-area:notes}.calendar-month>.card,.calendar-day-detail>.card,.calendar-upcoming>.card{min-height:386px}.calendar-title{display:flex;align-items:center;gap:14px;margin:6px 0 18px}.calendar-title h3{font-size:20px;margin:0}.calendar-title>a{font-size:14px;text-decoration:none}.calendar-title>a:last-child{margin-left:auto;font-size:11px}.calendar-cells{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid var(--line)}.weekday{text-align:center;padding:8px 0;font-size:11px}.calendar-cell{border:1px solid var(--line);border-left:0;min-height:58px;min-width:0;padding:4px;display:flex;flex-direction:column;gap:4px}.calendar-day{font-size:11px;text-decoration:none;color:#75849a;align-self:start;min-height:16px}.calendar-cell.chosen{background:#eef7f0;outline:1px solid #70a67f;outline-offset:-1px}.calendar-cell.outside{background:#fafbfd;color:#a2aab4}.calendar-event{font-size:11px;padding:3px;border-radius:3px;background:#e5f4e9;text-decoration:none;color:#126336;overflow-wrap:anywhere}.calendar-event.state-planned{background:#e2efff;color:#1680d8}.calendar-upcoming .business-history{max-height:330px}.calendar-upcoming time{font-size:11px;white-space:nowrap}.calendar-upcoming .business-history li{padding:15px 0;justify-content:flex-start}.calendar-day-detail .business-history{max-height:310px}.calendar-notes .alert-item{display:inline-block;margin:10px 10px 0 0;font-size:11px}.detail-overview-grid{grid-template-columns:1fr 1fr}.report-print{background:white;color:#11233a;padding:30px;font:12px system-ui,'Segoe UI',Arial,sans-serif}.report-print h1{font-size:23px;margin:20px 0 12px}.report-print>p{margin:10px 0 15px}.report-print .screen-table{overflow:visible}.report-print th,.report-print td{padding:8px;font-size:11px}.report-print thead{display:table-header-group}.report-print tr{break-inside:avoid}
@media(max-width:1440px){.trade-grid{grid-template-columns:1fr 1fr;grid-template-areas:'trend distribution' 'list list' 'detail detail'}.trade-purchases{grid-template-areas:'list list' 'trend distribution' 'detail detail'}.trade-detail>.card,.trade-purchases .trade-detail>.card{min-height:0}.partner-grid{grid-template-columns:1fr 1fr;grid-template-areas:'list list' 'detail detail' 'kind region' 'balances balances'}.cost-grid{grid-template-columns:1fr 1fr;grid-template-areas:'list list' 'trend distribution' 'detail detail' 'summary summary'}.report-grid{grid-template-columns:1fr;grid-template-areas:'templates' 'preview' 'history' 'schedule' 'detail'}.report-detail>.card{min-height:0}.settings-tabs{gap:6px}.settings-tabs button{padding:10px 20px}.settings-grid{grid-template-columns:1fr 1fr;grid-template-areas:'company company' 'preferences session' 'export export'}.settings-company>.card{min-height:0}.calendar-layout{grid-template-columns:2fr 1fr;grid-template-areas:'month detail' 'upcoming notes'}.detail-overview-grid{grid-template-columns:1fr}}
@media(max-width:780px){.trade-grid,.trade-purchases{grid-template-columns:1fr;grid-template-areas:'list' 'detail' 'trend' 'distribution'}.trade-grid .trade-list>.card,.trade-grid .trade-trend>.card,.trade-grid .trade-distribution>.card{min-height:0}.partner-grid{grid-template-columns:1fr;grid-template-areas:'list' 'detail' 'kind' 'region' 'balances'}.partner-detail .detail-list{grid-template-columns:1fr}.partner-list>.card,.partner-detail>.card{min-height:0}.cost-grid{grid-template-columns:1fr;grid-template-areas:'list' 'trend' 'distribution' 'detail' 'summary'}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid{grid-template-columns:1fr;grid-template-areas:'company' 'preferences' 'session' 'export'}.settings-tabs{overflow:auto;white-space:nowrap}.settings-tabs button{padding:9px 13px}.settings-company .form-grid{gap:14px}.settings-preferences>.card,.settings-session>.card,.settings-export>.card{min-height:0}.readings-history .screen-table{max-height:none}.calendar-layout{grid-template-columns:1fr;grid-template-areas:'month' 'detail' 'upcoming' 'notes'}.calendar-month>.card,.calendar-day-detail>.card,.calendar-upcoming>.card{min-height:0}.calendar-title{gap:9px}.calendar-title h3{font-size:16px}.calendar-cell{padding:3px;min-height:58px}.calendar-event{font-size:11px;line-height:12px}.calendar-day-detail .business-history,.calendar-upcoming .business-history{max-height:none}}
@media print{.report-print{padding:0;background:white}.report-print>button,.report-print script{display:none}.report-print .screen-table{overflow:visible}.report-print table{width:100%}.report-print th,.report-print td{font-size:11px;padding:5px}.report-print h1{margin-top:0}@page{size:A4 landscape;margin:12mm}}

/* User-supplied desktop exports: fields 12:872, activities 12:874, products 12:876. */
a.nav-link{text-decoration:none}textarea{border:1px solid #d8e0e6;border-radius:5px;padding:10px;resize:vertical;max-width:100%}
.photo-gallery{display:flex;gap:9px;flex-wrap:wrap}.photo-gallery figure{margin:0;min-width:0;max-width:100%}.record-photo{display:block;width:150px;height:90px;object-fit:cover;border-radius:7px}.product-photo{position:relative;min-width:0}.product-photo .photo-gallery,.product-photo figure,.product-photo figure>a{display:block;width:100%;height:150px}.product-photo .record-photo{width:100%;height:150px;object-fit:cover}.product-photo>button{position:absolute;bottom:7px;right:6px;font-size:11px;padding:5px 8px;background:#10392de8;color:white}.product-photo .product-photo-empty{height:150px;margin:0}.activity-photo-strip .product-photo-empty{min-height:60px;width:100%}.photo-gallery form{font-size:11px;margin:8px 0}.photo-gallery .confirm-label{font-size:11px}
.field-grid>div,.activity-grid>div,.product-grid>div,.product-charts>div{min-width:0}.screen-content{min-width:0}.screen-page .banner-title>.banner-icon{width:43px;height:43px;display:grid;place-items:center;flex-shrink:0}
.banner-icon>.icon{filter:brightness(0) saturate(100%) invert(28%) sepia(28%) saturate(1414%) hue-rotate(96deg) brightness(92%) contrast(92%)}
.row-actions{display:flex;gap:8px;align-items:center}.row-actions a{display:grid;place-items:center;min-width:18px;min-height:20px;text-decoration:none;color:#617184;font-size:14px}.row-actions a:hover{color:var(--green);background:#e4efe8}.business-chart polyline.series-0{stroke:#147139}.business-chart polyline.series-1{stroke:#ff8b1a}
.harvest-progress-card>.card{height:227px;overflow:auto}.harvest-progress-card .metric-progress{margin-block:12px}.harvest-progress-card .metric-progress label{font-size:11px}.harvest-progress-card .metric-progress strong{font-size:11px}.product-grid{align-items:start}.finance-compare-card .business-chart{overflow:visible}.business-chart{overflow:visible}
.stock-grid,.finance-grid,.labor-grid,.harvest-grid{display:grid;gap:12px}.stock-grid>div,.finance-grid>div,.labor-grid>div,.harvest-grid>div{min-width:0}.stock-grid{grid-template-columns:minmax(0,494fr) minmax(0,470fr) minmax(0,415fr);grid-template-areas:'list list detail' 'category state history';margin-top:22px}.stock-list-card{grid-area:list}.stock-detail-card{grid-area:detail}.stock-category-card{grid-area:category}.stock-state-card{grid-area:state}.stock-history-card{grid-area:history}.stock-list-card>.card,.stock-detail-card>.card{min-height:396px}.stock-category-card>.card,.stock-state-card>.card,.stock-history-card>.card{min-height:198px}.stock-grid .donut,.stock-grid .donut>svg{width:125px;height:125px}.stock-grid .distribution{margin:15px 0 0;gap:25px}.stock-grid .legend li{min-height:26px}.business-detail-title{font-size:20px;line-height:27px;margin:17px 10px}.inline-actions{display:flex;justify-content:flex-end;margin-top:-29px;margin-bottom:8px}.inline-actions button{font-size:11px;padding:5px 9px}.metric-progress{margin:17px 4px}.metric-progress>label{display:flex;justify-content:space-between;gap:10px;font-size:11px;margin-bottom:5px}.metric-progress strong{font-size:11px}.metric-progress progress{display:block;width:70%;height:9px;border:0;border-radius:5px;overflow:hidden;accent-color:var(--green);background:#e5ecef}.metric-progress progress::-webkit-progress-bar{background:#e5ecef}.metric-progress progress::-webkit-progress-value{background:var(--green);border-radius:5px}.business-history{max-height:265px;overflow:auto;font-size:11px}.business-history li{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:9px 4px;border-bottom:1px solid var(--line);line-height:17px}.business-history strong{font-weight:500}.business-history small{display:block;color:#75849a;font-size:11px}.business-history li>span{font-weight:600;color:var(--green);white-space:nowrap}.finance-grid{grid-template-columns:minmax(0,657fr) minmax(0,300fr) minmax(0,411fr);grid-template-areas:'trend category compare' 'list detail detail' 'list notes notes'}.finance-trend-card{grid-area:trend}.finance-category-card{grid-area:category}.finance-compare-card{grid-area:compare}.finance-list-card{grid-area:list}.finance-detail-card{grid-area:detail}.finance-notes-card{grid-area:notes;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.finance-trend-card>.card,.finance-category-card>.card,.finance-compare-card>.card{min-height:305px}.finance-grid .distribution{display:grid;justify-content:center;gap:5px;margin:7px 0 0}.finance-grid .donut,.finance-grid .donut>svg{width:135px;height:135px}.finance-grid .donut strong{font-size:17px}.finance-grid .legend{display:flex;flex-wrap:wrap;gap:5px;max-height:92px}.finance-grid .legend li{min-height:20px;font-size:11px}.finance-grid .legend small{display:none}.finance-detail-card>.card{min-height:140px}.finance-detail-card .detail-list{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.finance-detail-card .business-detail-title{margin:5px 0;font-size:16px}.finance-list-card>.card{min-height:310px}.finance-notes-card>.card{min-height:138px}.finance-notes-card .card-head h2{font-size:14px}.business-chart{display:block;width:100%;height:224px;margin-top:15px}.business-chart line{stroke:var(--line)}.business-chart text{font-family:inherit;font-size:11px;fill:#75849a}.business-chart rect.series-0{fill:#147139}.business-chart rect.series-1{fill:#ff8b1a}.chart-legend{display:flex;justify-content:flex-end;gap:16px;font-size:11px;margin:3px 10px}.chart-legend .series-0{color:#147139}.chart-legend .series-1{color:#e77b17}.effect-preview{border:1px solid #a8d4b2;border-radius:7px;background:#eef8f0;padding:12px;font-size:12px;line-height:1.7}.labor-grid{grid-template-columns:1fr 1fr 1.22fr;grid-template-areas:'list list detail' 'chart team detail';margin-top:14px}.labor-list-card{grid-area:list}.labor-detail-card{grid-area:detail}.labor-chart-card{grid-area:chart}.labor-team-card{grid-area:team}.labor-list-card>.card{min-height:360px}.labor-detail-card>.card{min-height:615px}.labor-chart-card>.card,.labor-team-card>.card{min-height:241px}.labor-chart-card .business-chart{height:174px;margin-top:8px}.labor-team-card .distribution{margin:15px 0 0;gap:15px}.labor-team-card .donut,.labor-team-card .donut>svg{width:140px;height:140px}.labor-team-card .legend li{min-height:26px}.worker-profile{display:flex;align-items:center;gap:15px;margin:10px 0 24px}.worker-profile .avatar{width:60px;height:60px;font-size:20px}.worker-profile>div{display:grid;gap:5px}.worker-profile small{font-size:11px;color:#75849a}.worker-profile>.state{margin-left:auto}.worker-totals{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:40px}.worker-totals>div{background:#e9f5ed;padding:17px;border-radius:8px}.worker-totals>div:last-child{background:#f4f6f8}.worker-totals small{display:block;font-size:11px;color:#75849a}.worker-totals strong{display:block;font-size:20px;margin-top:10px}.worker-directory{font-size:11px;margin-top:12px}.worker-directory summary{cursor:pointer;color:var(--green)}.worker-directory p{padding:7px}.labor-detail-card .detail-list>div{min-height:34px}.harvest-grid{grid-template-columns:1.3fr .88fr .92fr;grid-template-areas:'trend distribution progress' 'list list detail';margin-top:7px}.harvest-trend-card{grid-area:trend}.harvest-distribution-card{grid-area:distribution}.harvest-progress-card{grid-area:progress}.harvest-list-card{grid-area:list}.harvest-detail-card{grid-area:detail}.harvest-trend-card>.card,.harvest-distribution-card>.card,.harvest-progress-card>.card{min-height:227px}.harvest-list-card>.card,.harvest-detail-card>.card{min-height:386px}.harvest-trend-card .business-chart{height:162px;margin-top:4px}.harvest-distribution-card .distribution{margin:16px 0 0;gap:12px}.harvest-distribution-card .donut,.harvest-distribution-card .donut>svg{width:125px;height:125px}.harvest-distribution-card .donut strong{font-size:16px}.harvest-distribution-card .legend{font-size:11px}.harvest-distribution-card .legend li{min-height:26px}.harvest-progress-card .metric-progress{margin-block:14px}.harvest-progress-card .metric-progress progress{width:100%}.harvest-detail-card .detail-list>div{min-height:30px}.harvest-detail-card .business-history{max-height:130px}
@media(max-width:1440px){.stock-grid,.finance-grid,.labor-grid,.harvest-grid{grid-template-columns:1fr 1fr;grid-template-areas:none}.stock-grid>div,.finance-grid>div,.labor-grid>div,.harvest-grid>div{grid-area:auto}.stock-list-card,.finance-list-card,.labor-list-card,.harvest-list-card{grid-column:1/-1}.stock-grid .card,.finance-grid .card,.labor-grid .card,.harvest-grid .card{min-height:240px}.finance-grid .distribution{display:flex}.finance-notes-card{grid-column:1/-1}.labor-detail-card{grid-column:1/-1}.harvest-progress-card{grid-column:1/-1}.business-chart{height:185px}}
@media(max-width:780px){.stock-grid,.finance-grid,.labor-grid,.harvest-grid{grid-template-columns:1fr;margin-top:0}.finance-notes-card{grid-template-columns:1fr}.finance-detail-card .detail-list{grid-template-columns:1fr}.finance-grid .distribution{display:flex}.worker-totals{margin-top:20px}.worker-totals strong{font-size:16px}.inline-actions{margin:0 0 8px}.stock-grid .card,.finance-grid .card,.labor-grid .card,.harvest-grid .card{min-height:0}.worker-profile{flex-wrap:wrap}.chart-legend{margin-bottom:15px}.stock-category-card .distribution{margin-bottom:15px}}
.screen-content{padding:0 40px 16px 21px;display:grid;gap:10px}.screen-filters{display:flex;align-items:center;gap:14px;background:white;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);min-height:59px;padding:10px 14px;flex-wrap:wrap}.screen-filters label{display:flex;align-items:center;gap:12px;font-size:11px;flex:1;white-space:nowrap}.screen-filters input,.screen-filters select{height:36px;width:100%;min-width:80px;max-width:180px;font-size:11px;padding:8px 10px}.screen-filters .add-record{margin-left:auto;min-height:36px;max-width:190px;display:flex;align-items:center;gap:8px;font-size:12px;text-align:left;flex-shrink:0;box-shadow:0 2px 4px #123b2525}.add-record>span{font-size:23px;line-height:16px}.filter-apply{font-size:11px;padding:9px}.screen-kpis{display:grid;grid-template-columns:repeat(var(--kpi-count),minmax(0,1fr));gap:10px}.screen-kpis>.kpi{height:78px;align-items:center;gap:18px}.screen-kpis .kpi>div:last-child{padding-top:0}.screen-kpis .kpi small{font-size:11px;line-height:11px;margin-top:0}.screen-content .card-head{min-height:29px}.screen-content .card{padding:11px}.field-grid{display:grid;grid-template-columns:minmax(0,826fr) minmax(0,554fr);grid-template-areas:'map detail' 'list weather';gap:12px 10px}.field-map-card{grid-area:map}.field-detail-card{grid-area:detail}.field-list-card{grid-area:list}.field-weather-card{grid-area:weather}.field-map-card>.card,.field-detail-card>.card{min-height:340px}.field-list-card>.card,.field-weather-card>.card{min-height:277px}.field-map-card .vs3-geo-map,.field-map-card .vs3-geo-mapcanvas{height:289px;margin-top:0}.field-map-card .map-empty{min-height:289px}.field-detail{display:grid;grid-template-columns:38% minmax(0,1fr);gap:14px;min-height:245px}.selected-field-map .vs3-geo-map,.selected-field-map .vs3-geo-mapcanvas{height:245px}.selected-field-map .map-empty{min-height:245px}.selected-field-map .map-empty .icon{display:none}.selected-field-map .map-empty button{display:none}.selected-field-map .map-empty{margin-top:0}.detail-list{font-size:12px}.detail-list>div{display:grid;grid-template-columns:minmax(70px,42%) minmax(0,1fr);gap:8px;border-bottom:1px solid var(--line);min-height:27px;align-items:center;padding:5px 0}.detail-list dt{color:#75849a;overflow-wrap:anywhere}.detail-list dd{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}.detail-actions button{font-size:11px;padding:5px 8px}.danger-text{color:#b32e28}.screen-table{overflow:auto}.screen-table table{font-size:11px;line-height:15px;white-space:normal}.screen-table th{font-size:11px;padding:9px 8px;color:#152d45;font-weight:600;white-space:nowrap}.screen-table td{padding:9px 8px;vertical-align:top}.screen-table tbody tr:nth-child(even){background:#fafbfd}.screen-table tr[data-record-row]{cursor:pointer}.screen-table tr[data-record-row]:hover,.screen-table tr.selected{background:#edf6ef}.screen-table .record-link{color:inherit;text-decoration:none;font-weight:500}.screen-table a{font-size:inherit}.screen-table .record-link:focus-visible{outline-offset:0}.state{font-size:11px;line-height:15px;white-space:nowrap}.state-active,.state-done{color:#14833e}.state-planned{color:#168df4}.state-inactive,.state-cancelled{color:#7c8694}.state-in_progress,.state-ready{color:#825b0f}.pager{display:flex;align-items:center;gap:12px;justify-content:space-between;color:#748398;font-size:11px;padding:13px 7px;margin-top:auto}.pager>div{display:flex;gap:14px;align-items:center}.pager a{text-decoration:none;font-weight:600}.pager small{font-size:11px}.data-note{color:#75849a;font-size:11px;line-height:1.7;margin-top:10px}.field-weather-card .weather{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:20px}.field-weather-card .weather dd{font-size:22px}.activity-grid{display:grid;grid-template-columns:minmax(0,669fr) minmax(0,709fr);gap:12px}.activity-list-card>.card,.activity-detail-card>.card{min-height:621px;display:flex;flex-direction:column}.activity-grid .screen-table{margin-top:5px}.activity-title{display:flex;gap:14px;justify-content:space-between;padding:8px 4px 22px}.activity-title h3{font-size:18px;margin:0 0 8px}.activity-title p{font-size:12px;color:#75849a}.activity-title>div:last-child{text-align:right;white-space:nowrap}.activity-title small{display:block;font-size:11px;margin-top:7px}.detail-tabs{display:flex;justify-content:space-between;border-block:1px solid var(--line);margin-bottom:13px;gap:5px}.detail-tabs button{border:0;border-radius:0;border-bottom:3px solid transparent;font-size:11px;padding:8px 12px;background:none}.detail-tabs [aria-selected=true]{color:var(--green);border-bottom-color:var(--green);font-weight:600}.activity-info-grid{display:grid;grid-template-columns:minmax(0,60fr) minmax(0,40fr);gap:12px}.activity-map .vs3-geo-map,.activity-map .vs3-geo-mapcanvas{height:219px;margin-top:0}.activity-map .map-empty{min-height:219px;margin-top:0}.subcard{padding:12px 11px;border:1px solid var(--line);border-radius:11px;box-shadow:0 2px 8px #152c3b0b;min-width:0;background:#fff}.subcard h3{font-size:16px;line-height:21px;margin:0 0 4px}.subcard>p:not(.data-note){font-size:11px;line-height:1.7}.activity-info-grid>.subcard:not(.activity-description){font-size:11px}.activity-info-grid .detail-list>div{min-height:26px;border:0;padding:2px 0;grid-template-columns:42% minmax(0,1fr)}.activity-info-grid .detail-list dt,.activity-info-grid .detail-list dd{font-size:12px}.activity-description{min-height:90px}.activity-photo-strip{margin-top:12px;min-height:105px}.activity-detail-card .detail-actions{margin-top:auto;padding-top:12px}.product-grid{display:grid;grid-template-columns:minmax(0,747fr) minmax(0,632fr);grid-template-areas:'list detail' 'charts detail';gap:12px}.product-list-card{grid-area:list}.product-list-card>.card{min-height:423px;display:flex;flex-direction:column}.product-detail-card{grid-area:detail}.product-detail-card>.card{min-height:610px}.product-charts{grid-area:charts;display:grid;grid-template-columns:1fr 1.06fr;gap:12px}.product-charts .card{height:184px}.product-charts .distribution{margin:12px 0 0;gap:14px}.product-charts .donut,.product-charts .donut>svg{width:116px;height:116px}.product-charts .legend{font-size:11px}.product-charts .legend li{min-height:27px}.product-charts .legend small{display:none}.stage-chart{height:139px;width:100%;margin-top:2px}.stage-chart line{stroke:var(--line)}.stage-chart text{font-family:inherit;font-size:11px;fill:#75849a}.stage-chart rect{fill:var(--green)}.product-detail-title{display:flex;align-items:center;gap:20px;margin:27px 12px 18px}.product-detail-title h3{font-size:21px;margin:0}.product-progress-row{display:grid;grid-template-columns:60fr 37fr;gap:14px}.product-progress-row .subcard{min-height:150px;padding:20px 17px}.product-progress-row h3{display:flex;justify-content:space-between;font-size:12px}.product-progress-row h3 strong{font-size:16px}.product-progress-row progress{display:block;width:100%;height:11px;margin:18px 0 40px;border:0;border-radius:8px;overflow:hidden;background:#e9eef2;accent-color:#26ad53}.product-progress-row progress::-webkit-progress-bar{background:#e9eef2}.product-progress-row progress::-webkit-progress-value{background:#26ad53;border-radius:8px}.stage-labels{display:flex;justify-content:space-between;font-size:11px;color:#75849a;gap:5px}.current-stage{color:var(--green);font-weight:600}.product-photo-empty{border:1px dashed #cfdbd3;border-radius:8px;background:#f3f7f4;color:#718275;display:grid;place-content:center;text-align:center;font-size:12px;line-height:22px;min-height:150px}.product-info-grid{display:grid;grid-template-columns:45fr 55fr;gap:13px;margin-top:10px}.product-info-grid .detail-list>div{min-height:32px;border:0;grid-template-columns:54% minmax(0,1fr)}.product-info-grid>.subcard>button{margin-top:12px;font-size:11px}.product-observations{display:grid;gap:12px;align-content:start}.observation-list{font-size:11px}.observation-list li{display:flex;align-items:flex-start;gap:10px;justify-content:space-between;line-height:1.6;padding:8px 0;border-bottom:1px solid var(--line)}.observation-list time{color:#75849a;white-space:nowrap}.observation-form{font-size:11px;margin-top:12px}.observation-form summary{cursor:pointer;color:var(--green)}.observation-form form{display:grid;gap:10px;margin-top:10px}.observation-form input{width:100%}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}.polygon-editor summary{padding:8px 0}.geo-editor .vs3-geo-map,.geo-editor .vs3-geo-mapcanvas{height:300px}.geo-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin-top:10px}.geo-controls label{max-width:140px}.geo-controls button{font-size:11px}.geo-editor p{margin-top:9px;color:var(--muted);font-size:11px}.confirm-label{display:flex;align-items:center;gap:10px}.confirm-label input{width:auto}
@media(min-width:1181px){.screen-products{gap:10px}.screen-products .product-grid{margin-top:10px}.screen-activities .screen-filters{gap:10px}.screen-activities .screen-filters label{gap:7px}.screen-activities .screen-filters input,.screen-activities .screen-filters select{min-width:70px}.screen-activities .screen-kpis .kpi{gap:12px}.screen-activities .screen-kpis .kpi-icon{width:49px}}
@media(max-width:1440px){.screen-content{padding-right:20px}.screen-filters{gap:10px}.screen-kpis>.kpi{gap:10px}.screen-kpis .kpi strong{font-size:15px}.screen-kpis .kpi h2{font-size:11px}.screen-filters label{min-width:160px}.screen-filters .add-record{max-width:none}.activity-grid,.product-grid{grid-template-columns:1fr 1fr}.product-info-grid{grid-template-columns:1fr}.activity-info-grid{grid-template-columns:1fr}.selected-field-map{display:none}.field-detail{grid-template-columns:1fr}.field-weather-card .weather{gap:14px}.product-charts .donut,.product-charts .donut>svg{width:95px;height:95px}}
@media(max-width:1180px){.screen-content{padding:12px 20px}.screen-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.field-grid{grid-template-columns:1fr;grid-template-areas:'map' 'detail' 'list' 'weather'}.activity-grid{grid-template-columns:1fr}.activity-list-card>.card{min-height:350px}.activity-info-grid{grid-template-columns:60fr 40fr}.product-grid{grid-template-columns:1fr;grid-template-areas:'list' 'detail' 'charts'}.product-info-grid{grid-template-columns:45fr 55fr}.field-detail{grid-template-columns:38% 1fr}.selected-field-map{display:block}.product-charts .donut,.product-charts .donut>svg{width:116px;height:116px}}
@media(max-width:780px){.screen-content{padding:12px}.screen-filters{gap:12px;padding:12px;align-items:end}.screen-filters label{min-width:calc(50% - 12px);display:grid;gap:6px;white-space:normal}.screen-filters input,.screen-filters select{max-width:none;width:100%}.screen-filters .add-record{width:100%;justify-content:center;max-width:none}.screen-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.screen-kpis>.kpi{height:92px;gap:8px;padding:9px}.screen-kpis .kpi strong{font-size:15px;white-space:normal}.screen-kpis .kpi h2{white-space:normal;font-size:11px}.screen-kpis .kpi-icon{width:39px;height:48px}.screen-kpis .kpi small{font-size:11px}.field-detail{grid-template-columns:1fr}.selected-field-map{display:none}.activity-info-grid,.product-info-grid{grid-template-columns:1fr}.activity-title{display:block}.activity-title>div:last-child{text-align:left;margin-top:10px}.detail-tabs{overflow:auto;justify-content:flex-start}.detail-tabs button{white-space:nowrap;padding-inline:9px;font-size:11px}.product-charts{grid-template-columns:1fr}.product-charts .card{height:200px}.product-progress-row{grid-template-columns:1fr}.product-photo-empty{min-height:90px}.product-detail-title{margin-top:14px}.screen-table table{min-width:570px}.pager{flex-wrap:wrap;gap:10px;font-size:11px}.form-grid{grid-template-columns:1fr}.screen-content .card-head h2{font-size:15px}}

/* Exact desktop slots from Figma 12:870; SVG intrinsic dimensions stay intact. */
@media(min-width:1441px){.search{transform:translateY(-1px)}.search>.icon{transform:translateY(-1.5px)}.banner-title>.icon{margin-top:3px}.nav-link>.icon,.profile-trigger>.icon{transform:translateY(-.5px)}.kpi-icon>.icon{transform:translateY(-1px)}.landscape{margin-bottom:-1px}.sidebar nav{bottom:225px}.today>.icon{transform:translateY(-2px)}}

/* Platform administration shares the farm palette and native form controls. */
.admin-app{min-height:100vh;display:grid;grid-template-columns:238px minmax(0,1fr);background:#f5f7f6;color:#20372c}.admin-sidebar{background:#fff;border-right:1px solid #e3eae5;padding:32px 22px;display:flex;flex-direction:column;gap:36px}.admin-brand{color:#217849;font-size:26px;font-weight:750;text-decoration:none}.admin-brand small,.admin-profile small{display:block;font-size:12px;color:#6a7d70;margin-top:5px}.admin-sidebar nav{display:grid;gap:8px}.admin-sidebar nav a{padding:13px 15px;border-radius:9px;text-decoration:none;color:#55675b;font-size:14px}.admin-sidebar nav a[aria-current]{background:#eaf4ed;color:#217849;font-weight:650}.admin-profile{margin-top:auto;font-size:14px}.admin-profile form{margin-top:15px}.admin-main{padding:35px 40px;min-width:0}.admin-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:28px}.admin-heading p{font-size:11px;letter-spacing:1.2px;color:#7a8a7e}.admin-heading h1{font-size:29px;margin:7px 0}.admin-heading>span{font-size:12px;color:#58715e}.admin-card{background:white;border:1px solid #e0e8e2;border-radius:14px;padding:24px;margin-bottom:22px;box-shadow:0 3px 12px #20372c04}.admin-card h2{font-size:18px;margin:0 0 20px}.admin-card h3{font-size:15px;margin-top:25px}.admin-card p{color:#6a7d70;font-size:13px;line-height:1.7}.admin-card a,.admin-pager a{color:#267c47}.admin-card>form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:950px;margin:18px 0}.admin-card label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#506555;min-width:0}.admin-card input,.admin-card select,.admin-card textarea{width:100%;min-height:42px;border:1px solid #dce5de;border-radius:8px;padding:10px;background:#fff;font:inherit;color:#20372c;box-sizing:border-box}.admin-card button,.admin-profile button{padding:11px 17px;border:1px solid #dce5de;border-radius:8px;background:#fff;color:#2a683f;cursor:pointer;font:inherit;font-size:13px;width:fit-content}.admin-card button.primary{background:#287e49;border-color:#287e49;color:#fff}.admin-card .admin-check{display:flex;flex-direction:row;align-items:center;grid-column:1/-1}.admin-check input{width:18px;height:18px;min-height:18px;flex-shrink:0}.admin-card details{border-top:1px solid #e5ebe6;padding-top:15px;margin-top:20px}.admin-card summary{cursor:pointer;font-weight:600}.admin-card details form{display:grid;gap:14px;margin:20px 0;max-width:700px}.admin-table{overflow-x:auto}.admin-table table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap}.admin-table th{text-align:left;background:#f6f9f6;color:#617467;font-weight:500}.admin-table td,.admin-table th{padding:14px 12px;border-bottom:1px solid #edf0ed}.admin-table small{display:block;color:#8a978d;font-size:11px;margin-top:4px}.admin-pager{display:flex;flex-wrap:wrap;gap:20px;align-items:center;font-size:12px;margin-top:18px;color:#738378}.admin-card>form.admin-filters{display:flex;align-items:end;flex-wrap:wrap;max-width:none;margin-bottom:20px}.admin-filters label{flex:1;min-width:130px}.admin-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:25px}.admin-metrics a{border:1px solid #e0e8e2;background:#fff;border-radius:13px;padding:25px;text-decoration:none;color:#697f6e;font-size:13px}.admin-metrics strong{display:block;margin-top:16px;color:#246c40;font-size:34px}.admin-card pre{overflow:auto;max-height:420px;background:#f5f8f5;padding:16px;font-size:12px;line-height:1.6}.admin-system{display:grid;grid-template-columns:180px 1fr;gap:15px;font-size:14px}.admin-system dd{margin:0}.admin-app :focus-visible{outline:3px solid #62a879;outline-offset:3px}
@media(max-width:900px){.admin-app{grid-template-columns:180px minmax(0,1fr)}.admin-main{padding:24px}.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-sidebar{padding:25px 12px}.admin-heading>span{display:none}}
@media(max-width:600px){.admin-app{display:block}.admin-sidebar{padding:18px;gap:18px;border-right:0;border-bottom:1px solid #e3eae5}.admin-brand{font-size:22px}.admin-sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}.admin-sidebar nav a{padding:10px;font-size:12px}.admin-profile{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.admin-profile form{margin:0 0 0 auto}.admin-main{padding:20px 12px}.admin-heading h1{font-size:24px}.admin-card{padding:18px 14px}.admin-card>form{grid-template-columns:minmax(0,1fr)}.admin-metrics{gap:10px}.admin-metrics a{padding:18px}.admin-system{grid-template-columns:1fr 1fr}.admin-table td,.admin-table th{padding:12px 9px}}
.screen-detailed>.card{margin-top:18px}.numeric-preview{grid-column:1/-1;white-space:normal}.screen-detailed .screen-table small{display:block;color:var(--muted);margin-top:4px}.app-toast{position:fixed;right:20px;bottom:20px;max-width:min(410px,calc(100vw - 32px));background:#173e2b;color:#fff;padding:16px;border-radius:10px;box-shadow:var(--shadow);z-index:90;display:flex;gap:15px;align-items:center}.app-toast button{background:transparent;color:inherit;border-color:#fff7}
.offline-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#edf5ef;border:1px solid #d4e5d8;padding:10px 16px;font-size:12px}.offline-controls button{font-size:12px}.offline-controls a{margin-left:auto}#offline-status{padding:12px 16px;background:#fff8df;color:#70571a;font-size:13px}#offline-queue:not(:empty),#offline-forms:not(:empty){padding:20px;background:white;border:1px solid var(--line);margin:15px;border-radius:10px}#offline-queue p{padding:10px;border-bottom:1px solid var(--line)}#offline-queue button{margin-left:10px}.offline-shell{max-width:860px}.offline-shell .offline-controls{margin-top:15px}.offline-shell #offline-forms>button{margin:7px}.offline-shell .form-grid{display:grid;gap:15px}
/* Long translated headings must grow rather than cover the first row of controls. */
.screen-page>.screen-page .banner-title>div{flex:1;min-width:0}.screen-page 
@media(max-width:780px){.screen-page>}
/* Every menu item stays visible; navigation has no independent scroll region. */
.sidebar{display:flex;flex-direction:column;overflow:visible}.sidebar .brand{height:64px;min-height:64px;flex-shrink:0}.sidebar nav{position:static;flex:1;min-height:0;display:flex;flex-direction:column;gap:2px;margin:8px 10px;overflow:visible;scrollbar-width:auto}.sidebar .nav-link{flex:1 1 0;min-height:0;max-height:40px;height:auto;padding:3px 10px;gap:10px;font-size:clamp(11px,1.5vh,12px);line-height:16px;white-space:nowrap}.sidebar .nav-link .icon{width:18px;height:18px}.sidebar .sidebar-bottom{position:static;height:auto;flex-shrink:0}.sidebar .today{height:64px;padding:10px 18px}.system-customer-bar{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:12px 20px;background:#fff4d9;border-bottom:1px solid #e9d49d;font-size:12px}.system-customer-bar form{margin-left:auto}.admin-entry-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.admin-entry-form label{flex:1;min-width:180px}.admin-table form{margin:0}.admin-table form button{white-space:nowrap}
@media(max-height:540px){.sidebar{width:360px}.workspace{margin-left:360px}.sidebar .brand{height:48px;min-height:48px}.sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 4px;margin:4px 8px}.sidebar .nav-link{max-height:none;font-size:11px;line-height:13px;padding:2px 4px;gap:6px}.sidebar .today{height:42px;padding:4px 16px}.sidebar .today time{font-size:12px}.sidebar .today>img{width:25px;height:25px}}
@media(max-width:780px){.sidebar{width:min(360px,100vw)}.workspace{margin-left:0}.system-customer-bar{padding:10px 12px;gap:8px}}

/* 0.11.1-dev: compact content header, layout overflow and stock correction actions. */
.workspace{min-width:0;position:relative}
.topbar{z-index:45;box-sizing:border-box;gap:14px;justify-content:flex-start}
.topbar-title{display:flex;align-items:center;gap:9px;flex:0 1 290px;min-width:0;padding:0;margin:0;overflow:hidden}
.topbar-title>.banner-icon{display:flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;color:var(--green);background:#edf6ee;border-radius:8px}
.topbar-title>.banner-icon>.icon{width:18px;height:18px}
.topbar-title>div{min-width:0;overflow:hidden}
.topbar-title h1{font-size:17px;line-height:20px;margin:0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-title p{font-size:11px;line-height:14px;margin:0;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.topbar .search{flex:1 1 250px;min-width:110px;max-width:455px;width:auto}
.topbar-right{flex:0 0 auto;margin-left:auto}
.farm-summary{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;box-sizing:border-box;gap:5px 8px;margin:8px 0 0}
.farm-summary>div{box-sizing:border-box;min-width:0;min-height:44px;gap:8px;padding:6px 8px}
.farm-summary>div>span{flex:0 0 24px;width:24px;font-size:20px}
.farm-summary>div>div,.farm-summary dt,.farm-summary dd{min-width:0;overflow-wrap:anywhere}
.farm-summary dd{margin:0}
.row-top>.card:first-child{height:auto;min-height:241px}
.stock-revise-trigger{display:inline-flex;align-items:center;margin:4px 5px 2px 0;padding:5px 9px;border:1px solid #c5dace;background:#f3f9f4;color:#1c603a;border-radius:6px;cursor:pointer;font-size:11px}
.stock-movement-history li{align-items:flex-start;gap:8px}
.stock-movement-history li>div{min-width:0;overflow-wrap:anywhere}
.stock-movement-history li>span{white-space:nowrap;flex-shrink:0}
.stock-revisions{margin-top:12px;padding:8px;border:1px solid var(--line);border-radius:7px}
.stock-revisions>summary{cursor:pointer;font-weight:600}
@media(min-width:781px){.detail-overview-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}}
@media(max-width:1180px){.topbar-title{flex-basis:210px}.topbar-title p{display:none}.topbar .search{min-width:100px}}
@media(max-width:780px){.topbar{z-index:45}.sidebar.open{z-index:80}.topbar-title{flex:0 1 145px;gap:4px}.topbar-title>.banner-icon{display:none}.topbar-title h1{font-size:13px;line-height:18px}.topbar .search{min-width:65px}.detail-overview-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:420px){.topbar{gap:6px}.topbar-title{flex-basis:86px}.topbar .search{min-width:52px}.topbar-right{gap:2px}}

/* Linked personnel and material sources in Faaliyetler - Iscilik & Maliyet. */
#panel-labor .business-history li{gap:12px;align-items:flex-start}
#panel-labor .business-history li>div{min-width:0;overflow-wrap:anywhere}
#panel-labor .business-history li>span{flex-shrink:0;text-align:right}
.activity-labor-action{display:inline-flex;align-items:center;gap:5px;margin:7px 5px 4px 0;padding:7px 11px;border:1px solid #bdd5c4;border-radius:7px;background:#edf6ef;color:#1e6039;font-size:12px;font-weight:600;text-decoration:none}
.activity-labor-action:hover,.activity-labor-action:focus-visible{background:#dff1e4}
@media(max-width:780px){#panel-labor .business-history li{flex-wrap:wrap}#panel-labor .business-history li>span{text-align:left;white-space:normal}}


/* Detailed look: Figma reference. Scoped to .screen-content.screen-detailed only.
 * Sidebar, topbar and shared screen rules deliberately remain unchanged. */
.screen-content.screen-detailed{gap:11px}
.screen-detailed .detail-figma-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);min-width:0}
.screen-detailed .detail-figma-filter-form{display:flex;align-items:center;flex-wrap:wrap;gap:13px;min-width:0;flex:1;margin:0}
.screen-detailed .detail-figma-filter-form label{display:flex;align-items:center;gap:8px;color:#334357;font-size:12px;font-weight:600;min-width:0;white-space:nowrap}
.screen-detailed .detail-figma-filter-form select{background:#f9fbfd;border:1px solid #dbe4ec;border-radius:7px;min-width:136px;max-width:245px;padding:9px 13px;color:#182c40;font-size:12px}
.screen-detailed .detail-figma-filter-form button{padding:9px 12px;font-size:12px;white-space:nowrap}
.screen-detailed .detail-figma-add-activity{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-height:37px;padding:8px 15px;background:#1c603a;color:#fff;border-radius:7px;font-size:12px;font-weight:650;text-decoration:none;box-shadow:0 3px 7px #123f2b20;white-space:nowrap}
.screen-detailed .detail-figma-add-activity:hover,.screen-detailed .detail-figma-add-activity:focus-visible{background:#11492d;color:#fff}
.screen-detailed .detail-figma-kpis{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;min-width:0}
.screen-detailed .detail-figma-kpi{display:flex;align-items:center;gap:9px;min-width:0;min-height:72px;padding:11px 10px;background:#fff;border:1px solid #e9edf0;border-radius:11px;box-shadow:0 3px 12px #2436470b}
.screen-detailed .detail-figma-kpi-icon{display:grid;place-items:center;flex:0 0 28px;color:#21783d}
.screen-detailed .detail-figma-kpi-icon img{width:26px;height:26px;object-fit:contain}
.screen-detailed .detail-figma-kpi:nth-child(2) .detail-figma-kpi-icon,.screen-detailed .detail-figma-kpi:nth-child(3) .detail-figma-kpi-icon{color:#b95b0f}
.screen-detailed .detail-figma-kpi-body{display:block;min-width:0;overflow-wrap:anywhere}
.screen-detailed .detail-figma-kpi-body small{display:block;font-size:11px;color:#4d5969;margin-bottom:4px;line-height:1.3}
.screen-detailed .detail-figma-kpi-body strong{display:block;color:#111e30;font-weight:750;font-size:clamp(12px,1.05vw,17px);line-height:1.18;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.screen-detailed .detail-figma-notice{font-size:12px;color:#925912;padding:7px 10px;background:#fff7e5;border-radius:7px;margin:0}
.screen-detailed .detail-figma-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr) minmax(0,1.15fr);grid-template-areas:'map tasks chart' 'activities labor notes' 'activities stock readings';gap:11px;min-width:0;align-items:stretch}
.screen-detailed .detail-figma-panel{min-width:0;margin:0;border:1px solid #e7ebee;border-radius:12px;background:#fff;padding:11px 12px;box-shadow:0 3px 14px #162e4409;overflow:hidden}
.screen-detailed .detail-figma-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:1px 1px 10px}
.screen-detailed .detail-figma-panel-head h2{display:flex;align-items:center;gap:9px;color:#15253a;font-size:15px;line-height:20px;margin:0;font-weight:750;min-width:0}
.screen-detailed .detail-figma-panel-head h2 .icon{width:19px;height:19px;flex:0 0 19px;color:#186439}
.screen-detailed .detail-figma-panel-head h2 img{max-width:20px;max-height:20px}
.screen-detailed .detail-figma-panel-link{flex:0 0 auto;white-space:nowrap}
.screen-detailed .detail-figma-panel-link a{font-size:11px;text-decoration:none;color:#536274}
.screen-detailed .detail-figma-panel-link a:hover{text-decoration:underline;color:#196640}
.screen-detailed .detail-figma-panel-link a::after{content:' →'}
.screen-detailed .detail-figma-empty{font-size:12px;line-height:1.6;color:#667487;padding:13px 4px;margin:0}
.screen-detailed .detail-figma-map{grid-area:map}
.screen-detailed .detail-figma-map .vs3-geo-map{height:248px;min-height:248px;border-radius:9px;overflow:hidden}
.screen-detailed .detail-figma-map .vs3-geo-mapcanvas{height:100%}
.screen-detailed .detail-figma-map .map-empty{min-height:230px;border-radius:9px}
.screen-detailed .detail-figma-map-meta{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11px;color:#45586a;padding:8px 1px 0}
.screen-detailed .detail-figma-map-meta strong{font-size:12px;color:#17283a;min-width:0;overflow-wrap:anywhere}
.screen-detailed .detail-figma-tasks{grid-area:tasks}
.screen-detailed .detail-figma-tasks-list,.screen-detailed .detail-figma-note-list,.screen-detailed .detail-figma-worker-list{margin:0;padding:0;list-style:none}
.screen-detailed .detail-figma-tasks-list li{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:7px;padding:9px 2px;border-top:1px solid #edf0f2}
.screen-detailed .detail-figma-task-check{color:#47965a;font-size:20px}
.screen-detailed .detail-figma-task-info{min-width:0}
.screen-detailed .detail-figma-task-info a{display:block;overflow-wrap:anywhere;color:#1b2c42;font-size:12px;text-decoration:none;font-weight:600}
.screen-detailed .detail-figma-task-info small{font-size:11px;color:#728093}
.screen-detailed .detail-figma-task-date{text-align:right;min-width:77px}
.screen-detailed .detail-figma-task-date time{display:block;font-size:11px;color:#657286}
.screen-detailed .detail-figma-task-date small{display:block;width:max-content;margin:3px 0 0 auto;font-size:11px;background:#edf2f6;color:#53677a;padding:2px 5px;border-radius:6px}
.screen-detailed .detail-figma-task-date small.urgent{background:#ffe8e5;color:#c74032}
.screen-detailed .detail-figma-chart{grid-area:chart}
.screen-detailed .detail-figma-chart-window{display:flex;justify-content:flex-end;margin:-2px 0 3px;gap:5px;align-items:center}
.screen-detailed .detail-figma-chart-window label{font-size:0}
.screen-detailed .detail-figma-chart-window select{font-size:11px;border-radius:6px;padding:6px;border:1px solid #e2e9ee;background:#fff;color:#3c4c5f}
.screen-detailed .detail-figma-chart-window button{font-size:11px;border:0;background:transparent;color:#456b56;cursor:pointer}
.screen-detailed .detail-figma-chart .business-chart{display:block;width:100%;height:auto;max-height:245px}
.screen-detailed .detail-figma-chart .chart-legend{justify-content:flex-end;gap:10px;flex-wrap:wrap;font-size:11px}
.screen-detailed .detail-figma-activities{grid-area:activities}
.screen-detailed .detail-figma-table-scroll{overflow:auto;width:100%}
.screen-detailed .detail-figma-table{width:100%;border-collapse:collapse;min-width:490px}
.screen-detailed .detail-figma-table thead{background:#eff4f7}
.screen-detailed .detail-figma-table th{font-size:11px;color:#45536a;text-align:left;font-weight:700;padding:10px 8px}
.screen-detailed .detail-figma-table td{font-size:11px;color:#344458;padding:10px 8px;border-bottom:1px solid #edf1f4;vertical-align:middle}
.screen-detailed .detail-figma-table td a{color:#244868;text-decoration:none;font-weight:550}
.screen-detailed .detail-figma-table td:last-child a{font-size:17px}
.screen-detailed .detail-figma-table .state{font-size:11px}
.screen-detailed .detail-figma-labor{grid-area:labor}
.screen-detailed .detail-figma-labor-total{display:grid;gap:2px;padding:8px 1px 11px;border-bottom:1px solid #eef1f3}
.screen-detailed .detail-figma-labor-total span{font-size:11px;color:#69798b}
.screen-detailed .detail-figma-labor-total strong{font-size:19px;color:#142739}
.screen-detailed .detail-figma-labor-total small{font-size:11px;color:#678075}
.screen-detailed .detail-figma-worker-list li{display:flex;align-items:center;gap:7px;padding:7px 2px;border-bottom:1px solid #eef1f3}
.screen-detailed .detail-figma-avatar{flex:0 0 27px;width:27px;height:27px;display:grid;place-items:center;background:#deeee4;color:#27623b;border-radius:50%;font-size:12px;font-weight:800}
.screen-detailed .detail-figma-worker-list li>div{min-width:0;flex:1}
.screen-detailed .detail-figma-worker-list strong{display:block;font-size:11px;color:#283f4f}
.screen-detailed .detail-figma-worker-list small{display:block;font-size:11px;color:#728192;overflow-wrap:anywhere}
.screen-detailed .detail-figma-worker-list li>span:last-child{font-size:11px;color:#3a4f62;font-weight:600;white-space:nowrap}
.screen-detailed .detail-figma-notes{grid-area:notes}
.screen-detailed .detail-figma-note-list li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:7px;padding:9px 3px;border-top:1px solid #edf1f4}
.screen-detailed .detail-figma-note-icon{font-size:16px;color:#22864a}
.screen-detailed .detail-figma-note-list li>div{min-width:0}
.screen-detailed .detail-figma-note-list strong{font-size:11px;color:#1c2c3d}
.screen-detailed .detail-figma-note-list p{font-size:11px;line-height:1.35;color:#677485;margin:3px 0 0;overflow-wrap:anywhere}
.screen-detailed .detail-figma-note-list time{font-size:11px;color:#798495;white-space:nowrap}
.screen-detailed .detail-figma-stock{grid-area:stock}
.screen-detailed .detail-figma-stock-meter{padding:5px 2px}
.screen-detailed .detail-figma-stock-meter>div{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#53606e}
.screen-detailed .detail-figma-stock-meter strong{font-size:11px;color:#152338}
.screen-detailed .detail-figma-stock-meter progress{width:100%;height:9px;display:block;accent-color:#56a35f}
.screen-detailed .detail-figma-stock-meter progress.orange{accent-color:#ff9b35}
.screen-detailed .detail-figma-stock-meter progress.blue{accent-color:#38a2e8}
.screen-detailed .detail-figma-stock-extra{margin-top:8px;font-size:11px;color:#53606e}
.screen-detailed .detail-figma-stock-extra summary{cursor:pointer}
.screen-detailed .detail-figma-stock-extra .detail-list{margin-top:8px}
.screen-detailed .detail-figma-readings{grid-area:readings}
.screen-detailed .detail-figma-reading-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.screen-detailed .detail-figma-reading-grid>div{display:flex;align-items:center;gap:7px;border:1px solid #edf1f4;border-radius:8px;padding:8px 7px;min-width:0}
.screen-detailed .detail-figma-reading-icon{font-size:18px;flex:0 0 23px;text-align:center;color:#138ade}
.screen-detailed .detail-figma-reading-grid small{display:block;font-size:11px;color:#7a8795}
.screen-detailed .detail-figma-reading-grid strong{display:block;font-size:13px;color:#19283a;overflow-wrap:anywhere}
.screen-detailed .detail-figma-readings-date{font-size:11px;color:#78879a;margin:9px 1px 0}
.screen-detailed .detail-figma-archive{background:#fff;border:1px solid #edf1f4;border-radius:10px;min-width:0;padding:12px}
.screen-detailed .detail-figma-archive>summary{cursor:pointer;font-size:12px;font-weight:700;color:#244667}
.screen-detailed .detail-figma-archive>div{display:grid;gap:10px;padding-top:10px;min-width:0}
.screen-detailed .detail-figma-archive .detail-overview-grid{margin-top:0}
.screen-detailed .detail-figma-archive .card{min-width:0}
@media(max-width:1540px){
  .screen-detailed .detail-figma-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
  .screen-detailed .detail-figma-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);grid-template-areas:'map tasks' 'chart chart' 'activities activities' 'labor notes' 'stock readings'}
}
@media(max-width:900px){
  .screen-detailed .detail-figma-filters{align-items:stretch;flex-wrap:wrap}
  .screen-detailed .detail-figma-filter-form{gap:8px}
  .screen-detailed .detail-figma-filter-form label{flex:1 1 140px;display:grid;gap:4px}
  .screen-detailed .detail-figma-filter-form select{max-width:none;min-width:0;width:100%}
  .screen-detailed .detail-figma-add-activity{margin-left:auto}
}
@media(max-width:680px){
  .screen-detailed .detail-figma-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .screen-detailed .detail-figma-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:'map' 'tasks' 'chart' 'activities' 'labor' 'notes' 'stock' 'readings'}
  .screen-detailed .detail-figma-panel{padding:11px}
  .screen-detailed .detail-figma-map .vs3-geo-map{height:220px;min-height:220px}
  .screen-detailed .detail-figma-note-list time{white-space:normal}
  .screen-detailed .detail-figma-reading-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .screen-detailed .detail-figma-archive .detail-overview-grid{grid-template-columns:1fr}
}


/* V3 layout repair: chart geometry, field cards, and error visibility */
/* The error is emitted before .workspace; keep it aligned with the content
   so the fixed sidebar cannot cover the message. Login remains full width. */
body:has(.workspace)>.page-error{position:relative;z-index:42;max-width:100%;overflow-wrap:anywhere}
@media(min-width:781px){
  body:has(.workspace)>.page-error{margin-left:220px;width:calc(100% - 220px)}
}
@media(max-width:780px){body:has(.workspace)>.page-error{margin-left:0;width:100%}}

/* SVGs have intrinsic 560x230 ratios. An explicit height paired with width:100%
   caused xMidYMid letterboxing, shifting bars and plots inside their cards. */
.screen-content .trade-trend .business-chart,
.screen-content .finance-trend-card .business-chart,
.screen-content .finance-compare-card .business-chart,
.screen-content .cost-trend .business-chart,
.screen-content .labor-chart-card .business-chart,
.screen-content .harvest-trend-card .business-chart,
.screen-content .readings-chart .business-chart,
.screen-content .detail-figma-chart .business-chart{
  display:block;width:100%;max-width:100%;min-width:0;
  height:auto;max-height:none;aspect-ratio:560/230;
  margin:7px 0 0;overflow:visible
}
.screen-content :is(.trade-trend,.finance-trend-card,.finance-compare-card,.cost-trend,.labor-chart-card,.harvest-trend-card,.readings-chart,.detail-figma-chart)>.card{min-width:0;overflow:hidden}
.screen-content .chart-legend{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:5px 14px;min-width:0;max-width:100%;margin:5px 0 0;line-height:1.4}
.screen-content .business-chart text{font-variant-numeric:tabular-nums}
.screen-content .distribution{max-width:100%;min-width:0}
.screen-content .distribution .legend{min-width:0;overflow-wrap:anywhere}

/* Align the implicit tracks to content instead of distributing extra free
   vertical space between chart cards, tables and detail rows. */
.screen-content>.trade-grid,
.screen-content>.finance-grid,
.screen-content>.cost-grid,
.screen-content>.labor-grid,
.screen-content>.harvest-grid,
.screen-content>.partner-grid{align-self:start;align-content:start;min-width:0}
.screen-content>.trade-grid{align-items:stretch;grid-auto-rows:max-content}
.screen-content>.trade-grid>div{align-self:stretch;min-width:0}
.screen-content>.trade-grid>div>.card{width:100%;height:100%;min-width:0}
.screen-content>.finance-grid,
.screen-content>.cost-grid,
.screen-content>.labor-grid,
.screen-content>.harvest-grid{align-items:stretch}
.screen-content>.finance-grid>div>.card,
.screen-content>.cost-grid>div>.card,
.screen-content>.labor-grid>div>.card,
.screen-content>.harvest-grid>div>.card{width:100%;min-width:0}

/* Field map and field details share one grid row; stretch both cards
   to the same height while filling the remaining map area with tiles. */
.screen-sites .field-grid{align-items:stretch;align-content:start}
.screen-sites .field-grid>.field-map-card,
.screen-sites .field-grid>.field-detail-card{display:flex;align-self:stretch;min-width:0}
.screen-sites .field-grid>.field-map-card>.card,
.screen-sites .field-grid>.field-detail-card>.card{width:100%;height:100%;min-width:0}
.screen-sites .field-grid>.field-map-card>.card{display:flex;flex-direction:column}
.screen-sites .field-map-card .vs3-geo-map{flex:1 1 auto;min-height:289px;height:auto;margin-top:0}
.screen-sites .field-map-card .vs3-geo-mapcanvas{position:absolute;inset:0;width:100%;height:100%;min-height:0}
.screen-sites .field-detail-card .card-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.screen-sites .field-detail-card .card-head>div:nth-child(2){flex:0 1 auto;min-width:130px}
.screen-sites .field-header-actions{display:flex;flex:1 1 280px;justify-content:flex-end;align-items:center;gap:5px 7px;min-width:0;margin:0 0 0 auto}
.screen-sites .field-header-actions button,.screen-sites .field-header-actions a{
  display:inline-flex;align-items:center;justify-content:center;
  padding:6px 8px;border:1px solid #dce7df;border-radius:6px;
  background:#f7faf8;color:#26603c;font-weight:600;font-size:11px;
  line-height:1.2;text-decoration:none;white-space:nowrap
}
.screen-sites .field-header-actions button:hover,.screen-sites .field-header-actions a:hover{background:#eaf5ed}
.screen-sites .field-header-actions .danger-text{color:#a92c27}
@media(max-width:780px){
  .screen-sites .field-header-actions{justify-content:flex-start;flex-basis:100%}
  .screen-sites .field-map-card .vs3-geo-map{min-height:255px}
}

/* Visible points for 1-point line charts and sparse cash/reading series. */
.business-chart circle.series-0{fill:#147139;stroke:#fff;stroke-width:1}
.business-chart circle.series-1{fill:#ff8b1a;stroke:#fff;stroke-width:1}

[data-activity-completion]{display:grid;gap:14px}
.completion-section{min-width:0;border:1px solid var(--line);border-radius:8px;padding:12px}
.completion-section legend{padding:0 5px;font-weight:650}
.completion-section [data-completion-row]{margin:10px 0;padding:8px 0;border-top:1px solid var(--line)}
.completion-section [hidden]{display:none}
[data-completion-preview] p+p{margin-top:6px}

.harvest-grid>:is(.harvest-trend-card,.harvest-distribution-card){display:grid}
.field-quick-actions{flex-wrap:wrap}


.sale-next{margin:12px 0}
.sale-next p{margin:8px 0}
.sale-technical{padding:10px 0;border-bottom:1px solid var(--line)}
.sale-technical summary{cursor:pointer;font-weight:600}
.stock-source-options{display:grid;gap:8px;margin:12px 0}
.stock-source-options a,.stock-source-options button{display:block;padding:10px;text-align:left}

.activity-detail-card .card-head{align-items:center;flex-wrap:wrap}
.activity-detail-card .activity-complete-action{margin-inline-start:auto}
.topbar-scope{display:flex;align-items:center;gap:8px;flex:0 1 235px;min-width:0}
.topbar-scope label{gap:2px;min-width:0}
.topbar-scope label:last-of-type{flex:1 1 145px}
.topbar-scope label span{font-size:11px;line-height:12px;color:var(--muted)}
.topbar-scope select{width:100%;height:30px;padding:3px 6px;font-size:12px;text-overflow:ellipsis}
@media(max-width:930px){
  .topbar{height:auto;min-height:59px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px 9px;padding-block:7px}
  .topbar-title{grid-column:2;grid-row:1}
  .topbar-right{grid-column:3;grid-row:1}
  .topbar-scope{grid-column:1 / 3;grid-row:2}
  .topbar .search{grid-column:3;grid-row:2;min-width:80px;width:100%}
}

.screen-products .product-grid{grid-template-areas:'list detail'}
.product-detail-card .card-head>.state{margin-inline-start:auto}
.product-panel{padding:10px 0 0}
.product-cycle{margin-top:8px;border:1px solid var(--line);border-radius:8px;padding:10px}
.product-cycle>summary{cursor:pointer}
.product-cycle>summary span{margin-inline-start:8px}
.cycle-extra>.form-grid{margin-top:8px}
#topbar-offline:empty{display:none}
#topbar-offline details{position:relative}
#topbar-offline summary{cursor:pointer;padding:6px 8px;border:1px solid var(--line);border-radius:6px;font-size:12px;white-space:nowrap}
#topbar-offline .offline-controls{position:absolute;top:calc(100% + 8px);right:0;z-index:10;display:grid;width:min(260px,85vw);padding:12px;border-radius:8px;box-shadow:var(--shadow);margin:0}
#topbar-offline .offline-controls a{margin-left:0}
@media(max-width:780px){
  .screen-products .product-grid{grid-template-areas:'list' 'detail'}
  #topbar-offline summary{font-size:11px;padding-inline:5px}
}

.admin-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.admin-overview-grid .vs3-geo-map,.admin-main .vs3-geo-mapcanvas{min-height:250px}
.admin-overview-grid .business-chart{width:100%;height:auto}
@media(max-width:860px){.admin-overview-grid{grid-template-columns:minmax(0,1fr)}}


/* 0.12.8-dev features on top of 0.12.7-dev */
/* 0.12.3-dev — Detailed daily actions and field inventory only.
   Shared sidebar and topbar styles are not modified. */
.screen-detailed .detail-quick-actions{
  background:#fff;border:1px solid var(--line);border-radius:11px;
  padding:12px 14px;min-width:0;box-shadow:var(--shadow)
}
.screen-detailed .detail-quick-actions-heading{
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:5px 12px;margin-bottom:11px
}
.screen-detailed .detail-quick-actions-heading h2{font-size:14px;line-height:19px;margin:0;color:#14293c;font-weight:750}
.screen-detailed .detail-quick-actions-heading>span{font-size:11px;color:#728092}
.screen-detailed .detail-quick-actions-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;min-width:0}
.screen-detailed .detail-quick-link{
  display:flex;align-items:center;justify-content:center;min-width:0;
  gap:8px;min-height:53px;padding:9px 8px;
  border:1px solid #d9e7de;border-radius:8px;
  background:#f7faf8;color:#234338;text-align:center;
  font-weight:650;font-size:11px;line-height:1.35;text-decoration:none;
  cursor:pointer;box-shadow:none
}
.screen-detailed a.detail-quick-link:hover,
.screen-detailed a.detail-quick-link:focus-visible,
.screen-detailed summary.detail-quick-link:hover{
  color:#155c35;background:#e8f5ed;border-color:#9dcbae
}
.screen-detailed .detail-quick-link>.icon{width:20px;height:20px;flex:0 0 20px}
.screen-detailed .detail-quick-link>span{overflow-wrap:anywhere}
.screen-detailed .detail-quick-link.is-primary{color:#fff;background:#1b6b3f;border-color:#1b6b3f}
.screen-detailed .detail-quick-link.is-primary .icon{filter:brightness(0) invert(1)}
.screen-detailed .detail-quick-link.is-primary:hover{color:#fff;background:#12502e}
.screen-detailed .detail-quick-link.is-unavailable{color:#879391;border-color:#e5ebea;background:#f7f9f8;cursor:not-allowed}
.screen-detailed .detail-quick-link.is-unavailable .icon{opacity:.4}
.screen-detailed .detail-quick-link.needs-setup{background:#fff8ed;border-color:#ead9b7}
.screen-sites .field-inventory-grid{
  grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);
  grid-template-areas:"map detail" "list list";
  align-items:stretch;align-content:start
}
.screen-sites .field-inventory-grid>.field-list-card{grid-column:1/-1;min-width:0}
.screen-sites .field-inventory-grid>.field-list-card>.card{min-width:0}
.screen-sites .field-inventory-details{padding:2px 0 4px}
.screen-sites .field-inventory-details .detail-list{margin:0}
.screen-sites .field-inventory-details .detail-list>div{
  min-height:27px;padding:5px 0;
  grid-template-columns:minmax(100px,37%) minmax(0,1fr)
}
.screen-sites .field-inventory-photos{margin-top:13px;padding-top:9px;border-top:1px solid var(--line)}
.screen-sites .field-inventory-photos>summary{font-size:11px;cursor:pointer;font-weight:600;color:#2e6047}
.screen-sites .field-inventory-hint{font-size:11px;line-height:1.6;color:#667489;margin-top:10px}
.screen-sites .field-inventory-hint button{
  border:0;background:transparent;padding:0;color:#216b3d;font-size:inherit;text-decoration:underline
}
.screen-sites .field-inventory-grid .field-map-card .vs3-geo-map{
  width:100%;height:auto;min-height:310px;flex:1 1 auto
}
@media(max-width:1440px){
  .screen-detailed .detail-quick-actions-list{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1180px){
  .screen-sites .field-inventory-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"map" "detail" "list"}
  .screen-sites .field-inventory-grid>.field-list-card{grid-column:1}
}
@media(max-width:640px){
  .screen-detailed .detail-quick-actions{padding:11px}
  .screen-detailed .detail-quick-actions-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .screen-detailed .detail-quick-link{min-height:58px;flex-direction:column;gap:4px;font-size:11px}
  .screen-sites .field-inventory-grid .field-map-card .vs3-geo-map{min-height:255px}
}

/* 0.12.9-dev: OIM-style in-place navigation, without changing sidebar/topbar layout. */
body.vs3-navigating .workspace > main {opacity:.87;transition:opacity .10s ease-out}
body.vs3-navigating .topbar::after {
  content:'';position:absolute;left:0;right:0;bottom:0;height:2px;
  background:linear-gradient(90deg,#2d9557 5%,#98cda8 55%,#2d9557 100%);
  opacity:.8;pointer-events:none
}
@media(prefers-reduced-motion:reduce){body.vs3-navigating .workspace > main{transition:none}}


/* 0.12.10-dev: minimal header, inline scopes, direct action modals and workflow menu */
.topbar .search{display:none!important}
.topbar{gap:13px}
.topbar-scope{
  flex:0 1 435px;min-width:285px;max-width:470px;gap:10px;
  justify-content:flex-start;margin-inline-start:auto
}
.topbar-scope label,.topbar-scope label:last-of-type{
  display:flex;flex-direction:row;align-items:center;gap:7px;min-width:0;
  flex:1 1 50%;white-space:nowrap
}
.topbar-scope label:first-of-type{flex:0 0 auto}
.topbar-scope label:last-of-type{flex:1 1 auto}
.topbar-scope label span{
  display:inline-block;flex:none;font-size:12px;font-weight:750;line-height:16px;
  color:#1b5335;letter-spacing:.02em
}
.topbar-scope select{min-width:0;flex:1 1 auto;max-width:100%;height:34px;font-size:12px;
  border:1px solid #b9d3c3;color:#203b2d;background:#f6faf7;font-weight:600
}
.topbar-right{margin-left:0}
/* All 10 daily actions visible, no dropdown. */
.screen-detailed .detail-quick-actions-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.screen-detailed .detail-quick-link{width:100%;font-family:inherit;box-sizing:border-box}
.screen-detailed .detail-quick-link>img.icon{
  display:block;visibility:visible;opacity:1;flex:0 0 20px;width:20px;height:20px;
  min-width:20px;min-height:20px;object-fit:contain;filter:none
}
.screen-detailed .detail-quick-link.is-primary>img.icon{filter:brightness(0) invert(1)}
.screen-detailed .detail-quick-link.is-unavailable>img.icon{opacity:.38}
.screen-detailed .detail-quick-link[aria-busy="true"]{opacity:.65;pointer-events:none}
.quick-picker-list{display:grid;gap:8px;margin-top:14px}
.quick-picker-list a{display:block;padding:11px 12px;border:1px solid #d7e9db;
  background:#f5faf6;border-radius:8px;color:#175b32;text-decoration:none;font-size:12px}
.quick-picker-list a:hover{background:#e4f3e8}
.quick-modal-error{color:#9d2828;background:#fff0ed;border:1px solid #ecc4c0;
  border-radius:8px;padding:10px 12px;font-size:12px;line-height:1.6}
.quick-feedback{position:fixed;bottom:20px;right:20px;z-index:9999;
  background:#1d5634;color:white;padding:12px 16px;border-radius:9px;
  box-shadow:0 8px 30px #163b2e40;font-size:12px;max-width:410px;cursor:pointer}
.quick-feedback[hidden]{display:none}
/* Buttons are inside the Worker's card header rather than below the KPIs. */
.labor-detail-card .card-head{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.labor-detail-card .card-head>div:not(.labor-header-actions){flex:0 1 auto;min-width:0}
.labor-detail-card .labor-header-actions{
  display:flex;justify-content:flex-end;flex-wrap:wrap;gap:5px;
  align-items:center;margin:0 0 0 auto;min-width:0;max-width:100%
}
.labor-detail-card .labor-header-actions button{
  padding:5px 8px;font-size:11px;line-height:17px;border:1px solid #cdded2;
  color:#21633c;background:#f4faf6;border-radius:6px;white-space:nowrap
}
.labor-detail-card .labor-header-actions button:hover{background:#e4f3e8}
@media(max-width:1440px){
 .screen-detailed .detail-quick-actions-list{grid-template-columns:repeat(5,minmax(0,1fr))}
 .topbar-title{flex-basis:230px}
}
@media(max-width:1110px){
 .screen-detailed .detail-quick-actions-list{grid-template-columns:repeat(3,minmax(0,1fr))}
 .topbar-scope{flex-basis:390px;min-width:240px}
}
@media(max-width:930px){
 .topbar{grid-template-columns:auto minmax(0,1fr) auto}
 .topbar-scope{grid-column:2 / 4;grid-row:2;min-width:0;max-width:100%;margin:0}
 .topbar-right{grid-column:3;grid-row:1}
}
@media(max-width:640px){
 .screen-detailed .detail-quick-actions-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .topbar-scope{gap:8px;flex-wrap:wrap}
 .topbar-scope label{gap:5px}
 .topbar-scope label span{font-size:11px}
 .topbar-scope select{height:32px;font-size:11px}
 .labor-detail-card .labor-header-actions{justify-content:flex-start;margin:4px 0 0;width:100%}
}

/* 0.12.11-dev: ten compact actions in a single horizontal row.
   When available width is smaller, scroll the actions instead of wrapping them. */
.screen-detailed .detail-quick-actions-list{
  display:grid;
  grid-template-columns:repeat(10,minmax(135px,1fr));
  gap:7px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:2px 1px 9px;
  min-width:0;
  max-width:100%;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  scrollbar-color:#b3c7ba transparent;
}
.screen-detailed .detail-quick-actions-list>.detail-quick-link{
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  flex-wrap:nowrap;
  white-space:nowrap;
  gap:7px;
  width:100%;
  min-height:49px;
  padding:8px 7px;
  font-size:11px;
  line-height:1.25;
}
.screen-detailed .detail-quick-actions-list>.detail-quick-link>span{
  white-space:nowrap;
  overflow:visible;
  overflow-wrap:normal;
}
/* Figma assets are mixed: Cart, Users, Box and File have WHITE strokes.
   Normalize all quick-action icon rasters to an accessible forest green,
   regardless of the original white/orange/green SVG strokes. */
.screen-detailed .detail-quick-actions-list>.detail-quick-link>img.icon{
  width:19px;
  height:19px;
  min-width:19px;
  min-height:19px;
  flex:0 0 19px;
  display:block;
  visibility:visible;
  opacity:1;
  object-fit:contain;
  filter:brightness(0) saturate(100%) invert(29%) sepia(37%) saturate(773%) hue-rotate(94deg) brightness(90%) contrast(92%);
}
.screen-detailed .detail-quick-actions-list>.detail-quick-link.is-primary>img.icon{
  filter:brightness(0) invert(1);
  opacity:1;
}
.screen-detailed .detail-quick-actions-list>.detail-quick-link.is-unavailable{
  color:#61726b;
}
.screen-detailed .detail-quick-actions-list>.detail-quick-link.is-unavailable>img.icon{
  filter:brightness(0) invert(42%);
  opacity:1;
}
/* Earlier responsive layouts switch to two or three columns. Keep one row. */
@media(max-width:1440px){
  .screen-detailed .detail-quick-actions-list{grid-template-columns:repeat(10,minmax(135px,1fr))}
}
@media(max-width:1110px){
  .screen-detailed .detail-quick-actions-list{grid-template-columns:repeat(10,minmax(135px,1fr))}
}
@media(max-width:640px){
  .screen-detailed .detail-quick-actions-list{grid-template-columns:repeat(10,minmax(135px,1fr))}
  .screen-detailed .detail-quick-actions-list>.detail-quick-link{flex-direction:row;min-height:49px;gap:7px;font-size:11px}
}

/* 0.12.12-dev — Ürün kataloğu, tarlaya ekimden önce tanımlanır. */
.cycle-product-helper{grid-column:1/-1;margin:0 0 3px;font-size:11px;color:#62748a;line-height:1.5}
.cycle-product-link{color:#19693d;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.cycle-product-link:hover{color:#10572f}
.cycle-product-message{margin:12px 0;padding:13px 15px;border:1px solid #d4e6db;background:#f5faf7;
  border-radius:9px;color:#365747;font-size:12px;line-height:1.6}
.cycle-product-add{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;
  background:#17683b;color:#fff;border:1px solid #17683b;border-radius:7px;padding:9px 14px;
  font-weight:700;font-size:12px}
.cycle-product-add:hover{background:#10552f;color:#fff}

/* Tarım Üretici Yönetimi */
.admin-app{grid-template-columns:236px minmax(0,1fr);background:#f4f7f5}
.admin-sidebar{position:sticky;top:0;height:100dvh;min-height:0;padding:20px 12px 12px;gap:20px;overflow:hidden}
.admin-sidebar nav{gap:3px;overflow:auto;min-height:0;scrollbar-width:thin;padding:2px}
.admin-sidebar nav a{display:flex;align-items:center;gap:10px;padding:9px 10px;font-size:13px;line-height:1.3;min-height:36px}
.admin-sidebar nav a:hover{background:#f1f7f3;color:#1c6942}
.admin-sidebar nav a[aria-current]{background:#e6f3eb;color:#1c6942}
.admin-sidebar .icon{width:17px;height:17px;flex:none}
.admin-brand{display:flex;align-items:center;gap:10px;padding:0 8px;color:#19372a;font-size:22px;line-height:1.1}
.admin-brand>strong>span{color:#23804d}
.admin-brand>.icon{width:34px;height:34px;padding:7px;border-radius:9px;background:#e6f3eb}
.admin-brand small{margin-top:5px;font-weight:550;font-size:11px}
.admin-profile{display:flex;align-items:center;gap:10px;flex:none;padding:12px 6px 4px;border-top:1px solid #e3eae5;overflow-wrap:anywhere}
.admin-avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#e6f3eb;color:#1c6942;font-weight:700}
.admin-profile small{margin-top:2px}
.admin-main{padding:0 24px 24px}
.admin-heading{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid #e3eae5;margin:0 -24px 20px;padding:11px 24px;min-height:58px}
.admin-heading h1{font-size:19px;line-height:1.2;margin:0;color:#19372a}
.admin-top-actions{display:flex;align-items:center;gap:12px;min-width:0}
.admin-top-actions a{color:#226f46;font-size:13px;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-top-actions form{margin:0;flex:none}
.admin-top-actions button{background:#fff;border:1px solid #dce5de;border-radius:8px;padding:7px 10px;color:#24583a;cursor:pointer;font:inherit;font-size:12px}
.admin-card{min-width:0}
@media(max-width:900px){.admin-app{grid-template-columns:193px minmax(0,1fr)}}
@media(max-width:600px){
  .admin-sidebar{position:static;height:auto;padding:12px;gap:10px}
  .admin-sidebar nav{display:flex;overflow-x:auto;gap:4px;padding:2px 2px 6px}
  .admin-sidebar nav a{flex:0 0 auto;min-width:max-content}
  .admin-sidebar .admin-profile{display:none}
  .admin-main{padding:0 12px 16px}
  .admin-heading{margin:0 -12px 14px;padding:8px 12px;min-height:49px}
  .admin-heading h1{font-size:17px}
  .admin-top-actions{gap:6px;max-width:45%}
}

/* Müşteri paneli tablo işlemleri ve alan düzenleyicisi */
th, .screen-table th, .report-print th, .screen-detailed .detail-figma-table th { font-size: 12px; }
.app .row-actions :is(a, button) {
  display: grid; place-items: center; min-width: 20px; min-height: 22px;
  padding: 0; border: 0; border-radius: 4px; background: transparent;
  color: #425569; font-size: 16px; font-weight: 600; line-height: 1;
}
.app .row-actions :is(a, button):hover { color: var(--green); background: #e4efe8; }
dialog:is(#new-sites, #edit-site) { width: min(1100px, calc(100vw - 32px)); max-width: none; }
.site-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.site-form-layout .polygon-editor { margin: 0; min-width: 0; }
.site-form-layout h3 { margin: 0; }
.site-form-layout .vs3-geo-map, .site-form-layout .vs3-geo-mapcanvas { height: clamp(225px, 41vh, 450px); }
@media (max-width: 760px) { .site-form-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

.topbar-scope{margin-inline-start:0;min-width:0}
.topbar-right{margin-inline-start:auto}
@media(max-width:930px){
  .topbar{grid-template-columns:minmax(0,1fr) auto}
  .topbar-scope{grid-column:1;grid-row:1}
  .topbar-right{grid-column:2;grid-row:1}
}
@media(max-width:780px){
  .topbar{grid-template-columns:auto minmax(0,1fr) auto}
  .topbar-right{grid-column:3}
  .topbar-scope{grid-column:1 / -1;grid-row:2;justify-self:start;width:min(100%,470px)}
}

.readings-grid{grid-template-columns:minmax(0,1fr);min-width:0}.readings-row-charts{min-width:0}
.readings-row-map,.readings-row-tables,.readings-chart-row{display:grid;gap:12px;min-width:0}
.readings-row-map{grid-template-columns:minmax(0,3fr) minmax(0,1fr)}
.readings-row-tables{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
.readings-chart-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.readings-row>div,.readings-charts{min-width:0}
.readings-map>.card,.readings-alerts>.card,.readings-table>.card{height:100%;box-sizing:border-box}
.readings-map .vs3-geo-map,.readings-map .vs3-geo-mapcanvas{height:320px}
.readings-alerts>.card{max-height:402px;overflow:auto}
.readings-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.readings-chart-heading :is(h2,h3){margin:0;font-size:14px}
.readings-chart-heading [data-remove-chart]{padding:3px 10px}
.readings-chart-cards{display:grid;gap:12px}.readings-chart-controls{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.readings-chart-controls select{max-width:110px}.readings-chart-controls button{min-width:34px;padding:4px 7px}.readings-chart-legend{margin:0;padding:0;display:flex;gap:5px 12px;flex-wrap:wrap;list-style:none;font-size:12px}.readings-chart-legend i,.stock-category-summary li i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.readings-series-options{max-height:min(45vh,340px);overflow:auto;display:grid;gap:7px}.readings-series-options label{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0}
.readings-chart{min-width:0}
.readings-chart .combined-chart-stage{height:260px}
.readings-chart .combined-chart-stage:focus-visible{outline:2px solid var(--green)}
.readings-chart .combined-chart-stage>svg{display:block;width:100%;height:100%}
.readings-chart .combined-chart-empty{display:grid;place-items:center;min-height:160px;color:var(--muted);text-align:center}
.readings-chart .combined-band{fill:#ecf4ef;fill-opacity:1}
.readings-chart .combined-grid{stroke:#dce7df;stroke-width:1}
.readings-chart .combined-line{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.readings-chart .combined-axis-label,.readings-chart .combined-x-label{font-size:14px}
.readings-chart .combined-axis-title{font-size:15px;font-weight:700}
.readings-chart .combined-x-label{fill:#526b5d}
.readings-chart .combined-cursor{stroke:#68877b;stroke-dasharray:4 3}
.readings-chart .combined-tooltip{background:#193b31;color:#fff;border-radius:7px;padding:8px 10px;font-size:16px}
.readings-chart .combined-tooltip span{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:5px}
.readings-chart .tooltip-color-dot{width:9px;height:9px}
.readings-table .screen-table{max-height:440px}
.readings-table table{min-width:0}
.readings-table th{font-size:13px;background:#f4f8f5;text-transform:none;white-space:normal}
.readings-table td{font-size:13px;vertical-align:middle}
.readings-table td small{display:block;color:var(--muted);margin-top:3px}
.reading-sensor-link{border:0;padding:0;background:none;text-align:left;font-weight:700;color:var(--green)}
.agri-device-portal tr:target{background:#edf8ef;scroll-margin-top:90px}
@media(max-width:900px){.readings-row-map,.readings-row-tables{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){.readings-chart-row{grid-template-columns:minmax(0,1fr)}}

dialog:is(#new-warehouse,[id^="edit-warehouse-"]){width:min(1100px,calc(100vw - 32px));max-width:none}
.warehouse-form-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
.warehouse-form-layout h3{margin:0 0 8px}
.warehouse-form-layout .vs3-geo-map,.warehouse-form-layout .vs3-geo-mapcanvas{height:clamp(245px,42vh,450px)}
.warehouse-fields{display:grid;gap:10px}
.warehouse-coordinates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.warehouse-coordinates input{width:100%;min-width:0;box-sizing:border-box}
@media(max-width:760px){.warehouse-form-layout{grid-template-columns:minmax(0,1fr);gap:16px}}
.vs3-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.readings-table .reading-state-good td{background:#f3faf6}
.readings-table .reading-state-warn td{background:#fff8e9}
.readings-table .reading-state-good td:first-child{box-shadow:inset 3px 0 #4b9b72}
.readings-table .reading-state-warn td:first-child{box-shadow:inset 3px 0 #c39532}

/* Stock overview */
.screen-stock .screen-table :is(th,td){font-size:13px}
.screen-stock .stock-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"list list detail" "category state history";align-items:start}
.screen-stock .stock-list-card{grid-column:auto;grid-area:list}
.screen-stock .stock-detail-card{grid-area:detail}
.screen-stock .stock-category-card{grid-area:category}
.screen-stock .stock-state-card{grid-area:state}
.screen-stock .stock-history-card{grid-area:history}
.screen-stock .stock-grid .card{min-height:0}
.stock-list-card .screen-table table{min-width:700px;border-collapse:separate;border-spacing:0}
.stock-list-card .screen-table th{background:#eef3f7;text-transform:none;white-space:nowrap}
.stock-list-card td{white-space:nowrap;vertical-align:middle}
.stock-list-card td:first-child{white-space:normal;min-width:145px}
.stock-list-card tr.selected td{background:#e7f1fb}
.stock-item-name{display:flex;align-items:center;gap:8px}
.stock-item-icon{display:grid;place-items:center;width:29px;height:29px;flex:none;border-radius:8px;background:#edf5ef;color:#287346;font-size:19px}
.stock-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:7px;padding:3px 8px;font-size:12px;line-height:1.4;font-weight:700;background:#eef1f4;color:#536275;white-space:nowrap}
.stock-pill.stock-category-seed{background:#dbf2e1;color:#23623d}
.stock-pill.stock-category-fertilizer{background:#fff0d8;color:#874e16}
.stock-pill.stock-category-protection{background:#fbe5e3;color:#9d302e}
.stock-pill.stock-category-equipment{background:#e0effc;color:#285d9e}
.stock-tone-good{--stock-meter:#38a34c;color:#27683e}
.stock-tone-low{--stock-meter:#e77c2f;color:#ad430d}
.stock-tone-critical{--stock-meter:#e4473c;color:#b02923}
.stock-pill.stock-tone-good{background:#dbf2e1}
.stock-pill.stock-tone-low,.stock-pill.stock-tone-critical{background:#fde8e3}
.stock-meter{display:flex;align-items:center;gap:8px}
.stock-meter progress{appearance:none;flex:1 1 auto;width:100%;height:9px;border:0;border-radius:8px;overflow:hidden;background:#e5ebef}
.stock-list-card .stock-meter progress{width:74px}
.stock-meter progress::-webkit-progress-bar{background:#e5ebef}
.stock-meter progress::-webkit-progress-value{background:var(--stock-meter,#8da1af);border-radius:8px}
.stock-meter progress::-moz-progress-bar{background:var(--stock-meter,#8da1af);border-radius:8px}
.stock-row-more{display:inline-block;padding:4px 10px;font-weight:800}
.stock-product-main{display:grid;grid-template-columns:minmax(74px,27%) minmax(0,1fr);gap:12px;align-items:start;margin-top:4px}
.stock-product-main>.stock-item-icon{width:100%;height:auto;aspect-ratio:1;font-size:38px;background:linear-gradient(#edf3ee,#e5ece8)}
.stock-product-main h3{font-size:17px;line-height:1.3;margin:0 0 4px;overflow-wrap:anywhere}
.stock-product-facts{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:6px 8px;margin:10px 0;font-size:13px}
.stock-product-facts dd{margin:0;overflow-wrap:anywhere}
.stock-product-facts dt{color:var(--muted)}
.stock-product-facts dd strong{font-size:15px}
.stock-detail-card .detail-list{border-block:1px solid var(--line);padding:8px 0;margin:6px 0;display:block}
.stock-detail-card .detail-list>div{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:8px;padding:3px 0;border:0}
.stock-detail-card .detail-list :is(dt,dd){padding:0;margin:0;font-size:13px;overflow-wrap:anywhere}
.stock-product-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px 7px;margin:12px 0;font-size:12px}
.stock-product-actions div span,.stock-product-actions div strong{display:block}
.stock-product-actions div span{color:var(--muted)}
.stock-product-actions button{padding:6px 8px;border:1px solid var(--line);border-radius:7px;text-decoration:none;font-weight:700;text-align:center}
.stock-detail-card .detail-actions{flex-wrap:wrap}
.stock-category-summary{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:center}
.stock-category-summary ul{list-style:none;display:grid;gap:6px;padding:0;margin:0;font-size:13px}
.stock-category-summary li{display:grid;grid-template-columns:auto minmax(0,1fr) auto 34px;align-items:center;gap:6px;padding:4px 0;border-bottom:1px solid var(--line)}
.stock-category-summary li small{text-align:right;color:var(--muted)}
.stock-status-line{display:grid;gap:4px;margin:11px 0;font-size:13px}
.stock-status-line>span{font-weight:650}
.stock-status-line .stock-meter strong{width:64px;color:var(--text)}
.stock-status-line small{width:35px;text-align:right}
@media(max-width:830px){.screen-stock .stock-grid{grid-template-areas:"list" "detail" "category" "state" "history";grid-template-columns:minmax(0,1fr)}}
@media(max-width:430px){.stock-category-summary{grid-template-columns:minmax(0,1fr)}.stock-category-summary .donut{margin:auto}}
.readings-history .screen-table th{font-size:13px}
.readings-history .screen-table td{font-size:12px}


.stock-detail-card .card-head{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}
.stock-detail-actions{margin:0 0 0 auto;display:flex;justify-content:flex-end;gap:6px}
.stock-detail-card .stock-detail-actions button{font-size:12px;font-weight:700;padding:7px 9px;border-radius:7px}
.stock-detail-card .stock-detail-actions button:not(.primary),.stock-product-actions button{background:#f1f8f3;color:#205a37;border:1px solid #b5d0bc}
.stock-detail-actions button:hover,.stock-product-actions button:hover{filter:brightness(.96)}
.stock-product-photo{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:#edf3ee}
.stock-edit-photos{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}
.stock-edit-photos h3{margin:0 0 10px}
.stock-edit-photos .photo-upload-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.stock-edit-photos .photo-upload-choices form{min-width:0}
.stock-edit-photos input[type=file]{width:100%;min-width:0}
dialog:is(#stock-purchase,#new-direct-purchase,#new-suppliers),dialog:has(.purchase-form-grid [name=purchase_payment]){width:min(800px,calc(100vw - 32px));max-width:none}
.purchase-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
.purchase-form-grid label{min-width:0;margin:0}
.purchase-form-grid :is(input,select,textarea){width:100%;min-width:0;box-sizing:border-box}
.purchase-form-notes{grid-column:1/-1}
.purchase-delivery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;border:0;min-inline-size:0}
.purchase-delivery legend{margin-bottom:6px;font-weight:600}
.purchase-delivery label{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.purchase-delivery label:has(:checked){border-color:var(--green);background:#f2f8f4}
.purchase-delivery input[type=radio]{width:auto;min-width:auto;padding:0;margin:0}
.screen-purchase-expenses .screen-filters{flex-wrap:wrap}
.purchase-table-state{display:block;color:var(--muted);margin-top:3px}
.stock-consume-selection{padding:10px;background:#f2f8f4;border:1px solid var(--line);border-radius:7px}
@media(max-width:520px){.purchase-form-grid,.stock-edit-photos .photo-upload-choices{grid-template-columns:minmax(0,1fr)}}


.sidebar-group{flex:1 1 0;min-width:0;min-height:18px;max-height:40px}
.sidebar-group[open]{flex:0 0 auto;max-height:none}
.sidebar-group>summary.nav-link{list-style:none;cursor:pointer}
.sidebar-group:not([open])>summary.nav-link{height:100%}
.sidebar-group[open]>summary.nav-link{min-height:24px}
.sidebar-group>summary::-webkit-details-marker{display:none}
.sidebar-caret{margin-inline-start:auto}
.sidebar-group[open]>summary .sidebar-caret{transform:rotate(180deg)}
.sidebar-group-links{display:grid;gap:2px;margin:3px 0 5px 18px;border-inline-start:1px solid #ffffff38;padding-inline-start:5px}
.sidebar .sidebar-group-links .nav-link{min-height:24px;padding:3px 8px;color:#e5f2eb}
.sidebar nav:has(.sidebar-group[open]){display:flex;overflow-y:auto;scrollbar-width:thin}
.sidebar nav:has(.sidebar-group[open])>.nav-link{min-height:24px}
@media(max-height:540px){.sidebar-group-links{grid-template-columns:repeat(2,minmax(0,1fr))}}

.purchase-breadcrumb{display:flex;gap:9px;align-items:center;font-size:13px;padding:2px 0 5px}
.purchase-breadcrumb a{color:var(--green)}
.card-head:has(>.purchase-header-action){align-items:center}
.card-head>.purchase-header-action{margin-inline-start:auto}
.purchase-detail-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:12px;align-items:start}
.purchase-detail-layout>div{min-width:0}
.purchase-detail-layout .business-history li{flex-wrap:wrap;overflow-wrap:anywhere}
@media(max-width:900px){.purchase-detail-layout{grid-template-columns:minmax(0,1fr)}}

.supplier-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.supplier-history>div{min-width:0}
@media(max-width:1100px){.supplier-history{grid-template-columns:minmax(0,1fr)}}

dialog:is(#new-customers,.screen-customers #edit-partner){width:min(800px,calc(100vw - 32px));max-width:none}

dialog:is(#new-sales,#new-direct-sale,#add-sale-delivery){width:min(800px,calc(100vw - 32px));max-width:none}
.order-header-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.sale-payment-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:520px){.sale-payment-choices{grid-template-columns:minmax(0,1fr)}}

.order-detail-side{display:grid;gap:12px}
.order-overview .screen-table{max-height:270px}
.order-overview .order-due-late td{background:#f9d9d6;color:#70251e}
.order-overview .order-due-urgent td{background:#fff0ec}
.order-overview .order-due-soon td{background:#fff4dc}
.order-overview .order-due-planned td{background:#edf6ee}

dialog[id^="edit-cash-"],dialog:has([name="action"][value="correct_trade_order"]){width:min(720px,calc(100vw - 32px));max-width:none}

dialog:has([data-trade-lines]){width:min(880px,calc(100vw - 32px));max-width:none}
.trade-line{min-width:0;margin:0 0 10px;padding:10px 12px 12px;border:1px solid var(--line,#dce5ed);border-radius:8px}
.trade-line legend{padding:0 5px;font-weight:600}
.trade-line [data-remove-trade-line]{grid-column:1/-1;justify-self:end}
@media(max-width:520px){.trade-line [data-remove-trade-line]{justify-self:start}}

dialog#new-direct-sale{width:min(1240px,calc(100vw - 32px));max-width:none}
.sale-line.purchase-form-grid{min-width:1010px;grid-template-columns:minmax(120px,1.4fr) minmax(112px,1.1fr) minmax(148px,1.7fr) 86px 77px 116px 66px minmax(82px,1fr) 88px 34px;gap:8px;align-items:end}
:is(.sale-line,.purchase-line) :is(label,.sale-line-total){font-size:12px;line-height:1.3}
:is(.sale-line,.purchase-line) :is(input,select,button,output){min-height:36px;padding:7px 8px;font-size:13px}
:is(.sale-line,.purchase-line) [data-remove-trade-line]{grid-column:auto;justify-self:stretch;font-size:17px;line-height:1}
.sale-line-total{display:grid;gap:7px}
.sale-line-total output{display:grid;align-items:center;border:1px solid var(--line);border-radius:5px;background:#f3f7f4;font-variant-numeric:tabular-nums;font-weight:650;overflow-wrap:anywhere}
.sale-discount-toggle{white-space:nowrap}
.sale-discount-toggle[aria-expanded=true]{border-color:var(--green);color:var(--green)}
.sale-line-weight{grid-column:4/6}
.sale-line-discount{grid-column:6/-1;justify-self:start;display:flex;gap:8px;align-items:end;width:min(100%,270px)}
.sale-line-discount label{flex:1}
.sale-line-discount button{min-width:36px}
.sale-totals{justify-self:end;width:min(100%,320px);border:1px solid var(--line);border-radius:8px;padding:10px 14px;background:#f6f9f7;font-variant-numeric:tabular-nums}
.sale-totals>div{display:flex;justify-content:space-between;gap:10px;padding:5px 0}
.sale-totals>div:last-child{border-top:1px solid var(--line);margin-top:5px;padding-top:10px;font-weight:700}

dialog:is(#new-direct-purchase,#stock-purchase){width:min(1000px,calc(100vw - 32px))}
.trade-lines-scroll{overflow-x:auto;padding:0 4px 4px}
.purchase-line.purchase-form-grid{min-width:790px;grid-template-columns:minmax(165px,2fr) 86px 92px minmax(116px,1fr) 66px minmax(82px,1fr) 88px 34px;gap:8px;align-items:end}
.purchase-line .sale-line-weight{grid-column:2/4}
.purchase-line .sale-line-discount{grid-column:4/-1}
.sale-totals{margin:12px 0 0 auto}

.dashboard .row{gap:12px;margin:0;align-items:stretch}
.dashboard .row-top{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard :is(.row-middle,.row-bottom){grid-template-columns:repeat(3,minmax(0,1fr))}
.dashboard .row>.card{height:auto;min-height:210px}
.dashboard .row>.card:last-child{grid-column:auto}
.dashboard .row-top .card{min-height:0}
.dashboard .row-top :is(.vs3-geo-map,.vs3-geo-mapcanvas,.map-empty){height:350px}
.dashboard .row-top .farm-summary{grid-auto-rows:minmax(76px,auto);gap:10px;margin-top:16px}
.dashboard .row-bottom .stock-list{max-height:180px;overflow:auto}
.vs3-geo-warehouse-badge{position:absolute;transform:translate(-50%,calc(-100% - 7px));max-width:150px;padding:4px 8px;border:1px solid #fff9;border-radius:5px;background:#71410b;color:#fff;font-size:11px;font-weight:700;overflow-wrap:anywhere}
.vs3-geo-warehouse-badge::after{content:"";position:absolute;top:100%;left:50%;width:9px;height:9px;transform:translate(-50%,3px);border:2px solid #fff;border-radius:50%;background:#e5a23b}
.settings-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px}
.settings-category-list{display:flex;flex-wrap:wrap;gap:8px;padding-top:8px}
.settings-category-list li{padding:4px 8px;border-radius:5px;background:#edf5ef;color:var(--green);font-size:12px}
@media(max-width:1023px){
  .dashboard :is(.row-middle,.row-bottom){grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard :is(.row-middle,.row-bottom)>.card:last-child{grid-column:1/-1}
}
@media(max-width:780px){
  .dashboard :is(.row-top,.row-middle,.row-bottom){grid-template-columns:minmax(0,1fr)}
  .dashboard .row-top :is(.vs3-geo-map,.vs3-geo-mapcanvas,.map-empty){height:280px}
}

/* 0.13.33: Firma Bilgileri ve Kategoriler sekmelerinin ayrıştırılmış görünümü */
.settings-company-only{max-width:900px;margin-top:10px}
.settings-company-only>.card{min-height:0}
.settings-company-only form{display:grid;gap:16px;margin-top:14px}
.settings-company-only .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.settings-company-only .primary{justify-self:end}
.settings-category-intro{margin:10px 0 14px;color:var(--text-muted,#566575);font-size:12px}
.settings-category-intro p{margin:6px 0}
.settings-category-meta{margin:8px 0;font-size:12px;color:var(--text-muted,#566575)}
.settings-category-action{margin:16px 0 0;font-size:12px}
@media(max-width:780px){.settings-company-only .form-grid{grid-template-columns:1fr}}

/* v0.13.35: Firma bazlı düzenlenebilir kategoriler */
.settings-category-editor{grid-template-columns:repeat(auto-fit,minmax(min(100%,390px),1fr))}
.settings-category-rows{display:grid;gap:7px}
.settings-category-row{padding:8px 0;border-bottom:1px solid #e5e9e7}
.settings-category-row form{display:grid;grid-template-columns:minmax(100px,2fr) minmax(65px,0.7fr) auto;align-items:end;gap:8px}
.settings-category-editor label{font-size:11px;display:grid;gap:4px;color:#52635d}
.settings-category-editor input{min-width:0;width:100%;font-size:13px;padding:8px;border:1px solid #cdd9d4;border-radius:6px}
.settings-category-editor button{padding:8px 11px;white-space:nowrap}
.settings-category-add{padding-top:12px}
.settings-category-add summary{cursor:pointer;font-weight:600;color:#087c4b}
.settings-category-add form{display:grid;grid-template-columns:minmax(100px,2fr) 85px auto;gap:8px;align-items:end;margin-top:12px}
@media(max-width:560px){.settings-category-row form,.settings-category-add form{grid-template-columns:1fr 85px}.settings-category-row button,.settings-category-add button{grid-column:1/-1}}

/* Financial KPI rows: keep all eight cards readable on desktop. */
.screen-sales .screen-kpis,.screen-sales-invoices .screen-kpis,.screen-purchases .screen-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.screen-purchase-expenses .screen-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1180px){.screen-sales .screen-kpis,.screen-sales-invoices .screen-kpis,.screen-purchases .screen-kpis,.screen-purchase-expenses .screen-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.screen-sales .screen-kpis,.screen-sales-invoices .screen-kpis,.screen-purchases .screen-kpis,.screen-purchase-expenses .screen-kpis{grid-template-columns:1fr}}

/* Finance overview: all summary and payment KPIs in a single row. */
.financial-kpi-strip{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:3px}
.financial-kpi-strip .screen-kpis{display:grid!important;gap:10px;min-width:0}
.financial-kpi-strip--six .screen-kpis{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.financial-kpi-strip--seven .screen-kpis{grid-template-columns:repeat(7,minmax(0,1fr))!important}
.financial-kpi-strip--eight .screen-kpis{grid-template-columns:repeat(8,minmax(0,1fr))!important}
.financial-kpi-strip .kpi{min-width:0;gap:10px;padding:10px!important}
.financial-kpi-strip .kpi-icon{flex-shrink:0;width:38px;height:42px}
.financial-kpi-strip .kpi h2{font-size:11px;line-height:1.25;white-space:normal}
.financial-kpi-strip .kpi strong{font-size:14px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:1440px){
 .financial-kpi-strip--six .screen-kpis{grid-template-columns:repeat(6,minmax(185px,1fr))!important;min-width:1160px}
 .financial-kpi-strip--seven .screen-kpis{grid-template-columns:repeat(7,minmax(185px,1fr))!important;min-width:1355px}
 .financial-kpi-strip--eight .screen-kpis{grid-template-columns:repeat(8,minmax(185px,1fr))!important;min-width:1550px}
}

/* 0.13.40-dev — filtered quick actions, modal rows and visual crop stages */
.screen-detailed .detail-figma-filters{overflow:visible;position:relative;z-index:3}
.screen-detailed .detail-quick-dropdown{position:relative;flex:0 0 auto;margin:0;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}
.screen-detailed .detail-quick-dropdown>summary{list-style:none;cursor:pointer;border:1px solid #16623b;background:#176b40;color:#fff;border-radius:8px;padding:10px 14px;font-size:12px;font-weight:700;white-space:nowrap}
.screen-detailed .detail-quick-dropdown>summary::-webkit-details-marker{display:none}
.screen-detailed .detail-quick-dropdown>summary span{margin-left:9px}
.screen-detailed .detail-quick-dropdown[open]>.detail-quick-actions-list{display:grid;position:absolute;top:calc(100% + 6px);right:0;z-index:20;width:min(440px,calc(100vw - 38px));grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:12px;border:1px solid #dbe8de;border-radius:12px;background:#fff;box-shadow:0 12px 32px #163a242b;max-height:70vh;overflow-y:auto}
.screen-detailed .detail-quick-dropdown:not([open])>.detail-quick-actions-list{display:none}
.screen-detailed .detail-quick-dropdown .detail-quick-link{min-height:40px;font-size:11px;padding:7px}
.screen-detailed .detail-modal-row{cursor:pointer}
.screen-detailed .detail-modal-row:hover{background:#eef8f0}
.screen-detailed .detail-modal-row:focus-visible{outline:2px solid #178348;outline-offset:-2px}
.screen-detailed .detail-modal-row .detail-figma-task-info strong{color:#19452f;font-size:12px}
.vs-growth{min-width:0;padding:8px 2px}
.vs-growth-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;font-size:12px}
.vs-growth-head span{font-size:18px;font-weight:750;color:#152b21}
.vs-growth progress{width:100%;height:13px;accent-color:#329947;border-radius:9px;overflow:hidden}
.vs-growth-stages{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-top:15px}
.vs-growth-step{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:5px;text-align:center;color:#748094;font-size:11px;padding:10px 2px;border:1px solid transparent;border-radius:9px;min-width:0}
.vs-growth-step.is-current{color:#12743c;background:#f3faf5;border-color:#a9d6b8;font-weight:750}
.vs-growth-step.is-past{color:#50745e}
.vs-growth-art{font-size:clamp(17px,2vw,32px);line-height:1.3}
.vs-growth-foot{font-size:11px;color:#697a87;margin-top:10px}
.screen-products .product-grid{align-items:start}
.screen-products .vs-product-emoji{font-size:19px;margin-right:5px;vertical-align:middle}
.screen-products .vs-product-mini{width:80px;max-width:100%;height:5px;background:#e9eef0;border-radius:8px;margin-top:5px;overflow:hidden}
.screen-products .vs-product-mini>span{display:block;height:100%;background:#2d994c;border-radius:8px}
.screen-products .vs-product-stage-panel{padding:12px;border:1px solid #e1ebe3;border-radius:11px;margin:12px 0;background:#fff}
.screen-products .vs-product-stage-panel h3{font-size:14px;margin:0}
.screen-products .vs-product-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.screen-products .vs-product-chart-grid h3{font-size:13px;margin-bottom:8px}
.screen-products .vs-product-chart-grid .distribution{max-width:100%}
@media(max-width:800px){.screen-detailed .detail-figma-filters{flex-wrap:wrap}.screen-detailed .detail-quick-dropdown{margin-left:auto}.screen-products .vs-product-chart-grid{grid-template-columns:1fr}.vs-growth-step{font-size:11px}}

/* 0.13.41-dev — Hızlı İşlemler: tek sütunlu, okunabilir açılır liste.
   Earlier rules for ten horizontal quick links must not affect this dropdown. */
.screen-detailed .detail-quick-dropdown[open] > .detail-quick-actions-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(300px, calc(100vw - 32px));
  min-width: 0;
  max-width: calc(100vw - 32px);
  padding: 6px;
  gap: 2px;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(70vh, 490px);
  box-sizing: border-box;
}
.screen-detailed .detail-quick-dropdown .detail-quick-actions-list > .detail-quick-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex: 0 0 auto;
  width: 100%;
  min-height: 41px;
  padding: 9px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #193b2b;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  box-sizing: border-box;
}
.screen-detailed .detail-quick-dropdown .detail-quick-actions-list > .detail-quick-link > span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
}
.screen-detailed .detail-quick-dropdown .detail-quick-actions-list > .detail-quick-link > img.icon {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
}
.screen-detailed .detail-quick-dropdown .detail-quick-actions-list > .detail-quick-link:not(:disabled):hover,
.screen-detailed .detail-quick-dropdown .detail-quick-actions-list > .detail-quick-link:not(:disabled):focus-visible {
  background: #edf6ef;
  color: #135831;
}
.screen-detailed .detail-quick-dropdown .detail-quick-actions-list > .detail-quick-link.is-primary {
  background: #e9f5ed;
  color: #135831;
}
.screen-detailed .detail-quick-dropdown .detail-quick-actions-list > .detail-quick-link.is-primary > img.icon {
  filter: brightness(0) saturate(100%) invert(29%) sepia(37%) saturate(773%) hue-rotate(94deg) brightness(90%) contrast(92%);
}
.screen-detailed .detail-quick-dropdown .detail-quick-actions-list > .detail-quick-link.is-unavailable {
  background: transparent;
  color: #829089;
  cursor: not-allowed;
}

/* 0.13.42-dev — display a separate growing-stage card for every selected cycle. */
.vs-growth-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.vs-growth-list>.vs-growth-item{border:1px solid #dfebe3;border-radius:10px;padding:12px;background:#fff;min-width:0}
.vs-growth-list>.vs-growth-item+.vs-growth-item{margin-top:0}
.vs-growth-name{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;row-gap:2px;min-width:0}
.vs-growth-name strong{color:#1b4930;font-size:13px}
.vs-growth-name small{color:#697a87;font-size:11px}
.vs-growth-unknown{font-size:11px;color:#697a87;margin:5px 0 0}
@media(min-width:1450px){.screen-detailed .detail-figma-notes .vs-growth-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 0.13.43-dev — compact, single-column crop stages with independently scrolling content. */
.vs-growth-list,
.screen-detailed .detail-figma-notes .vs-growth-list{
  display:flex;
  flex-direction:column;
  grid-template-columns:none;
  gap:6px;
  min-width:0;
  max-height:240px;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  padding:1px 5px 1px 1px;
}
.vs-growth-list>.vs-growth-item{
  flex:0 0 auto;
  width:100%;
  padding:7px 9px;
  border-radius:8px;
}
.vs-growth-head{margin-bottom:5px;gap:7px;align-items:center}
.vs-growth-name{display:flex;flex-direction:column;align-items:flex-start;gap:1px}
.vs-growth-name strong{font-size:12px;line-height:1.25}
.vs-growth-name small{font-size:11px;line-height:1.2}
.vs-growth-head span{font-size:13px;white-space:nowrap}
.vs-growth progress{display:block;width:100%;height:5px;border-radius:4px;accent-color:#329947;overflow:hidden}
.vs-growth progress::-webkit-progress-bar{background:#edf1ee;border-radius:4px}
.vs-growth progress::-webkit-progress-value{background:#329947;border-radius:4px}
.vs-growth progress::-moz-progress-bar{background:#329947;border-radius:4px}
.vs-growth-stages{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;margin-top:5px}
.vs-growth-step{padding:3px 0;gap:2px;font-size:11px;line-height:1.25;border-radius:5px}
.vs-growth-art{font-size:15px;line-height:1.1}
.vs-growth-unknown{font-size:11px;margin:3px 0 0;line-height:1.25}
.screen-detailed .detail-figma-notes{min-width:0;align-self:stretch}
.screen-detailed .detail-figma-notes .vs-growth-list{max-height:240px}
.screen-products .vs-product-stage-panel .vs-growth-list{max-height:240px;margin-top:8px}
@media(min-width:1450px){.screen-detailed .detail-figma-notes .vs-growth-list{display:flex;grid-template-columns:none}}
@media(max-width:560px){.vs-growth-art{font-size:13px}.vs-growth-step{font-size:11px}}

/* V3 0.13.44: detailed sensor cards and multi-point spatial interpolation */
.screen-detailed .detail-sensors-panel{margin:14px 0;background:#fff;border:1px solid #e4ebed;border-radius:11px;padding:14px;min-width:0}
.screen-detailed .detail-sensors-panel>header{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.screen-detailed .detail-sensors-panel h2{font-size:16px;margin:0}.screen-detailed .detail-sensors-panel h3{font-size:14px;margin:16px 0 8px}
.detail-sensors-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:9px}
.detail-sensor-tile{border:1px solid #e5eeeb;border-radius:9px;padding:10px;display:grid;gap:4px}
.detail-sensor-tile small{font-size:11px;color:#637c80}.detail-sensor-tile b{font-size:17px;color:#176e4d}
.detail-sensor-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.detail-sensor-chart{border:1px solid #e6efea;border-radius:10px;padding:10px;min-width:0}
.detail-sensor-chart h4{margin:0;font-size:12px}.detail-sensor-chart small{color:#75858a}.detail-sensor-chart svg{width:100%;height:auto;max-height:190px;margin:8px 0}
.detail-sensor-chart-meta{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;color:#637b74}
.detail-sensor-heat{margin:10px 0;padding:12px;border:1px solid #dbe7e2;border-radius:10px}
[data-sensor-heatmap] canvas{display:block;width:100%;max-width:720px;height:auto;aspect-ratio:560/310;background:#f1f6f4;border-radius:8px}
.detail-heatmap-tools{display:flex;gap:8px;margin-top:8px}.detail-heatmap-tools button{font-size:12px}
.vs3-geo-sensor-badge{position:absolute;transform:translate(-50%,-50%);width:17px;height:17px;background:#fefefe;color:#0d785e;border:2px solid #0d785e;border-radius:50%;box-shadow:0 1px 4px #0005;text-align:center;font-size:12px;line-height:12px}
@media(max-width:800px){.detail-sensor-charts{grid-template-columns:1fr}}

/* 0.13.45-dev: selectable stages with keyboard focus, fixed-height list preserved. */
.vs-growth-item[data-growth-cycle-id]{cursor:pointer;transition:border-color .14s,background-color .14s}
.vs-growth-item[data-growth-cycle-id]:hover{border-color:#73b58a;background:#f7fcf8}
.vs-growth-item[data-growth-cycle-id]:focus-visible{outline:2px solid #168044;outline-offset:2px}

/* 0.13.46-dev: expanded detailed archive, per-card table filters and visible totals. */
.screen-detailed .detail-figma-archive{display:block;margin:16px 0;overflow:visible}
.screen-detailed .detail-archive-heading{margin:0 0 12px}
.screen-detailed .detail-archive-heading h2{margin:0;font-size:16px;color:#173f32}
.screen-detailed .detail-figma-archive .card-head{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.screen-detailed .detail-archive-filter{margin-left:auto;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.screen-detailed .detail-archive-filter select,.screen-detailed .detail-archive-filter input{height:34px;padding:5px 9px;font-size:12px;min-width:0;max-width:100%;border:1px solid #d5e1df;border-radius:7px;background:#fff;color:#173d34}
.screen-detailed .detail-archive-filter select{max-width:160px}
.screen-detailed .detail-archive-filter input{width:170px}
.screen-detailed .detail-archive-count{color:#607776;white-space:nowrap}
.screen-detailed .detail-figma-archive tr[hidden]{display:none!important}
.screen-detailed .detail-archive-totals{background:#edf6f0;color:#164c36;font-weight:700}
.screen-detailed .detail-archive-totals td,.screen-detailed .detail-archive-totals th{border-top:2px solid #c9decf;padding:10px 8px;white-space:nowrap}
.screen-detailed .detail-archive-totals small{font-weight:400}
@media(max-width:760px){.screen-detailed .detail-archive-filter{width:100%;margin-left:0}.screen-detailed .detail-archive-filter input{flex:1 1 135px}.screen-detailed .detail-archive-filter select{flex:1 1 120px}}

/* 0.13.47-dev: table-specific, independent column filters */
.screen-detailed .detail-figma-archive .card-head{align-items:flex-start}
.screen-detailed .detail-archive-column-filters{flex:1 1 100%;width:100%;margin:4px 0 0;display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding-top:10px;border-top:1px solid #e8eeea}
.screen-detailed .detail-archive-column-control{display:flex;flex:1 1 125px;max-width:210px;min-width:115px;flex-direction:column;gap:4px;color:#46665a;font-size:11px;font-weight:600}
.screen-detailed .detail-archive-column-control span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.screen-detailed .detail-archive-column-control input,.screen-detailed .detail-archive-column-control select{width:100%;max-width:none;height:33px;padding:5px 8px;font-size:12px;font-weight:400}
.screen-detailed .detail-archive-reset{height:33px;border:1px solid #d4e3db;border-radius:7px;background:#f5faf6;padding:0 11px;color:#216341;font-size:12px;cursor:pointer}
.screen-detailed .detail-archive-count{margin:0 0 8px auto}
@media(max-width:760px){.screen-detailed .detail-archive-column-control{flex:1 1 44%;max-width:none;min-width:0}.screen-detailed .detail-archive-count{margin-left:0}}

/* 0.13.48-dev: align each independent filter with its exact table column. */
.screen-detailed .detail-figma-archive .detail-archive-filter-actions{flex:0 0 auto;margin-left:auto;gap:10px;align-items:center}
.screen-detailed .detail-figma-archive .detail-archive-filter-heading{vertical-align:bottom;min-width:100px}
.screen-detailed .detail-figma-archive .detail-archive-filter-heading .detail-archive-column-control{display:block;width:100%;min-width:0;max-width:none;margin:0 0 7px;font-size:inherit}
.screen-detailed .detail-figma-archive .detail-archive-filter-heading .detail-archive-column-control input,
.screen-detailed .detail-figma-archive .detail-archive-filter-heading .detail-archive-column-control select{box-sizing:border-box;display:block;width:100%;min-width:0;max-width:none;height:31px;padding:4px 7px;font-size:11px;font-weight:400;background:#fff;border:1px solid #d5e1df;border-radius:6px}
.screen-detailed .detail-figma-archive .detail-archive-filter-heading .detail-archive-column-control select{text-overflow:ellipsis}
.screen-detailed .detail-figma-archive .detail-archive-filter-actions .detail-archive-count{margin:0}
@media(max-width:760px){.screen-detailed .detail-figma-archive .detail-archive-filter-actions{width:auto;margin-left:auto}}

/* Weather forecast and on-site sensor values remain distinct. */
.vs3-mgm-weather{display:grid;gap:12px;min-width:0;font-size:12px}
.vs3-mgm-source{display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between;align-items:center}
.vs3-mgm-source small,.vs3-mgm-time,.vs3-mgm-warning-note{font-size:11px;color:#64748b}
.vs3-mgm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;margin:0!important}
.vs3-mgm-grid>div{min-width:0}.vs3-mgm-grid dd{font-size:17px!important}
.vs3-mgm-field{border-top:1px solid #dae5df;padding-top:11px;display:grid;gap:8px}
.vs3-mgm-warning{background:#fff6e8;border-left:3px solid #e6a43b;padding:9px;border-radius:4px;line-height:1.5}
.vs3-mgm-warning-list{display:grid;gap:6px}
.vs3-mgm-official{color:#126936;text-decoration:underline;font-size:11px;display:inline-block}

/* Open-Meteo weather forecast, with compact visible weather icons. */
.vs3-om-condition{font-size:12px;font-weight:600;color:#176b3d}
.vs3-om-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.vs3-om-days>div{border:1px solid #dae5df;border-radius:6px;padding:6px;min-width:0;display:grid;gap:3px;font-size:11px}
.vs3-om-days small{font-size:11px;color:#64748b;overflow-wrap:anywhere}
.vs3-om-days span{font-weight:700;font-size:11px}
/* Forecast is taller than the former sensor-only card; keep the full contents visible. */
.dashboard .row-middle>.card{height:auto;min-height:244px}

/* Compact weather icons and accessible forecast attribution. */
.vs3-forecast-measure{display:flex;align-items:center;gap:9px;padding:6px 5px}
.vs3-forecast-measure>div{min-width:0}
.vs3-forecast-measure .vs3-weather-icon{flex:0 0 28px;text-align:center;font-size:22px;line-height:1.2}
.vs3-om-condition span{font-size:18px;margin-right:4px}
.vs3-om-days .vs3-forecast-day-icon{font-size:21px;line-height:1.2}
.vs3-forecast-credit{justify-self:end;position:relative;max-width:100%;font-size:11px;color:#64748b}
.vs3-forecast-credit summary{list-style:none;cursor:pointer;font-size:15px;color:#64748b;padding:0 4px;min-height:20px}
.vs3-forecast-credit summary::-webkit-details-marker{display:none}
.vs3-forecast-credit[open] span{display:block;padding:5px 0;line-height:1.4}
.vs3-forecast-credit a{color:#126936;text-decoration:underline}

/* Mark source per weather metric without growing the compact KPI tiles. */
.vs3-forecast-measure-source{display:block;color:#64748b;font-size:11px;margin-top:2px;line-height:1.3}


/* v0.13.56: Gider Raporlari — chart layout must reside in enqueued app.css. */
.screen-content .vs3-expense-analytics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin: 16px 0;
  width: 100%;
  min-width: 0;
}
.screen-content .vs3-expense-analytics > .card {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.screen-content .vs3-expense-analytics .vs3-expense-pie-layout {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  padding: 12px 0;
}
.screen-content .vs3-expense-analytics svg.vs3-expense-pie {
  display: block;
  width: 100%;
  max-width: 190px;
  height: 190px;
  max-height: 190px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
}
.screen-content .vs3-expense-analytics .vs3-expense-pie-legend {
  list-style: none;
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.screen-content .vs3-expense-analytics .vs3-expense-pie-legend li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  font-size: 11px;
}
.screen-content .vs3-expense-analytics .vs3-expense-pie-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.screen-content .vs3-expense-analytics .vs3-expense-pie-name {
  overflow-wrap: anywhere;
  min-width: 0;
}
.screen-content .vs3-expense-analytics .vs3-expense-pie-amount {
  grid-column: 2 / 4;
  color: #667085;
  font-size: 11px;
}
.screen-content .vs3-expense-analytics .card svg:not(.icon) {
  max-width: 100%;
}
.screen-content .vs3-expense-kpis .screen-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.screen-content .vs3-expense-kpis .screen-kpis .kpi small {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}
@media (max-width: 920px) {
  .screen-content .vs3-expense-analytics { grid-template-columns: 1fr; }
}
@media (max-width: 1150px) {
  .screen-content .vs3-expense-kpis .screen-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .screen-content .vs3-expense-analytics .vs3-expense-pie-layout { grid-template-columns: 1fr; justify-items: center; }
  .screen-content .vs3-expense-analytics .vs3-expense-pie-legend { width: 100%; }
  .screen-content .vs3-expense-kpis .screen-kpis { grid-template-columns: 1fr; }
}

/* Gider Raporları v0.13.57: bütçe, sezon analizi, satır detayları ve çıktı. */
.screen-content .vs3-expense-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start;margin:16px 0}
.screen-content .vs3-expense-secondary>.card{min-width:0;width:100%;margin:0;box-sizing:border-box}
.vs3-expense-export{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin:10px 0}
.vs3-expense-export a{display:inline-flex;border:1px solid #d5e6dc;border-radius:8px;padding:8px 12px;color:#116a3d;background:#fff;text-decoration:none;font-size:12px;font-weight:600}
.vs3-expense-clickable{cursor:pointer}
.vs3-expense-clickable:hover{background:#eef8f2}
.vs3-expense-clickable:focus-visible{outline:2px solid #15784b;outline-offset:-2px}
@media(max-width:900px){.screen-content .vs3-expense-secondary{grid-template-columns:1fr}}
@media print{.vs3-expense-export,.screen-filters,.vs3-expense-export{display:none!important}}

/* v0.13.58: Gider raporlarında 8 KPI tek sıra; dar ekranda yatay kaydırma. */
.screen-content .vs3-expense-kpis {overflow-x:auto;overflow-y:hidden;max-width:100%;padding-bottom:4px;scrollbar-width:thin}
.screen-content .vs3-expense-kpis .screen-kpis{grid-template-columns:repeat(8,minmax(140px,1fr))!important;min-width:1120px}
.screen-content .vs3-expense-kpis .kpi{min-width:0;gap:7px;padding:9px}
.screen-content .vs3-expense-kpis .kpi-icon{width:36px;min-width:36px;height:40px}
.screen-content .vs3-expense-kpis .kpi h2{font-size:11px;white-space:normal}
.screen-content .vs3-expense-kpis .kpi strong{font-size:14px;white-space:nowrap}

/* Independent season selectors and aligned comparison values. */
.screen-content .vs3-expense-compare-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin:0 0 15px}
.screen-content .vs3-expense-compare-form label{display:flex;flex-direction:column;gap:4px;min-width:130px;font-size:12px}
.screen-content .vs3-expense-compare-form select{min-width:130px;max-width:180px}
.screen-content .vs3-expense-compare-table{overflow-x:auto;max-width:100%}
.screen-content .vs3-expense-compare-table table{width:100%;min-width:440px}
.screen-content .vs3-expense-compare-table td:not(:first-child){white-space:nowrap;font-variant-numeric:tabular-nums}
.screen-content .vs3-expense-compare-chart{max-width:100%;overflow:hidden}

/* 0.13.63-dev: production-cycle cost accounting */
.screen-costs .vs3-cycle-cost-dashboard{min-width:0;margin:12px 0 16px}
.screen-costs .vs3-cycle-cost-table{overflow-x:auto}
.screen-costs .vs3-cycle-cost-table table{min-width:940px;width:100%}
.screen-costs .vs3-cycle-cost-table td small{display:block;font-size:11px;margin-top:4px;color:#677789}
.screen-costs .vs3-cycle-cost-table tfoot{background:#f1f7f3}

/* Production cost analysis 0.13.64 */
.screen-costs .vs3-production-analytics{min-width:0;display:grid;gap:14px;margin-top:15px}
.screen-costs .vs3-production-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.screen-costs .vs3-production-charts>div{min-width:0}.screen-costs .vs3-production-charts .card{height:100%}
.screen-costs .vs3-production-profit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.screen-costs .vs3-production-profit>div{border:1px solid var(--line);border-radius:8px;padding:10px;display:flex;justify-content:space-between;gap:14px;font-size:12px}
.screen-costs .vs3-production-profit strong{font-size:13px;text-align:right}
.screen-costs .vs3-production-table{overflow-x:auto}.screen-costs .vs3-production-table table{min-width:710px;width:100%}
.screen-costs .vs3-production-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.screen-costs .vs3-production-tools label{display:flex;gap:6px;align-items:center}
.screen-costs .vs3-cost-dialog{padding:15px;border:1px solid var(--line);border-radius:9px;max-width:460px;width:calc(100% - 20px)}
.screen-costs .vs3-cost-dialog header{display:flex;align-items:center;justify-content:space-between}.screen-costs .vs3-cost-dialog-body p{margin:8px 0}
@media(max-width:780px){.screen-costs .vs3-production-charts,.screen-costs .vs3-production-profit{grid-template-columns:1fr}}
@media print{.screen-costs .screen-filters,.screen-costs .vs3-production-tools button,.screen-costs .vs3-cost-dialog{display:none!important}}

/* V3 0.13.66 — Firma Gider Raporları: six KPIs, paired chart cards, compact category ledger. */
.screen-expense-reports .vs3-expense-kpis{overflow-x:auto;max-width:100%;scrollbar-width:thin}
.screen-expense-reports .vs3-expense-kpis .screen-kpis{display:grid;grid-template-columns:repeat(6,minmax(145px,1fr))!important;min-width:870px;gap:8px}
.screen-expense-reports .vs3-expense-kpis .kpi{padding:9px;gap:8px;min-width:0}
.screen-expense-reports .vs3-expense-kpis .kpi h2{font-size:11px;white-space:normal}
.screen-expense-reports .vs3-expense-kpis .kpi strong{font-size:15px}
.screen-expense-reports .vs3-expense-analytics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
.screen-expense-reports .vs3-expense-analytics>.card{width:100%;height:100%;min-width:0;overflow:hidden;box-sizing:border-box;margin:0}
.screen-expense-reports .vs3-expense-analytics .business-chart{display:block;width:100%;height:200px;max-width:100%;margin:8px 0 3px;overflow:hidden}
.screen-expense-reports .vs3-expense-analytics .chart-legend{margin-top:2px}
.screen-expense-reports .vs3-expense-category-layout{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:16px;align-items:start;padding:12px 0 2px}
.screen-expense-reports .vs3-expense-category-ledger{min-width:0}
.screen-expense-reports .vs3-expense-category-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:8px;border-bottom:1px solid #e7ecef;padding:7px 0;font-size:11px}
.screen-expense-reports .vs3-expense-category-row strong{font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.screen-expense-reports .vs3-expense-category-dot{width:10px;height:10px;border-radius:50%}
.screen-expense-reports .vs3-expense-category-name{min-width:0;overflow-wrap:anywhere}
.screen-expense-reports .vs3-expense-category-total{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:2px solid #d9e5df;padding:12px 0 0;font-size:12px;font-weight:700}
.screen-expense-reports .vs3-expense-category-total strong{font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap;color:#116c42}
.screen-expense-reports .vs3-expense-category-visual{display:flex;flex-direction:column;align-items:center;gap:14px;min-width:0;padding-top:2px}
.screen-expense-reports .vs3-expense-category-visual>strong{font-size:11px;color:#657180;text-align:center;letter-spacing:.03em}
.screen-expense-reports .vs3-expense-category-visual>small{font-size:11px;color:#667085}
.screen-expense-reports .vs3-expense-analytics svg.vs3-expense-pie{width:156px;height:156px;max-width:156px;max-height:156px;display:block;flex:none}
.screen-expense-reports .vs3-expense-column-toolbar{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin:6px 0 10px;font-size:11px;color:#64748b}
.screen-expense-reports .vs3-expense-column-toolbar form{display:inline-flex}
.screen-expense-reports .vs3-expense-column-toolbar button,.screen-expense-reports .vs3-expense-column-toolbar a{font-size:11px;padding:5px 9px;border:1px solid #cfe1d6;border-radius:5px;color:#167144;background:#f8fcfa;text-decoration:none;cursor:pointer}
.screen-expense-reports .vs3-expense-records{max-width:100%;overflow-x:auto}
.screen-expense-reports .vs3-expense-records table{width:100%;min-width:980px}
.screen-expense-reports .vs3-expense-table-filters th{padding:5px 5px 2px;vertical-align:middle;background:#fff}
.screen-expense-reports .vs3-expense-table-filters label{display:block;min-width:0}
.screen-expense-reports .vs3-expense-table-filters input,.screen-expense-reports .vs3-expense-table-filters select{display:block;width:100%;min-width:0;box-sizing:border-box;font-size:11px;padding:6px 5px;height:30px}
.screen-expense-reports .vs3-expense-column-labels th{white-space:nowrap;background:#eef3f7}
.screen-expense-reports .vs3-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
.screen-expense-reports .vs3-expense-records tfoot tr th,.screen-expense-reports .vs3-expense-records tfoot tr td{font-weight:700;border-top:1px solid #d1e3d8;text-align:right;padding:12px;font-variant-numeric:tabular-nums}
.screen-expense-reports .vs3-expense-records tfoot .vs3-expense-table-total{background:#edf4ef}
.screen-expense-reports .vs3-expense-records tfoot .vs3-expense-table-grand-total{background:#dcefe3;color:#135f35}
.screen-expense-reports .vs3-expense-records tfoot .vs3-expense-table-grand-total td{font-size:16px}
@media(max-width:1300px){.screen-expense-reports .vs3-expense-category-layout{grid-template-columns:minmax(0,1fr) 138px;gap:8px}.screen-expense-reports .vs3-expense-analytics svg.vs3-expense-pie{width:130px;height:130px}}
@media(max-width:1020px){.screen-expense-reports .vs3-expense-analytics{grid-template-columns:1fr}.screen-expense-reports .vs3-expense-category-layout{grid-template-columns:minmax(0,1fr) 160px}.screen-expense-reports .vs3-expense-analytics svg.vs3-expense-pie{width:156px;height:156px}}
@media(max-width:520px){.screen-expense-reports .vs3-expense-category-layout{grid-template-columns:1fr}.screen-expense-reports .vs3-expense-category-visual{order:-1}}
@media print{.screen-expense-reports .vs3-expense-column-toolbar,.screen-expense-reports .vs3-expense-table-filters{display:none!important}}

/* Production input and finance/account registers, v0.13.67 */
.vs3-production-distribution{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(180px,.65fr);gap:14px;align-items:start}
.vs3-production-breakdown{min-width:0;overflow:auto}.vs3-production-breakdown .screen-table{width:100%}
.vs3-production-breakdown td,.vs3-production-breakdown th{white-space:normal;text-align:left}
.vs3-production-breakdown td:last-child,.vs3-production-breakdown th:last-child{text-align:right}
.vs3-production-breakdown-chart{max-width:280px;justify-self:center;width:100%;min-width:0;overflow:hidden}
.vs3-production-breakdown-chart svg{display:block;width:100%!important;max-width:210px!important;max-height:210px!important;height:auto!important;margin:0 auto}
.vs3-production-breakdown-chart>*{max-width:100%}
.vs3-account-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:14px 0}
.vs3-account-card{border:1px solid #e0e9e4;background:#f8fbf9;padding:14px;border-radius:10px;display:grid;gap:6px}
.vs3-account-card h3{margin:0;font-size:14px}.vs3-account-card strong{font-size:20px;font-variant-numeric:tabular-nums}
.vs3-account-card small{color:#52675d}.vs3-account-card button{justify-self:start}
.vs3-ledger-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin:0 0 12px}
@media(max-width:760px){.vs3-production-distribution{grid-template-columns:1fr}.vs3-production-breakdown-chart{max-width:230px}}

/* Production cost distribution — compact, no clipped legends or internal scrollbars */
.screen-costs .vs3-production-distribution{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(178px,.75fr);gap:12px;align-items:center;width:100%;min-width:0}
.screen-costs .vs3-production-breakdown{min-width:0;overflow:visible}
.screen-costs .vs3-production-breakdown .screen-table{max-height:none!important;overflow-x:auto;overflow-y:visible;width:100%}
.screen-costs .vs3-production-breakdown table{width:100%;min-width:410px}
.screen-costs .vs3-production-breakdown th,.screen-costs .vs3-production-breakdown td{font-size:11px;white-space:normal;padding:9px 7px}
.screen-costs .vs3-production-breakdown th:last-child,.screen-costs .vs3-production-breakdown td:last-child{text-align:right;white-space:nowrap}
.screen-costs .vs3-production-breakdown td strong{font-size:11px}
.screen-costs .vs3-production-breakdown td small{display:block;color:#708292;font-size:11px}
.screen-costs .vs3-production-breakdown tfoot{background:#eef6f0;font-weight:700}
.screen-costs .vs3-production-breakdown-chart{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;max-width:230px;min-width:0;min-height:0;overflow:visible;justify-self:center}
.screen-costs .vs3-production-breakdown-chart .vs3-production-donut{width:100%!important;max-width:190px!important;height:auto!important;max-height:none!important;aspect-ratio:1;overflow:visible;display:block}
.screen-costs .vs3-production-donut-label{font-size:12px;fill:#617486}
.screen-costs .vs3-production-donut-number{font-size:15px;font-weight:700;fill:#133424}
.screen-costs .vs3-production-breakdown-chart>small{color:#6f8190;text-align:center;font-size:11px;line-height:1.4}
.vs3-asset-payment-info{padding:9px 11px;background:#f1f7f3;border-radius:7px;font-size:12px;line-height:1.6;color:#425c4b;margin:8px 0}
@media(max-width:1150px){.screen-costs .vs3-production-distribution{grid-template-columns:minmax(0,1fr)}.screen-costs .vs3-production-breakdown-chart{max-width:220px}}

/* v0.13.70 — per-material disclosure under production cost categories */
.screen-costs .vs3-cost-group-row{cursor:pointer;transition:background-color .12s ease}
.screen-costs .vs3-cost-group-row:hover{background:#eef8f1}
.screen-costs .vs3-cost-group-row:has(.vs3-cost-group-toggle:focus-visible){outline:2px solid #207b4b;outline-offset:-2px}
.screen-costs .vs3-cost-group-toggle{display:inline-flex;align-items:center;gap:7px;text-align:left;background:none!important;border:0!important;box-shadow:none!important;padding:1px 2px;max-width:100%;cursor:pointer;color:inherit;font:inherit}
.screen-costs .vs3-cost-group-toggle strong{white-space:normal}
.screen-costs .vs3-cost-arrow{display:inline-block;font-size:14px;color:#60746b;transition:transform .12s ease;line-height:1}
.screen-costs .vs3-cost-group-toggle[aria-expanded="true"] .vs3-cost-arrow{transform:rotate(90deg)}
.screen-costs .vs3-cost-color-dot,.screen-costs .vs3-cost-child-dot{display:inline-block;background:var(--vs3-cost-color,#298c5b);border-radius:50%;flex:none}
.screen-costs .vs3-cost-color-dot{width:9px;height:9px}
.screen-costs .vs3-cost-child-dot{width:6px;height:6px;margin-right:9px;vertical-align:middle}
.screen-costs .vs3-cost-sub-row[hidden]{display:none!important}
.screen-costs .vs3-cost-sub-row>td{padding:0 6px 8px 26px!important;background:#f7fbf8;border-left:3px solid #d8eae0}
.screen-costs .vs3-cost-sub-wrap{max-width:100%;overflow-x:auto;padding:4px 4px 2px}
.screen-costs .vs3-cost-sub-table{width:100%;min-width:330px;border-collapse:collapse}
.screen-costs .vs3-cost-sub-table th{font-size:11px;color:#577263;background:#eaf5ee;padding:6px 8px}
.screen-costs .vs3-cost-sub-table td{font-size:11px;background:#f7fbf8;padding:6px 8px;border-bottom:1px solid #e1ede4;white-space:normal}
.screen-costs .vs3-cost-sub-table td:first-child{padding-left:12px}
.screen-costs .vs3-cost-sub-table td:last-child{text-align:right;white-space:nowrap}
.screen-costs .vs3-cost-sub-table td small{display:block;color:#678273;font-size:11px;margin-left:16px}
.vs3-account-negative{border-color:#efb4b4;background:#fff7f7}
.vs3-account-negative strong{color:#b72a2a}

/* Equipment settlements remain visible but do not increase the expense sum a second time. */
.vs3-expense-ledger-note{margin:0 0 12px;font-size:12px;line-height:1.55;color:var(--muted,#67727e)}


/* 0.13.74 — Ekipman ve satın alma formları */
dialog:is(#new-farm-assets,#new-direct-purchase,#stock-purchase,#edit-order),dialog[id^="edit-asset-"]{
  width:min(1080px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 28px);overflow-y:auto;
}
.vs3-asset-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;align-items:end}
.vs3-asset-form-grid>label{min-width:0;margin:0}
.vs3-asset-form-grid :is(input,select,textarea){width:100%;min-width:0;box-sizing:border-box}
.vs3-asset-photo-fields{margin:14px 0;border:1px solid var(--line);border-radius:10px;padding:14px;min-width:0}
.vs3-asset-photo-fields legend{font-weight:700;padding:0 6px}
.vs3-asset-photo-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.vs3-asset-photo-buttons label{min-width:0;display:flex;flex-direction:column;gap:6px}
.vs3-asset-photo-buttons input{min-width:0;max-width:100%;border:1px dashed var(--line);border-radius:8px;padding:10px;box-sizing:border-box}
.vs3-asset-photo-preview img{max-width:180px;max-height:150px;object-fit:cover;border-radius:8px;margin-top:10px}
.vs3-asset-existing-photos{margin:12px 0}
.vs3-asset-existing-photos .record-photo{max-width:132px;max-height:100px;object-fit:cover}
.vs3-purchase-mode-asset{min-width:0;border:1px solid var(--line);border-radius:10px;padding:12px 16px;background:var(--card,#fff)}
.vs3-purchase-mode-asset h3{margin:0 0 12px}
.vs3-purchase-mode-stock>[data-trade-lines]{margin-top:8px}
[data-purchase-form]>.sale-totals{grid-column:1/-1;justify-self:end;max-width:340px;margin:0 0 0 auto}
[data-purchase-form] [data-purchase-stock][hidden],[data-purchase-form] [data-purchase-asset][hidden]{display:none!important}
@media(max-width:650px){.vs3-asset-form-grid,.vs3-asset-photo-buttons{grid-template-columns:minmax(0,1fr)}dialog:is(#new-farm-assets,#new-direct-purchase,#stock-purchase,#edit-order),dialog[id^="edit-asset-"]{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}}
.vs3-new-material-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px;margin:10px 0;padding:12px;border:1px solid var(--line);border-radius:8px}
.vs3-new-material-fields>h4{grid-column:1/-1;margin:0}
.vs3-new-material-fields label{min-width:0}
.vs3-new-material-fields :is(input,select){width:100%;min-width:0;box-sizing:border-box}
.vs3-asset-form-grid>.vs3-asset-payment-info{grid-column:1/-1;margin:2px 0}
@media(max-width:760px){.vs3-new-material-fields{grid-template-columns:minmax(0,1fr)}}

/* KPI layouts 0.13.75: preserve explicitly requested order on desktop. */
.financial-kpi-strip--four .screen-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.financial-kpi-strip--five .screen-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important}
@media(max-width:1180px){
 .financial-kpi-strip--four .screen-kpis{grid-template-columns:repeat(4,minmax(185px,1fr))!important;min-width:780px}
 .financial-kpi-strip--five .screen-kpis{grid-template-columns:repeat(5,minmax(185px,1fr))!important;min-width:970px}
}


/* 0.13.76-dev — every KPI group remains in one horizontal row.
   Narrow screens scroll the row instead of splitting cards into multiple lines. */
.screen-content .screen-kpis {
  display:grid!important;
  grid-template-columns:repeat(var(--kpi-count),minmax(145px,1fr))!important;
  min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;
  overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:4px;
}
.screen-content .screen-kpis>.kpi {min-width:0;box-sizing:border-box}
.screen-content .screen-kpis .kpi-icon{flex:0 0 36px;width:36px;height:42px}
.screen-content .screen-kpis .kpi h2{white-space:normal;overflow-wrap:anywhere}
.screen-content .screen-kpis .kpi strong{white-space:normal;overflow-wrap:anywhere}
/* Finance strips already provide their own fixed card count; override
   older breakpoint rules that made their minimum cards unnecessarily wide. */
.financial-kpi-strip .screen-kpis{
  grid-template-columns:repeat(var(--kpi-count),minmax(148px,1fr))!important;
  min-width:0!important;
}
/* Production cost KPIs use the shared .screen-kpis / .kpi design system.
   The main KPI grid provides one-row scrolling at narrow widths. */
.screen-costs .vs3-production-kpi-strip{min-width:0;width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:3px}
.screen-costs .vs3-production-kpi-strip .screen-kpis{gap:10px}
/* Detailed view and overview use their own KPI implementations. */
.screen-content.screen-detailed .detail-figma-kpis{
  display:grid;grid-template-columns:repeat(8,minmax(132px,1fr))!important;
  min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;padding-bottom:5px
}
.dashboard .kpis{
  display:grid;grid-template-columns:repeat(6,minmax(150px,1fr))!important;
  min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;padding-bottom:5px
}
@media (max-width:1250px){
  .screen-content.screen-detailed .detail-figma-kpis{min-width:1120px}
}

/* 0.13.79-dev — Üretim Maliyetleri: high-contrast KPI icons and compact vertical rhythm.
   Original shared SVG assets use white strokes for dark backgrounds. Recolor only here. */
.screen-costs .vs3-cycle-cost-dashboard{margin:0 0 8px}
.screen-costs .vs3-production-analytics{margin-top:0;gap:8px}
.screen-costs .vs3-production-kpi-strip{padding-bottom:0;overflow-x:auto}
.screen-costs .vs3-production-kpi-strip .screen-kpis{gap:10px;padding-bottom:2px}
.screen-costs .vs3-production-kpi-strip .kpi{
  height:68px;min-height:68px;padding:7px 10px!important;align-items:center;gap:10px
}
.screen-costs .vs3-production-kpi-strip .kpi-icon{
  width:39px;height:40px;flex:0 0 39px
}
.screen-costs .vs3-production-kpi-strip .kpi-icon>img.icon{
  width:24px;height:24px;object-fit:contain;opacity:1;
  filter:brightness(0) saturate(100%) invert(30%) sepia(52%) saturate(873%) hue-rotate(97deg) brightness(90%) contrast(92%)
}
.screen-costs .vs3-production-kpi-strip .kpi:nth-child(3) .kpi-icon>img.icon{
  filter:brightness(0) saturate(100%) invert(43%) sepia(95%) saturate(1042%) hue-rotate(355deg) brightness(92%) contrast(96%)
}
.screen-costs .vs3-production-kpi-strip .kpi h2{margin:0;line-height:1.2}
.screen-costs .vs3-production-kpi-strip .kpi strong{margin-top:3px;line-height:1.25}

/* 0.13.81 — Compact date-range picker in farmer filter bars. */
.screen-filters{overflow:visible}
.screen-filters .vs3-date-range{position:relative;flex:0 0 auto;align-self:end;min-width:0;z-index:3}
.screen-filters .vs3-date-range[open]{z-index:55}
.screen-filters .vs3-date-range>summary{display:flex;align-items:center;gap:8px;min-height:37px;max-width:340px;padding:8px 11px;border:1px solid #d5e0e8;border-radius:7px;background:#fff;color:#24394c;font-size:12px;font-weight:600;cursor:pointer;list-style:none;white-space:nowrap}
.screen-filters .vs3-date-range>summary::-webkit-details-marker{display:none}
.screen-filters .vs3-date-range>summary>svg{width:16px;height:16px;flex:0 0 16px;color:#217347}
.screen-filters .vs3-date-range.is-active>summary{background:#f0f8f2;border-color:#8bbca0}
.screen-filters .vs3-date-range-selection{font-size:11px;color:#467455;font-weight:500;overflow:hidden;text-overflow:ellipsis;max-width:174px}
.screen-filters .vs3-date-range-chevron{font-size:17px;font-weight:400;line-height:10px;color:#658073;margin-left:3px}
.screen-filters .vs3-date-range[open] .vs3-date-range-chevron{transform:rotate(180deg)}
.screen-filters .vs3-date-range-popup{position:absolute;top:calc(100% + 6px);left:0;z-index:55;width:326px;max-width:calc(100vw - 40px);padding:13px;border:1px solid #dbe3e8;border-radius:10px;background:#fff;box-shadow:0 12px 28px #132e3c2e}
.screen-filters .vs3-date-range-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.screen-filters .vs3-date-range-fields label{display:grid;min-width:0!important;width:auto!important;gap:6px;white-space:normal;font-size:11px;color:#3d5564}
.screen-filters .vs3-date-range-fields input[type=date]{display:block;min-width:0;width:100%;max-width:100%;padding:8px 5px;font-size:12px}
.screen-filters .vs3-date-range-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:12px}
.screen-filters .vs3-date-range-actions button{min-height:33px;padding:7px 12px;font-size:12px}
@media(max-width:580px){.screen-filters .vs3-date-range{max-width:100%;flex:1 1 100%}.screen-filters .vs3-date-range>summary{max-width:100%;width:100%}.screen-filters .vs3-date-range-popup{width:min(326px,calc(100vw - 32px))}}

/* 0.13.82-dev — Alet / Edevat uses the same list/detail/summary dashboard as Stok. */
.screen-farm-assets .vs3-asset-filters{margin-bottom:0}
.screen-farm-assets .vs3-asset-filters label{min-width:145px}
.screen-farm-assets .vs3-asset-filters label:has(input[name="q"]){flex:1 1 240px}
.screen-farm-assets .stock-grid.vs3-asset-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-areas:"list list detail" "category state history";
  align-items:start;gap:12px;margin-top:0
}
.screen-farm-assets .vs3-asset-grid .stock-list-card{grid-column:auto;grid-area:list}
.screen-farm-assets .vs3-asset-grid .stock-detail-card{grid-area:detail}
.screen-farm-assets .vs3-asset-grid .stock-category-card{grid-area:category}
.screen-farm-assets .vs3-asset-grid .stock-state-card{grid-area:state}
.screen-farm-assets .vs3-asset-grid .stock-history-card{grid-area:history}
.screen-farm-assets .vs3-asset-grid .card{min-width:0;min-height:0}
.screen-farm-assets .vs3-asset-grid .stock-list-card .screen-table table{min-width:890px}
.screen-farm-assets .vs3-asset-grid .stock-list-card .screen-table td{font-size:12px}
.screen-farm-assets .vs3-asset-grid .stock-list-card .stock-item-name small{display:block;color:#798795;margin-top:3px;font-size:11px}
.screen-farm-assets .vs3-asset-grid .stock-list-card .stock-item-name>div{min-width:0}
.screen-farm-assets .vs3-asset-type-pill{background:#e9f3ee;color:#216842}
.screen-farm-assets .vs3-asset-type-icon{background:#edf6ee;color:#276d46}
.screen-farm-assets .stock-detail-card .stock-product-main{margin-top:10px}
.screen-farm-assets .stock-detail-card .stock-product-facts{margin-top:10px}
.screen-farm-assets .stock-detail-card .stock-product-actions a{text-decoration:none;text-align:center}
.screen-farm-assets .vs3-asset-service-history{max-height:340px}
.screen-farm-assets .vs3-asset-service-history li{align-items:flex-start}
.screen-farm-assets .vs3-asset-service-history li>div:first-child{min-width:0;flex:1}
.screen-farm-assets .vs3-asset-service-history li strong{overflow-wrap:anywhere}
.screen-farm-assets .vs3-asset-service-amount{flex:0 0 auto;display:grid;justify-items:end;gap:6px}
.screen-farm-assets .vs3-asset-service-amount button{padding:5px 8px;font-size:11px}
.screen-farm-assets .stock-category-summary{min-width:0}
.screen-farm-assets .stock-category-summary ul{max-height:215px;overflow-y:auto}
.screen-farm-assets .stock-category-summary .donut{width:120px;height:120px}
.screen-farm-assets .stock-category-summary .donut>svg{width:120px;height:120px}
.screen-farm-assets .stock-category-summary li{grid-template-columns:auto minmax(0,1fr) auto 32px}
@media(max-width:830px){
 .screen-farm-assets .stock-grid.vs3-asset-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"list" "detail" "category" "state" "history"}
 .screen-farm-assets .vs3-asset-filters label{flex:1 1 150px;min-width:0}
}

.screen-farm-assets .vs3-asset-list-count{font-size:11px;color:#657c8c;margin:3px 0 9px}

/* 0.13.83: Overview finance card — reference-style three summary tiles and compact combo chart. */
.vs3-finance-overview{display:grid;gap:7px;width:100%;min-width:0;margin-top:2px}
.vs3-finance-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.vs3-finance-metric{position:relative;min-width:0;min-height:49px;padding:7px 7px 6px;border-radius:7px;background:#e9f6ed}
.vs3-finance-metric--expense{background:#fff0f0}
.vs3-finance-metric--balance{background:#e8f4ff}
.vs3-finance-metric dt{font-size:11px;line-height:1.25;color:#47775c;padding-right:28px;white-space:normal}
.vs3-finance-metric--expense dt{color:#b94b47}
.vs3-finance-metric--balance dt{color:#3b6aa6}
.vs3-finance-metric dd{font-size:clamp(11px,1.02vw,17px);font-weight:800;line-height:1.25;margin:4px 0 0;letter-spacing:-.025em;white-space:nowrap;color:#193c2b;font-variant-numeric:tabular-nums}
.vs3-finance-metric--expense dd{color:#c72d2d}
.vs3-finance-metric--balance dd{color:#1a5fae}
.vs3-finance-delta{position:absolute;top:10px;right:6px;font-size:11px;font-weight:700;white-space:nowrap}
.vs3-finance-delta.positive{color:#16a34a}
.vs3-finance-delta.negative{color:#e2433a}
.vs3-finance-chart-wrap{min-width:0;width:100%;overflow:hidden}
.vs3-finance-chart-legend{display:flex;align-items:center;justify-content:center;gap:13px;flex-wrap:wrap;font-size:11px;color:#5b687a;line-height:12px}
.vs3-finance-chart-legend>span{display:inline-flex;align-items:center;gap:4px}
.vs3-finance-chart-legend i{display:block;width:9px;height:9px;border-radius:2px}
.vs3-finance-chart-legend i.income{background:#208a45}
.vs3-finance-chart-legend i.expense{background:#ff842d}
.vs3-finance-chart-legend i.balance{background:#2092ff;border-radius:50%}
.vs3-finance-chart{display:block;width:100%;height:auto;max-height:150px;overflow:visible;margin:0}
.vs3-finance-gridline{stroke:#e7edf3;stroke-width:1}
.vs3-finance-axis,.vs3-finance-month{fill:#718096;font-family:inherit;font-size:11px}
.vs3-finance-bar--income{fill:#208a45}
.vs3-finance-bar--expense{fill:#ff842d}
.vs3-finance-netline{stroke:#2092ff;stroke-width:2.8;fill:none;stroke-linejoin:round;stroke-linecap:round}
.vs3-finance-netpoint{fill:#2092ff;stroke:#fff;stroke-width:1}
.vs3-finance-caption{color:#64748b;font-size:11px;line-height:1.25;margin:0}
/* This compact sensor layout applies to forecast measurements only; values and source stay visible. */
.dashboard .vs3-mgm-weather{gap:7px}
.dashboard .vs3-mgm-grid{gap:4px!important}
.dashboard .vs3-forecast-measure{min-height:0;padding:2px 3px;gap:6px}
.dashboard .vs3-forecast-measure .vs3-weather-icon{flex:0 0 22px;font-size:18px;line-height:1}
.dashboard .vs3-forecast-measure dt{font-size:11px;line-height:1.15}
.dashboard .vs3-mgm-grid .vs3-forecast-measure dd{font-size:14px!important;line-height:1.25;margin:2px 0 0}
.dashboard .vs3-forecast-measure-source{font-size:11px;line-height:1.15;margin-top:1px}
@media(max-width:1440px){
 .dashboard .vs3-finance-metric{padding:6px 6px 5px}
 .dashboard .vs3-finance-metrics{gap:5px}
 .dashboard .vs3-finance-delta{font-size:11px;right:5px;top:6px}
 .dashboard .vs3-finance-metric dd{font-size:clamp(11px,1vw,14px)}
}
@media(max-width:780px){
 .dashboard .vs3-finance-metric dd{font-size:clamp(12px,3vw,16px)}
}
@media(max-width:400px){
 .dashboard .vs3-finance-metric dt{font-size:11px}
 .dashboard .vs3-finance-metric dd{font-size:11px}
 .dashboard .vs3-finance-delta{position:static;display:block;margin-top:2px}
}


/* Products screen refresh */
.product-grid{grid-template-columns:minmax(0,58%) minmax(0,42%);grid-template-areas:'list detail' 'charts detail';gap:14px}
.product-list-card>.card,.product-detail-card>.card,.vs-product-chart-grid .subcard{border-radius:18px;box-shadow:0 8px 24px rgba(21,44,59,.06);border:1px solid #e8edf1}
.product-list-card>.card{min-height:446px;padding:14px 14px 12px}
.product-list-card .card-head h2,.product-detail-card .card-head h2,.vs-product-chart-grid .subcard h3{font-size:15px;font-weight:700}
.product-list-card .screen-table th,.product-list-card .screen-table td{font-size:12px}
.product-list-card .screen-table th{color:#314256;background:#f8fafc}
.product-list-card .screen-table tbody tr.selected,.product-list-card .screen-table tbody tr:hover{background:#eef8f0}
.vs-product-emoji{display:inline-grid;place-items:center;width:26px;height:26px;margin-right:8px;font-size:22px;vertical-align:middle}
.vs-product-mini{display:inline-block;width:90px;height:7px;border-radius:999px;background:#e6edf0;vertical-align:middle;margin:0 8px 0 0;overflow:hidden}
.vs-product-mini span{display:block;height:100%;background:#44b556;border-radius:999px}
.vs-product-chart-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:12px}
.vs-product-chart-grid .subcard{padding:14px}
.vs-product-chart-grid .subcard h3{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.vs-product-chart-grid .subcard h3::before{content:'▮';color:#1e8e44;font-size:14px}
.product-detail-card>.card{min-height:610px;padding:0;overflow:hidden}
.product-detail-card>.card>.card-head{display:none}
.product-detail-hero{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 20px 14px;border-bottom:1px solid var(--line)}
.product-detail-hero-main{display:flex;align-items:center;gap:14px;min-width:0}
.product-detail-emoji{font-size:42px;line-height:1}
.product-detail-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.product-detail-title-row h3{margin:0;font-size:28px;line-height:1.15;color:#12263f}
.product-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:#e8f6ea;color:#227a37;font-size:12px;font-weight:700}
.product-detail-hero-copy p{margin:5px 0 0;color:#687788;font-size:13px}
.product-detail-hero-actions{display:flex;gap:8px;flex-wrap:wrap}
.product-detail-hero-actions button{font-size:12px;padding:8px 12px}
.product-detail-toprow{display:grid;grid-template-columns:minmax(0,58%) minmax(0,42%);gap:12px;padding:14px 20px 0}
.product-photo-panel{padding:14px;display:flex;flex-direction:column}
.product-photo-panel h3,.vs-product-stage-panel h3{font-size:14px;margin:0 0 10px}
.product-photo-panel .photo-gallery{display:block}
.product-photo-panel figure,.product-photo-panel .product-photo-empty{margin:0;min-height:216px}
.product-photo-panel .record-photo{width:100%;height:216px;object-fit:cover;border-radius:14px}
.product-photo-panel .product-photo-empty{display:grid;place-items:center;border:1px dashed #d3dfd6;background:#f5faf6;border-radius:14px}
.vs-product-stage-panel{padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 2px 8px rgba(21,44,59,.05)}
.product-detail-card .vs-growth-list{display:grid;gap:10px;max-height:none;overflow:visible}
.product-detail-card .vs-growth{padding:12px 12px 10px;border-radius:14px;border:1px solid #dfe8e3;background:#fff}
.product-detail-card .vs-growth-head strong{font-size:13px}
.product-detail-card .vs-growth-head small{display:block;font-size:11px;color:#738295;margin-top:3px}
.product-detail-card .vs-growth progress{height:9px;margin:10px 0 12px}
.product-detail-card .vs-growth-stages{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.product-detail-card .vs-growth-step{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;color:#7a8796;text-align:center}
.product-detail-card .vs-growth-step .vs-growth-art{font-size:26px;line-height:1}
.product-detail-card .vs-growth-step.is-current{color:#1d8d42;font-weight:700}
.product-detail-card .vs-growth-step.is-current .vs-growth-art{filter:drop-shadow(0 2px 3px rgba(38,173,83,.18))}
.product-info-grid{display:grid;grid-template-columns:minmax(0,48%) minmax(0,52%);gap:12px;padding:12px 20px 0;margin-top:0}
.product-info-grid .subcard{padding:14px;border-radius:16px}
.product-info-grid .subcard h3{font-size:14px;margin-bottom:8px}
.product-info-grid .detail-list>div{min-height:30px;padding:4px 0;border-bottom:1px solid #eef2f5}
.product-observations{display:grid;gap:12px}
.product-observations .business-history li{padding:10px 0}
.product-detail-card .detail-tabs{margin:14px 20px 0;border-block:0;border-bottom:1px solid var(--line);justify-content:flex-start}
.product-detail-card .detail-tabs button{font-size:12px;padding:10px 12px}
.product-detail-card .product-panel{padding:12px 20px 20px}
.product-detail-card .product-panel>.detail-actions:first-child{margin-top:0;margin-bottom:12px}
.product-cycle{border:1px solid var(--line);border-radius:14px;padding:0 12px 12px;background:#fff;margin-bottom:10px}
.product-cycle summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;padding:12px 0;cursor:pointer}
.product-cycle summary::-webkit-details-marker{display:none}
.product-charts .card{height:auto}
@media (max-width: 1100px){
  .product-grid{grid-template-columns:1fr;grid-template-areas:'list' 'detail' 'charts'}
  .product-detail-toprow,.product-info-grid,.vs-product-chart-grid{grid-template-columns:1fr}
}


/* 0.13.85-dev: Stock card alignment, movement row layout and responsive charts. */
.screen-stock .stock-grid{align-items:stretch}
.screen-stock .stock-grid>:is(.stock-category-card,.stock-state-card,.stock-history-card){align-self:stretch;min-width:0;display:flex}
.screen-stock .stock-grid>:is(.stock-category-card,.stock-state-card,.stock-history-card)>.card{
  box-sizing:border-box;width:100%;height:100%;min-height:228px;max-height:295px;
  display:flex;flex-direction:column;overflow:hidden;
}
.screen-stock .stock-history-card .stock-movement-history{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;margin-top:4px;padding-right:3px}
.screen-stock .stock-movement-history li{display:flex;align-items:flex-start;gap:10px;justify-content:space-between;padding:10px 2px}
.screen-stock .stock-movement-content{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.screen-stock .stock-movement-text{min-width:0;width:100%;overflow-wrap:anywhere;line-height:1.45}
.screen-stock .stock-movement-text strong{display:block;font-weight:600}
.screen-stock .stock-movement-text small{display:block;margin:3px 0 0;line-height:1.45}
.screen-stock .stock-movement-text a{display:inline-flex;margin-top:5px;white-space:nowrap}
.screen-stock .stock-movement-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:100%;min-width:0}
.screen-stock .stock-movement-actions .stock-revise-trigger{margin:0;position:static;max-width:100%;white-space:normal;line-height:1.3;padding:6px 9px;font-size:11px}
.screen-stock .stock-movement-quantity{min-width:0;flex:0 0 auto;font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums;padding-top:1px}

/* Keep all 560x230 SVG business charts in their intrinsic ratio. An explicit
   pixel height creates letterboxing and the short/offset bars in narrow cards. */
.screen-content .card svg.business-chart,
.screen-content .vs3-expense-analytics .card svg.business-chart,
.screen-content .vs3-production-charts .card svg.business-chart{
  display:block;width:100%;min-width:0;max-width:100%;height:auto;max-height:none;
  aspect-ratio:560/230;margin:8px 0 0;overflow:visible;box-sizing:border-box;
}
.screen-content .card:has(>svg.business-chart),
.screen-content .card:has(>.business-chart){min-width:0}
.screen-content .chart-legend{display:flex;gap:7px 14px;flex-wrap:wrap;justify-content:flex-end;align-items:center;margin:8px 2px 0;max-width:100%;line-height:1.35}
.screen-content .distribution{max-width:100%;min-width:0;flex-wrap:wrap;gap:12px}
.screen-content .distribution .legend{flex:1 1 130px;max-height:none;min-width:0;overflow-wrap:anywhere}
.screen-content .distribution .donut{max-width:100%}
.screen-content .distribution .donut>svg{max-width:100%;height:auto;aspect-ratio:1/1}
.screen-content .vs3-expense-analytics>.card{min-width:0;overflow:hidden}
@media(max-width:830px){
 .screen-stock .stock-grid>:is(.stock-category-card,.stock-state-card,.stock-history-card)>.card{height:auto;max-height:none;min-height:0}
 .screen-stock .stock-history-card .stock-movement-history{max-height:295px}
}

.screen-content .vs3-chart-scroll{min-width:0;max-width:100%;overflow:hidden}
@media(max-width:620px){
  .screen-content .vs3-chart-scroll{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:5px}
  .screen-content .card .vs3-chart-scroll svg.business-chart{width:440px!important;min-width:440px!important;max-width:none!important}
}

/* 0.13.86-dev — Product details rebuilt from the supplied reference layout. */
.screen-products .product-grid{grid-template-columns:minmax(0,51%) minmax(0,49%);grid-template-areas:'list detail' 'charts detail';gap:12px;align-items:start}
.screen-products .product-detail-card{min-width:0}
.screen-products .product-detail-card>.card{box-sizing:border-box;min-width:0;min-height:610px;padding:0!important;overflow:visible;border:1px solid #e5ebef;border-radius:13px;box-shadow:0 3px 16px #1c3a4b0c;background:#fff}
.screen-products .product-detail-card>.card>.card-head{display:none}
.screen-products .vs3-product-hero{min-height:75px;padding:13px 13px 7px;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;position:relative;z-index:2}
.screen-products .vs3-product-hero-heading{display:flex;align-items:center;min-width:0;gap:10px}
.screen-products .vs3-product-hero-name{min-width:0}
.screen-products .vs3-product-hero-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.screen-products .vs3-product-hero-title h2{font-size:clamp(18px,1.45vw,24px);line-height:1.12;margin:0;color:#142238;font-weight:750;overflow-wrap:anywhere}
.screen-products .vs3-product-status{display:inline-flex;align-items:center;font-size:11px;padding:3px 7px;border-radius:6px;font-weight:650;background:#e4f5e8;color:#247940}
.screen-products .vs3-product-status--inactive{background:#edf1f4;color:#6f7c87}
.screen-products .vs3-product-hero-name p{font-size:11px;color:#67778a;margin:5px 0 0;line-height:1.4}
.screen-products .vs3-product-hero-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.screen-products .vs3-product-hero-actions button,.screen-products .vs3-product-more>summary{font-size:11px;min-height:31px;border:1px solid #e0e7ed;background:#fff;border-radius:6px;padding:6px 9px;color:#26364b;box-shadow:0 1px 3px #1025360b}
.screen-products .vs3-product-edit-button span{font-size:15px;margin-right:3px}
.screen-products .vs3-product-more{position:relative;z-index:8}
.screen-products .vs3-product-more>summary{cursor:pointer;list-style:none;display:flex;justify-content:center;align-items:center;width:32px;font-size:20px;line-height:1;padding:0}
.screen-products .vs3-product-more>summary::-webkit-details-marker{display:none}
.screen-products .vs3-product-more-menu{position:absolute;right:0;top:calc(100% + 5px);width:180px;border:1px solid #e0e7ed;background:#fff;box-shadow:0 8px 25px #18352321;border-radius:8px;padding:5px;display:grid;gap:2px;z-index:20}
.screen-products .vs3-product-more:not([open]) .vs3-product-more-menu{display:none}
.screen-products .vs3-product-more-menu button{display:block;border:0;box-shadow:none;text-align:left;width:100%;padding:9px 8px;font-size:11px}
.screen-products .vs3-product-more-menu button:hover{background:#eff8f1}
.screen-products .vs3-product-tabs{margin:0!important;padding:0 7px!important;border:0!important;border-bottom:1px solid #e5eaf0!important;display:flex;align-items:stretch;justify-content:flex-start;gap:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;max-width:100%}
.screen-products .vs3-product-tabs [role="tab"]{font-size:11px;font-weight:550;color:#68788a;min-height:38px;padding:7px clamp(7px,.8vw,13px);white-space:nowrap;border-bottom:2px solid transparent;background:transparent;border-radius:0}
.screen-products .vs3-product-tabs [aria-selected="true"]{color:#185c37;border-bottom-color:#2b9b51;font-weight:750}
.screen-products .vs3-product-tab-panel{padding:10px 10px 13px!important;margin:0!important;min-width:0}
.screen-products .vs3-product-tab-panel[hidden]{display:none!important}
.screen-products .vs3-product-main-row{display:grid;grid-template-columns:minmax(0,66%) minmax(0,34%);gap:9px;min-width:0;align-items:start}
.screen-products .vs3-product-tile{min-width:0;background:#fff;border:1px solid #edf0f3;border-radius:9px;padding:10px;box-shadow:0 1px 4px #1837230a}
.screen-products .vs3-product-tile-header{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;margin-bottom:10px}
.screen-products .vs3-product-tile-header h3{font-size:12px!important;color:#182b42;font-weight:750;margin:0!important;display:flex;align-items:center;gap:6px;line-height:1.35}
.screen-products .vs3-product-tile-header h3>span{font-size:16px;color:#1d7642;line-height:1}
.screen-products .vs3-product-tile-icon{display:inline-grid;place-items:center;width:17px;height:19px;border-radius:3px;background:#eaf6ed;color:#177742!important;font-size:14px!important}
.screen-products .vs3-product-growth-tile{min-height:164px;display:flex;flex-direction:column}
.screen-products .vs3-product-growth-tile .vs3-product-progress-value{font-size:15px;font-weight:750;color:#213145;line-height:1}
.screen-products .vs3-product-progress-track{width:89%;height:7px;background:#e4e9ee;border-radius:100px;margin:1px auto 12px;overflow:hidden}
.screen-products .vs3-product-progress-track>span{display:block;height:100%;border-radius:100px;background:linear-gradient(90deg,#35a851,#4cbc69)}
.screen-products .vs3-product-stage-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;align-items:end;min-width:0;margin-top:auto}
.screen-products .vs3-product-stage-step{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;min-width:0;padding:6px 0 4px;border:1px solid transparent;border-radius:7px;color:#778396;font-size:11px;line-height:1.1;text-align:center}
.screen-products .vs3-product-stage-emoji{font-size:clamp(17px,1.75vw,27px);line-height:1.35;filter:saturate(.92)}
.screen-products .vs3-product-stage-step.is-current{border-color:#d6eadb;background:#f3fbf5;color:#198142;font-weight:750}
.screen-products .vs3-product-growth-edit{border:0;background:transparent;color:#2c8b51;font-size:11px;text-align:right;align-self:flex-end;padding:3px 0 0;min-height:0}
.screen-products .vs3-product-photo-tile{position:relative;overflow:hidden;min-width:0;height:132px;min-height:0;border-radius:9px;background:#edf5ed;align-self:start}
.screen-products .vs3-product-photo-tile .photo-gallery{display:block;width:100%;height:100%;margin:0!important}
.screen-products .vs3-product-photo-tile .photo-gallery figure,
.screen-products .vs3-product-photo-tile .photo-gallery figure>a{display:block;width:100%;height:100%;margin:0}
.screen-products .vs3-product-photo-tile .photo-gallery img.record-photo{display:block;width:100%;height:100%;min-height:0;object-fit:cover;border-radius:0}
.screen-products .vs3-product-photo-tile .product-photo-empty{display:grid;place-content:center;width:100%;height:100%;min-height:0;border:0;border-radius:0;background:linear-gradient(135deg,#e6f4e7,#f3faf5);font-size:11px;color:#637e69;padding:12px;line-height:1.4}
.screen-products .vs3-product-photo-badge{position:absolute;right:8px;bottom:8px;border:0;border-radius:5px;background:#102618dc;color:#fff;font-size:11px;font-weight:650;padding:6px 8px;white-space:nowrap}
.screen-products .vs3-product-lower-grid{display:grid;grid-template-columns:minmax(0,45%) minmax(0,55%);gap:9px;margin-top:9px;min-width:0}
.screen-products .vs3-product-info-tile{min-height:280px}
.screen-products .vs3-product-facts{margin:0}
.screen-products .vs3-product-facts>div{display:grid;grid-template-columns:minmax(0,49%) minmax(0,51%);align-items:center;gap:5px;padding:6px 0;min-height:28px;border-bottom:1px solid #ecf1f5;font-size:11px;line-height:1.25}
.screen-products .vs3-product-facts>div:last-child{border-bottom:0}
.screen-products .vs3-product-facts dt{color:#54657a;overflow-wrap:anywhere}
.screen-products .vs3-product-facts dd{margin:0;font-weight:650;color:#354761;overflow-wrap:anywhere}
.screen-products .vs3-product-lower-right{display:grid;gap:9px;align-content:start;min-width:0}
.screen-products .vs3-product-card-link{font-size:11px;color:#546a84;font-weight:550;text-decoration:none;white-space:nowrap;flex-shrink:0}
.screen-products .vs3-product-card-link:hover{text-decoration:underline}
.screen-products .vs3-product-observation-list,.screen-products .vs3-product-fertilizer-list{list-style:none;padding:0;margin:0;min-width:0}
.screen-products .vs3-product-observation-list li{display:grid;grid-template-columns:17px minmax(0,1fr) auto;gap:6px;align-items:start;font-size:11px;line-height:1.4;padding:5px 0;color:#30435b}
.screen-products .vs3-product-observation-list li+li{border-top:1px solid #f0f3f5}
.screen-products .vs3-product-observation-icon{font-size:13px}
.screen-products .vs3-product-observation-text{min-width:0;overflow-wrap:anywhere}
.screen-products .vs3-product-observation-list time{font-size:11px;color:#7d8b9c;white-space:nowrap}
.screen-products .vs3-product-risk-tile .vs3-product-tile-header{margin-bottom:6px}
.screen-products .vs3-product-risk-badge{font-size:11px;padding:4px 6px;color:#69788b;background:#eff2f5;border-radius:6px;white-space:nowrap}
.screen-products .vs3-product-risk-text{margin:0!important;font-size:11px!important;line-height:1.4!important;display:flex;align-items:start;gap:6px;color:#637288}
.screen-products .vs3-product-risk-text>span{font-size:15px;color:#82929d}
.screen-products .vs3-product-fertilizer-list li{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,auto);gap:4px;align-items:center;padding:4px 0;font-size:11px;line-height:1.25;color:#45566b}
.screen-products .vs3-product-fertilizer-list li>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.screen-products .vs3-product-fertilizer-list time{font-size:11px;color:#758497;white-space:nowrap}
.screen-products .vs3-product-fert-status{display:flex;align-items:center;gap:4px;white-space:nowrap;color:#627589}
.screen-products .vs3-product-fert-dot{width:7px;height:7px;border-radius:50%;background:#92a3b7}
.screen-products .vs3-product-fert-dot--done{background:#179b53}
.screen-products .vs3-product-fert-dot--in_progress{background:#eeb348}
.screen-products .vs3-product-placeholder{font-size:11px;line-height:1.5;color:#778595;margin:4px 0!important}
.screen-products .vs3-product-tab-content{padding:7px 3px;min-height:150px}
.screen-products .vs3-product-tab-content h3{font-size:14px;margin:0 0 12px}
.screen-products .vs3-product-tab-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.screen-products .vs3-product-tab-heading button{font-size:11px}
.screen-products .vs3-product-activity-list,.screen-products .vs3-product-note-list{list-style:none;padding:0;margin:0 0 12px}
.screen-products .vs3-product-activity-list li{padding:10px 2px;border-bottom:1px solid #eef1f4;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px}
.screen-products .vs3-product-activity-list li>div{display:grid;gap:3px}
.screen-products .vs3-product-activity-list time,.screen-products .vs3-product-note-list time{font-size:11px;color:#7f8998}
.screen-products .vs3-product-note-list li{display:grid;gap:4px;padding:10px 2px;border-bottom:1px solid #eef1f4;font-size:11px}
.screen-products .vs3-product-text-link{display:inline-block;margin-top:10px;font-size:11px;color:#16864b;font-weight:650}
.screen-products .vs3-product-manage{margin:11px 0 0;border-top:1px solid #eef1f3;padding-top:8px}
.screen-products .vs3-product-manage>summary{font-size:11px;cursor:pointer;color:#57708a;padding:6px 2px}
.screen-products .vs3-product-manage-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:7px}
.screen-products .vs3-product-manage-grid>section{padding:10px;border:1px solid #e7edf1;border-radius:9px;min-width:0}
.screen-products .vs3-product-manage-grid h3{margin:0 0 8px;font-size:12px}
.screen-products .vs3-product-manage-grid .product-cycle summary{font-size:11px}
@media(max-width:1180px){
 .screen-products .product-grid{grid-template-columns:1fr;grid-template-areas:'list' 'detail' 'charts'}
 .screen-products .vs3-product-main-row{grid-template-columns:minmax(0,66%) minmax(0,34%)}
 .screen-products .vs3-product-lower-grid{grid-template-columns:minmax(0,45%) minmax(0,55%)}
}
@media(max-width:560px){
 .screen-products .vs3-product-hero{padding:12px 10px 8px}
 .screen-products .vs3-product-hero-actions{gap:3px}
 .screen-products .vs3-product-edit-button{padding:5px 6px}
 .screen-products .vs3-product-main-row,.screen-products .vs3-product-lower-grid,.screen-products .vs3-product-manage-grid{grid-template-columns:1fr}
 .screen-products .vs3-product-photo-tile{height:150px}
 .screen-products .vs3-product-info-tile{min-height:0}
 .screen-products .vs3-product-tabs [role="tab"]{font-size:11px;padding:9px 12px}
 .screen-products .vs3-product-stage-emoji{font-size:24px}
}


/* 0.13.87-dev — Expense analytics: prevent full-width SVG charts from
   becoming oversized in wide cards. Keep the native 560:230 aspect ratio,
   center the plot, and leave the category table close to the chart. The
   scope deliberately excludes production, finance and other chart screens. */
.screen-expense-reports .vs3-expense-analytics .vs3-chart-scroll{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  width:100%;
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.screen-expense-reports .vs3-expense-analytics .vs3-chart-scroll svg.business-chart{
  display:block;
  width:min(100%, 530px);
  min-width:0;
  max-width:530px;
  height:auto;
  max-height:218px;
  aspect-ratio:560 / 230;
  margin:5px auto 0;
  overflow:visible;
}
.screen-expense-reports .vs3-expense-analytics .chart-legend{
  margin:3px 4px 6px;
}
.screen-expense-reports .vs3-expense-analytics .screen-table{
  margin-top:3px;
}
@media(max-width:620px){
  /* Existing mobile chart scroll rule intentionally provides a 440 px
     minimum plot width, rather than shrinking axis text beyond legibility. */
  .screen-expense-reports .vs3-expense-analytics .vs3-chart-scroll{
    justify-content:flex-start;
    overflow-x:auto;
  }
  .screen-expense-reports .vs3-expense-analytics .vs3-chart-scroll svg.business-chart{
    width:440px!important;
    min-width:440px!important;
    max-width:none!important;
    max-height:none;
    margin:5px 0 0;
  }
}

/* 0.13.88-dev — Private product photo thumbnails replace list emojis where present. */
.screen-products .vs-product-emoji{display:inline-grid;place-items:center;flex:none;width:30px;height:30px;margin-right:7px;overflow:hidden;border-radius:6px;line-height:1;vertical-align:middle}
.screen-products .vs-product-emoji .vs-product-thumb{display:block;width:30px;height:30px;max-width:100%;border-radius:6px;object-fit:cover;object-position:center}

/* 0.13.89-dev: compact left-aligned filters and accessible 11px minimum text. */
.screen-content .screen-filters{justify-content:flex-start;align-content:flex-start;text-align:left}
.screen-content .screen-filters>label{flex:0 1 190px;max-width:210px;min-width:150px;margin:0}
.screen-content .screen-filters>.filter-apply{margin-left:0;flex:0 0 auto}
/* Keep filters and Apply on the left; push the primary Add action to the far right. */
.screen-content .screen-filters>.primary.add-record{margin-left:auto;margin-inline-start:auto;flex:0 0 auto}
.screen-products .vs3-product-tabs [role="tab"]{font-size:11px}
/* Vendor attribution is not modified in its third-party source file. */
.maplibregl-ctrl-attrib{font-size:11px!important}
@media(max-width:780px){
  .screen-content .screen-filters>label{flex:1 1 calc(50% - 12px);max-width:none;min-width:0}
  .screen-content .screen-filters>.add-record{flex:1 1 100%;max-width:none;width:100%}
}
@media(max-width:430px){
  .screen-content .screen-filters>label{flex:1 1 100%}
}
/* Let filter cards and horizontally scrolling product tabs shrink with the mobile viewport. */
@media(max-width:780px){
  .screen-content{grid-template-columns:minmax(0,1fr)}
  .screen-content .screen-filters{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
}

/* 0.13.89-dev: observation attachments (Products / Activities / Detailed view). */
.vs3-observation-photo-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.vs3-observation-photo-fields label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:11px;color:#395269}
.vs3-observation-photo-fields input[type=file],.vs3-observation-add-photo input[type=file]{width:100%;min-width:0;max-width:100%;font-size:11px;overflow:hidden}
.vs3-observation-photos{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px;grid-column:1/-1;width:100%}
.vs3-observation-photos a{display:block;flex:0 0 56px;width:56px;height:56px;border:1px solid #d7e4dc;border-radius:8px;overflow:hidden}
.vs3-observation-photos img{display:block;width:100%;height:100%;object-fit:cover}
.vs3-product-observation-list li{min-width:0}
.vs3-product-observation-list li>.vs3-observation-photos,
.vs3-product-observation-list li>.vs3-observation-add-photo{grid-column:1/-1;min-width:0}
.vs3-observation-add-photo{margin-top:8px;min-width:0;grid-column:1/-1;width:100%;font-size:11px}
.vs3-observation-add-photo summary{cursor:pointer;color:#167344;font-weight:600}
.vs3-observation-add-photo form{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap;margin:8px 0}
.vs3-observation-add-photo label{display:flex;flex-direction:column;gap:5px;flex:1 1 170px;min-width:0;font-size:11px}
.vs3-observation-add-photo button{font-size:11px;white-space:nowrap}
.observation-list>li{flex-wrap:wrap}
.observation-list>li>.vs3-observation-photos,.observation-list>li>.vs3-observation-add-photo{flex-basis:100%}
@media(max-width:520px){.vs3-observation-photo-fields{grid-template-columns:1fr}}

/* 0.13.91 — Editable catalog picker, scoped to business forms. */
.vs3-catalog-field{min-width:0}
.vs3-catalog-field select[hidden],.vs3-catalog-field input[hidden]{display:none!important}
.vs3-catalog-combo{width:100%;min-width:0;max-width:100%;height:36px;border:1px solid #d3dde5;background:#fff;border-radius:7px;padding:7px 12px;font:inherit;color:var(--ink)}
.vs3-catalog-combo:focus{outline:2px solid #27854855;outline-offset:0;border-color:#278548}

/* VisionSen Tarım Asistanı — 0.13.92-dev guided onboarding/help */
.vs3-assistant{--vs3-assistant-green:#146b40;position:fixed;right:22px;bottom:20px;z-index:75;font-family:inherit;font-size:12px;line-height:1.5;color:#162e42}
.vs3-assistant button{font:inherit;cursor:pointer}
.vs3-assistant-launcher{display:flex;align-items:center;gap:9px;margin-left:auto;border:1px solid #147143;border-radius:999px;background:#176b42;color:#fff;box-shadow:0 9px 26px rgba(20,68,44,.2);padding:11px 17px;font-size:12px;font-weight:700;letter-spacing:.01em;transition:background .15s,transform .15s}
.vs3-assistant-launcher:hover{background:#105634;transform:translateY(-1px)}
.vs3-assistant-launcher:focus-visible,.vs3-assistant-panel button:focus-visible,.vs3-assistant-panel input:focus-visible{outline:3px solid #86cfa5;outline-offset:2px}
.vs3-assistant-launcher-symbol{display:grid;place-items:center;width:26px;height:26px;background:rgba(255,255,255,.16);border-radius:9px;font-size:22px;font-weight:700;line-height:1}
.vs3-assistant-panel{position:absolute;right:0;bottom:66px;display:flex;flex-direction:column;width:min(410px,calc(100vw - 28px));height:min(615px,calc(100dvh - 102px));min-height:320px;border:1px solid #d8e5db;border-radius:18px;background:#fff;box-shadow:0 18px 52px rgba(19,44,31,.22);overflow:hidden;isolation:isolate}
.vs3-assistant-panel[hidden]{display:none!important}
.vs3-assistant-head{display:flex;align-items:center;gap:11px;padding:13px 15px;background:linear-gradient(110deg,#155e38,#257e4b);color:#fff;flex:0 0 auto}
.vs3-assistant-head .vs3-assistant-mark{display:grid;place-items:center;width:37px;height:37px;background:#ffffff1c;border:1px solid #ffffff40;border-radius:12px;font-size:24px;line-height:1}
.vs3-assistant-head div{min-width:0;flex:1;display:grid;gap:1px}
.vs3-assistant-head strong{font-size:14px;line-height:1.25;font-weight:700}
.vs3-assistant-head small{font-size:11px;opacity:.85}
.vs3-assistant-head button{background:transparent;border:0;color:#fff;min-width:30px;height:30px;border-radius:8px;font-size:24px;line-height:1}
.vs3-assistant-head button:hover{background:#ffffff20}
.vs3-assistant-tabs{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:0 14px;border-bottom:1px solid #e0ebe4;flex:0 0 auto}
.vs3-assistant-tabs button{border:0;border-bottom:2px solid transparent;padding:12px 4px 10px;background:#fff;color:#566a60;font-size:12px;font-weight:600}
.vs3-assistant-tabs button[aria-selected=true]{color:#176b42;border-bottom-color:#1a814a}
.vs3-assistant-body{padding:14px 15px 16px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;scrollbar-color:#bcd1c4 transparent;scrollbar-width:thin}
.vs3-assistant-body>section[hidden]{display:none!important}
.vs3-assistant-intro strong{font-size:14px;color:#18382b}
.vs3-assistant-intro p{margin:4px 0 12px;color:#63756a;font-size:12px}
.vs3-assistant-progress{display:grid;grid-template-columns:1fr auto;column-gap:8px;row-gap:8px;align-items:center;background:#f0f7f1;border:1px solid #e0ede2;padding:12px;border-radius:12px;color:#386149}
.vs3-assistant-progress span{font-size:12px;font-weight:600}
.vs3-assistant-progress strong{font-size:12px}
.vs3-assistant-progress progress{grid-column:1/-1;width:100%;height:9px;border:0;border-radius:99px;overflow:hidden;accent-color:#269f54;background:#dfebdf}
.vs3-assistant-progress progress::-webkit-progress-bar{background:#dfebdf}
.vs3-assistant-progress progress::-webkit-progress-value{background:#269f54;border-radius:99px}
.vs3-assistant-steps{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:9px}
.vs3-assistant-step{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:9px;align-items:start;padding:10px 8px;border:1px solid #e5ede7;border-radius:11px;background:#fff}
.vs3-assistant-step>span{display:grid;place-items:center;font-size:18px;color:#798b7e;line-height:25px}
.vs3-assistant-step.is-done>span{color:#138d45}
.vs3-assistant-step>div{min-width:0;display:grid;gap:3px}
.vs3-assistant-step strong{font-size:12px;color:#1a3c2b}
.vs3-assistant-step small{font-size:11px;color:#687c72;line-height:1.4}
.vs3-assistant-step button,.vs3-assistant-message button{border:1px solid #d0e7d6;background:#edf7ef;color:#176e40;border-radius:8px;padding:6px 9px;font-size:11px;font-weight:700;white-space:nowrap}
.vs3-assistant-step button:hover,.vs3-assistant-message button:hover{background:#ddefe2}
.vs3-assistant-later{display:block;margin:14px auto 0;background:transparent;border:0;color:#708075;font-size:11px;text-decoration:underline}
.vs3-assistant-help-note{font-size:11px;color:#5f7569;background:#f4f8f5;padding:9px 10px;margin:0 0 12px;border-radius:9px}
.vs3-assistant-messages{display:flex;flex-direction:column;gap:12px;max-height:295px;min-height:115px;overflow:auto;padding:3px 2px 10px;overscroll-behavior:contain}
.vs3-assistant-message{max-width:94%;border-radius:12px;padding:10px 12px;background:#f0f5f1;color:#263a30;align-self:flex-start;overflow-wrap:anywhere}
.vs3-assistant-message--user{align-self:flex-end;background:#dff0e3;color:#123d28}
.vs3-assistant-message p{margin:0;font-size:12px;line-height:1.55;white-space:pre-wrap}
.vs3-assistant-message button{margin-top:9px}
.vs3-assistant-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:10px 0;border-top:1px solid #edf2ed}
.vs3-assistant-suggestions button{background:#fff;color:#27663e;border:1px solid #d3e5d8;border-radius:999px;padding:5px 10px;font-size:11px}
.vs3-assistant-suggestions button:hover{background:#eff8f1}
.vs3-assistant-ask{display:flex;gap:7px;align-items:center;padding-top:10px;border-top:1px solid #e7ede8}
.vs3-assistant-ask input{flex:1;min-width:0;width:100%;border-radius:10px;border:1px solid #cddbd1;padding:10px 12px;font-size:12px;height:40px;background:#fff}
.vs3-assistant-ask button{height:40px;background:#176b42;color:#fff;border:0;border-radius:10px;padding:0 12px;font-weight:700;font-size:11px}
.vs3-assistant-ask button:hover{background:#0f5834}
@media(max-width:560px){
 .vs3-assistant{right:12px;bottom:12px;left:12px}
 .vs3-assistant-launcher{padding:9px 12px}
 .vs3-assistant-panel{right:0;bottom:56px;width:100%;height:min(610px,calc(100dvh - 86px));min-height:0;border-radius:14px}
 .vs3-assistant-body{padding:12px}
 .vs3-assistant-step{grid-template-columns:18px minmax(0,1fr) auto;gap:6px}
}
@media(prefers-reduced-motion:reduce){.vs3-assistant-launcher{transition:none}.vs3-assistant-launcher:hover{transform:none}}

/* Equipment photos in the compact stock-list type glyph slot; same secure image as details. */
.screen-farm-assets .stock-item-icon.vs3-asset-type-icon{overflow:hidden;position:relative;flex-shrink:0}
.screen-farm-assets .vs3-asset-icon-photo{display:block;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:inherit;background:#edf4ee}
.screen-farm-assets .vs3-asset-row-actions{display:flex;align-items:center;gap:5px;white-space:nowrap}
.screen-farm-assets .vs3-asset-delete-trigger{padding:5px 9px;border:1px solid #efcaca;border-radius:7px;background:#fff3f3;color:#a42424;font-size:11px;font-weight:700;cursor:pointer}
.screen-farm-assets .vs3-asset-delete-trigger:hover{background:#ffe6e6}
.screen-farm-assets .stock-detail-card .vs3-asset-delete-trigger{border-color:#efcaca;background:#fff3f3;color:#a42424}
.vs3-asset-delete-warning{color:#a42424;font-weight:600;font-size:12px}

/* 0.13.94: draggable categories, explicit delete-with-transfer confirmation. */
.settings-category-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-bottom:1px solid #e5e9e7;padding:10px 0}
.settings-category-row>form{flex:1 1 250px;min-width:0}
.settings-category-row .settings-category-sort-controls{display:flex;align-items:center;flex:0 0 auto;gap:2px}
.settings-category-sort-controls button{border:1px solid #e0e9e3;border-radius:6px;background:#f7faf8;padding:7px 9px;min-height:31px;font-size:13px}
.settings-category-drag{cursor:grab;touch-action:pan-y;user-select:none}
.settings-category-row.is-dragging{opacity:.55;background:#edf7ef}
.settings-category-delete{flex:0 0 auto;font-size:11px;border-radius:8px}
.settings-category-delete summary{cursor:pointer;display:inline-block;color:#b23b3b;font-weight:600;padding:5px 8px}
.settings-category-delete[open]{flex-basis:100%;order:5;background:#fff9f9;border:1px solid #f3d3d3;padding:8px}
.settings-category-delete form{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:5px}
.settings-category-delete p{flex-basis:100%;margin:0;line-height:1.6}
.settings-category-confirm{display:flex!important;align-items:center;gap:8px;font-size:11px;cursor:pointer}
.settings-category-confirm input{width:auto!important}
.settings-category-danger{background:#fff2f0;border:1px solid #eeb3b0;color:#a42525;font-weight:700}
.settings-category-protected{font-size:11px;color:#76877d}
.settings-category-order-save{margin-top:12px;color:#116e38;background:#eaf7ed;border:1px solid #bbdfc2;font-weight:700}
@media(max-width:700px){.settings-category-row{align-items:flex-start}.settings-category-row>form{flex-basis:100%}.settings-category-row form{grid-template-columns:minmax(0,2fr) 80px auto}.settings-category-row form button{grid-column:auto}}

/* 0.13.94: wider site editor and inline optional product/variety photo fields. */
dialog:is(#new-sites,#edit-site){width:min(1440px,calc(100vw - 24px));max-width:none;padding:clamp(15px,2vw,26px)}
dialog:is(#new-sites,#edit-site) .site-form-layout{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:clamp(12px,2vw,28px)}
dialog:is(#new-sites,#edit-site) .site-form-layout .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.vs3-site-person-help{grid-column:1/-1;margin-top:0}
.vs3-form-photo-fields{border:1px solid #d8e5de;border-radius:12px;min-width:0;padding:14px;background:#fbfdfb;display:grid;gap:10px}
.vs3-form-photo-fields legend{font-weight:700;font-size:12px;padding:0 5px;color:#215c36}
.vs3-form-photo-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.vs3-form-photo-choices label{font-size:11px;min-width:0}
.vs3-form-photo-choices input{width:100%;min-width:0;font-size:11px}
.vs3-form-photo-preview{width:min(220px,100%);height:126px;object-fit:cover;border-radius:10px;border:1px solid #d8e5de}
.vs3-form-photo-preview[hidden]{display:none}
.vs3-form-photo-fields small{font-size:11px;color:#64786e}
.vs3-form-existing-photo .photo-gallery{max-width:220px}
.vs3-form-existing-photo figure{margin:0}
.vs3-form-existing-photo .record-photo{max-height:126px;width:100%;object-fit:cover;border-radius:9px}
.vs3-form-existing-photo .product-photo-empty{min-height:48px;margin:0}
@media(max-width:780px){dialog:is(#new-sites,#edit-site) .site-form-layout{grid-template-columns:1fr}}
@media(max-width:460px){dialog:is(#new-sites,#edit-site) .site-form-layout .form-grid,.vs3-form-photo-choices{grid-template-columns:1fr}}

.vs3-variety-entry{display:flex;align-items:center;gap:9px;min-width:0}
.vs3-variety-thumb{width:34px;height:34px;flex:none;object-fit:cover;border-radius:7px;border:1px solid #dbe5e0}

/* Reliable native category dropdown inside record modals (0.13.94). */
.vs3-catalog-field{display:grid;gap:7px;min-width:0}
.vs3-catalog-field>label{display:grid;gap:7px}
.vs3-catalog-field select[data-vs3-catalog-native]{display:block;width:100%;max-width:100%;min-width:0;min-height:36px;cursor:pointer}
.vs3-catalog-field select[data-vs3-catalog-native][hidden]{display:none!important}
.vs3-catalog-new-entry{display:grid;gap:7px;min-width:0}
.vs3-catalog-new-entry[hidden]{display:none!important}
.vs3-catalog-new-entry>label{display:block}
.vs3-catalog-new-row{display:flex;align-items:stretch;gap:8px;min-width:0}
.vs3-catalog-new-row>.vs3-catalog-combo{display:block!important;flex:1 1 auto;min-width:0;max-width:none;height:38px}
.vs3-catalog-new-row>.vs3-catalog-return{flex:0 0 auto;white-space:nowrap;padding:6px 10px;font-size:11px}
@media(max-width:430px){.vs3-catalog-new-row{flex-wrap:wrap}.vs3-catalog-new-row>.vs3-catalog-return{margin-left:auto}}

/* 0.13.95: stock material modal upload + thumbnail, fit the entire private product photo. */
.screen-stock .screen-filters .vs3-stock-create-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-inline-start:auto;min-width:0;flex-wrap:wrap}
.screen-stock .screen-filters .vs3-stock-create-actions>.add-record{margin:0;min-height:36px;max-width:none;flex:0 0 auto}
.screen-stock .screen-filters .vs3-stock-add-material{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 13px;border:1px solid #096a44;border-radius:8px;background:#0b7650;color:white;font-size:12px;font-weight:750;box-shadow:0 2px 7px #135a3c36;white-space:nowrap;cursor:pointer}
.screen-stock .screen-filters .vs3-stock-add-material:hover{background:#085c3d}
.screen-stock .screen-filters .vs3-stock-add-material>span{font-size:19px;line-height:15px}
.screen-stock .stock-list-card .stock-item-icon{overflow:hidden}
.screen-stock .stock-item-photo{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;background:#f5f8f7;border-radius:inherit}
.screen-stock .stock-product-main .stock-product-photo{display:block;width:100%;height:auto;aspect-ratio:1 / 1;max-height:190px;object-fit:contain;object-position:center;background:#f4f7f6;border:1px solid #e0e9e3;border-radius:10px}
.vs3-stock-modal-photo{margin-top:12px}
.vs3-stock-photo-preview-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.vs3-stock-photo-preview-row>.vs3-form-photo-preview{object-fit:contain;background:#fff}
.vs3-stock-photo-picker{font-size:12px;font-weight:700;padding:8px 14px;min-height:36px;background:#e8f5ee;color:#17653f;border:1px solid #b8d7c4;border-radius:8px;cursor:pointer}
@media(max-width:780px){.screen-stock .screen-filters .vs3-stock-create-actions{width:100%;flex:1 1 100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-inline-start:0}.screen-stock .screen-filters .vs3-stock-create-actions>button{min-width:0;white-space:normal;width:100%;max-width:none;justify-content:center}}
@media(max-width:430px){.screen-stock .screen-filters .vs3-stock-create-actions{grid-template-columns:minmax(0,1fr)}}


/* 0.13.96 — Stock modal: one optional photo picker, upload on Save only. */
.vs3-stock-modal-photo{margin-top:12px;padding:12px 14px;gap:10px}
.vs3-stock-photo-optional{color:#829188;font-weight:400;font-size:11px}
.vs3-stock-photo-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.vs3-stock-photo-action{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 15px;border-radius:9px;border:1px solid #bdd8c8;background:#f2f9f5;color:#165c3c;font-size:12px!important;font-weight:700;cursor:pointer;transition:background-color .15s ease}
.vs3-stock-photo-action:hover{background:#e5f4ea}
.vs3-stock-photo-action:focus-within{outline:2px solid #208b55;outline-offset:2px}
.vs3-stock-photo-action span{font-size:16px;line-height:1}
.vs3-stock-photo-action input[type=file]{position:absolute;width:1px;height:1px;margin:0;padding:0;opacity:0;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.vs3-stock-photo-preview-row{display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:wrap}
.vs3-stock-photo-preview-row>.vs3-form-photo-preview{width:94px;height:72px;object-fit:contain;border-radius:8px;background:#fff;flex-shrink:0}
.vs3-stock-photo-filename{color:#758477;font-size:11px;overflow-wrap:anywhere;min-width:0}
.stock-edit-photos{padding:10px 14px 2px;margin:8px 0 0;border-top:1px solid #e7eee9}
.stock-edit-photos>summary{color:#235b3d;font-weight:650;font-size:12px;cursor:pointer;list-style:revert;outline-offset:2px}
.stock-edit-photos[open]>summary{margin-bottom:12px}
.stock-edit-photos .photo-gallery{display:flex;gap:12px;flex-wrap:wrap}
.stock-edit-photos .photo-gallery figure{max-width:150px}
.stock-edit-photos .record-photo{width:132px;height:92px;object-fit:contain;background:#f5f8f6}
.stock-edit-photos .photo-gallery form{margin-top:5px}
.stock-edit-photos .photo-gallery .confirm-label{font-size:11px}
@media(max-width:520px){.vs3-stock-photo-actions{gap:8px}.vs3-stock-photo-action{flex:1 1 auto;padding:8px 10px}}

/* 0.13.97-dev: purchase modal, optional new material and compact totals row */
dialog:is(#new-direct-purchase,#stock-purchase,#edit-order):not([hidden]){width:min(1200px,calc(100vw - 28px));max-width:none}
.vs3-new-material-details{grid-column:1/-1;min-width:0;margin:8px 0 6px;border:1px solid #cadfd2;border-radius:10px;background:#f9fcfa;overflow:visible}
.vs3-new-material-details>summary{cursor:pointer;display:flex;align-items:center;gap:10px;min-height:42px;padding:11px 14px;color:#166839;font-size:13px;font-weight:700;list-style:none}
.vs3-new-material-details>summary::-webkit-details-marker{display:none}
.vs3-new-material-details>summary::after{content:'⌄';margin-left:auto;font-size:19px;transition:transform .15s}
.vs3-new-material-details[open]>summary::after{transform:rotate(180deg)}
.vs3-new-material-details>summary small{font-size:11px;font-weight:400;color:#6b8173}
.vs3-new-material-details .vs3-new-material-fields{margin:0;border:0;border-top:1px solid #dce9e1;border-radius:0;padding:14px;grid-template-columns:repeat(3,minmax(0,1fr))}
.vs3-new-material-details .vs3-new-material-fields>.data-note{grid-column:1/-1;margin:0}
.vs3-purchase-totals-row{display:flex;justify-content:flex-end;align-items:flex-start;grid-column:1/-1;width:100%;margin-top:0}
.vs3-purchase-totals-row>.sale-totals{width:min(100%,390px);max-width:none;margin:0}
@media(max-width:760px){.vs3-new-material-details .vs3-new-material-fields{grid-template-columns:1fr}}
@media(max-width:520px){dialog:is(#new-direct-purchase,#stock-purchase,#edit-order):not([hidden]){width:calc(100vw - 16px);max-width:none}.vs3-new-material-details>summary{flex-wrap:wrap}}

/* 0.13.98-dev: position purchase totals just below + Malzeme Ekle. */
[data-purchase-form] [data-trade-lines] > .vs3-purchase-totals-row{margin-top:12px;max-width:100%}
[data-purchase-form] [data-trade-lines] > .vs3-purchase-totals-row > .sale-totals{margin:0;flex:0 1 390px}
@media(max-width:520px){[data-purchase-form] [data-trade-lines] > .vs3-purchase-totals-row > .sale-totals{flex-basis:100%}}

/* 0.13.99 — Stock-detail purchase retains source product, shows its native unit, and compact discount icon. */
.vs3-purchase-fixed-stock{grid-column:1/-1;margin:2px 0 0;padding:7px 10px;border:1px solid #d8e8db;background:#f3faf5;border-radius:7px;font-size:11px;color:#286342}
.vs3-purchase-fixed-stock strong{font-weight:700;color:#174d32}
.purchase-line.purchase-form-grid{grid-template-columns:minmax(165px,2fr) 86px 92px minmax(116px,1fr) 66px minmax(82px,1fr) 44px 34px}
.purchase-line .sale-discount-toggle{width:38px;min-width:38px;max-width:38px;height:36px;justify-self:center;padding:0;display:grid;place-items:center;font-size:21px;line-height:1;font-weight:700}
.purchase-line .sale-discount-toggle>span{display:block;line-height:1}

/* 0.13.102-dev — Kategoriler: single-line edit and delete; drag-to-sort only. */
.settings-category-editor .settings-category-row{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;min-width:0;padding:7px 0}
.settings-category-editor .settings-category-row>.settings-category-sort-controls{display:flex;flex:0 0 auto;gap:0;align-items:center}
.settings-category-editor .settings-category-sort-controls>.settings-category-drag{width:30px;height:34px;min-height:34px;padding:5px;border-radius:7px;font-size:16px;cursor:grab}
.settings-category-editor .settings-category-row>form{display:flex;align-items:center;flex:1 1 auto;min-width:0;gap:7px;margin:0}
.settings-category-editor .settings-category-row>form>.settings-category-name{min-width:0;flex:1 1 auto;display:block;margin:0}
.settings-category-editor .settings-category-row>form input[name="option_label"]{display:block;height:34px;min-height:34px;padding:6px 9px;min-width:0;width:100%;font-size:12px}
.settings-category-editor .settings-category-row>form>button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:34px;height:34px;padding:6px 10px;margin:0;font-size:11px;white-space:nowrap}
.settings-category-editor .settings-category-row>.settings-category-delete-trigger{flex:0 0 auto;margin:0;min-height:34px;height:34px;padding:6px 10px;color:#af3030;background:#fff3f2;border:1px solid #ebc5c2;font-size:11px;font-weight:700;border-radius:7px}
.settings-category-editor .settings-category-row>.settings-category-delete-trigger:hover{background:#ffe5e2}
.settings-category-editor .settings-category-row>.settings-category-protected{flex:0 0 auto}
.settings-category-editor .settings-category-row>dialog:not([open]){display:none!important}
.settings-category-editor .settings-category-row>.settings-category-delete-dialog{width:min(470px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);border-radius:12px;padding:20px;white-space:normal;text-align:left}
.settings-category-editor .settings-category-delete-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.settings-category-editor .settings-category-delete-dialog h2{font-size:17px}
.settings-category-editor .settings-category-delete-dialog form{display:grid;grid-template-columns:1fr;gap:15px;padding:2px 0 0;margin:0}
.settings-category-editor .settings-category-delete-dialog p{font-size:13px;line-height:1.55}
.settings-category-editor .settings-category-delete-dialog .settings-category-confirm{display:flex!important;align-items:flex-start;gap:9px;margin:0;font-size:12px;line-height:1.4}
.settings-category-editor .settings-category-delete-dialog .settings-category-confirm input{width:auto!important;min-width:16px;flex:0 0 auto;margin-top:2px}
.settings-category-editor .settings-category-delete-dialog .form-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin-top:3px}
.settings-category-editor .settings-category-delete-dialog .form-actions button{font-size:12px;white-space:nowrap}
.settings-category-editor .settings-category-delete-dialog .form-actions .settings-category-danger{background:#b52b2b;color:#fff;border-color:#a51f1f}
.settings-category-editor .settings-category-add form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end}
.settings-category-editor .settings-category-add form>label{min-width:0}
.settings-category-editor .settings-category-add form>button{grid-column:auto;min-height:35px}
@media(max-width:560px){
 .settings-category-editor .settings-category-row{gap:5px}
 .settings-category-editor .settings-category-row>form{flex:1 1 auto;min-width:0;gap:5px;grid-template-columns:none}
 .settings-category-editor .settings-category-row>form>button{grid-column:auto;padding:6px 8px}
 .settings-category-editor .settings-category-row>.settings-category-delete-trigger{padding:6px 8px}
 .settings-category-editor .settings-category-add form{grid-template-columns:minmax(0,1fr) auto}
}

/* 0.13.103-dev — crop polygon assignment: site boundary + remaining land + draw area. */
dialog:is(#new-cycle,[id^="edit-cycle-"]){width:min(1240px,calc(100vw - 26px));max-width:none;max-height:calc(100dvh - 30px);overflow-y:auto;box-sizing:border-box}
.vs3-cycle-layout{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:20px;align-items:start;min-width:0}
.vs3-cycle-map-column,.vs3-cycle-fields-column{min-width:0}
.vs3-cycle-map-column{padding:12px;border:1px solid #d9e8df;background:#fbfdfb;border-radius:12px}
.vs3-cycle-map-column>h3{font-size:14px;margin:0 0 6px;color:#1b5b3c}
.vs3-cycle-map-column>.data-note{font-size:11px;line-height:1.5;margin:0 0 10px;color:#657d6f}
.vs3-cycle-map-column .vs3-geo-map,.vs3-cycle-map-column .vs3-geo-mapcanvas{height:clamp(260px,40vh,470px);min-height:240px;border-radius:9px;overflow:hidden}
.vs3-cycle-map-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 3px}
.vs3-cycle-map-actions button{padding:7px 11px;min-height:32px;font-size:11px}
.vs3-cycle-map-column .vs3-geo-count,.vs3-cycle-map-column .vs3-geo-area{margin:6px 0;color:#526a5c;font-size:11px}
.vs3-cycle-map-legend{display:flex;gap:8px 13px;flex-wrap:wrap;margin:10px 0;font-size:11px;color:#52645a}
.vs3-cycle-map-legend span:before{content:"";display:inline-block;width:9px;height:9px;vertical-align:-1px;border-radius:2px;background:#14764f;margin-right:5px}
.vs3-cycle-map-legend span:first-child:before{background:#125f83}
.vs3-cycle-map-legend span:nth-child(2):before{background:#d68c2f}
.vs3-cycle-map-warning{min-height:22px;margin:10px 0 0;font-size:11px;line-height:1.55;color:#597367}
.vs3-cycle-map-warning[data-status="error"]{color:#a43727;font-weight:600}
.vs3-cycle-fields-column>.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.vs3-cycle-fields-column :is(input,select){max-width:100%;min-width:0;box-sizing:border-box}
.vs3-cycle-fields-column .vs3-cycle-area-input{display:grid;gap:5px;min-width:0}
.vs3-cycle-area-input>label{margin:0}
.vs3-cycle-area-input>small{color:#617968;font-size:11px;line-height:1.45}
.vs3-cycle-area-input input[readonly]{background:#f1f7f3;color:#166d42;font-weight:700}
.vs3-cycle-area-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:14px}
.vs3-cycle-area-stats>div{border:1px solid #d9e7df;background:#f7faf7;border-radius:10px;padding:11px 10px;display:grid;gap:5px;min-width:0}
.vs3-cycle-area-stats>div:last-child{background:#e8f5eb;border-color:#b2ddc0}
.vs3-cycle-area-stats small{font-size:11px;color:#607a6c}
.vs3-cycle-area-stats strong{font-size:15px;color:#194a31;overflow-wrap:anywhere}
.vs3-cycle-fields-column .cycle-extra{margin-top:14px}
@media(max-width:980px){.vs3-cycle-layout{grid-template-columns:1fr}.vs3-cycle-map-column .vs3-geo-map,.vs3-cycle-map-column .vs3-geo-mapcanvas{height:300px;min-height:280px}}
@media(max-width:540px){dialog:is(#new-cycle,[id^="edit-cycle-"]){width:calc(100vw - 12px);max-height:calc(100dvh - 12px);padding:14px}.vs3-cycle-fields-column>.form-grid{grid-template-columns:1fr}.vs3-cycle-area-stats{gap:5px}.vs3-cycle-area-stats>div{padding:9px 6px}.vs3-cycle-area-stats strong{font-size:13px}.vs3-cycle-map-column{padding:10px}.vs3-cycle-map-column .vs3-geo-map,.vs3-cycle-map-column .vs3-geo-mapcanvas{height:255px;min-height:255px}}

/* 0.13.104-dev — move crop/site polygon corners with a mouse or touch pointer. */
.vs3-geo-mapcanvas.vs3-geo-vertex-hover{cursor:grab!important}
.vs3-geo-mapcanvas.vs3-geo-vertex-dragging{cursor:grabbing!important}
.vs3-geo-mapcanvas [data-vs3-vertex-index]{filter:drop-shadow(0 1px 2px rgba(6,45,30,.35))}

/* 0.13.105: persisted crop area editing from the field detail and the product record. */
.screen-sites .vs3-site-crop-polygons{margin-top:12px;padding:10px 0;border-top:1px solid var(--line)}
.screen-sites .vs3-site-crop-polygons h3{font-size:12px;margin:0 0 5px;color:#194f37}
.screen-sites .vs3-site-crop-polygons .data-note{font-size:11px;margin:4px 0 9px;color:#62788a}
.screen-sites .vs3-site-crop-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.screen-sites .vs3-site-crop-list li{display:flex;align-items:center;gap:8px;padding:7px 8px;border:1px solid #e0e9e4;border-radius:8px;min-width:0}
.screen-sites .vs3-site-crop-label{display:grid;gap:2px;min-width:0;flex:1 1 auto}
.screen-sites .vs3-site-crop-label strong{font-size:11px;overflow-wrap:anywhere}
.screen-sites .vs3-site-crop-label small{font-size:11px;color:#66788b}
.screen-sites .vs3-site-crop-edit{flex:0 0 auto;font-size:11px;color:#14663e;border:1px solid #b8dcc4;background:#eef8f1;border-radius:7px;padding:7px 8px;cursor:pointer}
.screen-sites .vs3-site-crop-edit:hover{background:#dceee2}
.screen-sites .vs3-site-crop-locked{font-size:11px;color:#6c7985}
.vs3-cycle-map-actions .vs3-geo-delete-selected:disabled{opacity:.42;cursor:not-allowed}
.vs3-cycle-edit-reason{margin-top:12px;padding:10px;border:1px solid #d8e8dd;border-radius:9px;background:#f7fbf8}
.vs3-cycle-edit-reason label{display:grid;gap:7px;font-size:11px;font-weight:600}
.vs3-cycle-edit-reason input{width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:36px}
.vs3-cycle-edit-reason small{display:block;color:#66788b;font-size:11px;margin-top:5px}
@media(max-width:500px){.screen-sites .vs3-site-crop-list li{flex-wrap:wrap}.screen-sites .vs3-site-crop-edit{margin-left:auto}}

.screen-products .vs3-product-polygon-shortcut{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:6px 0 11px}
.screen-products .vs3-product-polygon-shortcut button{font-size:11px;font-weight:650;padding:7px 12px;color:#176b42;background:#eef8f0;border:1px solid #bedfc8;border-radius:8px;cursor:pointer}
.screen-products .vs3-product-polygon-shortcut small{font-size:11px;color:#6a7c8e}

/* 0.13.106 — field boundaries and crop polygons are distinct layers. */
.vs3-crop-map-summary{padding:7px 4px;font-size:11px;color:#256144}
.vs3-crop-map-summary summary{font-weight:700;cursor:pointer}
.vs3-crop-map-summary ul{margin:7px 0 2px 12px;list-style:disc;max-height:125px;overflow-y:auto;columns:2}
.vs3-crop-map-summary li{font-size:11px;break-inside:avoid;padding:2px 1px}
.vs3-geo-crop-badge{position:absolute;transform:translate(-50%,-50%);padding:2px 5px;max-width:128px;border-radius:5px;background:#fffefaef;border:1px solid #c4ddca;color:#204a32;font-weight:650;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;box-shadow:0 1px 5px #152d2538}
.vs3-geo-crop-badge.is-historic{opacity:.68;background:#f6f4f1}
.vs3-cycle-existing-crops{display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;font-size:11px;color:#667d71;padding:6px 4px 0}
.vs3-cycle-existing-crops>strong{flex:0 0 100%;color:#234e39;font-size:11px}
.vs3-cycle-crop-item{display:inline-block;background:#fff4dc;color:#79551e;border:1px solid #eed59b;border-radius:7px;padding:3px 6px}
.vs3-cycle-crop-item[data-concurrent="0"]{background:#f3f4f3;color:#68736d;border-color:#e2e5e3}
@media(max-width:560px){.vs3-crop-map-summary ul{columns:1}.vs3-geo-crop-badge{max-width:87px}}

.vs3-crop-map-summary .vs3-crop-focus{border:0;padding:0;background:transparent;color:#12684c;text-decoration:underline;text-underline-offset:2px;font:inherit;cursor:pointer;font-weight:700}
.vs3-crop-map-summary .vs3-crop-focus:focus-visible{outline:2px solid #12684c;outline-offset:2px}

/* 0.13.107: automatic filter choices with a single reset action. */
.screen-filters .filter-reset,.detail-figma-filter-form .filter-reset{display:inline-flex;justify-content:center;align-items:center;gap:6px;text-decoration:none;min-height:35px;padding:7px 12px;line-height:1.3;font-size:11px;font-weight:650;border:1px solid #cddfd3;border-radius:8px;background:#f4faf5;color:#226447;white-space:nowrap;cursor:pointer;flex:0 0 auto}
.screen-filters .filter-reset:hover,.detail-figma-filter-form .filter-reset:hover{background:#e4f4e9;border-color:#8fc6a4}
.screen-filters .filter-reset:focus-visible,.detail-figma-filter-form .filter-reset:focus-visible{outline:2px solid #257a48;outline-offset:2px}
.screen-filters .vs3-date-range .filter-range-close{font-size:11px;min-height:33px;padding:7px 12px;border:1px solid #cddfd3;border-radius:7px;color:#226447;background:#f4faf5}
@media(max-width:780px){.screen-content .screen-filters>.filter-reset{flex:0 1 auto;min-width:0}.detail-figma-filter-form .filter-reset{white-space:normal}}


/* 0.13.108: physical equipment allocation and activity usage, separate from consumable stock. */
.vs3-asset-tracking{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid #d4e6da;border-radius:10px;padding:12px;margin:12px 0;min-width:0}
.vs3-asset-tracking legend{padding:0 7px;font-weight:700;font-size:12px;color:#176b42}
.vs3-asset-tracking label{min-width:0}.vs3-asset-tracking input,.vs3-asset-tracking select{width:100%;min-width:0}
.vs3-asset-tracking .data-note{grid-column:1/-1}
.vs3-asset-inventory-info{font-size:12px;line-height:1.75;margin-bottom:12px}
.vs3-asset-locations{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:14px}
.vs3-asset-locations>div{display:flex;justify-content:space-between;gap:10px;background:#f3f8f4;border:1px solid #e0eadf;border-radius:8px;padding:11px;font-size:12px}
.vs3-asset-movement-list{margin:5px 0 14px;padding-left:18px;font-size:12px;line-height:1.8}
.completion-section[data-completion-section=equipment] .form-grid,
.completion-section[data-completion-section=resource] .form-grid{background:#f9fcfa;border:1px solid #e0eee3;border-radius:9px;padding:12px;margin-bottom:10px}
.completion-section[data-completion-section=equipment] .data-note,
.completion-section[data-completion-section=resource] .data-note{grid-column:1/-1}
@media(max-width:680px){.vs3-asset-tracking{grid-template-columns:minmax(0,1fr)}}

/* 0.13.110 — Company user details and scoped module permissions. */
.screen-users .vs3-user-list-actions{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:10px 0 16px}
.screen-users .vs3-user-list-actions p{color:#65758a;line-height:1.5;font-size:12px;margin:0;flex:1}
.screen-users .vs3-user-list-actions button{background:#157b43;border-color:#157b43;color:#fff;font-weight:650}
.screen-users .vs3-user-table-row{cursor:pointer}
.screen-users .vs3-user-table-row:hover,.screen-users .vs3-user-table-row:focus-visible{background:#edf8ef!important;outline:2px solid #75b58f;outline-offset:-2px}
.screen-users .vs3-user-table-row .record-link{color:#116238;font-weight:700}
.screen-users .vs3-user-link{text-decoration:none;white-space:nowrap;font-weight:650;color:#168144}
.screen-users .vs3-user-detail-navigation{margin:3px 0 18px}
.screen-users .vs3-user-detail-navigation a{display:inline-flex;padding:9px 13px;border:1px solid #d9e4dd;background:#fff;border-radius:8px;font-size:12px;text-decoration:none}
.screen-users .vs3-user-detail-heading{display:flex;gap:15px;flex-wrap:wrap;align-items:center;justify-content:space-between;background:#fff;border:1px solid #dfe9e2;border-radius:12px;padding:18px;margin-bottom:14px}
.screen-users .vs3-user-detail-heading h2{font-size:21px;line-height:1.3;margin:0 0 4px;color:#183527}
.screen-users .vs3-user-detail-heading p{font-size:12px;color:#69798b;margin:0;overflow-wrap:anywhere}
.screen-users .vs3-user-state{font-size:11px;font-weight:650;color:#187a46;background:#e8f6eb;border-radius:20px;padding:7px 11px}
.screen-users .vs3-user-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.screen-users .vs3-user-profile-fields>label{display:grid;gap:6px;min-width:0;font-size:12px;font-weight:600}
.screen-users .vs3-user-profile-fields input{width:100%;min-width:0}
.screen-users .vs3-user-permission-fieldset{margin:18px 0 8px;border:1px solid #dbe7df;border-radius:10px;padding:15px;min-width:0}
.screen-users .vs3-user-permission-fieldset legend{font-weight:700;color:#254633;font-size:14px;padding:0 6px}
.screen-users .vs3-user-permission-fieldset>.data-note{margin:0 0 12px}
.screen-users .vs3-user-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.screen-users .vs3-user-permission-row{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;column-gap:12px;row-gap:8px;border:1px solid #e4eee6;border-radius:8px;padding:12px;background:#fafdfb}
.screen-users .vs3-user-permission-row strong{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.screen-users .vs3-user-permission-choice{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px;font-weight:500;cursor:pointer;color:#31495a}
.screen-users .vs3-user-permission-choice input{width:16px;height:16px;accent-color:#16844a;margin:0;flex-shrink:0}
.screen-users .vs3-user-form-footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:20px 0 4px}
.screen-users .vs3-user-form-footer .primary{min-height:38px}
.screen-users .vs3-user-form-footer .danger-text{border:1px solid #f2b0b0;background:#fff3f3;padding:9px 14px;border-radius:7px;font-size:12px;font-weight:700;color:#a32323}
.screen-users .vs3-user-permission-row:has(input:checked){border-color:#a2cfb1;background:#f1faf3}
@media(max-width:1200px){.screen-users .vs3-user-permission-grid{grid-template-columns:1fr}}
@media(max-width:650px){.screen-users .vs3-user-profile-fields{grid-template-columns:1fr}.screen-users .vs3-user-detail-heading{padding:13px}.screen-users .vs3-user-permission-fieldset{padding:10px}.screen-users .vs3-user-permission-row{grid-template-columns:1fr 1fr}.screen-users .vs3-user-permission-row strong{grid-column:1/-1}.screen-users .vs3-user-permission-choice{white-space:normal}}
.screen-content .vs3-readonly-notice{background:#fff7df;border:1px solid #f1dca4;border-radius:9px;padding:12px 15px;color:#6c5318;font-size:12px;margin:4px 0 14px}

/* 0.13.113: local mobile photo compression status in existing upload forms. */
.vs3-compress-note{display:block;margin:4px 0 6px;color:#276b47;font-size:12px;line-height:1.4;max-width:100%;overflow-wrap:anywhere}.vs3-compress-note:empty{display:none}.vs3-compress-note.vs3-compress-error{color:#b42318;font-weight:600}


/* 0.13.114-dev — Mobile Detailed View & Products: two KPI columns, charts last.
   Deliberately follows the legacy one-row KPI rule (0.13.76) and the
   desktop Products grid overrides (0.13.86), without changing desktop. */
@media (max-width: 780px) {
  /* Remove the inherited 1120px KPI minimum width and horizontal scrolling. */
  .screen-content.screen-detailed .detail-figma-kpis {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-width: 0 !important;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: visible;
    overflow-y: visible;
    gap: 9px;
  }
  .screen-content.screen-detailed .detail-figma-kpi {
    min-width: 0;
    min-height: 77px;
    padding: 10px 8px;
    gap: 7px;
    box-sizing: border-box;
  }
  .screen-content.screen-detailed .detail-figma-kpi-icon {flex: 0 0 24px;}
  .screen-content.screen-detailed .detail-figma-kpi-icon img {width: 23px; height: 23px;}
  .screen-content.screen-detailed .detail-figma-kpi-body {min-width: 0;}
  .screen-content.screen-detailed .detail-figma-kpi-body strong {
    font-size: clamp(12px, 3vw, 15px);
    overflow-wrap: anywhere;
  }

  /* The chart boxes live INSIDE .product-list-card in the PHP markup.
     Promote its children to the grid without moving DOM nodes, so screen
     readers and JavaScript keep the original document structure. */
  .screen-products .product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'list' 'detail' 'charts';
    align-items: start;
  }
  .screen-products .product-list-card {display: contents;}
  .screen-products .product-list-card > .card {grid-area: list; min-width: 0;}
  .screen-products .product-detail-card {grid-area: detail; min-width: 0;}
  .screen-products .product-list-card > .vs-product-chart-grid {
    grid-area: charts;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }
  .screen-products .product-list-card > .vs-product-chart-grid > .subcard {min-width: 0;}
}

/* 0.13.115 — irreversible administrative delete dialog */
.oim-danger-summary{border:1px solid #e0b5b5;background:#fff7f7;color:#6d2323;border-radius:10px;padding:12px 16px;margin-bottom:15px}
.oim-danger-summary p{margin:8px 0;line-height:1.5}
.oim-purge-impact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 12px;padding-left:18px}
.oim-permanent-delete-link{border-color:#bb3f3f!important;color:#a32626!important}
@media(max-width:600px){.oim-purge-impact{grid-template-columns:minmax(0,1fr)}}

/* Activity cost: actual source projection and optional separate manual estimate. */
.screen-activities .vs3-activity-cost{display:inline-flex;flex-direction:column;gap:3px;white-space:nowrap;line-height:1.25}
.screen-activities .vs3-activity-cost small{font-size:10px;color:#697c8c;font-weight:400;white-space:normal}
.screen-activities .vs3-activity-cost-warning{font-size:11px;color:#996013}

/* Completed activity: explicit extra-record date and quick calendar-day choices. */
.vs3-completion-date{display:grid;gap:6px;min-width:0}
.vs3-completion-date>label{display:grid;gap:5px;max-width:330px}
.vs3-completion-date>label input{width:100%;min-width:0}
.vs3-completion-date-actions{display:flex;gap:8px;flex-wrap:wrap}
.vs3-completion-date-actions button{width:auto;min-height:32px;padding:6px 12px;border:1px solid var(--line,#d9e2e6);border-radius:6px;background:#f6f9f8;color:var(--ink,#233b32);cursor:pointer;font-size:12px}
.vs3-completion-date-actions button:hover,.vs3-completion-date-actions button:focus-visible{border-color:var(--green,#248451);background:#e9f5ed}
.vs3-completion-date .data-note{max-width:72ch;margin:0}

/* 0.13.123: Activities - fixed 15 visible rows, remainder scrolls vertically. */
.screen-activities .activity-list-card .screen-table{
  max-height:calc(15 * 47px + 46px);overflow-y:auto;overscroll-behavior-y:contain;
  overflow-x:auto;scrollbar-width:thin;min-width:0;
}
.screen-activities .activity-list-card .screen-table thead{position:sticky;top:0;z-index:2;background:var(--card-bg,#fff)}
.screen-activities .activity-list-card .screen-table tr{height:47px}
.screen-activities .activity-list-card .screen-table td{white-space:nowrap}
.screen-activities .activity-list-card .vs3-activity-list-count{font-size:11px;margin:7px 4px}

/* 0.13.123: Person-based labor roster, task actions, immutable payments ledger. */
.screen-labor .labor-list-card .screen-table{max-height:720px;overflow:auto;scrollbar-width:thin}
.screen-labor .labor-list-card .screen-table td{white-space:nowrap}
.screen-labor .vs3-worker-financials{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0}
.screen-labor .vs3-worker-financial{padding:12px 9px;border:1px solid var(--line,#dce5e1);border-radius:9px;background:var(--card-bg,#fff);min-width:0;display:flex;flex-direction:column;gap:5px}
.screen-labor .vs3-worker-financial small{font-size:11px;color:var(--muted,#64766d)}
.screen-labor .vs3-worker-financial strong{font-size:15px;overflow-wrap:anywhere}
.screen-labor .vs3-task-actions,.screen-activities .vs3-labor-inline-actions{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}
.screen-labor .vs3-task-actions button,.screen-activities .vs3-labor-inline-actions button{padding:5px 8px;font-size:11px}
.screen-labor .business-history li{gap:8px;align-items:center;flex-wrap:wrap}
@media(max-width:850px){.screen-labor .vs3-worker-financials{grid-template-columns:repeat(2,minmax(0,1fr))}}

.screen-labor .vs3-task-pay-breakdown{color:var(--green,#247b47);font-size:11px;white-space:normal;margin-top:4px}


/* v0.13.124 — cost tables: per-table filters and max ten data rows. */
.screen-costs .vs3-cost-global-export{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:8px 0 15px;padding:12px 16px;border:1px solid #d4e4da;background:#f5fbf7;border-radius:12px}
.screen-costs .vs3-cost-global-export>strong{font-size:14px;color:#224936}
.screen-costs .vs3-cost-global-export-buttons{display:flex;gap:10px;flex-wrap:wrap}
.screen-costs .vs3-cost-global-export-buttons a{display:inline-flex;align-items:center;justify-content:center;border-radius:7px;padding:9px 13px;border:1px solid #bdd2c6;text-decoration:none;color:#1b5439;font-weight:600;background:#fff}
.screen-costs .vs3-cost-global-export-buttons a:first-child{background:#216a48;color:#fff}
.screen-costs .vs3-cost-table-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:end;justify-content:flex-start;margin:0 0 12px}
.screen-costs .vs3-cost-table-toolbar label{display:flex;flex-direction:column;gap:5px;color:#486559;font-size:11px;font-weight:600;min-width:0}
.screen-costs .vs3-cost-table-toolbar input,.screen-costs .vs3-cost-table-toolbar select{height:36px;min-width:170px;border:1px solid #cddbd2;border-radius:7px;padding:5px 10px;color:#2b4036;background:#fff;font:inherit}
.screen-costs .vs3-cost-table-toolbar [data-vs3-cost-count]{margin-left:auto;font-size:12px;color:#5f7367;white-space:nowrap}
.screen-costs [data-vs3-cost-list]{overflow-x:auto!important;overflow-y:auto!important;min-width:0;width:100%;scrollbar-width:thin;overscroll-behavior:contain}
.screen-costs [data-vs3-cost-list] table{width:100%;border-collapse:separate;border-spacing:0}
.screen-costs [data-vs3-cost-list] thead th{position:sticky;top:0;background:#edf5ef;z-index:2}
.screen-costs [data-vs3-cost-list] tfoot th{position:sticky;bottom:0;background:#edf5ef;z-index:2}
.screen-costs [data-vs3-cost-list] tr[hidden]{display:none!important}
.screen-costs dialog:is(#new-costs,#edit-direct-cost){width:min(820px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 28px);overflow-y:auto}
.screen-costs .vs3-direct-cost-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin:10px 0;align-items:start}
.screen-costs .vs3-direct-cost-form-grid>label{min-width:0;margin:0}
.screen-costs .vs3-direct-cost-form-grid :is(input,select){box-sizing:border-box;width:100%;min-width:0}
@media(max-width:650px){.screen-costs .vs3-direct-cost-form-grid{grid-template-columns:minmax(0,1fr)}.screen-costs .vs3-cost-table-toolbar label{flex:1 1 140px}.screen-costs .vs3-cost-table-toolbar input,.screen-costs .vs3-cost-table-toolbar select{width:100%;min-width:0}.screen-costs .vs3-cost-table-toolbar [data-vs3-cost-count]{margin:0}}
@media print{
  .screen-costs [data-vs3-cost-list],.screen-costs .vs3-production-breakdown .screen-table{max-height:none!important;overflow:visible!important}
  .screen-costs [data-vs3-cost-list] tr[hidden]{display:table-row!important}
  .screen-costs .vs3-cost-table-toolbar,.screen-costs .vs3-cost-global-export,.screen-costs .vs3-production-tools{display:none!important}
  .screen-costs .card,.screen-costs table{break-inside:auto}
  .screen-costs thead{display:table-header-group}
}

.screen-costs .vs3-production-breakdown .screen-table[data-vs3-cost-list]{max-height:var(--vs3-cost-max-height,500px)!important;overflow-y:auto!important}
.screen-costs [data-vs3-cost-list]{max-height:var(--vs3-cost-max-height,520px)!important}
@media print{.screen-costs [data-vs3-cost-list],.screen-costs .vs3-production-breakdown .screen-table[data-vs3-cost-list]{max-height:none!important;overflow:visible!important}}

/* 0.13.125 Harvest: shorter analytics, full-width register and standalone traceable detail. */
.screen-content .harvest-grid{grid-template-columns:minmax(0,1fr) minmax(0,.86fr) minmax(0,.85fr);grid-template-areas:'trend distribution progress' 'list list list';gap:12px;align-items:start}
.screen-content .harvest-grid .harvest-trend-card{grid-area:trend}
.screen-content .harvest-grid .harvest-distribution-card{grid-area:distribution}
.screen-content .harvest-grid .harvest-progress-card{grid-area:progress}
.screen-content .harvest-grid .harvest-list-card{grid-area:list;grid-column:1/-1;min-width:0}
.screen-content .harvest-grid>:is(.harvest-trend-card,.harvest-distribution-card,.harvest-progress-card)>.card{min-height:0;height:auto;min-width:0}
.screen-content .harvest-trend-card .business-chart{height:108px;margin-top:0}
.screen-content .harvest-distribution-card .distribution{gap:8px;margin:3px 0 0}
.screen-content .harvest-distribution-card .donut,.screen-content .harvest-distribution-card .donut svg{height:94px;width:94px}
.screen-content .harvest-progress-card .metric-progress{margin:9px 2px}
.harvest-detail-full{display:block;min-width:0;width:100%;margin-top:10px}
.harvest-detail-full>.card{width:100%;min-width:0;margin-top:12px}
.harvest-back-link{margin:8px 0 14px;font-weight:600}
.harvest-detail-full .detail-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 14px}
.harvest-detail-full .detail-list>div{min-width:0}
.harvest-detail-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin:8px 0 18px}
.harvest-detail-full .business-history{max-height:none;overflow:visible}
.harvest-detail-full .screen-table{overflow:auto;margin:6px 0 16px}
.harvest-detail-full .screen-table table{min-width:780px}
.harvest-quality-summary{margin:12px 0}
.harvest-quality-items{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.harvest-quality-items>span{border:1px solid var(--line,#dde4e6);border-radius:6px;padding:7px 10px;background:var(--surface,#f8fafb);font-size:12px}
.harvest-quality-items>span b{margin-right:5px}
@media(max-width:1100px){.screen-content .harvest-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:'trend distribution' 'progress progress' 'list list'}}
@media(max-width:780px){.screen-content .harvest-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:'trend' 'distribution' 'progress' 'list'}.harvest-detail-full .detail-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.harvest-detail-full .detail-list{grid-template-columns:minmax(0,1fr)}.harvest-detail-actions{justify-content:flex-start}}


/* 0.13.126 Harvest: equal-height compact charts, one-row quality KPIs,
   standalone detail sections and a single top-right operation toolbar. */
.screen-content .harvest-grid>:is(.harvest-trend-card,.harvest-distribution-card,.harvest-progress-card){min-width:0;align-self:stretch;display:flex}
.screen-content .harvest-grid>:is(.harvest-trend-card,.harvest-distribution-card,.harvest-progress-card)>.card{
  width:100%;height:210px;min-height:210px;max-height:210px;box-sizing:border-box;overflow:hidden
}
.screen-content .harvest-trend-card .vs3-chart-scroll{height:127px;min-height:0;overflow:hidden}
.screen-content .harvest-trend-card svg.business-chart{height:118px;max-height:118px;width:100%;aspect-ratio:auto;margin-top:2px;object-fit:contain}
.screen-content .harvest-trend-card .chart-legend{margin-top:2px}
.screen-content .harvest-distribution-card .distribution{max-height:140px;overflow:auto;align-items:center}
.screen-content .harvest-distribution-card .donut,.screen-content .harvest-distribution-card .donut svg{width:94px;height:94px}
.screen-content .harvest-progress-card .harvest-progress-scroll{max-height:145px;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain;padding-right:5px}
.harvest-detail-full{width:100%;min-width:0;display:grid;gap:12px;margin-top:6px}
.harvest-detail-full>.card{margin-top:0;width:100%;min-width:0;box-sizing:border-box}
.harvest-detail-full .harvest-breadcrumb{display:flex;align-items:center;gap:9px;margin:3px 0 2px;font-size:14px;font-weight:600}
.harvest-detail-full .harvest-breadcrumb a{text-decoration:none;color:#277148}
.harvest-detail-full .harvest-breadcrumb strong{color:#243b34}
.harvest-detail-kpis{overflow-x:auto;scrollbar-width:thin;min-width:0;padding-bottom:3px}
.harvest-detail-kpis>.screen-kpis{display:grid;grid-template-columns:repeat(var(--kpi-count),minmax(148px,1fr));min-width:max-content;gap:8px;margin:0}
.harvest-detail-kpis .kpi{min-width:148px;min-height:90px;height:auto;box-sizing:border-box;padding:10px 9px;gap:7px}
.harvest-detail-kpis .kpi-icon{width:34px;height:38px;flex:0 0 34px}
.harvest-detail-kpis .kpi h2{font-size:11px;white-space:normal;line-height:1.25}
.harvest-detail-kpis .kpi strong{font-size:15px;white-space:nowrap;line-height:1.25}
.harvest-detail-kpis .kpi small{font-size:10px;line-height:1.25;white-space:normal}
.harvest-detail-full>.card>.card-head{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px}
.harvest-detail-full .harvest-detail-head-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;margin:0 0 0 auto;max-width:100%}
.harvest-detail-head-actions .harvest-action-btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;font-size:11px;font-weight:700;border:1px solid #cbded1;border-radius:7px;background:#eff8f1;color:#205f40;cursor:pointer;white-space:nowrap}
.harvest-detail-head-actions .harvest-action-btn.primary{border-color:#1d7048;background:#24744d;color:#fff}
.harvest-detail-head-actions .harvest-action-btn.danger-text{background:#fff0f0;color:#b02e2e;border-color:#edc9c9}
.harvest-detail-head-actions .harvest-action-btn:disabled{opacity:.44;cursor:not-allowed;background:#f3f4f5;color:#63706a}
.harvest-detail-head-actions .harvest-action-btn:not(:disabled):hover{filter:brightness(.96)}
.harvest-detail-full .detail-list{display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin-top:12px}
.harvest-detail-full .detail-list>div{display:grid;grid-template-columns:minmax(145px,220px) minmax(0,1fr);gap:12px;align-items:start;padding:9px 2px;border-bottom:1px solid #ecf0ed}
.harvest-detail-full .detail-list dt{font-size:12px;color:#647568}
.harvest-detail-full .detail-list dd{font-weight:600;font-size:13px;margin:0;min-width:0;overflow-wrap:anywhere}
.harvest-detail-full .harvest-lot-row-actions{white-space:normal;min-width:175px}
.harvest-detail-full .harvest-lot-row-actions button,.harvest-detail-full .harvest-lot-row-actions a{display:inline-flex;align-items:center;border:1px solid #d5e3da;background:#f7faf8;color:#225b41;border-radius:6px;margin:2px 3px 2px 0;padding:5px 7px;text-decoration:none;font-size:11px}
.harvest-lot-picker{display:grid;gap:8px}
.harvest-lot-picker button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:4px;border:1px solid #d7e5db;border-radius:8px;background:#f6faf7;padding:11px 12px}
.harvest-lot-picker button:hover{border-color:#75ad8b;background:#edf7ef}
.harvest-lot-picker button small{color:#5c6b63}
@media(max-width:850px){.harvest-detail-full .harvest-detail-head-actions{justify-content:flex-start;margin-left:0;flex-basis:100%}}
@media(max-width:500px){.harvest-detail-full .detail-list>div{grid-template-columns:minmax(0,1fr);gap:3px}.harvest-detail-head-actions .harvest-action-btn{flex:1 1 auto}.harvest-detail-kpis .kpi{padding:8px;min-height:83px}}

/* 0.13.127-dev — sales returns, grouped delivery collections, customer header cash actions. */
.screen-filters.vs3-return-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin:10px 0 14px}
.screen-filters.vs3-return-filters>label{flex:1 1 150px;min-width:120px}
.screen-filters.vs3-return-filters>button{white-space:nowrap}
.vs3-delivery-payment{border:1px solid #d9e6dd;border-radius:9px;padding:12px 14px;margin:12px 0;display:flex;flex-wrap:wrap;gap:9px 16px}
.vs3-delivery-payment legend{font-size:12px;font-weight:700;color:#205d3d;padding:0 7px}
.vs3-delivery-payment-option{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600}
.vs3-delivery-payment [data-delivery-partial],.vs3-delivery-payment [data-delivery-paid]{flex:1 1 100%;min-width:0}
.vs3-delivery-payment [data-delivery-paid]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.vs3-delivery-payment [data-delivery-paid]>.data-note{grid-column:1/-1}
.vs3-delivery-payment [hidden]{display:none!important}
.purchase-detail-layout .card-head:has(>.purchase-header-action){gap:6px;flex-wrap:wrap}
.purchase-detail-layout .card-head>.purchase-header-action{margin-inline-start:0;white-space:nowrap}
.purchase-detail-layout .card-head>div{margin-right:auto}
@media(max-width:600px){.vs3-delivery-payment [data-delivery-paid]{grid-template-columns:minmax(0,1fr)}.purchase-detail-layout .card-head>.purchase-header-action{flex:1 1 auto}}

/* 0.13.130-dev: compact header filters matching workforce tables. */
.screen-costs .vs3-cost-header-exports{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap;margin-left:auto}
.screen-costs .vs3-cost-header-exports a{display:inline-flex;align-items:center;border:1px solid #c6d9cd;border-radius:7px;background:#f3faf5;color:#245e40;font-weight:650;font-size:12px;padding:8px 11px;text-decoration:none;white-space:nowrap}
.screen-costs .vs3-cost-header-exports a:first-child{background:#247248;border-color:#247248;color:#fff}
.screen-costs table[data-vs3-column-filters] thead .vs3-column-filter-row th{padding:4px 7px 5px!important;background:#f4f8fa;position:sticky;top:0;z-index:4}
.screen-costs table[data-vs3-column-filters] .vs3-column-filter-row select{display:block;width:100%;min-width:85px;max-width:100%;height:32px;box-sizing:border-box;border:1px solid #d5dedb;border-radius:6px;background:#fff;color:#334b42;padding:4px 8px;font-size:11px;font-weight:400;text-transform:none;box-shadow:none}
.screen-costs table[data-vs3-column-filters] thead tr:not(.vs3-column-filter-row) th{top:41px!important;background:#f1f5f7;z-index:3}
.screen-costs table[data-vs3-column-filters] .vs3-column-filter-row select:focus{outline:2px solid #7caf95;outline-offset:1px}
.screen-costs .vs3-profit-diagnostics{margin:12px 0 0;background:#fff8e9;color:#704f1d;border:1px solid #ecdcb9;border-radius:8px;padding:12px 14px;font-size:12px}
.screen-costs .vs3-profit-diagnostics ul{margin:5px 0 0;padding-left:20px}
@media(max-width:850px){.screen-costs .vs3-cost-header-exports{margin-left:0}.screen-costs .vs3-cost-header-exports a{flex:1}}
@media print{.vs3-column-filter-row,.vs3-cost-header-exports{display:none!important}.screen-costs table[data-vs3-column-filters] thead tr:not(.vs3-column-filter-row) th{top:0!important}}

/* Returns: searchable delivery picker, optional immediate cash reimbursement. */
.vs3-return-header-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}
.vs3-return-lookup{position:relative;min-width:0;margin:9px 0 14px}
.vs3-return-lookup [data-return-search]{width:100%;box-sizing:border-box;min-height:38px;border:1px solid #d3dfd6;border-radius:7px;padding:8px 11px;background:white}
.vs3-return-lookup [data-return-results]{position:relative;z-index:20;max-height:260px;overflow-y:auto;border:1px solid #d5e2d9;border-radius:8px;background:#fff;box-shadow:0 10px 22px #12372920;padding:5px;display:flex;flex-direction:column;gap:3px}
.vs3-return-lookup [data-return-results][hidden]{display:none!important}
.vs3-return-lookup [data-return-results] button{width:100%;padding:9px 10px;border:0;background:#f7faf8;color:#23513b;font-size:12px;text-align:left;white-space:normal;cursor:pointer;border-radius:6px}
.vs3-return-lookup [data-return-results] button:hover,.vs3-return-lookup [data-return-results] button:focus{background:#dff2e4;outline:1px solid #75aa82}
.vs3-return-lookup .vs3-return-native-select-hidden{position:absolute;top:0;right:0;width:1px;height:1px;overflow:hidden;opacity:.001;pointer-events:none}
.vs3-return-cash{border:1px solid #d5e3d8;border-radius:9px;padding:10px 13px;margin:10px 0;min-width:0}
.vs3-return-cash legend{font-weight:700;color:#276043;font-size:12px;padding:0 8px}
.vs3-return-cash [data-return-cash-fields]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.vs3-return-cash [data-return-cash-fields][hidden]{display:none!important}
.vs3-return-cash [data-return-cash-fields] .data-note{grid-column:1/-1}
@media(max-width:650px){.vs3-return-cash [data-return-cash-fields]{grid-template-columns:1fr}.vs3-return-header-actions{margin-left:0;width:100%;justify-content:flex-start}}


/* 0.13.131-dev: Do not trap the vertical mouse wheel inside tables/cards.
   A table may scroll its own rows; after reaching the first/last row the next
   wheel movement must continue scrolling the surrounding page naturally.
   Keep horizontal scrolling of wide tables and fixed-row list heights. */
.screen-content .screen-table,
.screen-content [data-vs3-cost-list],
.screen-content .vs3-production-breakdown,
.screen-content .vs3-growth-list,
.screen-content .stock-movement-history,
.screen-content .harvest-progress-scroll,
.screen-content .distribution,
.screen-content .legend {
  overscroll-behavior-y: auto !important;
}
/* Horizontal-only KPI and chart strips must not block vertical page scrolling. */
.screen-content .screen-kpis,
.screen-content .financial-kpi-strip,
.screen-content .vs3-production-kpi-strip,
.screen-content .vs3-chart-scroll,
.screen-content .vs3-cost-global-export,
.screen-content .detail-quick-actions-list {
  overscroll-behavior-y: auto !important;
}

/* 0.13.132-dev — compact 4-chart row in Sales Reports. No global chart sizing
   rules: the existing large SVG scaling must not affect these report widgets. */
.screen-sales-reports .vs3-sales-report-panels{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.screen-sales-reports .vs3-sales-report-charts{display:grid;grid-template-columns:minmax(0,1.35fr) repeat(3,minmax(0,1fr));gap:12px;align-items:stretch;min-width:0}
.screen-sales-reports .vs3-sales-report-charts>.card{box-sizing:border-box;min-width:0;min-height:257px;height:257px;max-height:257px;overflow:hidden;display:flex;flex-direction:column;padding:12px 13px}
.screen-sales-reports .vs3-sales-report-charts>.card>.card-head{margin-bottom:4px;min-width:0}
.screen-sales-reports .vs3-sales-report-charts>.card>.card-head h2{font-size:12px;line-height:1.3;white-space:normal}
.screen-sales-reports svg.vs3-sales-monthly-chart{display:block;width:100%;height:169px;max-height:169px;min-height:0;margin:auto 0 0;overflow:visible;flex:0 0 auto}
.screen-sales-reports .vs3-sales-monthly-chart .vs3-sales-monthly-guide{stroke:#e0e9e3;stroke-width:1}
.screen-sales-reports .vs3-sales-monthly-chart .vs3-sales-monthly-axis{font-family:inherit;fill:#677d78;font-size:12px;font-weight:500}
.screen-sales-reports .vs3-sales-monthly-note{font-size:10px;color:#426a57;display:flex;justify-content:flex-end;margin-top:3px}
.screen-sales-reports .vs3-sales-monthly-note i{display:inline-block;background:#167744;width:7px;height:7px;border-radius:2px;margin-right:4px}
.screen-sales-reports .vs3-sales-chart-caption{font-size:10px;color:#77877f;line-height:1.35;margin:6px 0 0;white-space:normal}
.screen-sales-reports .vs3-sales-donut-caption{font-size:10px;color:#6c7d74;margin:0 0 5px;line-height:1.3}
.screen-sales-reports .vs3-sales-donut-body{display:grid;grid-template-columns:minmax(0,1fr) 114px;align-items:center;justify-content:stretch;flex:1;gap:8px;min-height:0;width:100%}
.screen-sales-reports .vs3-sales-donut-figure{grid-column:2;width:114px;max-width:100%;height:114px;flex:0 0 114px;margin:0 0 0 auto}
.screen-sales-reports .vs3-sales-donut-figure>svg{display:block;width:100%;height:100%;overflow:visible}
.screen-sales-reports .vs3-sales-donut-center-caption{font-size:10px;fill:#65786b;font-weight:500}
.screen-sales-reports .vs3-sales-donut-center-total{font-size:13px;fill:#164c36;font-weight:800}
.screen-sales-reports .vs3-sales-donut-legend{grid-column:1;list-style:none;display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:0;margin:0;width:100%;min-width:0;max-height:148px;overflow:auto;scrollbar-width:thin;overscroll-behavior-y:auto;align-content:start}
.screen-sales-reports .vs3-sales-donut-legend li{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:5px;align-items:center;min-width:0;font-size:10px;line-height:1.3;color:#65746b}
.screen-sales-reports .vs3-sales-donut-legend li>i{width:8px;height:8px;border-radius:3px}
.screen-sales-reports .vs3-sales-donut-legend li>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.screen-sales-reports .vs3-sales-donut-legend li>strong{font-size:10px;color:#375443;white-space:nowrap}
.screen-sales-reports .vs3-sales-chart-empty{color:#829389;font-size:11px;text-align:center;margin:auto 10px;line-height:1.5}
@media(max-width:1260px){.screen-sales-reports .vs3-sales-report-charts{grid-template-columns:repeat(2,minmax(0,1fr))}.screen-sales-reports .vs3-sales-report-charts>.card{height:250px;min-height:250px;max-height:250px}}
@media(max-width:720px){.screen-sales-reports .vs3-sales-report-charts{grid-template-columns:minmax(0,1fr)}.screen-sales-reports .vs3-sales-report-charts>.card{height:249px;min-height:249px;max-height:249px}.screen-sales-reports .vs3-sales-donut-body{grid-template-columns:minmax(0,1fr);gap:6px}.screen-sales-reports .vs3-sales-donut-figure{grid-column:1;order:2;margin:0 auto}.screen-sales-reports .vs3-sales-donut-legend{grid-column:1;max-height:88px}}

/* 0.13.134: workflow-oriented sidebar, single-open accordion, compact mobile. */
.sidebar nav{display:flex;flex-direction:column;gap:4px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#4b8068 transparent;overscroll-behavior-y:auto}
.sidebar nav>.nav-link,.sidebar .sidebar-group{flex:0 0 auto;min-height:0;max-height:none;width:100%}
.sidebar nav>.nav-link,.sidebar .sidebar-group>summary.nav-link{min-height:35px;max-height:35px;height:35px;flex:0 0 35px;padding:6px 10px;gap:10px;font-size:12px;line-height:18px}
.sidebar nav>.nav-link>.icon,.sidebar .sidebar-group>summary>.icon{width:18px;height:18px}
.sidebar .sidebar-group-links{gap:1px;margin:3px 0 7px 18px;border-left:1px solid #ffffff40;padding-left:6px}
.sidebar .sidebar-group-links .nav-link{height:auto;max-height:none;min-height:28px;padding:5px 8px;font-size:11px;line-height:16px;white-space:normal}
.sidebar .sidebar-group>summary .sidebar-caret{transition:transform .18s ease;font-size:11px}
.sidebar .sidebar-group>summary.active{background:#326d46;font-weight:650}
.sidebar .sidebar-group-links .nav-link.active{background:#407c51;color:#fff;font-weight:650}
.sidebar nav:not(:has(.sidebar-group[open])){overflow-y:auto}
.vs3-season-anchor{display:block;height:0;scroll-margin-top:76px}
.vs3-season-manage-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:7px;padding:9px 13px;margin-top:10px}
@media(max-height:540px){.sidebar nav{display:flex;grid-template-columns:none;gap:3px}.sidebar .sidebar-group-links{display:grid;grid-template-columns:minmax(0,1fr)}.sidebar nav>.nav-link,.sidebar .sidebar-group>summary.nav-link{min-height:32px;height:32px;max-height:32px}}
@media(max-width:760px){.sidebar .sidebar-group-links .nav-link{min-height:36px;padding:9px 10px;font-size:12px}.sidebar nav{scrollbar-width:thin}}


/* 0.13.135-dev — uniform space beneath top-level KPI cards on every tab.
   Ordinary screen rows: 10px grid gap + 4px scroll clearance = 14px.
   Do not change the cards' own height, content padding or the data layouts. */
.screen-content > :is(.screen-kpis,.financial-kpi-strip,.vs3-expense-kpis,.detail-figma-kpis) + * {
  margin-top:0;
}
/* Several grids used a second 10px top margin in addition to the screen gap.
   In particular this caused the extra blank strip below Products KPIs. */
.screen-content > .screen-kpis + .product-grid,
.screen-content > .screen-kpis + .trade-grid,
.screen-content > .financial-kpi-strip + .trade-grid {
  margin-top:0;
}
/* One scrollbar clearance only: never add the parent strip's padding to
   the KPI grid's own bottom clearance. */
.screen-content .financial-kpi-strip,
.screen-content .vs3-expense-kpis,
.screen-costs .vs3-production-kpi-strip {
  padding-bottom:0;
  margin-bottom:0;
}
.screen-content .financial-kpi-strip > .screen-kpis,
.screen-content .vs3-expense-kpis > .screen-kpis,
.screen-costs .vs3-production-kpi-strip > .screen-kpis {
  padding-bottom:4px;
}
/* Same perceived 14px gap on the two dashboard-specific KPI designs. */
.dashboard > .kpis {padding-bottom:2px;}
.screen-content.screen-detailed > .detail-figma-kpis {padding-bottom:3px;}
/* Production cost KPIs sit inside their own grid, not the page grid. */
.screen-costs .vs3-production-analytics {row-gap:10px;}
.screen-costs .vs3-production-analytics > .vs3-production-kpi-strip + * {margin-top:0;}

/* 0.13.136-dev — common workflow row tones for Activities, Stock, Purchases,
   Sales Orders and Sales. These colours describe workflow status, never money paid.
   Unclassified/unknown records stay neutral, and status text remains visible. */
.screen-table tbody tr.vs3-status-good{--vs3-row-bg:#e9f7ee;--vs3-row-hover:#d9f0e2;--vs3-row-edge:#249353;--vs3-row-ink:#176b3c}
.screen-table tbody tr.vs3-status-warn{--vs3-row-bg:#fff5d9;--vs3-row-hover:#ffebbb;--vs3-row-edge:#ca921b;--vs3-row-ink:#855b11}
.screen-table tbody tr.vs3-status-danger{--vs3-row-bg:#fdeceb;--vs3-row-hover:#fbdcda;--vs3-row-edge:#ce4740;--vs3-row-ink:#a02d2b}
.screen-table tbody tr.vs3-status-neutral{--vs3-row-bg:#f6f7f9;--vs3-row-hover:#edeff3;--vs3-row-edge:#9aa5b1;--vs3-row-ink:#526071}
.screen-table tbody tr.vs3-status-row > td{background:var(--vs3-row-bg)}
.screen-table tbody tr.vs3-status-row:hover > td,
.screen-table tbody tr.vs3-status-row.selected > td{background:var(--vs3-row-hover)}
.screen-table tbody tr.vs3-status-row > td:first-child{box-shadow:inset 4px 0 var(--vs3-row-edge)}
.screen-table tbody tr.vs3-status-row.selected > td{border-top:1px solid var(--vs3-row-edge);border-bottom:1px solid var(--vs3-row-edge)}
.screen-table tbody tr.vs3-status-row :is(.state,.purchase-table-state){color:var(--vs3-row-ink);font-weight:650}
/* The stock screen's previous blue selected-row rule must not mask its state. */
.screen-stock .stock-list-card .screen-table tbody tr.vs3-status-row.selected > td{background:var(--vs3-row-hover)}
@media(forced-colors:active){.screen-table tbody tr.vs3-status-row > td:first-child{border-left:4px solid CanvasText}}

/* 0.13.137-dev — Season comparison: real verified crop-season performance.
   Scope all rules to this tab; no cross-screen KPI or table overrides. */
.screen-season-comparison .vs3-season-comparison{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0}
.screen-season-comparison .vs3-season-comparison > *{min-width:0;margin:0}
.screen-season-comparison .vs3-season-panel{background:var(--surface,#fff);border:1px solid #dce8df;border-radius:12px;padding:14px 17px;min-width:0;box-shadow:0 2px 8px rgba(25,58,42,.035)}
.screen-season-comparison .vs3-season-panel-heading{display:flex;align-items:start;justify-content:space-between;gap:10px;margin-bottom:13px}
.screen-season-comparison .vs3-season-panel-heading strong{font-size:15px;color:#244b37}
.screen-season-comparison .vs3-season-panel-heading p{font-size:11px;color:#728277;line-height:1.5;margin:4px 0 0}
.screen-season-comparison .vs3-season-print{background:#f5faf6;border:1px solid #bcd9c3;color:#25583e;border-radius:7px;padding:8px 11px;font-size:11px;white-space:nowrap;cursor:pointer}
.screen-season-comparison .vs3-season-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:10px;align-items:end}
.screen-season-comparison .vs3-season-form label{display:grid;gap:5px;font-size:11px;font-weight:600;color:#576b5f;min-width:0}
.screen-season-comparison .vs3-season-form select{width:100%;max-width:none;min-height:37px;padding:7px 9px;background:#f9fbf9;border:1px solid #d5e1d8;border-radius:7px;color:#244332;font-size:12px;box-sizing:border-box}
.screen-season-comparison .vs3-season-form-actions{display:flex;align-items:center;gap:8px;min-height:37px}
.screen-season-comparison .vs3-season-form-actions button{height:37px;padding:0 12px;border-radius:7px;font-size:12px;white-space:nowrap}
.screen-season-comparison .vs3-season-form-actions a{font-size:11px;text-decoration:none;color:#587b63;white-space:nowrap}
.screen-season-comparison .vs3-season-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding-bottom:4px;min-width:0}
.screen-season-comparison .vs3-season-kpi{border:1px solid #dce8df;border-radius:11px;background:#fff;padding:12px 14px;display:grid;gap:7px;min-width:0;min-height:103px;box-sizing:border-box;box-shadow:0 2px 8px rgba(25,58,42,.045)}
.screen-season-comparison .vs3-season-kpi-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.screen-season-comparison .vs3-season-kpi-top>span:first-child{font-weight:650;font-size:11px;color:#617367;line-height:1.3}
.screen-season-comparison .vs3-season-kpi-icon{display:inline-flex;align-items:center;justify-content:center;background:#e9f5ee;border-radius:8px;min-width:26px;height:26px;color:#288151;flex:0 0 26px}
.screen-season-comparison .vs3-season-kpi-icon .icon{width:17px;height:17px}
.screen-season-comparison .vs3-season-kpi>strong{font-size:16px;line-height:1.2;color:#1f4833;overflow-wrap:anywhere;font-weight:750}
.screen-season-comparison .vs3-season-kpi-foot{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0}
.screen-season-comparison .vs3-season-kpi-foot small{font-size:10px;color:#718276;overflow-wrap:anywhere;line-height:1.4}
.screen-season-comparison .vs3-season-delta{display:inline-flex;align-items:center;justify-content:center;border-radius:5px;padding:3px 6px;font-size:11px;font-weight:750;white-space:nowrap}
.screen-season-comparison .vs3-season-delta-up{color:#188348;background:#e2f5e9}
.screen-season-comparison .vs3-season-delta-down{color:#b44942;background:#fff0eb}
.screen-season-comparison .vs3-season-delta-neutral{color:#718276;background:#f3f6f3}
.screen-season-comparison .vs3-season-primary-grid,.screen-season-comparison .vs3-season-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}
.screen-season-comparison .vs3-season-primary-grid>.card,.screen-season-comparison .vs3-season-detail-grid>.card{min-width:0;margin:0}
.screen-season-comparison .vs3-season-comparison>.card{margin:0;min-width:0}
.screen-season-comparison .vs3-season-chart-key{display:flex;justify-content:flex-end;gap:14px;margin:3px 0 8px}
.screen-season-comparison .vs3-season-chart-key span{display:inline-flex;align-items:center;gap:6px;color:#60796a;font-size:11px;font-weight:600}
.screen-season-comparison .vs3-season-chart-key span::before{content:"";display:inline-block;width:9px;height:9px;border-radius:3px;background:#a9bac8}
.screen-season-comparison .vs3-season-chart-key .vs3-season-key-b::before{background:#228755}
.screen-season-comparison .vs3-season-monthly-chart{display:grid;gap:5px;min-width:0}
.screen-season-comparison .vs3-season-month{display:grid;grid-template-columns:25px minmax(0,1fr);gap:8px;align-items:center;min-height:18px}
.screen-season-comparison .vs3-season-month>span{font-size:10px;color:#667a6d;text-transform:uppercase}
.screen-season-comparison .vs3-season-month-bars{display:grid;grid-template-rows:5px 5px;gap:3px;align-content:center;min-width:0;overflow:hidden}
.screen-season-comparison .vs3-season-month-bars>i{display:block;height:5px;border-radius:2px;min-width:0;transition:width .2s ease}
.screen-season-comparison .vs3-season-bar-a{background:#a9bac8}
.screen-season-comparison .vs3-season-bar-b{background:#228755}
.screen-season-comparison .vs3-season-card-note{margin:9px 0 0;color:#748477;font-size:10px;line-height:1.5}
.screen-season-comparison .vs3-season-table{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.screen-season-comparison .vs3-season-table table{width:100%;min-width:590px;border-collapse:collapse}
.screen-season-comparison .vs3-season-table th,.screen-season-comparison .vs3-season-table td{font-variant-numeric:tabular-nums;font-size:12px;padding:8px 10px}
.screen-season-comparison .vs3-season-table td:not(:first-child){white-space:nowrap;text-align:right}
.screen-season-comparison .vs3-season-table th:not(:first-child){text-align:right;white-space:nowrap}
.screen-season-comparison .vs3-season-table th:first-child{text-align:left;white-space:normal}
.screen-season-comparison .vs3-season-breakdown table{min-width:680px}
.screen-season-comparison .vs3-season-numeric-up{color:#168248}
.screen-season-comparison .vs3-season-numeric-down{color:#b7443f}
.screen-season-comparison .vs3-season-insights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.screen-season-comparison .vs3-season-insight{display:grid;gap:7px;padding:12px;border:1px solid #e2e9e2;border-radius:8px;background:#f8fbf9;align-content:start}
.screen-season-comparison .vs3-season-insight>span{font-size:11px;color:#647468;font-weight:650}
.screen-season-comparison .vs3-season-insight strong{font-size:17px}
.screen-season-comparison .vs3-season-insight small{font-size:10px;line-height:1.4;color:#768879}
.screen-season-comparison .vs3-season-disclaimer{font-size:11px;line-height:1.6;color:#64786a;border:1px solid #dae6df;background:#f6faf7;border-radius:8px;padding:10px 13px}
.screen-season-comparison .vs3-season-alert{border:1px solid #e6cc91;background:#fff8e8;border-radius:8px;padding:10px 13px;font-size:12px;color:#8a6322}
@media(max-width:1450px){.screen-season-comparison .vs3-season-form{grid-template-columns:repeat(2,minmax(0,1fr))}.screen-season-comparison .vs3-season-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.screen-season-comparison .vs3-season-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.screen-season-comparison .vs3-season-primary-grid,.screen-season-comparison .vs3-season-detail-grid{grid-template-columns:1fr}.screen-season-comparison .vs3-season-insights{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.screen-season-comparison .vs3-season-panel{padding:12px}.screen-season-comparison .vs3-season-form{grid-template-columns:1fr}.screen-season-comparison .vs3-season-kpis{grid-template-columns:1fr 1fr;gap:8px}.screen-season-comparison .vs3-season-kpi{padding:10px;min-height:95px}.screen-season-comparison .vs3-season-kpi>strong{font-size:14px}.screen-season-comparison .vs3-season-kpi-foot{align-items:flex-start;flex-direction:column}.screen-season-comparison .vs3-season-insights{grid-template-columns:1fr}.screen-season-comparison .vs3-season-table th,.screen-season-comparison .vs3-season-table td{font-size:11px;padding:7px}}
@media print{.screen-season-comparison .vs3-season-form,.screen-season-comparison .vs3-season-print,.sidebar,.topbar,.vs3-season-panel-heading p{display:none!important}.screen-season-comparison .vs3-season-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.screen-season-comparison .vs3-season-primary-grid,.screen-season-comparison .vs3-season-detail-grid{grid-template-columns:1fr}.screen-season-comparison .vs3-season-panel{box-shadow:none}.screen-season-comparison .vs3-season-table{overflow:visible}.screen-season-comparison .vs3-season-table table{min-width:0;font-size:10px}.screen-season-comparison .vs3-season-comparison>.card{break-inside:avoid}}

/* 0.13.138-dev — Season report: printable SVG charts, clean pages and aligned controls. */
.screen-season-comparison .vs3-season-print-meta{display:none}
.screen-season-comparison .vs3-season-panel-heading{align-items:center}
.screen-season-comparison .vs3-season-form-actions{align-self:end;align-items:center;flex-wrap:nowrap}
.screen-season-comparison .vs3-season-form-actions button,
.screen-season-comparison .vs3-season-form-actions a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:37px;margin:0;line-height:1.3}
.screen-season-comparison .vs3-season-form-actions a{padding:0 8px}
.screen-season-comparison .vs3-season-chart-key span::before{display:none}
.screen-season-comparison .vs3-season-chart-key svg{display:block;flex:none}
.screen-season-comparison .vs3-season-month{grid-template-columns:25px minmax(0,1fr) minmax(105px,max-content);min-height:19px}
.screen-season-comparison .vs3-season-month-bars{display:block;overflow:visible}
.screen-season-comparison .vs3-season-bars-svg{display:block;width:100%;height:17px;max-height:17px;overflow:visible}
.screen-season-comparison .vs3-season-bars-svg rect{stroke:none}
.screen-season-comparison .vs3-season-month-values{font-size:10px;line-height:1.4;color:#536c5c;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:600px){
  .screen-season-comparison .vs3-season-form-actions{flex-wrap:wrap}
  .screen-season-comparison .vs3-season-month{grid-template-columns:25px minmax(0,1fr) minmax(92px,max-content);gap:5px}
  .screen-season-comparison .vs3-season-month-values{font-size:9px}
}
/* Named page scope: do not alter PDF margins for any other report in the product. */
@page vs3-season-report{size:A4 portrait;margin:0;padding:11mm 12mm 12mm}
@media print{
  body:has(.screen-season-comparison){page:vs3-season-report!important;background:white!important;color:#213f30!important;margin:0!important;padding:0!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body:has(.screen-season-comparison) :is(.sidebar,.topbar,.system-customer-bar,.skip-link,.page-error,.quick-feedback,#quick-notice,dialog,.vs3-assistant,.vs3-assistant-fab,#wpadminbar,.mobile-menu,.mobile-close){display:none!important}
  body:has(.screen-season-comparison) .app,
  body:has(.screen-season-comparison) .workspace,
  body:has(.screen-season-comparison) main#main{display:block!important;position:static!important;float:none!important;transform:none!important;margin:0!important;padding:0!important;width:100%!important;min-width:0!important;max-width:none!important;overflow:visible!important;box-shadow:none!important;background:#fff!important}
  body:has(.screen-season-comparison) .screen-content.screen-season-comparison{display:block!important;padding:10mm 12mm 12mm!important;margin:0!important;width:100%!important;min-height:0!important;background:white!important;overflow:visible!important}
  body:has(.screen-season-comparison) .vs3-season-comparison{display:block!important;max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
  body:has(.screen-season-comparison) .vs3-season-comparison > *{margin:0 0 9px!important;min-width:0!important}
  body:has(.screen-season-comparison) .vs3-season-panel{padding:10px 12px!important;border:1px solid #cbdcd1!important;box-shadow:none!important;break-inside:avoid}
  body:has(.screen-season-comparison) .vs3-season-panel-heading{margin:0!important;padding:0!important}
  body:has(.screen-season-comparison) .vs3-season-panel-heading strong{font-size:18px!important}
  body:has(.screen-season-comparison) .vs3-season-print-meta{display:block!important;margin:5px 0 0!important;font-size:10px!important;line-height:1.35;color:#51695b}
  body:has(.screen-season-comparison) .vs3-season-panel :is(.vs3-season-form,.vs3-season-print){display:none!important}
  body:has(.screen-season-comparison) .vs3-season-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;padding:0!important;break-inside:avoid}
  body:has(.screen-season-comparison) .vs3-season-kpi{display:grid!important;min-height:84px!important;padding:9px 11px!important;gap:3px!important;background:white!important;border:1px solid #cbdcd1!important;box-shadow:none!important;break-inside:avoid}
  body:has(.screen-season-comparison) .vs3-season-kpi>strong{font-size:14px!important}
  body:has(.screen-season-comparison) .vs3-season-primary-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;align-items:start!important;break-inside:avoid}
  body:has(.screen-season-comparison) .vs3-season-detail-grid{display:block!important}
  body:has(.screen-season-comparison) .vs3-season-detail-grid>.card{margin-bottom:9px!important}
  body:has(.screen-season-comparison) .card{display:block!important;min-width:0!important;min-height:0!important;height:auto!important;max-height:none!important;padding:10px 12px!important;border:1px solid #d2e0d6!important;box-shadow:none!important;overflow:visible!important;break-inside:auto!important}
  body:has(.screen-season-comparison) .vs3-season-primary-grid>.card{break-inside:avoid!important}
  body:has(.screen-season-comparison) .card-head{margin-bottom:8px!important}
  body:has(.screen-season-comparison) .card-head h2{font-size:13px!important}
  body:has(.screen-season-comparison) .vs3-season-chart-key{margin:1px 0 7px!important}
  body:has(.screen-season-comparison) .vs3-season-monthly-chart{display:grid!important;gap:5px!important}
  body:has(.screen-season-comparison) .vs3-season-month{display:grid!important;grid-template-columns:23px minmax(0,1fr) 112px!important;gap:7px!important;min-height:20px!important}
  body:has(.screen-season-comparison) .vs3-season-month-bars,
  body:has(.screen-season-comparison) .vs3-season-bars-svg{visibility:visible!important;overflow:visible!important}
  body:has(.screen-season-comparison) .vs3-season-month-bars svg rect{fill-opacity:1!important;stroke-opacity:1!important}
  body:has(.screen-season-comparison) .vs3-season-table{overflow:visible!important;max-height:none!important}
  body:has(.screen-season-comparison) .vs3-season-table table{min-width:0!important;width:100%!important;border-collapse:collapse!important;table-layout:fixed!important}
  body:has(.screen-season-comparison) .vs3-season-table :is(th,td){white-space:normal!important;overflow-wrap:anywhere!important;padding:5px 7px!important;font-size:10px!important;line-height:1.35!important}
  body:has(.screen-season-comparison) .vs3-season-table :is(th:first-child,td:first-child){width:25%}
  body:has(.screen-season-comparison) .vs3-season-table thead{display:table-header-group!important}
  body:has(.screen-season-comparison) .vs3-season-table tr{break-inside:avoid}
  body:has(.screen-season-comparison) .vs3-season-insights{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;break-inside:avoid}
  body:has(.screen-season-comparison) .vs3-season-insight{padding:9px!important;break-inside:avoid}
  body:has(.screen-season-comparison) .vs3-season-disclaimer{break-inside:auto;font-size:9px!important;line-height:1.45!important}
  body:has(.screen-season-comparison) .vs3-season-print,
  body:has(.screen-season-comparison) .vs3-season-form,
  body:has(.screen-season-comparison) :is(.pager,.all-link,.row-actions,.vs3-readonly-notice){display:none!important}
}
/* Compact both portrait-page charts while preserving printable SVG bars and values. */
@media print{
  body:has(.screen-season-comparison) .vs3-season-primary-grid>.card{padding:8px 10px!important}
  body:has(.screen-season-comparison) .vs3-season-primary-grid .card-head{margin-bottom:4px!important}
  body:has(.screen-season-comparison) .vs3-season-chart-key{margin:0 0 3px!important}
  body:has(.screen-season-comparison) .vs3-season-monthly-chart{gap:2px!important}
  body:has(.screen-season-comparison) .vs3-season-month{min-height:16px!important;max-height:16px!important}
  body:has(.screen-season-comparison) .vs3-season-bars-svg{height:14px!important;max-height:14px!important}
  body:has(.screen-season-comparison) .vs3-season-card-note{font-size:9px!important;line-height:1.2!important;margin:4px 0 0!important}
}
@media print{
  /* Keep table/insight headings attached to their content rather than orphaned. */
  body:has(.screen-season-comparison) .vs3-season-comparison > section.card:first-of-type{break-before:page!important}
  body:has(.screen-season-comparison) .vs3-season-comparison > section.card:last-of-type{break-inside:avoid!important}
}

/* 0.13.139-dev — A4 portrait print layout (Season Comparison only).
   Keep the responsive dashboard untouched and preserve all printable charts. */
@media print{
  /* The named @page margin repeats on every printed page, unlike content padding. */
  body:has(.screen-season-comparison) .screen-content.screen-season-comparison{
    padding:0!important;
  }
  body:has(.screen-season-comparison) .vs3-season-comparison > *{margin-bottom:8px!important}
  body:has(.screen-season-comparison) .vs3-season-panel{padding:8px 11px!important}
  body:has(.screen-season-comparison) .vs3-season-panel-heading strong{font-size:16px!important}
  body:has(.screen-season-comparison) .vs3-season-print-meta{font-size:9px!important}
  body:has(.screen-season-comparison) .vs3-season-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    break-inside:avoid!important;
  }
  body:has(.screen-season-comparison) .vs3-season-kpi{
    min-height:64px!important;
    padding:7px 10px!important;
    gap:2px!important;
  }
  body:has(.screen-season-comparison) .vs3-season-kpi>strong{font-size:13px!important}
  body:has(.screen-season-comparison) .vs3-season-kpi-top>span:first-child{font-size:10px!important}
  body:has(.screen-season-comparison) .vs3-season-kpi-foot small{font-size:9px!important}
  body:has(.screen-season-comparison) .vs3-season-primary-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px!important;
    break-inside:auto!important;
  }
  body:has(.screen-season-comparison) .vs3-season-primary-grid>.card{
    padding:8px 11px!important;
    break-inside:avoid!important;
  }
  body:has(.screen-season-comparison) .vs3-season-monthly-chart{gap:2px!important}
  body:has(.screen-season-comparison) .vs3-season-month{
    grid-template-columns:23px minmax(0,1fr) 125px!important;
    min-height:16px!important;
    max-height:16px!important;
  }
  body:has(.screen-season-comparison) .vs3-season-month-values{font-size:9px!important}
  body:has(.screen-season-comparison) .vs3-season-insights{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  body:has(.screen-season-comparison) .vs3-season-insight{padding:8px!important}
  body:has(.screen-season-comparison) .vs3-season-table :is(th,td){
    font-size:9px!important;
    padding:5px!important;
    line-height:1.3!important;
  }
  body:has(.screen-season-comparison) .vs3-season-disclaimer{font-size:9px!important}
}

/* 0.13.140-dev: Preserve the same top/side/bottom printable margins on each A4 portrait page.
   The explicit break before the detail table is intentional and retained. */

/* 0.13.141-dev — Season comparison print masthead and browser-footer-safe spacing.
   Printing margins are zero; @page padding provides a repeatable physical 11/12/12mm
   inset on every sheet without placing content in browser header/footer margin boxes.
   Native browser header/footer preferences remain browser-controlled. */
.screen-season-comparison .vs3-season-company-head{display:none}
@media print{
  body:has(.screen-season-comparison) .vs3-season-company-head{
    display:flex!important;align-items:end;justify-content:space-between;
    gap:10px;margin:0 0 7px!important;padding:0 0 6px!important;
    border-bottom:1px solid #a9cbb4;background:#fff!important;
    break-inside:avoid!important;break-after:avoid!important;
  }
  body:has(.screen-season-comparison) .vs3-season-company-head>div{
    display:flex;flex-direction:column;gap:2px;min-width:0;
  }
  body:has(.screen-season-comparison) .vs3-season-company-head small{
    font-size:8px!important;font-weight:650;color:#587466!important;
    letter-spacing:.7px!important;
  }
  body:has(.screen-season-comparison) .vs3-season-company-head strong{
    font-size:15px!important;color:#1e4f35!important;line-height:1.15!important;
    overflow-wrap:anywhere;
  }
  body:has(.screen-season-comparison) .vs3-season-company-head>span{
    font-size:9px!important;font-weight:600!important;color:#587466!important;
    text-align:right;white-space:nowrap;
  }
  /* Recover header space so both compact SVG charts remain on page one. */
  body:has(.screen-season-comparison) .vs3-season-kpi{
    min-height:56px!important;padding:5px 10px!important;
  }
  body:has(.screen-season-comparison) .vs3-season-month{
    min-height:15px!important;max-height:15px!important;
  }
  body:has(.screen-season-comparison) .vs3-season-comparison > *{
    margin-bottom:5px!important;
  }
}

/* 0.13.142-dev — Gider Raporları dışa aktarma: screen-filters sağ kenarı. */
.screen-expense-reports .screen-filters>.vs3-expense-export{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin:0 0 0 auto;min-width:0;flex:0 0 auto;flex-wrap:wrap;align-self:flex-end}
.screen-expense-reports .screen-filters>.vs3-expense-export a{display:inline-flex;align-items:center;justify-content:center;min-height:37px;padding:7px 12px;border:1px solid #bcd9c7;border-radius:7px;background:#eff8f1;color:#176c43;font-size:12px;font-weight:650;line-height:18px;white-space:nowrap;text-decoration:none}
.screen-expense-reports .screen-filters>.vs3-expense-export a:hover{background:#ddf1e4;border-color:#78b393}
.screen-expense-reports .screen-filters>.vs3-expense-export .vs3-expense-export-pdf{background:#1c7249;color:#fff;border-color:#1c7249}
.screen-expense-reports .screen-filters>.vs3-expense-export .vs3-expense-export-pdf:hover{background:#125b39}
@media(max-width:800px){.screen-expense-reports .screen-filters>.vs3-expense-export{width:100%;flex:1 1 100%;justify-content:flex-end}}
@media(max-width:480px){.screen-expense-reports .screen-filters>.vs3-expense-export{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.screen-expense-reports .screen-filters>.vs3-expense-export a{white-space:normal;text-align:center}}

/* 0.13.144-dev — All customer-facing KPI strips use two columns on mobile.
   This override intentionally follows the old single-row/overflow rules from
   0.13.76, the finance/expense/harvest selectors and the detail-view exceptions.
   Keep table scrolling and the desktop KPI layout unchanged. */
@media screen and (max-width:780px){
  .dashboard>.kpis,
  .screen-content .screen-kpis,
  .screen-content.screen-detailed .detail-figma-kpis,
  .screen-season-comparison .vs3-season-kpis,
  .harvest-detail-kpis>.screen-kpis,
  .screen-expense-reports .vs3-expense-kpis>.screen-kpis,
  .screen-content .vs3-expense-kpis>.screen-kpis,
  .screen-content .financial-kpi-strip>.screen-kpis,
  .screen-costs .vs3-production-kpi-strip>.screen-kpis{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow-x:visible!important;
    overflow-y:visible!important;
    box-sizing:border-box;
    gap:8px;
  }
  /* No nested horizontal scroll containers around KPI cards. */
  .screen-content .financial-kpi-strip,
  .screen-content .vs3-expense-kpis,
  .screen-expense-reports .vs3-expense-kpis,
  .screen-costs .vs3-production-kpi-strip,
  .harvest-detail-kpis{
    width:100%;min-width:0!important;max-width:100%;
    overflow-x:visible!important;overflow-y:visible!important;
    box-sizing:border-box;
    padding-bottom:0;
  }
  .dashboard>.kpis>.kpi,
  .screen-content .screen-kpis>.kpi,
  .screen-costs .vs3-production-kpi-strip .kpi,
  .harvest-detail-kpis .kpi{
    width:100%;min-width:0!important;
    height:auto!important;min-height:88px;
    max-height:none;
    box-sizing:border-box;
    gap:7px;
    padding:9px 7px!important;
    overflow:visible;
  }
  .screen-content .screen-kpis .kpi-icon,
  .dashboard>.kpis>.kpi .kpi-icon,
  .screen-costs .vs3-production-kpi-strip .kpi-icon,
  .harvest-detail-kpis .kpi-icon{
    flex:0 0 28px;width:28px;height:36px;
  }
  .screen-content .screen-kpis .kpi-icon>.icon,
  .dashboard>.kpis>.kpi .kpi-icon>.icon,
  .screen-content .screen-kpis .kpi-icon>img.icon{
    max-width:23px;max-height:23px;
  }
  .dashboard>.kpis .kpi>div:last-child,
  .screen-content .screen-kpis .kpi>div:last-child{min-width:0}
  .dashboard>.kpis .kpi h2,
  .screen-content .screen-kpis .kpi h2{
    font-size:11px;white-space:normal;overflow-wrap:anywhere;
    line-height:1.3;
  }
  .dashboard>.kpis .kpi strong,
  .screen-content .screen-kpis .kpi strong,
  .harvest-detail-kpis .kpi strong{
    font-size:clamp(12px,3.4vw,15px);
    white-space:normal!important;
    overflow-wrap:anywhere;
    line-height:1.35;
  }
  .dashboard>.kpis .kpi small,
  .screen-content .screen-kpis .kpi small{
    font-size:10px;white-space:normal;overflow-wrap:anywhere;
    line-height:1.3;
  }
  /* The dedicated detailed and season views already support 2-up KPI cards.
     Repeat them here so no old min-width rule reinstates horizontal scrolling. */
  .screen-content.screen-detailed .detail-figma-kpi,
  .screen-season-comparison .vs3-season-kpi{min-width:0;box-sizing:border-box}
}


/* V3 0.13.147: abonelik ve modül erişimi ekranları */
.vs3-sub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.vs3-sub-card{padding:18px;display:grid;gap:12px;margin:0 0 14px}
.vs3-sub-feature{min-width:0;display:flex;flex-direction:column;gap:7px;background:#f7faf8;border:1px solid #e3ece6;border-radius:10px;padding:13px}
.vs3-sub-feature strong{font-weight:700;font-size:13px;overflow-wrap:anywhere}
.vs3-sub-feature small{font-size:11px;color:#526a5c}
.vs3-sub-card .card-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.vs3-sub-card :is(h2,h3,p){margin:0}
.vs3-sub-card form{display:grid;gap:10px}
.vs3-sub-card :is(input,select,textarea){max-width:100%;min-width:0}
.vs3-sub-card label{display:flex;flex-direction:column;gap:4px}
.vs3-sub-card label:has(input[type="checkbox"]){display:flex;flex-direction:row;align-items:center}
.vs3-sub-state{background:#e6f5ed;color:#136744;padding:5px 10px;border-radius:999px;font-size:11px}
.vs3-sub-table{overflow-x:auto;max-width:100%}
.vs3-sub-table table{border-collapse:collapse;width:100%;min-width:550px;font-size:12px}
.vs3-sub-table :is(td,th){border-bottom:1px solid #e1eae4;text-align:left;padding:10px;vertical-align:top}
.vs3-sub-table small{display:block;color:#667b6f}
.vs3-sub-table td form{display:flex;align-items:center;gap:6px;min-width:210px}
.vs3-sub-table td input{width:130px}
.vs3-sub-notice{padding:10px 14px;background:#fff4d8;border:1px solid #e6c477;border-radius:8px;margin-bottom:12px;font-size:12px}
.vs3-sub-admin .subscription-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.vs3-sub-admin .subscription-heading p{margin:3px 0 0}
.vs3-sub-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.vs3-sub-admin-card{border:1px solid #dae4de;border-radius:12px;background:#fff;padding:16px;min-width:0}
.vs3-sub-admin-card h3{margin:0 0 12px}
.vs3-sub-admin-card form{display:grid;gap:10px}
.vs3-sub-admin-card label,.vs3-sub-options label{display:flex;flex-direction:column;gap:5px}
.vs3-sub-admin .oim-dialog-body>form{display:grid;gap:10px}
.vs3-sub-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.vs3-sub-options label:has([type="checkbox"]){display:flex;align-items:center;flex-direction:row}
@media(max-width:800px){.vs3-sub-admin-grid{grid-template-columns:1fr}}
@media(max-width:560px){.vs3-sub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.vs3-sub-card{padding:12px}.vs3-sub-feature{padding:10px}.vs3-sub-options{grid-template-columns:1fr}}
