:root {
    --bg: #f4f7fb;
    --bg-soft: #eef3f8;
    --panel: #ffffff;
    --panel-soft: #f8fbfd;
    --line: #d8e2ec;
    --text: #18222d;
    --muted: #617283;
    --sidebar: #141c24;
    --sidebar-soft: #1c2631;
    --sidebar-text: #d7e2ee;
    --accent: #18a26e;
    --accent-strong: #0f8559;
    --accent-soft: #e7f7f1;
    --amber: #f0a43a;
    --amber-soft: #fff4e5;
    --danger: #db5b57;
    --danger-soft: #ffeceb;
    --success: #1f9d68;
    --shadow: 0 18px 40px rgba(20, 35, 52, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at top left, rgba(24, 162, 110, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(240, 164, 58, 0.08), transparent 22%),
        linear-gradient(180deg, #f6f8fb 0%, #edf2f7 100%);
    color: var(--text);
    font: 14px/1.6 "Microsoft YaHei", "PingFang SC", sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.console-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: clamp(220px, 18vw, 276px) minmax(0, 1fr);
}

.console-sidebar {
    padding: 24px 18px;
    background:
        radial-gradient(circle at top left, rgba(24, 162, 110, 0.18), transparent 22%),
        linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-soft) 100%);
    color: var(--sidebar-text);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.brand-mark {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: block;
    background:
        radial-gradient(circle at 16px 14px, rgba(255, 255, 255, 0.2), transparent 18px),
        linear-gradient(135deg, var(--accent), #22c28a);
    box-shadow: 0 16px 30px rgba(24, 162, 110, 0.28);
    overflow: hidden;
    isolation: isolate;
}

.brand-mark::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 8px;
    width: 18px;
    height: 25px;
    border-radius: 8px 8px 7px 7px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 248, 255, 0.96));
    border-bottom: 6px solid #dfeff7;
    box-shadow:
        inset 0 0 0 1px rgba(8, 38, 51, 0.08),
        0 6px 14px rgba(8, 38, 51, 0.18);
    z-index: 1;
}

.brand-mark::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 14px;
    width: 8px;
    height: 11px;
    background: linear-gradient(180deg, #1eb983 0%, #0f8559 100%);
    clip-path: polygon(50% 0, 100% 42%, 68% 42%, 100% 100%, 28% 58%, 54% 58%);
    box-shadow: 10px 11px 0 -7px rgba(255, 255, 255, 0.94);
    pointer-events: none;
    z-index: 2;
}

.brand-copy {
    min-width: 0;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-subtitle {
    color: rgba(215, 226, 238, 0.72);
    font-size: 12px;
}

.console-nav {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
}

.console-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    color: rgba(215, 226, 238, 0.78);
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.console-nav-link:hover,
.console-nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(2px);
}

.console-nav-link.nav-locked {
    opacity: .62;
}

.console-nav-link.pending {
    opacity: 1;
    color: #fff;
    background: rgba(24, 162, 110, 0.22);
}

.sidebar-card {
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-card-title {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sidebar-card-copy {
    color: rgba(215, 226, 238, 0.74);
}

.console-main {
    min-width: 0;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: clamp(12px, 1.6vw, 20px);
}

.console-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(216, 226, 236, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.page-eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-title {
    margin: 8px 0 6px;
    font-size: 30px;
    line-height: 1.2;
}

.page-desc {
    margin: 0;
    color: var(--muted);
    max-width: 780px;
    font-size: 13px;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.header-chip {
    min-width: 150px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
}

.chip-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 2px;
}

.page-body {
    margin-top: 20px;
    display: grid;
    gap: 18px;
    min-width: 0;
}

.panel {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(216, 226, 236, 0.95);
    box-shadow: var(--shadow);
    min-width: 0;
}

.panel-compact {
    padding: 18px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-title {
    margin: 0;
    font-size: 20px;
}

.panel-desc,
.panel-note,
.muted {
    color: var(--muted);
}

.panel-desc {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.45;
}

.panel-desc:empty {
    display: none;
}

.panel-note {
    font-size: 13px;
    line-height: 1.5;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.card {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(216, 226, 236, 0.95);
}

.card-label {
    color: var(--muted);
    font-size: 13px;
}

.card-value {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.card-foot {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.grid-two {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 18px;
}

.grid-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.report-panels-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.report-panels-grid .panel {
    height: 100%;
}

.report-panels-grid .panel-head {
    min-height: 44px;
}

.report-panels-grid .panel-title {
    font-size: 18px;
}

.report-panels-grid .panel-desc {
    font-size: 13px;
}

.text-link {
    color: var(--accent-strong);
    font-weight: 700;
}

.report-panels-grid .cards-2 {
    grid-template-columns: 1fr;
}

.dashboard-panel-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
}

.dashboard-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
}

.dashboard-filter-bar {
    flex: 1 1 720px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 10px;
    align-items: end;
    min-width: 0;
}

.dashboard-toolbar-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.report-panels-grid .report-table-wrap {
    overflow-x: hidden;
}

.report-panels-grid .report-table {
    min-width: 100%;
    width: 100%;
    table-layout: fixed;
}

.report-panels-grid .report-table th,
.report-panels-grid .report-table td {
    padding: 10px 10px;
    font-size: 13px;
}

.report-panels-grid .report-table th {
    font-size: 12px;
    white-space: nowrap;
}

.report-panels-grid .report-table td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.report-panels-grid .report-table-finance th:nth-child(1),
.report-panels-grid .report-table-finance td:nth-child(1) {
    width: 24%;
}

.report-panels-grid .report-table-finance th:nth-child(2),
.report-panels-grid .report-table-finance td:nth-child(2) {
    width: 14%;
    text-align: center;
}

.report-panels-grid .report-table-finance th:nth-child(3),
.report-panels-grid .report-table-finance td:nth-child(3),
.report-panels-grid .report-table-finance th:nth-child(4),
.report-panels-grid .report-table-finance td:nth-child(4),
.report-panels-grid .report-table-finance th:nth-child(5),
.report-panels-grid .report-table-finance td:nth-child(5) {
    width: 20.666%;
    text-align: right;
}

.report-panels-grid .report-table-parking th:nth-child(1),
.report-panels-grid .report-table-parking td:nth-child(1) {
    width: 20%;
}

.report-panels-grid .report-table-parking th:nth-child(2),
.report-panels-grid .report-table-parking td:nth-child(2) {
    width: 34%;
}

.report-panels-grid .report-table-parking th:nth-child(3),
.report-panels-grid .report-table-parking td:nth-child(3) {
    width: 14%;
    text-align: center;
}

.report-panels-grid .report-table-parking th:nth-child(4),
.report-panels-grid .report-table-parking td:nth-child(4) {
    width: 18%;
    text-align: right;
}

.report-panels-grid .report-table-parking th:nth-child(5),
.report-panels-grid .report-table-parking td:nth-child(5) {
    width: 14%;
    text-align: right;
}

.cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.toolbar-end {
    justify-content: flex-end;
}

.toolbar-grow {
    flex: 1 1 auto;
}

.filter-panel {
    padding: 16px 18px;
    display: grid;
    gap: 12px;
}

.filter-panel .panel-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 0;
    align-items: stretch;
}

.filter-panel .panel-title {
    font-size: 18px;
}

.filter-title-row {
    min-width: 0;
}

.filter-panel .panel-desc {
    max-width: 420px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    align-items: end;
    width: 100%;
    min-width: 0;
}

.filter-grid .field {
    min-width: 0;
}

.filter-grid .field:first-child {
    grid-column: span 2;
}

.filter-grid .field span {
    font-size: 12px;
}

.filter-grid .field input,
.filter-grid .field select {
    padding: 9px 11px;
    min-height: 38px;
    border-radius: 10px;
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: end;
    justify-content: flex-start;
    flex-wrap: wrap;
    min-width: 0;
    grid-column: auto / span 2;
}

.filter-actions .button {
    min-height: 38px;
    min-width: 88px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    box-shadow: 0 12px 24px rgba(24, 162, 110, 0.24);
}

.button.ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--text);
}

.button.warn {
    background: var(--amber-soft);
    color: #9c6618;
}

.button.danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.button.wide {
    width: 100%;
}

.button.small {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
}

.field-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.field-group-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-span-2 {
    grid-column: span 2;
}

.field-span-3 {
    grid-column: span 3;
}

.compact-fields {
    margin-bottom: 18px;
}

.field {
    display: grid;
    gap: 6px;
}

.field span {
    color: var(--muted);
    font-size: 13px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fcfdff;
    color: var(--text);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(24, 162, 110, 0.45);
    box-shadow: 0 0 0 3px rgba(24, 162, 110, 0.12);
}

.field input:disabled {
    background: #f4f7fb;
    color: #8092a5;
}

.field textarea {
    resize: vertical;
    min-height: 108px;
}

.field-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.report-filter-panel .panel-head {
    margin-bottom: 12px;
}

.report-filter-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.report-filter-title {
    min-width: 0;
}

.report-filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 10px;
    align-items: end;
    min-width: 0;
}

.field-inline-compact {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.field-inline-compact span {
    font-size: 12px;
}

.field-inline-compact input,
.field-inline-compact select {
    min-width: 0;
    padding: 9px 12px;
}

.report-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    grid-column: span 2;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chips-compact {
    margin-top: 8px;
}

.filter-chip {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 18px rgba(24, 162, 110, 0.18);
}

.table-wrap {
    overflow: auto;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    max-width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.table-compact {
    min-width: 640px;
}

.table th,
.table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(216, 226, 236, 0.92);
    text-align: left;
    vertical-align: top;
}

.table th {
    background: #eef3f8;
    color: #55697e;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table tr:last-child td {
    border-bottom: none;
}

.table-subvalue {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.break-all {
    word-break: break-all;
}

.tag,
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge.success {
    background: rgba(31, 157, 104, 0.14);
    color: var(--success);
}

.badge.warn {
    background: rgba(240, 164, 58, 0.16);
    color: #9c6618;
}

.badge.danger {
    background: rgba(219, 91, 87, 0.14);
    color: var(--danger);
}

.badge.muted {
    background: rgba(97, 114, 131, 0.12);
    color: #5d6d7e;
}

.empty-state {
    padding: 30px 18px;
    text-align: center;
    color: var(--muted);
}

.bar-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(64px, 1fr);
    gap: 12px;
    align-items: end;
    min-height: 250px;
    margin-bottom: 16px;
    padding: 18px 16px 12px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(231, 247, 241, 0.75) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.bar-chart-item {
    display: grid;
    gap: 8px;
    min-width: 64px;
}

.bar-chart-value {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.bar-chart-value-dual {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.bar-chart-track {
    position: relative;
    height: 160px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bar-chart-track::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 1px;
    background: rgba(97, 114, 131, 0.2);
}

.bar-chart-track-dual {
    justify-content: center;
}

.bar-chart-dual-group {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 100%;
}

.bar-chart-bar {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 34px;
    transform: translateX(-50%);
    border-radius: 12px 12px 6px 6px;
    background: linear-gradient(180deg, #46c48f 0%, var(--accent-strong) 100%);
    box-shadow: 0 12px 20px rgba(24, 162, 110, 0.18);
}

.bar-chart-bar-electric {
    background: linear-gradient(180deg, #58c8d8 0%, #1e8ea8 100%);
    box-shadow: 0 12px 20px rgba(30, 142, 168, 0.18);
}

.bar-chart-bar-service {
    width: 20px;
    background: linear-gradient(180deg, #f2c36b 0%, #d68920 100%);
    box-shadow: 0 10px 18px rgba(214, 137, 32, 0.2);
}

.bar-chart-track-dual .bar-chart-bar {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 16px;
}

.bar-chart-track-dual .bar-chart-bar-electric {
    width: 18px;
}

.bar-chart-track-dual .bar-chart-bar-service {
    width: 14px;
}

.bar-chart-label {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
}

.bar-chart-sub-label {
    text-align: center;
    color: rgba(97, 114, 131, 0.82);
    font-size: 11px;
    line-height: 1.4;
}

.dashboard-bar-chart {
    margin-bottom: 16px;
}

.line-chart {
    margin-bottom: 16px;
    padding: 18px 16px 12px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(231, 247, 241, 0.75) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.line-chart-scroll {
    min-width: 100%;
}

.line-chart-svg {
    display: block;
    width: 100%;
    height: auto;
    min-width: 560px;
}

.line-chart-grid {
    stroke: rgba(97, 114, 131, 0.16);
    stroke-width: 1;
    stroke-dasharray: 4 5;
}

.line-chart-axis-text {
    fill: rgba(97, 114, 131, 0.9);
    font-size: 11px;
    font-weight: 600;
}

.line-chart-area {
    fill: rgba(24, 162, 110, 0.12);
}

.line-chart-stroke {
    fill: none;
    stroke: var(--accent-strong);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.line-chart-point {
    fill: #ffffff;
    stroke: var(--accent-strong);
    stroke-width: 3;
}

.line-chart-point-text {
    fill: #0f8559;
    font-size: 11px;
    font-weight: 700;
}

.dashboard-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-metric-grid .card {
    min-height: 132px;
}

.dashboard-triple-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.dashboard-triple-grid > .panel {
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
}

.dashboard-triple-grid .panel-head {
    min-height: 96px;
    margin-bottom: 10px;
}

.dashboard-triple-grid .button,
.panel-head .button {
    white-space: nowrap;
    flex-shrink: 0;
}

.metric-card {
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: "";
    position: absolute;
    right: -18px;
    top: -18px;
    width: 92px;
    height: 92px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.42);
}

.metric-card-business {
    background:
        radial-gradient(circle at top right, rgba(52, 190, 193, 0.16), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f2fcfd 100%);
}

.metric-card-fund {
    background:
        radial-gradient(circle at top right, rgba(82, 208, 74, 0.16), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f5fcf3 100%);
}

.metric-card-user {
    background:
        radial-gradient(circle at top right, rgba(254, 150, 45, 0.14), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #fff9f2 100%);
}

.metric-card-icon {
    position: absolute;
    right: 18px;
    top: 16px;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 800;
    color: #29465f;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 18px rgba(20, 35, 52, 0.08);
}

.metric-card-business .metric-card-icon {
    color: #1b6d78;
}

.metric-card-fund .metric-card-icon {
    color: #2d7a36;
}

.metric-card-user .metric-card-icon {
    color: #a15b12;
}

.metric-card .card-label,
.metric-card .card-value,
.metric-card .card-foot {
    position: relative;
    z-index: 1;
}

.alarm-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-triple-grid .alarm-strip {
    grid-template-columns: 1fr;
    gap: 0;
    align-content: start;
}

.alarm-info-item {
    display: grid;
    gap: 4px;
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid rgba(216, 226, 236, 0.96);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 8px 18px rgba(20, 35, 52, 0.04);
}

.alarm-info-item:last-child {
    border-bottom: 1px solid rgba(216, 226, 236, 0.96);
}

.alarm-info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.alarm-info-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    min-width: 0;
}

.alarm-info-desc {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alarm-info-meta {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #6b7e91;
    font-size: 11px;
    line-height: 1.4;
}

.alarm-info-time {
    white-space: nowrap;
}

.line-chart-compact {
    padding: 14px 14px 10px;
    min-height: 196px;
}

.line-chart-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.line-chart-stat {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(216, 226, 236, 0.82);
}

.line-chart-stat span {
    color: var(--muted);
    font-size: 11px;
}

.line-chart-stat strong {
    display: block;
    margin-top: 4px;
    color: #16384d;
    font-size: 15px;
    line-height: 1.2;
}

.line-chart-compact .line-chart-svg {
    min-width: 420px;
}

.line-chart-guide {
    stroke: rgba(24, 162, 110, 0.16);
    stroke-width: 1;
    stroke-dasharray: 4 5;
}

.bar-chart-compact {
    min-height: 170px;
    padding: 10px 14px 8px;
}

.bar-chart-compact .bar-chart-track {
    height: 68px;
}

.bar-chart-compact .bar-chart-item {
    gap: 4px;
}

.line-chart-point-text-down {
    dominant-baseline: hanging;
}

.charger-visual-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.charger-visual-card {
    display: grid;
    gap: 14px;
    height: 100%;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(216, 226, 236, 0.92);
    background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
    box-shadow: 0 18px 36px rgba(20, 35, 52, 0.08);
}

.charger-visual-card.online {
    background:
        radial-gradient(circle at top right, rgba(82, 208, 74, 0.16), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
}

.charger-visual-card.running {
    background:
        radial-gradient(circle at top right, rgba(52, 190, 193, 0.18), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f2fcfd 100%);
}

.charger-visual-card.danger {
    background:
        radial-gradient(circle at top right, rgba(254, 112, 86, 0.16), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fff8f6 100%);
}

.charger-visual-card.offline {
    background:
        radial-gradient(circle at top right, rgba(97, 114, 131, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.charger-visual-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.charger-visual-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

.charger-visual-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.charger-visual-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.charger-cartoon {
    position: relative;
    height: 172px;
    margin: 0 auto;
    width: 132px;
}

.charger-cartoon-cable {
    position: absolute;
    right: -10px;
    top: 24px;
    width: 48px;
    height: 74px;
    border: 6px solid rgba(17, 32, 48, 0.18);
    border-left: none;
    border-bottom: none;
    border-radius: 0 26px 0 0;
}

.charger-cartoon-head {
    position: absolute;
    left: 22px;
    top: 8px;
    width: 88px;
    height: 54px;
    border-radius: 24px 24px 18px 18px;
    background: linear-gradient(180deg, #2b3d52 0%, #162231 100%);
    box-shadow: 0 14px 24px rgba(20, 35, 52, 0.2);
}

.charger-cartoon-screen {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 12px;
    height: 24px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #90f5ff 0%, #56d7e1 100%);
    color: #08313c;
    font-size: 13px;
    font-weight: 800;
}

.charger-cartoon-body {
    position: absolute;
    left: 12px;
    top: 50px;
    width: 108px;
    height: 108px;
    border-radius: 30px 30px 20px 20px;
    background: linear-gradient(180deg, #eaf4ff 0%, #ffffff 100%);
    border: 1px solid rgba(154, 181, 204, 0.45);
    box-shadow: 0 18px 28px rgba(20, 35, 52, 0.12);
}

.charger-cartoon-lights {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 22px;
}

.charger-cartoon-lights span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(180deg, #52d04a 0%, #26a04b 100%);
    box-shadow: 0 0 0 5px rgba(82, 208, 74, 0.12);
}

.charger-cartoon-base {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 18px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(180deg, #dce8f3 0%, #b9ccdb 100%);
}

.charger-cartoon-base::before,
.charger-cartoon-base::after {
    content: "";
    position: absolute;
    bottom: -12px;
    width: 16px;
    height: 16px;
    border-radius: 0 0 8px 8px;
    background: #90a5b6;
}

.charger-cartoon-base::before {
    left: 10px;
}

.charger-cartoon-base::after {
    right: 10px;
}

.charger-visual-metrics {
    display: grid;
    gap: 8px;
}

.charger-metric {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(216, 226, 236, 0.7);
}

.charger-metric span {
    color: var(--muted);
    font-size: 12px;
}

.charger-metric strong {
    text-align: right;
    color: #183349;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
}

.split-panel {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
}

.monitor-summary-grid .card {
    height: 100%;
}

.detail-stack,
.port-grid,
.period-grid {
    display: grid;
    gap: 14px;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.selection-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.selection-card-checkbox {
    margin-top: 4px;
}

.selection-card-title {
    font-weight: 700;
}

.selection-card-copy {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.detail-card,
.repeat-card {
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
}

.detail-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.repeat-card {
    border-style: dashed;
}

.repeat-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.repeat-card-title {
    font-weight: 700;
}

.kv-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.kv-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-soft);
}

.kv-key {
    color: var(--muted);
    font-size: 12px;
}

.kv-value {
    margin-top: 4px;
    font-weight: 700;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(14, 22, 31, 0.48);
    z-index: 40;
}

.modal.open {
    display: flex;
}

.modal-dialog {
    width: min(1080px, calc(100vw - 32px));
    max-height: calc(100vh - 56px);
    overflow: auto;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(10, 21, 31, 0.24);
}

.modal-dialog.medium {
    width: min(880px, calc(100vw - 32px));
}

.modal-dialog .field-group,
.modal-dialog .field-group-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-dialog .field-span-2,
.modal-dialog .field-span-3 {
    grid-column: 1 / -1;
}

.modal-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    z-index: 2;
}

.modal-title {
    margin: 0 0 4px;
    font-size: 22px;
}

.modal-body {
    padding: 22px 24px 24px;
    display: grid;
    gap: 18px;
}

.modal-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-tab {
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: #5f7282;
    border: none;
    cursor: pointer;
}

.modal-tab.active {
    background: var(--accent);
    color: #fff;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: grid;
    gap: 16px;
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    min-width: 260px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(24, 34, 45, 0.94);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 60;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: rgba(219, 91, 87, 0.96);
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(246, 249, 252, 0.96), rgba(237, 243, 248, 0.96));
}

.login-shell {
    width: min(440px, 100%);
}

.login-panel {
    padding: 34px 32px 32px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(216, 226, 236, 0.96);
    box-shadow: var(--shadow);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.login-brand .brand-mark {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 0;
}

.login-brand .brand-mark::before {
    left: 13px;
    top: 8px;
    width: 16px;
    height: 23px;
}

.login-brand .brand-mark::after {
    left: 18px;
    top: 14px;
}

.login-brand .brand-title {
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.login-brand .brand-subtitle {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.login-title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.25;
}

.login-copy,
.login-footnote {
    color: var(--muted);
    line-height: 1.7;
}

.login-form {
    display: grid;
    gap: 14px;
    margin: 22px 0 0;
}

.login-alert {
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 12px;
    background: var(--danger-soft);
    color: var(--danger);
}

@media (max-width: 1440px) {
    .console-header {
        padding: 20px 22px;
    }

    .panel {
        padding: 18px;
    }

    .page-title {
        font-size: 26px;
    }

    .table th,
    .table td {
        padding: 11px 12px;
    }
}

@media (max-width: 1280px) {
    .cards,
    .grid-three,
    .cards-2,
    .report-panels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .grid-two,
    .split-panel,
    .dashboard-triple-grid {
        grid-template-columns: 1fr;
    }

    .alarm-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-triple-grid .alarm-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .charger-visual-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .field-group,
    .field-group-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .selection-grid {
        grid-template-columns: 1fr;
    }

    .report-filter-top {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-toolbar,
    .report-filter-controls {
        justify-content: flex-start;
    }

    .filter-panel .panel-head {
        align-items: stretch;
    }

    .filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    }

    .dashboard-filter-bar,
    .dashboard-toolbar-actions {
        justify-content: flex-start;
    }

    .field-span-3 {
        grid-column: span 2;
    }

    .table {
        min-width: 560px;
    }

    .bar-chart {
        grid-auto-columns: minmax(58px, 1fr);
    }

    .report-panels-grid .report-table th,
    .report-panels-grid .report-table td {
        padding: 9px 8px;
        font-size: 12px;
    }
}

@media (max-width: 980px) {
    .console-shell {
        grid-template-columns: 1fr;
    }

    .console-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .console-header {
        flex-direction: column;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .header-chip {
        min-width: 132px;
        padding: 10px 12px;
    }

    .field-inline {
        grid-template-columns: 1fr;
    }

    .dashboard-toolbar {
        justify-items: stretch;
        min-width: 100%;
    }

    .field-inline-compact {
        min-width: 100%;
    }

    .report-filter-actions {
        justify-content: flex-start;
        grid-column: span 1;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid .field:first-child {
        grid-column: span 1;
    }

    .filter-actions {
        justify-content: flex-start;
        grid-column: span 1;
    }

    .dashboard-metric-grid,
    .alarm-strip,
    .charger-visual-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-triple-grid .alarm-strip {
        grid-template-columns: 1fr;
    }

    .charger-visual-badges {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .console-main {
        padding: 14px;
    }

    .console-header,
    .panel {
        padding: 18px;
        border-radius: 18px;
    }

    .cards,
    .grid-three,
    .report-panels-grid,
    .dashboard-metric-grid,
    .field-group,
    .field-group-2,
    .field-group-3,
    .kv-list,
    .selection-grid,
    .alarm-strip,
    .charger-visual-grid {
        grid-template-columns: 1fr;
    }

    .field-span-2,
    .field-span-3 {
        grid-column: span 1;
    }

    .modal {
        padding: 12px;
    }

    .modal-dialog {
        border-radius: 18px;
    }

    .table,
    .table-compact {
        min-width: 520px;
    }

    .filter-chips {
        gap: 8px;
    }

    .filter-chip {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .bar-chart {
        grid-auto-columns: minmax(54px, 1fr);
        min-height: 220px;
        padding: 16px 12px 10px;
    }
}

.operation-stat-cards .card-value {
    font-size: 24px;
    word-break: break-word;
}

.operation-filter-controls {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.operation-table-wrap .table {
    min-width: 1040px;
}

.operation-summary-table th,
.operation-summary-table td,
.operation-detail-table th,
.operation-detail-table td {
    white-space: nowrap;
}

.operation-summary-table .numeric,
.operation-detail-table .numeric {
    text-align: right;
}

.operation-detail-table th:first-child,
.operation-detail-table td:first-child,
.operation-summary-table th:first-child,
.operation-summary-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
}

.operation-detail-table th:first-child,
.operation-summary-table th:first-child {
    background: #eef3f8;
    z-index: 2;
}
.operation-resizable-table {
    border-collapse: collapse;
    table-layout: fixed;
}

.operation-summary-table th,
.operation-summary-table td,
.operation-detail-table th,
.operation-detail-table td {
    border: 1px solid var(--line);
    text-align: center;
    vertical-align: middle;
    position: relative;
}

.operation-summary-table .numeric,
.operation-detail-table .numeric {
    text-align: center;
}

.operation-column-handle {
    position: absolute;
    top: 0;
    right: -4px;
    bottom: 0;
    width: 8px;
    cursor: col-resize;
    z-index: 4;
    background: transparent;
    touch-action: none;
}

.operation-column-handle::after {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 3px;
    width: 2px;
    border-radius: 2px;
    background: rgba(97, 114, 131, 0.28);
}

.operation-column-handle:hover::after,
.operation-column-dragging .operation-column-handle::after {
    background: var(--accent-strong);
}

.operation-column-collapsed {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.operation-column-collapsed .operation-column-handle {
    font-size: 0;
    color: transparent;
}

.operation-column-dragging {
    cursor: col-resize;
    user-select: none;
}
/* Operation statistics table column controls. Scoped to the new statistics page only. */
.operation-resizable-table.operation-column-control-ready {
    width: auto;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
}

.operation-resizable-table.operation-column-control-ready th,
.operation-resizable-table.operation-column-control-ready td {
    border: 1px solid var(--line);
    text-align: center !important;
    vertical-align: middle !important;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
}

.operation-resizable-table.operation-column-control-ready th {
    padding-right: 18px;
}

.operation-column-handle {
    position: absolute;
    top: 0;
    right: -6px;
    bottom: 0;
    width: 14px;
    cursor: col-resize;
    z-index: 8;
    background: linear-gradient(90deg, transparent 0, transparent 4px, rgba(15, 133, 89, 0.22) 4px, rgba(15, 133, 89, 0.22) 10px, transparent 10px);
    touch-action: none;
}

.operation-column-handle::after {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: 2px;
    border-radius: 2px;
    background: var(--accent-strong);
    opacity: .86;
}

.operation-column-handle:hover,
.operation-column-dragging .operation-column-handle {
    background: linear-gradient(90deg, transparent 0, transparent 3px, rgba(15, 133, 89, 0.34) 3px, rgba(15, 133, 89, 0.34) 11px, transparent 11px);
}

.operation-column-handle:hover::after,
.operation-column-dragging .operation-column-handle::after {
    opacity: 1;
    width: 3px;
}

.operation-resizable-table .operation-column-collapsed {
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.operation-resizable-table .operation-column-collapsed > :not(.operation-column-handle) {
    visibility: hidden !important;
}

.operation-resizable-table .operation-column-collapsed .operation-column-handle {
    right: -7px;
    width: 16px;
    color: transparent;
    font-size: 0;
}

.operation-column-dragging {
    cursor: col-resize;
    user-select: none;
}