h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

:root {
    --sales-primary: #176b4d;
    --sales-primary-soft: #e8f5ef;
    --sales-shadow-sm: 0 2px 8px rgba(23, 107, 77, 0.06);
    --sales-shadow-md: 0 12px 40px rgba(15, 23, 42, 0.1);
    --sales-radius: 12px;
}

html {
    scrollbar-gutter: stable;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 16px;
    background: radial-gradient(circle at 15% 20%, rgba(23, 107, 77, 0.12), transparent 42%), radial-gradient(circle at 85% 80%, rgba(61, 111, 159, 0.1), transparent 40%), linear-gradient(160deg, #eef7f2 0%, #f5f7f9 45%, #f0f4f8 100%);
}

.login-panel {
    width: min(380px, 100%);
    padding: 30px 28px 28px;
    border-radius: var(--sales-radius);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--sales-shadow-md);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.login-header {
    text-align: center;
    margin-bottom: 0;
}

.login-logo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

.login-logo-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 112px;
    margin: 0 auto 16px;
}

.login-logo-suntech {
    max-width: 190px;
    max-height: 112px;
}

.login-logo-cy {
    max-width: 132px;
    max-height: 88px;
}

.login-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #2d343b;
    line-height: 1.5 !important;
}

.login-divider {
    margin: 18px 0 14px;
    opacity: 0.6;
}

.login-panel .mud-input-control {
    margin-top: 12px !important;
}

.login-panel .mud-input > input.mud-input-root,
.login-panel .mud-input-slot {
    font-size: 1rem;
}

.login-field {
    margin-bottom: 10px;
}

.login-submit {
    margin-top: 24px !important;
    height: 48px;
    min-height: 48px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.login-legal {
    margin-top: 14px;
    color: #7a8794;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .login-shell {
        padding: 10px;
        place-items: start center;
        padding-top: max(10px, env(safe-area-inset-top));
    }

    .login-panel {
        width: 100%;
        padding: 24px 20px 22px;
    }

    .login-logo {
        max-width: 100%;
        max-height: 100%;
    }

    .login-logo-slot {
        width: 160px;
        height: 100px;
        margin-bottom: 14px;
    }

    .login-logo-suntech {
        max-width: 160px;
        max-height: 100px;
    }

    .login-logo-cy {
        max-width: 118px;
        max-height: 78px;
    }

    .login-title {
        font-size: 1.1rem !important;
    }

    .login-divider {
        margin: 16px 0 10px;
    }

    .login-submit {
        margin-top: 20px !important;
        height: 46px;
        min-height: 46px;
    }
}

.sales-appbar {
    height: 40px;
    min-height: 40px;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

    .sales-appbar .mud-toolbar {
        height: 40px !important;
        min-height: 40px !important;
        padding-top: 0;
        padding-bottom: 0;
        align-items: center;
    }

    .sales-appbar .mud-icon-button {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .sales-appbar .mud-button-root {
        min-height: 32px;
    }

.brand-title {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-left: 6px;
    color: inherit;
    text-decoration: none;
}

.app-brand-logo {
    width: auto;
    height: 24px;
    max-width: 112px;
    object-fit: contain;
}

.sales-appbar .mud-chip {
    white-space: nowrap;
}

.sales-layout {
    --mud-drawer-width-left: 200px !important;
    --mud-drawer-width-mini-left: 0px !important;
    --mud-drawer-width: 200px !important;
}

.sales-content {
    min-height: calc(100vh - 40px);
    background: var(--mud-palette-background);
    padding-top: 40px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.sales-content-frame {
    width: calc(100% - 24px);
    margin: 0 12px;
    box-sizing: border-box;
}

    .sales-content-frame > .mud-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

.sales-content-inner {
    max-width: 1280px;
    margin: 0 auto;
}

    .sales-content-inner:has(.profile-page) {
        max-width: none;
        margin: 0;
    }

.sales-content:has(.profile-page) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
}

.nav-section {
    display: block;
    padding: 16px 16px 6px;
    color: #8b90a0;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.clickable-nav-group {
    margin: 2px 0;
}

.clickable-nav-group-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 0;
}

.clickable-nav-group-link.mud-nav-link {
    min-width: 0;
    border-radius: 0 4px 4px 0;
}

.clickable-nav-group-toggle.mud-icon-button {
    width: 30px;
    height: 30px;
    margin-right: 4px;
    color: #c5c7d0;
}

.clickable-nav-group-children {
    padding-left: 12px;
}

    .clickable-nav-group-children .mud-nav-link {
        min-height: 32px;
    }

.module-menu-page {
    padding-top: 4px;
}

.module-menu-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.module-menu-card {
    height: 92px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

    .module-menu-card:hover {
        border-color: rgba(23, 107, 77, 0.35);
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
        transform: translateY(-1px);
    }

.module-menu-card-content {
    height: 100%;
    display: grid;
    grid-template-rows: 32px minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    padding: 14px 10px 12px !important;
    text-align: center;
}

.module-menu-icon {
    align-self: center;
}

.module-menu-title {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600 !important;
}

.page-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.bpm-help-btn {
    flex-shrink: 0;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(209, 67, 67, 0.35);
}

.bpm-filter-heading {
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
}

    .bpm-filter-heading .mud-input-control {
        width: 128px;
        flex: 0 0 auto;
    }

    .bpm-filter-heading .mud-select {
        min-width: 96px;
        flex: 0 0 auto;
    }

    .bpm-filter-heading .mud-button-root {
        flex-shrink: 0;
    }

.bpm-help-content {
    line-height: 1.65;
}

.bpm-help-section-title {
    margin-top: 12px;
    margin-bottom: 6px;
    color: #334155;
    font-weight: 600;
}

.bpm-help-content .bpm-help-section-title:first-child {
    margin-top: 0;
}

.bpm-help-paragraph {
    margin-bottom: 8px;
}

.bpm-help-list {
    margin: 0 0 10px;
    padding-left: 1.25rem;
    color: #475569;
    font-size: 0.875rem;
}

    .bpm-help-list li + li {
        margin-top: 4px;
    }

.bpm-help-warning {
    color: #c62828;
    font-weight: 600;
}

.page-heading-tasks {
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.settlement-create-btn.mud-button-root {
    height: 40px;
    padding-inline: 18px 14px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: none;
    box-shadow: 0 4px 14px rgba(23, 107, 77, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

    .settlement-create-btn.mud-button-root:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(23, 107, 77, 0.3);
        filter: brightness(1.03);
    }

    .settlement-create-btn.mud-button-root:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(23, 107, 77, 0.2);
    }

.settlement-create-btn .mud-button-label {
    gap: 6px;
}

.settlement-create-btn .mud-button-icon-end {
    opacity: 0.88;
    transition: transform 0.15s ease;
}

.settlement-create-btn.mud-button-root:hover .mud-button-icon-end {
    transform: translateX(2px);
}

.filter-band, .editor-panel, .profile-panel {
    padding: 16px 20px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--sales-radius);
    background: var(--mud-palette-surface);
    box-shadow: var(--sales-shadow-sm);
}

.user-table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.user-action-tooltip-wrap {
    display: inline-flex;
}

.user-status-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.profile-panel {
    max-width: 520px;
}

@media (max-width: 700px) {
    .brand-title {
        display: none;
    }

    .sales-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.task-band, .settlement-panel {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
}

.task-band {
    padding: 10px 12px;
}

.task-grid {
    display: grid;
    grid-template-columns: .72fr .9fr 1.25fr .62fr .9fr auto;
    gap: 10px;
    align-items: center;
}

.settlement-grid {
    display: grid;
    grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr);
    gap: 10px;
    height: calc(100vh - 245px);
    min-height: 480px;
}

.settlement-panel {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.panel-title {
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.settlement-candidate-panel, .settlement-allocation-panel {
    display: flex;
    flex-direction: column;
}

.settlement-panel-title {
    min-height: 42px;
    padding: 0 16px;
    background: var(--mud-palette-background);
}

.settlement-panel-count {
    color: var(--mud-palette-text-secondary);
    font-weight: 500;
}

.settlement-tabs {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .settlement-tabs .mud-tabs-panels {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

        .settlement-tabs .mud-tabs-panels > .mud-tab-panel,
        .settlement-tabs .mud-tabs-panels > .mud-tab-panel > .mud-tab-panel-content {
            flex: 1;
            min-height: 0;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

.settlement-candidate-panel .settlement-tabs-stretch .mud-tabs-tabbar {
    background: var(--mud-palette-surface);
}

/* MudBlazor 9.5：TabContent 外包 div 默认 fit-content，导致标签挤在左侧 */
.settlement-candidate-panel .settlement-tabs-stretch .mud-tabs-tabbar-content .mud-tabs-tabbar-wrapper {
    width: 100% !important;
}

.settlement-candidate-panel .settlement-tabs-stretch .mud-tabs-tabbar-wrapper > .d-inline-block {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
}

.settlement-candidate-panel .settlement-tabs-stretch .mud-tab.settlement-tab-btn {
    flex: 1 1 0;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-transform: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-inline: 8px;
}

    .settlement-candidate-panel .settlement-tabs-stretch .mud-tab.settlement-tab-btn.mud-tab-active {
        color: var(--sales-primary);
    }

.settlement-candidate-panel .settlement-tab-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
}

.settlement-candidate-panel .settlement-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(23, 107, 77, 0.12);
    color: var(--sales-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.settlement-tabs .mud-tab-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.settlement-tab-panel {
    flex: 1;
    overflow: hidden;
    padding: 0 !important;
}

.candidate-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    font-size: 14px;
}

.candidate-list-head,
.candidate-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1.6fr) 108px minmax(88px, 1fr) minmax(96px, 1fr);
    align-items: center;
    column-gap: 12px;
    width: 100%;
}

.candidate-list-head {
    flex-shrink: 0;
    padding: 10px 14px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background: #f1f5f4;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #64748b;
    text-transform: uppercase;
}

    .candidate-list-head .candidate-col-amount,
    .candidate-list-head .candidate-col-available {
        text-align: right;
    }

.candidate-list-body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.candidate-row {
    padding: 12px 14px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    cursor: pointer;
    transition: background 0.12s ease;
}

    .candidate-row:hover {
        background: #f8faf9;
    }

.candidate-row-selected {
    background: var(--sales-primary-soft);
}

    .candidate-row-selected:hover {
        background: #dff0e8;
    }

.candidate-col-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.candidate-doc-num {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
    line-height: 1.35;
}

.candidate-date {
    font-size: 13px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.candidate-col-amount,
.candidate-col-available {
    text-align: right;
}

.candidate-money {
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: #334155;
    white-space: nowrap;
}

.candidate-money-available {
    font-size: 15px;
    font-weight: 700;
    color: var(--sales-primary);
}

.candidate-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 24px;
    color: var(--mud-palette-text-secondary);
    font-size: 14px;
}

.receipt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.allocation-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 6px 12px;
}

.allocation-row {
    display: grid;
    grid-template-columns: 82px minmax(0,1fr) 132px;
    gap: 8px;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    font-size: 13px;
}

.allocation-document {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settlement-action-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
    padding: 8px 12px;
    border-top: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    min-height: 60px;
}

.amount-summary {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
    font-size: 12px;
}

.sales-target-heading {
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 6px;
    min-width: 0;
}

    .sales-target-heading .mud-button-root {
        min-width: 0;
        height: 34px;
        padding-inline: 9px;
        font-size: 13px;
        white-space: nowrap;
    }

    .sales-target-heading .mud-chip {
        height: 24px;
        white-space: nowrap;
    }

    .sales-target-heading .mud-input-control {
        margin-top: 0;
    }

    .sales-target-heading .mud-input > input,
    .sales-target-heading .mud-input-slot {
        font-size: 13px;
    }

.sales-target-year-select {
    width: 112px;
    flex: 0 0 112px;
    min-width: 112px;
}

.sales-target-person-select {
    width: 200px;
    flex: 0 0 200px;
    min-width: 180px;
}

    .sales-target-year-select .mud-input-slot,
    .sales-target-year-select .mud-select-input,
    .sales-target-person-select .mud-input-slot,
    .sales-target-person-select .mud-select-input,
    .sales-target-person-select .mud-input > input {
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.sales-target-customer-search {
    width: 128px;
    flex: 0 0 128px;
}

.sales-target-add-grid {
    display: grid;
    grid-template-columns: minmax(180px, 260px) auto minmax(260px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.sales-target-div-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
}

    .sales-target-div-picker .sales-target-div-check {
        margin: 0;
        padding: 4px 10px 4px 4px;
        border-radius: 6px;
        border: 1px solid #e2e8f0;
        background: #fff;
        transition: background 0.15s ease, border-color 0.15s ease;
    }

    .sales-target-div-picker .sales-target-div-check-1.mud-checked,
    .sales-target-div-picker .sales-target-div-check-1:has(.mud-checkbox-input:checked) {
        background: #e8f5e9;
        border-color: #66bb6a;
    }

        .sales-target-div-picker .sales-target-div-check-1.mud-checked .mud-checkbox-icon,
        .sales-target-div-picker .sales-target-div-check-1:has(.mud-checkbox-input:checked) .mud-checkbox-icon {
            color: #2e7d32 !important;
        }

        .sales-target-div-picker .sales-target-div-check-1.mud-checked .mud-typography-body1,
        .sales-target-div-picker .sales-target-div-check-1:has(.mud-checkbox-input:checked) .mud-typography-body1 {
            color: #1b5e20;
            font-weight: 600;
        }

    .sales-target-div-picker .sales-target-div-check-2.mud-checked,
    .sales-target-div-picker .sales-target-div-check-2:has(.mud-checkbox-input:checked) {
        background: #e3f2fd;
        border-color: #64b5f6;
    }

        .sales-target-div-picker .sales-target-div-check-2.mud-checked .mud-checkbox-icon,
        .sales-target-div-picker .sales-target-div-check-2:has(.mud-checkbox-input:checked) .mud-checkbox-icon {
            color: #1565c0 !important;
        }

        .sales-target-div-picker .sales-target-div-check-2.mud-checked .mud-typography-body1,
        .sales-target-div-picker .sales-target-div-check-2:has(.mud-checkbox-input:checked) .mud-typography-body1 {
            color: #0d47a1;
            font-weight: 600;
        }

    .sales-target-div-picker .sales-target-div-check-3.mud-checked,
    .sales-target-div-picker .sales-target-div-check-3:has(.mud-checkbox-input:checked) {
        background: #fff3e0;
        border-color: #ffb74d;
    }

        .sales-target-div-picker .sales-target-div-check-3.mud-checked .mud-checkbox-icon,
        .sales-target-div-picker .sales-target-div-check-3:has(.mud-checkbox-input:checked) .mud-checkbox-icon {
            color: #ef6c00 !important;
        }

        .sales-target-div-picker .sales-target-div-check-3.mud-checked .mud-typography-body1,
        .sales-target-div-picker .sales-target-div-check-3:has(.mud-checkbox-input:checked) .mud-typography-body1 {
            color: #e65100;
            font-weight: 600;
        }

    .sales-target-div-picker .sales-target-div-check-4.mud-checked,
    .sales-target-div-picker .sales-target-div-check-4:has(.mud-checkbox-input:checked) {
        background: #f3e5f5;
        border-color: #ba68c8;
    }

        .sales-target-div-picker .sales-target-div-check-4.mud-checked .mud-checkbox-icon,
        .sales-target-div-picker .sales-target-div-check-4:has(.mud-checkbox-input:checked) .mud-checkbox-icon {
            color: #7b1fa2 !important;
        }

        .sales-target-div-picker .sales-target-div-check-4.mud-checked .mud-typography-body1,
        .sales-target-div-picker .sales-target-div-check-4:has(.mud-checkbox-input:checked) .mud-typography-body1 {
            color: #6a1b9a;
            font-weight: 600;
        }

.sales-target-selected-object {
    min-height: 32px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.sales-target-panel,
.sales-target-detail-panel {
    position: relative;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    overflow: hidden;
    background: var(--mud-palette-surface);
}

.sales-target-table {
    min-width: 0;
    width: 100%;
    font-size: 12px;
}

.sales-target-table-row {
    display: grid;
    grid-template-columns: 68px 46px minmax(92px, .98fr) 42px 36px repeat(12, minmax(42px, .52fr)) 66px 66px 66px 66px;
    align-items: center;
    gap: 3px;
    min-width: 0;
    text-align: center;
}

.sales-target-table-head-wrap {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f3f6f8;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.sales-target-table-head-group {
    min-height: 24px;
    padding: 0 4px;
    background: transparent;
}

.sales-target-head-gap {
    min-height: 1px;
}

.sales-target-head-leading {
    grid-column: span 5;
}

.sales-target-head-trailing {
    grid-column: span 4;
}

.sales-target-month-group-label {
    grid-column: span 6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: nowrap;
    border-radius: 4px 4px 0 0;
    padding: 5px 2px 4px;
}

.sales-target-month-group-done {
    background: #d4eddf;
    color: #1a5c38;
    border: 1px solid #9fd0b0;
    border-bottom: none;
}

.sales-target-month-group-pending {
    background: #fde8e8;
    color: #b91c1c;
    border: 1px solid #f5a5a5;
    border-bottom: none;
}

.sales-target-month-head-done {
    background: #eaf6ef;
    color: #1a5c38;
    border-top: 2px solid #9fd0b0;
    text-align: center;
}

.sales-target-month-head-pending {
    background: #fef2f2;
    color: #b91c1c;
    border-top: 2px solid #f5a5a5;
    text-align: center;
}

.sales-target-month-cell-done {
    background: #f6fbf8;
}

.sales-target-month-cell-pending {
    background: #fffafa;
}

.sales-target-table-head {
    min-height: 28px;
    padding: 0 4px;
    background: #f3f6f8;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

    .sales-target-table-head > div {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.sales-target-table-body {
    min-height: 444px;
    overflow: hidden;
    overflow-x: hidden;
}

.sales-target-data-row {
    min-height: 36px;
    padding: 3px 4px;
    border-bottom: 1px solid #e6ebef;
    background: #fff;
}

    .sales-target-data-row:nth-child(even) {
        background: #fbfcfd;
    }

    .sales-target-data-row:hover {
        background: #f6faf8;
    }

.sales-target-row-dirty {
    box-shadow: inset 3px 0 0 var(--sales-primary);
}

.sales-target-summary-row {
    background: #eef7f2;
    color: #14532d;
    font-weight: 700;
}

/* 汇总行同时带有 data-row 类，必须覆盖偶数行底色，避免绿色与灰色交错。 */
.sales-target-data-row.sales-target-summary-row,
.sales-target-data-row.sales-target-summary-row:nth-child(even),
.sales-target-data-row.sales-target-summary-row:hover {
    background: #eef7f2;
}

.sales-target-table-summary {
    border-bottom-color: #b7dfc8;
}

.sales-target-summary-row:hover {
    background: #e4f2ea;
}

.sales-target-row-new {
    background: #fff8e6;
    box-shadow: inset 3px 0 0 #d97706;
}

    .sales-target-row-new:hover {
        background: #fff3d1;
    }

.sales-target-code,
.sales-target-name,
.sales-target-person,
.sales-target-detail-cell {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sales-target-code {
    font-weight: 600;
    color: #1e293b;
}

.sales-target-name {
    color: #334155;
}

.sales-target-person,
.sales-target-div,
.sales-target-code {
    text-align: center;
}

.sales-target-table-head .sales-target-name,
.sales-target-summary-row .sales-target-name {
    text-align: center;
}

.sales-target-data-row .sales-target-name {
    text-align: left;
}

.sales-target-row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.sales-target-detail-btn.mud-icon-button {
    width: 22px;
    height: 22px;
    padding: 2px;
}

.sales-target-money {
    text-align: center;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sales-target-sort-head {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-align: center;
}

.sales-target-forecast,
.sales-target-ship,
.sales-target-toship {
    font-weight: 600;
    color: #334155;
}

.sales-target-month-head,
.sales-target-month-cell {
    min-width: 0;
}

.sales-target-month-head {
    text-align: center;
}

.sales-target-month-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sales-target-month-input {
    width: 100%;
    height: 26px;
    min-width: 0;
    padding: 0 4px;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    color: #1e293b;
    font-size: 12px;
    outline: none;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

    .sales-target-month-input:focus {
        border-color: var(--sales-primary);
        box-shadow: 0 0 0 2px rgba(23, 107, 77, .12);
    }

.sales-target-month-locked {
    background: #e9edf2;
    color: #94a3b8;
    border-color: #d5dde6;
    border-style: solid;
    cursor: not-allowed;
}

.sales-target-input-readonly {
    background: #f5f7fa;
    color: #64748b;
    border-color: #d5dde6;
    border-style: solid;
    cursor: default;
}

.sales-target-readonly-value {
    color: #64748b;
    background: #f1f5f9;
    border-radius: 4px;
    padding: 2px 4px;
}

.sales-target-div-picker .sales-target-div-disabled .mud-typography-body1 {
    color: #94a3b8 !important;
}

.sales-target-div-picker .sales-target-div-disabled.mud-checkbox-root {
    opacity: 0.78;
}

.sales-target-div-picker .sales-target-div-disabled .mud-checkbox-icon {
    color: #cbd5e1 !important;
}

.sales-target-month-input:disabled {
    opacity: 1;
}

.sales-target-month-total {
    width: 100%;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: rgba(255, 255, 255, .72);
    font-variant-numeric: tabular-nums;
}

.sales-target-empty {
    padding: 28px;
    color: var(--mud-palette-text-secondary);
    text-align: center;
}

.sales-target-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    height: 36px;
    padding: 3px 8px;
    border-top: 1px solid var(--mud-palette-lines-default);
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
}

.sales-target-page-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.sales-target-page-select {
    width: 52px;
    height: 26px;
    padding: 0 4px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    color: #1e293b;
    font-size: 12px;
}

.sales-target-panel-progress,
.sales-target-dialog-progress {
    position: relative;
    z-index: 3;
    height: 3px;
}

.sales-target-panel-progress {
    border-radius: 6px 6px 0 0;
}

.sales-target-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(15, 23, 42, .38);
}

.sales-target-dialog {
    width: min(1120px, 96vw);
    max-height: min(680px, 86vh);
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, .9);
    background: var(--mud-palette-surface);
    box-shadow: 0 24px 72px rgba(15, 23, 42, .24);
}

.sales-target-customer-dialog {
    width: min(860px, 94vw);
}

.sales-target-bulk-dialog {
    width: min(420px, 94vw);
}

.sales-target-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background: #f8fafc;
}

.sales-target-dialog-draggable .sales-target-dialog-head {
    cursor: move;
    user-select: none;
}

.sales-target-dialog-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.sales-target-dialog-subtitle {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.sales-target-detail-grid {
    display: grid;
    max-height: calc(86vh - 84px);
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 13px;
}

.sales-target-customer-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(300px, 1.3fr);
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.sales-target-bulk-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 14px 16px;
}

.sales-target-customer-list {
    position: relative;
    min-height: 352px;
}

.sales-target-customer-row {
    display: grid;
    grid-template-columns: 54px 112px minmax(280px, 1fr) 90px;
    align-items: center;
    min-height: 32px;
    gap: 6px;
    padding: 0 10px;
    text-align: center;
}

    .sales-target-customer-row > div {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.sales-target-customer-head {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.sales-target-customer-item {
    cursor: pointer;
    border-bottom: 1px solid #edf2f7;
}

    .sales-target-customer-item:hover {
        background: #f8fafc;
    }

.sales-target-customer-selected {
    background: var(--sales-primary-soft);
}

.sales-target-dialog-loading {
    position: absolute;
    inset: 34px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .72);
    color: #475569;
    font-size: 13px;
    pointer-events: none;
}

.sales-target-others-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 180px;
    padding: 24px;
    color: #334155;
}

.sales-target-others-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.sales-target-dialog-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 14px;
    border-top: 1px solid var(--mud-palette-lines-default);
    background: #f8fafc;
}

.sales-target-detail-head {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 8px 10px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.sales-target-detail-cell {
    min-height: 34px;
    padding: 8px 10px;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
    text-align: center;
}

.sales-target-detail-summary {
    background: #f0fdf4;
    color: #166534;
    font-weight: 700;
}

.sales-target-detail-cell.sales-target-money {
    text-align: center;
}

.sales-target-detail-empty {
    grid-column: 1 / -1;
    padding: 24px;
    color: var(--mud-palette-text-secondary);
    text-align: center;
}

@media (max-width: 1000px) {
    .task-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sales-target-heading {
        flex-wrap: wrap;
    }

    .sales-target-add-grid {
        grid-template-columns: 1fr 1fr;
    }

    .settlement-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .settlement-panel {
        min-height: 440px;
    }
}

@media (max-width: 620px) {
    .receipt-grid {
        grid-template-columns: 1fr 1fr;
    }

    .allocation-row {
        grid-template-columns: 72px minmax(0,1fr) 110px;
    }

    .settlement-action-bar {
        grid-template-columns: 1fr;
    }
}

.login-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
}

.login-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 48px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ── Profile page ── */
.profile-page {
    width: 100%;
    min-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    background: var(--mud-palette-surface);
}

.profile-banner {
    background: linear-gradient(135deg, #6b7c8f 0%, #4f5d6b 100%);
    padding: 16px 28px;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.profile-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.profile-banner-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-banner-main {
    min-width: 0;
}

.profile-banner-name {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.profile-banner-chip {
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    height: 22px;
    font-size: 11px;
}

.profile-banner-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 4px;
    font-size: 12px;
    color: rgba(241, 245, 249, 0.78);
}

.profile-banner-site {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.profile-banner-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.profile-stat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 8px 16px;
    min-width: 140px;
}

.profile-stat-label {
    display: block;
    font-size: 11px;
    color: rgba(241, 245, 249, 0.65);
    margin-bottom: 2px;
}

.profile-stat-value {
    display: block;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.profile-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--mud-palette-surface);
}

.profile-tabs {
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .profile-tabs .mud-tabs-panels {
        flex: 1;
    }

    .profile-tabs .mud-tabs-toolbar {
        background: var(--mud-palette-surface);
        padding: 0 20px;
        border-bottom: 1px solid var(--mud-palette-lines-default);
    }

    .profile-tabs .mud-tab-panel {
        padding: 0 !important;
    }

.profile-tab-body {
    padding: 24px 28px 28px;
}

.profile-section-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 16px;
}

/* 基本信息 Tab：更大字号、更醒目 */
.profile-tab-body-info {
    padding-top: 28px;
}

.profile-info-heading {
    font-size: 17px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid var(--sales-primary);
    line-height: 1.3;
}

.profile-tab-body-info .profile-info-sheet {
    border: 1px solid #d8dee6;
    border-radius: var(--sales-radius);
    background: var(--mud-palette-surface);
    box-shadow: var(--sales-shadow-sm);
}

.profile-tab-body-info .profile-field {
    padding: 24px 22px;
    align-items: flex-start;
    gap: 14px;
    min-height: 108px;
}

.profile-tab-body-info .profile-field-primary {
    background: linear-gradient(180deg, #f8fbf9 0%, var(--mud-palette-surface) 100%);
}

.profile-field-content {
    min-width: 0;
    flex: 1;
}

.profile-tab-body-info .profile-field-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.profile-tab-body-info .profile-field-icon-primary {
    background: var(--sales-primary-soft);
}

.profile-tab-body-info .profile-field-icon-accent {
    background: #e8eef5;
}

.profile-tab-body-info .profile-field-label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.profile-tab-body-info .profile-field-value {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    word-break: break-all;
}

.profile-tab-body-info .profile-field-primary .profile-field-value {
    color: var(--sales-primary);
    font-size: 19px;
}

.profile-tab-body-info .profile-footnote {
    margin-top: 20px;
    padding: 14px 18px;
    font-size: 14px;
    color: #475569;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

    .profile-tab-body-info .profile-footnote .mud-icon-root {
        color: var(--sales-primary);
        opacity: 1;
    }

.profile-info-sheet {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--sales-radius);
    overflow: hidden;
    background: var(--mud-palette-background);
}

.profile-field {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    border-right: 1px solid var(--mud-palette-lines-default);
    background: transparent;
}

    .profile-field:last-child {
        border-right: none;
    }

.profile-field-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eef2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-field-icon-accent {
    background: #e8eef5;
}

.profile-field-label {
    font-size: 11px;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 2px;
}

.profile-field-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--mud-palette-text-primary);
}

.profile-footnote {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--mud-palette-background);
    color: var(--mud-palette-text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

    .profile-footnote .mud-icon-root {
        flex-shrink: 0;
        margin-top: 2px;
        opacity: 0.7;
    }

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

.profile-pwd-alert {
    margin-top: 16px;
    max-width: 640px;
}

.profile-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--mud-palette-lines-default);
}

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

.permission-module-section + .permission-module-section {
    margin-top: 24px;
}

.permission-module-title {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    color: #8b90a0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.role-permission-panel {
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.role-permission-module + .role-permission-module {
    margin-top: 20px;
}

.permission-group {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 6px;
    min-width: 0;
}

.permission-group-header {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 3px 7px;
    background: var(--mud-palette-background-grey);
}

.permission-group-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0 5px;
    padding: 2px 6px 3px;
}

.permission-check-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    gap: 5px;
    min-width: 0;
    min-height: 26px;
    border-bottom: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 55%, transparent);
}

    .permission-check-row .mud-checkbox {
        min-width: 0;
        width: 100%;
        margin: 0;
        font-size: .78rem;
    }

    .permission-check-row .mud-checkbox-content {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.permission-code-info {
    width: 22px;
    height: 22px;
    padding: 2px;
}

.permission-card {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    padding: 14px 16px;
    height: 100%;
    background: var(--mud-palette-background);
    transition: border-color 0.15s ease;
}

    .permission-card:hover {
        border-color: rgba(79, 93, 107, 0.35);
    }

.permission-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.permission-card-name {
    font-weight: 600;
    font-size: 14px;
}

.permission-card-module {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
    padding-left: 26px;
}

.access-admin-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 3px 8px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    flex-shrink: 0;
}

.access-admin-page {
    height: calc(100dvh - 40px);
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.access-admin-grid {
    flex: 1;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 2px 4px 4px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 20%) minmax(0, 80%);
    gap: 4px;
}

.access-role-column,
.access-editor-column {
    min-height: 0;
    height: 100%;
}

.access-role-list {
    height: 100%;
    overflow-y: auto;
}

.access-editor-body {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.access-role-list .mud-table-cell {
    padding: 6px 8px;
    font-size: 13px;
}

.access-role-list .mud-table-row {
    cursor: pointer;
}

.access-role-selected .mud-table-cell {
    background: var(--sales-primary-soft);
    color: var(--sales-primary);
    font-weight: 600;
}

.access-role-detail-bar {
    display: grid;
    grid-template-columns: minmax(120px, 160px) minmax(160px, 220px) minmax(220px, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 3px 0 5px;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .access-role-detail-bar {
        grid-template-columns: minmax(120px, 150px) 1fr minmax(180px, 1.4fr);
    }

    .access-role-actions {
        grid-column: 1 / -1;
    }
}

.access-role-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    white-space: nowrap;
}

.access-permission-panel {
    flex: 1;
    min-height: 0;
}

@media (max-width: 959px) {
    .access-admin-page {
        height: auto;
        overflow: visible;
    }

    .access-admin-grid,
    .access-role-column,
    .access-editor-column,
    .access-editor-body,
    .access-role-list {
        height: auto;
        overflow: visible;
    }

    .access-admin-grid {
        grid-template-columns: 1fr;
    }

    .access-role-detail-bar {
        grid-template-columns: 1fr;
    }

    .access-role-actions {
        grid-column: auto;
        flex-wrap: wrap;
    }
}

.access-user-filter {
    margin: 8px;
    padding: 8px 10px;
}

.access-user-grid {
    padding-top: 0;
}

.access-user-role-list .mud-list-item {
    min-height: 30px;
}

.access-section-caption {
    display: block;
    min-height: 32px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.access-override-table {
    margin-top: 6px;
}

    .access-override-table .mud-table-cell {
        padding: 5px 8px;
        font-size: 13px;
    }

@media (max-width: 1100px) {
    .profile-info-sheet {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-field:nth-child(2) {
        border-right: none;
    }

    .profile-field:nth-child(1),
    .profile-field:nth-child(2) {
        border-bottom: 1px solid var(--mud-palette-lines-default);
    }

    .profile-field:nth-child(3) {
        border-right: 1px solid var(--mud-palette-lines-default);
    }

    .profile-pwd-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

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

@media (max-width: 640px) {
    .profile-info-sheet {
        grid-template-columns: 1fr;
    }

    .profile-field {
        border-right: none;
        border-bottom: 1px solid var(--mud-palette-lines-default);
    }

        .profile-field:last-child {
            border-bottom: none;
        }

    .profile-tab-body {
        padding: 16px;
    }

    .profile-banner {
        padding: 12px 16px;
    }

    .profile-banner-stats {
        width: 100%;
    }

    .profile-stat {
        flex: 1;
        min-width: 0;
    }

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

@media (max-width: 480px) {
    .profile-permission-grid {
        grid-template-columns: 1fr;
    }
}

.quotation-price-heading {
    gap: 6px;
    flex-wrap: wrap;
    min-height: 40px;
    padding: 4px 0;
}

    .quotation-price-heading .mud-input-control {
        width: 250px;
    }

    .quotation-price-heading .mud-button-root {
        min-height: 32px;
        padding: 4px 10px;
        font-size: 12px;
    }

.quotation-price-table,
.quotation-price-picker-table,
.quotation-price-detail-table {
    width: 100%;
}

    .quotation-price-table .mud-table-root,
    .quotation-price-picker-table .mud-table-root,
    .quotation-price-detail-table .mud-table-root {
        table-layout: fixed !important;
        width: 100% !important;
    }

    .quotation-price-table .mud-table-container,
    .quotation-price-picker-table .mud-table-container,
    .quotation-price-detail-table .mud-table-container {
        overflow-x: hidden;
    }

    .quotation-price-table .mud-table-head .mud-table-cell,
    .quotation-price-picker-table .mud-table-head .mud-table-cell,
    .quotation-price-detail-table .mud-table-head .mud-table-cell {
        height: 32px;
        padding: 5px 8px !important;
        background: #f5f7fa;
        color: #526b7a;
        font-size: 12px;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
    }

    .quotation-price-table tbody .mud-table-cell,
    .quotation-price-picker-table tbody .mud-table-cell,
    .quotation-price-detail-table tbody .mud-table-cell {
        height: 32px !important;
        min-height: 32px !important;
        min-width: 0;
        max-width: 0;
        padding: 4px 8px !important;
        overflow: hidden;
        text-align: center;
        text-overflow: ellipsis;
        vertical-align: middle;
        white-space: nowrap;
    }

    .quotation-price-picker-table tbody .mud-table-row {
        height: 32px !important;
        min-height: 32px !important;
    }

    .quotation-price-picker-table .mud-radio {
        min-height: 28px !important;
        height: 28px !important;
        margin: 0 !important;
        justify-content: center;
    }

        .quotation-price-picker-table .mud-radio .mud-radio-content {
            display: none;
        }

.quotation-price-actions {
    padding: 0 !important;
    white-space: nowrap;
}

    .quotation-price-actions .mud-icon-button {
        width: 28px;
        height: 28px;
        padding: 4px;
    }

.quotation-price-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    min-height: 32px;
    padding: 2px 4px;
    color: #64748b;
    font-size: 12px;
}

    .quotation-price-pager .mud-icon-button {
        width: 28px;
        height: 28px;
    }

.quotation-price-dialog-tools {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 6px;
    padding: 2px 0 6px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    color: #64748b;
    font-size: 12px;
}

.quotation-price-picker-filter .mud-input-control:first-child {
    width: 270px;
}

.quotation-price-picker-filter .mud-input-control:nth-child(2) {
    width: 110px;
}

.quotation-price-clone-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
    gap: 8px;
    min-height: 440px;
}

    .quotation-price-clone-grid > div {
        min-width: 0;
    }

.quotation-price-clone-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sales-primary);
}

.quotation-price-clone-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.quotation-price-clone-title-description {
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quotation-price-clone-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    margin-bottom: 4px;
}

    .quotation-price-clone-filter .mud-input-control {
        flex: 1;
    }

.quotation-price-clone-selected-caption {
    display: flex;
    align-items: center;
    height: 38px;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
}

.quotation-price-clone-table {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
    overflow: hidden;
}

.quotation-price-clone-table-head,
.quotation-price-clone-row {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr) 58px 30px;
    align-items: center;
    column-gap: 6px;
}

.quotation-price-clone-table-head {
    height: 30px;
    padding: 0 6px;
    background: #f5f7fa;
    color: #526b7a;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.quotation-price-clone-list {
    height: 374px;
    overflow-y: auto;
}

.quotation-price-clone-row {
    height: 32px;
    min-height: 32px;
    padding: 0 6px;
    border-bottom: 1px solid #edf2f7;
    font-size: 12px;
}

    .quotation-price-clone-row:hover {
        background: #f8fafc;
    }

    .quotation-price-clone-row > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .quotation-price-clone-row > span:nth-child(3) {
            text-align: center;
        }

    .quotation-price-clone-row .mud-icon-button {
        width: 26px;
        height: 26px;
        padding: 3px;
    }

@media (max-width: 700px) {
    .quotation-price-heading .mud-input-control {
        width: 100%;
    }

    .quotation-price-clone-grid {
        grid-template-columns: 1fr;
    }

    .quotation-price-clone-arrows {
        transform: rotate(90deg);
        min-height: 24px;
    }
}

.customer-salesperson-heading {
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
}

.customer-salesperson-title {
    flex: 0 0 auto;
    white-space: nowrap;
}

.customer-salesperson-heading .mud-input-control {
    width: 190px;
    flex: 0 0 auto;
}

.customer-salesperson-heading .mud-select {
    min-width: 132px;
    flex: 0 0 auto;
}

.customer-salesperson-table .mud-table-container {
    overflow-x: auto;
}

.customer-salesperson-table .mud-table-root {
    table-layout: fixed;
}

.customer-salesperson-table .mud-table-head .mud-table-cell,
.customer-salesperson-table tbody .mud-table-cell {
    padding: 3px 6px;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-salesperson-table tbody .mud-table-row {
    height: 30px;
}

.customer-salesperson-description > span,
.customer-salesperson-salesperson > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-salesperson-salesperson {
    color: var(--mud-palette-text-primary);
}

.customer-salesperson-dialog-summary {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
}

.customer-salesperson-batch-count {
    min-height: 24px;
    margin: 4px 0 10px;
}

.customer-salesperson-actions .mud-icon-button {
    width: 24px;
    height: 24px;
    padding: 2px;
}

.customer-salesperson-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.customer-salesperson-pager-summary {
    margin-right: auto;
    white-space: nowrap;
}

.customer-salesperson-pager-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

    .customer-salesperson-pager-controls .mud-pagination {
        flex: 0 0 auto;
    }

.customer-salesperson-page-size {
    width: 96px;
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .customer-salesperson-heading .mud-input-control {
        width: 160px;
    }

    .customer-salesperson-heading .mud-button-root {
        flex: 0 0 auto;
    }
}

.marketing-manage-heading {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    min-height: 40px;
    padding: 4px 0;
}

    .marketing-manage-heading .mud-input-control {
        width: 250px;
    }

    .marketing-manage-heading .mud-button-root {
        min-height: 32px;
        padding: 4px 10px;
        font-size: 12px;
    }

.marketing-manage-deleted-switch {
    margin: 0;
    white-space: nowrap;
}

.marketing-tag-manage-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0 2px;
}

.marketing-manage-table {
    width: 100%;
}

    .marketing-manage-table .mud-table-root {
        table-layout: fixed !important;
        width: 100% !important;
    }

    .marketing-manage-table .mud-table-container {
        overflow-x: hidden;
    }

    .marketing-manage-table .mud-table-head .mud-table-cell {
        height: 32px;
        padding: 5px 8px !important;
        background: #f5f7fa;
        color: #526b7a;
        font-size: 12px;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
    }

    .marketing-manage-table tbody .mud-table-cell {
        height: 36px !important;
        min-height: 36px !important;
        min-width: 0;
        max-width: 0;
        padding: 4px 8px !important;
        overflow: hidden;
        text-align: center;
        text-overflow: ellipsis;
        vertical-align: middle;
        white-space: nowrap;
    }

.marketing-manage-cover-cell {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.marketing-manage-cover {
    width: 48px !important;
    height: 28px !important;
    display: inline-block;
    object-fit: cover;
    object-position: center;
    background: #eef2f7;
    vertical-align: middle;
}

.marketing-manage-title-cell {
    text-align: center !important;
}

.marketing-manage-title-btn.mud-button-root {
    display: inline-flex;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0 auto;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    justify-content: center;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .marketing-manage-title-btn.mud-button-root .mud-button-label {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.marketing-manage-keywords-cell {
    white-space: normal !important;
}

.marketing-manage-keyword-chips {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    max-height: 20px;
    overflow: hidden;
}

    .marketing-manage-keyword-chips .mud-chip {
        flex: 0 1 auto;
        min-width: 24px;
        max-width: 72px;
        height: 20px;
        margin: 0 !important;
        font-size: 11px;
    }

    .marketing-manage-keyword-chips .mud-chip-content,
    .marketing-library-table .marketing-material-card-keyword-chips .mud-chip-content {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.marketing-manage-file-reveal.mud-button-root,
.marketing-manage-file-name.mud-button-root {
    max-width: 100%;
    min-width: 0;
    padding: 0 2px;
    font-size: 12px;
    text-transform: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketing-manage-actions {
    padding: 0 !important;
    white-space: nowrap;
}

    .marketing-manage-actions .mud-icon-button {
        width: 28px;
        height: 28px;
        padding: 4px;
    }

.marketing-manage-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    min-height: 32px;
    padding: 2px 4px;
    color: #64748b;
    font-size: 12px;
}

    .marketing-manage-pager .mud-icon-button {
        width: 28px;
        height: 28px;
        padding: 4px;
    }

@media (max-width: 900px) {
    .marketing-manage-heading .mud-input-control {
        width: 180px;
    }
}

.marketing-material-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.marketing-material-card-top {
    min-height: 30px;
    padding: 0 4px 0 8px !important;
}

.marketing-material-card-title-top.mud-button-root {
    max-width: calc(100% - 72px);
    min-width: 0;
    min-height: 28px;
    padding: 0 2px !important;
    justify-content: flex-start;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    text-transform: none;
    white-space: nowrap;
}

    .marketing-material-card-title-top .mud-button-label {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.marketing-material-card-cover {
    display: block;
    width: 100%;
    height: 96px;
    object-fit: cover;
    transition: filter 160ms ease, transform 160ms ease;
}

.marketing-material-card-cover-button.mud-button-root {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 0;
    text-transform: none;
}

.marketing-material-card-cover-button .mud-button-label {
    display: block;
    width: 100%;
}

.marketing-material-card-cover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgb(0 0 0 / 38%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 160ms ease;
}

.marketing-material-card-cover-button:hover:not(.mud-disabled) .marketing-material-card-cover,
.marketing-material-card-cover-button:focus-visible:not(.mud-disabled) .marketing-material-card-cover {
    filter: brightness(1.08);
    transform: scale(1.025);
}

.marketing-material-card-cover-button:hover:not(.mud-disabled) .marketing-material-card-cover-overlay,
.marketing-material-card-cover-button:focus-visible:not(.mud-disabled) .marketing-material-card-cover-overlay {
    opacity: 1;
}

.marketing-material-batch-dialog .mud-dialog-content {
    padding: 10px 14px 8px;
}

.marketing-material-batch-commandbar {
    display: flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
}

.marketing-material-batch-reading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mud-palette-primary);
    font-size: 13px;
    font-weight: 700;
}

.marketing-material-batch-picker-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.marketing-material-batch-drop {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 14px;
    padding: 9px 14px;
    border: 2px dashed var(--mud-palette-lines-default);
    border-radius: 8px;
    background: var(--mud-palette-background-grey);
    transition: border-color 150ms ease, background 150ms ease;
}

.marketing-material-batch-drop > div:nth-child(2) {
    flex: 1 1 auto;
    min-width: 0;
}

.marketing-material-batch-drop.is-dragging {
    border-color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface));
}

.marketing-material-batch-table-shell {
    max-height: 54vh;
    overflow: auto;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
}

.marketing-material-batch-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    table-layout: fixed;
}

.marketing-material-batch-table th,
.marketing-material-batch-table td {
    padding: 5px 6px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    vertical-align: middle;
    text-align: center;
}

.marketing-material-batch-table th {
    position: sticky;
    z-index: 1;
    top: 0;
    background: var(--mud-palette-surface);
    text-align: center;
}

.marketing-material-batch-table th:nth-child(1) { width: 78px; }
.marketing-material-batch-table th:nth-child(2) { width: 230px; }
.marketing-material-batch-table th:nth-child(3) { width: 210px; }
.marketing-material-batch-table th:nth-child(4) { width: 160px; }
.marketing-material-batch-table th:nth-child(5) { width: 320px; }
.marketing-material-batch-table th:nth-child(6) { width: 58px; }

.marketing-material-batch-table tr.is-success {
    background: color-mix(in srgb, var(--mud-palette-success) 7%, transparent);
}

.marketing-material-batch-table tr.is-error {
    background: color-mix(in srgb, var(--mud-palette-error) 6%, transparent);
}

.marketing-material-batch-status {
    vertical-align: middle !important;
    text-align: center;
}

.marketing-material-batch-status-text {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.marketing-material-batch-status-text.is-pending {
    color: var(--mud-palette-text-secondary);
}

.marketing-material-batch-status-text.is-uploading {
    color: var(--mud-palette-primary);
}

.marketing-material-batch-status-text.is-success {
    color: var(--mud-palette-success);
}

.marketing-material-batch-status-text.is-error {
    color: var(--mud-palette-error);
}

.marketing-material-batch-file-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketing-material-batch-cover {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.marketing-material-batch-cover img {
    width: 48px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 3px;
    object-fit: cover;
}

.marketing-material-batch-cover .mud-typography {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketing-material-batch-table .mud-input-control {
    margin-top: 0;
}

.marketing-material-batch-table .mud-input-slot {
    text-align: center;
}

.marketing-material-batch-table .mud-input-outlined-border {
    border-color: var(--mud-palette-lines-inputs);
}

.marketing-material-batch-tag-cell {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.marketing-material-batch-tag-chips {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 3px;
    overflow: hidden;
}

.marketing-material-batch-tag-chips .mud-chip {
    height: 24px;
    margin: 0;
}

.marketing-material-preview-loading {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background: color-mix(in srgb, var(--mud-palette-surface) 88%, transparent);
    color: var(--mud-palette-text-primary);
}

.marketing-cover-paste-zone {
    margin-top: 4px;
    padding: 6px;
    border: 1px dashed var(--mud-palette-lines-default);
    border-radius: 6px;
    outline: none;
}

.marketing-cover-paste-zone:focus-within,
.marketing-cover-paste-zone:focus {
    border-color: var(--mud-palette-primary);
}

.marketing-material-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.marketing-material-upload-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 4px 6px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    background: color-mix(in srgb, var(--mud-palette-surface) 94%, var(--mud-palette-primary) 6%);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.marketing-material-upload-row.marketing-material-drag-over {
    border-color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 14%, var(--mud-palette-surface));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--mud-palette-primary) 18%, transparent);
}

.marketing-cover-paste-zone .marketing-material-upload-row {
    padding: 0;
    border: 0;
    background: transparent;
}

.marketing-material-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 100px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid var(--mud-palette-primary);
    border-radius: 5px;
    color: var(--mud-palette-primary);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    user-select: none;
}

.marketing-material-upload-button:hover {
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, transparent);
}

.marketing-material-upload-button-disabled {
    opacity: .5;
    cursor: default;
    pointer-events: none;
}

.marketing-material-upload-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.marketing-material-selection-feedback {
    display: none;
    min-width: 0;
    align-items: center;
    gap: 7px;
    color: var(--mud-palette-primary);
    font-size: 13px;
}

.marketing-material-file-reading .marketing-material-upload-meta {
    display: none;
}

.marketing-material-file-reading .marketing-material-selection-feedback {
    display: flex;
}

.marketing-material-selection-spinner {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: marketing-material-selection-spin .7s linear infinite;
}

@keyframes marketing-material-selection-spin {
    to {
        transform: rotate(360deg);
    }
}

.marketing-material-upload-name,
.marketing-material-upload-empty {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.marketing-material-upload-empty {
    color: var(--mud-palette-text-secondary);
}

.marketing-material-upload-size {
    flex: 0 0 auto;
    color: var(--mud-palette-text-secondary);
    font-size: 12px;
}

.marketing-material-upload-clear {
    width: 28px !important;
    height: 28px !important;
}

.marketing-material-cover-help {
    display: block;
    margin: 3px 4px 0 108px;
}

.marketing-material-drop-help {
    display: block;
    margin: 3px 4px 0 108px;
}

.marketing-material-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 0;
    padding: 6px 8px !important;
    text-align: center;
}

.marketing-material-card-keyword-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 20px;
}

    .marketing-material-card-keyword-chips .mud-chip {
        height: 20px;
        margin: 0 !important;
        font-size: 11px;
    }

.marketing-material-card-summary {
    display: -webkit-box;
    flex: 1 1 auto;
    min-height: 2.6em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.3;
    text-align: center;
}

.marketing-material-card-summary-expanded {
    min-height: 2.6em;
    -webkit-line-clamp: 2;
}

.marketing-material-card-file-time {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 11px;
}

.marketing-material-card-actions {
    min-height: 32px;
    padding: 0 8px 4px !important;
    justify-content: center;
}

.marketing-material-card-title.mud-button-root {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 28px;
    justify-content: center;
    text-align: center;
    text-transform: none;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marketing-material-card-file {
    max-width: calc(100% - 72px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketing-library-shell {
    width: min(100%, 1680px);
    margin-inline: auto;
}

.marketing-library-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 36px;
    margin-bottom: 6px;
}

.marketing-library-title {
    flex: 0 0 auto;
    white-space: nowrap;
    font-weight: 700;
}

.marketing-library-heading .marketing-library-search {
    width: 280px;
    max-width: min(280px, 40vw);
    flex: 0 0 auto;
}

.marketing-library-tag-filter {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 110px;
    max-width: min(520px, 38vw);
    overflow-x: auto;
    scrollbar-width: thin;
    white-space: nowrap;
}

.marketing-library-filter-guide {
    display: flex;
    width: min(680px, calc(100% - 32px));
    min-height: 92px;
    margin: 42px auto 16px;
    padding: 20px 28px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 24%, transparent);
    border-radius: 12px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--mud-palette-primary) 9%, var(--mud-palette-surface)), var(--mud-palette-surface));
    text-align: center;
}

.marketing-library-filter-guide .mud-typography {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.7;
}

.marketing-library-quick-tags {
    display: flex;
    max-width: min(100%, 980px);
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    white-space: nowrap;
}

.marketing-quick-tag.mud-button-root {
    transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.marketing-quick-tag-selected.mud-button-root {
    position: relative;
    z-index: 1;
    border-width: 2px;
    box-shadow: 0 0 0 2px var(--mud-palette-surface), 0 5px 14px rgb(15 23 42 / 42%);
    transform: translateY(-1px) scale(1.05);
}

    .marketing-library-tag-filter .mud-chip {
        flex: 0 0 auto;
        height: 24px;
        margin: 0;
    }

.marketing-library-heading .mud-input-control {
    margin-top: 0;
}

.marketing-library-grid {
    width: 100%;
}

.marketing-library-grid > .marketing-library-grid-item {
    min-width: 0;
}

.marketing-library-table .mud-table-root {
    table-layout: fixed;
    width: 100%;
}

.marketing-library-table th,
.marketing-library-table td {
    height: 32px;
    padding: 2px 8px !important;
    text-align: center;
    vertical-align: middle;
}

.marketing-library-table th {
    font-weight: 700;
    white-space: nowrap;
}

.marketing-library-table .mud-button-root {
    min-height: 26px;
    padding: 0 4px;
}

.marketing-library-cover-cell {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.marketing-library-cover {
    display: inline-block;
    width: 48px !important;
    height: 28px !important;
    object-fit: cover;
    object-position: center;
    vertical-align: middle;
}

.marketing-library-table .mud-icon-button {
    width: 28px;
    height: 28px;
    padding: 2px;
}

.marketing-library-table .marketing-material-card-keyword-chips,
.marketing-library-file {
    justify-content: center;
}

.marketing-library-table .marketing-material-card-keyword-chips {
    flex-wrap: nowrap;
    overflow: hidden;
}

.marketing-library-table .marketing-material-card-keyword-chips .mud-chip {
    flex: 0 1 auto;
    min-width: 24px;
    max-width: 76px;
}

.marketing-library-file {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.marketing-library-file > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketing-library-actions {
    white-space: nowrap;
}

.marketing-library-row-title {
    max-width: 100%;
    text-align: center;
}

@media (min-width: 1200px) {
    .marketing-library-grid > .marketing-library-grid-item {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (max-width: 700px) {
    .marketing-library-heading {
        flex-wrap: wrap;
    }

        .marketing-library-heading .marketing-library-search {
            width: 100%;
            max-width: none;
            order: 3;
        }

    .marketing-library-tag-filter {
        order: 2;
        width: 100%;
        max-width: none;
    }
}

.marketing-material-dialog-tag-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.marketing-material-dialog-tags,
.marketing-tag-picker-chips,
.marketing-tag-picker-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
}

.marketing-tags-more-chip {
    flex: 0 0 auto !important;
    min-width: 28px !important;
    cursor: pointer;
    font-weight: 700;
}

.marketing-all-tags-dialog {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 58vh;
    overflow-y: auto;
}

.marketing-all-tags-group {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: start;
    gap: 3px;
    padding: 1px 0;
}

.marketing-all-tags-category {
    padding-top: 1px;
    font-weight: 700;
}

.marketing-all-tags-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.marketing-all-tags-chips .mud-chip {
    height: 20px;
    min-height: 20px;
    margin: 0 !important;
    font-size: 11px;
}

.marketing-all-tags-chips .mud-chip-content {
    min-height: 20px;
    line-height: 20px;
}

.marketing-material-dialog-tags {
    min-height: 34px;
    padding: 5px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
}

.marketing-material-dialog-tags .mud-chip,
.marketing-tag-picker-chips .mud-chip,
.marketing-tag-picker-cloud .mud-chip {
    height: 20px;
    margin: 0;
    font-size: 11px;
}

.marketing-tag-picker-chips .mud-chip-content,
.marketing-tag-picker-cloud .mud-chip-content {
    min-height: 20px;
    line-height: 20px;
}

.marketing-tag-picker-group {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: center;
    gap: 3px;
    padding: 1px 0;
}

.marketing-tag-picker-group + .marketing-tag-picker-group {
    margin-top: 1px;
}

.marketing-tag-picker-category {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: center;
    justify-content: center;
    gap: 2px;
    min-height: 20px;
    padding-top: 0;
    font-weight: 700;
    line-height: 20px;
}

.marketing-tag-picker-category > .mud-typography {
    margin: 0;
    line-height: 20px;
}

.marketing-tag-picker-selected {
    align-items: center;
    margin-bottom: 3px;
    padding: 3px 5px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 5px;
    background: rgba(var(--mud-palette-primary-rgb), .04);
}

.marketing-tag-picker-cloud {
    align-items: baseline;
    gap: 3px;
}

.marketing-tag-usage {
    margin-left: 3px;
    opacity: .65;
    font-size: 10px;
}

.marketing-tag-custom-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    margin-top: 8px;
}

.marketing-tag-limit-select {
    width: 78px;
}

    .marketing-tag-limit-select .mud-input {
        min-height: 28px;
        font-size: 11px;
    }

@media (max-width: 700px) {
    .marketing-tag-picker-group {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .marketing-tag-picker-category {
        flex-direction: row;
        align-items: center;
    }
}

.marketing-tag-manage-heading {
    gap: 6px;
    flex-wrap: wrap;
}

.marketing-tag-edit-panel {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) 130px 130px auto;
    align-items: end;
    gap: 8px;
}

.marketing-tag-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding-bottom: 4px;
}

.marketing-tag-manage-table th,
.marketing-tag-manage-table td {
    padding: 4px 8px !important;
    text-align: center;
    vertical-align: middle;
}

.marketing-tag-manage-table th {
    font-weight: 700;
}

@media (max-width: 900px) {
    .marketing-tag-edit-panel {
        grid-template-columns: 1fr 1fr;
    }
}

/* 营销资料 Office 预览 */
.marketing-material-preview-layout {
    min-width: 0;
}

.marketing-material-preview-layout.is-fullscreen {
    display: flex;
    height: calc(100dvh - 48px);
    min-height: 0;
    flex-direction: column;
}

.marketing-material-preview-layout.is-fullscreen .marketing-office-preview-shell,
.marketing-material-preview-layout.is-fullscreen .marketing-pdf-preview-shell,
.marketing-material-preview-layout.is-fullscreen .marketing-image-preview-shell {
    flex: 1 1 0;
    width: 100%;
    height: auto !important;
    min-height: 0;
}

.marketing-material-preview-layout.is-fullscreen .marketing-office-preview-host {
    height: 100% !important;
    min-height: 0 !important;
}

.marketing-material-preview-layout.is-fullscreen .marketing-image-preview {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    object-position: center;
}

.marketing-material-preview-toolbar {
    flex: 0 0 auto;
    min-width: 0;
    height: 36px;
    margin-bottom: 6px;
}

.marketing-material-preview-caption {
    flex: 0 0 auto;
    font-weight: 700;
}

.marketing-material-preview-divider {
    width: 1px;
    height: 18px;
    flex: 0 0 auto;
    background: var(--mud-palette-divider);
}

.marketing-material-preview-file-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketing-office-preview-shell {
    position: relative;
    width: 100%;
    height: 72vh;
    min-height: 560px;
}

.marketing-office-preview-host {
    width: 100%;
    height: 100%;
    min-height: 560px;
    box-sizing: border-box;
}

    .marketing-office-preview-host.is-word {
        overflow: auto !important;
    }

    /* Word 缩放使用 transform；保持左对齐，避免居中造成负偏移和额外横向滚动。 */
    .marketing-office-preview-host.is-word.docx-viewer-wrapper > article {
        margin-inline: 0 !important;
        transform-origin: top left !important;
    }

    .marketing-office-preview-host.is-word.docx-viewer-wrapper > article > section {
        margin-inline: 0 !important;
    }

.marketing-pdf-preview-shell {
    position: relative;
    width: 100%;
    height: 72vh;
    min-height: 560px;
}

.marketing-pdf-preview-frame {
    width: 100%;
    height: 100%;
    border: 0;
}

.marketing-image-preview-shell {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 40vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.marketing-image-preview {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    object-position: center;
}

.mud-dialog.marketing-material-preview-fullscreen {
    display: flex !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    max-height: none !important;
    margin: 0 !important;
    flex-direction: column;
    border-radius: 0;
}

.mud-dialog.marketing-material-preview-fullscreen .mud-dialog-content {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
}

.mud-dialog.marketing-material-preview-fullscreen .mud-dialog-actions {
    flex: 0 0 auto;
}

/* 培训学习预览与资料预览保持相同的无标题全屏布局。 */
.mud-dialog.training-preview-dialog {
    display: flex !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    max-height: none !important;
    margin: 0 !important;
    flex-direction: column;
    border-radius: 0;
}

.mud-dialog.training-preview-dialog .mud-dialog-content {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    padding: 0 8px 8px;
    flex-direction: column;
    overflow: hidden;
}

/* 培训表格统一对齐。MudTh/MudTd 的默认 start 对齐必须在全局层覆盖。 */
.mud-table-cell.training-table-head {
    text-align: center !important;
    font-weight: 700 !important;
    vertical-align: middle !important;
}

.mud-table-cell.training-table-cell {
    text-align: center !important;
    vertical-align: middle !important;
}

.mud-table-cell.training-table-cell.training-course-name {
    text-align: left !important;
}

.marketing-material-local-cover-preview {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
}

.mud-dialog.marketing-cover-reselecting [data-marketing-cover-display] {
    display: none !important;
}

    /* Excel：表格区占满，底部仅自定义横向 sheet 标签 */
    .marketing-office-preview-host.is-excel,
    .marketing-office-preview-host.ov-excel {
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

        .marketing-office-preview-host.ov-excel .ov-excel-content {
            flex: 1 1 auto !important;
            min-height: 0 !important;
            position: relative !important;
            overflow: hidden !important;
        }

        .marketing-office-preview-host.ov-excel .ov-excel-formula-bar,
        .marketing-office-preview-host.ov-excel .ov-excel-sheet-tab-bar {
            display: none !important;
        }

.marketing-excel-sheet-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 40px;
    min-height: 40px;
    padding: 4px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    background: #f3f3f3;
    border-top: 1px solid #dcdcdc;
}

.marketing-excel-sheet-tab {
    flex: 0 0 auto;
    height: 28px;
    padding: 0 12px;
    border: 1px solid #cfcfcf;
    border-radius: 4px 4px 0 0;
    background: #e9e9e9;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    line-height: 26px;
}

    .marketing-excel-sheet-tab:hover {
        background: #f7f7f7;
    }

    .marketing-excel-sheet-tab.is-active {
        background: #fff;
        border-bottom-color: #fff;
        color: #217346;
        font-weight: 600;
    }

/* 销售员预测/年度预算：严格复用确认稿的紧凑信息结构 */
.planning-page { min-height: 100%; padding: 8px 10px 14px; background: #f5f7fa; color: #1b2430; }
.planning-toolbar { display: grid; grid-template-columns: minmax(270px, 1fr) max-content; align-items: center; gap: 10px; min-height: 42px; margin-bottom: 8px; white-space: nowrap; }
.planning-title { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; min-width: 270px; line-height: 1; }
.planning-title .mud-typography-h5 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.planning-title .mud-chip { height: 24px; font-size: 12px; white-space: nowrap; }
.planning-year-display { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; color: #52657e; font-size: 12px; white-space: nowrap; background: #f1f6ff; border: 1px solid #cfe0f8; border-radius: 12px; }
.planning-actions { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; align-items: center; justify-content: end; gap: 5px; min-width: 0; }
.planning-actions .mud-button-root { min-width: 0 !important; width: auto; height: 32px !important; min-height: 32px !important; padding: 0 8px !important; border-radius: 5px; font-size: 12px; line-height: 32px; text-transform: none; box-shadow: none; }
.planning-actions .mud-button-label { display: inline-flex; height: 34px; align-items: center; gap: 4px; }
.planning-actions .mud-button-icon-start { width: 16px; height: 16px; margin-right: 4px; font-size: 16px; }
.planning-toolbar-icon { width: 32px !important; min-width: 32px !important; height: 32px !important; min-height: 32px !important; padding: 0 !important; }
.planning-toolbar-icon .mud-button-label { display: inline-flex; align-items: center; justify-content: center; gap: 0; }
.planning-primary-icon { color: #fff !important; }
.planning-actions .mud-input-control { height: 32px !important; min-height: 32px !important; margin: 0 !important; }
.planning-actions .mud-input-control-input-container { height: 32px !important; min-height: 32px !important; margin: 0 !important; padding: 0 !important; }
.planning-actions .mud-input-root { height: 32px !important; min-height: 32px !important; margin: 0 !important; padding: 0 !important; }
.planning-actions .mud-input-slot { height: 32px !important; min-height: 32px !important; padding: 0 7px !important; font-size: 12px !important; line-height: 32px !important; }
.planning-actions .mud-input-adornment { height: 34px; margin: 0 4px 0 0 !important; }
.planning-actions .mud-input-adornment .mud-icon-root { font-size: 17px; }
.planning-actions .mud-input-outlined-border { border-color: #d9dfe8; border-radius: 5px; }
.planning-salesperson { width: 150px; }
.planning-salesperson-display { display: flex; align-items: center; gap: 7px; width: 140px; height: 32px; padding: 0 8px; color: #28384e; font-size: 12px; background: #fff; border: 1px solid #d9dfe8; border-radius: 5px; }
.planning-salesperson-display span { color: #7b8696; }
.planning-salesperson-display strong { overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; }
.planning-filter { width: 120px; }
.planning-filter-small { width: 116px; }
.planning-filter-division { width: 72px; }
.planning-action-separator { width: 1px; height: 20px; margin: 0 2px; background: #dfe4eb; }
.planning-save-button .mud-button-label { display: inline-flex !important; align-items: center; gap: 4px; }
.planning-save-button { width: 54px !important; min-width: 54px !important; padding: 0 8px !important; }
.planning-change-count { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 0; padding: 0 4px; line-height: 18px; background: rgba(255,255,255,.22); border-radius: 9px; font-size: 11px; }
.planning-add-panel { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 5px 9px; border: 1px solid #dfe5ef; border-radius: 7px; }
.planning-add-field { width: 200px; }
.planning-add-field-small { width: 105px; }
.planning-paste-panel { padding: 7px 9px; border: 1px solid #dfe5ef; border-radius: 7px; }
.planning-import-label { display: inline-flex; align-items: center; justify-content: center; height: 32px !important; min-height: 32px !important; padding: 0 8px !important; color: var(--mud-palette-primary); background: #fff; border: 1px solid currentColor; border-radius: 5px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.planning-import-label .mud-button-label { display: inline-flex; gap: 4px; align-items: center; height: 32px; }
.planning-toolbar-spinner { width: 14px !important; height: 14px !important; }
.planning-loading-slot { height: 3px; margin: 0 1px 3px; overflow: hidden; }
.planning-loading-slot .planning-loading-visible { visibility: visible; opacity: 1; transition: opacity .12s ease; }
.planning-loading-slot .planning-loading-hidden { visibility: hidden; opacity: 0; }
.planning-table { width: 100%; background: #fff; border: 1px solid #dbe2e8; border-radius: 6px; overflow: hidden; box-shadow: none; }
.planning-table table { width: 100%; min-width: 0; table-layout: fixed; }
.planning-table col.planning-col-customer { width: 190px; }
.planning-table col.planning-col-div { width: 104px; }
.planning-table col.planning-col-family { width: 90px; }
.planning-table col.planning-col-item { width: 108px; }
.planning-table col.planning-col-item-name { width: 142px; }
.planning-table col.planning-col-number { width: 76px; }
.planning-table col.planning-col-month { width: auto; }
.planning-table col.planning-col-total { width: 106px; }
.planning-table col.planning-col-actions { width: 66px; }
.planning-table col.planning-col-detail { width: 72px; }
.planning-six-months col.planning-col-customer { width: 14%; }
.planning-six-months col.planning-col-div { width: 4%; }
.planning-six-months col.planning-col-family { width: 6%; }
.planning-six-months col.planning-col-item { width: 7%; }
.planning-six-months col.planning-col-item-name { width: 9%; }
.planning-six-months col.planning-col-number { width: 6%; }
.planning-six-months col.planning-col-month { width: 6.6667%; }
.planning-six-months col.planning-col-total { width: 6%; }
.planning-six-months col.planning-col-actions { width: 8%; }
.planning-twelve-months col.planning-col-customer { width: 13%; }
.planning-twelve-months col.planning-col-div { width: 3%; }
.planning-twelve-months col.planning-col-family { width: 4%; }
.planning-twelve-months col.planning-col-item { width: 6%; }
.planning-twelve-months col.planning-col-item-name { width: 9%; }
.planning-twelve-months col.planning-col-number { width: 4%; }
.planning-twelve-months col.planning-col-month { width: 3.8333%; }
.planning-twelve-months col.planning-col-total { width: 7%; }
.planning-twelve-months col.planning-col-actions { width: 8%; }
.planning-view-table col.planning-col-customer { width: 16%; }
.planning-view-table col.planning-col-div { width: 7%; }
.planning-view-table col.planning-col-month { width: 5.75%; }
.planning-view-table col.planning-col-total { width: 5%; }
.planning-view-table col.planning-col-detail { width: 3%; }
.planning-table th { height: 31px; padding: 4px 5px !important; color: #526b84; font-size: 11px !important; line-height: 17px !important; font-weight: 700; text-align: center; white-space: nowrap; background: #f3f6f8; border-bottom: 1px solid #dbe2e8; }
.planning-table td { height: 38px; padding: 3px 4px !important; overflow: hidden; color: #334155; font-size: 12px !important; line-height: 18px !important; text-align: center; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; border-bottom: 1px solid #e6ebef; }
.planning-maintenance-table .planning-month-cell { padding-right: 2px !important; padding-left: 2px !important; }
.planning-table .planning-customer-cell { overflow: hidden; color: #2d587c; font-weight: 700; text-align: left; text-overflow: ellipsis; }
.planning-table .planning-amount { color: #1c4e9b; font-weight: 600; font-variant-numeric: tabular-nums; }
.planning-table .mud-input-control { width: 100%; height: 32px !important; min-height: 32px !important; margin: 0 !important; }
.planning-table .mud-input-control-input-container, .planning-table .mud-input-root { width: 100%; min-height: 32px !important; height: 32px !important; margin: 0 !important; padding: 0 !important; }
.planning-table .mud-input-slot { min-height: 32px !important; height: 32px !important; padding: 0 6px !important; font-size: 13px !important; line-height: 32px !important; text-align: right; }
.planning-table .mud-input-adornment { flex: 0 0 22px; width: 22px; height: 32px; margin: 0 !important; }
.planning-table .mud-input-outlined-border { border-color: #d8dee7; border-radius: 4px; }
.planning-table .mud-select-input { text-align: center; }
.planning-grid-number input { text-align: center !important; font-size: 13px !important; font-variant-numeric: tabular-nums; }
.planning-grid-name .mud-input-slot,
.planning-grid-name input { text-align: left !important; }
.planning-convert-field { display: flex; align-items: center; gap: 1px; min-width: 0; }
.planning-convert-field .mud-input-control { min-width: 0; }
.planning-convert-field .mud-icon-button { flex: 0 0 24px; width: 24px; min-width: 24px; height: 24px; padding: 1px; }
.planning-grid-family .mud-select-input { padding-right: 18px !important; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.planning-family-cell { color: #456985 !important; font-weight: 650 !important; }
.planning-family-editor { display: flex; align-items: center; justify-content: center; gap: 1px; min-width: 0; }
.planning-family-editor > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #315f85; font-weight: 700; }
.planning-family-editor .mud-icon-button { width: 24px; height: 24px; padding: 3px; flex: 0 0 24px; }
.planning-family-dialog-summary { display: grid; grid-template-columns: 80px minmax(0, 1fr) 56px; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; color: #456985; background: #f3f7fb; border: 1px solid #dce7f0; border-radius: 5px; }
.planning-summary-number { font-size: 9px !important; letter-spacing: -.02em; }
.planning-grid-div .mud-input-control,
.planning-grid-div .mud-input-control-input-container { width: 100% !important; min-width: 0 !important; }
.planning-grid-div .mud-input-root { display: flex; min-width: 0 !important; padding: 0 !important; }
.planning-grid-div .mud-select-input { flex: 1 1 auto; width: auto !important; min-width: 0 !important; max-width: 100%; padding: 0 22px 0 7px !important; overflow: hidden !important; color: #263345 !important; text-align: center !important; text-overflow: clip !important; white-space: nowrap !important; }
.planning-grid-div .mud-input-adornment { flex: 0 0 22px; width: 22px; margin-left: -22px !important; pointer-events: none; }
.planning-table .mud-icon-button { padding: 3px; }
.planning-grid-number, .planning-grid-div, .planning-grid-family, .planning-grid-name, .planning-grid-customer { width: 100%; min-width: 0; }
.planning-table .planning-grid-div { width: 88px !important; margin-right: auto; margin-left: auto; }
.planning-others-badge { display: inline-block; padding: 2px 5px; color: #8b5e15; font-size: 10px; background: #fff7e6; border-radius: 4px; }
.planning-new-badge { display: inline-block; margin-left: 5px; padding: 2px 5px; color: #9a6510; font-size: 10px; font-weight: 500; background: #ffedbd; border-radius: 4px; }
.planning-table .planning-summary-row,
.planning-table .planning-summary-row:nth-child(even),
.planning-table .planning-summary-row:hover,
.planning-table .planning-summary-row > *,
.planning-table .planning-summary-row > th,
.planning-table .planning-summary-row > td,
.planning-table .planning-summary-row .mud-table-cell,
.planning-table .planning-summary-row .planning-summary-cell,
.planning-table .planning-summary-row * { height: 34px; padding: 3px 5px; color: #14532d; font-size: 10px !important; line-height: 16px !important; font-weight: 700; background: #e7f6ed !important; background-color: #e7f6ed !important; background-image: none !important; box-shadow: none !important; border-bottom: 1px solid #b7dfc8; }
.planning-summary-row .planning-summary-label { color: #166534; text-align: left !important; }
.planning-summary-cell { text-align: center !important; }
.planning-table .planning-main-head-row > * { color: #526b84 !important; font-weight: 750 !important; }
.planning-table .planning-customer-cell,
.planning-table .planning-customer-cell > span,
.planning-table .planning-customer-cell .mud-input-slot,
.planning-table .planning-customer-cell input { color: #2d587c !important; font-weight: 700 !important; }
.planning-table .planning-division-cell { color: #52657e !important; font-weight: 650 !important; }
.planning-table .planning-item-cell { color: #466b8d !important; font-weight: 600 !important; }
.planning-table .planning-item-description-cell { text-align: left !important; }
.planning-table .planning-summary-row .planning-summary-label { color: #166534 !important; font-weight: 800 !important; }
.planning-table .planning-summary-row .planning-summary-cell,
.planning-table .planning-summary-row .planning-summary-last-cell,
.planning-table .planning-summary-cell { color: #18794e !important; font-weight: 750 !important; background: #e7f6ed !important; background-color: #e7f6ed !important; background-image: none !important; box-shadow: none !important; }
.planning-table .planning-summary-row .planning-summary-number { font-size: 9px !important; }
/* 汇总行保持整行同一浅绿色，覆盖默认条纹、悬停及单元格伪元素。 */
.planning-table thead tr.planning-summary-row,
.planning-table thead tr.planning-summary-row:hover,
.planning-table thead tr.planning-summary-row:nth-child(even),
.planning-table thead tr.planning-summary-row > th,
.planning-table thead tr.planning-summary-row > th::before,
.planning-table thead tr.planning-summary-row > th::after { background: #e7f6ed !important; background-color: #e7f6ed !important; background-image: none !important; box-shadow: none !important; }
.planning-table .planning-summary-last-cell,
.planning-table .planning-summary-last-cell.mud-table-cell { background: #e7f6ed !important; background-color: #e7f6ed !important; background-image: none !important; }
.planning-table .planning-summary-fill,
.planning-table .planning-summary-fill.mud-table-cell,
.planning-table .planning-summary-fill::before,
.planning-table .planning-summary-fill::after { background: #e7f6ed !important; background-color: #e7f6ed !important; background-image: none !important; box-shadow: none !important; }
.planning-table tbody,
.planning-table tbody .mud-table-row,
.planning-table tbody .mud-table-empty-row,
.planning-table tbody .mud-table-empty-row > td,
.planning-table tbody .mud-table-empty-row > .mud-table-cell { background: #fff !important; background-color: #fff !important; background-image: none !important; }
.planning-table .mud-table-empty-row { height: 86px; }
.planning-table .mud-table-empty-row .mud-table-cell { color: #64748b; font-size: 14px; text-align: center; }
.planning-new-row td { background: #fffaf0 !important; border-top: 1px solid #f5d99b; border-bottom: 1px solid #f5d99b; }
.planning-new-row td:first-child { border-left: 3px solid #e3a72f; }
.planning-detail-button { height: 25px !important; min-height: 25px !important; padding: 0 6px !important; font-size: 11px !important; }
.planning-detail-titlebar { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 34px; }
.planning-detail-title-icon { display: grid; width: 32px; height: 32px; place-items: center; color: #fff; background: linear-gradient(145deg, #2f72c9, #1c4e9b); border-radius: 8px; }
.planning-detail-title-icon .mud-icon-root { font-size: 19px; }
.planning-detail-title-copy { min-width: 0; text-align: left; }
.planning-detail-title-copy .mud-typography-subtitle1 { color: #1f3046; font-weight: 700; }
.planning-detail-title-copy .mud-typography-caption { display: block; max-width: 520px; overflow: hidden; color: #718096; text-overflow: ellipsis; white-space: nowrap; }
.planning-detail-total-block { position: absolute; right: 0; padding-left: 18px; text-align: right; border-left: 1px solid #e2e8f0; }
.planning-detail-total-block span, .planning-detail-total-block strong { display: block; }
.planning-detail-total-block span { color: #718096; font-size: 11px; }
.planning-detail-total-block strong { margin-top: 2px; color: #1c4e9b; font-size: 18px; line-height: 20px; font-variant-numeric: tabular-nums; }
.mud-dialog.planning-detail-dialog { width: min(calc(100vw - 48px), 1080px); max-width: 1080px; }
.mud-dialog.planning-detail-dialog .mud-dialog-title { padding: 12px 18px 8px; }
.mud-dialog.planning-detail-dialog .mud-dialog-content { padding: 4px 18px 10px; }
.planning-detail-content { width: min(100%, 1020px); margin: 0 auto; }
.planning-detail-overview { display: flex; width: 100%; margin: 0 0 8px; border: 1px solid #e1e7ef; border-radius: 6px; overflow: hidden; }
.planning-detail-stat { display: flex; flex: 1 1 0; align-items: baseline; justify-content: center; gap: 8px; min-height: 34px; padding: 5px 8px; background: #f8fafc; border-right: 1px solid #e1e7ef; }
.planning-detail-stat:last-child { border-right: 0; }
.planning-detail-stat span, .planning-detail-stat strong { display: block; }
.planning-detail-stat span { color: #778395; font-size: 11px; }
.planning-detail-stat strong { margin-top: 0; color: #25364d; font-size: 14px; line-height: 18px; font-variant-numeric: tabular-nums; }
.planning-detail-stat-accent { background: #f1f6ff; border-color: #d5e4fb; }
.planning-detail-stat-accent strong { color: #1c4e9b; }
.planning-detail-tabs { margin-top: 2px; }
.planning-detail-tabs .mud-tabs-toolbar { min-height: 34px; background: #f8fafc; border-bottom: 1px solid #dfe6ef; }
.planning-detail-tabs .mud-tab { min-height: 34px; padding: 0 16px; color: #66758a; font-size: 12px; }
.planning-detail-tabs .mud-tab.mud-tab-active { color: #1c4e9b; font-weight: 700; }
.planning-detail-tabs .mud-tabs-panels { padding: 8px 0 0; }
.planning-detail-group { max-width: 1020px; margin: 0 auto 8px; overflow: hidden; background: #fff; border: 1px solid #dfe6ef; border-radius: 7px; }
.planning-detail-group-head { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 6px 10px; background: linear-gradient(90deg, #f4f8fd, #fbfcfe); border-bottom: 1px solid #e2e8f0; }
.planning-detail-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.planning-detail-item-code { padding: 3px 7px; color: #1c4e9b; font-size: 12px; font-weight: 700; background: #e8f1ff; border-radius: 4px; }
.planning-detail-item-name { overflow: hidden; color: #334155; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.planning-detail-family { padding: 2px 5px; color: #52657e; font-size: 10px; background: #edf3f8; border-radius: 4px; }
.planning-detail-group-total { display: flex; flex: 0 0 auto; align-items: baseline; gap: 7px; margin-left: 10px; }
.planning-detail-group-total span { color: #8a96a6; font-size: 11px; }
.planning-detail-group-total strong { color: #1c4e9b; font-size: 14px; font-variant-numeric: tabular-nums; }
.planning-detail-table { border-radius: 0; }
.planning-detail-table table { table-layout: fixed; }
.planning-detail-table col.planning-detail-col-month { width: 16%; }
.planning-detail-table col.planning-detail-col-price { width: 16%; }
.planning-detail-table col.planning-detail-col-qty { width: 16%; }
.planning-detail-table col.planning-detail-col-amount { width: 18%; }
.planning-detail-table col.planning-detail-col-date { width: 34%; }
.planning-detail-table th { height: 26px; padding: 3px 6px !important; color: #7a8798; font-size: 10px !important; text-align: center; background: #fbfcfe; }
.planning-detail-table td { height: 30px; padding: 3px 6px !important; color: #39485b; font-size: 11px !important; text-align: center; border-bottom-color: #edf1f5; }
.planning-detail-table .planning-detail-month { color: #52657e; font-weight: 600; }
.planning-detail-table .planning-detail-number { text-align: center; font-variant-numeric: tabular-nums; }
.planning-detail-table .planning-detail-amount { color: #1c4e9b; font-weight: 700; }
.planning-detail-month-title { display: flex; align-items: baseline; gap: 9px; color: #1c4e9b; font-size: 13px; font-weight: 700; }
.planning-detail-month-title span { color: #8390a0; font-size: 11px; font-weight: 400; }
.planning-detail-month-table col.planning-detail-month-col-item { width: 15%; }
.planning-detail-month-table col.planning-detail-month-col-name { width: 21%; }
.planning-detail-month-table col.planning-detail-month-col-family { width: 7%; }
.planning-detail-month-table col.planning-detail-month-col-price { width: 13%; }
.planning-detail-month-table col.planning-detail-month-col-qty { width: 13%; }
.planning-detail-month-table col.planning-detail-month-col-amount { width: 15%; }
.planning-detail-month-table col.planning-detail-month-col-date { width: 16%; }
.planning-detail-month-table .planning-detail-month-item { color: #346da9; font-weight: 650; }
.planning-detail-month-table .planning-detail-month-name { overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.planning-detail-empty { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 120px; color: #8a96a6; background: #f8fafc; border: 1px dashed #dbe3ec; border-radius: 8px; }
@media (max-width: 700px) { .planning-detail-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .planning-detail-stat:nth-child(2) { border-right: 0; } .planning-detail-total-block { display: none; } .planning-detail-content { width: 100%; } .mud-dialog.planning-detail-dialog { width: calc(100vw - 20px); } .mud-dialog.planning-detail-dialog .mud-dialog-title, .mud-dialog.planning-detail-dialog .mud-dialog-content { padding-right: 10px; padding-left: 10px; } }
.planning-table-footer { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding-left: 7px; color: #475569; font-size: 12px; background: #f8fafc; }
.planning-table-footer .mud-table-pagination { min-height: 40px; margin-left: auto; border: 0; }
.planning-table-footer .mud-table-pagination-toolbar { min-height: 40px; height: 40px; }
.planning-dialog-title { display: flex; align-items: center; gap: 9px; }
.planning-dialog-title .mud-typography-subtitle1 { font-weight: 650; }
.planning-dialog-title .mud-typography-caption { color: #778395; }
.planning-dialog-form { display: grid; gap: 12px; padding-top: 2px; }
.planning-dialog-section { padding: 12px 14px; background: #f8fafc; border: 1px solid #e5e9ef; border-radius: 8px; }
.planning-dialog-section-head { display: flex; align-items: center; justify-content: space-between; }
.planning-dialog-section-title { margin-bottom: 8px; color: #27364a; font-size: 12px; font-weight: 650; }
.planning-dialog-section-head .planning-dialog-section-title { margin-bottom: 0; }
.planning-batch-summary { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; padding: 8px 10px; color: #475569; font-size: 12px; background: #f1f6ff; border: 1px solid #dbe8ff; border-radius: 6px; }
.planning-batch-summary strong { color: #1c4e9b; font-weight: 700; }
.planning-batch-hint { display: block; margin-top: 3px; color: #778395; }
.planning-batch-month-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.planning-maintenance-table .mud-icon-button { min-width: 28px; width: 28px; height: 28px; padding: 2px; }
.planning-maintenance-table .planning-col-actions { white-space: nowrap; }
.planning-page:not(.planning-budget-page) .planning-maintenance-table th { height: 29px; padding: 3px 4px !important; font-size: 10px !important; line-height: 15px !important; }
.planning-page:not(.planning-budget-page) .planning-maintenance-table td { height: 34px; padding: 2px 3px !important; font-size: 11px !important; line-height: 16px !important; }
.planning-page:not(.planning-budget-page) .planning-maintenance-table .mud-input-control,
.planning-page:not(.planning-budget-page) .planning-maintenance-table .mud-input-control-input-container,
.planning-page:not(.planning-budget-page) .planning-maintenance-table .mud-input-root,
.planning-page:not(.planning-budget-page) .planning-maintenance-table .mud-input-slot { height: 27px !important; min-height: 27px !important; line-height: 27px !important; }
.planning-page:not(.planning-budget-page) .planning-maintenance-table .mud-input-slot { font-size: 11px !important; }
.planning-budget-page { padding: 6px 8px 10px; }
.planning-budget-page .planning-toolbar { min-height: 36px; margin-bottom: 6px; gap: 7px; }
.planning-budget-page .planning-title { min-width: 245px; gap: 8px; }
.planning-budget-page .planning-title .mud-typography-h5 { font-size: 21px; }
.planning-budget-page .planning-title .mud-chip { height: 22px; font-size: 11px; }
.planning-budget-page .planning-actions .mud-button-root,
.planning-budget-page .planning-actions .planning-toolbar-icon,
.planning-budget-page .planning-import-label { height: 30px !important; min-height: 30px !important; }
.planning-budget-page .planning-toolbar-icon { width: 30px !important; min-width: 30px !important; }
.planning-budget-page .planning-actions .mud-input-control,
.planning-budget-page .planning-actions .mud-input-control-input-container,
.planning-budget-page .planning-actions .mud-input-root,
.planning-budget-page .planning-actions .mud-input-slot { height: 30px !important; min-height: 30px !important; line-height: 30px !important; }
.planning-budget-page .planning-table th { height: 29px; padding: 4px 4px !important; font-size: 11px !important; line-height: 16px !important; }
.planning-budget-page .planning-table td { height: 35px; padding: 3px 4px !important; font-size: 11px !important; line-height: 17px !important; }
.planning-budget-page .planning-maintenance-table .planning-month-cell { padding-right: 1px !important; padding-left: 1px !important; }
.planning-budget-page .planning-table .mud-input-control,
.planning-budget-page .planning-table .mud-input-control-input-container,
.planning-budget-page .planning-table .mud-input-root,
.planning-budget-page .planning-table .mud-input-slot { height: 28px !important; min-height: 28px !important; line-height: 28px !important; }
.planning-budget-page .planning-table .mud-input-slot { font-size: 11px !important; }
.planning-budget-page .planning-table .planning-summary-row > * { height: 31px; padding: 3px 4px !important; font-size: 10px !important; line-height: 15px !important; }
.planning-budget-page .planning-table .planning-summary-row .planning-summary-number { font-size: 8px !important; }
.planning-dialog-left-input input { text-align: left !important; }
.mud-dialog.planning-add-dialog { width: min(1120px, calc(100vw - 32px)); max-width: 1120px; }
.mud-dialog.planning-add-dialog .mud-dialog-title { padding: 7px 12px 4px; }
.mud-dialog.planning-add-dialog .mud-dialog-content { height: 560px; min-height: 560px; max-height: 560px; box-sizing: border-box; padding: 0 12px 4px; overflow: hidden; }
.planning-add-dialog .planning-dialog-form { gap: 4px; }
.planning-add-dialog .planning-dialog-section { padding: 5px 8px; }
.planning-add-dialog .planning-dialog-section-title { margin-bottom: 3px; font-size: 11px; }
.planning-add-dialog .planning-dialog-title .mud-icon-root { padding: 6px; border-radius: 8px; background: #e8f1fb; color: #2874b9; }
.planning-add-dialog .planning-add-customer-section { background: #f5f9fd; border-color: #d8e7f5; }
.planning-add-dialog .planning-add-material-section { background: #fbfcfe; border-color: #d9e2ed; }
.planning-add-dialog .planning-add-customer-section .planning-dialog-section-title { color: #236397; }
.planning-add-dialog .planning-add-material-section .planning-dialog-section-title { color: #31506f; }
.planning-add-item-tabs { margin-top: 1px; }
.planning-add-item-tabs .mud-tabs-toolbar,
.planning-add-item-tabs .mud-tabs-tabbar,
.planning-add-item-tabs .mud-tabs-tabbar-content,
.planning-add-item-tabs .mud-tabs-tabbar-wrapper { height: 26px !important; min-height: 26px !important; }
.planning-add-item-tabs .mud-tab { min-width: 78px; min-height: 26px; height: 26px; padding: 0 8px; font-size: 11px; line-height: 26px; }
.planning-add-item-tabs .mud-tab.mud-tab-active { color: #2169a6; font-weight: 700; background: #eaf3fb; border-radius: 6px 6px 0 0; }
.planning-add-item-tabs .mud-tab-slider { background: #2f7fc1; height: 2px; }
.planning-add-item-tabs .mud-tabs-panels { height: 470px; min-height: 470px; padding: 3px 0 0; }
.planning-add-item-filters { display: grid; grid-template-columns: minmax(210px, .9fr) minmax(300px, 1.35fr) 58px auto; gap: 4px; align-items: stretch; height: 42px; min-height: 42px; margin: 2px 0 3px; }
.planning-add-dialog .planning-add-customer-section > .mud-input-control,
.planning-add-dialog .planning-add-item-filters > .mud-input-control,
.planning-add-dialog .planning-add-item-filters > .mud-button-root { height: 42px !important; min-height: 42px !important; max-height: 42px !important; box-sizing: border-box; }
.planning-add-dialog .planning-add-customer-section > .mud-autocomplete,
.planning-add-dialog .planning-add-item-filters > .mud-autocomplete { height: 42px !important; min-height: 42px !important; max-height: 42px !important; margin: 0 !important; align-self: stretch; box-sizing: border-box; }
.planning-add-dialog .planning-add-customer-section > .mud-autocomplete > .mud-input-control,
.planning-add-dialog .planning-add-item-filters > .mud-autocomplete > .mud-input-control { height: 42px !important; min-height: 42px !important; max-height: 42px !important; margin: 0 !important; box-sizing: border-box; }
.planning-add-dialog .planning-add-customer-section > .mud-input-control .mud-input-control-input-container,
.planning-add-dialog .planning-add-item-filters > .mud-input-control .mud-input-control-input-container,
.planning-add-dialog .planning-add-customer-section > .mud-input-control .mud-input-root,
.planning-add-dialog .planning-add-item-filters > .mud-input-control .mud-input-root { height: 42px !important; min-height: 42px !important; max-height: 42px !important; box-sizing: border-box; }
.planning-add-dialog .planning-add-customer-section .mud-input-control,
.planning-add-dialog .planning-add-item-filters .mud-input-control { margin: 0; }
.planning-add-dialog .planning-add-item-filters .mud-input-control { margin: 0 !important; }
.planning-add-selection-actions { display: flex; align-items: center; gap: 2px; height: 42px; min-height: 42px; max-height: 42px; align-self: stretch; overflow: hidden; white-space: nowrap; }
.planning-add-item-table { width: 100%; table-layout: fixed; }
.planning-add-item-table table { width: 100%; table-layout: fixed; }
.planning-add-item-table .mud-table-container { height: auto; min-height: 0; overflow: visible; }
.planning-add-item-table .mud-table-pagination { height: 36px; min-height: 36px; }
.planning-add-item-table .mud-table-cell-checkbox { width: 4%; min-width: 32px; padding: 0 2px !important; }
.planning-add-item-table th, .planning-add-item-table td { height: 28px; padding: 2px 5px !important; font-size: 11px !important; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.planning-add-item-table thead th { background: #edf4fa !important; color: #315b7f !important; font-weight: 700 !important; border-bottom: 1px solid #cbddec !important; }
.planning-add-item-table tbody tr:nth-child(even) td { background: #fbfdff; }
.planning-add-item-table tbody tr:hover td { background: #f0f7fd !important; }
.planning-add-item-table .planning-add-item-description { text-align: left !important; }
.planning-add-family-code, .planning-add-family-description { overflow: hidden; text-align: left !important; text-overflow: ellipsis; white-space: nowrap; }
.planning-add-family-code { color: #2169a6 !important; font-weight: 700; }
.planning-add-family-description { color: #60758b !important; }
.planning-add-item-selected td { background: #eaf3fb !important; color: #1d5b89 !important; font-weight: 700; }
.planning-add-item-hint { display: block; margin-top: 2px; color: #60758b; }
.planning-add-dialog .mud-dialog-actions { min-height: 42px; padding: 4px 12px; border-top: 1px solid #e1e8f0; background: #f8fafc; }
.mud-dialog.planning-convert-dialog { width: min(460px, calc(100vw - 32px)); }
@media (max-width: 700px) { .planning-batch-month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1400px) { .planning-toolbar { grid-template-columns: 270px minmax(0, 1fr); } .planning-actions { justify-content: start; overflow: hidden; } }

.mud-overlay:has(.training-exam-dialog) {
    padding: 24px;
    background: rgba(15, 23, 42, 0.28);
}
.mud-overlay:has(.training-exam-dialog) .mud-overlay-scrim {
    background: rgba(15, 23, 42, 0.28);
}
.mud-dialog.training-exam-dialog {
    width: min(1080px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 2px 10px rgba(15, 23, 42, 0.06);
}
.mud-dialog.training-exam-dialog .mud-dialog-title {
    min-height: 52px;
    padding: 16px 20px 12px;
    color: #1f2a37;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    border-bottom: 1px solid #f0f3f7;
}
.mud-dialog.training-exam-dialog .mud-dialog-title .mud-icon-button,
.mud-dialog.training-exam-dialog .mud-dialog-title .mud-button-root {
    color: #c5cdd6;
    opacity: 0.55;
}
.mud-dialog.training-exam-dialog .mud-dialog-title .mud-icon-button:hover,
.mud-dialog.training-exam-dialog .mud-dialog-title .mud-button-root:hover {
    color: #334155;
    background: #f1f5f9;
    opacity: 1;
}
.mud-dialog.training-exam-dialog .mud-dialog-content {
    padding: 16px 20px 8px;
    overflow-x: hidden;
    max-height: calc(100vh - 168px);
    font-size: 14px;
}
.mud-dialog.training-exam-dialog .mud-dialog-actions {
    justify-content: flex-end;
    gap: 12px;
    min-height: 64px;
    padding: 12px 20px 16px;
    border-top: 1px solid #f0f3f7;
}
.mud-dialog.training-exam-dialog .exam-dialog-cancel,
.mud-dialog.training-exam-dialog .exam-dialog-save {
    height: 40px;
    min-height: 40px;
    min-width: 88px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    text-transform: none;
}
.mud-dialog.training-exam-dialog .exam-dialog-cancel {
    color: #4b5563;
    background: #fff;
    border: 1px solid #d9e0e8;
}
.mud-dialog.training-exam-dialog .exam-dialog-cancel:hover {
    color: #334155;
    background: #f8fafc;
    border-color: #b7c3d1;
}
.mud-dialog.training-exam-dialog .exam-dialog-save:hover {
    background: #3367ab;
}
.exam-full-tooltip {
    max-width: 420px;
    padding: 8px 10px;
    color: #334155;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
