@font-face {
    font-family: "Inter";
    src: url("../_content/Radzen.Blazor/fonts/InterVariable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --rz-font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --rz-primary: #2563eb;
    --rz-primary-light: #3b82f6;
    --rz-primary-dark: #1d4ed8;
    --rz-border-radius: 8px;
    --rz-body-background-color: #f6f7f9;
    --rz-base-background-color: #ffffff;
    --rz-sidebar-width: 264px;
    --rz-sidebar-background-color: #ffffff;
    --rz-sidebar-color: #334155;
    --rz-header-background-color: #ffffff;
    --rz-header-border: 1px solid #e5e7eb;
    --rz-header-min-height: 64px;
    --rz-header-shadow: none;
    --rz-panel-menu-item-color: #475569;
    --rz-panel-menu-item-background-color: transparent;
    --rz-panel-menu-item-hover-background-color: #f1f5f9;
    --rz-panel-menu-item-hover-color: #0f172a;
    --rz-panel-menu-item-active-background-color: #eff6ff;
    --rz-panel-menu-item-active-color: #1d4ed8;
    --rz-panel-menu-item-2nd-level-background-color: transparent;
    --rz-panel-menu-item-2nd-level-color: #475569;
    --rz-panel-menu-item-2nd-level-hover-background-color: #f1f5f9;
    --rz-panel-menu-item-2nd-level-hover-color: #0f172a;
    --rz-panel-menu-item-2nd-level-active-background-color: #eff6ff;
    --rz-panel-menu-item-2nd-level-active-color: #1d4ed8;
    --rz-panel-menu-item-2nd-level-margin-inline: 10px;
    --rz-panel-menu-item-2nd-level-border-radius: 8px;
    --rz-panel-menu-item-border-radius: 8px;
    --rz-panel-menu-item-margin-inline: 10px;
    --rz-panel-menu-item-margin-block: 2px;
    --rz-panel-menu-item-padding-inline: 12px;
    --rz-panel-menu-item-padding-block: 9px;
    --rz-panel-menu-icon-color: #64748b;
    --rz-panel-menu-font-size: 0.9rem;
    --rz-grid-header-background-color: #f8fafc;
    --rz-grid-header-color: #475569;
    --rz-grid-header-font-size: 0.78rem;
    --rz-grid-header-font-weight: 600;
    --rz-grid-header-text-transform: uppercase;
    --rz-grid-cell-font-size: 0.875rem;
    --rz-grid-cell-padding: 0.65rem 0.75rem;
    --rz-grid-border-radius: 10px;
    --rz-card-border-radius: 12px;
    --rz-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    --rz-dialog-border-radius: 14px;
    --rz-input-border-radius: 8px;
    --rz-text-color: #0f172a;
    --rz-text-secondary-color: #64748b;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: var(--rz-font-family);
    background: #f6f7f9;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}

body {
    font-size: 14px;
}

a {
    color: var(--rz-primary);
    text-decoration: none;
}

a:hover {
    color: var(--rz-primary-dark);
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 22px 0 10px;
    gap: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.app-header-left,
.app-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-header-right {
    gap: 10px;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.app-brand:hover {
    color: #0f172a;
}

.app-brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: contain;
}

.app-brand-mark,
.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.18);
}

.app-brand-text {
    font-size: 1rem;
    white-space: nowrap;
}

.app-user-email {
    color: #64748b;
    font-size: 0.82rem;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-label {
    margin-left: 6px;
}

.rz-profile-menu {
    align-items: center;
}

.nav-menu-wrap {
    padding: 12px 0 24px;
}

.rz-sidebar {
    border-right: 1px solid #e5e7eb;
    box-shadow: none;
}

.app-content {
    padding: 24px 28px 40px;
    max-width: 1680px;
    margin: 0 auto;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-heading h1 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.025em;
    font-weight: 650;
}

.page-heading p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.88rem;
}

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

.content-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.content-card .rz-card {
    box-shadow: none;
    border: none;
    padding: 0;
}

.content-card-body {
    padding: 18px;
    overflow-x: auto;
}

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

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
}

.stat-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.2rem;
}

.stat-card-value {
    margin-top: 14px;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 650;
    letter-spacing: -0.035em;
}

.stat-card-note {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 0.76rem;
}

.rz-datagrid {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
}

.rz-datagrid .rz-datatable-thead > tr > th {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.rz-datagrid .rz-datatable-tbody > tr > td {
    border-bottom: 1px solid #f1f5f9;
}

.rz-datagrid .rz-datatable-tbody > tr:hover > td {
    background: #f8fafc;
}

.rz-datagrid .rz-paginator {
    border-top: 1px solid #e5e7eb;
}

.rz-grid-table {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.table-user-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.table-user-cell small {
    color: #94a3b8;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-pill-active {
    background: #ecfdf5;
    color: #047857;
}

.status-pill-inactive {
    background: #fef2f2;
    color: #b91c1c;
}

.status-pill-warning {
    background: #fffbeb;
    color: #b45309;
}

.status-pill-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.form-section {
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 14px;
    color: #0f172a;
}

.form-section-description {
    color: #64748b;
    font-size: 0.8rem;
    margin: -8px 0 16px;
}

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

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

.form-field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}

.form-hint {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 5px;
}

.form-errors {
    color: #b91c1c;
    font-size: 0.78rem;
    margin-top: 4px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

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

.detail-item {
    padding: 14px 16px 14px 0;
    border-bottom: 1px solid #f1f5f9;
    min-width: 0;
}

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

.detail-label {
    color: #94a3b8;
    font-size: 0.73rem;
    margin-bottom: 5px;
}

.detail-value {
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.raw-json {
    margin: 0;
    padding: 16px;
    border-radius: 10px;
    background: #0f172a;
    color: #e2e8f0;
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 0.72rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 420px;
    overflow: auto;
}

.permission-group {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
    background: #ffffff;
}

.permission-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.permission-group-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.permission-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
}

.permission-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
}

.permission-item small {
    display: block;
    color: #94a3b8;
    margin-top: 2px;
}

.auth-page {
    min-height: 100vh;
    background: #f6f7f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.auth-shell {
    width: 100%;
    max-width: 1040px;
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.18), transparent 32%),
        linear-gradient(145deg, #1e40af 0%, #2563eb 48%, #7c3aed 100%);
    overflow: hidden;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    right: -120px;
    bottom: -100px;
}

.auth-brand-top {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.auth-brand-mark,
.auth-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.auth-brand-mark {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.auth-logo {
    object-fit: contain;
    background: #ffffff;
}

.auth-brand-name {
    font-weight: 600;
    font-size: 1rem;
}

.auth-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 410px;
}

.auth-brand-copy h1 {
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.035em;
    margin: 0 0 16px;
    font-weight: 650;
}

.auth-brand-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    font-size: 0.94rem;
}

.auth-brand-footer {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px;
}

.auth-card {
    width: 100%;
    max-width: 390px;
}

.auth-mobile-brand {
    display: none;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
}

.auth-subtitle {
    color: #64748b;
    margin: 0 0 24px;
    font-size: 0.88rem;
    line-height: 1.6;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}

.auth-field .rz-textbox,
.auth-field .rz-password,
.auth-field input {
    width: 100%;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
}

.auth-link-row {
    margin-top: 18px;
    text-align: center;
    font-size: 0.84rem;
    color: #64748b;
}

.auth-link-row a {
    font-weight: 500;
}

.auth-alert {
    border-radius: 9px;
    padding: 11px 13px;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.auth-alert-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.auth-alert-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.auth-error-list {
    margin: 0;
    padding-left: 18px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
}

.auth-submit {
    width: 100%;
    justify-content: center;
    min-height: 42px;
}

.portal-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f6f7f9;
}

.portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 28px;
    min-height: 68px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.portal-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.portal-logout-form {
    margin: 0;
}

.portal-content {
    flex: 1;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 36px 24px;
}

.portal-footer {
    text-align: center;
    color: #94a3b8;
    font-size: 0.78rem;
    padding: 24px;
}

.profile-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.profile-card-header {
    padding: 26px 28px;
    background: linear-gradient(145deg, #eff6ff, #f5f3ff);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 650;
    font-size: 1.2rem;
}

.profile-card-header h1 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.profile-card-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.84rem;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 8px 28px 20px;
}

.profile-detail {
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
}

.profile-detail-label {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.profile-detail-value {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 500;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.empty-state-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.empty-state h1 {
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.empty-state p {
    color: #64748b;
    margin: 0 0 20px;
    font-size: 0.88rem;
}

.rz-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
}

.rz-badge-pill {
    border-radius: 999px;
}

.rz-button {
    font-weight: 500;
}

.rz-button.rz-primary {
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.16);
}

.rz-textbox:focus,
.rz-password:focus,
.rz-dropdown:focus,
.rz-numeric:focus {
    border-color: var(--rz-primary);
}

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

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 520px;
        min-height: auto;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        padding: 34px 26px;
    }

    .auth-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 28px;
        font-weight: 600;
    }

    .app-content {
        padding: 18px 16px 32px;
    }

    .form-grid,
    .profile-details,
    .permission-list,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .span-2,
    .detail-span-2 {
        grid-column: span 1;
    }

    .app-user-email {
        display: none;
    }
}

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

    .page-heading {
        align-items: stretch;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions .rz-button {
        flex: 1;
    }

    .app-brand-text {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-header {
        padding-right: 12px;
    }

    .portal-header {
        padding: 0 16px;
    }

    .portal-header .app-brand-text {
        display: none;
    }
}

.notification-bell {
    position: relative;
}

.notification-bell-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    cursor: pointer;
}

.notification-bell-button:hover {
    background: #f1f5f9;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(380px, calc(100vw - 24px));
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    z-index: 1200;
    overflow: hidden;
}

.notification-panel-header,
.notification-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
}

.notification-panel-footer {
    border-top: 1px solid #f1f5f9;
    border-bottom: 0;
}

.notification-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #f8fafc;
    background: white;
    text-align: left;
    cursor: pointer;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.is-unread {
    background: #eff6ff;
}

.notification-item-title {
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 600;
}

.notification-item-body {
    color: #64748b;
    font-size: 0.78rem;
}

.notification-item-date {
    color: #94a3b8;
    font-size: 0.7rem;
}

.notification-empty {
    padding: 26px 16px;
    color: #94a3b8;
    font-size: 0.82rem;
    text-align: center;
}

.notification-link-button {
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: 0.78rem;
    cursor: pointer;
}

.notification-link-button:hover {
    text-decoration: underline;
}

.status-toggle-button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.status-toggle-button:hover {
    text-decoration: underline;
}

.customer-treemap {
    min-height: 500px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px 6px;
}

.customer-treemap-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 32px;
    padding: 0 4px 8px;
}

.customer-treemap-back {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    padding: 5px 10px;
    font-size: 0.78rem;
    cursor: pointer;
}

.customer-treemap-back:hover {
    background: #f1f5f9;
}

.customer-treemap-breadcrumb {
    color: #64748b;
    font-size: 0.78rem;
}

.customer-treemap-chart {
    min-height: 430px;
}

.customer-treemap-empty {
    padding: 40px 16px;
    color: #94a3b8;
    text-align: center;
}

.customer-treemap {
    position: relative;
}

.customer-treemap-loader {
    position: absolute;
    left: 0;
    right: 0;
    top: 45px;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 0 0 12px 12px;
    background: rgba(255, 255, 255, 0.82);
    color: #475569;
    font-size: 0.84rem;
    backdrop-filter: blur(2px);
}

.customer-treemap-loader[hidden] {
    display: none;
}

.customer-treemap-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #cbd5e1;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: customer-treemap-spin 0.7s linear infinite;
}

@keyframes customer-treemap-spin {
    to {
        transform: rotate(360deg);
    }
}

.settings-logo-preview {
    display: block;
    max-width: 240px;
    max-height: 100px;
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px;
    background: #fff;
    object-fit: contain;
}

.consent-field {
    gap: 6px;
}

.consent-link {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2563eb;
    font: inherit;
    font-size: 0.86rem;
    cursor: pointer;
    text-decoration: underline;
}

.consent-dialog {
    width: min(560px, calc(100vw - 32px));
    max-height: min(80vh, 640px);
    padding: 0;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
    color: #0f172a;
}

.consent-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.consent-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.consent-dialog-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.consent-dialog-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.consent-dialog-body {
    max-height: 50vh;
    overflow-y: auto;
    padding: 20px;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.65;
}

.consent-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 20px 20px;
    border-top: 1px solid #e2e8f0;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.report-summary-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.report-summary-card span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
}

.report-summary-card strong {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 700;
}


.report-customer-name {
    font-weight: 600;
}

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

.movement-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.movement-table {
    width: 100%;
    min-width: 1900px;
    border-collapse: collapse;
    font-size: 0.82rem;
    color: #334155;
}

.movement-table th,
.movement-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
    text-align: left;
}

.movement-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border-bottom: 1px solid #cbd5e1;
}

.movement-table .movement-group {
    text-align: center;
    border-left: 2px solid #cbd5e1;
}

.movement-table tbody tr:hover td {
    background: #f8fafc;
}

.movement-table tbody tr.movement-last td {
    border-bottom: 2px solid #cbd5e1;
}

.movement-table .movement-party {
    font-weight: 600;
    color: #0f172a;
}

.movement-table .movement-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.movement-table .movement-empty {
    padding: 28px;
    text-align: center;
    color: #94a3b8;
}

.customs-report-table {
    min-width: 1250px;
}

.storage-revenue-table {
    min-width: 1900px;
}

.grid-page-size-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.grid-page-size {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.82rem;
    flex-wrap: wrap;
}
