.mobile-cell-label{display:none}.monthly-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.monthly-actions{padding:3px 6px!important;white-space:nowrap}.monthly-actions button{height:25px;padding:2px 7px;margin-right:5px;font-size:12px}.delete-button{color:#a15555}.delete-button:hover{background:#fff1f1;border-color:#d9b9b9}.grid.monthly-sheet-grid{min-width:660px}.grid.monthly-grid{min-width:1120px}.filter-fields input[type=date]{width:135px}
@media(max-width:640px){
 .delivery-grid tr:not(.mobile-visible){display:none}.sheet-fields{order:1}.total-row{order:2;position:sticky;top:49px;z-index:10;margin-bottom:9px;background:#f7f9fc}#sheet-scroll{order:3}
 html,body{height:100%;overflow:hidden}.workspace{height:100dvh;min-height:0}.sidebar{position:fixed;bottom:0;left:0;width:100%;height:calc(59px + env(safe-area-inset-bottom));padding:0 8px env(safe-area-inset-bottom);border-right:0;border-top:1px solid #dce3ed;background:#fff;z-index:30}.sidebar .brand,.sidebar-foot{display:none}.sidebar nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;height:58px;align-items:center}.nav-item{display:flex;flex-direction:column;justify-content:center;gap:3px;height:50px;font-size:12px;padding:4px;color:#7e8999}.nav-item.active{background:#eef3fc}.nav-icon{font-size:19px}
 .main{height:calc(100dvh - 59px - env(safe-area-inset-bottom));padding:0 12px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}.page-header{position:sticky;top:0;background:#fff;z-index:20;height:49px}.page-header h1{font-size:18px}#content{flex:none;min-height:0;padding-top:10px;padding-bottom:10px}#statusbar{font-size:11px;min-height:28px;padding-bottom:8px}.grid-container{flex:none;min-height:0;overflow-x:auto;overflow-y:visible}
 button{touch-action:manipulation;min-height:32px}input,select{font-size:16px;min-height:36px}.toolbar{gap:6px;margin-bottom:12px}.toolbar button{height:35px;padding:5px 9px;font-size:13px}.toolbar .spacer{display:none}.toolbar .separator{display:none}.sheet-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px}.sheet-fields label{display:flex;flex-direction:column;gap:4px;align-items:stretch;font-size:12px}.sheet-fields label:first-child,.sheet-fields label:nth-child(2){grid-column:1/-1}.sheet-fields .sheet-name,.sheet-fields input[type=date],.sheet-fields .default-field{width:100%;height:36px;font-size:16px}
 .grid.delivery-grid,.grid.monthly-grid,.grid.monthly-sheet-grid{display:block;width:100%;min-width:0}.delivery-grid colgroup,.delivery-grid thead,.monthly-grid colgroup,.monthly-grid thead,.monthly-sheet-grid colgroup,.monthly-sheet-grid thead{display:none}.delivery-grid tbody,.monthly-grid tbody,.monthly-sheet-grid tbody{display:block}.delivery-grid tr,.monthly-grid tr,.monthly-sheet-grid tr{display:grid;margin-bottom:9px;padding:10px;border:1px solid #dce3ed;border-radius:4px;background:#fff;gap:7px}.grid.delivery-grid td,.grid.monthly-grid td,.grid.monthly-sheet-grid td{height:auto;min-width:0;border:0;background:transparent;overflow:hidden}.grid.delivery-grid td:focus-within{box-shadow:none}.grid.delivery-grid tr.selected{border-color:#b5c8e6}.grid.delivery-grid input{height:36px;padding:5px 7px;border:1px solid #dce3ed;border-radius:3px;background:#fff;font-size:16px}.grid.delivery-grid input:focus{border:1px solid #285cb7}.delivery-grid .mobile-cell-label{display:block;font-size:11px;color:#7f8da1;line-height:17px;margin-bottom:2px}.delivery-grid td:nth-child(5) .mobile-cell-label{display:none}.delivery-grid tr{grid-template-columns:27px repeat(2,minmax(0,1fr))}.delivery-grid td:nth-child(1){grid-column:1;grid-row:1;position:static;align-self:center}.delivery-grid td:nth-child(1) button{font-size:12px}.delivery-grid td:nth-child(2){display:none}.delivery-grid td:nth-child(5){grid-column:2/-1;grid-row:1}.delivery-grid td:nth-child(6){grid-column:2;grid-row:2}.delivery-grid td:nth-child(7){grid-column:3;grid-row:2}.delivery-grid td:nth-child(8){grid-column:2;grid-row:3}.delivery-grid td:nth-child(9){grid-column:3;grid-row:3}.delivery-grid td:nth-child(3){grid-column:2;grid-row:4}.delivery-grid td:nth-child(4){grid-column:3;grid-row:4}.delivery-grid td:nth-child(10){grid-column:2/-1;grid-row:5;text-align:right;font-size:15px;color:#34465f}.delivery-grid .row-spec,.delivery-grid .row-unit{font-size:12px;color:#8b97a6;padding:1px 0}.delivery-grid .row-spec:not(:empty)::before{content:'规格 ';color:#a0a9b7}.delivery-grid .row-unit:not(:empty)::before{content:'单位 ';color:#a0a9b7}.delivery-grid .row-amount:not(:empty)::before{content:'金额  ';font-size:12px;color:#8b97a6}.total-row{border-top:1px solid #d4dbe5;margin-top:0;gap:8px;padding:8px;font-size:12px}.total-row strong{font-size:16px}
 .monthly-toolbar{display:block}.monthly-toolbar .filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin-bottom:9px}.monthly-toolbar .filter-fields label{gap:5px;font-size:12px;min-width:0}.monthly-toolbar input[type=month],.monthly-toolbar input[type=date]{flex:1;width:100%;min-width:0;height:36px;font-size:14px}.monthly-toolbar .filter-fields select{width:100%;min-width:0;max-width:none;height:36px;font-size:13px}.monthly-toolbar #monthly-search{grid-column:1/-1;width:100%;height:36px;font-size:16px}.monthly-toolbar #clear-monthly-day{grid-column:1/-1;justify-self:start;height:30px;min-height:30px}.monthly-tools{gap:7px;justify-content:flex-end}.monthly-tools button{height:33px;font-size:12px;padding:5px 8px}.summary-line{gap:6px 15px;margin-bottom:12px;font-size:12px}.summary-line .sum-amount{font-size:18px}.monthly-basis{margin-left:0;width:100%;font-size:11px}.monthly-charts{grid-template-columns:1fr;grid-template-rows:none;height:auto}.monthly-chart{height:210px;padding:12px 10px;border-left:0;border-bottom:1px solid #e4e9f1}.monthly-chart:last-child{border-bottom:0}.monthly-chart h2{font-size:13px}.monthly-chart h2 span{font-size:11px}.daily-cost-chart text{font-size:12px}.ranked-cost-row{font-size:12px;grid-template-columns:minmax(105px,1fr) minmax(45px,.9fr) 44px}.ranked-cost-value{font-size:11px}.ranked-cost-chart{gap:9px}.ranked-cost-chart.eight-bars{gap:5px}
 .monthly-sheet-grid tr,.monthly-grid tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.monthly-sheet-grid td:first-child,.monthly-grid td:first-child{display:none}.monthly-sheet-grid td:nth-child(2){grid-column:1/-1;grid-row:1;color:#8c98a8;font-size:12px;padding:0}.monthly-sheet-grid td:nth-child(3){grid-column:1/-1;grid-row:2;padding:0}.grid.monthly-sheet-grid .cell-link{height:auto;min-height:32px;padding:3px 0;font-size:16px;white-space:normal;overflow-wrap:anywhere}.monthly-sheet-grid td:nth-child(4){grid-column:1;grid-row:3;text-align:left;padding:0;color:#8390a2;font-size:12px}.monthly-sheet-grid td:nth-child(4)::after{content:' 行商品'}.monthly-sheet-grid td:nth-child(5){grid-column:2;grid-row:3;padding:0;font-size:16px;color:#285cb7}.monthly-sheet-grid td:nth-child(5)::before{content:'¥ ';font-size:12px}.monthly-sheet-grid td:nth-child(6){grid-column:1/-1;grid-row:4;display:flex;justify-content:flex-end;padding:0!important;gap:7px}.monthly-actions button{height:33px;font-size:13px;padding:4px 11px;margin:0}
 .monthly-grid .text-cell{padding:0;font-size:13px}.monthly-grid td:nth-child(2){grid-column:1/-1;grid-row:1;color:#8c98a8;font-size:12px}.monthly-grid td:nth-child(3){grid-column:1;grid-row:2}.monthly-grid td:nth-child(4){grid-column:2;grid-row:2}.monthly-grid td:nth-child(5){grid-column:1/-1;grid-row:3;font-size:16px;white-space:normal;overflow-wrap:anywhere}.grid.monthly-grid .cell-link{height:auto;min-height:32px;font-size:16px;padding:0;white-space:normal;overflow-wrap:anywhere}.monthly-grid td:nth-child(6){grid-column:1;grid-row:4;color:#8d99a9;font-size:12px}.monthly-grid td:nth-child(7){grid-column:2;grid-row:4;color:#8d99a9;font-size:12px}.monthly-grid td:nth-child(8){grid-column:1;grid-row:5;text-align:left}.monthly-grid td:nth-child(9){grid-column:2;grid-row:5}.monthly-grid td:nth-child(10){grid-column:1/-1;grid-row:6;text-align:right;color:#285cb7;font-size:16px}.monthly-grid td:nth-child(11){grid-column:1/-1;grid-row:7;text-align:right;padding:0!important}.monthly-grid td:nth-child(3)::before,.monthly-grid td:nth-child(4)::before,.monthly-grid td:nth-child(8)::before,.monthly-grid td:nth-child(9)::before,.monthly-grid td:nth-child(10)::before{content:attr(data-label)' ';font-size:11px;color:#8d99a9}.monthly-grid tr:has(.empty),.monthly-sheet-grid tr:has(.empty){display:block;padding:5px}.monthly-grid .empty,.monthly-sheet-grid .empty{display:block!important;font-size:13px}
 .grid.product-grid{width:100%;min-width:0;table-layout:fixed}.product-grid colgroup{display:none}.product-grid th:first-child,.product-grid td:first-child{display:none}.product-grid th:nth-child(2){width:44%}.product-grid th:nth-child(3){width:22%}.product-grid th:nth-child(4){width:10%}.product-grid th:nth-child(5){width:24%}.product-grid th{font-size:11px;padding:3px}.product-grid .column-filter-button{font-size:11px;height:auto;min-height:35px;padding:3px;gap:2px;white-space:normal}.product-grid .column-filter-button svg{width:10px}.product-grid td{font-size:13px}.grid.product-grid .cell-link{font-size:14px;white-space:normal;height:auto;min-height:43px;padding:7px 5px;line-height:1.4}.product-grid .text-cell{padding:5px}.product-grid .numeric{font-size:14px}.grid.monthly-summary-grid{width:100%;min-width:0}.monthly-summary-grid th{white-space:normal}.monthly-summary-grid .text-cell{padding:5px;font-size:12px}.monthly-summary-grid .row-number{width:28px}.pager{margin-bottom:4px;min-height:40px}.pager button{min-height:32px}
 dialog{max-height:calc(100dvh - 24px)}.dialog-body{max-height:calc(100dvh - 180px)}.dialog-header{padding:12px}.dialog-header h2{font-size:16px}.dialog-footer{padding:10px 12px}.dialog-footer button{height:36px;font-size:14px}.dialog-search{font-size:16px;height:38px}.close-button{min-width:32px;min-height:32px}.dialog-body input,.dialog-body select{font-size:16px;min-height:36px}#product-history-dialog .dialog-body{max-height:calc(100dvh - 135px)}.history-record-table{font-size:11px}.history-record-table th:first-child{width:90px}.history-record-table th:nth-child(2){width:55px}.file-table th,.file-table td{padding:6px 4px}.file-table td:nth-child(2){white-space:normal;overflow-wrap:anywhere}.suggestion-header,.suggestion{font-size:13px;padding:8px 7px;line-height:1.5}.suggestion-header{font-size:11px}.suggestion{min-height:41px}.chart-tooltip strong{font-size:17px}#toast{bottom:calc(76px + env(safe-area-inset-bottom));font-size:13px}
}

.overview-switch{display:flex;gap:6px;margin-bottom:10px}.overview-mode{min-width:100px}.overview-mode.active{background:#285cb7;color:#fff;border-color:#285cb7}.quick-day-buttons{display:flex;gap:5px}.quick-day-buttons button{font-size:12px;padding:4px 9px}
@media(max-width:640px){.overview-switch{gap:7px}.overview-mode{flex:1;height:36px;font-size:14px}.monthly-toolbar .overview-day-field,.monthly-toolbar .quick-day-buttons{grid-column:1/-1}.quick-day-buttons button{flex:1;height:33px}.monthly-toolbar .overview-day-field input{max-width:none;font-size:16px}}

.delete-button{color:#b64c4c}.monthly-actions{white-space:nowrap}.monthly-actions button+button{margin-left:5px}#ledger-edit-dialog{width:min(620px,calc(100vw - 28px));max-height:88dvh}#ledger-edit-dialog .dialog-body{max-height:73dvh;overflow:auto}.ledger-edit-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ledger-edit-fields label{display:grid;gap:6px;font-size:12px;color:#748198}.ledger-edit-fields label:nth-child(4){grid-column:1/-1}.ledger-edit-fields input{width:100%;min-width:0}.ledger-edit-note{font-size:12px;color:#8491a3;margin:14px 0}.ledger-edit-footer{display:flex;align-items:center;gap:8px;margin-top:16px}.ledger-edit-footer span{margin-right:auto;font-size:12px;color:#748198}.ledger-edit-footer strong{color:#285cb7;font-size:15px;margin-left:6px}.product-note{white-space:normal}
@media(max-width:640px){#ledger-edit-dialog{width:calc(100vw - 20px);max-height:90dvh}#ledger-edit-dialog .dialog-body{padding:12px;max-height:75dvh}.ledger-edit-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.ledger-edit-fields label:first-child,.ledger-edit-fields label:nth-child(4){grid-column:1/-1}.ledger-edit-fields input{font-size:16px;height:40px}.ledger-edit-footer{flex-wrap:wrap}.ledger-edit-footer span{width:100%;margin-bottom:6px}.ledger-edit-footer button{flex:1}.history-summary #edit-product-detail{margin-left:0}.history-summary #change-product-availability{margin-left:auto}.monthly-actions button+button{margin-left:0}#catalog-status{height:36px;max-width:100%}}

.manage-locations-button{font-size:12px;height:29px;color:#285cb7}#location-directory-dialog{width:min(660px,calc(100vw - 28px));max-height:88dvh}#location-directory-dialog .dialog-body{max-height:74dvh;overflow:auto}.location-tabs{display:flex;gap:7px;margin-bottom:13px}.location-form{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;padding:12px;border:1px solid #dce3ed;background:#f8faff;margin-bottom:12px}.location-form>span{width:100%;font-size:12px;color:#53647e}.location-form label{display:grid;gap:5px;font-size:12px;color:#7b889a}.location-form input{width:170px}.location-form select{max-width:170px}.location-filter{display:flex;gap:7px;margin:11px 0;flex-wrap:wrap}.location-filter input{flex:1;min-width:120px}.location-filter select{max-width:170px}.location-table{width:100%;border-collapse:collapse;font-size:13px}.location-table th,.location-table td{border:1px solid #e0e5ed;padding:6px 10px;text-align:left}.location-table th{font-size:12px;background:#f0f3f7;color:#6b7b91;font-weight:500}.location-table th:last-child{width:105px}.location-table button{height:26px;font-size:12px}.location-table .cell-link{border:0;padding:0;background:none;color:#285cb7;text-align:left;white-space:normal;height:auto}.location-note{font-size:12px;color:#8390a2;line-height:1.7;margin-top:12px}.location-table-wrap{overflow:auto}.location-table .empty{text-align:center;color:#99a3b3}
@media(max-width:640px){.manage-locations-button{grid-column:1/-1;width:100%;height:36px}#location-directory-dialog{width:calc(100vw - 20px);max-height:90dvh}#location-directory-dialog .dialog-body{padding:12px;max-height:77dvh}.location-tabs button{flex:1;height:36px}.location-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.location-form>span{grid-column:1/-1}.location-form label{min-width:0}.location-form input,.location-form select{width:100%;max-width:none;font-size:16px;height:39px}.location-form button{height:36px}.location-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.location-filter select{width:100%;max-width:none;height:36px}.location-filter input{min-width:0;width:100%;font-size:16px;height:39px}.location-table th,.location-table td{padding:7px 5px;font-size:12px}.location-table th:last-child{width:87px}.location-table button{height:33px;font-size:12px}}
