:root{--bg-page: #f5f7fa;--bg-surface: #ffffff;--bg-sidebar: #102a43;--bg-table-head: #eaf1f8;--text-main: #102a43;--text-muted: #486581;--line: #d9e2ec;--primary: #0b5ed7;--primary-hover: #084298;--secondary: #e9f2ff;--secondary-text: #0b5ed7;--success-bg: #ecfdf3;--success-text: #15803d;--error-bg: #fef2f2;--error-text: #b91c1c;--warning-bg: #fff7ed;--warning-text: #9a3412;--radius: 12px;--shadow: 0 8px 30px rgba(16, 42, 67, .08)}*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Calibri,Tahoma,sans-serif;color:#4b2d16;background:radial-gradient(circle at 5% 0%,#fff1df 0%,transparent 32%),radial-gradient(circle at 95% 100%,#ffe6d5 0%,transparent 28%),#fff8f2}a{color:inherit}.appsheet-shell{min-height:100vh;display:grid;grid-template-rows:64px 1fr}.compact-list-shell{grid-template-rows:52px 1fr}.compact-list-shell .appsheet-topbar{padding:0 10px}.compact-list-shell .icon-btn{width:30px;height:30px;font-size:.95rem}.compact-list-shell .appsheet-content{overflow:hidden}.appsheet-topbar{position:sticky;top:0;z-index:25;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #f0ccb0;background:linear-gradient(100deg,#fffdfb,#fff1e4);box-shadow:0 8px 24px #78441214}.appsheet-left,.appsheet-right{display:flex;align-items:center;gap:10px}.sync-pill{display:inline-flex;align-items:center;gap:7px;min-width:88px;height:30px;padding:0 9px;border:1px solid #f0d7c1;border-radius:999px;background:#fffaf6;color:#7f5a3b}.sync-pill small{font-size:.74rem;letter-spacing:.2px}.sync-dot{width:8px;height:8px;border-radius:50%;background:#7dc58a}.sync-pill.syncing .sync-dot{background:#e2862f;box-shadow:0 0 #e2862f80;animation:sync-pulse 1.05s ease-out infinite}@keyframes sync-pulse{0%{box-shadow:0 0 #e2862f80}to{box-shadow:0 0 0 10px #e2862f00}}.appsheet-left strong{font-size:1.05rem;letter-spacing:.2px}.icon-btn{border:1px solid #f0d2bb;background:#fff;color:#9b4f12;width:34px;height:34px;border-radius:10px;cursor:pointer;font-size:1.05rem;transition:all .18s ease}.icon-btn:hover{background:#fff1e6;border-color:#e9b68a}.icon-btn:disabled{opacity:.55;cursor:not-allowed}.appsheet-content{overflow:auto}.side-drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:49;background:#00000040;border:0;padding:0;margin:0}.side-drawer{position:fixed;top:64px;left:-300px;width:280px;bottom:0;z-index:50;background:linear-gradient(180deg,#fffaf4,#fff3e7);border-right:1px solid #edd5c0;box-shadow:10px 0 24px #7a461329;transition:left .2s ease;overflow:auto}.compact-list-shell .side-drawer{top:52px}.side-drawer.open{left:0}.side-drawer-header{padding:12px 14px;font-size:.95rem;font-weight:700;color:#8a4515;border-bottom:1px solid #efdbc8}.side-drawer-section-btn{width:100%;border:0;background:#fff2e5;border-top:1px solid #efdbc8;border-bottom:1px solid #efdbc8;color:#9e4f15;font-weight:700;display:flex;justify-content:space-between;align-items:center;padding:9px 14px;cursor:pointer}.side-drawer-links{display:grid}.side-drawer-link{text-decoration:none;color:#9e4f15;background:#fff;padding:8px 14px;border-bottom:1px solid #f3e4d7;font-size:.9rem;display:flex;align-items:center;justify-content:space-between;gap:10px}.side-drawer-link.active{background:linear-gradient(90deg,#f08d31,#cf6718);color:#fff;font-weight:700}.side-drawer-link:hover{background:#fff}@media(min-width:1024px){.appsheet-shell.sidebar-open{grid-template-columns:250px minmax(0,1fr);grid-template-rows:64px 1fr}.appsheet-shell.sidebar-closed{grid-template-columns:1fr;grid-template-rows:64px 1fr}.appsheet-shell.sidebar-open .appsheet-topbar,.appsheet-shell.sidebar-open .appsheet-content{grid-column:2}.appsheet-shell.sidebar-closed .appsheet-topbar,.appsheet-shell.sidebar-closed .appsheet-content{grid-column:1}.side-drawer{top:0;left:0;width:250px;z-index:40}.appsheet-shell.sidebar-closed .side-drawer{left:-300px}.compact-list-shell .side-drawer{top:0}.side-drawer-backdrop{display:none}}.appsheet-page{padding:12px}.list-header{padding:12px 14px;border:1px solid #f1dcc8;border-radius:14px;background:#fff;box-shadow:0 8px 26px #6d3a0f12;font-weight:700}.menu-page-no-header{padding:0 6px 6px}.menu-page-no-header .list-section{margin-top:4px;border-radius:8px;box-shadow:0 4px 10px #6a3a100a}.menu-page-no-header .list-section h3{padding:4px 8px;font-size:.86rem;line-height:1.1}.menu-page-no-header .list-row{min-height:24px;padding:3px 8px;font-size:.8rem;line-height:1.12;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px}.menu-page-no-header .list-row-meta{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;min-width:34px;color:#7a4f2c;opacity:1;visibility:visible}.menu-page-no-header .chev{font-size:.8rem;color:#8a5f3f}.menu-page-no-header .list-row-count{min-width:12px;font-size:.74rem;color:#7a4f2c;font-weight:700;text-align:right}.list-section{margin-top:12px;border:1px solid #f0dcc8;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 10px 30px #6a3a100f}.list-section h3{margin:0;padding:12px 14px;color:#bf4c0f;font-size:1.4rem}.list-row{min-height:44px;padding:10px 14px;border-top:1px solid #f9e6d7;display:flex;justify-content:space-between;align-items:center;text-decoration:none;transition:background .2s ease}.list-row:hover{background:#fff5ec}.list-row-meta{display:inline-flex;align-items:center;gap:18px}.list-row-count{min-width:14px;text-align:right;color:#7a4f2c;font-weight:600}.table-row-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.chev{font-size:1.2rem;color:#8a5f3f}.page{margin:12px;display:grid;gap:14px;padding-bottom:16px;position:relative}.page h2{margin:0;color:#7f3c0f;text-transform:uppercase;letter-spacing:.4px}.page>h2,.page>.view-header>h2,.page>.card>.table-toolbar h3,.page>.alert+.card>.table-toolbar h3{display:none}.page>.card>.table-toolbar,.page>.alert+.card>.table-toolbar{margin-top:0;margin-bottom:12px;justify-content:flex-start;flex-wrap:nowrap}.page>.card>.table-toolbar .table-toolbar-actions,.page>.alert+.card>.table-toolbar .table-toolbar-actions{margin-left:0;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.card{background:#fff;border:1px solid #f0dbc6;border-radius:14px;padding:14px;box-shadow:0 14px 34px #75401214}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}label{display:grid;gap:6px;font-size:.9rem;color:#8a5528;font-weight:600}.line-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:8px}.full-width{grid-column:1 / -1}.input{width:100%;border:1px solid #efccab;border-radius:10px;padding:9px 10px;background:#fff;color:#633510;transition:all .16s ease}.input:focus{outline:none;border-color:#e2872c;box-shadow:0 0 0 3px #db7b1d29}.btn{border:1px solid transparent;border-radius:10px;padding:8px 12px;cursor:pointer;font-weight:600;transition:all .18s ease}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:linear-gradient(110deg,#ea8628,#c95e14);color:#fff}.btn-primary:hover{filter:brightness(1.06)}.btn-secondary{background:#fff1e4;border-color:#efc49e;color:#ad5814}.btn-neutral{background:#fff8f1;border-color:#efdbc5;color:#8b5627}.btn-icon{width:40px;min-width:40px;height:40px;padding:0;display:inline-grid;place-items:center;font-size:1rem;line-height:1;border-color:#e8b78e;background:linear-gradient(180deg,#fff4ea,#ffe6d1);box-shadow:0 6px 14px #b05c161f}.table-link-btn{border:none;background:transparent;color:#b95a12;font:inherit;font-weight:700;cursor:pointer;padding:0;text-decoration:underline}.table-link-btn:hover{color:#8f4107}.inline-detail-row td{background:#fff9f4}.inline-detail-wrap{padding:0}.inline-detail-table{width:100%;border-collapse:collapse;background:#fffdfb}.inline-detail-table th,.inline-detail-table td{border:1px solid #f0d6bc}.table-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:nowrap}.table-toolbar h3{margin:0}.table-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.orders-filter-toolbar{flex-wrap:nowrap;justify-content:flex-start}.orders-filter-actions{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;margin-left:0}.orders-filter-row{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.orders-filter-row .input{min-width:150px}.dispatch-header-grid{grid-template-columns:minmax(220px,320px) minmax(280px,520px);column-gap:28px;align-items:end}@media(max-width:700px){.dispatch-header-grid{grid-template-columns:1fr;row-gap:14px}}@media(min-width:960px){.orders-filter-row{flex-wrap:nowrap}}.table-wrap,.inventory-table-wrap{overflow:auto;border-radius:10px;border:1px solid #f0dbc6;width:100%}table,.inventory-table{width:100%;border-collapse:collapse;background:#fff}th{text-align:left;background:#fff2e6;color:#8a4515;padding:9px 10px;border:1px solid #efc8a6;font-size:.86rem;font-weight:700;text-transform:uppercase;letter-spacing:.45px}td{padding:9px 10px;border:1px solid #f0d6bc;color:#633611;vertical-align:middle}tr:hover td{background:#fff7f0}.group-heading-row td{background:#fff4e8;border-top:2px solid #efc8a6;font-weight:700;color:#8a4515}.group-heading-content{display:flex;align-items:center;justify-content:space-between;gap:10px}.item-strong{color:#c04f14;font-weight:700;white-space:nowrap}.pager{display:flex;justify-content:flex-end;align-items:center;gap:8px}.alert{border-radius:10px;border:1px solid;padding:10px 12px}.alert-error{background:#fff3ea;border-color:#f2c9a8;color:#b45309}.alert-success{background:#fff8ec;border-color:#f3d59b;color:#9a5a12}.kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.kpi{background:linear-gradient(130deg,#fff,#fff5eb);border:1px solid #f0ddca;border-radius:12px;padding:10px}.kpi span{color:#996741;font-size:.8rem}.kpi strong{display:block;margin-top:4px;color:#8a4212}.formula-box{border:1px dashed #efc39a;background:#fff5ea;border-radius:10px;padding:8px 10px;color:#8d4e1b}.bale-entry-table{border:1px solid #f0dbc6;border-radius:12px;overflow:hidden;background:#fffdfb}.bale-entry-head,.bale-entry-row{display:grid;grid-template-columns:1.35fr 1.35fr 1.2fr 140px;align-items:center}.bale-entry-head{background:#fff2e6;color:#8a4515;font-size:.84rem;font-weight:700;letter-spacing:.4px}.bale-entry-head>div,.bale-entry-cell{padding:10px 12px;border-right:1px solid #efc8a6}.bale-entry-head>div:last-child,.bale-entry-cell:last-child{border-right:none}.bale-entry-row{border-top:1px solid #f0d6bc}.bale-entry-number{font-weight:700;color:#b95a12}.bale-entry-cell .input,.bale-entry-cell .btn{width:100%}.bale-total-box{min-height:40px;display:flex;align-items:center;justify-content:center;font-weight:700}.toolbar{display:flex;gap:10px;align-items:center}.state-msg{margin:10px 0;padding:9px 11px;border-radius:10px;border:1px solid #f0dbc8;background:#fff}.state-msg.error{border-color:#f1c9a7;background:#fff4ea;color:#b45309}.bottom-add-bar{position:absolute;right:0;top:0;z-index:40}.bottom-add-bar .btn,.fab-btn{min-width:104px;border-radius:999px;box-shadow:0 18px 34px #b05c1652}.bottom-add-bar .btn{border:2px solid #fff7ef;padding:10px 18px;font-size:.98rem;letter-spacing:.3px}.view-header-actions .btn-primary,.bottom-add-bar .btn-primary{min-width:92px;padding:10px 18px;border:2px solid #fff7ef;box-shadow:0 18px 34px #b05c1652;opacity:1}.view-header-actions .btn-primary{margin-left:auto;flex:0 0 auto}.fab-btn{display:grid;place-items:center;text-decoration:none;width:54px;height:54px;min-width:54px;color:#fff;font-size:2rem;background:linear-gradient(120deg,#ef8e2e,#cb6517)}.inventory-toolbar{margin:6px 0 10px}.view-header{display:flex;justify-content:flex-start;align-items:center;gap:10px;flex-wrap:wrap}.view-header-actions{display:flex;gap:8px;align-items:center;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;flex:1;min-width:0}.view-header-actions .input{min-width:160px}.master-file-input-hidden{display:none}.form-modal{position:fixed;top:64px;left:0;right:0;bottom:0;transform:none;width:auto;overflow:auto;z-index:45;border:0;border-radius:0;box-shadow:none;padding:22px 0 96px;background:linear-gradient(180deg,#fff4ebeb,#fffcf9fa 16%,#fff)}.form-modal.form-grid{display:block}.form-modal label{width:min(520px,calc(100vw - 44px));margin:0 auto 18px;color:#8b5828;font-size:.83rem;font-weight:500}.form-modal .input{min-height:40px;border-radius:4px;border:1px solid #e9c7a7;box-shadow:none}.form-modal .input:focus{border-color:#e2872c;box-shadow:inset 0 0 0 1px #e2872c}.form-modal .full-width{width:min(820px,calc(100vw - 44px));margin:0 auto 18px}.form-modal .line-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.form-modal .toolbar{position:static;width:min(820px,calc(100vw - 44px));margin:30px auto 0;justify-content:center;gap:28px;padding:16px 24px;background:#fff;border-top:1px solid #f0d8c0;box-shadow:0 8px 18px #7a46130d}.form-modal .toolbar .btn{min-width:132px;border-radius:6px}.form-modal h3{margin:0 0 12px;color:#8a4515}.assign-form-sheet .toolbar{justify-content:space-around}.assign-toolbar{margin-bottom:10px}.assign-last-update{margin-top:10px;color:#8a5528;font-size:.82rem;text-align:right}.row-actions{display:flex;gap:8px;flex-wrap:nowrap;align-items:center}.row-actions .btn-icon{width:34px;min-width:34px;height:34px;font-size:.92rem;background:linear-gradient(180deg,#fff1e2,#ffd9b9);border-color:#e6b183}.page-inline-heading{display:none}.excel-file-icon,.pdf-file-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:18px;height:22px;border-radius:3px;font-size:.52rem;font-weight:800;line-height:1;color:#fff}.excel-file-icon:before,.pdf-file-icon:before{content:"";position:absolute;top:0;right:0;width:7px;height:7px;clip-path:polygon(0 0,100% 0,100% 100%)}.excel-file-icon{background:linear-gradient(180deg,#1f9d55,#0d7a43)}.excel-file-icon:before{background:#8bd3a8}.pdf-file-icon{background:linear-gradient(180deg,#f1603a,#da3f23)}.pdf-file-icon:before{background:#ffc1b2}.icon-download{font-size:.9rem;line-height:1}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:grid;place-items:center;background:#43230c61;padding:20px}.middle-spinner-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:70;display:grid;place-items:center;background:#fff8f2a3}.middle-spinner-card{min-width:164px;display:grid;justify-items:center;gap:10px;padding:16px 20px;border:1px solid #f0dbc6;border-radius:14px;background:#fff;color:#8b5627;font-weight:700;box-shadow:0 18px 36px #7540122e}.middle-spinner{width:34px;height:34px;border-radius:50%;border:3px solid #f2d2b6;border-top-color:#d06c1a;animation:middle-spinner-rotate .8s linear infinite}@keyframes middle-spinner-rotate{to{transform:rotate(360deg)}}.cancel-modal{width:min(460px,calc(100vw - 32px));padding:22px;border-radius:18px;box-shadow:0 22px 46px #4a260a33}.cancel-modal h3{margin:0 0 14px;color:#8a4515;text-transform:uppercase}.cancel-modal-text{margin-bottom:14px;color:#7c4b21;font-weight:600}.cancel-modal label{margin:0 0 14px}.cancel-modal-actions{justify-content:center;margin-top:10px}.action-note{font-size:.78rem;color:#a3652d}@media(max-width:1024px){.form-grid,.line-grid,.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.menu-page-no-header{padding:0 4px 4px}.menu-page-no-header .list-section{margin-top:3px;border-radius:7px}.menu-page-no-header .list-section h3{padding:3px 6px;font-size:.82rem}.menu-page-no-header .list-row{min-height:22px;padding:2px 6px;font-size:.76rem;column-gap:6px}.menu-page-no-header .list-row-meta{min-width:30px;gap:3px}.menu-page-no-header .list-row-count{font-size:.7rem}.menu-page-no-header .chev{font-size:.74rem}.form-grid,.line-grid,.kpi-grid{grid-template-columns:1fr}.table-toolbar{flex-direction:column;align-items:stretch}.table-title-wrap{justify-content:space-between}.table-toolbar-actions{width:100%;flex-wrap:wrap;overflow-x:visible}.group-heading-content{flex-wrap:wrap}.table-toolbar-actions .input{flex:1}.orders-filter-actions,.orders-filter-row,.page>h2+.card>.table-toolbar,.page>.alert+.card>.table-toolbar{flex-wrap:wrap;overflow-x:visible}.page>h2+.card>.table-toolbar,.page>.alert+.card>.table-toolbar{margin-top:0;margin-bottom:12px}.form-modal .line-grid{grid-template-columns:1fr}.bale-entry-head{display:none}.bale-entry-row{grid-template-columns:1fr}.bale-entry-cell{border-right:none;border-top:1px solid #f0d6bc}.bale-entry-row .bale-entry-cell:first-child{border-top:none}}
