:root {
    --ink: #18222f;
    --muted: #6d7987;
    --line: #dde3e8;
    --paper: #ffffff;
    --canvas: #f3f6f7;
    --nav: #12242b;
    --nav-soft: #1c343b;
    --brand: #13a36f;
    --brand-dark: #0b8358;
    --warning: #d97706;
    --danger: #c2414b;
    --radius: 12px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-size: 16px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 18px 20px; display: flex; flex-direction: column; background: var(--nav); color: #dce8e7; z-index: 20; }
.brand, .login-brand { display: flex; align-items: center; gap: 12px; }
.brand { padding: 0 10px 30px; }
.brand-mark { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px 4px 10px 4px; color: white; background: var(--brand); font-weight: 800; box-shadow: 0 8px 22px rgba(19,163,111,.25); }
.brand strong, .login-brand strong { display: block; letter-spacing: .06em; }
.brand small, .login-brand small { display: block; margin-top: -2px; color: #789497; font-size: .67rem; letter-spacing: .14em; }
.nav-list { display: grid; gap: 6px; }
.nav-list a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 12px; border-radius: 9px; color: #a9bdbe; font-size: .92rem; transition: .18s ease; }
.nav-list a span { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #385158; border-radius: 7px; font-size: .75rem; }
.nav-list a:hover, .nav-list a.active { color: white; background: var(--nav-soft); }
.nav-list a.active span { border-color: var(--brand); background: var(--brand); }
.sidebar-user { margin-top: auto; padding: 18px 10px 2px; border-top: 1px solid #294047; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; min-width: 0; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #29464d; color: #dff8ed; font-weight: 700; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: .83rem; }.sidebar-user small { color: #789497; font-size: .7rem; }
.workspace { min-width: 0; }
.topbar { min-height: 92px; padding: 20px clamp(22px, 4vw, 48px); display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.86); backdrop-filter: blur(10px); }
.topbar h1 { margin: 0; font-size: 1.45rem; letter-spacing: -.02em; }.topbar p { margin: 2px 0 0; color: var(--muted); font-size: .83rem; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }.topbar-actions form { margin: 0; }
.text-link { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: .84rem; }.text-link:hover { color: var(--brand-dark); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.content { padding: 32px clamp(22px, 4vw, 48px) 64px; max-width: 1580px; margin: 0 auto; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(28, 50, 58, .045); }
.panel-head { min-height: 78px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.responsive-head { flex-wrap: wrap; }.responsive-head > * { min-width: 0; }.responsive-head > .inline-actions { margin-left: auto; }
.list-page-heading { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.list-filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }.list-filter-bar > .input { flex: 1 1 280px; max-width: 380px; }.list-filter-bar > label { display: inline-flex; align-items: center; gap: 8px; }
.panel-head h2, .section-title h2 { margin: 2px 0 0; font-size: 1.06rem; }.eyebrow { color: var(--brand-dark); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.metric-card { min-height: 150px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: white; position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; right: -25px; bottom: -35px; width: 100px; height: 100px; border-radius: 50%; background: #eef3f4; }
.metric-card.accent::after { background: #dff5ec; }.metric-card.warning::after { background: #fff0d8; }
.metric-card span, .metric-card small { display: block; color: var(--muted); font-size: .78rem; }.metric-card strong { display: block; margin: 13px 0 4px; font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1; letter-spacing: -.04em; }.metric-card strong i { color: #b8c2c9; font-style: normal; font-weight: 400; }
.dashboard-grid, .detail-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(260px, .8fr); gap: 20px; align-items: start; }
.status-panel { padding-bottom: 20px; }.status-row { margin: 0 20px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0f2; font-size: .88rem; }.status-row span { display: flex; align-items: center; gap: 10px; }.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-panel .button { margin: 20px 20px 0; width: calc(100% - 40px); }
.status { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 99px; font-size: .72rem; font-weight: 700; white-space: nowrap; background: #edf1f3; color: #59646e; }
.status-pending { background: #fff4d9; color: #9a6200; }.status-confirmed { background: #e2edff; color: #3062a0; }.status-processing { background: #e9e6ff; color: #604ca5; }.status-completed { background: #ddf5e9; color: #187450; }.status-cancelled { background: #f1f2f3; color: #747d86; }
.status-dot.status-pending { background: #e7a716; }.status-dot.status-confirmed { background: #4d82c8; }.status-dot.status-processing { background: #7962c5; }.status-dot.status-completed { background: #2c9f70; }.status-dot.status-cancelled { background: #939ba3; }
.table-wrap, .items-table-wrap { width: 100%; overflow-x: auto; }
.project-content table { width: 100%; border-collapse: collapse; font-size: .84rem; }.project-content th { padding: 13px 18px; text-align: left; color: var(--muted); background: #fafbfb; border-bottom: 1px solid var(--line); font-size: .72rem; letter-spacing: .03em; white-space: nowrap; }.project-content td { padding: 16px 18px; border-bottom: 1px solid #edf0f2; vertical-align: middle; }.project-content tbody tr:last-child td { border-bottom: 0; }.project-content tbody tr:hover { background: #fbfdfc; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }.table-link { color: var(--brand-dark); font-weight: 750; }.cell-note { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; }.text-warning { color: var(--warning); font-weight: 700; }code { font-family: "SFMono-Regular", Consolas, monospace; font-size: .76rem; color: #41505d; }
.row-actions { text-align: right; white-space: nowrap; }.row-actions a, .row-actions button { border: 0; padding: 4px 6px; background: transparent; color: var(--brand-dark); font-size: .78rem; }.row-actions form { display: inline; }.row-actions button { color: var(--danger); }
.empty { min-height: 180px; display: grid; place-content: center; text-align: center; color: var(--muted); }.empty strong, .empty span { display: block; }.empty strong { color: var(--ink); font-size: .95rem; }.empty span { margin-top: 5px; font-size: .78rem; }
.button { min-height: 40px; padding: 9px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; font-size: .82rem; transition: .15s ease; }.button.primary { background: var(--brand); color: white; box-shadow: 0 6px 16px rgba(19,163,111,.15); }.button.primary:hover { background: var(--brand-dark); transform: translateY(-1px); }.button.ghost { background: white; color: #40505c; border-color: var(--line); }.button.ghost:hover { border-color: #b8c5cc; }.button.small { min-height: 34px; padding: 6px 11px; font-size: .75rem; }.button.wide { width: 100%; }.button.danger-outline { background: white; color: var(--danger); border-color: #edc8cc; }
.search-form, .filter-form, .status-form { display: flex; gap: 8px; align-items: center; }.search-form input { width: min(360px, 42vw); }.filter-form input { width: min(320px, 34vw); }.status-form { margin-right: auto; }
.multi-check-filter{position:relative}.multi-check-filter summary{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px;border:1px solid #cfd8de;border-radius:8px;background:#fff;color:#3d4c57;cursor:pointer;font-size:.79rem;list-style:none}.multi-check-filter summary::-webkit-details-marker{display:none}.multi-check-filter summary::after{content:"▾";margin-left:auto;color:var(--muted)}.multi-check-filter[open] summary{border-color:var(--brand);box-shadow:0 0 0 3px rgba(19,163,111,.1)}.multi-check-filter summary strong{color:var(--brand-dark);font-size:.75rem;white-space:nowrap}.multi-check-filter-popover{position:absolute;z-index:30;top:calc(100% + 7px);left:0;width:320px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 16px 36px rgba(20,42,48,.16)}.multi-check-filter-head{padding:2px 3px 9px}.multi-check-filter-head strong{font-size:.8rem}.multi-check-filter-options{max-height:250px;overflow:auto;display:grid;gap:3px;padding:3px 0}.multi-check-filter-options label{display:flex;align-items:center;gap:9px;padding:8px;border-radius:7px;cursor:pointer;font-size:.79rem;font-weight:600}.multi-check-filter-options label:hover{background:#f0f8f4}.multi-check-filter-options span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-check-filter-options span small{margin-left:6px;color:var(--muted);font-weight:400}.multi-check-filter-options p{margin:6px;color:var(--muted);font-size:.73rem}.multi-check-filter-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 3px 0;border-top:1px solid var(--line)}.multi-check-filter-footer>small{color:var(--muted);font-size:.7rem;line-height:1.35}.multi-check-filter-footer>div{display:flex;gap:7px;flex:none}.multi-check-filter-footer .button{min-height:32px;padding:5px 9px}
.project-content input:not([type="checkbox"]):not([type="radio"]), .project-content select, .project-content textarea { width: 100%; min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid #cfd8de; border-radius: 8px; background: white; color: var(--ink); outline: 0; transition: border-color .15s, box-shadow .15s; }.project-content textarea { resize: vertical; }.project-content input:focus, .project-content select:focus, .project-content textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(19,163,111,.1); }
.project-content label { display: block; color: #3d4c57; font-size: .79rem; font-weight: 700; }.project-content label > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), .project-content label > select, .project-content label > textarea { display: block; margin-top: 7px; }.project-content label em { color: var(--danger); font-style: normal; }.project-content label small { color: var(--muted); font-weight: 400; }
.project-content input[type="checkbox"], .project-content input[type="radio"] { width: 17px; min-height: 17px; padding: 0; accent-color: var(--brand); }
.form-panel { padding: 26px; }.form-panel.narrow { max-width: 620px; }.form-grid { display: grid; gap: 18px; align-items: start; }.form-grid > * { min-width: 0; }.form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }.span-2 { grid-column: span 2; }.span-3 { grid-column: span 3; }.stack-form { display: grid; gap: 18px; }.form-actions { margin-top: 25px; display: flex; justify-content: flex-end; gap: 10px; }.check-row { display: flex; align-items: center; gap: 8px; }.check-row input { width: 17px; min-height: 17px; accent-color: var(--brand); }.money-input { position: relative; }.money-input span { position: absolute; left: 12px; top: 9px; color: var(--muted); }.money-input input { padding-left: 30px; }
.section-title { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }.section-title p { margin: 0; color: var(--muted); font-size: .76rem; }.section-title.between { justify-content: space-between; }.title-with-step { display: flex; align-items: center; gap: 13px; }.step { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #e3f5ed; color: var(--brand-dark); font-size: .7rem; font-weight: 800; }
.order-items-panel { margin-top: 18px; }.items-table { min-width: 1020px; }.items-table th:first-child { width: 245px; }.items-table th:nth-child(2) { width: 290px; }.items-table th:nth-child(3) { width: 80px; }.items-table th:nth-child(4), .items-table th:nth-child(5) { width: 115px; }.items-table input, .items-table select { min-height: 36px; padding: 7px 8px; font-size: .78rem; }.items-table input.compact { margin-top: 6px; }.item-amount { font-weight: 800; white-space: nowrap; }.icon-button { width: 30px; height: 30px; border-radius: 7px; border: 0; background: #f2f4f5; }.icon-button.danger { color: var(--danger); }
.order-summary-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.65fr); gap: 18px; align-items: start; }.totals-card { padding: 24px; }.total-row, .total-input { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #edf0f2; font-size: .83rem; }.total-row strong { font-variant-numeric: tabular-nums; }.total-input input { width: 140px; min-height: 35px; text-align: right; }.total-row.grand { min-height: 64px; }.total-row.grand strong { color: var(--brand-dark); font-size: 1.42rem; }.total-row.balance strong { color: var(--warning); }.totals-card .form-actions { margin-top: 20px; }
.detail-actions { display: flex; gap: 10px; margin-bottom: 18px; justify-content: flex-end; }.meta-grid { margin: 0; padding: 22px 24px; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; border-bottom: 1px solid var(--line); }.meta-grid dt { color: var(--muted); font-size: .71rem; }.meta-grid dd { margin: 4px 0 0; font-size: .86rem; font-weight: 700; }.order-note { margin: 20px 24px 24px; padding: 16px; border-radius: 9px; background: #f7f9f9; }.order-note strong { font-size: .78rem; }.order-note p { margin: 6px 0 0; white-space: pre-line; color: #53616c; font-size: .82rem; }.record-meta { margin: 18px 0; padding-top: 17px; color: var(--muted); font-size: .72rem; border-top: 1px solid var(--line); }
.alert { margin-bottom: 18px; padding: 13px 16px; border-radius: 9px; font-size: .82rem; }.alert.success { color: #146744; border: 1px solid #b9e4d1; background: #e9f8f1; }.alert.error { color: #9e303b; border: 1px solid #edc5ca; background: #fff0f1; }.alert ul { margin: 6px 0 0; padding-left: 20px; }
.order-field-image-input { display: grid; gap: 9px; }.order-field-image-input small { color: var(--muted); font-size: .72rem; }.order-field-image-current { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfb; color: var(--muted); font-size: .75rem; }.order-field-image-current img { width: 82px; height: 62px; display: block; border-radius: 6px; object-fit: cover; background: #eef3f4; }.order-field-image-current label { margin-left: auto; color: var(--danger); white-space: nowrap; }
.order-project-picker { min-height: 44px; max-height: 154px; overflow: auto; display: grid; gap: 5px; padding: 7px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; }.order-project-picker label { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }.order-project-picker label:hover { background: #f0fdf8; }.order-project-picker input { flex: 0 0 auto; }.order-project-picker span { min-width: 0; display: flex; justify-content: space-between; gap: 10px; width: 100%; }.order-project-picker strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }.order-project-picker small { flex: 0 0 auto; color: var(--muted); font-size: .68rem; }
.app-layer-message { position: fixed; z-index: 9999; top: 22px; right: 24px; display: flex; align-items: center; gap: 9px; min-width: 220px; max-width: min(420px, calc(100vw - 32px)); padding: 13px 17px; border: 1px solid #b9e4d1; border-radius: 9px; background: rgba(20, 36, 42, .96); color: white; box-shadow: 0 14px 38px rgba(12, 31, 36, .24); font-size: .84rem; opacity: 0; transform: translateY(-10px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.app-layer-message.is-visible { opacity: 1; transform: translateY(0); }
.app-layer-message.is-error { border-color: #e6aeb5; background: rgba(126, 40, 50, .96); }
.app-layer-message-icon { width: 20px; height: 20px; display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--brand); font-size: .72rem; font-weight: 900; }
.app-layer-message.is-error .app-layer-message-icon { background: #e56b76; }
.project-content label.check-row { display: flex; }
.legacy-content .page-title { display: none; }
.legacy-content .btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(19,163,111,.15); }
.legacy-content .btn-primary:hover { background: var(--brand-dark); }
.login-page .btn-primary { background: var(--brand); color: white; }
.login-page .btn-primary:hover { background: var(--brand-dark); }
.login-page .input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(19,163,111,.1); }
.legacy-content .btn-secondary { border-color: var(--line); color: #40505c; }
.legacy-content .btn-secondary:hover { border-color: #b8c5cc; background: #f7f9f9; }
.legacy-content .text-blue-600, .legacy-content .text-emerald-600 { color: var(--brand-dark); }
.legacy-content .text-blue-600:hover, .legacy-content .text-emerald-600:hover { color: var(--brand); }
.legacy-content .card { border-color: var(--line); box-shadow: 0 10px 30px rgba(28,50,58,.045); }
.legacy-content .input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(19,163,111,.1); }
.legacy-content input[type="checkbox"], .legacy-content input[type="radio"] { accent-color: var(--brand); }
.order-index-content { max-width: none; }
.legacy-content .table { font-size: .84rem; min-width: 700px; }
.legacy-content .order-list-table { width: 100%; min-width: 1520px; }
.legacy-content .order-list-table th,
.legacy-content .order-list-table td { padding-left: 12px; padding-right: 12px; vertical-align: middle; }
.legacy-content .order-list-table th:nth-child(1) { min-width: 145px; }
.legacy-content .order-list-table th:nth-child(2) { min-width: 125px; }
.legacy-content .order-list-table th:nth-child(3) { min-width: 145px; }
.legacy-content .order-list-table th:nth-child(4) { min-width: 135px; }
.legacy-content .order-list-table th:nth-child(5) { min-width: 105px; }
.legacy-content .order-list-table th:nth-child(6) { min-width: 125px; }
.legacy-content .order-list-table th:nth-child(7) { min-width: 95px; }
.legacy-content .order-list-table th:nth-child(8) { min-width: 165px; }
.legacy-content .order-list-table th:nth-child(9) { min-width: 60px; }
.legacy-content .order-list-table th:nth-child(10) { min-width: 235px; }
.legacy-content .order-list-table th:nth-child(11) { min-width: 65px; }
.legacy-content .order-list-table td:nth-child(5),
.legacy-content .order-list-table td:nth-child(7),
.legacy-content .order-list-table td:nth-child(9),
.legacy-content .order-list-table td:nth-child(11) { white-space: nowrap; }
.legacy-content .order-bulk-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 11px 18px; border-bottom: 1px solid var(--line); background: #fbfcfc; }
.legacy-content .order-bulk-bar label { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; }
.legacy-content .order-bulk-bar span { color: var(--muted); font-size: .75rem; }
.legacy-content .order-bulk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.legacy-content .order-bulk-actions button { min-height: 34px; padding: 6px 11px; font-size: .75rem; }
.legacy-content .order-bulk-actions button:disabled { opacity: .5; cursor: not-allowed; }
.legacy-content .order-number-cell { display: flex; align-items: flex-start; gap: 9px; }
.legacy-content .order-number-cell input { flex: none; margin-top: 4px; }
.legacy-content .order-row-actions { display: flex; align-items: center; gap: 10px; }
.legacy-content .order-row-actions form { margin: 0; }
.legacy-content .order-project-link { color: var(--brand-dark); font-weight: 650; }
.legacy-content .order-project-link:hover { color: var(--brand); }
.legacy-content .order-list-status { display: grid; grid-template-columns: minmax(110px,1fr); gap: 6px; align-items: stretch; margin: 0; }
.legacy-content .order-list-status .input { min-height: 34px; padding: 5px 8px; font-size: .78rem; }
.legacy-content .order-list-status[aria-busy="true"] { opacity: .65; }
.legacy-content .order-list-status[aria-busy="true"] select { pointer-events: none; }
.legacy-content .order-list-paid { min-width: 88px; margin: 0; }.legacy-content .order-list-paid .input { min-height: 34px; padding: 5px 8px; font-size: .78rem; }.legacy-content .order-list-paid[aria-busy="true"] { opacity: .65; }.legacy-content .order-list-paid[aria-busy="true"] select { pointer-events: none; }
.legacy-content .order-invoice-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.legacy-content .order-invoice-cell form { margin: 0; }
.legacy-content .invoice-state-yes { color: var(--brand-dark); font-weight: 700; }
.legacy-content .invoice-file-link { color: var(--brand-dark); font-size: .76rem; }
.legacy-content .invoice-upload-button { display: inline-flex; min-height: 30px; align-items: center; padding: 4px 9px; border: 1px solid #b9e4d1; border-radius: 7px; background: #edf8f3; color: var(--brand-dark); font-size: .75rem; font-weight: 700; cursor: pointer; }
.legacy-content form[aria-busy="true"] .invoice-upload-button { opacity: .55; pointer-events: none; }
.legacy-content .table th { padding: 13px 18px; color: var(--muted); background: #fafbfb; border-color: var(--line); font-size: .72rem; white-space: nowrap; }
.legacy-content .table td { padding: 16px 18px; border-color: #edf0f2; }
.legacy-content .order-filter-main { display: flex; gap: 10px; }
.legacy-content .order-filter-main .input { flex: 1; min-width: 0; }
.legacy-content .order-filter-details { margin-top: 14px; }
.legacy-content .order-filter-details summary { width: fit-content; color: var(--brand-dark); font-size: .84rem; font-weight: 700; cursor: pointer; }
.legacy-content .order-filter-details summary span { margin-left: 8px; color: var(--muted); font-size: .74rem; font-weight: 400; }
.legacy-content .order-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: center; }
.legacy-content .order-filter-grid > * { min-width: 0; }
.legacy-content .order-filter-details summary + .order-filter-grid { margin-top: 12px; }
.nav-backdrop[hidden] { display: none; }
.pagination { padding: 18px 22px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }.pagination a, .pagination .disabled { padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; }.pagination a { color: var(--brand-dark); }.pagination .disabled { opacity: .45; }
.list-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: #f8fbfb; color: var(--muted); font-size: .8rem; }.list-summary strong { color: var(--ink); font-variant-numeric: tabular-nums; }.project-list-summary { border-top: 1px solid var(--line); }.list-pagination { min-height: 58px; padding: 10px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }.list-pagination nav { margin-left: auto; }.list-pagination nav > div:first-child { display: none; }.list-pagination nav > div:last-child { display: flex; align-items: center; gap: 12px; }.list-pagination nav p { margin: 0; }.list-pagination nav span.relative, .list-pagination nav a.relative { border-radius: 7px; }
.compact-pagination { display: flex; align-items: center; gap: 5px; }.compact-pagination a, .compact-pagination span { min-width: 34px; min-height: 34px; padding: 6px 9px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--brand-dark); text-decoration: none; }.compact-pagination .current { border-color: var(--brand); background: var(--brand); color: #fff; }.compact-pagination .disabled, .compact-pagination .ellipsis { color: var(--muted); opacity: .55; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--nav); background-image: radial-gradient(circle at 78% 18%, rgba(19,163,111,.18), transparent 28%), linear-gradient(140deg, #12242b, #0c1b20); }.login-card { width: min(440px,100%); padding: 38px; border-radius: 16px; background: white; box-shadow: 0 28px 70px rgba(0,0,0,.25); }.login-brand { margin-bottom: 42px; }.login-heading { margin-bottom: 24px; }.login-heading h1 { margin: 5px 0 4px; font-size: 1.85rem; letter-spacing: -.035em; }.login-heading p { margin: 0; color: var(--muted); font-size: .86rem; }

@media (min-width: 761px) {
    .legacy-content .order-filter-details[open] summary { display: none; }
    .legacy-content .order-filter-details[open] .order-filter-grid { margin-top: 0; }
}

@media (min-width: 1900px) {
    .legacy-content .order-list-table { min-width: 0; table-layout: fixed; }
    .legacy-content .order-list-table col:nth-child(1) { width: 9.5%; }
    .legacy-content .order-list-table col:nth-child(2) { width: 8.5%; }
    .legacy-content .order-list-table col:nth-child(3) { width: 10%; }
    .legacy-content .order-list-table col:nth-child(4) { width: 9%; }
    .legacy-content .order-list-table col:nth-child(5) { width: 7%; }
    .legacy-content .order-list-table col:nth-child(6) { width: 9%; }
    .legacy-content .order-list-table col:nth-child(7) { width: 7%; }
    .legacy-content .order-list-table col:nth-child(8) { width: 13%; }
    .legacy-content .order-list-table col:nth-child(9) { width: 4.5%; }
    .legacy-content .order-list-table col:nth-child(10) { width: 17.5%; }
    .legacy-content .order-list-table col:nth-child(11) { width: 5%; }
}

@media (max-width: 1080px) {
    .metric-grid { grid-template-columns: repeat(2,1fr); }
    .dashboard-grid, .detail-grid { grid-template-columns: 1fr; }
    .order-summary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .nav-backdrop:not([hidden]) { position: fixed; inset: 0; display: block; z-index: 19; border: 0; background: rgba(10, 27, 32, .48); }
    .app-shell { display: block; }.sidebar { position: fixed; left: -260px; width: 240px; transition: left .2s ease; box-shadow: 18px 0 50px rgba(0,0,0,.18); }.sidebar.open { left: 0; }.nav-toggle { display: inline-grid; place-items: center; }
    .topbar { min-height: 78px; padding: 14px 18px; }.topbar h1 { font-size: 1.18rem; }.topbar p { display: none; }.topbar-actions { gap: 10px; }.topbar-actions .text-link:first-child { display: none; }
    .content { padding: 20px 14px 48px; }.metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.metric-card { min-height: 128px; padding: 17px; }.metric-card strong { font-size: 1.45rem; }
    .responsive-head { align-items: stretch; flex-direction: column; }.responsive-head .button.primary { align-self: flex-start; }.search-form, .filter-form { width: 100%; flex-wrap: wrap; }.search-form input, .filter-form input { width: 100%; flex: 1 0 100%; }
    .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }.span-2, .span-3 { grid-column: auto; }.form-panel { padding: 20px 16px; }.section-title.between { align-items: flex-start; }.meta-grid { grid-template-columns: repeat(2,1fr); }
    .detail-actions { align-items: stretch; flex-direction: column; }.status-form { width: 100%; }.status-form select { flex: 1; }.login-card { padding: 28px 22px; }.login-brand { margin-bottom: 32px; }
    .legacy-content .order-filter-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
    .metric-grid { grid-template-columns: 1fr; }.metric-card { min-height: 116px; }.topbar-actions { display: none; }.section-title.between { display: grid; }.meta-grid { grid-template-columns: 1fr; }
}
