      :root {
        --navy: #021024;
        --brand: #052659;
        --accent: #548383;
        --mid: #7DA0CA;
        --pale: #C1E8FF;
      }
      * { box-sizing: border-box; }
      body { margin: 0; min-height: 100vh; background: #f7fafc; color: var(--navy); font: 13px system-ui; }
      header { display: flex; gap: 25px; align-items: center; padding: 10px 18px; background: var(--brand); color: var(--pale); }
      .brand-link { color: white; font-size: 16px; font-weight: 700; text-decoration: none; }
      header nav { flex: 1; }
      nav a { margin-right: 14px; color: var(--pale); text-decoration: none; }
      nav a:hover { color: white; }
      nav a.active { color: white; border-bottom: 2px solid var(--cyan); }
      .logout-form { display: flex; gap: 10px; align-items: center; margin: 0; }
      .logout-form button { background: var(--mid); }
      main { padding: 12px; }
      .card { margin-bottom: 10px; padding: 12px; border: 1px solid #dbe5ec; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(2,16,36,.05); }
      .table-wrap { overflow: auto; max-height: 72vh; }
      table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 12px; }
      th { position: sticky; top: 0; z-index: 1; background: var(--brand); color: #fff; }
      th, td { padding: 5px 7px; border: 1px solid #d9e3e9; text-align: left; vertical-align: top; }
      tbody tr:nth-child(even) { background: #f5f9fc; }
      tbody tr:hover { background: var(--pale); }
      button, .btn { padding: 5px 9px; border: 0; border-radius: 4px; background: var(--brand); color: var(--pale); text-decoration: none; }
      button:hover, .btn:hover { background: var(--accent); }
      input, select { padding: 5px; border: 1px solid var(--mid); border-radius: 4px; background: white; color: var(--navy); }
      .login-shell { min-height: calc(100vh - 24px); display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 7vw; max-width: 980px; margin: auto; padding: 7vh 24px; }
      .login-brand .company { color: var(--accent); font-size: 18px; letter-spacing: .08em; }
      .login-brand h1 { margin: 16px 0 10px; color: var(--brand); font-size: clamp(40px, 6vw, 72px); line-height: 1.05; }
      .login-brand h1 span { color: var(--mid); }
      .login-brand p { color: var(--accent); font-size: 16px; }
      .login-card { display: grid; gap: 18px; padding: 32px; border: 1px solid #d9e4ec; border-radius: 12px; background: white; box-shadow: 0 20px 50px rgba(2,16,36,.12); }
      .login-card h2 { margin: 0 0 4px; color: var(--brand); font-size: 22px; }
      .login-card label { display: grid; gap: 7px; font-weight: 600; }
      .login-card input { width: 100%; padding: 11px 12px; }
      .login-card button { padding: 11px; font-size: 15px; }
      .home-hero { padding: 24px; background: linear-gradient(120deg, var(--brand), var(--navy)); color: white; }
      .home-hero h1 { margin: 6px 0; font-size: 30px; }
      .home-hero .eyebrow { color: var(--pale); }
      .home-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 12px; }
      .home-entry { display: grid; gap: 8px; min-height: 115px; padding: 20px; border: 1px solid #d9e4ec; border-radius: 9px; background: white; color: var(--navy); text-decoration: none; }
      .home-entry:hover { border-color: var(--mid); box-shadow: 0 8px 24px rgba(5,38,89,.12); }
      .home-entry strong { color: var(--brand); font-size: 18px; }
      .home-entry span { color: var(--accent); }
      @media (max-width: 720px) { .login-shell { grid-template-columns: 1fr; } header { flex-wrap: wrap; } header nav { order: 3; width: 100%; } }
      .filters { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
      .demand-board { display:flex; align-items:stretch; margin:-2px 0 10px; border:1px solid #d8e4eb; background:#fff; }
      .board-title { padding:7px 10px; background:var(--navy); color:#fff; font-weight:700; }
      .board-metric { min-width:84px; padding:5px 9px; border-right:3px solid var(--mid); }
      .board-metric b { margin-left:7px; color:var(--brand); font-size:15px; }
      .toolbar { display:flex; gap:7px; margin:8px 0; }
      .modal { display:none; position:fixed; inset:0; z-index:30; padding:5vh 15px; overflow:auto; background:rgba(2,16,36,.58); }
      .modal:target { display:block; }
      .modal-box { max-width:820px; margin:auto; padding:18px; background:#fff; border-top:5px solid var(--accent); }
      .form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
      .form-grid label { display:grid; gap:4px; }
      .pager { position:fixed;z-index:30;right:50%;bottom:10px;display:flex;align-items:center;justify-content:center;gap:12px;min-height:38px;margin:0;padding:5px 12px;border:1px solid #d7e2e9;border-radius:10px;background:#fff;box-shadow:0 5px 18px #02102424;transform:translateX(50%); }
      .muted { color: var(--accent); }
      .thumb { max-width: 72px; max-height: 52px; cursor: zoom-in; }
      .lightbox { display: none; position: fixed; inset: 0; z-index: 20; place-items: center; background: var(--navy); }
      .lightbox:target { display: grid; }
      .lightbox img { max-width: 92vw; max-height: 88vh; }
      .lightbox-close { position: absolute; inset: 0; }
      .toast { position: fixed; left: 50%; top: 18%; z-index: 100; transform: translateX(-50%); padding: 12px 18px; border-radius: 8px; background: #ecfdf3; color: #166534; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
      .toast.error { background: #fef2f2; color: #b91c1c; }
      .status-chip { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #ecfdf3; color: #166534; }
      .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
      textarea { padding: 5px; border: 1px solid var(--mid); border-radius: 4px; }
      button:disabled { opacity: .55; cursor: wait; }
      button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--mid); outline-offset: 2px; }
      /* 客户需求页沿用旧版布局，仅映射为产品主题色。 */
      .page-demand{background:#f5f7fa;color:#1d2939}.page-demand header{position:sticky;top:0;z-index:20;padding:12px 24px;background:#fff;color:var(--navy);border-bottom:1px solid #dce5eb;box-shadow:0 1px 3px #0210240d}.page-demand .brand-link{color:var(--brand)}.page-demand nav a{display:inline-block;margin:0 2px;padding:8px 12px;border-radius:9px;color:#475467}.page-demand nav a:hover{background:#c1e8ff99;color:var(--brand);font-weight:700}.page-demand .logout-form{color:#475467}.page-demand main{max-width:1960px;margin:16px auto;padding:0 18px}.page-demand .demand-shell{padding:16px;overflow:visible;border-radius:14px;border-color:#e4eaf0}.page-demand .demand-shell h2{margin:0 0 12px;color:var(--brand);font-size:20px}
      .page-demand .demand-board{display:block;margin:0 0 12px;padding:5px;border:1px solid #d9e4eb;border-radius:12px;overflow:auto}.page-demand .demand-board-row{display:flex;align-items:stretch;min-width:900px;background:#fff}.page-demand .demand-board-row+.demand-board-row{border-top:1px solid #dfe7ed}.page-demand .board-title{display:flex;align-items:center;min-width:88px;padding:5px 9px;background:var(--navy);color:#fff;font-size:12px;font-weight:800}.page-demand .board-metric{display:flex;flex:1;align-items:center;justify-content:space-between;gap:8px;min-width:100px;padding:5px 10px;border:0;border-top:3px solid var(--mid);color:#344054;background:#fff;font-size:12px;font-weight:600}.page-demand .board-metric b{margin:0;color:var(--brand);font-size:17px}.page-demand .board-metric.deep{border-color:var(--brand)}.page-demand .board-metric.accent{border-color:var(--accent)}.page-demand .board-metric.mid{border-color:var(--mid)}.page-demand .board-metric.pale{border-color:var(--pale)}
      .page-demand .board-metric.danger{border-color:#ef4444}.page-demand .board-metric.warning{border-color:#f59e0b}.page-demand .board-metric.success{border-color:#22c55e}
      .page-demand .filter-card{margin-bottom:14px;padding:14px;border-radius:14px;background:#fff}.page-demand .filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(240px,2fr) auto auto;gap:12px;align-items:end}.page-demand .filters label{display:grid;gap:5px;color:#667085;font-size:12px}.page-demand .filters input,.page-demand .filters select{height:42px;padding:8px 10px;border-color:#cbd8e2;border-radius:8px}.page-demand button,.page-demand .btn{display:inline-flex;align-items:center;justify-content:center;min-width:78px;padding:9px 14px;border-radius:8px;background:var(--brand);color:#fff;cursor:pointer}.page-demand button:hover,.page-demand .btn:hover{background:var(--accent)}.page-demand .btn-secondary{background:var(--accent)}.page-demand .btn-muted{background:var(--mid);color:var(--navy)}.page-demand .demand-toolbar{justify-content:flex-start;margin:10px 0 12px;padding-left:2px}
      .page-demand .demand-table-wrap{max-height:72vh;padding:0;border:1px solid #dbe4eb;border-radius:12px;overflow:auto}.page-demand .demand-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto;white-space:nowrap}.page-demand .demand-table th{top:0;z-index:3;padding:8px 9px;border-width:0 1px 1px 0;background:#f4f8fb;color:#344054;font-size:12px}.page-demand .demand-table td{padding:6px 8px;border-width:0 1px 1px 0;vertical-align:middle;font-size:clamp(10px,.72vw,13px)}.page-demand .demand-table tbody tr{height:58px}.page-demand .demand-table tbody tr:nth-child(odd) td{background:#fff}.page-demand .demand-table tbody tr:nth-child(even) td{background:#c1e8ff40}.page-demand .demand-table tbody tr:hover td{background:#7da0ca33}.page-demand .combo{min-width:170px;white-space:normal}.page-demand .combo-primary{display:flex;align-items:center;gap:8px;font-weight:700;color:#1d2939}.page-demand .blue-square{width:11px;height:11px;flex:0 0 auto;border-radius:3px;background:var(--brand);box-shadow:0 3px 8px #05265947}.page-demand .cell-line{height:1px;margin:6px 0;background:#e9eef3}.page-demand .opcol{position:sticky;right:0;z-index:4;min-width:72px;background:#fff!important;box-shadow:-6px 0 10px #02102412}.page-demand th.opcol{z-index:5;background:#f4f8fb!important}
      .page-demand .status-pill,.page-demand .order-chip{display:inline-flex;align-items:center;border-radius:999px;padding:4px 10px;white-space:nowrap;font-size:12px;font-weight:700}.page-demand .status-pill{background:#c1e8ff99;color:var(--brand)}.page-demand .status-pill.communicating{background:#7da0ca38}.page-demand .status-pill.withdrawn{background:#edf0f2;color:#667085}.page-demand .order-chip{border:1px solid var(--mid);background:#f5fbff;color:var(--brand)}.page-demand button.order-chip{min-width:auto;padding:4px 10px}.page-demand .thumb{width:54px;height:42px;object-fit:cover;border:1px solid #cbd8e2;border-radius:6px}.page-demand .lightbox{background:#021024db}.page-demand .lightbox img{border-radius:14px;box-shadow:0 24px 70px #0008}
      .page-demand .modal{display:none;align-items:center;justify-content:center;padding:24px;background:#021024a3}.page-demand .modal:target{display:flex}.page-demand .modal-box{width:100%;max-width:860px;max-height:90vh;margin:0;padding:20px;overflow:auto;border:1px solid #dfe8ee;border-top:5px solid var(--accent);border-radius:16px;box-shadow:0 24px 64px #0210244d}.page-demand .modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.page-demand .modal-head h3{margin:0;color:var(--brand);font-size:18px}.page-demand .demand-form{gap:14px}.page-demand .demand-form input,.page-demand .demand-form select,.page-demand .demand-form textarea{width:100%;margin-top:5px;padding:9px;border-radius:8px}.page-demand .form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;padding-top:14px;border-top:1px solid #e9eef3}.page-demand .toast{top:50%;transform:translate(-50%,-50%);padding:14px 22px;border:1px solid #abefc6;border-radius:14px;font-size:16px;font-weight:700}.page-demand .toast.error{border-color:#fecdca}@media(max-width:900px){.page-demand main{padding:0 10px}.page-demand .filters{grid-template-columns:1fr 1fr}.page-demand .form-grid{grid-template-columns:1fr}.page-demand .form-actions{grid-column:1}.page-demand header{padding:10px 12px}}
.page-demand .order-modal-box { max-width: 560px; }.page-demand #order-form>label{display:grid;gap:10px}.page-demand #order-form>label select{margin-top:0}
.profit-margin.negative{color:#d92d20}
.page-orders .demand-project-lines .combo-primary,.page-supplier-orders .demand-project-lines .combo-primary,.page-billing .demand-project-lines .combo-primary{font-size:calc(1em + 1px);font-weight:700;color:#1d2939}
.page-demand .demand-table th:nth-child(5){width:200px}.page-demand .demand-table th:nth-child(13){width:120px}.page-demand .inline-note{width:110px!important}
/* 旧版其余页面统一视觉基线，颜色映射到产品五色主题。 */
.page-dashboard,.page-orders,.page-supplier-orders,.page-supplier-costs,.page-billing,.page-catalog,.page-people{background:#f5f7fa;color:#1d2939}
.page-dashboard header,.page-orders header,.page-supplier-orders header,.page-supplier-costs header,.page-billing header,.page-catalog header,.page-people header{position:sticky;top:0;z-index:20;padding:12px 24px;background:#fff;color:var(--navy);border-bottom:1px solid #dce5eb;box-shadow:0 1px 3px #0210240d}
.page-dashboard .brand-link,.page-orders .brand-link,.page-supplier-orders .brand-link,.page-supplier-costs .brand-link,.page-billing .brand-link,.page-catalog .brand-link,.page-people .brand-link{color:var(--brand)}
.page-dashboard nav a,.page-orders nav a,.page-supplier-orders nav a,.page-supplier-costs nav a,.page-billing nav a,.page-catalog nav a,.page-people nav a{display:inline-block;margin:0 2px;padding:8px 12px;border-radius:9px;color:#475467}
.page-dashboard nav a:hover,.page-orders nav a:hover,.page-supplier-orders nav a:hover,.page-supplier-costs nav a:hover,.page-billing nav a:hover,.page-catalog nav a:hover,.page-people nav a:hover{background:#c1e8ff99;color:var(--brand)}
.page-dashboard nav a.active,.page-orders nav a.active,.page-supplier-orders nav a.active,.page-supplier-costs nav a.active,.page-billing nav a.active,.page-catalog nav a.active,.page-people nav a.active,.page-demand nav a.active{background:#c1e8ff;color:var(--brand);font-weight:700;border-bottom:2px solid var(--accent)}
.page-dashboard main,.page-orders main,.page-supplier-orders main,.page-supplier-costs main,.page-billing main,.page-catalog main,.page-people main{max-width:1960px;margin:16px auto;padding:0 18px}
.dash-hero{padding:24px;border:0;border-radius:16px;background:linear-gradient(135deg,var(--navy),var(--brand));color:#fff;box-shadow:0 20px 45px #05265926}.dash-hero h1{margin:7px 0;font-size:30px}.dash-hero p{margin:0;color:var(--pale)}.dash-grid{display:grid;grid-template-columns:repeat(6,minmax(150px,1fr));gap:12px;margin-bottom:16px}.dash-kpi{padding:16px;border:1px solid #dfe7ed;border-left:5px solid var(--mid);border-radius:14px;background:#fff;box-shadow:0 5px 18px #0210240a}.dash-kpi small,.dash-kpi span{display:block;color:#667085}.dash-kpi strong{display:block;margin:7px 0;color:var(--brand);font-size:27px}.dash-kpi.deep{border-left-color:var(--navy)}.dash-kpi.blue{border-left-color:var(--brand)}.dash-kpi.accent{border-left-color:var(--accent)}.dash-kpi.mid{border-left-color:var(--mid)}.dash-kpi.pale{border-left-color:var(--pale)}.dash-kpi.green{border-left-color:#2f786f}.dashboard-split{display:grid;grid-template-columns:1.35fr .65fr;gap:16px}.dashboard-panel,.todo-card{padding:18px;border-radius:16px}.panel-head h2,.todo-card h2{margin:4px 0 16px;color:var(--brand)}.home-entry{border-radius:12px}.home-entry b{color:var(--brand)}.todo-card{border-left:5px solid var(--accent)}.progress-list{display:grid;gap:8px}.progress-list div{display:flex;justify-content:space-between;padding:12px;border-bottom:1px solid #e8edf1}.progress-list b{color:var(--brand);font-size:18px}
.list-head{padding:16px;border-radius:14px}.list-head h2{margin:0 0 12px;color:var(--brand);font-size:20px}.filter-card{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(240px,2fr) auto auto;gap:12px;align-items:end;margin:0;padding:14px;border:1px solid #e3e9ee;border-radius:14px}.filter-card label{display:grid;gap:5px;color:#667085;font-size:12px}.filter-card input,.filter-card select{height:42px;padding:8px 10px;border-color:#cbd8e2;border-radius:8px}.section-toolbar{align-items:center;margin:10px 0 12px}.orders-shell{border-left:4px solid var(--accent)}.billing-shell{border-left:4px solid var(--mid)}.catalog-shell{border-left:4px solid var(--brand)}.people-shell{border-left:4px solid var(--navy)}
.orders-table-wrap,.billing-table-wrap,.master-table-wrap{max-height:72vh;padding:0;border:1px solid #dbe4eb;border-radius:12px;overflow:auto}.orders-table,.billing-table,.master-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto;white-space:nowrap}.orders-table th,.billing-table th,.master-table th{top:0;z-index:3;padding:8px 9px;border-width:0 1px 1px 0;background:#f4f8fb;color:#344054}.orders-table td,.billing-table td,.master-table td{padding:7px 8px;border-width:0 1px 1px 0;vertical-align:middle}.orders-table tbody tr,.billing-table tbody tr,.master-table tbody tr{height:52px}.orders-table tbody tr:nth-child(odd) td,.billing-table tbody tr:nth-child(odd) td,.master-table tbody tr:nth-child(odd) td{background:#fff}.orders-table tbody tr:nth-child(even) td{background:#54838314}.billing-table tbody tr:nth-child(even) td{background:#7da0ca20}.master-table tbody tr:nth-child(even) td{background:#c1e8ff40}.orders-table tbody tr:hover td,.billing-table tbody tr:hover td,.master-table tbody tr:hover td{background:#7da0ca33}.state-chip,.operation-chip{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;white-space:nowrap;font-size:12px;font-weight:700}.state-pending{background:#c1e8ff;color:var(--brand)}.state-producing{background:#7da0ca55;color:var(--brand)}.state-delivered{background:#54838333;color:#285f5f}.state-disabled{background:#edf0f2;color:#667085}.operation-chip{border:1px solid var(--mid);background:#fff;color:var(--brand)}.page-catalog .opcol{position:sticky;right:0;z-index:4;background:#fff!important;box-shadow:-6px 0 10px #02102412}.page-catalog th.opcol{z-index:5;background:#f4f8fb!important}.edit-link{font-weight:700;color:var(--brand)}
.orders-table{min-width:1440px;table-layout:fixed;font-size:11px}.orders-table th,.orders-table td{padding:6px 6px;overflow:hidden;text-overflow:ellipsis}.orders-table .product-cell{min-width:0}.orders-table th:nth-child(1){width:140px}.orders-table th:nth-child(2){width:82px}.orders-table th:nth-child(3){width:72px}.orders-table th:nth-child(4){width:90px}.orders-table th:nth-child(5){width:64px}.orders-table th:nth-child(6){width:145px}.orders-table th:nth-child(7),.orders-table th:nth-child(8){width:55px}.orders-table th:nth-child(9){width:64px}.orders-table th:nth-child(10),.orders-table th:nth-child(11){width:48px}.orders-table th:nth-child(12){width:180px}.orders-table th:nth-child(13){width:92px}.orders-table th:nth-child(14){width:62px}.orders-table th:nth-child(15){width:118px}.orders-table th:nth-child(16){width:62px}.orders-table th:nth-child(17){width:76px}.orders-table th:nth-child(18){width:72px}.orders-table td:nth-child(12),.orders-table td:nth-child(15){white-space:normal}.orders-table .thumb{width:46px;height:36px}
@media(max-width:1100px){.dash-grid{grid-template-columns:repeat(3,1fr)}.dashboard-split{grid-template-columns:1fr}.filter-card{grid-template-columns:1fr 1fr}}@media(max-width:720px){.dash-grid{grid-template-columns:1fr 1fr}.filter-card{grid-template-columns:1fr}.page-dashboard main,.page-orders main,.page-supplier-orders main,.page-supplier-costs main,.page-billing main,.page-catalog main,.page-people main{padding:0 10px}}
.page-catalog .modal:target,.page-people .modal:target{display:block}.page-catalog .modal-box,.page-people .modal-box{border-radius:16px;box-shadow:0 24px 64px #0210244d}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.form-actions{grid-column:1/-1;display:flex;gap:8px;padding-top:12px}.form-grid input,.form-grid select,.form-grid textarea{width:100%}.form-grid select[multiple]{min-height:110px}.check{display:flex!important;align-items:center;gap:8px}.check input{width:auto}.section-toolbar{flex-wrap:wrap}
.product-cell,.date-time-cell{display:grid;gap:2px;white-space:nowrap}.product-cell{min-width:96px}.product-cell strong{overflow:hidden;text-overflow:ellipsis;color:#1d2939}.product-cell small,.date-time-cell small{color:#667085;font-size:10px;line-height:1.25}.measurement-cell{white-space:nowrap}.measurement-cell small{margin-left:2px;color:#667085;font-size:9px}.inline-note{width:92px;min-height:38px;padding:4px;resize:vertical;font-size:10px}.inline-design-status{width:62px;min-width:62px;padding:4px 16px 4px 6px;border:0;border-radius:6px;font-size:10px;font-weight:700}.status-select-pending{background:#fee2e2;color:#b42318}.status-select-designing{background:#fef3c7;color:#b54708}.status-select-finalized{background:#dcfce7;color:#15803d}.page-demand .thumb{width:44px;height:34px}.page-demand .demand-table-wrap{max-height:none;overflow-x:auto}.page-demand .demand-table{min-width:1280px;table-layout:fixed;white-space:nowrap;font-size:10px}.page-demand .demand-table th,.page-demand .demand-table td{padding:4px 4px;overflow:hidden;text-overflow:ellipsis}.page-demand .demand-table th{white-space:normal}.page-demand .demand-table th:nth-child(1){width:138px}.page-demand .demand-table th:nth-child(2){width:72px}.page-demand .demand-table th:nth-child(3){width:82px}.page-demand .demand-table th:nth-child(4){width:58px}.page-demand .demand-table th:nth-child(5){width:68px}.page-demand .demand-table th:nth-child(6){width:122px}.page-demand .demand-table th:nth-child(7),.page-demand .demand-table th:nth-child(8),.page-demand .demand-table th:nth-child(9){width:48px}.page-demand .demand-table th:nth-child(10),.page-demand .demand-table th:nth-child(11){width:44px}.page-demand .demand-table th:nth-child(12){width:52px}.page-demand .demand-table th:nth-child(13){width:100px}.page-demand .demand-table th:nth-child(14){width:68px}.page-demand .demand-table th:nth-child(15){width:64px}.page-demand .demand-table th:nth-child(16){width:54px}.page-demand .demand-table th:nth-child(17){width:54px}.page-demand .demand-table .opcol{position:static;right:auto;z-index:auto;min-width:0;box-shadow:none}.page-demand .demand-table th.opcol{position:sticky;top:0;z-index:3;background:#f4f8fb!important}.demand-filter-card{grid-template-columns:repeat(4,minmax(0,1fr))}.demand-filter-card label,.demand-filter-card select{min-width:0;width:100%}.order-filter-card{grid-template-columns:repeat(3,minmax(180px,1fr))}.form-row-three,.form-row-two{grid-column:1/-1;display:grid;gap:10px}.form-row-three{grid-template-columns:repeat(3,1fr)}.form-row-two{grid-template-columns:repeat(2,1fr)}.edit-image-form{display:flex;align-items:end;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid #e9eef3}.edit-image-form label{display:grid;flex:1;gap:6px}.edit-design-preview{width:110px;height:76px;object-fit:cover;border:1px solid #cbd8e2;border-radius:8px}
.product-cell,.date-time-cell{display:grid;gap:2px;white-space:nowrap}.product-cell{min-width:96px}.product-cell strong{overflow:hidden;text-overflow:ellipsis;color:#1d2939}.product-cell small,.date-time-cell small{color:#667085;font-size:10px;line-height:1.2}.measurement-cell{white-space:nowrap}.inline-note{width:82px;height:27px;min-height:27px;padding:3px 4px;resize:none;font-size:10px;line-height:18px}.inline-design-status{width:62px;min-width:62px;padding:3px 16px 3px 6px;border:0;border-radius:6px;font-size:10px;font-weight:700}.status-select-pending{background:#fee2e2;color:#b42318}.status-select-designing{background:#fef3c7;color:#b54708}.status-select-finalized{background:#dcfce7;color:#15803d}.page-demand .thumb{width:40px;height:30px}.page-demand .demand-table-wrap{max-height:none;overflow-x:auto}.page-demand .demand-table{min-width:1280px;table-layout:fixed;white-space:nowrap;font-size:10px}.page-demand .demand-table tbody tr{height:44px}.page-demand .demand-table th,.page-demand .demand-table td{padding:3px 4px;overflow:hidden;text-overflow:ellipsis}.page-demand .demand-table th{white-space:normal}.page-demand .demand-table th:nth-child(1){width:138px}.page-demand .demand-table th:nth-child(2){width:72px}.page-demand .demand-table th:nth-child(3){width:82px}.page-demand .demand-table th:nth-child(4){width:58px}.page-demand .demand-table th:nth-child(5){width:68px}.page-demand .demand-table th:nth-child(6){width:122px}.page-demand .demand-table th:nth-child(7),.page-demand .demand-table th:nth-child(8),.page-demand .demand-table th:nth-child(9){width:48px}.page-demand .demand-table th:nth-child(10),.page-demand .demand-table th:nth-child(11){width:44px}.page-demand .demand-table th:nth-child(12){width:52px}.page-demand .demand-table th:nth-child(13){width:90px}.page-demand .demand-table th:nth-child(14){width:68px}.page-demand .demand-table th:nth-child(15){width:64px}.page-demand .demand-table th:nth-child(16){width:54px}.page-demand .demand-table th:nth-child(17){width:54px}.page-demand .demand-table .opcol{position:static;right:auto;z-index:auto;min-width:0;box-shadow:none}.page-demand .demand-table th.opcol{position:sticky;top:0;z-index:3;background:#f4f8fb!important}.demand-filter-card{grid-template-columns:repeat(4,minmax(0,1fr))}.demand-filter-card label,.demand-filter-card select{min-width:0;width:100%}.order-filter-card{grid-template-columns:repeat(3,minmax(180px,1fr))}.form-row-three,.form-row-two{grid-column:1/-1;display:grid;gap:10px}.form-row-three{grid-template-columns:repeat(3,1fr)}.form-row-two{grid-template-columns:repeat(2,1fr)}.edit-image-form{display:flex;align-items:end;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid #e9eef3}.edit-image-form label{display:grid;flex:1;gap:6px}.edit-design-preview{width:110px;height:76px;object-fit:cover;border:1px solid #cbd8e2;border-radius:8px}.required-mark{margin-left:3px;color:#d92d20;font-weight:800}.incomplete-order{cursor:pointer;opacity:.48;filter:grayscale(.2)}
.catalog-tabs{display:flex;gap:8px;margin:0 0 14px;padding:5px;border:1px solid #dbe5ec;border-radius:12px;background:#f5f9fc}.catalog-tabs a{padding:9px 18px;border-radius:8px;color:var(--brand);font-weight:700;text-decoration:none}.catalog-tabs a:hover{background:#c1e8ff99}.catalog-tabs a.active{background:var(--brand);color:#fff;box-shadow:0 4px 12px #05265938}.catalog-action-panel{margin:10px 0 14px;padding:15px 16px;border:1px solid #d7e4eb;border-left:5px solid var(--accent);border-radius:14px;background:#fff;box-shadow:0 4px 16px #0210240a}.catalog-action-heading{display:flex;align-items:baseline;gap:12px}.catalog-action-heading strong{color:var(--brand);font-size:16px}.catalog-action-heading span,.catalog-rule{color:#667085}.catalog-rule{margin:4px 0 0;font-size:12px}.catalog-action-panel .section-toolbar{margin:12px 0 8px}.list-head{padding:8px 12px;margin-top:0}.filter-card{gap:8px;padding:8px 10px}.filter-card label{gap:0}.filter-card input,.filter-card select,.page-demand .filters input,.page-demand .filters select{height:32px;padding:4px 9px;border-radius:7px;font-size:12px}.demand-shell,.orders-shell,.billing-shell,.catalog-shell,.people-shell{border-left-width:0}.catalog-tabs{margin:0;padding:4px}.catalog-tabs a{padding:7px 16px}.page-demand .demand-board{margin-bottom:8px}.page-demand .filter-card{margin-bottom:8px;padding:8px 10px}.billing-filter-card{grid-template-columns:repeat(2,minmax(0,1fr))}.page-billing .billing-filter-card:has(select[name="design_status"]){grid-template-columns:repeat(6,minmax(130px,1fr))}.delete-demand{min-width:0!important;padding:0!important;background:transparent!important;color:#d92d20!important;font-size:10px}.demand-actions{display:flex;gap:5px;align-items:center}.page-demand .demand-table th:nth-child(17){width:72px}

.demand-filter-card{grid-template-columns:repeat(3,minmax(0,1fr))}.header-unit{color:#98a2b3;font-size:9px;font-weight:500}.modal-box .form-grid input,.modal-box .form-grid select,.modal-box .management-form input,.modal-box .management-form select{height:38px;box-sizing:border-box}.modal-box textarea{min-height:76px;box-sizing:border-box}.modal-box select[multiple]{height:auto;min-height:110px}
.inline-order-status{width:68px;padding:3px 16px 3px 6px;border:0;border-radius:6px;font-size:10px;font-weight:700}.inline-order-status.status-select-pending{background:#fee2e2;color:#b42318}.inline-order-status.status-select-producing{background:#fef3c7;color:#b54708}.inline-order-status.status-select-delivered{background:#dcfce7;color:#15803d}.delivery-image-cell{display:grid;justify-items:center;gap:3px}.delivery-image-cell .upload-placeholder{padding:3px 5px;font-size:9px;white-space:nowrap}
.page-supplier-orders .orders-table{min-width:1260px}.page-supplier-orders .orders-table th:nth-child(1){width:128px}.page-supplier-orders .orders-table th:nth-child(2){width:82px}.page-supplier-orders .orders-table th:nth-child(3){width:72px}.page-supplier-orders .orders-table th:nth-child(4){width:190px}.page-supplier-orders .orders-table th:nth-child(5),.page-supplier-orders .orders-table th:nth-child(6){width:42px}.page-supplier-orders .orders-table th:nth-child(7){width:50px}.page-supplier-orders .orders-table th:nth-child(8),.page-supplier-orders .orders-table th:nth-child(9){width:42px}.page-supplier-orders .orders-table th:nth-child(10){width:210px}.page-supplier-orders .orders-table th:nth-child(11){width:112px}.page-supplier-orders .orders-table th:nth-child(12){width:58px}.page-supplier-orders .orders-table th:nth-child(13){width:110px}.page-supplier-orders .orders-table th:nth-child(14){width:76px}.page-supplier-orders .orders-table th:nth-child(15){width:98px}.page-supplier-orders .orders-table td:nth-child(10),.page-supplier-orders .orders-table td:nth-child(13){white-space:normal}.page-supplier-orders .delivery-image-cell{width:100%;overflow:hidden}.page-supplier-orders .delivery-upload{width:100%;margin:0}.page-supplier-orders .delivery-image-cell .upload-placeholder{display:block;width:100%;max-width:86px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;text-align:center}.page-supplier-orders .delivery-image-cell .thumb{width:42px;height:32px}
.page-demand .combo{display:grid;justify-items:start;gap:2px}.page-demand .combo-primary{justify-content:flex-start;gap:5px;text-align:left}.page-demand .combo .cell-line{width:100%;margin:2px 0}.page-demand .combo>.muted{display:block;text-align:left}.danger-button{margin-right:auto;background:#d92d20!important;color:#fff!important}.withdraw-order{cursor:pointer}
.page-demand .measurement-row{grid-column:1/-1}.page-demand .size-pair{grid-column:auto}.page-demand .design-field{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:end;gap:10px;padding:10px 0;border-top:1px solid #e9eef3}.page-demand .design-field>small{grid-column:1/-1;color:#667085}.page-demand .current-design{display:flex;align-items:center;gap:10px}.page-demand .remove-design-check{display:flex;align-items:center;gap:5px;color:#b42318}.page-demand .remove-design-check input{width:auto;height:auto;margin:0}.page-demand .form-actions{align-items:center}.page-demand .form-actions .danger-button{margin-right:0}
.page-demand .demand-form textarea[name="note"]{height:38px;min-height:38px;resize:vertical;box-sizing:border-box}.page-demand .required-mark{display:inline;margin-left:2px;vertical-align:baseline}
.page-demand .product-field{align-self:start}.page-demand .product-combobox{position:relative;margin-top:5px}.page-demand .product-combobox .product-search{height:38px;margin-top:0;padding:9px 42px 9px 10px;box-sizing:border-box}.page-demand .product-combobox:focus-within .product-search{border-color:var(--accent);box-shadow:0 0 0 3px #7da0ca24;outline:0}.page-demand .product-dropdown-toggle{position:absolute;z-index:2;top:1px;right:1px;display:grid;width:36px;min-width:36px;height:36px;min-height:36px;margin:0;padding:0;place-items:center;border:0!important;border-radius:0 7px 7px 0!important;background:transparent!important;color:var(--brand)!important;box-shadow:none!important;font-size:0}.page-demand .product-dropdown-toggle::before{width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;content:"";transform:translateY(-2px) rotate(45deg);transition:transform .16s ease}.page-demand .product-dropdown-toggle[aria-expanded="true"]::before{transform:translateY(2px) rotate(225deg)}.page-demand .product-dropdown-toggle:hover{background:#eaf4fa!important}.page-demand .product-select-source{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.page-demand .product-options{position:fixed;z-index:1000;display:grid;gap:2px;max-height:230px;margin:0;padding:6px;overflow-y:auto;box-sizing:border-box;border:1px solid #b9cbd7;border-radius:9px;background:#fff;box-shadow:0 14px 34px #02102438}.page-demand .product-options[hidden]{display:none}.page-demand .product-option{display:block;width:100%;min-width:0;min-height:34px;margin:0;padding:8px 10px;border:0;border-radius:6px;background:#fff;color:#344054;text-align:left;font-size:12px;line-height:18px}.page-demand .product-option:hover,.page-demand .product-option:focus{background:#e8f5fc;color:var(--brand);outline:0}.page-demand .product-option[aria-selected="true"]{background:#c1e8ff;color:var(--brand);font-weight:700}.page-demand .product-option:disabled{background:#f5f7fa;color:#98a2b3;cursor:not-allowed}.page-demand .product-no-result{display:block;padding:10px;color:#667085;font-size:12px;text-align:center}
.price-tax-label{color:#98a2b3;font-size:9px;font-weight:500;white-space:nowrap}.page-billing .product-cell{min-width:128px}.page-billing .product-cell small{font-size:9px;color:#98a2b3}
.page-demand .demand-order-status{min-width:0;padding:3px 7px;border:0;font-size:10px;line-height:16px}.page-demand .demand-order-pending{background:#fee2e2;color:#b42318}.page-demand .demand-order-producing{background:#fef3c7;color:#b54708}.page-demand .demand-order-delivered{background:#dcfce7;color:#15803d}.page-demand .danger-button:disabled{cursor:not-allowed;opacity:.42}
.page-catalog .management-form input,.page-catalog .management-form select,.page-people .management-form input,.page-people .management-form select{height:38px;min-height:38px;padding:7px 9px;box-sizing:border-box}.page-catalog .management-form textarea,.page-people .management-form textarea{height:38px;min-height:38px;padding:7px 9px;resize:vertical;box-sizing:border-box}.page-catalog .management-form .check,.page-people .management-form .check{height:38px;min-height:38px;box-sizing:border-box}.page-catalog .management-form .check input,.page-people .management-form .check input{width:auto;height:auto;min-height:0}
.locked-chip{display:inline-flex;padding:3px 7px;border-radius:999px;background:#edf0f2;color:#667085;font-size:10px;font-weight:700}
.dash-grid{grid-template-columns:repeat(4,minmax(150px,1fr))}.dash-kpi.red{border-left-color:#d92d20}.dash-kpi.amount{border-left-color:#7c3aed}.dash-kpi.amount strong{font-size:23px}
.money-board{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:14px;margin-bottom:14px}.money-board article{display:grid;gap:8px;padding:22px;border-radius:16px;color:#fff;box-shadow:0 12px 28px #05265922}.money-board small,.money-board span{color:#c1e8ff}.money-board strong{font-size:30px}.money-main{background:linear-gradient(135deg,#052659,#021024)}.money-cost{background:linear-gradient(135deg,#548383,#315f60)}.money-profit{background:linear-gradient(135deg,#7da0ca,#496f9e)}.dashboard-block,.status-panel{padding:18px;border-radius:16px}.panel-head h2,.status-panel h2{margin:4px 0 14px;color:var(--brand)}.project-finance{display:grid;gap:8px}.project-finance-row{display:grid;grid-template-columns:minmax(180px,1.5fr) 1fr 1fr 1fr;align-items:center;gap:14px;padding:11px 13px;border-radius:10px;background:#f7fafc}.project-finance-row span{color:#667085}.project-finance-row b{color:var(--brand)}.project-finance-row i{height:7px;overflow:hidden;border-radius:9px;background:#dce7ee}.project-finance-row em{display:block;max-width:100%;height:100%;background:var(--accent)}.status-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}.status-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.status-strip div{padding:14px;border-top:4px solid var(--brand);border-radius:10px;background:#f7fafc}.status-strip b,.status-strip span{display:block}.status-strip b{font-size:24px;color:var(--brand)}.status-strip span{color:#667085}.status-strip .danger{border-color:#d92d20}.status-strip .warning{border-color:#f59e0b}.status-strip .success{border-color:#22c55e}.order-rings{display:flex;justify-content:space-around;gap:12px}.ring{display:grid;place-content:center;width:105px;height:105px;border:9px solid var(--pale);border-radius:50%;text-align:center}.ring b{font-size:24px;color:var(--brand)}.ring span{font-size:11px;color:#667085}.ring.producing{border-color:#fef3c7}.ring.delivered{border-color:#b7e4d7}.owner-board{display:flex;flex-wrap:wrap;gap:10px}.owner-board>div{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;min-width:190px;padding:12px;border:1px solid #dce7ee;border-radius:12px}.owner-avatar{grid-row:1/3;display:grid;place-content:center;width:38px;height:38px;border-radius:50%;background:var(--brand);color:#fff;font-weight:800}.owner-board small{color:#667085}.supplier-cost-form{display:grid;grid-template-columns:72px 90px auto;gap:3px;align-items:center}.supplier-cost-form input{width:100%;height:27px;padding:3px;font-size:10px}.supplier-cost-form button{padding:5px;font-size:10px}.supplier-cost-form small{grid-column:1/-1;color:var(--accent)}@media(max-width:900px){.money-board,.status-layout{grid-template-columns:1fr}.project-finance-row{grid-template-columns:1fr 1fr}.status-strip{grid-template-columns:repeat(2,1fr)}}
.supplier-order-board{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}.supplier-order-board>div{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;border-left:5px solid var(--brand);border-radius:10px;background:#f7fafc}.supplier-order-board small{color:#667085}.supplier-order-board b{font-size:22px;color:var(--brand)}.supplier-order-board .pending{border-color:#d92d20}.supplier-order-board .producing{border-color:#f59e0b}.supplier-order-board .delivered{border-color:#22c55e}.page-supplier-costs .orders-table{width:100%;min-width:0;table-layout:auto}.page-supplier-costs .orders-table th,.page-supplier-costs .orders-table td{width:auto;max-width:220px;white-space:nowrap}.page-supplier-costs .orders-table th:nth-child(3),.page-supplier-costs .orders-table td:nth-child(3),.page-supplier-costs .orders-table th:nth-child(9),.page-supplier-costs .orders-table td:nth-child(9){min-width:145px}.supplier-cost-input{width:86px;height:30px;text-align:right}.supplier-cost-input:disabled{background:#eef5f8}.supplier-cost-total{white-space:nowrap;color:var(--brand)}@media(max-width:720px){.supplier-order-board{grid-template-columns:1fr 1fr}}
.page-supplier-orders .delivery-image-cell{position:relative;display:grid;place-items:center;width:94px;min-height:66px;margin:auto;overflow:hidden;border:1px solid #d7e2e9;border-radius:10px;background:#f8fbfd}.page-supplier-orders .delivery-preview{position:relative;display:block;width:100%;height:66px;overflow:hidden;color:#fff;text-decoration:none}.page-supplier-orders .delivery-preview .thumb{width:100%;height:100%;max-width:none;max-height:none;border:0;border-radius:0;object-fit:cover;transition:transform .18s ease}.page-supplier-orders .delivery-preview:hover .thumb{transform:scale(1.04)}.page-supplier-orders .delivery-preview span{position:absolute;right:0;bottom:0;left:0;padding:4px;background:#021024b8;color:#fff;font-size:9px;text-align:center;opacity:0;transition:opacity .18s ease}.page-supplier-orders .delivery-preview:hover span{opacity:1}.page-supplier-orders .delivery-upload{width:100%;margin:0}.page-supplier-orders .has-photo .delivery-upload{position:absolute;right:4px;bottom:4px;width:auto}.page-supplier-orders .delivery-upload-button{display:grid;place-items:center;gap:1px;width:100%;min-height:64px;padding:6px;border:1px dashed #7da0ca;border-radius:9px;background:#f5fbff;color:var(--brand);font-size:9px;font-weight:700;cursor:pointer;transition:background .18s ease,border-color .18s ease}.page-supplier-orders .delivery-upload-button:hover{border-color:var(--accent);background:#eaf6fc}.page-supplier-orders .delivery-upload-button small{color:#98a2b3;font-size:7px;font-weight:500}.page-supplier-orders .delivery-upload-icon{display:grid;place-content:center;width:22px;height:22px;border-radius:50%;background:var(--brand);color:#fff;font-size:16px;line-height:1}.page-supplier-orders .has-photo .delivery-upload-button{display:flex;min-height:0;padding:3px 6px;border:0;border-radius:999px;background:#052659e8;color:#fff;box-shadow:0 2px 8px #02102455}.page-supplier-orders .has-photo .delivery-upload-button small,.page-supplier-orders .has-photo .delivery-upload-icon{display:none}.page-supplier-orders .delivery-upload-button input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.page-supplier-orders .delivery-empty{color:#98a2b3;font-size:10px}
.supplier-cost-board{display:block;margin-bottom:10px}.supplier-cost-board>div{display:grid;grid-template-columns:1fr auto;gap:4px 16px;align-items:center;padding:11px 14px;border-left:5px solid #22c55e;border-radius:10px;background:#f7fafc;color:var(--ink);box-shadow:none}.supplier-cost-board small{color:#667085;font-size:12px}.supplier-cost-board b{grid-row:1/3;grid-column:2;font-size:22px;color:var(--brand)}.supplier-cost-board span{color:#667085;font-size:10px}
.supplier-cost-price{display:inline-flex;align-items:center;width:78px;height:30px;overflow:hidden;border:1px solid #cfdce4;border-radius:6px;background:#fff}.supplier-cost-price:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px #7da0ca22}.supplier-cost-price>span{padding-left:6px;color:#667085;font-size:12px}.supplier-cost-price .supplier-cost-input{width:56px;height:28px;padding:3px 5px 3px 2px;border:0;outline:0;text-align:right}.supplier-cost-price .supplier-cost-input:disabled{background:#eef5f8}
.login-error{margin:0 0 12px;padding:10px 12px;border:1px solid #f4b8b2;border-radius:8px;background:#fff2f0;color:#b42318;font-size:13px;font-weight:700}
/* 2026-07-13 production usability closure */
.date-filter{display:grid!important;grid-template-columns:auto minmax(135px,1fr);align-items:center;gap:6px!important}.date-filter span{white-space:nowrap}.demand-filter-card{grid-template-columns:repeat(5,minmax(150px,1fr))}.page-orders .order-filter-card{grid-template-columns:repeat(6,minmax(130px,1fr))}.page-supplier-orders .order-filter-card{grid-template-columns:repeat(5,minmax(150px,1fr))}.inline-note{width:150px!important;height:auto!important;min-height:52px!important;max-height:150px;padding:6px!important;resize:vertical!important;overflow:auto!important;white-space:pre-wrap!important;overflow-wrap:anywhere;line-height:1.45!important}.page-demand .demand-table th:nth-child(13){width:160px}.binding-picker{position:relative;grid-column:auto;min-width:0}.binding-picker summary{display:flex;align-items:center;justify-content:space-between;min-height:38px;padding:8px 10px;border:1px solid var(--mid);border-radius:7px;background:#fff;color:var(--brand);font-weight:700;cursor:pointer;list-style:none}.binding-picker summary::-webkit-details-marker{display:none}.binding-picker summary span{color:#667085;font-size:11px;font-weight:500}.binding-options{position:absolute;z-index:80;top:calc(100% + 4px);right:0;left:0;display:grid;gap:3px;max-height:220px;padding:8px;overflow:auto;border:1px solid #cbd8e2;border-radius:9px;background:#fff;box-shadow:0 14px 30px #02102433}.binding-options label{display:flex!important;align-items:center;gap:8px!important;min-height:34px;padding:5px 7px;border-radius:6px}.binding-options label:hover{background:#c1e8ff66}.binding-options input{width:auto!important;height:auto!important;min-height:0!important}.page-catalog .modal,.page-people .modal{overflow:visible}.page-catalog .modal-box,.page-people .modal-box{overflow:visible}.page-supplier-orders .delivery-preview{position:relative;z-index:3;cursor:zoom-in;pointer-events:auto}.page-supplier-orders .delivery-preview .thumb{pointer-events:none}.page-supplier-orders .delivery-image-cell.has-photo .delivery-upload{z-index:4}
@media(max-width:900px){header{gap:10px}header nav{display:flex;gap:4px;width:100%;overflow-x:auto;white-space:nowrap;padding-bottom:4px}header nav a{flex:0 0 auto}.logout-form{margin-left:auto}.demand-filter-card,.order-filter-card{grid-template-columns:1fr 1fr}.date-filter{grid-template-columns:90px 1fr}.toolbar .btn{min-height:38px}.modal{padding:10px}.modal-box{max-height:94vh!important;padding:14px!important;overflow:auto!important}.binding-options{position:static;margin-top:4px;box-shadow:none}.page-demand .demand-board-row{min-width:650px}.page-demand .board-title{min-width:70px}.page-demand .board-metric{min-width:82px;padding:5px 7px}.page-demand .demand-table,.orders-table{font-size:11px}.inline-note{width:130px!important}.supplier-order-board>div{padding:9px}.supplier-order-board b{font-size:18px}}
@media(max-width:600px){body{font-size:14px}main,.page-demand main,.page-dashboard main,.page-orders main,.page-supplier-orders main,.page-supplier-costs main,.page-billing main,.page-catalog main,.page-people main{margin-top:10px;padding:0 7px}.card,.list-head{padding:9px}.demand-filter-card,.order-filter-card,.filter-card{grid-template-columns:1fr}.date-filter{grid-template-columns:86px 1fr}.demand-toolbar,.section-toolbar{display:grid;grid-template-columns:1fr 1fr;width:100%}.demand-toolbar .btn,.section-toolbar .btn{width:100%;min-width:0}.section-toolbar .muted{grid-column:1/-1}.supplier-order-board{grid-template-columns:1fr 1fr}.page-demand .form-row-two,.page-demand .form-row-three{grid-template-columns:1fr}.page-demand .design-field{grid-template-columns:1fr}.page-demand .form-actions,.form-actions{position:sticky;bottom:-14px;z-index:2;margin:0 -14px -14px;padding:12px 14px!important;background:#fff;box-shadow:0 -5px 16px #02102414}.page-demand .form-actions button,.page-demand .form-actions .btn,.form-actions button,.form-actions .btn{flex:1;min-width:0}.catalog-tabs{overflow-x:auto}.catalog-tabs a{flex:0 0 auto}.lightbox img{max-width:96vw;max-height:90vh}.toast{width:calc(100% - 28px);text-align:center}}
.billing-tabs{display:flex;gap:6px;margin-bottom:12px;border-bottom:1px solid #dce7ee}.billing-tabs a{padding:9px 15px;border-radius:8px 8px 0 0;color:var(--brand);font-weight:700}.billing-tabs a.active{background:var(--brand);color:#fff}.inline-payment-status{min-width:82px;height:30px;padding:3px 7px;border-radius:7px;font-weight:700}.payment-status-unpaid{border-color:#f59e0b;background:#fffbeb;color:#92400e}.payment-status-paid{border-color:#22c55e;background:#ecfdf3;color:#166534}.thumb{width:54px!important;height:40px!important;object-fit:cover}.supplier-additional-cost-input{width:100%;height:27px;padding:3px;font-size:10px}
@media(max-width:600px){.billing-tabs{overflow-x:auto}.billing-tabs a{flex:0 0 auto}.thumb{width:46px!important;height:34px!important}}
.management-actions{display:inline-flex;align-items:center;justify-content:center;gap:7px}.management-actions .delete-management{min-width:0;margin:0;padding:4px 8px;border:0;border-radius:6px;font-size:11px;line-height:18px;cursor:pointer}.management-actions .delete-management:disabled{cursor:not-allowed;opacity:.55}.demand-edit-actions .form-action-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:108px;height:38px;margin:0;padding:8px 16px;border-radius:8px;font:inherit;font-weight:700;line-height:1;text-decoration:none}
.demand-edit-actions .danger-button{border:1px solid #d92d20;background:#d92d20;color:#fff}.demand-edit-actions .danger-button:hover:not(:disabled){background:#b42318}.demand-edit-actions .danger-button:disabled{border-color:#f2b8b5;background:#f2b8b5;color:#fff;cursor:not-allowed}.demand-edit-actions .btn-muted{border:1px solid #7da0ca;background:#fff;color:#052659}@media(max-width:600px){.demand-edit-actions{display:grid!important;grid-template-columns:1fr!important}.demand-edit-actions .form-action-button{width:100%;min-width:0}}
.page-demand .demand-table tbody tr{height:52px}.page-demand .demand-table td{padding-top:4px;padding-bottom:4px}.page-demand .inline-note{min-height:44px!important;max-height:130px}
.page-demand .demand-filter-card{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;overflow-x:auto}.page-demand .demand-filter-card>label{flex:0 1 155px;min-width:118px}.page-demand .demand-filter-card>.date-filter{flex-basis:178px;grid-template-columns:auto minmax(112px,1fr)}.page-demand .demand-filter-card>.date-filter span{font-size:11px}@media(max-width:900px){.page-demand .demand-filter-card{display:grid;grid-template-columns:1fr 1fr;overflow:visible}.page-demand .demand-filter-card>label,.page-demand .demand-filter-card>.date-filter{min-width:0;width:100%}}@media(max-width:600px){.page-demand .demand-filter-card{grid-template-columns:1fr}}
/* Final demand column widths: keep after all legacy/mobile closure rules. */
.page-demand .demand-table th:nth-child(5),.page-demand .demand-table td:nth-child(5){width:160px!important;min-width:160px!important;max-width:160px!important}.page-demand .demand-table th:nth-child(6),.page-demand .demand-table td:nth-child(6){width:160px!important;min-width:160px!important;max-width:160px!important}.page-demand .demand-table th:nth-child(13),.page-demand .demand-table td:nth-child(13){width:120px!important;min-width:120px!important;max-width:120px!important}.page-demand .demand-table td:nth-child(13){padding-right:1px!important;padding-left:1px!important;overflow:visible}.page-demand .demand-table td:nth-child(13) .inline-note{box-sizing:border-box;width:118px!important;min-width:118px!important;max-width:118px!important}

/* Supplier readability and delivery-photo presentation */
.page-supplier-orders .orders-table,.page-supplier-costs .orders-table{font-size:12px}
.page-supplier-orders .orders-table th,.page-supplier-orders .orders-table td,.page-supplier-costs .orders-table th,.page-supplier-costs .orders-table td{font-size:12px}
.page-supplier-orders .product-cell small,.page-supplier-orders .date-time-cell small,.page-supplier-costs .product-cell small,.page-supplier-costs .date-time-cell small{font-size:11px}
.page-supplier-orders .inline-order-status,.page-supplier-costs .supplier-cost-input{font-size:11px}
.page-supplier-orders .delivery-image-cell.has-photo{display:block;width:94px;height:66px;min-height:66px}
.page-supplier-orders .delivery-image-cell.has-photo .delivery-preview{width:100%;height:100%}
.page-supplier-orders .delivery-image-cell.has-photo .delivery-preview .thumb{display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover}
.page-supplier-orders .delivery-image-cell.has-photo .delivery-upload{right:3px;bottom:3px;z-index:2}
.page-supplier-orders .delivery-image-cell.has-photo .delivery-upload-button{padding:4px 7px;font-size:10px}
.page-supplier-costs .supplier-cost-price{width:86px}
.page-supplier-costs .supplier-cost-price .supplier-cost-input{width:64px}
.page-supplier-costs .supplier-cost-total.excluded{color:#667085;font-size:11px;font-weight:600;white-space:nowrap}
.page-demand header .logout-form button{min-width:auto;padding:5px 9px;border-radius:4px;background:var(--mid);color:var(--pale)}
.page-demand header .logout-form button:hover{background:var(--accent);color:#fff}

/* Compact demand editor: keep the complete form and image controls visible without scrolling. */
.page-demand .modal-box{padding:14px 16px}.page-demand .modal-head{margin-bottom:9px}.page-demand .demand-form{gap:8px 12px}.page-demand .demand-form>label{gap:1px;font-size:12px}.page-demand .demand-form input,.page-demand .demand-form select,.page-demand .demand-form textarea{height:34px;margin-top:2px;padding:6px 8px}.page-demand .product-field{display:grid;grid-template-rows:auto 34px;gap:1px}.page-demand .product-combobox{align-self:end;margin-top:2px;transform:translateY(16px)}.page-demand .product-combobox .product-search{height:34px;margin-top:0;padding:6px 40px 6px 8px}.page-demand .product-dropdown-toggle{height:32px;min-height:32px}.page-demand .form-row-two,.page-demand .form-row-three{gap:8px 12px}.page-demand .form-row-two label,.page-demand .form-row-three label{gap:1px;font-size:12px}.page-demand .design-field{gap:6px 10px;padding:6px 0}.page-demand .design-field>label{font-size:12px}.page-demand .design-field input[type="file"]{height:34px;padding:4px 6px}.page-demand .design-field>small{font-size:10px;line-height:1.3}.page-demand .edit-design-preview{width:88px;height:58px}.page-demand .form-actions{gap:8px;padding-top:8px}.page-demand .demand-edit-actions .form-action-button{flex:0 0 112px;width:112px!important;min-width:112px!important;height:36px;padding:7px 12px!important}.page-demand .demand-edit-actions .delete-demand{width:112px!important;min-width:112px!important;padding:7px 12px!important}
/* New-demand keeps its original roomy layout; compact adjustments above are only retained by edit dialogs. */
.page-demand #new-demand .modal-box{padding:20px}.page-demand #new-demand .modal-head{margin-bottom:16px}.page-demand #new-demand .demand-form{gap:14px}.page-demand #new-demand .demand-form>label{gap:4px;font-size:inherit}.page-demand #new-demand .demand-form input,.page-demand #new-demand .demand-form select,.page-demand #new-demand .demand-form textarea{height:38px;margin-top:5px;padding:9px}.page-demand #new-demand .product-field{display:grid;grid-template-rows:auto 38px;gap:4px}.page-demand #new-demand .product-combobox{align-self:auto;margin-top:0;transform:none}.page-demand #new-demand .product-combobox .product-search{height:38px;margin-top:0;padding:9px 42px 9px 10px}.page-demand #new-demand .product-dropdown-toggle{height:36px;min-height:36px}.page-demand #new-demand .form-row-two,.page-demand #new-demand .form-row-three{gap:10px}.page-demand #new-demand .form-row-two label,.page-demand #new-demand .form-row-three label{gap:4px;font-size:inherit}.page-demand #new-demand .form-actions{gap:10px;padding-top:14px}
.page-billing table tfoot td{position:sticky;bottom:0;padding:10px 8px;border-top:2px solid var(--accent);background:#eaf5fb;color:var(--brand);font-weight:700}.page-billing table tfoot .billing-total-label{text-align:right}.page-billing table tfoot .billing-total-amount{white-space:nowrap;text-align:right;font-size:13px}.page-billing table tfoot .billing-total-empty{color:#7a8b99;text-align:center}

/* 制作文件 */
.page-demand .production-files-panel{grid-column:1/-1;display:grid;gap:8px;padding:10px;border:1px solid #d7e2e9;border-radius:10px;background:#f8fbfd}.production-files-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.production-files-head h4{margin:0;color:var(--brand);font-size:14px}.production-files-head small{color:#667085;font-size:10px}.production-files-refresh{min-height:30px;padding:5px 9px;font-size:11px}.production-upload-row{display:flex;align-items:center;gap:8px}.production-file-picker{flex:1;display:flex!important;align-items:center;gap:8px;padding:6px 8px;border:1px dashed #7da0ca;border-radius:8px;background:#fff;color:var(--brand);font-size:11px;font-weight:700;cursor:pointer}.page-demand .production-file-picker input{height:auto!important;margin:0!important;padding:0!important;border:0}.production-upload-row button,.production-publish-row button{white-space:nowrap}.production-upload-status{display:grid;gap:3px}.production-progress{height:6px;overflow:hidden;border-radius:999px;background:#dbe7ee}.production-progress span{display:block;width:0;height:100%;border-radius:inherit;background:var(--accent);transition:width .15s linear}.production-upload-status small{color:#667085}.production-file-list{display:grid;gap:6px}.production-release-summary{padding:6px 8px;border-radius:7px;background:#c1e8ff55;color:var(--brand);font-size:11px;font-weight:700}.production-file-items{display:grid;gap:4px;margin:0;padding:0;list-style:none}.production-file-items li{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:5px 7px;border:1px solid #e1e9ee;border-radius:7px;background:#fff}.production-file-items li>div{display:grid;min-width:0}.production-file-items strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.production-file-items small{color:#667085;font-size:9px}.production-file-delete{padding:4px 7px;border-color:#fecdca;background:#fff;color:#b42318;font-size:10px}.production-publish-row{display:grid;grid-template-columns:1fr auto;align-items:end;gap:8px;padding-top:6px;border-top:1px solid #e1e9ee}.production-publish-row label{font-size:11px}.page-demand .production-publish-note{height:46px!important;min-height:46px!important;margin-top:3px!important;padding:6px!important}.production-files-error{margin:0;color:#b42318;font-size:11px}.order-production-files{display:grid;gap:3px;max-width:125px;white-space:normal}.order-production-files>strong{color:var(--brand);font-size:10px}.order-production-file-links{display:grid;gap:2px}.order-production-file-links a{display:block;overflow:hidden;color:#175cd3;font-size:9px;text-decoration:underline;text-overflow:ellipsis;white-space:nowrap}.orders-table{min-width:1540px}.page-supplier-orders .orders-table{min-width:1360px}@media(max-width:600px){.page-supplier-orders .orders-table-wrap{margin:0 -7px;border-radius:0}.page-supplier-orders .orders-table{min-width:980px}.page-supplier-orders .orders-table th,.page-supplier-orders .orders-table td{font-size:12px}.page-supplier-orders .delivery-image-cell,.page-supplier-orders .delivery-image-cell.has-photo{width:104px;height:62px;min-height:62px}.page-supplier-orders .delivery-preview,.page-supplier-orders .delivery-image-cell.has-photo .delivery-preview{height:60px}.page-supplier-orders .delivery-upload-button{min-height:56px;padding:6px 8px;font-size:12px}.page-supplier-orders .delivery-upload-icon{width:26px;height:26px;font-size:20px}.page-supplier-orders .delivery-upload-button small{display:block;font-size:9px}.page-supplier-orders .delivery-image-cell.has-photo .delivery-upload-button{min-height:0;padding:5px 8px;font-size:11px}.page-supplier-orders .supplier-order-board>div{min-height:48px}.page-supplier-orders .inline-order-status{width:76px;min-width:76px;min-height:36px;font-size:12px}.page-supplier-orders .orders-table td:nth-child(15){padding-right:8px;padding-left:8px}.page-supplier-orders .orders-table td:nth-child(16){padding-right:12px!important}}
.page-demand .production-upload-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.page-demand .production-file-picker{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;min-width:0;padding:0;border:1px solid #aebfc9;border-radius:5px;background:#fff;overflow:hidden;color:#344054;font-weight:400;cursor:pointer}.page-demand .production-file-button{align-self:stretch;display:flex;align-items:center;padding:7px 10px;border-right:1px solid #aebfc9;background:#f4f6f8;color:#1d2939;font-size:11px;font-weight:600}.page-demand .production-file-name{display:block;overflow:hidden;padding:7px 10px;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.page-demand .production-file-picker input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none}.page-demand .production-publish-row{display:flex;justify-content:flex-end;padding-top:6px;border-top:1px solid #e1e9ee}.page-demand .production-publish-row .production-publish-button{width:auto}.page-demand .production-publish-note{display:none!important}@media(max-width:600px){.page-demand .production-upload-row{grid-template-columns:1fr}.page-demand .production-publish-row .production-publish-button{width:100%}}

/* 2026-07-15 compact demand/billing refinements */
.page-demand .production-files-head h4{display:flex;align-items:baseline;gap:8px;min-width:0}.page-demand .production-files-head h4 small{font-weight:400;white-space:nowrap}.page-demand .required-mark{margin-left:0}.page-demand .production-files-panel{gap:6px;padding:8px 10px}.page-demand .production-file-items li{padding:4px 7px}.page-demand .production-file-delete{flex:0 0 auto;min-height:26px;padding:3px 8px!important}
.page-supplier-orders .orders-table th:nth-child(1){width:96px}.page-supplier-orders .orders-table th:nth-child(3){width:118px}.page-supplier-orders .orders-table th:nth-child(10){width:150px}.page-supplier-orders .orders-table th:nth-child(14){width:180px}.page-supplier-orders .orders-table td:nth-child(3),.page-supplier-orders .orders-table td:nth-child(14){white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35;word-break:break-word}.page-supplier-orders .orders-table td:nth-child(10){max-width:150px}
.page-billing .billing-preview-table-wrap{height:calc(100vh - 270px);min-height:520px;max-height:none}.page-billing .billing-preview-table{min-width:1740px;table-layout:fixed}.page-billing .billing-preview-table th{height:38px;padding:6px 7px;box-sizing:border-box}.page-billing .billing-preview-table tbody tr{height:46px!important;min-height:46px!important;max-height:46px!important}.page-billing .billing-preview-table tbody td{block-size:46px!important;height:46px!important;min-height:46px!important;max-height:46px!important;padding:0 7px!important;box-sizing:border-box;overflow:hidden;line-height:1.4;text-overflow:ellipsis;vertical-align:middle}.page-billing .billing-preview-table th:nth-child(1){width:82px}.page-billing .billing-preview-table th:nth-child(2){width:150px}.page-billing .billing-preview-table th:nth-child(3){width:90px}.page-billing .billing-preview-table th:nth-child(4){width:80px}.page-billing .billing-preview-table th:nth-child(5){width:120px}.page-billing .billing-preview-table th:nth-child(6){width:140px}.page-billing .billing-preview-table th:nth-child(7),.page-billing .billing-preview-table th:nth-child(8){width:56px}.page-billing .billing-preview-table th:nth-child(9){width:72px}.page-billing .billing-preview-table th:nth-child(10){width:58px}.page-billing .billing-preview-table th:nth-child(11){width:58px}.page-billing .billing-preview-table th:nth-child(12),.page-billing .billing-preview-table th:nth-child(13),.page-billing .billing-preview-table th:nth-child(15){width:92px}.page-billing .billing-preview-table th:nth-child(14){width:64px}.page-billing .billing-preview-table th:nth-child(16),.page-billing .billing-preview-table th:nth-child(17),.page-billing .billing-preview-table th:nth-child(18){width:78px}.page-billing .billing-preview-table th:nth-child(19),.page-billing .billing-preview-table th:nth-child(20){width:66px}.page-billing .billing-preview-table .thumb{width:40px;height:30px}.page-billing .billing-preview-table .product-cell,.page-billing .billing-preview-table .date-time-cell{gap:2px}.page-billing .billing-preview-table .product-cell small{line-height:1.2}.page-billing .billing-preview-table tfoot{position:fixed;z-index:29;right:18px;bottom:58px;left:18px;display:table;width:calc(100% - 36px);height:24px;border-collapse:separate;table-layout:fixed}.page-billing .billing-preview-table tfoot tr{height:24px}.page-billing .billing-preview-table tfoot td{position:static;height:24px;padding:2px 12px;border-top:1px solid var(--accent);box-sizing:border-box;line-height:18px}.page-billing .billing-preview-table tfoot .billing-total-summary{font-size:12px;text-align:right;white-space:nowrap}@media(max-height:760px){.page-billing .billing-preview-table-wrap{height:calc(100vh - 230px);min-height:420px}}@media(max-width:600px){.page-billing .billing-preview-table tfoot{right:7px;left:7px;width:calc(100% - 14px)}.page-billing .billing-preview-table tfoot .billing-total-summary{font-size:11px}}

/* 2026-07-15 demand labels and supplier order alignment */
.page-demand .demand-form .field-label{display:inline-flex;align-items:baseline;gap:0;white-space:nowrap}.page-demand .demand-form .field-label .required-mark{display:inline;margin:0 0 0 1px;line-height:1;vertical-align:baseline}
.page-supplier-orders .orders-table th:nth-child(1){width:108px}.page-supplier-orders .orders-table th:nth-child(15){width:118px}.page-supplier-orders .orders-table td:nth-child(15){padding-right:12px;padding-left:4px;overflow:visible}.page-supplier-orders .delivery-image-cell{width:88px;margin-right:8px;margin-left:0}.page-supplier-orders .delivery-image-cell.has-photo{width:88px}.page-supplier-orders .order-production-files{max-width:150px}.page-supplier-orders .order-production-file-links a{font-size:11px;line-height:1.35}

/* 2026-07-15 supplier delivery column and billing preview spacing */
.page-supplier-orders .orders-table tbody tr{height:46px!important;min-height:46px!important;max-height:46px!important}.page-supplier-orders .orders-table tbody td{height:46px!important;min-height:46px!important;max-height:46px!important;padding-top:2px!important;padding-bottom:2px!important;box-sizing:border-box;vertical-align:middle}.page-supplier-orders .orders-table th:nth-child(15){width:68px}.page-supplier-orders .orders-table th:nth-child(16){width:104px}.page-supplier-orders .orders-table td:nth-child(15){padding-right:4px;padding-left:4px;overflow:hidden}.page-supplier-orders .orders-table td:nth-child(16){padding-right:14px!important;padding-left:4px!important;overflow:hidden}.page-supplier-orders .inline-order-status{width:58px;min-width:58px;padding-right:15px;padding-left:4px}.page-supplier-orders .delivery-image-cell,.page-supplier-orders .delivery-image-cell.has-photo{width:76px;height:38px;min-height:38px;margin:0 auto;box-sizing:border-box}.page-supplier-orders .delivery-preview,.page-supplier-orders .delivery-image-cell.has-photo .delivery-preview{width:100%;height:36px}.page-supplier-orders .delivery-upload-button{min-height:36px;padding:2px 4px}.page-supplier-orders .delivery-upload-icon{width:18px;height:18px;font-size:13px}.page-supplier-orders .delivery-upload-button small{display:none}.page-supplier-orders .delivery-image-cell.has-photo .delivery-upload{right:2px;bottom:2px}.page-supplier-orders .delivery-image-cell.has-photo .delivery-upload-button{padding:2px 5px;font-size:9px}.page-billing .billing-preview-table .thumb{width:36px;height:26px}.page-billing .lightbox{z-index:90}

/* 2026-07-15 billing preview media frames */
.page-billing .billing-preview-table td:nth-child(5){white-space:normal;overflow-wrap:anywhere;line-height:1.25}.page-billing .billing-preview-table td:nth-child(19),.page-billing .billing-preview-table td:nth-child(20){padding-right:5px!important;padding-left:5px!important;text-align:center}.page-billing .billing-preview-table .table-image-frame{display:flex;align-items:center;justify-content:center;width:44px;height:32px;margin:0 auto;overflow:hidden;border:1px solid #c4d3dd;border-radius:7px;background:#f8fbfd;box-sizing:border-box}.page-billing .billing-preview-table .table-image-frame .thumb{display:block;width:38px;height:26px;margin:0;border:0;border-radius:5px;object-fit:cover}

/* 2026-07-15 form alignment, linked filters and stable pager */
body{padding-bottom:64px}.page-demand .product-spec-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.page-demand .product-spec-row .product-combobox{margin-top:2px;transform:none}.page-demand #new-demand .product-combobox{margin-top:5px}.page-demand #new-demand .specification-field input{margin-top:5px}.page-demand .design-file-picker{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center;min-width:0;height:34px;margin-top:2px;overflow:hidden;border:1px solid #aebfc9;border-radius:5px;background:#fff;color:#344054;font-weight:400;cursor:pointer}.page-demand .design-file-button{align-self:stretch;display:flex;align-items:center;padding:7px 10px;border-right:1px solid #aebfc9;background:#f4f6f8;color:#1d2939;font-size:11px;font-weight:600}.page-demand .design-file-name{display:block;overflow:hidden;padding:7px 10px;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.page-demand .design-file-picker input{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;opacity:0!important;pointer-events:none}.page-demand .design-field>label{display:grid;gap:1px}@media(max-width:600px){.page-demand .product-spec-row{grid-template-columns:1fr}.pager{bottom:6px;max-width:calc(100vw - 20px);white-space:nowrap}}
.page-demand .design-file-picker{cursor:text;transition:border-color .15s,box-shadow .15s,background-color .15s}.page-demand .design-file-picker:focus{border-color:#052659;background:#f2f9ff;box-shadow:0 0 0 3px rgba(125,160,202,.28);outline:none}.page-demand .design-file-picker:focus .design-file-name{color:#052659;font-weight:600}.page-demand .design-file-button{height:100%;margin:0;border:0;border-right:1px solid #aebfc9;border-radius:0;cursor:pointer}.page-demand .design-file-button:focus-visible{outline:2px solid #548383;outline-offset:-2px}
.page-demand .demand-form[data-method="PATCH"] .specification-field{transform:translateY(-3px)}.page-demand .production-file-button{transition:background-color .15s,color .15s,box-shadow .15s}.page-demand .production-file-button:hover,.page-demand .production-file-picker:focus-within .production-file-button{background:#dceeff;color:#052659;box-shadow:inset 0 0 0 1px #7da0ca}.page-demand .production-file-button:active{background:#c1e8ff}.page-demand .design-field{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1fr);gap:2px;min-width:0}.page-demand .design-field-heading{display:flex;align-items:baseline;gap:8px;min-width:0}.page-demand .design-field-heading small{overflow:hidden;color:#667085;font-size:10px;font-weight:400;text-overflow:ellipsis;white-space:nowrap}.page-demand .design-file-row{display:grid;grid-template-columns:minmax(260px,.72fr) 48px auto;align-items:end;justify-content:start;gap:8px;min-width:0}.page-demand .design-field .design-file-picker{width:100%;margin-top:0;box-sizing:border-box}.page-demand .design-file-row .remove-design-check{height:34px;margin:0;white-space:nowrap}.page-demand .design-field .current-design{display:block;width:48px;height:34px;margin:0;overflow:hidden;border:1px solid #cbd8e2;border-radius:5px;background:#f4f8fb;box-sizing:border-box}.page-demand .design-field .edit-design-preview{display:block;width:100%;height:100%;border:0;border-radius:0;object-fit:cover}

/* 2026-07-16 multi-product demand editor and master/detail table */
.page-demand .demand-items-panel{grid-column:1/-1;display:grid;gap:8px;padding:10px;border:1px solid #d7e2e9;border-radius:10px;background:#f8fbfd}.page-demand .demand-items-heading{display:flex;align-items:center;gap:8px}.page-demand .demand-items-heading h4{display:flex;align-items:center;gap:6px;margin:0;color:var(--brand);font-size:14px}.page-demand .demand-items-heading small{color:#667085;font-size:10px;font-weight:400}.page-demand .demand-items-heading .add-demand-item{min-width:0;min-height:24px;height:24px;padding:2px 7px;border-radius:5px;font-size:10px;line-height:18px}.page-demand .demand-items-list{display:grid;gap:8px}.page-demand .modal-box:not(.order-modal-box){max-width:min(1120px,calc(100vw - 48px))}.page-demand .demand-item-row{display:grid;grid-template-columns:minmax(165px,1.55fr) minmax(86px,.82fr) 60px 60px 66px 58px 44px 62px;align-items:end;column-gap:7px;row-gap:5px;padding:8px;border:1px solid #e1e9ee;border-radius:8px;background:#fff}.page-demand .demand-item-row label{display:grid;gap:2px;min-width:0;font-size:11px}.page-demand .demand-item-row input{width:100%;box-sizing:border-box}.page-demand .demand-item-row input[type="number"]{-moz-appearance:textfield;appearance:textfield}.page-demand .demand-item-row input[type="number"]::-webkit-inner-spin-button,.page-demand .demand-item-row input[type="number"]::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.page-demand .demand-item-row .product-combobox{margin-top:0;transform:none}.page-demand .demand-item-row .product-dropdown-toggle::before{transform:translateY(1px) rotate(45deg)}.page-demand .demand-item-row .product-dropdown-toggle[aria-expanded="true"]::before{transform:translateY(5px) rotate(225deg)}.page-demand .demand-item-actions{display:flex;justify-content:flex-end;min-width:62px;padding-left:2px}.page-demand .demand-item-actions button{width:60px;min-width:60px;min-height:34px;padding:6px;white-space:nowrap}.page-demand .demand-table .inline-note{display:block;width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;min-height:42px!important;margin:0;padding:5px 4px!important;resize:none!important;overflow:auto;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:inherit;font:inherit;line-height:1.45!important;outline:none}.page-demand .demand-table .inline-note:focus{background:#f2f9ff!important;box-shadow:inset 0 -1px 0 #7da0ca!important}.page-demand .design-field{padding:8px 10px;border:1px solid #d7e2e9;border-radius:10px;background:#f8fbfd}.page-demand .demand-table td[rowspan]{vertical-align:middle;background:#fbfdfe}.page-demand .demand-table .demand-detail-row+ .demand-detail-row td:not([rowspan]){border-top-color:#e7eef3}@media(max-width:1000px){.page-demand .modal-box:not(.order-modal-box){max-width:calc(100vw - 20px)}.page-demand .demand-item-row{grid-template-columns:repeat(4,minmax(110px,1fr))}.page-demand .demand-item-actions{grid-column:1/-1;justify-content:flex-end}}@media(max-width:600px){.page-demand .demand-items-heading h4{flex-wrap:wrap}.page-demand .demand-item-row{grid-template-columns:1fr 1fr}.page-demand .demand-item-row .product-field{grid-column:1/-1}}
.page-billing .billing-preview-table td[rowspan]{vertical-align:middle;background:#fbfdfe}.page-billing .billing-preview-table .demand-detail-row+.demand-detail-row td:not([rowspan]){border-top-color:#e7eef3}
.page-demand .demand-table th:nth-child(13),.page-demand .demand-table td:nth-child(13){width:180px!important;min-width:180px!important;max-width:180px!important}.page-demand .demand-table td:nth-child(13){padding:0 4px!important}.page-demand .demand-table td:nth-child(13) .inline-note{display:block;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:38px!important;max-height:none!important;margin:0;padding:5px 2px!important;resize:none!important;overflow:hidden!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:inherit;font-size:10px!important;line-height:1.4!important;outline:none;scrollbar-width:none}.page-demand .demand-table td:nth-child(13) .inline-note::-webkit-scrollbar{display:none}
.page-demand .demand-filter-actions{display:flex;flex:0 0 auto;align-items:center;gap:6px;margin-left:auto}.page-demand .demand-filter-actions .btn{min-width:74px;height:32px;box-sizing:border-box;padding:5px 11px;white-space:nowrap}.page-demand .demand-table tbody tr{height:60px}.page-demand .demand-table td{padding-top:7px;padding-bottom:7px}.page-demand .pager{position:static;width:max-content;margin:10px auto 0;transform:none}@media(max-width:900px){.page-demand .demand-filter-actions{grid-column:1/-1;justify-content:flex-end;margin-left:0}}@media(max-width:600px){.page-demand .demand-filter-actions{display:grid;grid-template-columns:repeat(3,1fr);width:100%}.page-demand .demand-filter-actions .btn{width:100%;min-width:0}}
.page-billing .billing-preview-table tfoot{position:static;display:table-footer-group;width:auto;height:24px}.page-billing .billing-preview-table tfoot tr{height:24px}.page-billing .billing-preview-table tfoot td{position:static;height:24px;padding:2px 12px;border-top:1px solid var(--accent);box-sizing:border-box;line-height:18px}.page-billing .billing-preview-table tfoot .billing-total-summary{font-size:12px;text-align:right;white-space:nowrap}@media(max-width:600px){.page-billing .billing-preview-table tfoot{width:auto}.page-billing .billing-preview-table tfoot .billing-total-summary{font-size:11px}}
.page-supplier-orders .inline-order-status{width:68px;min-width:68px;padding:4px 18px 4px 9px;border-radius:999px;font-size:11px;line-height:18px}.page-billing .billing-preview-table .state-chip{min-width:52px;justify-content:center;padding:4px 9px}.page-catalog:has(#new-project) .master-table th:nth-child(3),.page-catalog:has(#new-project) .master-table td:nth-child(3){min-width:100px}.page-catalog:has(#new-project) .master-table th:nth-child(4),.page-catalog:has(#new-project) .master-table td:nth-child(4){min-width:130px;white-space:normal}
.page-billing .billing-filter-card:has(select[name="supplier_id"]){display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));align-items:center}.page-billing .billing-filter-card:has(select[name="supplier_id"]) label{min-width:0}.page-billing .billing-filter-card:has(select[name="supplier_id"]) select,.page-billing .billing-filter-card:has(select[name="supplier_id"]) input{width:100%}.page-billing .billing-preview-table .design-state-chip{border-radius:999px}@media(max-width:720px){.page-billing .billing-filter-card:has(select[name="supplier_id"]){grid-template-columns:1fr}}
.page-demand .demand-table th:nth-child(12),.page-demand .demand-table td:nth-child(12),.page-demand .demand-table th:nth-child(14),.page-demand .demand-table td:nth-child(14),.page-demand .demand-table th:nth-child(15),.page-demand .demand-table td:nth-child(15),.page-demand .demand-table th:nth-child(16),.page-demand .demand-table td:nth-child(16),.page-demand .demand-table th:nth-child(17),.page-demand .demand-table td:nth-child(17){text-align:center}.page-demand .demand-table td:nth-child(12) .table-image-frame,.page-demand .demand-table td:nth-child(12) .upload-form{display:flex;justify-content:center;margin-right:auto;margin-left:auto}.page-demand .demand-table td:nth-child(14) .inline-design-status,.page-demand .demand-table td:nth-child(16) .order-chip{display:block;margin-right:auto;margin-left:auto}.page-demand .demand-table td:nth-child(17) .demand-actions{justify-content:center}
.orders-table td[rowspan]{vertical-align:middle;background:#fbfdfe}.orders-table .demand-detail-row+.demand-detail-row td:not([rowspan]){border-top-color:#e7eef3}
.page-supplier-orders .orders-table td[rowspan],.page-supplier-costs .orders-table td[rowspan]{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}.page-supplier-orders .orders-table td[rowspan] .delivery-image-cell{overflow:visible}
.page-supplier-orders .orders-table th:nth-child(4){width:145px}.page-supplier-orders .orders-table th:nth-child(10){width:220px}.page-supplier-orders .orders-table td:nth-child(10){max-width:220px;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important}.page-supplier-orders .orders-table td:nth-child(10) .product-cell{min-width:0;white-space:normal}.page-supplier-orders .orders-table td:nth-child(10) .product-cell strong,.page-supplier-orders .orders-table td:nth-child(10) .product-cell small{display:block;overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.page-catalog .product-catalog-button{display:inline-flex;min-width:112px;justify-content:center}.product-catalog-modal .modal-box{width:min(1100px,calc(100vw - 40px));max-width:1100px}.product-catalog-modal .modal-head h3,.product-catalog-modal .modal-head p{margin:0}.product-catalog-modal .modal-head p{margin-top:4px;color:#667085;font-size:12px}.product-catalog-list{max-height:70vh;overflow:auto;border:1px solid #dfe8ee;border-radius:10px}.product-catalog-list table{width:100%;min-width:860px;margin:0}.product-catalog-list th{position:sticky;top:0;z-index:1;background:#f5f9fc!important;color:#344054!important}.product-catalog-list th:first-child,.product-catalog-list td:first-child{width:180px;min-width:180px;white-space:normal;overflow-wrap:anywhere}.product-catalog-list td,.product-catalog-list th{padding:9px 10px;white-space:normal}.page-catalog:has(.product-catalog-modal) .master-table th:nth-child(1){width:auto}.page-catalog:has(.product-catalog-modal) .master-table th:nth-child(2),.page-catalog:has(.product-catalog-modal) .master-table th:nth-child(3){width:120px}.page-catalog:has(.product-catalog-modal) .master-table th:nth-child(4){width:160px}.success-banner{margin:0 0 12px;padding:10px 14px;border:1px solid #abefc6;border-radius:9px;background:#ecfdf3;color:#067647;font-weight:700}
.page-catalog .catalog-detail-button{display:inline-flex;min-width:112px;justify-content:center}.location-catalog-list table{min-width:900px}.location-catalog-list th:first-child,.location-catalog-list td:first-child{width:180px;min-width:180px}.location-catalog-list th:nth-child(2),.location-catalog-list td:nth-child(2){width:320px;min-width:320px;overflow-wrap:anywhere;word-break:break-word}.location-catalog-list th:nth-child(3),.location-catalog-list td:nth-child(3){width:120px}.location-catalog-list th:nth-child(4),.location-catalog-list td:nth-child(4){width:150px}
.site-footer{display:flex;align-items:center;justify-content:center;min-height:32px;margin:12px 0 8px;padding:0 12px;color:#667085;font-size:12px;text-align:center}.site-footer a{color:#667085;text-decoration:none}.site-footer a:hover{color:var(--brand);text-decoration:underline}
/* 2026-08-11 customer-demand status controls readability */
.page-demand .demand-filter-card select[name="status"]{width:180px!important;min-width:180px!important;padding-right:32px!important}
.page-demand .demand-table th:nth-child(14),.page-demand .demand-table td:nth-child(14){width:92px!important;min-width:92px!important}
.page-demand .demand-table td:nth-child(14) .inline-design-status{box-sizing:border-box;width:84px!important;min-width:84px!important;padding-right:22px!important;padding-left:8px!important;text-overflow:clip!important}

/* 供应商移动端最终布局：表格按内容行自适应，禁止固定高度压行；页面使用完整视口宽度。 */
@media(max-width:600px){
  html,body{width:100%;min-width:0;overflow-x:hidden}
  body.page-supplier-orders{padding-bottom:calc(64px + env(safe-area-inset-bottom));}
  .page-supplier-orders header{width:100%;box-sizing:border-box;padding:10px 10px 8px}
  .page-supplier-orders main{width:100%;max-width:none;box-sizing:border-box;margin:0;padding:0!important}
  .page-supplier-orders .list-head,.page-supplier-orders .section-toolbar{margin-left:0;margin-right:0;border-radius:0}
  .page-supplier-orders .orders-table-wrap{width:100vw;max-width:100vw;max-height:calc(100vh - 230px);box-sizing:border-box;margin:0;border-left:0;border-right:0;border-radius:0;overflow-x:auto;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .page-supplier-orders .orders-table{table-layout:fixed;min-width:1360px}
  .page-supplier-orders .orders-table tbody tr{height:auto!important;min-height:0!important;max-height:none!important}
  .page-supplier-orders .orders-table tbody td{height:auto!important;min-height:58px!important;max-height:none!important;padding:8px 6px!important;box-sizing:border-box;vertical-align:middle;overflow:hidden;line-height:1.35;white-space:nowrap}
  .page-supplier-orders .orders-table td[rowspan]{height:auto!important;min-height:0!important;overflow:visible}
  .page-supplier-orders .orders-table td:nth-child(3),.page-supplier-orders .orders-table td:nth-child(10),.page-supplier-orders .orders-table td:nth-child(14){white-space:normal!important;overflow-wrap:anywhere;word-break:break-word}
  .page-supplier-orders .delivery-image-cell,.page-supplier-orders .delivery-image-cell.has-photo{width:88px;height:66px;min-height:66px;margin:0 auto;box-sizing:border-box}
  .page-supplier-orders .delivery-preview,.page-supplier-orders .delivery-image-cell.has-photo .delivery-preview{height:64px}
  .page-supplier-orders .delivery-upload-button{min-height:58px;padding:5px 6px;font-size:11px;line-height:1.2}
  .page-supplier-orders .delivery-upload-button small{display:block;font-size:8px}
  .page-supplier-orders .inline-order-status{width:72px;min-width:72px;min-height:36px;padding:5px 15px 5px 6px}
}
.lightbox.is-open{display:grid}
@media(max-width:600px){
  .page-supplier-orders .section-toolbar{display:flex!important;flex-wrap:wrap;gap:8px;padding:8px 10px!important}
  .page-supplier-orders .section-toolbar .btn{display:inline-flex!important;width:auto!important;min-width:108px;flex:0 0 auto}
  .page-supplier-orders .section-toolbar .muted{width:100%}
  .page-supplier-orders .orders-table th:nth-child(1),.page-supplier-orders .orders-table td:nth-child(1){width:128px!important;min-width:128px!important}
  .page-supplier-orders .orders-table td:nth-child(1){white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;line-height:1.3}
  .page-supplier-orders .orders-table td:nth-child(1) *{white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}
}
