:root {
    --bg: #eef6fb;
    --bg-strong: #e3f0f9;
    --card: #ffffff;
    --card-soft: #f7fbfe;
    --text: #20364f;
    --muted: #6d849d;
    --line: #d7e7f3;
    --primary: #77b2df;
    --primary-dark: #5a98c9;
    --primary-soft: #e9f4fc;
    --danger: #c15454;
    --danger-soft: #fdeeee;
    --success: #2c6b49;
    --success-soft: #ebf8ef;
    --shadow: 0 18px 48px rgba(95, 135, 173, 0.12);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
a { color: inherit; }

body.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(106, 169, 216, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(180, 214, 239, 0.3), transparent 28%),
        linear-gradient(135deg, #f8fbfe 0%, #eef6fb 48%, #e8f2fa 100%);
    color: #1e3550;
    display: grid;
    place-items: center;
    padding: 24px;
}
.login-shell {
    width: min(100%, 940px);
    display: grid;
    grid-template-columns: 1fr 0.88fr;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(64, 111, 156, 0.1);
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(221, 235, 246, 0.82);
    position: relative;
}
.login-side {
    padding: 48px 40px;
    background:
        linear-gradient(160deg, rgba(126, 180, 225, 0.92), rgba(98, 154, 202, 0.86)),
        linear-gradient(120deg, #91c2ea, #6aa9d8);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.login-side::after {
    content: "";
    position: absolute;
    right: -56px;
    bottom: -56px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0) 72%);
}
.login-side h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.12;
    position: relative;
    z-index: 1;
}
.login-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 13px;
    letter-spacing: 0.1em;
    width: fit-content;
    position: relative;
    z-index: 1;
}
.login-panel {
    padding: 42px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-panel form {
    width: 100%;
}
.login-panel h2 {
    margin: 0 0 18px;
    font-size: 26px;
}
.login-form-shell {
    width: min(100%, 360px);
}
.login-form .field:last-of-type {
    margin-bottom: 18px;
}
.captcha-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 12px;
    align-items: end;
}
.captcha-box {
    height: 48px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, #e4f2fc, #f8fbfe),
        repeating-linear-gradient(45deg, rgba(106, 169, 216, 0.08) 0 8px, rgba(255,255,255,0.22) 8px 16px);
    border: 1px dashed #a8c9e3;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3em;
    font-size: 22px;
    font-weight: 800;
    color: #4c7fa9;
    user-select: none;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}
.notice {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
}
.notice.success {
    background: #ebf8ef;
    color: #24613a;
}
.notice.error {
    background: #fdecec;
    color: #8d2f2f;
}
.field {
    margin-bottom: 14px;
}
label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    color: #4f6e8c;
}
input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    min-height: 44px;
    padding: 10px 14px;
    font: inherit;
    color: var(--text);
    background: #fbfdff;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(119, 178, 223, 0.14);
    background: #ffffff;
}
input:disabled, textarea:disabled, select:disabled {
    background: #f2f7fb;
    color: #6e859c;
    opacity: 1;
    cursor: not-allowed;
}
button {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 15px 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.login-panel button {
    width: 100%;
    min-height: 48px;
}
button,
.btn,
.btn-soft,
.btn-danger {
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
button:hover,
.btn:hover,
.btn-soft:hover,
.btn-danger:hover {
    transform: translateY(-1px);
}

body.app-body {
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(132, 186, 226, 0.26), transparent 28%),
        linear-gradient(180deg, #f8fbfe 0%, var(--bg) 100%);
}
.shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}
.mobile-toggle {
    display: none !important;
    padding: 9px 12px;
    min-width: 72px;
}
.sidebar {
    background: linear-gradient(180deg, #d5eafb 0%, #c2dff5 100%);
    border-right: 1px solid rgba(255,255,255,0.5);
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.brand {
    padding: 14px 14px 18px;
}
.brand h1 {
    margin: 14px 0 8px;
    font-size: 24px;
    line-height: 1.2;
}
.sidebar-menu {
    margin-top: 12px;
    border: 1px solid rgba(255,255,255,0.54);
    border-radius: 18px;
    background: rgba(255,255,255,0.22);
    padding: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.24);
}
.user-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.24);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}
.nav {
    margin-top: 18px;
    display: grid;
    gap: 4px;
    flex: 1;
    padding: 4px 0;
}
.nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 36px;
    padding: 8px 12px;
    color: #4f7697;
    background: rgba(255,255,255,0.18);
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    line-height: 1.2;
    position: relative;
}
.desktop-nav {
    margin-top: 0;
    gap: 2px;
    padding: 0;
    flex: 0;
}
.desktop-nav a {
    min-height: 40px;
    justify-content: flex-start;
    padding: 10px 14px 10px 18px;
    background: transparent;
    border-radius: 12px;
    color: #4d7496;
    text-align: left;
    transition: background .16s ease, color .16s ease;
}
.desktop-nav a:hover {
    background: rgba(255,255,255,0.36);
    color: #315f86;
}
.nav a.active {
    background: rgba(255,255,255,0.72);
    color: #2b5b82;
    box-shadow: 0 6px 14px rgba(118, 169, 209, 0.12);
}
.nav a.active::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 9px;
    bottom: 9px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #6eaede, #4f95c9);
}
.nav-footer {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}
.nav-footer .btn-soft {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
}
.mobile-menu {
    display: none;
}
.main {
    min-width: 0;
    padding: 18px 20px 24px;
}
.page-content {
    width: min(100%, 1480px);
    margin: 0 auto;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #a6d0ef, #7fb8e2);
    color: #fff;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.topbar::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 72%);
    pointer-events: none;
}
.topbar h2 {
    margin: 0;
    font-size: clamp(22px, 2.8vw, 32px);
    line-height: 1.15;
}
.topbar-title {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
}
.topbar-subtitle {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,0.84);
    font-size: 13px;
    line-height: 1.5;
}
.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    position: relative;
    flex-shrink: 0;
}
.btn, .btn-soft, .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    border-radius: 13px;
    padding: 11px 15px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.btn {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 8px 18px rgba(109, 164, 209, 0.16);
}
.btn-soft {
    color: #48789d;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(255,255,255,0.56);
}
.btn-soft:hover {
    background: rgba(255,255,255,0.88);
    border-color: #d4e6f3;
}
.btn-danger {
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid #f4d1d1;
}
.btn-danger:hover {
    background: #fbe5e5;
    border-color: #efc4c4;
}
.flash {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    border: 1px solid transparent;
}
.flash.success {
    background: var(--success-soft);
    color: var(--success);
    border-color: #d9efdf;
}
.flash.error {
    background: #fdecec;
    color: #8d2f2f;
    border-color: #f7d3d3;
}
.stats {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.stat {
    background: var(--card);
    border-radius: 22px;
    padding: 18px 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(215, 231, 243, 0.72);
    background-image: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,251,254,0.92));
}
.stat small {
    display: block;
    color: var(--muted);
    margin-bottom: 10px;
}
.stat strong {
    font-size: 28px;
    color: #2d5d86;
}
.progress-wrap {
    margin-top: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, #f6fbfe);
    box-shadow: var(--shadow);
    padding: 20px;
    border: 1px solid #e1edf6;
}
.progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.progress-track {
    position: relative;
    height: 18px;
    border-radius: 999px;
    overflow: hidden;
    background: #deedf8;
}
.progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #8cd3ff 0%, #6ab6ec 45%, #5fdbb3 100%);
    background-size: 200% 100%;
    animation: flowBar 4s linear infinite;
}
.progress-bar.normal {
    background: linear-gradient(90deg, #8cd3ff 0%, #6ab6ec 45%, #5fdbb3 100%);
}
.progress-bar.near {
    background: linear-gradient(90deg, #7bc6ff 0%, #49cfd5 55%, #53d9a7 100%);
}
.progress-bar.done {
    background: linear-gradient(90deg, #67d9b5 0%, #41c78e 50%, #2ab36d 100%);
}
.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}
.progress-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f4f9fd;
    border: 1px solid #deebf5;
}
.mini-order-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.mini-order {
    border-radius: 18px;
    border: 1px solid #d9ebf8;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f9fd 100%);
    padding: 14px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mini-order:hover {
    transform: translateY(-1px);
    border-color: #c9e1f2;
    box-shadow: 0 12px 24px rgba(110, 154, 192, 0.12);
}
.mini-order strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: #2f628c;
}
.mini-order span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
.notice-panel {
    border-radius: 18px;
    background: #f0f8ff;
    border: 1px solid #d9ebf8;
    padding: 14px 16px;
    color: #547998;
    font-size: 14px;
    line-height: 1.8;
}
.dashboard-notice {
    margin-top: 14px;
}
@keyframes flowBar {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.content-grid {
    margin-top: 16px;
    display: grid;
    gap: 16px;
    width: 100%;
}
.card {
    background: var(--card);
    border-radius: 22px;
    padding: 21px 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(215, 231, 243, 0.78);
}
.card h3 {
    margin: 0 0 14px;
    font-size: 19px;
    line-height: 1.2;
}
.card p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.section-head h3 {
    margin: 0;
}
.section-title {
    display: grid;
    gap: 4px;
}
.form-section-head {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e3edf6;
}
.section-subtitle {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}
.result-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #fbfdff;
    border: 1px solid #e3edf6;
}
.summary-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #f3f9fd;
    border: 1px solid #dcecf7;
    color: #5a7894;
    font-size: 12px;
    line-height: 1.4;
}
.inline-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef7fd;
    border: 1px solid #d6eaf8;
    color: #5f7f9e;
    font-size: 13px;
    white-space: nowrap;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.work-order-form,
.account-form,
.settings-form {
    display: grid;
    gap: 16px;
}
.field-full {
    grid-column: 1 / -1;
}
textarea {
    min-height: 104px;
    resize: vertical;
}
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.actions .btn,
.actions .btn-soft,
.actions .btn-danger {
    width: auto;
    min-width: 110px;
}
.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.toolbar-actions form {
    margin: 0;
}
.toolbar-actions .btn-soft,
.toolbar-actions .btn,
.toolbar-actions .btn-danger {
    min-height: 38px;
}
.filter-actions .btn-soft,
.toolbar-actions .btn-soft {
    background: #f4f9fd;
    border-color: #dcebf6;
}
.table-toolbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}
.list-toolbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.history-toolbar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.logs-toolbar {
    grid-template-columns: 180px minmax(0, 1fr) 140px;
}
.field-wide {
    grid-column: auto;
}
.table-wrap {
    margin-top: 14px;
    overflow: auto;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
}
.table-card {
    padding: 18px 18px 20px;
}
.list-card .table-toolbar,
.history-card .table-toolbar,
.logs-card .table-toolbar {
    gap: 10px;
}
.list-card .table-toolbar > div,
.history-card .table-toolbar > div,
.logs-card .table-toolbar > div {
    display: grid;
    gap: 6px;
}
.list-card .toolbar-actions,
.history-card .toolbar-actions {
    gap: 8px;
}
.quick-months {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.quick-months .btn-soft {
    min-width: 86px;
}
.list-card .inline-hint {
    padding: 7px 11px;
}
.list-card .table-wrap,
.history-card .table-wrap,
.logs-card .table-wrap {
    margin-top: 12px;
}
.list-card th,
.list-card td,
.history-card th,
.history-card td,
.logs-card th,
.logs-card td {
    padding: 10px 9px;
}
.list-card .inline-actions .btn-soft,
.list-card .inline-actions .btn-danger,
.history-card .inline-actions .btn-soft,
.history-card .inline-actions .btn-danger {
    min-width: 68px;
    min-height: 34px;
    padding: 9px 12px;
    font-size: 13px;
    box-shadow: none;
}
.mobile-list {
    display: none;
    margin-top: 14px;
    gap: 12px;
}
.mobile-card {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 14px;
    transition: box-shadow .18s ease, border-color .18s ease;
}
.mobile-card:hover {
    border-color: #cfe4f3;
    box-shadow: 0 14px 26px rgba(104, 148, 186, 0.12);
}
.list-card .mobile-card,
.history-card .mobile-card,
.logs-card .mobile-card {
    padding: 13px;
}
.mobile-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}
.mobile-card.muted {
    display: grid;
    place-items: center;
    min-height: 112px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcfe 100%);
}
.mobile-card .meta {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
.mobile-card-actions {
    margin-top: 12px;
}
.list-card .mobile-card-actions,
.history-card .mobile-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.list-card .mobile-card-actions .btn-soft,
.list-card .mobile-card-actions .btn-danger,
.history-card .mobile-card-actions .btn-soft,
.history-card .mobile-card-actions .btn-danger {
    width: 100%;
    min-width: 0;
    min-height: 40px;
}
table {
    width: 100%;
    min-width: 940px;
    border-collapse: collapse;
}
th, td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    font-size: 14px;
    vertical-align: middle;
}
th {
    background: var(--card-soft);
    position: sticky;
    top: 0;
    height: 44px;
    font-size: 13px;
    letter-spacing: .02em;
    color: #557492;
    font-weight: 700;
}
tbody tr:hover {
    background: #f8fbfe;
}
.text-left {
    text-align: left;
}
.logs-table {
    min-width: 760px;
}
.inline-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.inline-actions form {
    display: inline-flex;
}
.muted {
    color: var(--muted);
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.quick-link {
    display: block;
    padding: 18px;
    border-radius: 18px;
    text-decoration: none;
    background: var(--primary-soft);
    border: 1px solid #d7e9f8;
    color: #44739a;
}
.quick-link strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
}
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(42, 72, 104, 0.36);
    backdrop-filter: blur(4px);
    z-index: 50;
}
.modal.show {
    display: flex;
}
.modal-card {
    width: min(760px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 54px rgba(56, 92, 124, 0.22);
    padding: 20px 22px 22px;
    border: 1px solid rgba(217, 233, 244, 0.86);
    scrollbar-gutter: stable;
}
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1edf6;
    position: sticky;
    top: -20px;
    z-index: 2;
    background: #fff;
    padding-top: 2px;
}
.modal-head h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}
.modal-title {
    display: grid;
    gap: 4px;
}
.modal-subtitle {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
.close-btn {
    width: auto;
    padding: 10px 12px;
    background: #f4f9fd;
    border-color: #dcebf6;
    color: #4d81a9;
}
.edit-modal-card {
    width: min(860px, 100%);
}
.modal-form-shell {
    padding-top: 2px;
}
.modal-form-shell .work-order-form {
    gap: 18px;
}
.edit-modal-card .work-order-form .actions {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid #e3edf6;
    justify-content: flex-end;
}
.edit-modal-card .work-order-form .actions .btn {
    min-width: 120px;
}
.confirm-card {
    width: min(520px, 100%);
}
.confirm-body {
    display: grid;
    gap: 14px;
}
.confirm-body p {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
}
.confirm-summary {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f4f9fd;
    border: 1px solid #dcebf6;
    color: #527492;
    font-size: 14px;
    margin-bottom: 0;
}
.confirm-actions {
    justify-content: flex-end;
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid #e3edf6;
}
.confirm-actions .btn-soft,
.confirm-actions .btn-danger {
    width: auto;
    min-width: 110px;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.list-card .pagination,
.history-card .pagination,
.logs-card .pagination {
    margin-top: 14px;
    padding-top: 4px;
}
.pagination-meta {
    color: var(--muted);
    font-size: 13px;
    padding-right: 6px;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 36px;
    padding: 7px 11px;
    border-radius: 12px;
    text-decoration: none;
    color: #4a779b;
    background: #f3f9fd;
    border: 1px solid #dbeaf5;
    font-weight: 700;
}
.page-link.active {
    color: #2f628c;
    background: #dceefe;
    border-color: #bfdcf2;
}
.page-link.disabled {
    opacity: .45;
    pointer-events: none;
}
.page-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.page-jump label {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}
.page-jump input {
    width: 78px;
    padding: 7px 10px;
    border-radius: 12px;
}
.page-jump .btn-soft {
    background: #f4f9fd;
    border-color: #dcebf6;
}
.page-jump-btn {
    width: auto;
    min-height: 36px;
    padding: 7px 11px;
}
.view-dashboard .dashboard-grid {
    grid-template-columns: 1fr;
}
.view-dashboard .dashboard-card {
    min-height: 100%;
}
.dashboard-section-head {
    margin-bottom: 2px;
}
.dashboard-month-chip {
    white-space: nowrap;
}
.view-dashboard .recent-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}
.view-dashboard .progress-head strong {
    font-size: 22px;
    color: #2e628a;
    letter-spacing: -0.02em;
}
.view-dashboard .notice-panel {
    margin-top: 14px;
}
.view-dashboard .recent-card .mini-order-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.view-create .work-order-form .form-grid,
.view-account .account-form .form-grid,
.view-settings .settings-form .form-grid {
    row-gap: 16px;
    column-gap: 16px;
}
.view-create .create-grid,
.view-import .import-grid,
.view-account .account-grid,
.view-settings .settings-grid {
    grid-template-columns: 1fr;
    width: 100%;
}
.view-create .form-card,
.view-import .form-card,
.view-account .form-card,
.view-settings .form-card {
    max-width: none;
    margin: 0;
    width: 100%;
    justify-self: stretch;
}
.view-create .create-card,
.view-import .import-card,
.view-account .account-card,
.view-settings .settings-card {
    max-width: none;
    width: 100%;
    padding: 24px 26px;
}
.view-create .create-card .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.view-import .import-card .form-grid {
    grid-template-columns: 1fr;
}
.view-account .account-card .form-grid,
.view-settings .settings-card .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.view-list .table-toolbar,
.view-history .table-toolbar,
.view-logs .table-toolbar {
    padding: 12px;
    border-radius: 18px;
    background: #f8fbfe;
    border: 1px solid #deebf5;
}
.filter-actions {
    justify-content: flex-start;
}
.view-list .section-head,
.view-history .section-head,
.view-logs .section-head {
    margin-bottom: 12px;
}
.view-list .section-head,
.view-history .section-head {
    align-items: flex-start;
}
.view-list .toolbar-actions,
.view-history .toolbar-actions,
.view-logs .toolbar-actions {
    justify-content: flex-end;
}
.view-list .filter-actions,
.view-history .filter-actions,
.view-logs .actions {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e6eff7;
}
.view-list .actions,
.view-history .actions,
.view-logs .actions {
    margin-top: 12px;
}
.view-account .form-grid,
.view-settings .form-grid {
    gap: 16px;
}
.view-create .create-card h3,
.view-import .import-card h3,
.view-account .account-card h3,
.view-settings .settings-card h3 {
    margin-bottom: 16px;
}
.view-create .work-order-form,
.view-import .import-form,
.view-account .account-form,
.view-settings .settings-form {
    gap: 18px;
}
.view-create .actions,
.view-import .actions,
.view-account .actions,
.view-settings .actions {
    margin-top: 2px;
    padding-top: 14px;
    border-top: 1px solid #e6eff7;
    justify-content: flex-end;
}
.view-create .actions .btn,
.view-account .actions .btn,
.view-settings .actions .btn {
    min-width: 128px;
}
.view-list .list-card h3,
.view-history .history-card h3,
.view-logs .logs-card h3 {
    margin-bottom: 10px;
}
.view-list .table-card,
.view-history .table-card,
.view-logs .table-card {
    max-width: 1480px;
}
.view-list .result-summary,
.view-history .result-summary,
.view-logs .result-summary {
    margin-bottom: 2px;
}
.confirm-body form {
    margin: 0;
}
.confirm-summary span {
    line-height: 1.5;
}
.view-logs .logs-table th,
.view-logs .logs-table td {
    font-size: 13px;
}
.view-logs .mobile-card strong {
    color: #365f83;
}
@media (max-width: 860px) {
    .login-side {
        padding: 28px 24px 18px;
        min-height: 170px;
    }
    .login-panel {
        padding: 24px 22px 28px;
    }
    .login-side h1 {
        font-size: 28px;
    }
    .login-form-shell {
        width: 100%;
    }
}
@media (max-width: 1080px) {
    .shell {
        grid-template-columns: 1fr;
    }
    .mobile-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
    .sidebar {
        display: none;
    }
    .mobile-menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: min(78vw, 260px);
        max-height: min(70vh, 480px);
        overflow: auto;
        background: rgba(255,255,255,0.98);
        border: 1px solid #d8e8f4;
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(58, 95, 130, 0.18);
        padding: 12px;
        z-index: 25;
    }
    .shell.menu-open .mobile-menu {
        display: block;
    }
    .mobile-menu .nav,
    .mobile-menu .nav-footer {
        margin-top: 0;
        grid-template-columns: 1fr;
    }
    .mobile-menu .nav-footer {
        margin-top: 10px;
    }
    .mobile-menu .nav {
        gap: 0;
        padding: 0;
        background: transparent;
    }
    .mobile-menu .nav a {
        display: block;
        min-height: auto;
        padding: 11px 12px;
        background: transparent;
        border: 0;
        border-bottom: 1px solid #e4eef6;
        border-radius: 0;
        text-align: left;
        font-size: 14px;
        box-shadow: none;
    }
    .mobile-menu .nav a.active {
        background: rgba(116, 173, 219, 0.14);
        color: #2f5f86;
    }
    .mobile-menu .nav a.active::before {
        display: none;
    }
    .mobile-menu .nav a:last-child {
        border-bottom: 0;
    }
    .mobile-list {
        display: grid;
    }
    .table-wrap {
        display: none;
    }
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .table-toolbar, .form-grid, .quick-grid, .logs-toolbar,
    .view-create .create-card .form-grid,
    .view-account .account-card .form-grid,
    .view-settings .settings-card .form-grid {
        grid-template-columns: 1fr;
    }
    .list-toolbar,
    .history-toolbar {
        grid-template-columns: 1fr;
    }
    .mini-order-grid,
    .view-dashboard .recent-card .mini-order-grid {
        grid-template-columns: 1fr;
    }
    .section-head {
        align-items: flex-start;
    }
}
@media (max-width: 860px) {
    .login-shell {
        grid-template-columns: 1fr;
    }
    .login-side, .login-panel {
        padding: 28px 22px;
    }
}
@media (max-width: 720px) {
    .main {
        padding: 12px;
    }
    .topbar {
        flex-direction: row;
        align-items: flex-start;
        padding: 16px;
        position: relative;
    }
    .topbar h2 {
        font-size: 24px;
    }
    .topbar-subtitle {
        font-size: 12px;
    }
    .topbar-actions {
        margin-left: auto;
    }
    .user-badge {
        display: none;
    }
    .stats {
        grid-template-columns: 1fr;
    }
    .card,
    .view-create .create-card,
    .view-account .account-card,
    .view-settings .settings-card,
    .table-card {
        padding: 18px 16px;
    }
    .section-subtitle {
        font-size: 12px;
    }
    .form-section-head {
        gap: 8px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }
    .toolbar-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .inline-hint {
        white-space: normal;
    }
    .result-summary {
        display: grid;
        gap: 6px;
    }
    .summary-chip {
        min-height: 30px;
        padding: 5px 10px;
        font-size: 11px;
        justify-content: flex-start;
    }
    .dashboard-month-chip {
        width: 100%;
        white-space: normal;
    }
    .progress-meta span {
        width: 100%;
    }
    .form-section-head .summary-chip {
        width: 100%;
    }
    .pagination {
        justify-content: flex-start;
        gap: 6px;
    }
    .pagination-meta {
        width: 100%;
    }
    .page-jump {
        width: 100%;
        justify-content: flex-start;
    }
    .page-link {
        min-width: 36px;
        min-height: 34px;
        padding: 6px 10px;
    }
    .modal-card {
        padding: 18px 16px 18px;
    }
    .modal {
        align-items: flex-end;
        padding: 10px;
    }
    .modal-head {
        align-items: flex-start;
        top: -18px;
    }
    .modal-subtitle {
        font-size: 11px;
    }
    .list-card .mobile-card-actions,
    .history-card .mobile-card-actions {
        grid-template-columns: 1fr 1fr;
    }
    .quick-months {
        gap: 6px;
    }
    .quick-months .btn-soft {
        min-width: 0;
    }
    .actions .btn,
    .actions .btn-soft,
    .actions .btn-danger {
        min-width: 0;
        flex: 1 1 100%;
    }
    .confirm-actions .btn-soft,
    .confirm-actions .btn-danger,
    .list-card .mobile-card-actions .btn-soft,
    .list-card .mobile-card-actions .btn-danger,
    .history-card .mobile-card-actions .btn-soft,
    .history-card .mobile-card-actions .btn-danger {
        flex: 1 1 calc(50% - 6px);
    }
    table {
        min-width: 860px;
    }
    .modal-card {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 18px;
        border-radius: 18px;
    }
    .edit-modal-card .work-order-form .actions,
    .confirm-actions {
        padding-top: 12px;
    }
}
