@charset "UTF-8";
:root{font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;color:#233931;background:#f4f6f3;font-synthesis:none;--green:#08665b;--muted:#73837c;--line:#e3e9e3;--red:#b14f38}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}a{color:var(--green);text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #d8a842;outline-offset:3px}button:disabled{opacity:.5;cursor:wait}h1,h2,h3,p{margin-top:0}h1{font-size:28px;letter-spacing:-.7px;margin-bottom:10px}h2{font-size:18px}h3{font-size:15px}small,.muted{color:var(--muted)}.layout{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:32px 18px;position:sticky;top:0;height:100dvh;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;padding:0 12px 32px}.brand img{width:38px;height:38px;border-radius:10px}.brand strong{font-size:16px}.brand small{font-size:10px;display:block;letter-spacing:2px;margin-top:5px}.nav{display:flex;flex-direction:column;gap:6px}.nav button{background:none;text-align:left;padding:13px 17px;border-radius:9px;color:#6b7c74;display:flex;gap:13px;align-items:center}.nav button.active{background:#e9f3ed;color:var(--green);font-weight:600}.nav .symbol{font-size:17px;width:20px;text-align:center}.nav-label{font-size:10px;letter-spacing:2px;padding:22px 16px 10px;color:#9aa69e}.side-bottom{margin-top:auto;border-top:1px solid var(--line);padding:20px 12px 0;line-height:1.8;font-size:12px}.side-bottom b{display:block;color:#42594b}.main{min-width:0}.topbar{height:72px;border-bottom:1px solid var(--line);background:#ffffffbb;display:flex;justify-content:space-between;align-items:center;padding:0 38px;gap:12px}.breadcrumb{font-size:12px;color:#819088}.top-right{display:flex;gap:15px;align-items:center;font-size:12px}.dot{width:7px;height:7px;border-radius:50%;background:#419069;display:inline-block;margin-right:6px}.avatar{background:#e6ede5;color:var(--green);width:30px;height:30px;border-radius:50%;display:grid;place-items:center}.content{padding:34px 38px 60px;max-width:1600px;margin:auto}.eyebrow{color:var(--green);font-size:11px;letter-spacing:2px;font-weight:600;margin-bottom:13px}.heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:25px}.heading p{font-size:12px;color:var(--muted);line-height:1.8;margin:0}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn{padding:10px 16px;border-radius:7px;font-size:12px;background:var(--green);color:white;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.btn.secondary{background:white;color:#466151;border:1px solid #dce5db}.btn.ghost{background:transparent;color:var(--green);padding:7px}.btn.danger{background:#fff3ef;color:var(--red);border:1px solid #f1d7cc}.filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0 24px;font-size:12px}.filters label{display:flex;gap:8px;align-items:center}.filters input,.filters select,.search{background:white;border:1px solid #dde5dc;border-radius:6px;padding:9px 12px;color:#4c6255;max-width:100%}.filter-note{margin-left:auto;font-size:11px;color:var(--muted)}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.kpi{background:white;border:1px solid var(--line);border-radius:12px;padding:21px 23px;position:relative;overflow:hidden}.kpi.featured{background:var(--green);color:white;border-color:var(--green)}.kpi-label{font-size:12px;color:#708276;margin-bottom:18px}.featured .kpi-label{color:#c0d7cd}.kpi-value{font-size:29px;letter-spacing:-1px;font-weight:600;white-space:nowrap}.kpi-value .unit{font-size:13px;font-weight:400;letter-spacing:0;margin-left:5px}.kpi-foot{font-size:10px;color:#8b9b8f;margin-top:17px;line-height:1.6}.featured .kpi-foot{color:#bdd4c8}.grid2{display:grid;grid-template-columns:1.55fr 1fr;gap:20px;margin-bottom:20px}.panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:20px}.panel-header{padding:22px 24px 17px;display:flex;align-items:center;justify-content:space-between;gap:16px}.panel-header h2{margin:0;font-size:15px}.panel-header small{font-size:10px}.panel-body{padding:0 24px 24px}.pill{border-radius:5px;background:#edf4ee;color:#4a785d;padding:5px 8px;font-size:10px;white-space:nowrap}.pill.warn{background:#fff3dd;color:#96753c}.pill.red{background:#fff0eb;color:var(--red)}.notice{border:1px solid #e6dfca;background:#fffcef;border-radius:8px;padding:13px 16px;color:#7a704e;font-size:12px;line-height:1.8;margin-bottom:21px}.notice.info{background:#edf6f0;border-color:#dbe8df;color:#4e6e5a}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th{padding:12px 18px;background:#f8faf7;color:#849287;font-size:10px;font-weight:500;text-align:left;border-top:1px solid #edf0eb;border-bottom:1px solid #edf0eb}td{padding:16px 18px;border-bottom:1px solid #f0f3ee}tr:last-child td{border-bottom:0}td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}.negative{color:var(--red)}.positive{color:var(--green)}.empty{text-align:center;padding:44px 20px;color:#91a095;font-size:13px;line-height:2}.empty b{display:block;font-size:15px;color:#657d6b;margin-bottom:6px}.row-title{font-weight:600}.subtext{font-size:10px;display:block;color:#8b998e;margin-top:6px;max-width:230px;white-space:normal;line-height:1.5}.bar-chart{height:208px;display:flex;gap:10px;align-items:end;padding:22px 4px 28px;border-bottom:1px solid var(--line);margin-bottom:15px}.bar-group{flex:1;min-width:0;height:100%;display:flex;align-items:center;justify-content:end;flex-direction:column;gap:7px;position:relative}.bar{width:70%;max-width:37px;background:#5d9b7d;border-radius:4px 4px 0 0;min-height:2px}.bar.neg{background:#d19d80}.bar-label{position:absolute;bottom:-22px;font-size:9px;color:#8a9a8e}.bar-value{font-size:8px;color:#62816b}.legend{display:flex;justify-content:space-between;font-size:10px;color:#819487}.yield-row{padding:17px 0;border-bottom:1px solid #edf1eb}.yield-row:last-child{border:0}.yield-head{display:flex;justify-content:space-between;font-size:12px;margin-bottom:11px}.track{height:5px;border-radius:3px;background:#edf2eb;overflow:hidden}.track span{display:block;height:100%;background:#78a381}.yield-meta{margin-top:9px;color:#8a9b8c;font-size:10px}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 20px}.tabs button{padding:10px 16px;border-radius:7px;color:#6d8171;background:#e8eee7;font-size:12px}.tabs button.active{background:var(--green);color:white}.section-note{font-size:11px;color:#87958a;line-height:1.8}.mobile-brand{display:none}.login{min-height:100dvh;display:grid;place-items:center;padding:30px;background:radial-gradient(ellipse at 20% 20%,#dfece0,transparent 60%),#f4f6f1}.login-card{width:100%;max-width:430px;padding:36px;background:white;border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 80px #253f3010}.login-logo{width:50px;margin-bottom:25px}.login h1{font-size:25px;margin-bottom:12px}.login p{font-size:12px;color:#859487;line-height:1.9;margin-bottom:27px}.login .btn{width:100%;padding:13px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:15px;font-size:12px;color:#55715e}.field input,.field select,.field textarea{width:100%;border:1px solid #dce4d9;border-radius:7px;background:#fff;padding:11px 12px;color:#244c37;min-width:0}.field textarea{min-height:75px;resize:vertical}.field small{font-size:10px;line-height:1.6}.span2{grid-column:1/-1}.form-error{font-size:12px;color:var(--red);line-height:1.8;margin-bottom:12px}.form-success{font-size:12px;color:var(--green);line-height:1.8}dialog{border:1px solid var(--line);border-radius:15px;padding:0;width:min(890px,calc(100% - 28px));max-height:90dvh;color:#294c36;box-shadow:0 24px 100px #18372235}dialog::backdrop{background:#18362975;backdrop-filter:blur(3px)}.modal-head{padding:22px 25px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.modal-head h2{margin:0}.modal-content{padding:24px}.modal-footer{padding-top:20px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);margin-top:22px}.close{background:#f0f4ef;border-radius:50%;width:28px;height:28px;color:#688672;font-size:19px}.line-head{display:flex;justify-content:space-between;align-items:center;margin:16px 0 12px}.line-head h3{margin:0}.line-item{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 26px;gap:8px;padding:12px;background:#f5f8f2;border-radius:9px;margin-bottom:10px;align-items:start}.line-item .field{margin:0}.line-item .field input,.line-item .field select{padding:9px 8px;font-size:12px}.line-item .remove{margin-top:29px;background:none;color:#a06550;font-size:18px}.line-item.output-line{grid-template-columns:2fr .7fr .7fr .7fr 1fr 26px}.preview{padding:15px;border-radius:8px;background:#edf5ee;font-size:12px;line-height:2;color:#52755c;margin-top:18px}.record-detail{white-space:pre-wrap;background:#f6f8f3;border:1px solid var(--line);padding:18px;font-size:12px;line-height:1.9;overflow:auto}.stats-row{display:flex;gap:20px;flex-wrap:wrap;font-size:13px;padding:10px 0}.footer{font-size:10px;color:#9ba797;margin-top:25px;text-align:right}.login-footer{text-align:center;color:#a0ac9e;font-size:10px;margin-top:25px}.account-card{padding:23px;background:#fff;border:1px solid var(--line);border-radius:12px}.account-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:23px}.account-card h3{margin-bottom:20px}.account-card strong{font-size:27px}.account-card p{font-size:11px;color:#849280;margin:12px 0 0}.check{display:flex;gap:8px;align-items:center;font-size:12px;margin:10px 0}.check input{width:auto}.code{background:#eaf0e6;padding:3px 6px;border-radius:4px;font-family:Consolas,monospace;font-size:11px}.table-note{white-space:normal;min-width:220px;max-width:480px;line-height:1.7}#toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);z-index:10;background:#163e29;color:#fff;font-size:13px;max-width:calc(100vw - 36px);padding:13px 23px;border-radius:9px;box-shadow:0 5px 20px #18362226;display:none}#toast.visible{display:block}
@media(max-width:1120px){.layout{grid-template-columns:190px 1fr}.sidebar{padding:27px 10px}.content{padding:28px 24px}.topbar{padding:0 24px}.kpi{padding:19px 17px}.kpi-value{font-size:25px}.grid2{grid-template-columns:1.2fr 1fr}.line-item.output-line{grid-template-columns:1.6fr .8fr .7fr .8fr .9fr 26px}}
@media(max-width:760px){.layout{display:block}.sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;height:auto;padding:0 0 env(safe-area-inset-bottom);z-index:5;border:0;border-top:1px solid var(--line)}.brand,.side-bottom,.nav-label{display:none}.nav{flex-direction:row;overflow:auto;gap:0;padding:4px 6px}.nav button{padding:8px 13px;flex-direction:column;gap:5px;font-size:9px;flex-shrink:0}.nav .symbol{font-size:18px}.nav button.active{background:transparent;color:var(--green)}.topbar{height:61px;padding:0 18px}.breadcrumb{display:none}.mobile-brand{display:block;font-size:14px;font-weight:600}.top-right{gap:9px;font-size:10px}.content{padding:24px 17px 115px}.eyebrow{font-size:9px}h1{font-size:25px}.heading{margin-bottom:18px;gap:12px}.heading p{font-size:11px}.heading .btn{padding:10px 11px;font-size:11px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kpi{padding:17px 15px;border-radius:10px}.kpi-value{font-size:25px}.kpi-label{font-size:11px;margin-bottom:14px}.kpi-foot{font-size:9px;margin-top:11px}.grid2{grid-template-columns:1fr;gap:0}.panel-header{padding:18px}.panel-body{padding:0 18px 18px}.filters{gap:8px}.filters label{font-size:10px;gap:4px}.filters input{padding:8px 5px;max-width:130px}.filter-note{width:100%;margin-top:5px}.notice{font-size:11px}.form-grid{grid-template-columns:1fr;gap:0}.span2{grid-column:auto}.line-item,.line-item.output-line{grid-template-columns:1fr 1fr}.line-item .field:first-child{grid-column:1/-1}.line-item .remove{margin-top:10px;justify-self:end}.modal-content{padding:18px}.modal-head{padding:20px 18px}.modal-head h2{font-size:16px}.account-cards{grid-template-columns:1fr}.topbar .btn{font-size:10px;padding:7px}.modal-footer{position:sticky;bottom:0;background:white;padding:14px 0 0}.tabs button{font-size:11px;padding:9px 12px}.footer{line-height:1.8}th,td{padding:13px 15px}.login-card{padding:29px}.stats-row{font-size:12px}.table-wrap{overscroll-behavior-x:contain}#toast{bottom:90px}}

.sale-line{grid-template-columns:2fr 1fr .8fr 1fr 26px}.sale-stock{grid-column:1/-1;font-size:11px}.sale-detail-row{display:flex;flex-direction:column;gap:5px;padding:7px 0;white-space:normal;min-width:210px}.sale-detail-row span{font-size:11px;color:#73837c}.sale-detail-row+.sale-detail-row{border-top:1px solid #edf1eb}#head-count-field[hidden]{display:none}@media(max-width:760px){.sale-line{grid-template-columns:1fr 1fr}.sale-line .field:first-child{grid-column:1/-1}.sale-line .sale-stock{grid-column:1/-1}}

.input-line{grid-template-columns:1.3fr 1.3fr .7fr .7fr .9fr 26px}.pay-allocation input{max-width:125px;padding:9px;border:1px solid #dce4d9;border-radius:6px;color:#244c37;background:#fff}@media(max-width:760px){.input-line{grid-template-columns:1fr 1fr}.input-line .field:first-child{grid-column:1/-1}.pay-allocation input{max-width:100px}}

.field[hidden]{display:none}.nav{min-height:0;overflow-y:auto}.kpis.six{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:760px){.kpis.six{grid-template-columns:repeat(2,minmax(0,1fr))}.nav{overflow-x:auto;overflow-y:hidden}}

/* 1.5: compact mobile navigation and touch-friendly dialogs. */
.mobile-nav{display:none}.mobile-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mobile-menu-grid button{display:flex;flex-direction:column;gap:12px;align-items:center;padding:20px 8px;background:#f1f6f2;border:1px solid #dfe9e1;color:#3c6751;border-radius:12px;font-size:13px;min-height:90px}.mobile-menu-grid button span{font-size:23px}.mobile-menu-grid button.active{border-color:#08665b;background:#e1f1e8;color:#08665b}.ow-day-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0 24px}.ow-day-summary>span{display:flex;flex-direction:column;gap:10px;font-size:12px;border:1px solid #dfe8df;background:#f3f7f3;padding:14px;border-radius:9px}.ow-day-summary strong{font-size:20px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.ow-detail-list{display:grid;gap:10px;margin:12px 0 24px}.ow-detail-list>button,.ow-detail-list>div{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:16px;border:1px solid #dfe8df;background:#f6f8f4;border-radius:9px;color:#2d503b;text-align:left;font-size:13px}.ow-detail-list small{display:block;font-size:11px;color:#62796a;margin-top:8px;line-height:1.8}.ow-detail-list b,.ow-detail-list strong{overflow-wrap:anywhere}.ow-detail-list>button:active{background:#e1f1e8}
@media(max-width:760px){.sidebar .desktop-nav{display:none}.mobile-nav{display:flex;width:100%;padding:4px 3px;justify-content:space-around;gap:2px}.mobile-nav button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px 1px;min-height:58px;font-size:10px;color:#6b7c74;background:none;border-radius:8px;white-space:nowrap}.mobile-nav .symbol{font-size:19px;line-height:23px}.mobile-nav button.active{color:#08665b;background:#e9f3ed;font-weight:600}.owner-layout .mobile-nav button{color:#9fb9d8}.owner-layout .mobile-nav button.active{color:#a3d6ff;background:#1b375c}.top-right>span:nth-child(3){max-width:90px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.top-right .avatar{display:none}.mobile-brand{font-size:13px;white-space:nowrap}.topbar{padding:0 12px;gap:6px}.top-right{gap:6px}.btn,.close{min-height:44px}.close{min-width:44px}.modal-head{position:sticky;top:0;z-index:2;background:#fff;gap:10px;padding:12px 16px}.modal-head h2{line-height:1.6}.modal-content{padding:16px}.modal-content .field input,.modal-content .field select,.modal-content .field textarea,.login .field input{font-size:16px;min-height:44px}.modal-content .line-item input,.modal-content .line-item select{font-size:16px}.modal-footer{gap:10px;padding-bottom:env(safe-area-inset-bottom)}dialog{max-height:calc(100dvh - 20px);width:calc(100% - 16px);border-radius:14px}.mobile-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mobile-menu-grid button{font-size:12px;padding:16px 4px;min-height:86px}.ow-day-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ow-day-summary>span{padding:12px;font-size:11px}.ow-day-summary strong{font-size:21px}.ow-detail-list>button,.ow-detail-list>div{align-items:flex-start;flex-wrap:wrap;padding:14px;gap:8px}.ow-detail-list>button>span:first-child{flex-basis:100%}.ow-detail-list>button>span:last-child{margin-left:auto}body:has(dialog[open]){overflow:hidden}}
@media(max-width:350px){.top-right>span:first-child{display:none}.top-right>span:nth-child(3){max-width:78px}.mobile-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
