/* Customer workspace: project first, shipment first, readable on site. */
:root{--blue:#245fca;--blue-dark:#1d55b5;--text:#182b43;--muted:#627187;--line:#e2e8ef;--green:#16754e;--red:#bd3542;--canvas:#f3f5f8}
body{background:var(--canvas);font-size:16px;line-height:1.55;font-variant-numeric:tabular-nums}button,input,select,textarea{font:inherit}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.hidden{display:none!important}
.login-screen{background:var(--canvas)}.login-shell{width:min(460px,100%)}.login-card{padding:32px;border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 18px #182b4307}.login-card h1{font-size:28px}.login-brand{margin-bottom:24px}.login-mark,.brand>span{background:var(--blue);border-radius:8px;box-shadow:none}.login-admin-hint{font-size:13px;line-height:1.8}.login-lead{font-size:14px}
.topbar{height:72px;background:white;backdrop-filter:none;padding:0 28px}.brand.compact strong{font-size:18px}.brand.compact small{font-size:12px}.portal-layout{grid-template-columns:224px minmax(0,1fr)}.sidebar{padding:24px 16px}.project-picker-label{font-size:13px;color:var(--muted);letter-spacing:0}.project-select{font-size:14px;border-radius:6px}.sidebar-cta{margin-top:14px}.sidebar nav{gap:4px;margin-top:24px}.nav-button{border-radius:6px;min-height:48px;padding:11px 14px}.nav-button>b{font-size:15px;color:inherit;margin:0}.nav-button>span{font-size:12px;font-weight:400;color:var(--muted);margin-top:3px}.nav-button.active{background:#edf3ff;box-shadow:inset 3px 0 var(--blue)}.more-nav-toggle{border-radius:6px;border-style:solid}.more-nav-toggle b{font-size:15px;color:var(--text)}.more-nav-toggle>span{font-size:12px;color:var(--muted);font-weight:400}.sidebar-help{border-radius:8px;background:#f7f9fc}.sidebar-help p{font-size:13px}.sidebar-help strong{font-size:14px}
.content{padding:30px clamp(20px,3vw,44px) 70px}.page-heading h1{font-size:28px;line-height:1.4;overflow-wrap:anywhere}.page-heading p{font-size:14px;line-height:1.7}.eyebrow{font-size:12px}.overview-hero{background:none;border:0;box-shadow:none;padding:0}.page-heading{align-items:center}.button{border-radius:6px;min-height:44px;font-size:14px;box-shadow:none!important}.button.primary:hover{background:#1d55b5}.button.secondary{border-color:#c6d2e0}.text-button,.link-button{font-size:14px}.panel{padding:22px;border-radius:10px;box-shadow:0 1px 3px #182b4304;background:white}.panel-heading h2{font-size:18px}.panel-heading p{font-size:14px}.todo-panel{background:#fff;border-color:var(--line)}.todo-item,.todo-empty{border-radius:8px;background:#f7f9fc}.todo-item p,.todo-empty p{font-size:14px}.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.stat-card{padding:18px;border-radius:8px;box-shadow:none}.stat-card span{font-size:14px}.stat-card strong{font-size:26px}.stat-card small{font-size:13px}.content-grid{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}
table{font-size:14px}th{font-size:14px;color:#53647a;font-weight:600;padding:13px 12px}td{padding:14px 12px}.status{font-size:13px;border-radius:5px}.order-card strong{font-size:16px}.order-card p{font-size:14px}.order-card{padding:16px 0 16px 16px;border-left:2px solid #d6e2f6;position:relative}.order-card::before{content:"";position:absolute;left:-5px;top:23px;width:8px;height:8px;border-radius:50%;background:#245fca}.order-card:last-child{border-left:2px solid #d6e2f6}.more-data-summary{font-size:14px}.record-card{border-radius:8px;box-shadow:none}.record-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))}
.create-steps{gap:8px}.create-step{border-radius:8px;padding:12px}.create-step strong{font-size:14px}.create-step small{font-size:12px}.form-grid label{font-size:14px}input,select,textarea{border-radius:6px;border-color:#c6d2e0;min-height:44px}.material-name strong{font-size:14px;color:var(--muted)}.material-name span{font-size:20px;font-weight:750;color:var(--text);margin-top:5px}.quantity-control{gap:6px}.quantity-control button{min-height:44px;min-width:58px;font-size:14px;border-radius:6px}.quantity-control input{width:104px!important;min-width:72px;font-size:18px!important;font-weight:700;text-align:center}.material-summary{border-radius:8px;box-shadow:none}.material-summary strong{font-size:24px}.material-summary span{font-size:14px}.form-actions{background:#fff;border:1px solid var(--line);border-radius:8px;padding:14px;position:sticky;bottom:14px;z-index:10;box-shadow:0 4px 24px #182b4310}
.shipment-summary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;border:1px solid var(--line);border-radius:8px;overflow:hidden;margin:20px 0}.shipment-summary>div{background:#f7f9fc;border:0!important;border-right:1px solid var(--line)!important;border-radius:0;padding:20px!important;display:flex;flex-direction:column;gap:10px}.shipment-summary>div:last-child{background:#edf3ff;border:0!important}.shipment-summary strong{font-size:27px;letter-spacing:-.035em;color:var(--text);overflow-wrap:anywhere}.shipment-summary span{font-size:14px;color:var(--muted);order:-1}.shipment-summary small{font-size:13px;font-weight:400;margin-left:5px}.shipment-model{font-size:20px!important;font-weight:750;display:block;color:#182b43!important;letter-spacing:.015em}.shipment-note{font-size:13px;color:var(--muted);line-height:1.7}.shipment-table th:not(:first-child),.shipment-table td:not(:first-child){text-align:right}.shipment-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #d3e0f7;background:#edf3ff;border-radius:8px;padding:18px;margin:20px 0}.shipment-cta strong{display:block;font-size:16px}.shipment-cta p{margin:4px 0 0;font-size:13px;color:var(--muted)}.shipment-cta .button{min-width:150px}.shipment-breakdown{margin:16px 0}.shipment-breakdown>summary{font-size:14px;font-weight:600;padding:12px 0;cursor:pointer}.dispatch-history{list-style:none;padding:0;margin:0}.dispatch-history li{padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.dispatch-history strong{font-size:14px;display:block}.dispatch-history small{font-size:13px;color:var(--muted)}
.dispatch-popup{width:min(880px,96vw);max-height:94dvh;margin:auto;padding:0;border:1px solid var(--line);border-radius:12px;color:var(--text);background:white;box-shadow:0 24px 70px #182b4333}.dispatch-popup::backdrop{background:#14243c66}.dispatch-popup form{display:flex;flex-direction:column;max-height:94dvh}.dispatch-popup .header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line);gap:20px;flex-shrink:0}.dispatch-popup h2{margin:0;font-size:22px}.dispatch-popup .header p{margin:4px 0 0;font-size:13px;color:var(--muted)}#dispatch-content{padding:0 24px 18px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.dispatch-popup label{display:grid;gap:6px;font-size:14px;margin:16px 0}.dispatch-popup input,.dispatch-popup textarea{font:inherit;max-width:100%;padding:10px;border:1px solid #c6d2e0;border-radius:6px}.dispatch-popup .table-wrap{border:1px solid var(--line);border-radius:8px;overflow:auto}.dispatch-popup th{white-space:normal}.dispatch-popup td{font-size:14px;vertical-align:middle}.dispatch-popup td small{font-size:13px;color:var(--muted);display:block;margin-top:4px}.dispatch-popup input[type=number]{width:112px;text-align:center;font-size:20px;font-weight:700;min-height:46px}.dispatch-popup .dispatch-quantity{display:flex;align-items:center;gap:8px;justify-content:flex-end}.dispatch-quantity button{min-width:42px;min-height:44px;border:1px solid #c6d2e0;border-radius:6px;background:#f7f9fc;color:var(--blue);font-size:20px}.dispatch-quantity button:disabled{opacity:.45;cursor:not-allowed}.dispatch-qty-note{text-align:right;font-size:12px;color:var(--muted);margin-top:6px}.dispatch-footer{border-top:1px solid var(--line);padding:16px 24px;background:#fff;flex-shrink:0;box-shadow:0 -4px 16px #182b4305}.dispatch-footer-main{display:flex;align-items:center;justify-content:space-between;gap:20px}#dispatch-weight{font-size:14px;margin:0;color:var(--muted)}#dispatch-weight strong{font-size:26px;color:var(--blue);margin:0 4px}#dispatch-error{color:var(--red);font-size:14px;margin:0 0 10px;white-space:pre-wrap}#dispatch-error:empty{display:none}.dispatch-popup .button.primary{min-width:154px}
.project-brief{margin-bottom:20px}.project-brief>p{font-size:13px;color:var(--muted);margin:8px 0}.project-brief .shipment-summary{margin:0}.modal-card{border-radius:12px;box-shadow:0 24px 70px #182b4320}.modal-card h2{font-size:22px}
@media(max-width:1100px){.shipment-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.shipment-summary>div:nth-child(-n+2){border-bottom:1px solid var(--line)!important}.shipment-summary strong{font-size:25px}.content-grid{grid-template-columns:1fr}.content{padding:24px}.portal-layout{grid-template-columns:204px minmax(0,1fr)}}
@media(max-width:800px){.portal-layout{display:block}.topbar{padding:0 16px;height:64px}.brand.compact strong{font-size:16px}.brand.compact small{font-size:12px}.topbar-actions{font-size:13px;gap:10px}.content{padding:20px 14px 110px}.page-heading h1{font-size:24px}.heading-actions{justify-content:flex-start}.page-heading{gap:16px}.sidebar{height:auto;position:static;padding:14px;border-right:0;border-bottom:1px solid var(--line);overflow:visible}.project-block{display:flex;gap:8px;align-items:center}.project-picker-label{white-space:nowrap;margin:0;font-size:13px}.project-select{min-width:0;flex:1}.sidebar-cta,.sidebar-help{display:none}.sidebar .main-nav{position:fixed;left:0;right:0;bottom:0;z-index:30;background:#fff;border-top:1px solid var(--line);padding:8px 6px max(8px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;margin:0;box-shadow:0 -3px 16px #182b4307}.main-nav>.nav-button,.more-nav-toggle{padding:8px 2px;min-height:48px;text-align:center;border:0;border-radius:6px}.main-nav>.nav-button>b,.more-nav-toggle>b{font-size:14px}.main-nav>.nav-button>span,.more-nav-toggle>span{font-size:12px;margin-top:3px}.main-nav .nav-button.active{box-shadow:none}.more-nav-menu{position:absolute;bottom:calc(100% + 8px);right:12px;left:auto;width:210px;border:1px solid var(--line);background:#fff;box-shadow:0 8px 32px #182b4320}.stats-grid{gap:8px}.stat-card{padding:13px}.stat-card strong{font-size:22px}.stat-card span{font-size:12px}.panel{padding:18px}.shipment-summary>div{padding:16px!important}.shipment-cta{padding:16px;flex-wrap:wrap}.shipment-cta .button{width:100%;min-height:48px}.shipment-card .panel-heading{align-items:flex-start}.form-actions{bottom:88px}.create-step small{display:none}.material-summary{position:static}.dispatch-popup{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.dispatch-popup form{height:100dvh;max-height:100dvh}.dispatch-popup .header{padding:16px}.dispatch-popup h2{font-size:20px}#dispatch-content{padding:0 16px 16px;flex:1}.dispatch-footer{padding:14px 16px max(14px,env(safe-area-inset-bottom))}.dispatch-footer-main{gap:10px}#dispatch-weight strong{font-size:24px}.dispatch-popup .button.primary{min-width:128px}.dispatch-popup .table-wrap{border:0;overflow:visible}.dispatch-popup table,.dispatch-popup tbody,.dispatch-popup tr,.dispatch-popup td{display:block;width:100%}.dispatch-popup thead{display:none}.dispatch-popup tr{padding:16px;margin-bottom:12px;border:1px solid var(--line);border-radius:8px;background:#f7f9fc}.dispatch-popup td{padding:0;border:0}.dispatch-popup td:nth-child(2){font-size:14px;color:var(--muted);margin:9px 0}.dispatch-popup td:nth-child(2)::before{content:'本项目最多可发：'}.dispatch-popup .dispatch-quantity{justify-content:stretch}.dispatch-popup input[type=number]{width:100%;flex:1;background:#fff}.dispatch-quantity button{min-width:50px}.dispatch-popup .shipment-model{font-size:22px!important}.dispatch-qty-note{text-align:left}#materials-table table,#materials-table tbody,#materials-table tr,#materials-table td{display:block;width:100%}#materials-table thead{display:none}#materials-table tr{padding:16px;border:1px solid var(--line);border-radius:8px;margin-bottom:12px;background:#f7f9fc}#materials-table td{border:0;padding:4px 0}#materials-table .material-name{display:flex;flex-direction:column}#materials-table .material-name span{order:-1;font-size:22px;margin:0 0 5px}#materials-table .quantity-control{display:flex;width:100%}#materials-table .quantity-control input{flex:1;width:100%!important;background:#fff}#materials-table .quantity-control button{min-width:72px}#materials-table .number.calc{text-align:left;font-size:14px;padding-top:8px}.quantity-cell{margin-top:8px}.material-heading{flex-wrap:wrap}.material-heading .search-input{width:100%}}
@media(max-width:380px){.dispatch-footer-main{flex-wrap:wrap}.dispatch-popup .button.primary{width:100%}.shipment-summary strong{font-size:23px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.materials-table .material-name span{font-size:20px;font-weight:750;color:var(--text)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
