/* Unified workspace theme. Loaded last to replace the older page-specific skins. */
:root{--ui-ink:#1c3535;--ui-muted:#748384;--ui-green:#166c5c;--ui-line:#e4eae8;--ui-bg:#f3f6f5;--ui-shadow:0 3px 14px #173b2e05}
body.modern-ui{color:var(--ui-ink);font-family:Inter,'Segoe UI',sans-serif;background:var(--ui-bg);-webkit-font-smoothing:antialiased}
body.modern-ui .shell{background:var(--ui-bg);font-size:12px;line-height:1.45}
body.modern-ui .shell .sidebar{width:204px;background:#fff;color:var(--ui-ink);border-right:1px solid var(--ui-line);padding:18px 12px;scrollbar-width:thin;scrollbar-color:#d7e2dd transparent}
body.modern-ui .shell .main{margin-left:204px;width:calc(100% - 204px)}
body.modern-ui .shell .brand{padding:0 7px 18px;gap:9px}
body.modern-ui .shell .brand b{font-size:18px;letter-spacing:-.7px;color:#163f36}
body.modern-ui .shell .brand small{color:#86918f;font-size:9px;letter-spacing:.6px}
body.modern-ui .shell .brandmark{background:#176c5b;color:#fff;width:33px;height:33px;border-radius:11px;box-shadow:0 4px 8px #176c5b16}
body.modern-ui .shell .scope{background:#f4f8f6;border:1px solid #e7eeea;padding:9px 10px;margin:0 0 15px;border-radius:10px;gap:8px}
body.modern-ui .shell .scope strong{color:#344d45;font-size:11px}
body.modern-ui .shell .scope small,body.modern-ui .shell .scope em{color:#81928a;font-size:9px}
body.modern-ui .shell .scope .dot{width:6px;height:6px;background:#2caa7b;box-shadow:0 0 0 3px #dff1e9}
body.modern-ui .shell nav a{color:#687875;font-size:10.5px;font-weight:500;padding:8px 10px;gap:9px;border-radius:8px;margin:2px 0;min-height:33px}
body.modern-ui .shell nav a i{font-size:12px;width:16px;color:#92a29a}
body.modern-ui .shell nav a:hover{background:#eff5f1;color:#225747}
body.modern-ui .shell nav a.active{background:#176c5b;color:#fff;box-shadow:0 4px 10px #176c5b14}
body.modern-ui .shell nav a.active i{color:#bce5d3}
body.modern-ui .shell .nav-label{font-size:8px;color:#9aa8a1;letter-spacing:1.6px;padding:16px 10px 5px}
body.modern-ui .shell .topbar{height:55px;background:#ffffffed;border-bottom:1px solid var(--ui-line);padding:0 22px;backdrop-filter:blur(12px)}
body.modern-ui .shell .top-title b{font-size:12px;font-weight:600;color:#3d514a}
body.modern-ui .shell .icon-btn{width:29px;height:29px;border:1px solid #e4eae7;border-radius:8px;color:#6b7d74;background:#fff;font-size:11px}
body.modern-ui .shell .top-actions{gap:8px}
body.modern-ui .shell .user-chip{border-left:1px solid var(--ui-line);padding-left:10px}
body.modern-ui .shell .user-chip>span{background:#edf4e8;color:#5d7c39;border-radius:9px;width:30px;height:30px;font-size:11px}
body.modern-ui .shell .user-chip b{font-size:10px;font-weight:600}
body.modern-ui .shell .user-chip small{font-size:9px;color:#929e98}
body.modern-ui .shell .content{max-width:1680px;padding:20px 24px 32px}
body.modern-ui .shell .page-head{align-items:center;gap:10px;margin-bottom:16px}
body.modern-ui .shell .page-head h1{font-size:22px;letter-spacing:-.8px;font-weight:600;line-height:1.25;margin:0}
body.modern-ui .shell .page-head p{font-size:10px;line-height:1.5;color:#87958d;margin-top:5px}
body.modern-ui .shell .eyebrow{font-size:8px;letter-spacing:1.6px;margin-bottom:5px;display:block}
body.modern-ui .shell :is(.primary,.btn){padding:7px 11px;min-height:31px;border-radius:8px;font-size:10px;line-height:16px;font-weight:600;box-shadow:none;transition:background .15s,box-shadow .15s}
body.modern-ui .shell .primary{background:#176c5b;color:white;border:1px solid #176c5b}
body.modern-ui .shell .primary:hover{background:#0e5144;box-shadow:0 3px 10px #176c5b18}
body.modern-ui .shell .btn{background:#fff;border:1px solid #dce5df;color:#4d6559}
body.modern-ui .shell .btn:hover{background:#edf5ef;border-color:#b8d1c1}
body.modern-ui .shell :is(a,button,input,select,textarea):focus-visible{outline:2px solid #278c73;outline-offset:3px}
body.modern-ui .shell :is(.panel,.kpi){border:1px solid var(--ui-line);border-radius:13px;box-shadow:var(--ui-shadow);background:#fff}
body.modern-ui .shell .panel{padding:15px;margin-bottom:14px}
body.modern-ui .shell .panel.table-panel{padding:0}
body.modern-ui .shell h3{font-size:12px;font-weight:600;letter-spacing:-.15px;margin:0 0 10px;color:#385148}
body.modern-ui .shell .panel-head{margin-bottom:10px;align-items:center}
body.modern-ui .shell .panel-head h3{margin:0}
body.modern-ui .shell .panel-head p{font-size:10px;margin:4px 0 0;color:#8b9891}
body.modern-ui .shell :is(.admin-summary,.retail-summary,.kpis){gap:10px;margin:0 0 14px}
body.modern-ui .shell :is(.summary-card,.retail-stat,.kpi){position:relative;background:#fff;border:1px solid var(--ui-line);border-radius:12px;box-shadow:var(--ui-shadow);padding:12px 14px;gap:12px;min-height:80px;transform:none;overflow:hidden;align-items:center}
body.modern-ui .shell :is(.summary-card,.retail-stat,.kpi)::before{content:'';position:absolute;left:0;top:18px;bottom:18px;width:3px;border-radius:0 4px 4px 0;background:#4ca285}
body.modern-ui .shell :is(.summary-card,.retail-stat,.kpi):hover{transform:none;box-shadow:0 5px 16px #173b2e0a;border-color:#ccdcd2}
body.modern-ui .shell :is(.summary-icon,.retail-stat-icon,.kicon){display:grid;place-items:center;flex-shrink:0;width:35px;height:35px;border-radius:11px;background:#eaf4ed;color:#40836a;font-size:16px;box-shadow:none}
body.modern-ui .shell :is(.summary-card,.retail-stat,.kpi) strong{display:block;font-size:23px;font-weight:600;letter-spacing:-.7px;line-height:1.15;margin:4px 0;color:#203b33}
body.modern-ui .shell .summary-label,body.modern-ui .shell .retail-stat span:not(.retail-stat-icon){font-size:10px;font-weight:500;color:#7b8c83}
body.modern-ui .shell :is(.summary-card,.retail-stat,.kpi) small{font-size:9px;color:#96a299;line-height:1.25}
body.modern-ui .shell .summary-eggs::before{background:#638fd1}
body.modern-ui .shell .summary-eggs .summary-icon{background:#edf2fb;color:#6686b8}
body.modern-ui .shell .summary-alerts::before{background:#d1a15a}
body.modern-ui .shell .summary-alerts .summary-icon{background:#fbf3e5;color:#b99555}
body.modern-ui .shell .retail-sold::before{background:#8f84bf}
body.modern-ui .shell .retail-sold .retail-stat-icon{background:#f0edf8;color:#9082b7}
body.modern-ui .shell .admin-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
body.modern-ui .shell .overview-cluster{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:16px}
body.modern-ui .shell .overview-cluster :is(.admin-summary,.retail-summary){display:contents}
body.modern-ui .shell .overview-cluster :is(.summary-card,.retail-stat){padding:11px 12px;gap:9px;min-height:80px}
body.modern-ui .shell .overview-cluster :is(.summary-icon,.retail-stat-icon){width:30px;height:30px;font-size:14px;border-radius:9px}
body.modern-ui .shell .overview-cluster .summary-label,body.modern-ui .shell .overview-cluster .retail-stat span:not(.retail-stat-icon){font-size:9px}
body.modern-ui .shell .overview-cluster strong{font-size:22px}
body.modern-ui .shell .financial-panel>small{font-size:9px;line-height:1.4;color:#96a299}
body.modern-ui .shell .financial-grid{gap:10px;margin:12px 0 8px}
body.modern-ui .shell .financial-card{padding:11px 12px;border:1px solid #e7ede9;border-radius:10px;background:#fafcfb;box-shadow:none}
body.modern-ui .shell .financial-card h4{font-size:10px;font-weight:600;margin:0 0 8px;gap:7px}
body.modern-ui .shell .finance-icon{width:25px;height:25px;border-radius:8px;font-size:11px}
body.modern-ui .shell .financial-card>div{font-size:10px;margin:4px 0;line-height:1.35}
body.modern-ui .shell .financial-card>div:last-child{padding-top:6px;margin-top:6px;border-top:1px solid #e6eee8}
body.modern-ui .shell .financial-card strong{font-size:12px;font-weight:600}
body.modern-ui .shell .financial-card b{font-weight:500}
body.modern-ui .shell .admin-sales{padding:15px;margin-top:14px;border-radius:13px}
body.modern-ui .shell .sales-heading h3{margin-bottom:3px}
body.modern-ui .shell .sales-heading small{font-size:9px;color:#96a299}
body.modern-ui .shell .sales-money-grid{gap:10px;margin:13px 0}
body.modern-ui .shell .sales-money-card{display:flex;gap:4px;min-height:90px;padding:13px 12px;border:1px solid #e0eae4;background:#f5faf6;border-radius:11px;box-shadow:none}
body.modern-ui .shell .sales-money-card>.money-icon{position:absolute;right:10px;top:12px;width:25px;height:25px;border-radius:8px;background:#e5f1e8;font-size:12px;color:#56856a}
body.modern-ui .shell .sales-money-card>span:not(.money-icon){padding-right:28px;font-size:9px;font-weight:500;color:#6e887a}
body.modern-ui .shell .sales-money-card strong{font-size:19px;font-weight:600;letter-spacing:-.6px;line-height:1.3;margin-top:3px}
body.modern-ui .shell .sales-money-card small{font-size:9px;color:#92a197}
body.modern-ui .shell .sales-farm{background:#f4f7fc;border-color:#e2e8f2;color:#496e9b}
body.modern-ui .shell .sales-farm .money-icon{background:#e7edf8;color:#6b88b6}
body.modern-ui .shell .sales-poultry{background:#f1f8f8;border-color:#dfecec;color:#447f80}
body.modern-ui .shell .sales-piggery{background:#f8f5fb;border-color:#e9e2f1;color:#82659b}
body.modern-ui .shell .sales-piggery .money-icon{background:#eee7f6;color:#947bb1}
body.modern-ui .shell .sales-charts{gap:12px;margin:14px 0}
body.modern-ui .shell .sales-charts article{padding:12px;border-radius:10px;border-color:#e7ede9;background:#fff}
body.modern-ui .shell .sales-charts h4{font-size:11px;color:#688073}
body.modern-ui .shell .sales-plot{height:175px}
body.modern-ui .shell .chart-panel{min-height:0;margin-bottom:16px}
body.modern-ui .shell .production-plot{height:150px}
body.modern-ui .shell .chart-panel canvas{max-height:185px}
body.modern-ui .shell .sales-status{font-size:10px;margin:8px 0;color:#85948b}
body.modern-ui .shell .sales-calendar button{border-radius:7px;padding:8px 5px;font-size:9px;background:#f7faf8}
body.modern-ui .shell .sales-calendar button.has-sales{background:#e9f4ee;color:#347956;border-color:#c8e2d3}
body.modern-ui .shell .sales-filters label{font-size:9px}
body.modern-ui .shell .sales-filters :is(select,input){min-height:30px;padding:5px 8px;font-size:10px;border-radius:7px}
body.modern-ui .shell .sales-detail-heading{margin:14px 0 8px}
body.modern-ui .shell .sales-detail-heading strong{color:#376e55;font-size:12px}
body.modern-ui .shell .table-tools{padding:11px 13px;border-bottom:1px solid var(--ui-line);background:#fcfdfc}
body.modern-ui .shell .search{padding:7px 10px;border-radius:7px;border-color:#e0e8e2;font-size:11px;background:#fff}
body.modern-ui .shell table{font-size:11px}
body.modern-ui .shell :is(table,.ledger-table,.saved-ledger) thead th{background:#f2f6f3;color:#6d8375;font-weight:600;font-size:9px;padding:9px 8px;border-color:#e2eae4;letter-spacing:.1px;text-transform:none}
body.modern-ui .shell :is(.ledger-table,.saved-ledger) tbody td{border-color:#e8eeea;padding:7px 8px}
body.modern-ui .shell :is(.ledger-table,.saved-ledger) tbody tr:nth-child(odd) td{background:#fff}
body.modern-ui .shell :is(.ledger-table,.saved-ledger) tbody tr:nth-child(even) td{background:#f9fbf9}
body.modern-ui .shell :is(.ledger-table,.saved-ledger) tbody tr:hover td{background:#f0f7f2}
body.modern-ui .shell td{padding:9px 10px;border-color:#edf1ee;color:#4f6758}
body.modern-ui .shell .ledger-frame{border:1px solid #e1e9e3;border-radius:9px}
body.modern-ui .shell .ledger-table tbody td{padding:3px 5px}
body.modern-ui .shell .document-form input{height:28px;background:transparent;border:1px solid transparent;padding:4px;font-size:11px}
body.modern-ui .shell .document-form input:focus{background:#fff;border-color:#75ab93;outline:2px solid #e2f0e8;outline-offset:0}
body.modern-ui .shell .ledger-table{min-width:610px}
body.modern-ui .shell .document-panel{margin-bottom:16px}
body.modern-ui .shell .document-panel>.panel h3{border-bottom:1px solid #eef2ef;padding-bottom:10px;margin-bottom:12px}
body.modern-ui .shell .document-tabs{gap:7px;margin:10px 0}
body.modern-ui .shell tfoot :is(th,td){background:#edf5ef;color:#49755a;padding:9px 8px;font-size:11px;border-color:#dfeae2}
body.modern-ui .shell .document-link{color:#397c62;text-decoration:none;font-size:10px;font-weight:600}
body.modern-ui .shell .document-link:hover{text-decoration:underline}
body.modern-ui .shell .retail-payment-fields{gap:12px;max-width:600px;margin-bottom:12px}
body.modern-ui .shell .retail-payment-fields label{font-size:10px;color:#72877a;gap:5px}
body.modern-ui .shell .retail-receipt-form input,body.modern-ui .shell .retail-payment-fields select{padding:7px 9px;min-height:32px;font-size:11px;border-radius:7px;border-color:#dae6dd;background:#fff}
body.modern-ui .shell .retail-quantity-table tbody td{background:#fafcfb;border-color:#e6eee8}
body.modern-ui .shell .retail-quantity-table .document-total{font-size:13px}
body.modern-ui .shell .role-cards>div{padding:13px;border:1px solid var(--ui-line);border-radius:11px;box-shadow:var(--ui-shadow);background:#fff}
body.modern-ui .shell :is(.status,.enterprise,.pill,.invoice-status){border-radius:6px;padding:4px 7px;font-size:9px;font-weight:500}
body.modern-ui .shell .alert-item{background:#f8faf8;padding:10px;border:1px solid #edf1ee;border-radius:9px;gap:10px}
body.modern-ui .shell .alert-item>span{width:28px;height:28px;border-radius:8px;font-size:12px}
body.modern-ui .shell .alert-item b{font-size:11px}
body.modern-ui .shell .alert-item p{font-size:10px;margin:3px 0}
body.modern-ui .shell :is(.task,.activity){padding:9px 0;gap:9px}
body.modern-ui .shell :is(.activity-icon,.task-check){width:28px;height:28px;border-radius:8px;font-size:12px}
body.modern-ui .shell .finance-big{padding:12px;border-radius:10px;background:#1c6655}
body.modern-ui .shell .finance-row{padding:8px 2px;font-size:11px}
body.modern-ui .shell .modal{background:#172f3266;backdrop-filter:blur(4px);padding:16px}
body.modern-ui .shell .modal-card{width:min(560px,calc(100vw - 32px));border:1px solid #dfe9e2;border-radius:15px;padding:20px;box-shadow:0 22px 80px #16362e24}
body.modern-ui .shell .modal-card h2{font-size:17px;font-weight:600;letter-spacing:-.3px}
body.modern-ui .shell .modal-x{color:#97a69c;border-radius:7px;font-size:21px}
body.modern-ui .shell .form-grid{gap:11px;margin-top:14px}
body.modern-ui .shell .form-grid label{font-size:10px;color:#6e8375;font-weight:500}
body.modern-ui .shell .form-grid :is(input,select,textarea){font-size:11px;padding:8px 9px;border-radius:7px;border-color:#dfe8e1;background:#fafcfb}
body.modern-ui #recordModal .compact-record{width:min(480px,calc(100vw - 28px));padding:18px;border-radius:15px}
body.modern-ui #recordModal .record-dialog-icon{background:#e5f2e9;color:#378565}
body.modern-ui #eggModal .egg-entry-card{width:min(370px,calc(100vw - 28px));padding:17px;border-radius:15px}
body.modern-ui .invoice-dialog,body.modern-ui .egg-confirm{border:1px solid #dfe9e2;border-radius:15px;box-shadow:0 22px 80px #16362e24;padding:17px}
body.modern-ui .invoice-dialog::backdrop,body.modern-ui .egg-confirm::backdrop{background:#172f3266;backdrop-filter:blur(4px)}
body.modern-ui .invoice-dialog .invoice-dialog-head h2,body.modern-ui .egg-confirm h2{font-size:16px;font-weight:600}
body.modern-ui .invoice-dialog .invoice-counts>div{padding:10px;border-radius:10px}
body.modern-ui .invoice-dialog .invoice-counts strong{font-size:21px;font-weight:600}
body.modern-ui .shell .flash{padding:10px 12px;border-radius:9px;border:1px solid #dbece1;font-size:11px}
body.modern-ui .shell .flash.danger{border-color:#efcfd3;background:#fff0f2;color:#a34859}
body.modern-ui .shell .incoming-alert{background:#b43d51;border-color:#b43d51;color:white}
body.modern-ui .shell .danger-icon{background:#fff1f3;color:#ba6372;border-radius:6px;padding:5px 7px}
body.modern-ui .shell .empty{padding:24px;color:#98a69c;font-size:11px}
.workspace-scrim{position:fixed;inset:0;border:0;background:#193e363f;backdrop-filter:blur(2px);z-index:19}.workspace-scrim[hidden]{display:none}
body.modern-ui.nav-open{overflow:hidden}
@media(min-width:781px){body.modern-ui.nav-collapsed .shell .sidebar{width:68px;padding:18px 9px}body.modern-ui.nav-collapsed .shell .main{margin-left:68px;width:calc(100% - 68px)}body.modern-ui.nav-collapsed .shell .brand{padding:0 8px 18px}body.modern-ui.nav-collapsed .shell .brand>span:last-child,body.modern-ui.nav-collapsed .shell .scope,body.modern-ui.nav-collapsed .shell .nav-label{display:none}body.modern-ui.nav-collapsed .shell nav a{font-size:0;justify-content:center;padding:10px;gap:0}body.modern-ui.nav-collapsed .shell nav a i{font-size:14px}body.modern-ui.nav-collapsed .shell nav{padding-top:8px}}
/* Preserve the uploaded login photograph and viewport-fitted positioning. */
body.modern-ui .farm-auth-card{border:1px solid #ffffffcc;border-radius:18px;padding:17px 22px;background:#fffffff5;box-shadow:0 22px 80px #0b2c3040}
body.modern-ui .farm-auth-card h1{font-size:21px;font-weight:600;letter-spacing:-.7px;color:#244b3a}
body.modern-ui .farm-auth-brand-mark{color:#3e876b;margin-bottom:6px}
body.modern-ui .farm-auth-intro{font-size:10px;color:#94a096;margin:5px 0 13px}
body.modern-ui .farm-auth-input{border-color:#dfe9e1;border-radius:8px;background:#f9fcfa;height:35px;margin-bottom:8px}
body.modern-ui .farm-auth-input input{font-size:12px}
body.modern-ui .farm-auth-submit{background:#176fa9;border-radius:8px;font-size:13px;height:35px}
body.modern-ui .farm-auth-submit:hover{background:#125b8c}
body.modern-ui .farm-unit-login{background:#f8fbf9;border-color:#e2ebe4;border-radius:8px;font-size:10px;height:35px}
@media(min-width:1400px){body.modern-ui .shell .admin-dashboard .admin-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){body.modern-ui .shell .sales-money-grid,body.modern-ui .shell .financial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.modern-ui .shell .overview-cluster{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){body.modern-ui .shell .overview-cluster{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){body.modern-ui .shell .overview-cluster{grid-template-columns:1fr}}
@media(max-width:780px){body.modern-ui .shell .sidebar{box-shadow:15px 0 40px #142f3620}body.modern-ui .shell .main{width:100%;margin-left:0}body.modern-ui .shell .content{padding:15px 12px 24px}body.modern-ui .shell .topbar{padding:0 12px;height:51px}body.modern-ui .shell .page-head{align-items:flex-start}body.modern-ui .shell .page-head h1{font-size:20px}body.modern-ui .shell .admin-summary{grid-template-columns:repeat(2,minmax(0,1fr))}body.modern-ui .shell .summary-card{padding:11px;gap:9px}body.modern-ui .shell .sales-charts{grid-template-columns:1fr}}
@media(max-width:480px){body.modern-ui .shell .admin-summary,body.modern-ui .shell .retail-summary{grid-template-columns:1fr}body.modern-ui .shell .financial-grid{grid-template-columns:1fr}body.modern-ui .shell .sales-money-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.modern-ui .shell .sales-money-card{padding:11px 9px}body.modern-ui .shell .sales-money-card strong{font-size:16px}body.modern-ui .shell .sales-money-card>.money-icon{width:21px;height:21px;right:7px;top:9px;font-size:10px}body.modern-ui .shell .panel{padding:12px}}
@media(pointer:coarse){body.modern-ui .shell :is(.primary,.btn,.icon-btn,.danger-icon){min-height:36px}}
@media(prefers-reduced-motion:reduce){body.modern-ui *,body.modern-ui *::before{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
