:root{color-scheme:light;--bg:#f3f5f3;--surface:#fff;--text:#1b3025;--muted:#6a7c70;--border:#e1e8e2;--soft:#edf3ed;--accent:#235b3b;--green:#25895b;--blue:#3978ce;--red:#c44f45;--yellow:#b58017;--purple:#9273bd;--orange:#d88b49;font:400 14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button,a,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #82b79c;outline-offset:3px}[hidden]{display:none!important}p{margin:0}a{color:var(--accent)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-80px;left:20px;background:var(--accent);padding:12px;color:#fff;z-index:10}.skip-link:focus{top:10px}.topbar{height:108px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 34px;background:var(--surface);border-bottom:1px solid var(--border)}.brand{display:flex;gap:12px;align-items:center}.brandmark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--accent);color:#fff}.brandmark svg{width:30px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}.brand-logo{display:block;width:132px;height:76px;object-fit:contain;background:#fff;flex-shrink:0}.brand strong{font-size:16px;letter-spacing:.1px;font-weight:600}.brand div>span{display:block;font-size:11px;color:var(--muted);margin-top:2px}.top-actions{display:flex;align-items:center;gap:18px}.local-badge{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.status-dot{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%}.shell{display:grid;grid-template-columns:205px minmax(0,1fr);min-height:calc(100vh - 108px)}.sidebar{display:flex;flex-direction:column;gap:5px;padding:32px 14px 24px;background:var(--surface);border-right:1px solid var(--border)}.navlabel{padding:0 12px 15px;font-size:10px;font-weight:600;letter-spacing:1.1px;text-transform:uppercase;color:var(--muted)}.nav{display:flex;align-items:center;gap:11px;width:100%;border:0;padding:12px;text-align:left;color:var(--muted);border-radius:9px;background:transparent;font-size:13px}.nav:hover{background:#f5f7f5}.nav.active{background:var(--soft);color:var(--accent);font-weight:600}.icon{display:block;width:17px;height:17px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.nav-divider{height:1px;background:var(--border);margin:16px 12px}.sidefoot{margin-top:auto;padding:64px 12px 0;font-size:12px;line-height:1.65;color:var(--muted)}.sidefoot-line{display:block;width:27px;height:3px;background:#99bba4;border-radius:3px;margin-bottom:13px}.version{display:block;font-size:10px;margin-top:13px;color:#8a998e}main{padding:32px 34px 20px;min-width:0;max-width:1600px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:22px}h1{font-size:29px;line-height:1.2;letter-spacing:-.8px;font-weight:550;margin:3px 0 8px}h2{font-size:15px;font-weight:600;line-height:1.45;margin:0}.eyebrow{font-size:10px;font-weight:600;color:var(--muted);letter-spacing:1.35px;text-transform:uppercase;margin-bottom:7px}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:16px}.pagehead p{font-size:12px;color:var(--muted)}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--border);background:var(--surface);color:var(--text);min-height:38px;padding:8px 14px;border-radius:9px;white-space:nowrap;font-size:12px}.button:hover{background:#f7f9f7}.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.button.primary:hover{background:#1d4c31}.button .icon{width:14px;height:14px}.filters{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>span{font-size:11px;color:var(--muted)}.field input,.field select{min-height:40px;padding:8px 11px;background:var(--surface);border:1px solid var(--border);border-radius:8px;color:var(--text);width:100%;min-width:0;font-size:12px}.field small{font-size:11px;color:var(--muted);line-height:1.5}.period{flex:1.1 1 160px}.buyer{flex:1 1 160px}.date-field{flex:.8 1 125px}.page{display:flex;flex-direction:column;gap:20px}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.kpi{position:relative;display:flex;flex-direction:column;gap:10px;text-align:left;align-items:flex-start;padding:19px 18px;background:var(--surface);border:1px solid var(--border);border-radius:13px;color:var(--text);min-height:139px;min-width:0}.kpi button{color:inherit}.kpi-label{font-size:11px;color:var(--muted);padding-right:10px}.kpi strong{font-size:33px;font-weight:500;letter-spacing:-1px;font-variant-numeric:tabular-nums;line-height:1.1}.kpi strong.unavailable{font-size:20px;letter-spacing:-.4px;padding:7px 0 6px;color:#839187}.kpi strong small{font-size:12px;color:var(--muted);font-weight:400;letter-spacing:0}.kpi-context{font-size:10px;color:var(--muted)}.kpi>.dot{position:absolute;top:24px;right:16px;width:6px;height:6px}.kpi[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}button.kpi:hover{border-color:#a8c4b2}.panel{background:var(--surface);border:1px solid var(--border);border-radius:13px;padding:21px;min-width:0}.panelhead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}.sub{font-size:11px;color:var(--muted);margin-top:4px}.tiny{font-size:10px;color:var(--muted)}.muted{color:var(--muted)}.legend{display:flex;align-items:center;flex-wrap:wrap;gap:16px;font-size:10px;color:var(--muted);margin-top:12px}.legend>span{display:inline-flex;align-items:center;gap:6px}.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}.productive{background:var(--green)}.all,.attempt{background:var(--blue)}.violation{background:var(--red)}.review{background:var(--yellow)}.excluded,.duplicate{background:#99a69d}.purchase{background:var(--blue)}.delivery{background:var(--orange)}.sample{background:var(--purple)}.chart{min-height:215px}.chart svg{display:block;width:100%;height:auto;overflow:visible}.chart text{font-family:inherit;fill:var(--muted);font-size:11px}.chart .gridline{stroke:var(--border);stroke-width:1}.chart polyline{stroke-linecap:round;stroke-linejoin:round}.chart .direct{fill:var(--text);font-weight:500}.chart-empty{min-height:215px;display:grid;place-content:center;color:var(--muted);text-align:center;gap:6px;font-size:12px}.chart-empty strong{font-size:14px;font-weight:500;color:var(--text)}.bottom-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:16px}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;font-weight:400;color:var(--muted);font-size:10px;padding:0 10px 11px 0;white-space:nowrap}td{border-top:1px solid var(--border);padding:13px 10px 13px 0;vertical-align:middle}td:last-child,th:last-child{padding-right:0}.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.person{display:flex;gap:9px;align-items:center;white-space:nowrap}.avatar{display:grid;place-items:center;width:28px;height:28px;background:var(--soft);color:#5f7c68;border-radius:50%;font-size:10px;font-weight:500;flex-shrink:0}.textbutton{padding:0;border:0;background:none;color:var(--accent);font:inherit;text-align:left}.textbutton:hover{text-decoration:underline}.source{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--border)}.source:last-child{border:0}.sourceicon{display:grid;place-items:center;flex-shrink:0;width:31px;height:31px;background:var(--soft);border-radius:9px;color:var(--muted)}.sourceinfo{min-width:0;flex:1}.sourceinfo>div:first-child{font-size:12px}.sourceinfo .tiny{margin-top:2px;font-size:10px}.source-status{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:5px;white-space:nowrap}.source-status.ready{color:var(--green)}.source-status.error{color:var(--red)}.source-status .status-dot{background:currentColor;width:5px;height:5px}.footnote{font-size:10px;color:var(--muted);margin-top:16px}.tabs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px}.tab{border:1px solid var(--border);background:transparent;border-radius:7px;color:var(--muted);font-size:10px;padding:6px 9px}.tab[aria-pressed=true]{background:var(--soft);border-color:#7aa58b;color:var(--accent)}.tag{display:inline-flex;gap:6px;align-items:center;white-space:nowrap;font-size:11px}.calls-table td{font-size:11px}.calls-table td:first-child{min-width:140px;max-width:240px;word-break:break-word}.calls-table .tiny{display:block;margin-top:4px}.calls-table td:nth-child(3){white-space:nowrap}.calls-table td:last-child{white-space:nowrap}.listfooter{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;font-size:10px;color:var(--muted)}.pagination{display:flex;gap:7px}.icon-button{width:33px;min-height:31px;padding:4px}.evidence-cell{background:#f9fbf9;padding:16px!important}.evidence{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:2px 0 12px}.evidence>div{padding:13px;background:var(--soft);border-radius:8px}.evidence strong{display:block;font-size:11px;font-weight:600;margin-bottom:5px}.evidence p{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}.evidence .tiny{font-size:10px;line-height:1.7}.evidence-note{font-size:11px;color:var(--muted);margin-top:7px;white-space:pre-wrap;overflow-wrap:anywhere}.evidence-link{font-size:11px;text-decoration:none}.evidence-link:hover{text-decoration:underline}.notice{display:flex;gap:12px;align-items:flex-start;padding:13px 15px;border:1px solid var(--border);border-radius:9px;font-size:11px;line-height:1.6}.error-notice{background:#fff4f2;border-color:#ebcac4;color:#923b32}.rules-notice{display:block;background:#edf3ed;color:#526b59;margin-top:20px}.rules-notice strong{color:#35573f}.warning-notice{margin-top:8px;background:#fffaf0;border-color:#ebdfbd;color:#806b2a}.loading{display:flex;align-items:center;gap:13px;padding:19px;border:1px solid var(--border);border-radius:12px;background:#fff}.loading strong{display:block;font-weight:500;font-size:13px}.loading span:not(.spinner){display:block;font-size:11px;color:var(--muted);margin-top:3px}.spinner{width:22px;height:22px;border:2px solid var(--border);border-top-color:var(--green);border-radius:50%;flex-shrink:0;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.settings-panel{max-width:900px;display:flex;flex-direction:column;gap:22px}.settings-panel .panelhead{margin-bottom:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-panel hr{border:0;border-top:1px solid var(--border);width:100%;margin:1px 0}.settings-intro{margin-top:-15px}.interval{max-width:260px}.form-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding-top:20px}.form-footer>span{font-size:11px;color:var(--muted)}.connection{font-size:10px;color:var(--muted);border:1px solid var(--border);padding:4px 9px;border-radius:15px;white-space:nowrap}.footer{display:flex;gap:12px;justify-content:space-between;font-size:10px;color:#829087;margin-top:auto;padding-top:9px}.empty-row{text-align:center;color:var(--muted);padding:35px!important}.unconfigured{max-width:500px;margin:35px auto;text-align:center;padding:25px;color:var(--muted)}.unconfigured h2{color:var(--text);font-size:18px;margin-bottom:9px}.unconfigured .button{margin-top:16px}#dashboard[aria-busy=true]{opacity:.55;pointer-events:none}@media(min-width:1500px){main{padding:36px 44px}.kpi{padding:23px}.kpi>.dot{right:21px;top:27px}.chart{min-height:240px}}@media(max-width:1100px){.shell{grid-template-columns:174px minmax(0,1fr)}main{padding:26px 24px}.topbar{padding:0 25px}.bottom-grid{grid-template-columns:1fr}.kpis{gap:10px}.kpi{padding:16px 13px}.kpi strong{font-size:29px}.kpi strong.unavailable{font-size:17px}.kpi-label{font-size:10px}}@media(max-width:800px){.shell{grid-template-columns:148px minmax(0,1fr)}.sidebar{padding:25px 9px}.nav{font-size:12px;padding:10px 9px;gap:8px}.navlabel{font-size:9px;padding-left:9px;letter-spacing:.6px}.local-badge{display:none}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi{min-height:126px}.kpi strong{font-size:30px}.kpi strong.unavailable{font-size:21px}.kpi-label{font-size:11px}.form-grid{grid-template-columns:1fr}h1{font-size:26px}.panel{padding:18px}}@media(max-width:560px){.topbar{height:auto;min-height:77px;padding:15px 16px;gap:10px;flex-wrap:wrap}.brand-logo{width:84px;height:49px}.brandmark{width:36px;height:36px;border-radius:10px}.brand strong{font-size:13px}.brand div>span{font-size:10px}.shell{display:block;min-height:calc(100vh - 77px)}.sidebar{position:sticky;top:0;z-index:2;flex-direction:row;padding:9px 12px;border-right:0;border-bottom:1px solid var(--border);gap:5px}.navlabel,.sidefoot,.nav-divider{display:none}.nav{width:auto;padding:9px 12px;font-size:11px}.nav .icon{width:14px;height:14px}main{padding:23px 16px;gap:19px}h1{font-size:25px}.eyebrow{font-size:9px}.pagehead p{font-size:11px}.pagehead{align-items:flex-start}.pagehead>.button{padding:8px 10px;font-size:11px;min-height:34px;margin-top:24px}.filters{gap:10px}.period,.buyer{flex-basis:45%}.date-field{flex-basis:44%;order:2}.panel{padding:16px}.panelhead{gap:8px;flex-wrap:wrap;margin-bottom:16px}.panelhead h2{font-size:14px}.kpis{gap:9px}.kpi{padding:16px 13px;min-height:131px}.kpi strong{font-size:29px}.kpi strong.unavailable{font-size:20px}.kpi-label{font-size:10px}.kpi-context{font-size:9px;max-width:95%}.kpi>.dot{right:12px;top:21px}.chart{min-height:200px}.legend{gap:10px;font-size:9px}.tabs{gap:6px}.tab{font-size:10px;padding:6px 8px}.evidence{grid-template-columns:1fr;gap:9px}.footer{flex-direction:column;gap:3px}.form-footer{align-items:flex-start;flex-direction:column}.form-footer .button{align-self:flex-end}.notice{font-size:10px}.source-status{font-size:9px}.calls-table{min-width:600px}.bottom-grid{gap:15px}.settings-panel{gap:20px}.settings-intro{margin-top:-12px}}@media(pointer:coarse){button,.field input,.field select{min-height:44px}.icon-button{min-width:44px}.tab{min-height:38px}}@media(prefers-reduced-motion:reduce){.spinner{animation:none}}@media print{.sidebar,.top-actions,#refresh,.filters,.footer,.tabs,.pagination{display:none}.shell{display:block}main{max-width:none;padding:0}.panel,.kpi{break-inside:avoid}.topbar{padding:0;border:0}.brandmark{print-color-adjust:exact}}
.eyebrow-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;margin-bottom:7px}.eyebrow-row .eyebrow{margin-bottom:0}.data-source-badge{display:inline-flex;align-items:center;font-size:9px;line-height:1.5;letter-spacing:0;text-transform:none;color:var(--muted);border:1px solid var(--border);border-radius:15px;background:var(--surface);padding:2px 7px}
/* Keep absolutely positioned screen-reader labels inside the scrolling table. */
.tablewrap{position:relative}
.journal-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.journal-controls{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(180px,1.1fr) minmax(240px,1.5fr);gap:12px;align-items:end;margin-bottom:13px}.journal-search{display:flex;align-items:end;gap:8px;min-width:0}.journal-search .field{flex:1}.journal-search .button{min-height:40px}.journal-explanation{margin-bottom:18px;line-height:1.65}.journal-row-reason{font-size:10px;color:var(--muted);white-space:normal;line-height:1.5;margin-top:5px;min-width:160px;max-width:300px;overflow-wrap:anywhere}.journal-table td:nth-child(4){max-width:300px}.journal-table{min-width:720px}#export-status{margin-top:12px;line-height:1.6}.source-intro{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:28px}.source-intro h2{font-size:22px;font-weight:500;letter-spacing:-.4px}.source-intro p{font-size:13px;line-height:1.7;max-width:720px}.source-waiting{display:inline-flex;color:#8b712c;background:#fff9e8;border:1px solid #eadbb1;border-radius:20px;padding:4px 10px;font-size:10px;margin-bottom:2px}.source-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.source-details{display:grid;grid-template-columns:1fr 1fr;gap:16px}.source-fields{padding:0;margin:0;list-style:none;display:grid;gap:0}.source-fields li{padding:10px 0;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}.source-fields li:first-child{border-top:0;padding-top:0}.source-next{display:flex;flex-direction:column;gap:16px}.source-next p{font-size:12px;color:var(--muted);line-height:1.8}.source-next p.tiny{font-size:10px;border-top:1px solid var(--border);padding-top:14px;margin-top:auto}@media(max-width:1100px){.journal-controls{grid-template-columns:1fr 1fr}.journal-search{grid-column:1/-1}.source-details{grid-template-columns:1fr}.source-metrics .kpi strong{font-size:19px}}@media(max-width:800px){.source-metrics{grid-template-columns:1fr}.source-metrics .kpi{min-height:112px}.source-metrics .kpi strong{font-size:24px}.journal-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.journal-kpis .kpi:first-child{grid-column:1/-1;min-height:115px}}@media(max-width:560px){.sidebar{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}.sidebar .nav{flex:0 0 auto;white-space:nowrap}.journal-controls{grid-template-columns:1fr}.journal-search{grid-column:auto}.source-intro{padding:20px}.source-intro h2{font-size:20px}.source-intro p{font-size:12px}.source-metrics{gap:10px}.source-details{gap:15px}.journal-table{min-width:740px}.journal-controls .field input,.journal-controls .field select{font-size:12px}}@media print{.journal-controls,#journal-export{display:none}.journal-table{min-width:0}}
.source-warnings{display:block}.source-warning-head{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:9px}.source-warning-head h2{font-size:14px}.source-warnings p{margin-top:7px}.source-warnings details{margin-top:13px;border-top:1px solid #ebdfbd;padding-top:10px}.source-warnings summary{cursor:pointer;font-weight:500}.source-warnings ul{margin:9px 0 0;padding-left:18px}.source-warnings li{padding:3px 0;overflow-wrap:anywhere}.source-name-help{border-top:1px solid #ebdfbd;padding-top:8px}.operational-warning{overflow-wrap:anywhere}
.manual-reports .report-intro{margin-bottom:20px;color:#526560}.report-intro p{margin:6px 0}.report-tabs{margin:0 0 20px}.report-panel{margin-top:20px}.report-actions,.report-editor-bottom,.report-shortcuts,.report-editor-meta,.report-filter-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.report-shortcuts{margin:0 0 20px}.report-filter-row{margin:0 0 20px}.report-filter-row .field{min-width:190px}.report-editor{padding:22px;margin:8px 0 28px;border:1px solid #bad4c5;border-radius:12px;background:#f7faf8}.report-editor h3{margin:0}.report-editor-meta{margin:16px 0}.report-editor-meta .field{min-width:210px}.report-edit-table{width:100%;min-width:950px}.trip-edit-table{min-width:1330px}.report-edit-table td{vertical-align:top;padding:10px 7px}.report-edit-table input,.report-edit-table select,.report-edit-table textarea{box-sizing:border-box;width:100%;min-width:120px;border:1px solid #cddad3;border-radius:6px;padding:9px;background:#fff;color:#263d36;font:inherit}.report-edit-table textarea{resize:vertical;min-height:40px;min-width:180px}.report-edit-table input[type=number]{min-width:95px;width:110px}.report-edit-table input[type=date]{min-width:148px}.report-edit-table input[data-field=farmer],.report-edit-table input[data-field=lead]{min-width:180px}.report-edit-table input[data-field=address]{min-width:200px}.report-edit-table select[data-field=labId]{min-width:155px}.report-edit-table select[data-field=op]{min-width:115px}.report-edit-table .textbutton.tiny{display:block;margin-top:7px;text-align:left;white-space:normal}.report-editor-bottom{justify-content:space-between;margin:18px 0}.report-register{min-width:1080px}.report-register .route-start td{border-top:2px solid #ceddd4}.report-register .route-continuation td{background:#fafcfb}.report-state{display:inline-block;color:#256142;background:#e7f4ec;font-size:11px;padding:3px 7px;border-radius:5px;margin-top:5px}.report-state.draft{color:#7a652d;background:#fff2d6}.report-empty{padding:35px 10px;text-align:center;color:#6d7d76}.report-empty h3{color:#344e43}.textbutton.danger{color:#a44c43}.report-stage.stage-zero{background:#d9edf8}.report-stage.stage-easy{background:#fff27c}.report-stage.stage-hot{background:#ffbc78}.report-stage.stage-vv{background:#b71919;color:#fff}.report-stage.stage-sample{background:#ffe2a0}.report-stage.stage-deal_started{background:#99e990}.report-stage.stage-sold_all{background:#e2cbea}.report-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}.report-summary{margin-top:20px}.manual-reports .notice{margin:12px 0}.manual-reports .notice .textbutton{margin-left:12px}.report-editor .form-footer{gap:12px;flex-wrap:wrap}.manual-reports input:focus,.manual-reports select:focus,.manual-reports textarea:focus{outline:2px solid #83b49a;outline-offset:1px}@media(max-width:900px){.report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.report-editor{padding:14px}.report-panel>.panelhead{align-items:flex-start;gap:14px;flex-wrap:wrap}.report-editor-meta .field{flex:1}.report-actions{gap:8px}}
.auth-screen{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 96px);padding:30px 20px}.auth-card{max-width:440px;width:100%;box-sizing:border-box}.auth-card img{object-fit:contain;display:block;margin:0 auto 22px}.auth-card h1{font-size:25px;margin-bottom:12px}.auth-card>p{color:#71847a;line-height:1.7}.auth-card form,.account-profile form{display:flex;flex-direction:column;gap:18px;margin-top:22px}.auth-card .button{margin-top:5px}.account-profile{max-width:850px}.account-profile form{max-width:430px}.account-profile .notice{margin-bottom:18px}.account-profile .retention-info{margin-top:22px}.account-admin,.reminder-settings,.retention-info.panel{margin-top:22px}.account-create{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:18px;margin:22px 0}.account-create>.button{justify-self:start}.account-reset-form{display:flex;gap:10px;margin-top:9px;align-items:center;flex-wrap:wrap}.account-reset-form input{border:1px solid #dce4df;border-radius:5px;padding:7px;font:inherit;max-width:230px}.reminder-banner{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.retention-info{line-height:1.7}.auth-screen[hidden],.shell[hidden]{display:none!important}@media(max-width:650px){.account-create{grid-template-columns:1fr}.auth-screen{min-height:70vh}.auth-card{padding:22px}}
.password-field{min-width:0}.password-rules{list-style:none;padding:0;margin:9px 0 0;font-size:12px;line-height:1.6;color:#65756e}.password-rules li{margin:3px 0}.password-rules .met,.password-match.met{color:#17663e}.password-match{margin:0;color:#a43d32;font-size:12px;min-height:1em}.password-field input[aria-invalid=true]{border-color:#bd5a4e}.account-reset-form .password-field{flex-basis:100%}.account-reset-form .password-rules{max-width:300px}
.employee-picker{position:relative;min-width:0}.employee-suggestions{position:absolute;top:70px;left:0;right:0;z-index:8;background:#fff;border:1px solid #bfd2c6;border-radius:9px;box-shadow:0 10px 30px #243f2924;max-height:300px;overflow:auto;padding:6px}.employee-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:15px;border:0;border-radius:6px;background:#fff;text-align:left;padding:11px 12px;color:#2b4337;font:inherit;cursor:pointer}.employee-option:hover,.employee-option.active{background:#eaf3ed}.employee-option small{color:#7c8b82;white-space:nowrap}.employee-selected{margin-top:8px;min-height:19px;line-height:1.7}.employee-selected .textbutton{margin-left:6px}.employee-empty{padding:12px}.account-create{background:#f7faf8;border:1px solid #dde7e0;border-radius:10px;padding:22px;align-items:start}.account-create .employee-picker{grid-column:1/-1}.account-create>.password-field{grid-column:1/-1;max-width:480px;width:100%}.account-create-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;grid-column:1/-1;border-top:1px solid #dce7df;padding-top:17px}.staff-list-heading{margin-top:30px}.staff-list-heading h3{margin:0}.staff-table{min-width:660px}.staff-table td{vertical-align:middle}.staff-row-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.staff-access{display:inline-block;border-radius:12px;padding:4px 9px;font-size:11px;background:#f0f0ed;color:#7b807b}.staff-access.enabled{background:#e6f2e9;color:#31714b}.staff-reset-row td{background:#f7faf8}.staff-reset-row .account-reset-form{display:grid;grid-template-columns:minmax(150px,1fr) minmax(240px,2fr) auto;align-items:start;gap:20px;padding:10px}.staff-reset-row .account-reset-form h3{margin:0 0 5px;font-size:14px}.staff-reset-row .account-reset-form .button{align-self:center}.staff-reset-row .account-reset-form input{max-width:none;width:100%;box-sizing:border-box}.password-disclosure{border-top:1px solid #e3eae5;padding-top:18px;margin-top:5px}.password-disclosure>summary,.settings-advanced>summary{cursor:pointer;color:#286b49;font-weight:500;list-style-position:inside}.password-disclosure>summary{display:inline-block;border:1px solid #cdded2;border-radius:7px;padding:9px 13px}.settings-sections{display:grid;gap:20px;max-width:950px}.settings-sections .settings-panel{max-width:none}.settings-sections .settings-panel h2{margin:0}.connection-summary>strong,.connection-summary>span{display:block;margin-bottom:8px}.settings-advanced{border-top:1px solid #e2e9e4;padding-top:18px}.settings-advanced-body{display:grid;gap:20px;margin-top:20px}.settings-save{border:0;padding-top:0}.report-multi-field{min-width:260px;position:relative}.report-multi-field>.tiny{display:block;margin-bottom:6px}.report-multiselect>summary{list-style-position:inside;cursor:pointer;border:1px solid #dae4dd;background:#fff;border-radius:7px;padding:10px 13px;color:#344e3d;font-size:12px}.report-multi-popover{position:absolute;z-index:6;left:0;top:65px;width:min(340px,75vw);padding:12px;background:#fff;border:1px solid #cddbd2;border-radius:9px;box-shadow:0 12px 28px #21382b20}.report-multi-popover>input{box-sizing:border-box;width:100%;padding:9px;border:1px solid #d6e2da;border-radius:5px;font:inherit;font-size:12px}.report-multi-options{max-height:250px;overflow:auto;margin:9px 0}.report-multi-option{display:flex;align-items:center;gap:10px;padding:9px 6px;font-size:12px;cursor:pointer}.report-multi-option:hover{background:#f2f7f3}.report-multi-option input[type=checkbox]{accent-color:#317a50;min-height:16px;width:16px;height:16px;flex:none}.report-multi-option small{display:block;color:#859188;font-size:10px;margin-top:4px}.report-filter-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px;max-width:430px}.report-filter-chip{display:inline-flex;align-items:center;gap:7px;border-radius:15px;background:#eaf3ed;padding:5px 8px;color:#3c634a;font-size:10px}.report-filter-chip button{border:0;background:transparent;color:#477254;cursor:pointer;padding:0 3px;font-size:15px;line-height:1;min-height:0}.report-owner{min-width:220px}.report-owner strong{font-size:12px;font-weight:500;padding:10px 0}@media(max-width:750px){.staff-reset-row .account-reset-form{grid-template-columns:1fr;padding:5px;gap:13px}.account-create{padding:16px}.report-multi-field{min-width:220px;flex:1}.account-create-footer{align-items:flex-start}.staff-row-actions{gap:10px}}
.report-editor-fields{min-width:0;border:0;margin:0;padding:0}.report-editor-fields[disabled] [data-remove-row],.report-editor-fields[disabled] [data-report-action=add-row],.report-editor-fields[disabled] [data-trip-from-row]{display:none}.report-editor-fields[disabled] input,.report-editor-fields[disabled] select,.report-editor-fields[disabled] textarea{color:#52655a;background:#f3f6f4;opacity:1}
.leaderboard-source{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin-bottom:20px;background:#fcf9f0;border-color:#e9dfc2;color:#75633d}.leaderboard-source>strong{font-weight:600}.leaderboard-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:11px;color:#7d887f;margin:5px 0 22px}.leaderboard-legend>span{display:inline-flex;align-items:center;gap:7px}.medal-dot{display:inline-block;width:10px;height:10px;border-radius:50%;border:1px solid #00000010}.medal-dot.gold{background:#d1ac47}.medal-dot.silver{background:#a9b5bd}.medal-dot.bronze{background:#ba875d}.leaderboard-table{min-width:950px}.leaderboard-table td{padding-top:18px;padding-bottom:18px;vertical-align:middle}.leaderboard-table th:first-child{width:86px}.leaderboard-table th:last-child{min-width:220px}.leaderboard-person-id{display:block;margin-top:6px}.leaderboard-net{font-weight:600;font-size:18px;color:#32563e}.leaderboard-place-gold td{background:#fffaf0}.leaderboard-place-silver td{background:#f4f7f8}.leaderboard-place-bronze td{background:#fcf5ee}.rank-badge{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:58px;border-radius:9px;padding:7px 8px;box-sizing:border-box}.rank-badge>span{font-size:25px;line-height:1.2}.rank-badge>b{font-size:13px;font-weight:600}.rank-badge.gold{color:#8c6b1c;background:#f7edcb}.rank-badge.silver{color:#63747f;background:#e4ebef}.rank-badge.bronze{color:#946344;background:#f1e3d4}.rank-plain{display:inline-block;min-width:58px;text-align:center;color:#809087}.quality-value{display:block;white-space:nowrap}.quality-caption{display:block;margin-top:5px;line-height:1.5;white-space:normal}.team-quality{min-width:175px;max-width:230px}.quality-formula-note{line-height:1.6;margin:15px 0 0}.leaderboard-formula{font-size:12px;line-height:1.8;color:#657a6b;padding-top:18px;border-top:1px solid #e4ebe6;margin:22px 0 8px}.leaderboard-formula strong{font-weight:500;color:#3f5c49}.leaderboard-method{line-height:1.7}.leaderboard-empty{text-align:center;padding:40px 20px;color:#7f8b82}.leaderboard-empty h2,.leaderboard-empty h3{color:#405a48}.leaderboard-empty .button{margin-top:10px}@media(max-width:750px){.leaderboard-legend{gap:10px 14px;font-size:10px}.leaderboard-table td{padding-top:14px;padding-bottom:14px}.leaderboard-empty{padding:24px 8px}.leaderboard-formula{font-size:11px}}
.role-chips{display:inline-flex;gap:5px;align-items:center;flex-wrap:wrap;vertical-align:middle}.role-chip{display:inline-block;padding:3px 7px;border-radius:11px;background:#edf3ee;color:#55725d;font-size:10px;line-height:1.5}.role-chip.role-admin{background:#efebf7;color:#72548a}.role-chip.role-manager{background:#e7f1ea;color:#3e6a4b}.additional-admin{display:flex;align-items:center;gap:9px;font-size:12px;color:#516b59;align-self:center;line-height:1.7}.additional-admin input[type=checkbox]{accent-color:#3d7d53;width:16px;height:16px;min-height:16px;flex:none}.staff-roles-row td{background:#f6f7fa}.account-roles-form{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:12px 4px}.account-roles-form>.field{min-width:190px}.account-roles-form>strong{max-width:200px;font-size:12px}.account-roles-form .button{align-self:flex-end}.account-create>.additional-admin{padding-top:27px}@media(max-width:650px){.account-create>.additional-admin{padding-top:0}.account-roles-form{align-items:flex-start;flex-direction:column;gap:13px}.account-roles-form>.field{width:100%}.account-roles-form .button{align-self:flex-start}}

/* Shared layout: controls stay aligned when a field has help text or chips. */
.panelhead>div{min-width:0}
.tablewrap{max-width:100%}
.manual-reports>.report-intro,.manual-reports>.report-tabs,.manual-reports>.report-panel,.manual-reports>.report-summary{margin:0}
.report-tabs{gap:8px;align-items:stretch}
.report-tabs [role=tab]{min-height:40px;padding:8px 13px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--muted);font-size:12px;line-height:1.5;text-align:center}
.report-tabs [role=tab]:hover{background:#f7f9f7}
.report-tabs [role=tab][aria-selected=true]{background:var(--soft);border-color:#7aa58b;color:var(--accent);font-weight:500}
.report-filter-row{align-items:flex-start}
.report-filter-row .field{min-width:0;max-width:100%;flex:0 1 190px}
.report-filter-row .report-multi-field{min-width:0;max-width:100%;flex:0 1 260px}
.report-multi-field>.tiny{font-size:11px;line-height:1.5}
.report-multiselect>summary{min-height:40px;padding:10px 11px}
.report-multi-option>span{min-width:0;overflow-wrap:anywhere}
.report-editor-meta .field{min-width:0;max-width:100%;flex:1 1 210px}
.report-actions{max-width:100%}
.report-summary th:nth-child(n+2),.report-summary td:nth-child(n+2),.report-register th:nth-child(n+6):nth-child(-n+8),.report-register td:nth-child(n+6):nth-child(-n+8){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.report-register td:nth-child(4),.report-register td:nth-child(5){max-width:300px;overflow-wrap:anywhere}
.report-call-register{min-width:650px}
.report-call-register th:nth-child(3),.report-call-register th:nth-child(4),.report-call-register td:nth-child(3),.report-call-register td:nth-child(4){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#account>.account-admin,#settings>.reminder-settings,#settings>.retention-info.panel{margin-top:0}
.settings-sections,#reminder-settings-form,#settings>.retention-info.panel{width:100%;max-width:950px}
.employee-option>span{min-width:0;overflow-wrap:anywhere}
.staff-row-actions>.textbutton{min-height:36px;padding:7px 10px;border:1px solid transparent;border-radius:7px;font-size:11px;font-weight:500;line-height:1.5;text-decoration:none}
.staff-row-actions>[data-account-roles]{color:#2d5f9b;background:#edf3fb;border-color:#d6e2f2}
.staff-row-actions>[data-account-roles]:hover{background:#e0ebf9}
.staff-row-actions>[data-account-toggle][data-active=false]{color:#9f3933;background:#fff1ef;border-color:#efd2cd}
.staff-row-actions>[data-account-toggle][data-active=false]:hover{background:#fbe2de}
.staff-row-actions>[data-account-toggle][data-active=true]{color:#235b3b;background:#edf6ef;border-color:#cfe1d4}
.staff-row-actions>[data-account-toggle][data-active=true]:hover{background:#e0eee4}
.staff-row-actions>[data-account-reset]{color:#79561b;background:#fff7e7;border-color:#ecdfbd}
.staff-row-actions>[data-account-reset]:hover{background:#f9edcf}
.staff-row-actions>[aria-expanded=true]{box-shadow:inset 0 0 0 1px currentColor}
.leaderboard-empty .button{max-width:100%;white-space:normal;text-align:center}
.personal-settings{width:100%;max-width:950px}
.personal-settings>form{display:flex;flex-direction:column;gap:22px;margin-top:22px}
.personal-settings .form-grid{align-items:start}
.personal-settings .form-footer,.settings-save{gap:14px;flex-wrap:wrap;align-items:center}
.personal-settings [data-personal-status],#settings-status{flex:1 1 230px;line-height:1.7;font-size:12px;overflow-wrap:anywhere}
.personal-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.personal-actions .button{max-width:100%;white-space:normal;text-align:center}
.settings-audit{width:100%;max-width:950px}
.settings-audit>.panelhead{gap:16px;flex-wrap:wrap}
.settings-audit-table{min-width:720px}
.settings-audit-table th:first-child{width:145px}
.settings-audit-table th:nth-child(2){width:190px}
.settings-audit-table th:nth-child(3){width:90px}
.audit-actor-id{display:block;margin-top:6px}
.audit-change{display:flex;flex-direction:column;gap:5px;margin:6px 0;max-width:410px;overflow-wrap:anywhere;line-height:1.7}
.audit-change strong{font-weight:500}
.audit-change span{color:var(--muted)}
@media(max-width:560px){.personal-actions{width:100%}.personal-actions .button{width:100%}.personal-settings .form-footer{align-items:flex-start}.settings-audit>.panelhead>.button{width:100%}}
@media(pointer:coarse){.staff-row-actions>.textbutton{min-height:44px}}
@media(max-width:560px){
  .report-tabs [role=tab]{flex:1 1 180px;white-space:normal}
  .report-filter-row .field,.report-filter-row .report-multi-field{flex:1 1 100%}
  .report-actions .button,.report-editor-bottom .button,.account-create-footer .button{max-width:100%;white-space:normal;text-align:center}
  .account-create-footer .button{width:100%}
}

/* The header text begins at the desktop sidebar boundary. */
:root{--sidebar-width:205px;--header-padding:34px}
.shell{grid-template-columns:var(--sidebar-width) minmax(0,1fr)}
.topbar{padding-left:var(--header-padding)}
.brand{gap:0}
.brand>div{margin-left:calc(var(--sidebar-width) - var(--header-padding) - 132px)}
.sidebar{background:#eaf2e9;border-right-color:#d8e5d8}
.sidebar .nav:hover{background:#e0ebdf}
.sidebar .nav.active{background:#d6e6d6;color:#214e32}
.sidebar-leaders{margin:17px 1px 0;padding:15px 8px 2px;border-top:1px solid #cfded0;min-width:0}
.sidebar-leaders-heading{margin-bottom:13px}
.sidebar-leaders-heading h2{font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:#4d6952}
.sidebar-leaders-heading p{margin-top:6px;font-size:14px;font-weight:600;color:#294a32}
.sidebar-leaders-heading>span{display:block;font-size:9px;color:#6a806c;margin-top:4px}
.sidebar-leaders-list{display:flex;flex-direction:column;gap:6px;list-style:none;margin:0;padding:0}
.sidebar-leader{position:relative;min-width:0;padding:8px 5px;border-radius:8px}
.sidebar-leader-line{display:flex;gap:4px;align-items:baseline;flex-wrap:wrap;line-height:1.7;font-size:10px}
.sidebar-leader-person{overflow-wrap:anywhere;min-width:0}
.sidebar-leader-tonnes{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}
.sidebar-leader-dash{color:#85947f}
.sidebar-leader-medal{font-size:15px;line-height:1;flex:none;align-self:center}
.sidebar-leader-gold{background:#fcf4d9;border:1px solid #e7d6a3;padding-top:25px}
.sidebar-leader-silver{background:#eff3f5;border:1px solid #d6e0e4}
.sidebar-leader-bronze{background:#f6e9dc;border:1px solid #e4cdb7}
.sidebar-leader-crown{position:absolute;top:4px;left:50%;transform:translateX(-50%);width:25px;height:18px;fill:#e8b947;stroke:#a57b1e;stroke-width:1.1;stroke-linejoin:round;stroke-linecap:round}
.sidebar-leaders-status,.sidebar-leaders-empty{font-size:10px;line-height:1.7;color:#667d68;margin:12px 0 0;overflow-wrap:anywhere}
.sidebar-leaders-error{color:#95483c}
@media(max-width:1100px){:root{--sidebar-width:174px;--header-padding:25px}.sidebar-leader-line{font-size:10px}.sidebar-leader{padding-left:4px;padding-right:4px}}
@media(max-width:800px){:root{--sidebar-width:148px}.brand-logo{width:110px}.brand>div{margin-left:calc(var(--sidebar-width) - var(--header-padding) - 110px)}.sidebar-leaders{padding-left:4px;padding-right:4px}.sidebar-leader-line{column-gap:3px;row-gap:0}.sidebar-leader-person{flex:1 1 60px}.sidebar-leader-tonnes{margin-left:auto}}
@media(max-width:560px){.brand{gap:12px}.brand-logo{width:84px}.brand>div{margin-left:0}.sidebar{position:static;flex-wrap:wrap;overflow:visible}.sidebar .nav{flex:1 1 125px;white-space:normal}.sidebar-leaders{flex:1 1 100%;margin:10px 0 0;padding:14px 8px}.sidebar-leaders-list{max-width:340px}.sidebar-leader-line{font-size:12px;flex-wrap:nowrap}.sidebar-leader-person{flex:1}.sidebar-leader-tonnes{margin-left:0}.sidebar-leaders-heading>span,.sidebar-leaders-status,.sidebar-leaders-empty{font-size:11px}.sidebar .nav-divider{display:none}}
@media print{.brand>div{margin-left:12px}}
.top-actions{position:relative;flex:none}
.header-logout{min-width:66px}
.header-session-status{position:absolute;z-index:10;right:0;top:calc(100% + 10px);width:min(300px,calc(100vw - 32px));padding:12px 14px;border:1px solid #edcec8;border-radius:8px;background:#fff3f0;color:#98463a;font-size:12px;line-height:1.7;box-shadow:0 8px 25px #21382b20;overflow-wrap:anywhere}
@media(max-width:560px){.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}.brand{min-width:0;gap:10px}.brand>div{min-width:0;overflow-wrap:anywhere}.top-actions{justify-content:flex-end}.top-actions .local-badge{display:none}.header-logout{padding:8px 10px;min-width:60px}}
@media(max-width:360px){.brand-logo{width:64px;height:42px}.brand strong{font-size:12px}.brand div>span{font-size:10px}}
.topbar{height:auto;min-height:108px;padding-top:12px;padding-bottom:12px}
.header-profile{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:0;max-width:min(340px,40vw)}
.header-identity{text-align:right;min-width:0;max-width:100%;line-height:1.5;overflow-wrap:anywhere}
.header-identity>strong{display:block;font-size:12px;font-weight:600}
.header-identity>span{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.header-profile .header-logout{min-height:32px;padding:5px 12px;font-size:11px}
@media(max-width:1000px){.top-actions .local-badge{display:none}}
@media(max-width:560px){.topbar{grid-template-columns:minmax(0,1fr);gap:12px;min-height:77px}.top-actions{width:100%;min-width:0}.header-profile{max-width:100%;width:100%}.header-identity{max-width:100%}.header-identity>strong{font-size:12px}.header-profile .header-logout{min-height:36px}}
@media(pointer:coarse){.header-profile .header-logout{min-height:44px}}
.graintrade-summary{padding-top:18px;border-top:1px solid var(--border);line-height:1.7}
.graintrade-summary>div{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:8px}
.graintrade-summary strong{font-size:13px;font-weight:600}
.graintrade-summary>p{overflow-wrap:anywhere}
.grain-op{flex:1 1 155px}
.grain-summary .panelhead{gap:16px;flex-wrap:wrap}
.grain-source-label{font-size:11px;color:var(--muted);white-space:nowrap}
.grain-filter-caption{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.grain-filter-caption>span{padding:5px 9px;background:var(--soft);border-radius:7px;font-size:11px;max-width:100%;overflow-wrap:anywhere}
.grain-total{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}
.grain-total>span{font-size:12px;color:var(--muted)}
.grain-total>strong{font-size:34px;font-weight:500;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.grain-total>strong.unavailable{font-size:23px;color:#7c8e80}
.grain-source-note{font-size:12px;line-height:1.8;color:#697c6d;margin-top:12px}
.grain-source-message,.grain-warning,.grain-synced{margin-top:14px;line-height:1.8;overflow-wrap:anywhere}
.grain-buyers-table{min-width:350px}
.grain-buyers-table th:last-child,.grain-buyers-table td:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.grain-buyers-table td:first-child{overflow-wrap:anywhere}
.grain-empty{color:var(--muted);font-size:12px;padding:12px 0}
@media(max-width:560px){.grain-op{flex-basis:100%;order:3}.grain-summary .panelhead{margin-bottom:16px}.grain-total>strong{font-size:30px}.grain-buyers-table{min-width:300px}}
