body {
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    background: #f4f7fb;
    color: #0f172a;
}

.app-shell {
    min-height: 100vh;
}

.page-title {
    font-weight: 800;
    color: #0f172a;
}

.page-eyebrow {
    display: inline-block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.page-subtitle {
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
    max-width: 760px;
}

.app-wrapper {
    min-height: 100vh;
    display: flex;
}

.app-main-wrap {
    flex: 1;
    min-width: 0;
    margin-left: 296px;
}

.app-sidebar-modern {
    width: 296px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #fff;
    box-shadow: 18px 0 48px rgba(15, 23, 42, 0.08);
}

.app-sidebar-modern__brand {
    padding: 24px 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
}

.brand-link strong {
    display: block;
    font-size: 16px;
}

.brand-link span {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    margin-top: 2px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.32);
}

.app-sidebar-modern__section {
    padding: 18px 16px 8px;
    overflow-y: auto;
    flex: 1;
}

.sidebar-section-title {
    color: rgba(255, 255, 255, 0.46);
    font-size: 12px;
    text-transform: uppercase;
    padding: 0 10px 10px;
    letter-spacing: 0.6px;
}

.sidebar-menu .nav-link {
    color: rgba(255, 255, 255, 0.78);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.sidebar-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.sidebar-menu .nav-link.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.28), rgba(37, 99, 235, 0.16));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.14);
}

.sidebar-menu .nav-icon {
    font-size: 18px;
    width: 20px;
}

.app-sidebar-modern__footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
}

.sidebar-footer-card__title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.sidebar-footer-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5edf7;
}

.app-topbar__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.app-topbar__left,
.app-topbar__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-topbar__title strong {
    display: block;
    font-size: 15px;
}

.app-topbar__title span {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.app-topbar__toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #d7e0eb;
    background: #fff;
}

.top-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.top-user-chip__avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1d4ed8, #60a5fa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.top-user-chip__text strong,
.top-user-chip__text span {
    display: block;
    line-height: 1.2;
}

.top-user-chip__text span {
    font-size: 12px;
    color: #64748b;
}

.app-content-header {
    padding: 24px 0 0;
}

.page-header-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e7eef8;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.app-content {
    padding: 20px 0 32px;
}

.dashboard-panel,
.dashboard-kpi-card,
.dashboard-stat-card,
.module-highlight {
    border: none;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.dashboard-panel .card-header {
    padding: 20px 22px 0;
}

.dashboard-panel .card-body {
    padding: 20px 22px 22px;
}

.panel-subtitle {
    color: #64748b;
    font-size: 13px;
}

.dashboard-stat-card {
    color: #fff;
}

.dashboard-stat-card--blue {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.dashboard-stat-card--indigo {
    background: linear-gradient(135deg, #4338ca, #6366f1);
}

.dashboard-stat-card--emerald {
    background: linear-gradient(135deg, #059669, #10b981);
}

.dashboard-stat-card--amber {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.dashboard-stat-card__label {
    font-size: 14px;
    opacity: 0.84;
}

.dashboard-stat-card__value {
    font-size: 34px;
    font-weight: 800;
    margin: 10px 0 6px;
}

.dashboard-stat-card__meta {
    font-size: 13px;
    opacity: 0.8;
}

.dashboard-kpi-card__title {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.dashboard-kpi-card__value {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

.dashboard-kpi-card__note {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
}

.trend-bars {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    min-height: 240px;
    padding-top: 16px;
}

.trend-item {
    flex: 1;
    text-align: center;
}

.trend-bar {
    min-height: 36px;
    background: linear-gradient(180deg, #2563eb, #60a5fa);
    border-radius: 14px 14px 4px 4px;
}

.trend-text {
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}

.trend-number {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
}

.line-status-card {
    padding: 14px 0;
    border-bottom: 1px solid #edf2f7;
}

.line-status-card:last-child {
    border-bottom: none;
}

.line-status-card__target {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.dashboard-table thead th {
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
    border-bottom: 1px solid #edf2f7;
    background: #f8fafc;
}

.dashboard-table tbody td {
    padding-top: 16px;
    padding-bottom: 16px;
}

.status-tab-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.status-tab {
    min-width: 120px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.status-tab span {
    font-size: 14px;
}

.status-tab strong {
    font-size: 18px;
}

.status-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.module-highlight {
    min-height: 100%;
    background: linear-gradient(135deg, #0f172a, #1e40af);
    color: #fff;
}

.mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1035;
}

.mobile-sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.login-page-v2 {
    min-height: 100vh;
    margin: 0;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 28%),
        radial-gradient(circle at right 20%, rgba(15, 23, 42, 0.18), transparent 24%),
        linear-gradient(135deg, #0f172a 0%, #172554 45%, #1e3a8a 100%);
}

.login-page-v2__bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.35;
}

.login-page-v2__wrap {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    width: min(1280px, 94vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.login-hero {
    color: #fff;
    padding: 24px 18px 24px 8px;
}

.login-hero__badge {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.login-hero__tag {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
    letter-spacing: 0.5px;
}

.login-hero__content h1 {
    font-size: 54px;
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 18px;
}

.login-hero__content p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.login-hero__cards {
    display: grid;
    gap: 16px;
    margin-top: 40px;
    max-width: 680px;
}

.hero-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    backdrop-filter: blur(10px);
}

.hero-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.hero-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.hero-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.login-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    padding: 34px 34px 28px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.26);
    backdrop-filter: blur(12px);
}

.login-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.login-panel__eyebrow {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
}

.login-panel__header h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
}

.login-panel__logo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.26);
}

.login-form .form-label {
    font-size: 14px;
    color: #334155;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-input {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.login-input .input-group-text {
    background: #f8fafc;
    border: none;
    color: #64748b;
    padding-left: 18px;
}

.login-input .form-control {
    border: none;
    height: 58px;
    padding-left: 6px;
    font-size: 15px;
    box-shadow: none !important;
}

.login-submit {
    height: 54px;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.login-submit:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
}

.login-alert {
    border-radius: 14px;
    background: #fff1f2;
    color: #b42318;
}

.demo-account-card {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.demo-account-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
}

.demo-account-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}

.demo-account-card__grid span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.demo-account-card__grid strong {
    color: #0f172a;
    font-size: 15px;
}

.login-panel__footer {
    margin-top: 20px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 1200px) {
    .app-main-wrap {
        margin-left: 0;
    }

    .app-topbar__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .app-sidebar-modern {
        transform: translateX(-100%);
        transition: transform 0.24s ease;
    }

    .app-sidebar-modern.is-open {
        transform: translateX(0);
    }
}

@media (max-width: 1024px) {
    .login-page-v2__wrap {
        width: min(96vw, 1180px);
        grid-template-columns: 1fr;
        padding: 36px 0;
    }

    .login-hero {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .app-topbar__inner,
    .page-header-card {
        flex-direction: column;
        align-items: stretch;
    }

    .app-topbar__right {
        justify-content: space-between;
        width: 100%;
        flex-wrap: wrap;
    }

    .top-user-chip {
        flex: 1;
        min-width: 0;
    }

    .trend-bars {
        min-height: 180px;
        gap: 10px;
    }

    .dashboard-stat-card__value {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .login-panel {
        padding: 24px 20px;
    }

    .login-hero__content h1 {
        font-size: 38px;
    }

    .demo-account-card__grid {
        grid-template-columns: 1fr;
    }

    .app-content-header {
        padding-top: 16px;
    }

    .page-header-card {
        padding: 18px;
    }
}


.form-label-sm {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.work-order-summary-panel .card-body,
.work-order-filter-panel .card-body {
    padding-top: 16px;
    padding-bottom: 16px;
}

.work-order-filter-panel {
    position: sticky;
    top: 88px;
    z-index: 20;
}

.work-order-filter-tip,
.work-order-table-meta {
    font-size: 12px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px 12px;
}

.work-order-table-panel {
    min-height: 62vh;
}

.work-order-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
}

.work-order-table tbody td {
    white-space: nowrap;
}

.work-order-table__primary {
    font-weight: 700;
    color: #0f172a;
}

.dashboard-trend-panel .card-header {
    padding-bottom: 12px;
}

.dashboard-trend-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-trend-range {
    font-size: 12px;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 6px 10px;
}

.dashboard-trend-date {
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
}

.pagination .page-link {
    border-radius: 10px;
    margin-left: 6px;
    color: #1d4ed8;
}

.pagination .page-item.disabled .page-link {
    color: #64748b;
}

@media (max-width: 1200px) {
    .work-order-filter-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .work-order-table-panel {
        min-height: auto;
    }

    .work-order-filter-tip,
    .work-order-table-meta,
    .dashboard-trend-meta {
        width: 100%;
    }
}

.login-apply-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #eff6ff;
}

.login-apply-card strong,
.login-apply-card span {
    display: block;
}

.login-apply-card span {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.account-apply-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.account-apply-panel {
    width: min(760px, 100%);
}

.enterprise-list-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.enterprise-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding: 0 2px;
    border-bottom: 1px solid #e2e8f0;
}

.enterprise-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    color: #334155;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.enterprise-tab strong {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 2px 8px;
}

.enterprise-tab.is-active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    font-weight: 700;
}

.enterprise-tab.is-active strong {
    color: #0d6efd;
    background: #eff6ff;
}

.enterprise-filter-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: none;
}

.enterprise-filter-card .card-body,
.enterprise-filter-card form {
    padding: 12px;
}

.enterprise-actionbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.enterprise-actionbar strong,
.enterprise-actionbar span {
    display: inline-block;
}

.enterprise-actionbar span,
.enterprise-actionbar__hint {
    color: #64748b;
    font-size: 12px;
    margin-left: 8px;
}

.enterprise-table-card {
    min-height: 66vh;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.enterprise-table-card .table-responsive {
    min-height: 60vh;
}

.enterprise-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: #f8fafc;
    border-bottom: 1px solid #dbe3ef;
}

.enterprise-table tbody td {
    height: 54px;
    white-space: nowrap;
    border-color: #edf2f7;
}

.enterprise-table tbody tr:hover {
    background: #f8fbff;
}

.enterprise-table__primary {
    color: #0d6efd;
    font-weight: 700;
}

.enterprise-role-select {
    min-width: 112px;
}

.enterprise-status-select {
    min-width: 86px;
}

.permission-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 420px;
}

.permission-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
}

.role-permission-table-card {
    min-height: 68vh;
}

@media (max-width: 768px) {
    .enterprise-actionbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .enterprise-actionbar span,
    .enterprise-actionbar__hint {
        display: block;
        margin: 4px 0 0;
    }

    .enterprise-table-card,
    .enterprise-table-card .table-responsive {
        min-height: auto;
    }
}
