*{box-sizing:border-box;margin:0;padding:0}html,body{width:100%;height:100%;overflow-x:hidden}#root{width:100%;min-height:100vh}body{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;background:#f0f2f5;color:#1a1a1a;-webkit-tap-highlight-color:transparent;font-size:14px}a{text-decoration:none;color:inherit}button{font-family:inherit;cursor:pointer;border:none;transition:all .15s ease}input,select,textarea{font-family:inherit;font-size:14px;border:1.5px solid #e0e3e6;border-radius:8px;padding:10px 12px;width:100%;background:#fff;transition:border-color .15s,box-shadow .15s}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 10px}.sheet-top{animation:sheetSlideDown .22s ease-out}@keyframes sheetSlideDown{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes modalIn{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@media (min-width: 769px){.modal-overlay{padding-left:210px;box-sizing:border-box;display:flex;justify-content:center}.form-card{width:calc(100vw - 234px)!important;max-width:calc(100vw - 234px)!important;margin:36px auto 24px!important;padding:20px 24px!important;border-radius:14px!important}.form-grid{grid-template-columns:repeat(3,180px);gap:10px 48px;max-width:720px;margin:0 auto;justify-content:center}.form-grid>div{min-width:0}.form-grid input[type=text],.form-grid input[type=tel],.form-grid input[type=number],.form-grid input[type=date],.form-grid select{width:100%;max-width:180px}.form-grid textarea{width:100%;max-width:100%;box-sizing:border-box}}.query-modal{display:flex;flex-direction:column;max-height:calc(100dvh - 80px)}.query-body{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}.query-footer{flex-shrink:0}.query-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.query-grid>div{min-width:0}.query-grid .q-full{grid-column:1 / -1}.query-grid .q-range{display:flex;gap:4px;align-items:center}.query-grid .q-range input{flex:1;min-width:0}.q-kw{grid-column:1 / -1}@media (min-width: 769px){.query-modal{max-height:calc(100dvh - 60px)}.query-grid{grid-template-columns:repeat(4,minmax(0,180px));gap:10px 32px;max-width:896px;width:100%;margin:0 auto}.q-kw{grid-column:span var(--kw-span, 1)}.query-grid input,.query-grid select{width:100%;max-width:180px;box-sizing:border-box}.query-grid .q-full input,.query-grid .q-full select,.query-grid .q-kw input{max-width:100%}.query-grid .q-range input{max-width:none}}.q-more-title{font-size:12.5px;font-weight:700;color:#1b5e20;border-bottom:1px dashed #c8e6c9;padding-bottom:4px;margin:14px auto 0;max-width:100%}@media (min-width: 769px){.q-more-title{max-width:896px}}@media (max-width: 768px){.query-grid input,.query-grid select{font-size:15px!important}}input[type=date]::-webkit-calendar-picker-indicator{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;padding:0}input[type=date]::-webkit-clear-button{display:none}input:focus,select:focus,textarea:focus{outline:none;border-color:#43a047;box-shadow:0 0 0 3px rgba(67,160,71,.15)}table{width:100%;border-collapse:collapse;font-size:13px}th,td{border:1px solid #e8eaed;padding:8px 10px;text-align:left}th{background:linear-gradient(135deg,#e8f5e9,#f1f8e9);color:#1b5e20;font-weight:600;border-bottom:2px solid #c8e6c9}.table-box{display:flex;flex-direction:column;min-height:0}.table-scroll{overflow-y:auto;overscroll-behavior:contain}.table-scroll thead th{position:sticky;top:0;z-index:2}@media (min-width: 769px){body.table-page .main-content{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}body.table-page .main-content>div{display:flex;flex-direction:column;flex:1 1 0;min-height:0}body.table-page .page-header{flex:0 0 auto;display:flex}body.table-page .main-content div:has(.table-box){display:flex;flex-direction:column;flex:1 1 0;min-height:0}body.table-page .table-box,body.table-page .table-scroll{flex:1 1 0;min-height:0}body.table-page td:has(.btn-edit){white-space:nowrap}body.table-page .ph-add-btn{display:none!important}}.sort-th:hover{background:linear-gradient(135deg,#dcedc8,#e8f5e9)}tbody tr:nth-child(odd){background:#fafbfc}tbody tr:nth-child(2n){background:#fff}tbody tr:hover{background:#e3f2fd!important}tr.row-return td{color:#c62828!important}.sum-row td{background:#e8f5e9!important;font-weight:700;color:#1b5e20;border-top:2px solid #66bb6a}.sum-row:hover td{background:#e8f5e9!important}tr.sum-row{position:sticky;bottom:0;z-index:1}@media print{tr.sum-row{position:static}}.app-layout{display:flex;width:100%;min-height:100vh}.sidebar{background:linear-gradient(180deg,#1b5e20,#2e7d32);color:#fff;display:flex;flex-direction:column}.sidebar-header{padding:18px 16px;display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.12)}.logo{font-size:24px}.app-title{font-size:16px;font-weight:600;white-space:nowrap}.sidebar-nav{flex:1;padding:6px 0;overflow-y:auto}.nav-group-title{padding:8px 16px 3px;font-size:11.5px;color:rgba(255,255,255,.5);font-weight:600;letter-spacing:.5px}.nav-item{display:flex;align-items:center;gap:12px;padding:8px 16px;color:rgba(255,255,255,.78);transition:all .2s;font-size:14px;border-left:3px solid transparent}.nav-item:hover{background:rgba(255,255,255,.1);color:#fff}.nav-item.active{background:rgba(255,255,255,.15);color:#fff;border-left:3px solid #a5d6a7;font-weight:600}.nav-icon{font-size:18px}.nav-label{white-space:nowrap}.sidebar-footer{padding:12px 16px;border-top:1px solid rgba(255,255,255,.12);font-size:13px}.desktop-sidebar{width:210px;flex-shrink:0;position:sticky;top:0;height:100vh;z-index:50}.main-content{flex:1;min-width:0;min-height:100vh;min-height:100dvh}.menu-toggle{display:none}@media (min-width: 769px){body{font-size:15px}table{font-size:13.5px}th,td{padding:6px 10px}input,select,textarea{font-size:14px;padding:10px 12px}button{font-size:14px}.page-header{padding:10px 18px!important;display:flex}.page-header span{font-size:18px!important}}.mobile-sidebar{display:none;position:fixed;top:0;left:0;bottom:0;width:240px;z-index:200;transform:translate(-100%);transition:transform .3s}.mobile-sidebar.open{transform:translate(0)}.sidebar-overlay{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);z-index:150}.close-btn{display:none}.mobile-only{display:none!important}@media (max-width: 768px){.desktop-sidebar{display:none}.desktop-only{display:none!important}.mobile-only{display:inline-block!important}.mobile-sidebar{display:flex;width:220px}.sidebar-overlay{display:block}.close-btn{display:block;margin-left:auto;background:none;color:#fff;font-size:20px}.main-content{flex:1;min-width:0;width:100%;min-height:auto!important}.menu-toggle{display:block;position:fixed;top:10px;left:10px;z-index:100;background:#2e7d32;color:#fff;width:38px;height:38px;border-radius:8px;font-size:18px;box-shadow:0 2px 8px rgba(0,0,0,.2)}.sidebar-header{padding:12px 14px}.app-title{font-size:15px}.nav-item{padding:9px 14px;font-size:13.5px;gap:10px}.nav-icon{font-size:16px}.sidebar-nav{padding:4px 0}.page-header{padding:6px 8px 6px 50px!important;display:flex;flex-wrap:wrap;gap:6px}.page-header span{font-size:15px!important}.menu-toggle{width:34px!important;height:34px!important;font-size:16px!important;top:6px!important;left:8px!important}.page-header button{padding:6px 12px!important;font-size:13px!important}.page-content{padding-top:0!important}.table-scroll{-webkit-overflow-scrolling:touch;max-height:calc(100dvh - 100px)!important}.page-with-summary .table-scroll{max-height:calc(100dvh - 160px)!important}tr.sum-row{position:static!important}.table-scroll:after{content:"";display:block;height:calc(76px + env(safe-area-inset-bottom,0px));min-height:1px}table{font-size:12px}th,td{padding:4px 7px;white-space:nowrap}.toolbar{flex-wrap:nowrap}input,select,textarea{font-size:14px;padding:8px 10px}.form-sheet{padding:14px!important}.form-grid>div{min-width:0}.mobile-sort-bar{display:flex!important;margin-bottom:4px!important}.mobile-sort-bar select{padding:4px 8px!important;font-size:12.5px!important}.mobile-sort-bar button{padding:4px 10px!important;font-size:12.5px!important}.main-content>div>div{padding:6px 8px!important}.toolbar{flex-wrap:nowrap!important;gap:5px!important;margin-bottom:4px!important;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.toolbar::-webkit-scrollbar{display:none}.toolbar>button,.toolbar>div>button{padding:5px 6px!important;font-size:12px!important;white-space:nowrap}.tab-row{margin-bottom:4px!important;gap:6px!important}.tab-row button{padding:5px 18px!important;font-size:12.5px!important}.summary-cards{gap:6px!important;margin-bottom:8px!important}.summary-cards>div{flex:1 1 0!important;min-width:0!important;padding:6px 10px!important}.summary-cards>div>div:last-child{font-size:15px!important}.summary-cards>div>div:first-child{font-size:12px!important}.tb-add-btn{display:none!important}.modal-overlay{padding:0!important}.form-card{max-width:100%!important;width:100%!important;margin:0!important;border-radius:0!important;min-height:100vh;min-height:100dvh;padding:12px 14px!important;box-shadow:none!important}.form-grid input[type=text],.form-grid input[type=tel],.form-grid input[type=number],.form-grid input[type=date],.form-grid input[type=password],.form-grid select,.form-grid textarea{font-size:15px!important;padding:9px 10px!important}.form-card h3{font-size:16px!important}.form-card>div:last-child{gap:8px!important}.form-card>div:last-child>button{flex:1;max-width:none!important;padding:10px 16px!important}}@media (max-width: 360px){.nav-item{padding:8px 12px;font-size:13px}}.home-card:active{transform:scale(.96);box-shadow:0 1px 2px rgba(0,0,0,.12)!important}.home-card{transition:transform .15s ease,box-shadow .2s ease,border-color .2s ease}@media (hover: hover){.home-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(27,94,32,.16)!important;border-color:#a5d6a7!important}}@media (min-width: 769px){.sidebar-nav .nav-item{margin:2px 8px;border-radius:8px;border-left:3px solid transparent}.sidebar-nav .nav-item.active{border-left-color:#a5d6a7}}@media (min-width: 769px){.home-grid{grid-template-columns:repeat(5,1fr)!important;gap:10px!important}.home-grid>*{padding:14px 10px!important;min-height:78px}.home-grid .icon,.home-grid>*>span:first-child{font-size:26px!important}.home-grid>*>span:last-child{font-size:13.5px!important;margin-top:8px!important}.home-header{padding:14px 20px!important}.home-header>div>div:first-child{font-size:18px!important}.home-header>div>div:nth-child(2){font-size:13px!important}}.print-preview{position:fixed;top:0;right:0;bottom:0;left:0;z-index:500;background:#525659;display:flex;flex-direction:column}.pp-toolbar{flex:0 0 auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 14px;background:linear-gradient(135deg,#2e7d32,#43a047);color:#fff;font-size:13px;box-shadow:0 2px 10px rgba(0,0,0,.25)}.pp-toolbar .pp-t{font-weight:700}.pp-toolbar .pp-g{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.14);padding:3px 8px;border-radius:8px}.pp-toolbar button{border:none;background:rgba(255,255,255,.2);color:#fff;border-radius:6px;padding:5px 9px;font-size:13px;cursor:pointer}.pp-toolbar button:hover{background:rgba(255,255,255,.34)}.pp-toolbar button.on{background:#fff;color:#1b5e20;font-weight:700}.pp-toolbar .pp-sp{flex:1 1 auto}.pp-toolbar button.pp-pri{background:#ffb300;color:#3e2723;font-weight:700}.pp-body{flex:1 1 auto;display:flex;min-height:0}.pp-side{flex:0 0 246px;overflow-y:auto;background:#f6f7f6;border-right:1px solid #dde3dd;padding:10px 12px 28px;font-size:12.5px;color:#333}.pp-side .pp-sec{margin:0 0 10px;padding:0 0 10px;border-bottom:1px dashed #dde3dd}.pp-side .pp-sec:last-child{border-bottom:none}.pp-side .pp-h{font-size:12px;font-weight:700;color:#1b5e20;margin:0 0 6px}.pp-side .pp-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:5px 0}.pp-side .pp-in{width:58px;padding:3px 6px;border:1px solid #cfd8cf;border-radius:6px;font-size:12px;text-align:center;background:#fff}.pp-side select.pp-in{width:100%;text-align:left}.pp-side input[type=checkbox]{width:auto}.pp-side .pp-btns{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0}.pp-side .pp-btn{background:#fff;border:1px solid #cfd8cf;border-radius:6px;padding:4px 8px;font-size:12px;color:#1b5e20;cursor:pointer}.pp-side .pp-btn:hover{border-color:#2e7d32}.pp-side .pp-btn.on{background:#2e7d32;border-color:#2e7d32;color:#fff;font-weight:700}.pp-side .pp-tip{color:#8c928c;font-size:11.5px;line-height:1.65;margin-top:4px}.pp-scroll{flex:1 1 auto;overflow:auto;padding:16px 12px 40px;display:flex;flex-direction:column;align-items:center;gap:16px;background:#e9ebe8}.pp-measure{position:absolute;left:-99999px;top:0;visibility:hidden}.pd-page{background:#fff;color:#000;box-shadow:0 5px 20px rgba(0,0,0,.28);box-sizing:border-box;display:flex;flex-direction:column;font-family:Microsoft YaHei,SimSun,sans-serif}.pd-page.pd-vcen{justify-content:center}.pd-content{width:100%}.pd-title{text-align:center;font-weight:800;font-size:1.75em;letter-spacing:2px;margin:0 0 .55em}.pd-hd,.pd-ft{font-size:1.04em;color:#333;margin:0 0 .5em}.pd-ft{margin:.5em 0 0}.pd-cond-row{font-size:1.04em;line-height:1.8;color:#111;text-align:left}.pd-cond{text-align:left}.pd-table{margin-top:.4em}.pd-table table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.96em}.pd-table th,.pd-table td{border:1px solid #666;padding:.35em .3em;background:#fff;color:#000;text-align:center;vertical-align:middle;white-space:normal;word-break:break-word;overflow-wrap:anywhere}.pd-table th{background:#e0e0e0;border-color:#333;font-weight:700}.pd-table td.num,.pd-table td.numeric{text-align:right}.pd-table .p-amt{font-weight:700}.pd-table .print-sub{border-left:2px solid #000;font-weight:700}.pd-table tfoot td,.pd-table tr.sum-row td{background:#e8f5e9;font-weight:700}.pd-table tr.sum-row td{border-top:2px solid #333}.pd-table tr.row-return td{color:#c62828}.pd-nogrid th,.pd-nogrid td{border-color:transparent}.pd-nogrid thead th{border-bottom:1px solid #333}.pd-tail{margin-top:auto}.pd-foot{display:flex;justify-content:space-between;gap:.8em;font-size:1.04em}.pd-sign{white-space:nowrap}.pd-pageno{margin-top:.6em;text-align:center;font-size:.9em;color:#555}@media print{@page{margin:12mm 10mm}.no-print,.sidebar,.menu-toggle,.toolbar,.mobile-sort-bar,.modal-overlay,.form-card,.page-header{display:none!important}body.printing-preview{background:#fff!important}body.printing-preview .app-layout,body.printing-preview .toast{display:none!important}body.printing-preview .print-preview{position:static!important;inset:auto!important;background:#fff!important;display:block!important;padding:0!important}body.printing-preview .pp-toolbar,body.printing-preview .pp-side,body.printing-preview .pp-measure{display:none!important}body.printing-preview .pp-body,body.printing-preview .pp-scroll{display:block!important;overflow:visible!important;padding:0!important;margin:0!important;gap:0!important;background:#fff!important}body.printing-preview .pd-page{display:block!important;width:auto!important;height:auto!important;max-height:none!important;min-height:0!important;padding:0!important;margin:0!important;box-shadow:none!important;break-after:page;page-break-after:always}body.printing-preview .pd-page:last-child{break-after:auto;page-break-after:auto}body.printing-preview .pd-content{width:100%!important}body.printing-preview .pd-tail{margin-top:0!important}body.printing-preview .pd-table table{border-collapse:collapse!important}body.printing-preview .pd-table th{background:#e0e0e0!important;border-color:#333!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}body.printing-preview .pd-table tfoot td,body.printing-preview .pd-table tr.sum-row td{background:#e8f5e9!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}body.printing-preview .pd-nogrid th,body.printing-preview .pd-nogrid td{border-color:transparent!important}body.printing-preview .pd-nogrid thead th{border-bottom:1px solid #333!important}body.printing-preview .pd-table tr{page-break-inside:avoid;break-inside:avoid}body.printing-preview .pd-table thead{display:table-header-group}body.printing-preview .pd-table tr.row-return td{color:#c62828!important}body.printing-preview .pd-foot{page-break-inside:avoid;break-inside:avoid}}.ba-project-select{min-width:140px;padding:4px 8px}.ba-header td{background:#e8f5e9;font-weight:700;color:#2e7d32;font-size:14px}.ba-subtotal td{background:#f0f0f0;font-weight:700;color:#c62828}.ba-result td{background:#fff8e1;font-weight:700;font-size:15px}.ba-result td:nth-child(4){color:#c62828}.btn-edit{background:none;border:1px solid #e3f2fd;color:#1565c0;font-size:13px;padding:3px 10px;border-radius:5px;margin-right:6px;transition:all .15s}.btn-edit:hover{background:#e3f2fd;border-color:#90caf9}.btn-copy{background:none;border:1px solid #f3e5f5;color:#7b1fa2;font-size:13px;padding:3px 10px;border-radius:5px;margin-right:6px;transition:all .15s}.btn-copy:hover{background:#f3e5f5;border-color:#ce93d8}.btn-del{background:none;border:1px solid #fce4ec;color:#c62828;font-size:13px;padding:3px 10px;border-radius:5px;transition:all .15s}.btn-del:hover{background:#fce4ec;border-color:#ef9a9a}
