/* ════════════════════════════════════════
   CSS VARIABLES - audit-dashboard style
   ════════════════════════════════════════ */
:root {
    --rz-primary:                  #2271b1;
    --rz-primary-darker:           #1a5a94;
    --rz-primary-dark:             #1e64a0;
    --rz-primary-light:            #5ba4e5;
    --rz-primary-lighter:          #93c5fd;
    --rz-primary-lightest:         #eff6ff;
    --rz-base-background-color:    #ffffff;
    --rz-body-background-color:    #f5f5f0;
    --rz-header-background-color:  #ffffff;
    --rz-text-color:               #1a1a1a;
    --rz-text-secondary-color:     #666666;
    --rz-text-tertiary-color:      #888888;
    --rz-border-color:             rgba(0,0,0,0.12);
    --rz-shadow:                   none;

    --sidebar-width:    260px;
    --sidebar-bg:       #2271b1;
    --sidebar-bg-dark:  #1a5a94;
    --toggle-width:     26px;

    --app-blue-border:   rgba(34, 113, 177, 0.32);
    --app-blue-soft:     rgba(34, 113, 177, 0.12);
    --app-control-radius: 8px;

    --dp-blue:             var(--rz-primary, #2271b1);
    --dp-blue-dark:        var(--rz-primary-dark, #1a5a94);
    --dp-blue-soft:        var(--app-blue-soft);
    --dp-blue-border:      var(--app-blue-border);
    --dp-green:            #34c98b;

    --rz-border-radius:         var(--app-control-radius);
    --rz-input-border-radius:   var(--app-control-radius);
    --rz-input-shadow:          none;
    --rz-input-hover-shadow:    none;
}

/* ════════════════════════════════════════
   BASE
   ════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    background: var(--rz-body-background-color);
    color: var(--rz-text-color);
    overflow-x: hidden;
    max-width: 100vw;
}

/* ════════════════════════════════════════
   RADZEN CARD GLOBAL OVERRIDE
   ════════════════════════════════════════ */
.rz-card {
    background: #fff !important;
    border: 0.5px solid rgba(0,0,0,0.12) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}

/* ════════════════════════════════════════
   GLOBAL DROPDOWN & SELECT STYLES
   ════════════════════════════════════════ */
select:not([multiple]):not([size]) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.25rem;
    border: 1px solid var(--app-blue-border);
    border-radius: var(--app-control-radius);
    color: var(--rz-text-color);
    cursor: pointer;
    min-height: 2.25rem;
    padding-right: 2rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
select:not([multiple]):not([size]):hover:not(:disabled) {
    border-color: var(--rz-primary);
}
select:not([multiple]):not([size]):focus {
    outline: none;
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 3px var(--app-blue-soft);
}
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rz-dropdown,
.rz-multiselect,
.rz-datepicker > .rz-inputtext,
.rz-autocomplete-input,
.rz-numeric,
.rz-textbox,
.rz-textarea {
    border: 1px solid var(--app-blue-border) !important;
    border-block-end: 1px solid var(--app-blue-border) !important;
    border-radius: var(--app-control-radius) !important;
    background: #fff !important;
    box-shadow: none !important;
    min-height: 2.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.rz-dropdown,
.rz-multiselect {
    cursor: pointer;
}
.rz-dropdown:not(.rz-state-disabled):hover,
.rz-multiselect:not(.rz-state-disabled):hover,
.rz-datepicker > .rz-inputtext:not(:disabled):not(.rz-state-disabled):hover,
.rz-autocomplete-input:not(:disabled):hover,
.rz-numeric:not(.rz-state-disabled):hover,
.rz-textbox:not(:disabled):not(.rz-state-disabled):hover,
.rz-textarea:not(:disabled):not(.rz-state-disabled):hover {
    border-color: var(--rz-primary) !important;
    border-block-end-color: var(--rz-primary) !important;
}
.rz-dropdown.rz-state-focus,
.rz-dropdown.rz-dropdown-open,
.rz-multiselect.rz-state-focus,
.rz-multiselect.rz-multiselect-open,
.rz-datepicker > .rz-inputtext:not(:disabled):not(.rz-state-disabled):focus,
.rz-autocomplete:focus-within:not(.rz-state-disabled),
.rz-numeric:focus-within:not(.rz-state-disabled),
.rz-textbox:not(:disabled):not(.rz-state-disabled):focus,
.rz-textarea:not(:disabled):not(.rz-state-disabled):focus {
    border-color: var(--rz-primary) !important;
    border-block-end-color: var(--rz-primary) !important;
    box-shadow: 0 0 0 3px var(--app-blue-soft) !important;
    outline: none !important;
}
.rz-dropdown .rz-inputtext,
.rz-multiselect .rz-inputtext {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: inherit !important;
}
.rz-dropdown-trigger .rzi,
.rz-multiselect-trigger .rzi {
    color: var(--rz-text-secondary-color);
}
.rz-dropdown-panel,
.rz-multiselect-panel,
.rz-listbox,
.rz-autocomplete-panel {
    border: 1px solid var(--app-blue-border) !important;
    border-radius: var(--app-control-radius) !important;
    box-shadow: 0 4px 16px rgba(34, 113, 177, 0.15) !important;
    overflow: hidden;
}
.rz-dropdown-item,
.rz-multiselect-item,
.rz-listbox-item,
.rz-autocomplete-item {
    border-radius: calc(var(--app-control-radius) - 2px);
}
.rz-dropdown-item.rz-state-highlight,
.rz-multiselect-item.rz-state-highlight,
.rz-listbox-item.rz-state-highlight,
.rz-autocomplete-item.rz-state-highlight {
    background: var(--app-blue-soft) !important;
    color: var(--rz-primary) !important;
    border-radius: calc(var(--app-control-radius) - 2px) !important;
}

.rz-form-field .rz-dropdown,
.rz-form-field .rz-multiselect,
.rz-form-field .rz-datepicker > .rz-inputtext,
.rz-form-field .rz-numeric,
.rz-form-field .rz-textbox,
.rz-form-field .rz-textarea {
    border: none !important;
    border-block-end: none !important;
    box-shadow: none !important;
    min-height: auto;
}
.rz-form-field-outlined > fieldset {
    border-color: var(--app-blue-border) !important;
    border-radius: var(--app-control-radius) !important;
}
.rz-form-field-outlined:hover > fieldset {
    border-color: var(--rz-primary) !important;
}
.rz-form-field-outlined.rz-state-focused > fieldset {
    border-color: var(--rz-primary) !important;
    box-shadow: 0 0 0 3px var(--app-blue-soft);
}

.hex-invalid-field fieldset {
    border-color: #e74c3c !important;
    border-width: 2px !important;
}
.hex-auto-textarea {
    width: 100%;
    resize: none;
    overflow: hidden;
    min-height: 4.5rem;
    field-sizing: content;
    line-height: 1.45;
    box-sizing: border-box;
}

.hex-invalid-field .rz-form-field-label {
    color: #e74c3c !important;
}

.aoe-title-input.hex-invalid-outline,
input.aoe-title-input.hex-invalid-outline {
    border-bottom-color: #e74c3c !important;
    box-shadow: 0 2px 0 0 #e74c3c;
}

.rz-dropdown.hex-invalid-dropdown,
.dash-portal-web-input.hex-invalid-dropdown {
    outline: 2px solid #e74c3c !important;
    outline-offset: 1px;
    border-radius: 6px;
}

/* ════════════════════════════════════════
   PANEL TITLE UTILITY
   ════════════════════════════════════════ */
.panel-title {
    font-size: 11px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

/* ════════════════════════════════════════
   CUSTOMER APP SHELL - right sidebar layout
   ════════════════════════════════════════ */
.app-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.app-main {
    flex: 1;
    min-width: 0;
}

.page-content {
    max-width: 1060px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

.app-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: transform 0.3s ease;
    box-shadow: -2px 0 16px rgba(0,0,0,0.10);
}

.sidebar-closed .app-sidebar {
    transform: translateX(var(--sidebar-width));
}

.sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.75rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sidebar-header-main {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.78);
    line-height: 1.25;
    word-break: break-word;
}

.sidebar-brand-logo {
    font-size: 1.9rem;
    color: #fff !important;
    letter-spacing: -0.5px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-height: 0;
}

.sidebar-item--settings {
    margin-top: auto;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border-radius: 0 6px 6px 0;
    margin-right: 0.5rem;
}

.sidebar-item:hover {
    background: rgba(255,255,255,0.10);
    color: #fff;
    text-decoration: none;
}

.sidebar-item--active {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border-left-color: rgba(255,255,255,0.6) !important;
    font-weight: 600;
}

.sidebar-icon-svg {
    width: 20px;
    height: 20px;
    opacity: 0.9;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
}

.site-copyright {
    font-size: 0.62rem;
    line-height: 1.35;
    text-align: center;
    padding: 0.25rem 0.5rem 0;
    user-select: none;
}
.site-copyright--sidebar {
    color: rgba(255, 255, 255, 0.45);
    padding: 0 0.5rem 0.15rem;
}
.site-copyright--light {
    color: var(--rz-text-secondary-color, #6b7280);
    font-size: 0.72rem;
    padding: 0;
}

.gdpr-contact-hint {
    font-size: 0.78rem;
    color: var(--rz-text-secondary-color);
    margin: 0;
    text-align: center;
    line-height: 1.45;
}
.gdpr-contact-hint a {
    color: var(--dp-blue, #2271b1);
    text-decoration: none;
}
.gdpr-contact-hint a:hover {
    text-decoration: underline;
}

.gdpr-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.gdpr-panel-desc {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--rz-text-secondary-color);
}
.gdpr-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.gdpr-action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 48px;
    padding: 0.45rem 0.4rem;
    border: 1px solid var(--dp-blue-border, rgba(34, 113, 177, 0.32));
    border-radius: 10px;
    background: #fff;
    color: var(--dp-blue, #2271b1);
    cursor: pointer;
    font: inherit;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.gdpr-action-tile:hover:not(:disabled) {
    border-color: var(--dp-blue, #2271b1);
    background: rgba(34, 113, 177, 0.04);
    box-shadow: 0 4px 14px rgba(34, 113, 177, 0.12);
    transform: translateY(-1px);
}
.gdpr-action-tile:disabled {
    opacity: 0.65;
    cursor: wait;
}
.gdpr-action-tile-icon {
    font-size: 1.25rem;
    line-height: 1;
    color: var(--dp-blue, #2271b1);
}
.gdpr-action-tile-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    color: var(--rz-text-color);
}
.gdpr-action-tile--danger {
    border-color: rgba(220, 38, 38, 0.28);
    color: #b91c1c;
}
.gdpr-action-tile--danger .gdpr-action-tile-icon {
    color: #dc2626;
}
.gdpr-action-tile--danger:hover:not(:disabled) {
    border-color: rgba(220, 38, 38, 0.55);
    background: rgba(220, 38, 38, 0.04);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.1);
}
.gdpr-delete-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(217, 119, 6, 0.35);
    background: rgba(251, 191, 36, 0.08);
}
.gdpr-delete-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}
.gdpr-delete-panel-icon {
    font-size: 1.5rem;
    color: #d97706;
    flex-shrink: 0;
}
.gdpr-delete-panel-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.gdpr-delete-panel-text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--rz-text-secondary-color);
}
.gdpr-delete-panel-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.profile-gdpr-inline {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rz-border-color);
}

.unauth-footer {
    flex-shrink: 0;
    padding: 1rem 1.25rem 1.25rem;
    text-align: center;
}
.footer-payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}
.footer-pay-icon {
    height: 22px;
    width: auto;
    opacity: 0.65;
    filter: grayscale(0.3);
}

.sidebar-lang {
    padding: 0 0.5rem;
}

.sidebar-lang--header {
    padding: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.65);
    font-size: 0.63rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border-radius: 0 6px 6px 0;
    margin-right: 0.5rem;
    transition: background 0.15s, color 0.15s;
}

.sidebar-logout .sidebar-icon-svg {
    width: 14px;
    height: 14px;
}

.sidebar-logout:hover {
    background: rgba(255,255,255,0.10);
    color: #fff;
}

.sidebar-toggle {
    position: fixed;
    top: 1.5rem;
    width: var(--toggle-width);
    height: 48px;
    background: var(--sidebar-bg);
    color: #fff;
    border: none;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 201;
    transition: right 0.3s ease;
    box-shadow: -2px 0 8px rgba(0,0,0,0.12);
    line-height: 1;
    padding: 0;
}

.sidebar-open  .sidebar-toggle { right: var(--sidebar-width); }
.sidebar-closed .sidebar-toggle { right: 0; }

.sidebar-toggle:hover { background: var(--sidebar-bg-dark); }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 199;
}

@media (max-width: 768px) {
    .sidebar-open .sidebar-overlay { display: block; }
}

.auth-password-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.auth-password-row > * {
    flex: 1;
    min-width: 0;
}

@media (max-width: 640px) {
    .auth-password-row {
        flex-direction: column;
    }
}

/* ════════════════════════════════════════
   PAGE SHELL - sliding right sidebar
   ════════════════════════════════════════ */
html.optihex-menu-scroll-lock,
body.optihex-menu-scroll-lock {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
    touch-action: none;
}

.page {
    position: relative;
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background: var(--rz-body-background-color);
}

.main-area {
    flex: 1;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
}

.app-top-row {
    position: relative;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(10, 10, 10, 0.10);
    height: 3.5rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-left: 1.5rem;
    padding-right: 0.5rem;
}

.app-top-bell {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    pointer-events: auto;
}

.content {
    padding: 1.5rem 2rem 2rem;
    flex: 1;
    width: 100%;
}

/* ── Sidebar shell ─────────────────────── */
.sidebar-shell {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 1030;
    pointer-events: none;
}

.sidebar-shell .sidebar-tab,
.sidebar-shell .sidebar{
    pointer-events: auto;
}

.sidebar-shell.closed .sidebar {
    width: 260px;
    min-width: 260px;
    transform: translateX(100%);
    border: none;
}

.sidebar-shell.open .sidebar {
    width: 260px;
    min-width: 260px;
    transform: translateX(0);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
}

.sidebar {
    background: linear-gradient(180deg, #1e64a0 0%, #2271b1 40%, #1a5a94 100%);
    color: #fff;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    transition: transform 0.22s ease;
}

/* ── Sidebar tab toggle ────────────────── */
.sidebar-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 2rem;
    padding: 0.75rem 0.25rem;
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
    background: linear-gradient(180deg, #1e64a0 0%, #1a5a94 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1046;
    min-height: 5.5rem;
    transition: right 0.22s ease;
}

.sidebar-shell.open .sidebar-tab {
    right: 260px;
}

.sidebar-tab:hover { filter: brightness(1.1); }

.sidebar-tab-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ── Mobile backdrop ───────────────────── */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1029;
    border: none;
    background: rgba(15, 23, 42, 0.35);
    cursor: pointer;
    display: none;
    width: 100%;
    height: 100%;
    padding: 0;
}

@media (max-width: 991.98px) {
    .page .sidebar-backdrop { display: block; }
}

@media (max-width: 991.98px) {
    
    .sidebar-shell.open {
        pointer-events: auto;
    }

    .sidebar-shell.closed .sidebar {
        width: min(88vw, 300px);
        min-width: min(88vw, 300px);
    }
    .sidebar-shell.open .sidebar {
        width: min(88vw, 300px);
        min-width: min(88vw, 300px);
        box-shadow: -8px 0 32px rgba(0,0,0,0.2);
    }
    .sidebar-shell.open .sidebar-tab {
        right: min(88vw, 300px);
    }
    .sidebar-tab { min-height: 4.5rem; }
    .content { padding: 1rem; }
}

@media (min-width: 992px) {
    .content { padding: 1.5rem 2rem 2rem; }
}

/* ── Admin sidebar nav ─────────────────── */
.admin-sidebar-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.admin-sidebar-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0 0 0.5rem;
    flex: 1;
    min-height: 0;
}

.admin-sidebar-settings {
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: 0.35rem;
}

.admin-sidebar-brand {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 0.5rem;
}

.admin-sidebar-brand-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 0;
}

.admin-sidebar-identity {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.sidebar-brand-text {
    color: #fff !important;
    font-size: 1.4rem;
}

.admin-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.admin-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    border-radius: 0 6px 6px 0;
    margin-right: 0.5rem;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    cursor: pointer;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    width: calc(100% - 0.5rem);
    text-align: left;
}

.admin-sidebar-item:hover {
    background: rgba(255,255,255,0.10);
    color: #fff;
    text-decoration: none;
}

.admin-sidebar-item--active {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border-left-color: rgba(255,255,255,0.7) !important;
    font-weight: 600;
}

.sidebar-nav-icon {
    font-size: 1.15rem;
    opacity: 0.9;
    flex-shrink: 0;
}

/* ── Sidebar footer ─────────────────────── */
.admin-sidebar-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 0.35rem 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.admin-sidebar-footer-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border-radius: 0 6px 6px 0;
    margin-right: 0.5rem;
    width: calc(100% - 0.5rem);
    transition: background 0.15s, color 0.15s;
}

.admin-sidebar-footer-btn:hover {
    background: rgba(255,255,255,0.10);
    color: #fff;
}

.admin-sidebar-logout {
    color: rgba(255,255,255,0.65) !important;
    font-size: 0.62rem !important;
    padding: 0.45rem 1.25rem !important;
    gap: 0.5rem !important;
}

.admin-sidebar-logout .sidebar-nav-icon {
    font-size: 0.85rem !important;
}

.admin-sidebar-lang {
    padding: 0.35rem 1.25rem;
}

.admin-sidebar-lang--header {
    padding: 0;
    flex-shrink: 0;
    margin-top: 0.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

/* ── Req asterisk ────────────────────── */
.req-label::after,
.req-field .rz-form-field-label::after,
.req-field > .aoe-field-label::after,
.req-field > .sc-ticket-label::after,
label.sc-ticket-label.req-field::after,
.dash-portal-card-title.req-field::after {
    content: " *";
    color: #e74c3c;
}

.admin-status-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}
.admin-status-badge--critical {
    background: #ff1a1a;
    color: #fff;
}

.aoe-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--rz-text-secondary-color);
    margin-bottom: 0.2rem;
}

.page-content {
    max-width: 1060px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

.admin-page-centered {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.admin-page-wide {
    width: 100%;
    max-width: 100%;
}

.admin-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
    color: var(--rz-text-color, #212529);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.admin-page-title .material-icons {
    color: var(--rz-primary, #d4a843);
    font-size: 1.75rem;
}

.admin-page-title--nowrap {
    white-space: nowrap;
}

.admin-page-title--compact {
    font-size: 1.125rem;
}

.admin-page-title--compact .material-icons {
    font-size: 1.35rem;
}

.admin-centered-card {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
}

.admin-tabs-centered .rz-tabview-panels {
    width: 100%;
}

.customer-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    width: 100%;
    align-items: start;
}

.customer-profile-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.customer-profile-card {
    width: 100%;
}

.customer-profile-card .panel-title {
    margin-bottom: 1.25rem;
}

.customer-profile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.customer-profile-card-header .panel-title {
    margin-bottom: 0;
}

.customer-profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.stats-table--reg td:last-child {
    text-align: left;
    font-weight: 500;
    white-space: normal;
    word-break: break-word;
}

.stats-table--reg td:first-child {
    width: 42%;
    white-space: normal;
}

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

.customer-header-sep {
    color: var(--rz-text-tertiary-color);
    font-weight: 300;
    user-select: none;
}

.stats-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    width: 100%;
}

.stats-panel-card {
    width: 100%;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.stats-table td {
    padding: 0.45rem 0.5rem;
    border-bottom: 0.5px solid #f0f0f0;
    vertical-align: top;
}

.stats-table td:first-child {
    color: #666;
    width: 55%;
    white-space: nowrap;
}

.stats-table td:last-child {
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

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

.admin-filter-card .admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    width: 100%;
}

.admin-filter-bar--stacked {
    flex-direction: column;
    align-items: stretch;
}

.admin-filter-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    flex: 1 1 0;
    min-width: 0;
}

.admin-filter-bar--stacked .admin-filter-fields {
    flex: none;
    width: 100%;
}

.admin-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 0 0 auto;
    margin-left: auto;
}

.admin-filter-bar--stacked .admin-filter-actions {
    margin-top: 0.25rem;
}

.admin-filter-grid .admin-filter-actions {
    grid-column: 1 / -1;
}

.admin-grid-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    
    .stats-table td:first-child {
        white-space: normal;
    }

    .contract-type-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

/* ════════════════════════════════════════
   UNAUTHENTICATED LAYOUT
   ════════════════════════════════════════ */
.unauth-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.unauth-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    background: #fff;
    border-bottom: 0.5px solid rgba(0,0,0,0.12);
}

.unauth-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 4.5rem);
}

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

.auth-card .req-field,
.auth-card .rz-form-field {
    width: 100%;
    box-sizing: border-box;
}

.auth-card .rz-form-field-content {
    width: 100%;
}

.auth-card .auth-error {
    margin: 0;
}

.auth-card--wide {
    max-width: 560px;
}

/* Auth: outlined label v zářezu rámečku (stejně pro e-mail i heslo) */
.auth-card .rz-form-field .rz-form-field-label,
.auth-card--wide .rz-form-field .rz-form-field-label {
    top: 0 !important;
    left: 0.75rem !important;
    transform: translateY(-50%) scale(0.75) !important;
    padding: 0 4px !important;
    transition: none !important;
    background: #fff !important;
    pointer-events: none;
}

.auth-card .rz-form-field-content .auth-field-input,
.auth-card--wide .rz-form-field-content .auth-field-input {
    display: block;
    width: 100%;
    min-height: var(--rz-input-height, 2.5rem);
    box-sizing: border-box;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    font: inherit;
    color: inherit;
}

.field-error .rz-form-field {
    --rz-form-field-border-color: var(--rz-danger);
    border-color: var(--rz-danger);
}

.field-error .rz-form-field:hover,
.field-error .rz-form-field:focus-within {
    --rz-form-field-border-color: var(--rz-danger);
    border-color: var(--rz-danger);
}
.field-error .rz-form-field-outlined > fieldset {
    border-color: var(--rz-danger) !important;
    box-shadow: none !important;
}

.field-error-msg {
    color: var(--rz-danger);
    font-size: 0.78rem;
    padding-left: 0.25rem;
    margin-top: 0.15rem;
}

.pass-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: stretch;
}

.pass-wrap .auth-field-input {
    flex: 1;
    padding-right: 2.5rem !important;
}

.pass-eye {
    position: absolute;
    right: 6px;
    top: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    margin: auto 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--rz-text-tertiary-color, #888);
    padding: 0;
    line-height: 0;
    z-index: 2;
}

.pass-eye .material-icons {
    display: block;
    font-size: 1.15rem;
    line-height: 1;
}

.pwd-rules {
    margin-top: 0.35rem;
    padding-left: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pwd-rule {
    font-size: 0.77rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--rz-text-tertiary-color, #aaa);
    transition: color 0.15s;
}

.pwd-rule::before {
    content: '✗';
    font-size: 0.72rem;
    font-weight: 700;
}

.pwd-rule.ok {
    color: var(--rz-success, #28a745);
}

.pwd-rule.ok::before {
    content: '✓';
}

.pass-eye:hover {
    color: var(--rz-text-color);
}

.auth-logo {
    text-align: center;
}

.auth-logo h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.auth-logo p {
    margin: 0.25rem 0 0;
    color: var(--rz-text-secondary-color);
}

/* ════════════════════════════════════════
   BRAND
   ════════════════════════════════════════ */
.brand-link {
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    display: inline-block;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
    color: var(--rz-primary);
    letter-spacing: -1px;
    user-select: none;
}

.auth-logo .brand-logo {
    font-size: 3.2rem;
    margin-bottom: 0.4rem;
    color: var(--rz-primary);
}

.auth-consent-block {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.auth-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--rz-text-color);
    cursor: pointer;
}
.auth-consent-row a {
    color: var(--dp-blue);
    font-weight: 600;
    text-decoration: underline;
}
.auth-consent-row--error {
    color: var(--rz-danger);
}

.brand-hex { color: #d4a843; }

/* ════════════════════════════════════════
   SCORE GRID (PageSpeed cards)
   ════════════════════════════════════════ */
.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem;
    border-radius: 10px;
    text-align: center;
    background: #f5f5f0;
    border: none;
    box-shadow: none;
}

.score-value {
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

/* ════════════════════════════════════════
   CWV BADGE GRID
   ════════════════════════════════════════ */
.cwv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.cwv-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem;
    border-radius: 10px;
    text-align: center;
    background: #f5f5f0;
    border: none;
    box-shadow: none;
}

.cwv-value {
    font-size: 1.4rem;
    font-weight: 600;
}

/* ════════════════════════════════════════
   DELTA INDICATORS
   ════════════════════════════════════════ */
.delta { font-size: 0.75rem; font-weight: 500; color: #888; }
.delta--good { color: #2ba854; }
.delta--bad  { color: #b91c1c; }

/* ════════════════════════════════════════
   METRIC ROW (report detail)
   ════════════════════════════════════════ */
.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 0.5px solid #f0f0f0;
}

.metric-row:last-child { border-bottom: none; }
.metric-row:nth-child(even) { background: transparent; }

.metric-label { color: #666; font-size: 13px; }
.metric-value { font-weight: 500; font-size: 13px; color: #1a1a1a; }

/* ════════════════════════════════════════
   RADZEN DATAGRID - clean minimal theme
   ════════════════════════════════════════ */
.rz-datatable-wrapper,
.rz-data-grid {
    border: 0.5px solid rgba(0,0,0,0.12) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

.rz-column-header {
    background: #f5f5f0 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #888 !important;
    border-bottom: 0.5px solid rgba(0,0,0,0.10) !important;
}

.rz-grid-table td,
.rz-grid-table th {
    border-color: #f0f0f0 !important;
}

.rz-data-row:nth-child(even) td { background: transparent; }
.rz-data-row:hover td { background: #f5f5f0 !important; }

.rz-paginator {
    border-top: 0.5px solid rgba(0,0,0,0.10) !important;
    background: #fafaf8 !important;
    font-size: 13px;
}

/* ════════════════════════════════════════
   ACTION BUTTONS IN GRIDS
   ════════════════════════════════════════ */
.rz-data-row .rz-button { margin: 0 0.2rem; }

/* ════════════════════════════════════════
   BADGE - pill shape, soft colors
   ════════════════════════════════════════ */
.rz-badge {
    border-radius: 99px !important;
    white-space: normal !important;
    text-align: center;
    max-width: 100%;
    line-height: 1.3;
    padding: 2px 9px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* Soft color badges matching reference */
.badge-red   { background: #fef2f2; color: #b91c1c; border-radius: 99px; padding: 2px 9px; font-size: 12px; font-weight: 500; }
.badge-amber { background: #fffbeb; color: #b45309; border-radius: 99px; padding: 2px 9px; font-size: 12px; font-weight: 500; }
.badge-blue  { background: #eff6ff; color: #1d4ed8; border-radius: 99px; padding: 2px 9px; font-size: 12px; font-weight: 500; }
.badge-green { background: #f0fdf4; color: #15803d; border-radius: 99px; padding: 2px 9px; font-size: 12px; font-weight: 500; }
.badge-gray  { background: #f3f4f6; color: #6b7280; border-radius: 99px; padding: 2px 9px; font-size: 12px; font-weight: 500; }

/* ════════════════════════════════════════
   HEX BUTTON
   ════════════════════════════════════════ */
.hex-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, opacity 0.15s, border-color 0.15s;
}

.hex-btn:disabled { opacity: 0.72; cursor: not-allowed; }

.hex-btn--primary            { background: var(--rz-primary); color: #fff; }
.hex-btn--primary:not(:disabled):hover { background: var(--rz-primary-dark); }

.hex-btn--secondary          { background: #4b5563; color: #fff; }
.hex-btn--secondary:not(:disabled):hover { background: #374151; }

.hex-btn--success            { background: #16a34a; color: #fff; }
.hex-btn--success:not(:disabled):hover { background: #15803d; }

.hex-btn--light              { background: #f0f0ee; color: var(--rz-text-color); border-color: rgba(0,0,0,0.12); }
.hex-btn--light:not(:disabled):hover { background: #e8e8e4; }

.hex-btn--danger             { background: #dc2626; color: #fff; }
.hex-btn--danger:not(:disabled):hover { background: #b91c1c; }

.hex-btn--warning            { background: #d97706; color: #fff; }
.hex-btn--warning:not(:disabled):hover { background: #b45309; }

.hex-btn--info               { background: #0284c7; color: #fff; }
.hex-btn--info:not(:disabled):hover { background: #0369a1; }

.hex-btn--lg { padding: 0.65rem 1.25rem; font-size: 1rem; }
.hex-btn--sm { padding: 0.25rem 0.75rem; font-size: 0.8rem; }

.hex-spinner-btn {
    width: 18px;
    height: 18px;
    animation: hex-spin 0.9s linear infinite;
    transform-origin: 50% 50%;
    flex-shrink: 0;
}

/* ════════════════════════════════════════
   HEXAGON SPINNER
   ════════════════════════════════════════ */
.hex-spinner-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    width: 100%;
    color: var(--rz-primary);
}

.hex-spinner-svg {
    width: 54px;
    height: 54px;
    animation: hex-spin 1s linear infinite;
    transform-origin: 50% 50%;
    display: block;
}

@keyframes hex-spin {
    from { transform: rotate(0deg);   }
    to   { transform: rotate(360deg); }
}

/* Page load overlay */
#page-loading {
    position: fixed;
    inset: 0;
    background: var(--rz-body-background-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    z-index: 9999;
    transition: opacity 0.35s ease;
    color: var(--rz-primary);
}

#page-loading.hidden { opacity: 0; pointer-events: none; }

#page-loading .hex-spinner-svg { width: 64px; height: 64px; }

/* Section-level spinner (inline, inside a card or list area) */
.hex-spinner-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    width: 100%;
    color: var(--rz-primary);
}

/* ════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 3rem 1.5rem;
    color: var(--rz-text-tertiary-color);
    text-align: center;
}

.empty-state .rzi { font-size: 3rem; opacity: 0.35; }

.empty-state-message {
    margin: 0;
    font-size: 0.95rem;
    color: var(--rz-text-secondary-color);
}

/* ════════════════════════════════════════
   404 PAGE
   ════════════════════════════════════════ */
.not-found-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 5rem 1.5rem;
    text-align: center;
}

.not-found-code {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    color: var(--rz-primary-lighter);
    letter-spacing: -4px;
    user-select: none;
}

/* ════════════════════════════════════════
   LANGUAGE FLAG BUTTON
   ════════════════════════════════════════ */
.lang-switcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}
.lang-switcher-label {
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--rz-text-secondary-color);
    text-align: center;
    white-space: nowrap;
    user-select: none;
}
.sidebar-lang--header .lang-switcher-label,
.admin-sidebar-lang--header .lang-switcher-label {
    color: rgba(255, 255, 255, 0.55);
}
.lang-flag-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
    border-radius: 3px;
}

.lang-flag-btn:hover { opacity: 1; transform: scale(1.1); }

.lang-flag-img {
    width: 28px;
    height: 19px;
    display: block;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

/* ════════════════════════════════════════
   OUTREACH CONVERT LANGUAGE PICKER
   ════════════════════════════════════════ */
.convert-lang-picker { display: flex; gap: .75rem; }

.convert-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    background: none;
    border: 2px solid var(--rz-border-color, #d1d5db);
    border-radius: 8px;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 500;
    color: var(--rz-text-color, #374151);
    transition: border-color .15s, background .15s;
    flex: 1;
    justify-content: center;
}

.convert-lang-btn:hover { border-color: var(--rz-primary, #d4a843); }

.convert-lang-btn.active {
    border-color: var(--rz-primary, #d4a843);
    background: rgba(212, 168, 67, 0.1);
    color: var(--rz-primary, #d4a843);
}

.convert-lang-btn img { border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }

/* ════════════════════════════════════════
   COOKIE BANNER
   ════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 0.5px solid rgba(0,0,0,0.12);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
    z-index: 9000;
    padding: 1.1rem 0;
}

.cookie-banner__inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner__text {
    flex: 1;
    min-width: 200px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.cookie-banner__btns {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

@media (max-width: 560px) {
    .cookie-banner__inner { flex-direction: column; align-items: stretch; }
    .cookie-banner__btns  { flex-direction: column; }
}

/* ════════════════════════════════════════
   BLAZOR ERROR UI
   ════════════════════════════════════════ */
#blazor-error-ui {
    background: #b32121;
    bottom: 0; left: 0;
    color: white;
    display: none;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
}

#blazor-error-ui .reload { color: white; text-decoration: underline; }
#blazor-error-ui[data-nosnippet] { display: none; }

/* ════════════════════════════════════════
   SUPPORT SHELL (Kurzola-style)
   ════════════════════════════════════════ */
.support-shell {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: calc(100vh - var(--rz-header-height, 56px) - 2rem);
    overflow: hidden;
    border: 1px solid var(--rz-base-300);
    border-radius: 8px;
    margin: 1rem;
}

.support-sidebar {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--rz-base-300);
    background: var(--rz-base-100);
    overflow: hidden;
}

.support-sidebar-header {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--rz-base-300);
    background: var(--rz-base-50);
}

.support-mode-row {
    display: flex;
    border-bottom: 2px solid var(--rz-base-300);
    background: var(--rz-base-100);
}
.support-mode-btn {
    flex: 1;
    padding: 0.5rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--rz-text-secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.support-mode-btn.active { color: var(--rz-primary); border-bottom-color: var(--rz-primary); }
.support-mode-btn:hover:not(.active) { color: var(--rz-text-color); }

.support-filter-row {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--rz-base-300);
    padding: 0.4rem 0.5rem;
    background: var(--rz-base-50);
}

.support-filter-btn {
    flex: 1;
    padding: 0.25rem 0.5rem;
    font-size: 0.78rem;
    border: 1px solid var(--rz-base-300);
    background: var(--rz-base-background-color);
    cursor: pointer;
    border-radius: 4px;
    margin: 0 2px;
    color: var(--rz-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: background 0.15s;
}
.support-filter-btn.active { background: var(--rz-primary); color: #fff; border-color: var(--rz-primary); }
.support-filter-btn:hover:not(.active) { background: var(--rz-base-200); }

.support-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}

.support-thread-list {
    flex: 1;
    overflow-y: auto;
}

.support-thread-item {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 1px solid var(--rz-base-200);
    background: transparent;
    cursor: pointer;
    transition: background 0.12s;
}
.support-thread-item:hover { background: var(--rz-base-200); }
.support-thread-item.active { background: var(--rz-primary-light, #e8f4fd); border-left: 3px solid var(--rz-primary); }
.support-thread-item.needs-reply { border-left: 3px solid #e74c3c; }

.support-thread-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.15rem;
}
.support-thread-customer { font-weight: 600; font-size: 0.85rem; color: var(--rz-text-color); }
.admin-lang-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--rz-primary);
    margin-right: 0.3rem;
    vertical-align: baseline;
}
.support-thread-time { font-size: 0.72rem; color: var(--rz-text-secondary-color); }
.support-thread-title { font-size: 0.78rem; color: var(--rz-text-secondary-color); margin-bottom: 0.15rem; }
.support-thread-preview { font-size: 0.8rem; color: var(--rz-text-tertiary-color, var(--rz-text-secondary-color)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0.25rem; }
.support-thread-footer { display: flex; align-items: center; gap: 0.4rem; }
.support-msg-count { margin-left: auto; font-size: 0.72rem; color: var(--rz-text-secondary-color); }

.support-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.support-status-dot.needs-reply { background: #e74c3c; }
.support-status-dot.open { background: #3498db; }
.support-status-dot.resolved { background: var(--rz-base-400); }

.support-status-text { font-size: 0.72rem; }
.support-status-text.needs-reply { color: #e74c3c; font-weight: 600; }
.support-status-text.open { color: #3498db; }
.support-status-text.resolved { color: var(--rz-text-secondary-color); }

.support-empty-sidebar {
    padding: 1.5rem 1rem;
    color: var(--rz-text-secondary-color);
    font-size: 0.85rem;
    text-align: center;
}

.support-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--rz-base-background-color);
}

.support-main-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.support-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--rz-base-300);
    background: var(--rz-base-50);
    flex-shrink: 0;
}

.support-chat-body {
    flex: 1;
    overflow: hidden;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.support-chat-body .chat-panel {
    flex: 1;
    height: 100%;
}

.support-chat-body .chat-messages {
    max-height: calc(100% - 60px);
}

@media (max-width: 768px) {
    .support-shell {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 1fr;
        height: calc(100vh - 120px);
        margin: 0.5rem;
    }
    .support-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--rz-base-300);
    }
}

/* ════════════════════════════════════════
   CHAT PANEL
   ════════════════════════════════════════ */
.chat-panel {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-height: 400px;
    overflow-y: auto;
    padding: .5rem;
    background: var(--rz-body-background-color);
    border: 1px solid var(--rz-border-color);
    border-radius: 8px;
}
.chat-loading, .chat-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.chat-bubble-row {
    display: flex;
}
.chat-bubble-row--mine  { justify-content: flex-end; }
.chat-bubble-row--theirs{ justify-content: flex-start; }
.chat-bubble {
    max-width: 70%;
    padding: .5rem .75rem;
    border-radius: 12px;
    font-size: .9rem;
}
.chat-bubble--mine   { background: var(--rz-primary); color: #fff; border-bottom-right-radius: 2px; }
.chat-bubble--theirs { background: #e8e8e8; color: var(--rz-text-color); border-bottom-left-radius: 2px; }
.chat-bubble-body    { word-break: break-word; white-space: pre-wrap; }
.chat-bubble-meta    { display: flex; gap: .4rem; margin-top: .25rem; font-size: .7rem; opacity: .75; }
.chat-msg-actions {
    display: none;
    gap: .2rem;
    margin-top: .25rem;
    justify-content: flex-end;
}
.chat-bubble:hover .chat-msg-actions { display: flex; }
.chat-msg-action-btn {
    background: none; border: none; cursor: pointer; padding: 2px 4px;
    border-radius: 4px; color: rgba(255,255,255,0.7); line-height: 1;
    transition: background .15s;
}
.chat-msg-action-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.chat-msg-action-btn--danger:hover { background: rgba(255,80,80,0.25); color: #ffaaaa; }
.chat-input-row {
    display: flex;
    gap: .5rem;
    align-items: center;
}
.chat-compose-input {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--rz-border-color);
    border-radius: var(--rz-border-radius, 8px);
    background: var(--rz-base-background-color, #fff);
    color: var(--rz-text-color);
    font: inherit;
    line-height: 1.35;
}
.chat-compose-input:focus {
    outline: none;
    border-color: var(--rz-primary, #2563eb);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.chat-send-btn.rz-button.rz-state-disabled,
.chat-send-btn.rz-button:disabled {
    opacity: 0.45;
    filter: grayscale(0.35);
}

/* ════════════════════════════════════════
   NOTIFICATION BELL
   ════════════════════════════════════════ */
.notif-bell-wrapper {
    position: relative;
}
.notif-bell-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: .35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    color: var(--rz-text-color);
    position: relative;
    transition: background .15s;
}
.notif-bell-btn:hover { background: rgba(0,0,0,.06); }
.notif-badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--rz-danger);
    color: #fff;
    border-radius: 999px;
    font-size: .6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}
.notif-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid var(--rz-border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 2000;
    overflow: hidden;
}
.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--rz-border-color);
    font-size: .9rem;
}
.notif-mark-all {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--rz-primary);
    font-size: .8rem;
    padding: 0;
}
.notif-mark-all:hover { text-decoration: underline; }
.notif-loading, .notif-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--rz-text-secondary-color);
    font-size: .85rem;
}
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item {
    padding: .75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--rz-border-color);
    transition: background .1s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--rz-body-background-color); }
.notif-item--unread { background: var(--rz-primary-lightest); }
.notif-item--unread:hover { background: #e0edf8; }
.notif-item-title { font-weight: 600; font-size: .85rem; margin-bottom: .2rem; }
.notif-item-body  { font-size: .8rem; color: var(--rz-text-secondary-color); margin-bottom: .25rem; }
.notif-item-time  { font-size: .72rem; color: var(--rz-text-tertiary-color); }
.notif-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1999;
}

/* ════════════════════════════════════════
   CONTRACT GENERATOR
   ════════════════════════════════════════ */
.contract-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.contract-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.25rem .75rem;
    border: 2px solid var(--rz-border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    text-align: center;
    font-size: .9rem;
    background: #fff;
}
.contract-type-card:hover { border-color: var(--rz-primary-light); background: var(--rz-primary-lightest); }
.contract-type-card--selected { border-color: var(--rz-primary); background: var(--rz-primary-lightest); font-weight: 600; }

/* Print-only styles */
@media print {
    body * { visibility: hidden; }
    .contract-print-root,
    .contract-print-root * { visibility: visible; }
    .contract-print-root {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .sod-page { box-shadow: none !important; page-break-after: always; border-radius: 0 !important; padding: 1.2cm 2cm 1.5cm !important; margin: 0 !important; min-height: 0 !important; }
    .sod-page:last-of-type { page-break-after: auto; }
    .sod-page-break { display: none !important; }
    .sod-pdf-render .sod-page { box-shadow: none; border-radius: 0; margin-bottom: 0; }
    .inv-page { box-shadow: none !important; border-radius: 0 !important; padding: 1cm 2cm 1.5cm !important; min-height: 0 !important; }
    .doc-page-num { display: block !important; }
    .sod-h { margin: .6rem 0 .3rem !important; }
    .sod-text { margin: .15rem 0 !important; }
    .sod-bullet { margin: .15rem 0 !important; }
    .sod-parties { margin-top: .25rem !important; gap: .8rem !important; }
    .sod-party { padding: .6rem .8rem !important; }
    .sod-sigs { margin-top: 1.2rem !important; gap: 1.5rem !important; }
    .sod-date-line { margin: .8rem 0 .3rem !important; }
    .sod-spec-item { padding: .3rem 0 !important; min-height: 1.4rem !important; }
    .sod-subtitle { margin-bottom: .8rem !important; }
    .inv-header { margin-bottom: .8rem !important; }
    .inv-parties { gap: .8rem !important; margin-bottom: .8rem !important; }
    .inv-party { padding: .5rem .7rem !important; }
    .inv-dates { padding: .5rem .8rem !important; margin-bottom: .8rem !important; }
    .rz-header, .rz-sidebar, .contract-no-print,
    .rz-steps, .rz-steps-buttons, .rz-pager { display: none !important; }
    @page { size: A4; margin: 0; }
}

.admin-login-shell {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    background: var(--rz-body-background-color);
}

.admin-login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.rz-body.admin-body {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 56px);
}

.admin-page-content:has(.auth-page) {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-page-centered--wide {
    max-width: 1100px;
}

/* ════════════════════════════════════════
   PRINT PAGE - Customer List
   ════════════════════════════════════════ */
.print-page { padding: 0 2rem 2rem; font-family: Arial, sans-serif; font-size: 10pt; }
.print-table { width: 100%; border-collapse: collapse; font-size: 9pt; }
.print-table th {
    background: #2271b1; color: #fff;
    padding: .4rem .6rem; text-align: left; font-weight: 600;
    border: 1px solid #1a5a94;
}
.print-table td { padding: .35rem .6rem; border: 1px solid #ddd; }
.print-table tbody tr:nth-child(even) { background: #f5f5f5; }

.print-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    padding: 0 .5rem;
}
.print-card {
    border: 1px solid #ccc; border-radius: 6px;
    padding: .75rem 1rem; background: #fff;
    break-inside: avoid;
}
.print-card-name { font-weight: 700; font-size: 10.5pt; margin-bottom: .4rem; }
.print-card-row { font-size: 8.5pt; margin-bottom: .2rem; color: #333; }
.print-card-row span { font-weight: 600; margin-right: .25rem; }
.print-card-status { display: inline-block; margin-top: .4rem; font-size: 8pt; font-weight: 600; padding: .15rem .5rem; border-radius: 3px; }
.print-card-active   { background: #d1fae5; color: #065f46; }
.print-card-inactive { background: #fee2e2; color: #991b1b; }
.print-card-notes { font-size: 8pt; color: #666; margin-top: .4rem; font-style: italic; }

@media print {
    .print-header { display: none !important; }
    .print-meta { padding: 0 0 .75rem; }
    .print-table { font-size: 8pt; }
    .print-table th { background: #333 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .print-cards-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
    .print-card-active, .print-card-inactive { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── Analytics ──────────────────────────────────────────────────────── */
.analytics-shell { padding: 1.5rem 2rem; max-width: 1400px; }
.analytics-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }

.analytics-loading { display: flex; justify-content: center; padding: 3rem; }

/* KPI grid */
.analytics-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.analytics-kpi { background: var(--rz-base-background-color, #fff); border: 1px solid var(--rz-border-color, #e0e0e0); border-radius: 10px; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .25rem; }
.analytics-kpi--accent { border-left: 3px solid var(--rz-primary, #d4a843); }
.analytics-kpi--warn { border-left: 3px solid #e74c3c; }
.analytics-kpi--good { border-left: 3px solid #27ae60; }
.analytics-kpi--medium { border-left: 3px solid #f39c12; }
.analytics-kpi--bad { border-left: 3px solid #e74c3c; }
.analytics-kpi--gain-up { border-left: 3px solid #27ae60; }
.analytics-kpi--gain-down { border-left: 3px solid #e74c3c; }
.analytics-section-hint { margin: 0 0 1rem; color: var(--rz-text-secondary-color, #6c757d); }
.analytics-kpi-value { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--rz-text-color, #212529); }
.analytics-kpi-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--rz-text-secondary-color, #6c757d);
    margin-top: 0.2rem;
}

.analytics-kpi-label { font-size: .75rem; color: var(--rz-text-secondary-color, #6c757d); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.analytics-kpi-badge { display: inline-block; margin-top: .25rem; font-size: .7rem; padding: 2px 6px; border-radius: 8px; font-weight: 600; }
.analytics-kpi-badge--red { background: #fdecea; color: #e74c3c; }
.analytics-trend-up { font-size: .75rem; color: #27ae60; font-weight: 600; }
.analytics-trend-down { font-size: .75rem; color: #e74c3c; font-weight: 600; }

/* Charts row */
.analytics-charts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.analytics-chart-box { background: var(--rz-base-background-color, #fff); border: 1px solid var(--rz-border-color, #e0e0e0); border-radius: 10px; padding: 1rem 1.25rem; }
.analytics-chart-box--wide { grid-column: span 2; }
.analytics-chart-box--full { grid-column: 1 / -1; }
.analytics-chart-box--tall .rz-chart { min-height: 280px; }
.analytics-chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; gap: .5rem; }
.analytics-chart-title { font-size: .85rem; font-weight: 600; color: var(--rz-text-secondary-color, #6c757d); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.chart-range-select { font-size: .75rem; padding: 2px 1.75rem 2px 6px; min-height: auto; line-height: 1.4; flex-shrink: 0; }

.bulk-email-compose-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}
.bulk-email-template-picker {
    flex: 1 1 280px;
    min-width: 220px;
    max-width: 420px;
}
.bulk-email-field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--rz-text-secondary-color);
    margin-bottom: 0.35rem;
}
.bulk-email-schedule-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.25;
    user-select: none;
}
.bulk-email-schedule-option span { color: var(--rz-text-color); }
@media (max-width: 640px) {
    .bulk-email-template-picker { max-width: none; flex-basis: 100%; }
}

.analytics-chart-box .rz-chart svg .rz-axis-x text,
.analytics-chart-box .rz-chart svg .rz-category-axis text {
    font-size: 10px;
}

.analytics-chart-box .rz-chart svg .rz-axis-x text {
    text-anchor: middle;
}

.analytics-daily-range .analytics-chart-box .rz-chart svg .rz-axis-x text,
.analytics-daily-range .analytics-chart-box .rz-chart svg .rz-category-axis text {
    font-size: 9px;
}

/* Monthly reports bar */
.analytics-monthly-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.analytics-month-picker { display: flex; align-items: center; gap: .5rem; }
.analytics-month-input { height:34px; padding:0 .5rem; border:1px solid var(--rz-input-border-color,#ccc); border-radius:var(--rz-border-radius,4px); background:var(--rz-base-background-color); color:var(--rz-text-color); font-size:.9rem; }

@media (max-width: 768px) {
    .analytics-shell { padding: 1rem; }
    .analytics-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .analytics-charts-row { grid-template-columns: 1fr; }
    .analytics-chart-box--wide { grid-column: span 1; }
}

/* Radzen dialogs – centered modal like admin password confirm */
.rz-dialog-mask {
    background: rgba(0, 0, 0, 0.45) !important;
    z-index: 3000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}
.rz-dialog-mask:not(:has(.rz-dialog)) {
    display: none !important;
    pointer-events: none !important;
}

.rz-dialog,
.rz-dialog.hex-dialog {
    position: relative !important;
    z-index: 3001 !important;
    pointer-events: auto !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    border-radius: 12px;
    border: 1px solid var(--rz-border-color, #e2e8f0);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    overflow: hidden;
}

.rz-dialog .rz-dialog-titlebar {
    padding: 1rem 1.25rem 0.35rem;
    background: var(--rz-base-background-color, #fff);
    border-bottom: none;
}

.rz-dialog .rz-dialog-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--rz-text-color);
}

.rz-dialog .rz-dialog-content {
    padding: 0.25rem 1.25rem 1.25rem;
    background: var(--rz-base-background-color, #fff);
}

.admin-pwd-dialog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0.25rem 0.25rem;
}

.admin-pwd-dialog-message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--rz-text-color);
    text-align: center;
}

.admin-pwd-dialog-field {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.admin-pwd-dialog-field .rz-form-field .rz-form-field-label {
    top: 0 !important;
    left: 0.75rem !important;
    transform: translateY(-50%) scale(0.75) !important;
    padding: 0 4px !important;
    transition: none !important;
    background: #fff !important;
    pointer-events: none;
}

.admin-pwd-dialog-field .rz-form-field-content .auth-field-input {
    display: block;
    width: 100%;
    min-height: var(--rz-input-height, 2.5rem);
    box-sizing: border-box;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    font: inherit;
    color: inherit;
}

.admin-pwd-dialog-error {
    margin: -0.35rem 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #e74c3c;
    text-align: center;
}

.admin-pwd-dialog-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding-top: 0.25rem;
}

/* ════════════════════════════════════════
   ANALYSIS PAGE
   ════════════════════════════════════════ */
.analysis-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .analysis-top-grid { grid-template-columns: 1fr; }
}

.analysis-panel {
    min-height: 160px;
}

.analysis-mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 0.5px solid #f0f0f0;
}

.analysis-mini-row:last-child { border-bottom: none; }

.analysis-mini-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.analysis-mini-date {
    font-size: 0.75rem;
    color: var(--rz-text-tertiary-color);
}

.analysis-mini-sub {
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
}

.analysis-customer-link {
    color: var(--rz-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analysis-customer-link:hover { text-decoration: underline; }

/* ════════════════════════════════════════
   HEX ICON ACTION BUTTON
   ════════════════════════════════════════ */
.hex-icon-hint-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    color: var(--rz-primary);
    display: inline-flex;
    align-items: center;
    transition: background 0.12s, color 0.12s;
    line-height: 1;
}

.hex-icon-hint-btn--danger { color: var(--rz-danger); }

.hex-icon-hint-btn:hover { background: rgba(0,0,0,0.06); color: var(--rz-primary-dark, var(--rz-primary)); }
.hex-icon-hint-btn--danger:hover { background: #fef2f2; color: #b91c1c; }

.rz-data-cell { overflow: visible; }

/* Stage progress bar */

.dash-stage-bar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    position: relative;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.dash-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 80px;
    flex: 1;
}

.dash-stage__dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--rz-border-color);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rz-text-secondary-color);
    position: relative;
    z-index: 1;
    transition: all 0.2s;
}

.dash-stage--done .dash-stage__dot {
    background: var(--rz-success, #34c98b);
    border-color: var(--rz-success, #34c98b);
    color: #fff;
}

.dash-stage--current .dash-stage__dot {
    background: var(--rz-primary);
    border-color: var(--rz-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(34,113,177,0.18);
}

.dash-stage__check { font-size: 0.9rem; }

.dash-stage__label {
    margin-top: 0.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--rz-text-secondary-color);
    text-align: center;
    line-height: 1.2;
}

.dash-stage--current .dash-stage__label { color: var(--rz-primary); font-weight: 700; }
.dash-stage--done .dash-stage__label { color: var(--rz-success, #34c98b); }

.dash-stage__line {
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--rz-border-color);
    z-index: 0;
}

.dash-stage__line--done { background: var(--rz-success, #34c98b); }

/* Milestone display */
.dash-milestone {
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--rz-border-color);
    background: #fafafa;
}

.dash-milestone--done {
    background: #f0fdf4;
    border-color: rgba(52,201,139,0.3);
}

.dash-milestone__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dash-milestone__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--rz-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.dash-milestone--done .dash-milestone__icon {
    background: var(--rz-success, #34c98b);
}

/* SubPhase dots */
.dash-subphase-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}
.dash-subphase-dot--done { background: var(--rz-success, #34c98b); color: #fff; }
.dash-subphase-dot--inprogress { background: var(--rz-primary); color: #fff; }
.dash-subphase-dot--pending { background: var(--rz-border-color); color: var(--rz-text-secondary-color); }

/* PageSpeed grid */
.dash-ps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.dash-ps-metric {
    border: 1px solid var(--rz-border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.dash-ps-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rz-text-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.dash-ps-scores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.dash-ps-arrow { color: var(--rz-text-secondary-color); font-size: 1rem; }

.dash-ps-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rz-text-secondary-color);
}

.dash-ps-value--good { color: #16a34a; }
.dash-ps-value--ok   { color: #d97706; }
.dash-ps-value--bad  { color: #dc2626; }

.dash-ps-sublabel {
    font-size: 0.68rem;
    color: var(--rz-text-secondary-color);
    margin-top: 0.2rem;
}

/* Issue categories grid */
.dash-issue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.dash-issue-card {
    border: 1px solid var(--rz-border-color);
    border-radius: 10px;
    padding: 0.75rem;
}

.dash-issue-cat {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--rz-text-color);
}

.dash-issue-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
}

.dash-issue-lbl { color: var(--rz-text-secondary-color); }
.dash-issue-val { font-weight: 600; }
.dash-issue-val--found { color: #dc2626; }
.dash-issue-val--fixed { color: #16a34a; }

/* Tech stack grid */
.dash-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dash-tech-item {
    background: var(--rz-primary-lightest, #eff6ff);
    color: var(--rz-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--rz-primary-lighter, #93c5fd);
}

/* ════════════════════════════════════════
   SUPPORT PAGE  (sc- prefix)
   Adapted from Kurzola - green → OptihexPro blue #2271b1
   ════════════════════════════════════════ */

.sc-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1rem 1.5rem;
    height: calc(100vh - 64px);
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.sc-hero { margin-bottom: 1rem; flex-shrink: 0; }
.sc-hero h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.sc-hero p  { font-size: 1rem; color: #6b7280; margin: 0; }

.sc-human-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f7ff 100%);
    border: 1px solid rgba(34, 113, 177, 0.2);
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.45;
    flex-shrink: 0;
}
.sc-human-banner-icon { font-size: 1.35rem; color: #2271b1; flex-shrink: 0; margin-top: 0.1rem; }
.sc-human-banner strong { color: #111827; }

.sc-limit-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1.1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid rgba(217, 119, 6, 0.3);
    color: #92400e;
    font-size: 0.875rem;
}
.sc-limit-banner-icon { font-size: 1.2rem; color: #d97706; flex-shrink: 0; margin-top: 0.05rem; }

.sc-shell {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1rem;
    border: 1px solid rgba(10, 10, 10, 0.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .sc-page { height: auto; min-height: 0; }
    .sc-shell { grid-template-columns: 1fr; min-height: 70vh; }
    .sc-sidebar { max-height: 200px; border-right: none; border-bottom: 1px solid #e5e7eb; }
}

.sc-sidebar {
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    min-height: 0;
}
.sc-sidebar-head { padding: 1rem; border-bottom: 1px solid #e5e7eb; flex-shrink: 0; }

.sc-new-chat-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    background: #2271b1;
    color: #fff;
    transition: background 0.15s ease, opacity 0.15s ease;
    cursor: pointer;
}
.sc-new-chat-btn:hover:not(:disabled) { background: #1a5a94; }
.sc-new-chat-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.sc-empty-sidebar { padding: 1rem; font-size: 0.875rem; color: #9ca3af; text-align: center; }

.sc-history { flex: 1; overflow-y: auto; padding: 0.5rem; }

.sc-history-item {
    width: 100%;
    border: none;
    background: transparent;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    text-align: left;
    transition: background 0.15s ease;
    cursor: pointer;
}
.sc-history-item:hover { background: #e5e7eb; }
.sc-history-item.is-active { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

.sc-history-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.sc-history-preview {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sc-history-meta { font-size: 0.75rem; color: #9ca3af; margin-top: 0.35rem; }

.sc-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sc-status-dot.is-open     { background: #22c55e; }
.sc-status-dot.is-resolved { background: #9ca3af; }

.sc-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }

.sc-main-head {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.sc-main-head h2 { font-size: 1.0625rem; font-weight: 700; margin: 0; }
.sc-main-head span { font-size: 0.875rem; color: #6b7280; }

.sc-status-badge { font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.65rem; border-radius: 999px; }
.sc-status-badge.is-open     { background: #dcfce7; color: #15803d; }
.sc-status-badge.is-resolved { background: #f3f4f6; color: #6b7280; }

.sc-chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sc-chat-body .chat-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.chat-closed-note {
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9375rem;
    color: #6b7280;
    background: #f9fafb;
    text-align: center;
}

.sc-empty-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #9ca3af;
    gap: 0.75rem;
}

.sc-wizard {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.sc-wizard-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.sc-wizard-head h2 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.sc-wizard-close {
    border: none;
    background: #f3f4f6;
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
}
.sc-wizard-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: #6b7280;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}
.sc-wizard-sep { opacity: 0.5; }
.sc-wizard-question { font-size: 1.0625rem; font-weight: 700; color: #111827; margin: 0; }
.sc-wizard-options { display: flex; flex-direction: column; gap: 0.5rem; }

.sc-wizard-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.95rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease;
    cursor: pointer;
}
.sc-wizard-option:hover { border-color: #2271b1; background: #eff6ff; }

.sc-wizard-back {
    align-self: flex-start;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.9375rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0;
    margin-top: 0.25rem;
    cursor: pointer;
}

.sc-solution-box {
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #eff6ff;
    padding: 1.15rem 1.25rem;
}
.sc-solution-box h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.65rem; color: #1e3a5f; }
.sc-solution-box p  { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: #374151; }

.sc-solution-actions { display: flex; flex-direction: column; gap: 0.65rem; }

.sc-btn-success-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1.1rem;
    border: 2px solid #2271b1;
    border-radius: 12px;
    background: #fff;
    color: #1a5a94;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
}
.sc-btn-ticket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.1rem;
    border: none;
    border-radius: 12px;
    background: #2271b1;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
}
.sc-btn-ticket:hover { background: #1a5a94; }

.sc-ticket-form { display: flex; flex-direction: column; gap: 0.65rem; }
.sc-ticket-label { font-size: 0.875rem; font-weight: 700; color: #374151; }
.sc-ticket-subject {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: inherit;
}
.sc-ticket-body {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
    line-height: 1.45;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    resize: none;
    min-height: 120px;
    font-family: inherit;
}
.sc-ticket-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.sc-btn-submit-ticket {
    padding: 0.75rem 1.35rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2271b1, #1a5a94);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}
.sc-btn-submit-ticket:disabled { opacity: 0.45; cursor: not-allowed; }

/* ─── Admin Order Editor (aoe-*) & Admin Order Create (aoc-*) ─── */
.aoe-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1.25rem 3rem;
}
.aoe-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--rz-base-background-color);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--rz-border-disabled-color);
}
.aoe-title-input {
    flex: 1;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--rz-text-color);
    outline: none;
    padding: 0.2rem 0.25rem;
    min-width: 0;
    transition: border-color 0.15s;
}
.aoe-title-input:focus { border-bottom-color: var(--rz-primary); }
.aoe-meta-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.aoe-customer-chip {
    background: var(--rz-primary-lighter);
    color: var(--rz-primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.aoe-type-btn.active { background: var(--rz-primary); color: #fff; border-color: var(--rz-primary); }
.aoe-stage-btn { cursor: pointer; }
.aoe-stage-btn:hover .dash-stage__dot { outline: 2px solid var(--rz-primary); }
.aoe-type-chip { display:inline-flex;align-items:center;gap:0.35rem;padding:0.25rem 0.75rem;border-radius:999px;font-size:0.85rem;background:var(--rz-base-200);color:var(--rz-text-color);font-weight:500;user-select:none; }
.aoe-tabs { display:flex;gap:0;border-bottom:2px solid var(--rz-border-disabled-color);margin-bottom:1rem;margin-top:0.25rem; }
.aoe-tab-btn { background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;padding:0.6rem 1.2rem;cursor:pointer;font-size:0.875rem;color:var(--rz-text-secondary-color);transition:color 0.15s; }
.aoe-tab-btn.active { border-bottom-color:var(--rz-primary);color:var(--rz-primary);font-weight:600; }
.aoe-tab-btn:hover:not(.active) { color:var(--rz-text-color); }
.aoe-2col { display:grid;grid-template-columns:1fr 1fr;gap:1rem; }

.aoe-audit-btn { display:inline-flex;align-items:center;padding:0.35rem 0.9rem;border:1px solid var(--rz-border-disabled-color);border-radius:6px;background:none;cursor:pointer;font-size:0.875rem;color:var(--rz-text-color);transition:all 0.15s; }
.aoe-audit-btn:hover { border-color:var(--rz-primary);color:var(--rz-primary); }
.aoe-audit-btn.active { background:var(--rz-primary);color:#fff;border-color:var(--rz-primary); }
.aoe-icon-select-row { display:flex;align-items:center;gap:0.5rem;margin-bottom:0.5rem;flex-wrap:wrap; }
.aoe-icon-picker { display:flex;flex-wrap:wrap;gap:0.35rem;padding:0.6rem;background:var(--rz-base-100);border:1px solid var(--rz-border-disabled-color);border-radius:8px;margin-bottom:0.5rem; }
.aoe-icon-opt {
    background: var(--rz-primary);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s;
}
.aoe-icon-opt:hover { filter: brightness(1.08); }
.aoe-icon-opt.selected { border-color: var(--dp-blue-dark, #1e40af); box-shadow: 0 0 0 2px var(--dp-blue-soft); }
.aoe-icon-opt .material-icons { font-size: 1.1rem; color: #fff; }
.aoe-card {
    background: var(--rz-card-background-color, var(--rz-base-background-color));
    border: 1px solid var(--rz-border-disabled-color);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
}

.aoe-sec-hdr {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rz-text-secondary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.aoe-ms-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--rz-border-disabled-color);
    min-width: 0;
}
.aoe-ms-row:last-of-type { border-bottom: none; }
.aoe-ms-name { flex: 1; font-size: 0.9rem; min-width: 0; }
.aoe-ms-done { flex: 1; font-size: 0.9rem; text-decoration: line-through; opacity: 0.5; min-width: 0; }
.aoe-ms-date { font-size: 0.78rem; color: var(--rz-text-secondary-color); white-space: nowrap; }
.aoe-ms-actions { display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0; }
.aoe-add-sub-btn {
    font-size: 0.72rem;
    border: 1px dashed var(--rz-border-disabled-color);
    border-radius: 6px;
    padding: 0.15rem 0.45rem;
    background: none;
    cursor: pointer;
    color: var(--rz-text-secondary-color);
}
.aoe-add-sub-btn:hover { border-color: var(--rz-primary); color: var(--rz-primary); }
.aoe-sp-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0 0.25rem 1.5rem;
    font-size: 0.85rem;
}
.aoe-add-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.aoe-list-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--rz-border-disabled-color);
    flex-wrap: wrap;
}
.aoe-list-row:last-of-type { border-bottom: none; }
.aoe-tag {
    font-size: 0.78rem;
    background: var(--rz-secondary-lighter);
    border-radius: 6px;
    padding: 0.15rem 0.5rem;
    white-space: nowrap;
}
.aoe-ps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}
.aoe-ps-label { font-size: 0.78rem; font-weight: 600; color: var(--rz-text-secondary-color); margin-bottom: 0.25rem; }
.aoe-ps-inputs { display: flex; align-items: center; gap: 0.35rem; }
.aoe-arrow { color: var(--rz-text-secondary-color); flex-shrink: 0; }
.aoe-chat-card { min-height: 300px; }
.aoe-numeric-input { height:34px; padding:0 .5rem; border:1px solid var(--rz-input-border-color,#ccc); border-radius:var(--rz-border-radius,4px); background:var(--rz-base-background-color); color:var(--rz-text-color); font-size:.9rem; }

/* Admin Order Create - type selection screen */
.aoc-picker {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}
.aoc-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}
.aoc-topbar-title {
    flex: 1;
    min-width: 0;
}
.aoc-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.aoc-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1.25rem;
    border: 1px solid var(--dp-blue-border, var(--app-blue-border));
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    text-align: center;
    font: inherit;
    color: inherit;
}
.aoc-type-card:hover {
    border-color: var(--rz-primary);
    box-shadow: 0 4px 16px rgba(34, 113, 177, 0.12);
}
.aoc-type-card.selected {
    border-color: var(--rz-primary);
    background: var(--rz-primary-lightest, #eff6ff);
    box-shadow: 0 0 0 3px var(--app-blue-soft);
}
.aoc-type-icon { font-size: 2.5rem; color: var(--rz-primary); }
.aoc-type-title { font-size: 1.05rem; font-weight: 700; color: var(--rz-text-color); }
.aoc-type-desc { font-size: 0.85rem; color: var(--rz-text-secondary-color); line-height: 1.45; }
@media (max-width: 640px) {
    .aoc-type-grid { grid-template-columns: 1fr; }
    .aoc-topbar .rz-button:last-child { margin-left: auto; }
}

/* ─── Service order dashboard (create) - dash-portal-* ─── */
.dash-portal {
    --dp-blue: var(--rz-primary, #2271b1);
    --dp-blue-dark: var(--rz-primary-dark, #1a5a94);
    --dp-blue-soft: var(--app-blue-soft);
    --dp-blue-border: var(--app-blue-border);
    --dp-accent: var(--rz-primary, #2271b1);
    --dp-orange: #e8a030;
    --dp-red: #f05a5a;
    --dp-yellow: #c8981a;
    --dp-critical: #ff1a1a;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1.25rem 3rem;
    background: #fff;
}
.dash-portal-top-card,
.dash-portal-svc-card,
.dash-portal-tabs-card { padding: 0.85rem 1.25rem; }
.dash-portal-topbar {
    position: static;
    background: transparent;
    border: none;
    padding: 0;
}
.dash-portal-topbar-spacer {
    flex: 1;
    min-width: 0.5rem;
}
.aoe-notify-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 0.75rem;
    font-size: 0.85rem;
    color: var(--rz-text-secondary-color, #64748b);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}
.aoe-notify-check span { line-height: 1.2; }
.dash-portal-validation-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 0.5rem;
}
.dash-portal-top-banner {
    font-size: 0.85rem;
    line-height: 1.3;
    text-align: right;
    flex-shrink: 0;
}
.dash-portal-top-banner--error { color: var(--rz-danger); }
.dash-portal-top-banner--warn { color: #d68910; font-weight: 600; }

.dash-portal-card--schedule-default {
    border-color: #f39c12;
    background: #fffbf3;
    box-shadow: 0 0 0 1px rgba(243, 156, 18, 0.22);
}
.dash-portal-schedule-default-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #d68910;
    letter-spacing: 0.02em;
    text-transform: none;
}

.dash-portal-svc-toggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    flex-wrap: wrap;
}
.dash-portal-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--dp-blue-border);
    background: #fff;
    color: var(--rz-text-secondary-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.dash-portal-pill .material-icons { font-size: 1rem; }
.dash-portal-pill:hover { border-color: var(--dp-accent); color: var(--rz-text-color); }
.dash-portal-pill.active {
    background: var(--dp-blue);
    border-color: var(--dp-blue);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(34, 113, 177, 0.28);
}
.dash-portal-page { display: flex; flex-direction: column; gap: 1rem; }
.dash-portal-hero-card { padding: 1.25rem 1.5rem; }
.dash-portal-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.dash-portal-hero-info h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--rz-text-color);
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}
.dash-portal-web {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dp-accent);
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
}
.dash-portal-web .material-icons { font-size: 1.1rem; flex-shrink: 0; line-height: 1; }
.dash-portal-web-hint { color: var(--rz-text-secondary-color); font-size: 0.85rem; }
.dash-portal-web-url {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
    text-decoration: none;
    word-break: break-all;
}
.dash-portal-web-url:hover { text-decoration: underline; }
.dash-portal-web-dropdown { flex: 1; min-width: 0; }
.dash-portal-web-dropdown .rz-dropdown,
.dash-portal-web-dropdown .rz-inputtext {
    width: 100%;
}
.dash-portal-web-input {
    border: 1px solid var(--dp-blue-border);
    border-radius: 8px;
    background: #fff;
    color: var(--dp-accent);
    font-size: 0.85rem;
    outline: none;
    flex: 1;
    min-width: 0;
    padding: 0.4rem 0.6rem;
}
.dash-portal-web-input:focus { border-color: var(--dp-accent); }
.dash-portal-web-input::placeholder { color: var(--rz-text-disabled-color); }
.dash-portal-hero-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}
.dash-portal-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    background: rgba(52, 201, 139, 0.12);
    color: var(--dp-green);
    border: 1px solid rgba(52, 201, 139, 0.25);
}
.dash-portal-status--active {
    background: rgba(52, 201, 139, 0.12);
    color: var(--dp-green);
    border-color: rgba(52, 201, 139, 0.25);
}
.dash-portal-status--pending {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.25);
}
.dash-portal-status--inactive {
    background: var(--rz-base-200);
    color: var(--rz-text-secondary-color);
    border-color: var(--rz-base-300);
}
.dash-portal-status--completed {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.28);
}
.dash-portal-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: dpStatusPulse 2s infinite;
    flex-shrink: 0;
}
.dash-portal-status-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.45rem 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    background: rgba(52, 201, 139, 0.12);
    color: var(--dp-green);
    border: 1px solid rgba(52, 201, 139, 0.25);
}
.dash-portal-status-picker.dash-portal-status--active {
    background: rgba(52, 201, 139, 0.12);
    color: var(--dp-green);
    border-color: rgba(52, 201, 139, 0.25);
}
.dash-portal-status-picker.dash-portal-status--pending {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.25);
}
.dash-portal-status-picker.dash-portal-status--inactive {
    background: var(--rz-base-200);
    color: var(--rz-text-secondary-color);
    border-color: var(--rz-base-300);
}
.dash-portal-status-picker.dash-portal-status--completed {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.28);
}
.dash-portal-status-picker__dropdown,
.dash-portal-status-picker .rz-dropdown {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    min-width: 7.5rem;
}
.dash-portal-status-picker .rz-dropdown-label,
.dash-portal-status-picker .rz-inputtext {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: inherit !important;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}
.dash-portal-status-picker .rz-dropdown-trigger {
    color: inherit;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    align-self: center;
    height: auto;
    min-height: 0;
    padding: 0 0 0 0.15rem;
    margin: 0;
}
.dash-portal-status-picker .rz-dropdown-trigger .rzi {
    line-height: 1;
    font-size: 1.1rem;
}
@keyframes dpStatusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.dash-portal-order-id { font-size: 0.75rem; color: var(--rz-text-secondary-color); }
.dash-portal-tabs-wrap { margin-bottom: 0; display: flex; justify-content: center; }
.dash-portal-tabs {
    display: inline-flex;
    gap: 0.25rem;
    background: #fff;
    border: 1px solid var(--dp-blue-border);
    border-radius: 999px;
    padding: 0.25rem;
}
.dash-portal-tabs--inline {
    margin-left: auto;
    align-self: center;
}
@media (max-width: 640px) {
    .dash-portal-tabs--inline {
        margin-left: 0;
        flex-basis: 100%;
        margin-top: 0.35rem;
    }
}
.dash-portal-tab {
    padding: 0.45rem 1.25rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--rz-text-secondary-color);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.dash-portal-tab:hover:not(.active) { color: var(--rz-text-color); }
.dash-portal-tab.active {
    background: var(--dp-blue);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(34, 113, 177, 0.28);
}
.dash-portal-panel { display: flex; flex-direction: column; gap: 1rem; }
.dash-portal-card {
    background: #fff;
    border: 1px solid var(--dp-blue-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 4px rgba(34, 113, 177, 0.06);
}
.dash-portal-card-title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rz-text-secondary-color);
    margin-bottom: 1rem;
}
.dash-portal-card-title-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.15rem 0.55rem;
    margin-bottom: 1rem;
}
.dash-portal-card-title-wrap .dash-portal-card-title {
    margin-bottom: 0;
}
.dash-portal-card-title-note {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: var(--rz-text-secondary-color);
    line-height: 1.35;
}
@media (max-width: 640px) {
    .dash-portal-card-title-note { flex-basis: 100%; }
}
.dash-portal-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.dash-portal-card-title-row > span:first-child {
    margin-bottom: 0;
}
.dash-portal-card-title-row .dash-portal-add-btn--sm {
    margin: 0;
    flex-shrink: 0;
}
.dash-portal-stages {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}
.dash-portal-stage {
    flex: 1 1 5.5rem;
    min-width: 5.5rem;
    text-align: center;
    position: relative;
}
.dash-portal-stage-btn { cursor: pointer; }
.dash-portal-stage--locked .dash-portal-stage-btn { cursor: not-allowed; opacity: 0.45; }
.dash-portal-stage--locked .dash-portal-stage-btn:hover .dash-portal-stage-dot { outline: none; }
.dash-portal-stage-btn:hover .dash-portal-stage-dot { outline: 2px solid var(--dp-accent); }
.dash-portal-stage-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid var(--rz-border-disabled-color);
    background: var(--rz-base-100, #f4f6f8);
    color: var(--rz-text-secondary-color);
    position: relative;
    z-index: 1;
    transition: all 0.25s;
}
.dash-portal-stage.done .dash-portal-stage-dot {
    background: var(--dp-blue);
    border-color: var(--dp-blue);
    color: #fff;
}
.dash-portal-stage.current .dash-portal-stage-dot {
    background: var(--dp-blue);
    border-color: var(--dp-blue);
    color: #fff;
    box-shadow: 0 0 0 4px var(--dp-blue-soft);
}
.dash-portal-stage-label-input {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    text-align: center;
    font-size: 0.6875rem;
    color: var(--rz-text-color);
    line-height: 1.25;
    border: 1px dashed transparent;
    border-radius: 4px;
    background: transparent;
    padding: 0.2rem 0.25rem;
    outline: none;
    box-sizing: border-box;
}
.dash-portal-stage-label-input:hover { border-color: var(--dp-blue-border); }
.dash-portal-stage-label-input:focus {
    border-color: var(--dp-blue);
    background: var(--dp-blue-soft);
}
.dash-portal-edit-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--dp-blue);
    text-transform: none;
    letter-spacing: 0;
}
.dash-portal-edit-hint .material-icons { font-size: 0.85rem; }
.dash-portal-stage-label {
    font-size: 0.6875rem;
    color: var(--rz-text-secondary-color);
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
    padding: 0 0.2rem;
}
.dash-portal-stage.done .dash-portal-stage-label,
.dash-portal-stage.current .dash-portal-stage-label { color: var(--rz-text-color); }
.dash-portal-stage-line {
    position: absolute;
    top: 14px;
    left: calc(50% + 14px);
    width: calc(100% - 28px);
    height: 2px;
    background: var(--rz-border-disabled-color);
}
.dash-portal-stage.done .dash-portal-stage-line { background: var(--dp-blue); }
.dash-portal-progress-wrap {
    background: var(--rz-base-100, #f4f6f8);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.dash-portal-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--dp-accent), var(--dp-green));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.dash-portal-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
    flex-wrap: wrap;
    gap: 0.25rem;
}
.dash-portal-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.dash-portal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.dash-portal-info-label {
    font-size: 0.6875rem;
    color: var(--rz-text-secondary-color);
    margin-bottom: 0.25rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.dash-portal-info-value { font-size: 0.875rem; color: var(--rz-text-color); }
.dash-portal-info-value.green { color: var(--dp-green); font-weight: 500; }
.dash-portal-inline-input {
    width: 100%;
    border: 1px solid var(--app-blue-border);
    border-radius: var(--app-control-radius);
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
    background: var(--rz-input-background-color, #fff);
    color: var(--rz-text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}
select.dash-portal-inline-input {
    padding-right: 2rem;
    cursor: pointer;
}
.dash-portal-inline-input:hover:not(:disabled) {
    border-color: var(--rz-primary);
}
.dash-portal-inline-input:focus {
    outline: none;
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 3px var(--app-blue-soft);
}
.dash-portal .rz-dropdown,
.dash-portal .rz-datepicker > .rz-inputtext,
.dash-portal .rz-numeric {
    font-size: 0.875rem;
}
.dash-portal-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--rz-border-disabled-color);
}
.dash-portal-contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--dp-blue-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--dp-blue);
}
.dash-portal-contact-avatar .material-icons { font-size: 1.25rem; }
.dash-portal-contact-meta { flex: 1; min-width: 0; }
.dash-portal-contact-role { font-size: 0.75rem; color: var(--rz-text-secondary-color); margin-top: 0.25rem; }
.dash-portal-contact-details {
    padding-top: 0.65rem;
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.dash-portal-contact-details div {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.dash-portal-contact-email-row {
    flex-wrap: wrap;
    min-width: 0;
}
.dash-portal-contact-email-row a {
    word-break: break-all;
}
.dash-portal-contact-details .material-icons { font-size: 0.9rem; color: var(--dp-blue); }
.dash-portal-contact-chat-hint {
    color: var(--rz-text-secondary-color);
    font-size: 0.75rem;
    line-height: 1.35;
}
.dash-portal-extra-badge {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 500;
    background: var(--dp-blue-soft);
    color: var(--dp-blue-dark);
    border: 1px solid var(--dp-blue-border);
    text-transform: none;
    letter-spacing: 0;
}
.dash-portal-extra-table { width: 100%; border-collapse: collapse; }
.dash-portal-extra-table th {
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rz-text-secondary-color);
    font-weight: 500;
    padding: 0 0.75rem 0.6rem 0;
    text-align: left;
    border-bottom: 1px solid var(--rz-border-disabled-color);
}
.dash-portal-extra-table td {
    padding: 0.75rem 0.75rem 0.75rem 0;
    border-bottom: 1px solid var(--rz-border-disabled-color);
    font-size: 0.8125rem;
    color: var(--rz-text-secondary-color);
    vertical-align: top;
}
.dash-portal-extra-table tr:last-child td { border-bottom: none; }
.dash-portal-extra-table td:first-child { color: var(--rz-text-color); }
.dash-portal-price-section-row td { padding-top: 1rem; border-bottom: none; }
.dash-portal-price-section-row:first-child td { padding-top: 0.35rem; }
.dash-portal-section-price-toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
}
.dash-portal-section-price-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rz-text-color);
}
.dash-portal-section-price-hint {
    font-size: 0.6875rem;
    color: var(--rz-text-secondary-color);
}
.dash-portal-price-indent { padding-left: 1.4rem !important; }
.dash-portal-price-unfixable {
    font-size: 0.75rem;
    color: var(--rz-text-disabled-color);
    font-style: italic;
}
.dash-portal-unfixable-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.6875rem;
    color: var(--rz-text-secondary-color);
    white-space: nowrap;
    cursor: pointer;
}
.dash-portal-approve-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: none;
    background: var(--dp-blue);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: default;
    box-shadow: 0 4px 16px rgba(34, 113, 177, 0.25);
}
.dash-portal-approve-btn .material-icons { font-size: 1.1rem; }
.dash-portal-score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.dash-portal-score-card {
    background: var(--rz-base-100, #f4f6f8);
    border: 1px solid var(--rz-border-disabled-color);
    border-radius: 8px;
    padding: 1rem;
}
.dash-portal-score-label {
    font-size: 0.6875rem;
    color: var(--rz-text-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}
.dash-portal-score-compare { display: flex; align-items: flex-end; gap: 0.75rem; }
.dash-portal-score-num { display: flex; flex-direction: column; align-items: center; flex: 1; }
.dash-portal-score-sublabel { font-size: 0.625rem; color: var(--rz-text-secondary-color); margin-bottom: 0.25rem; }
.dash-portal-score-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid;
}
.dash-portal-score-circle.bad { border-color: var(--dp-red); color: var(--dp-red); background: rgba(240, 90, 90, 0.1); }
.dash-portal-score-circle.ok { border-color: var(--dp-yellow); color: var(--dp-yellow); background: rgba(200, 152, 26, 0.1); }
.dash-portal-score-circle.good { border-color: var(--dp-green); color: var(--dp-green); background: rgba(52, 201, 139, 0.1); }
.dash-portal-score-circle.empty { border-color: var(--rz-border-disabled-color); color: var(--rz-text-secondary-color); background: transparent; font-size: 1.125rem; }
.dash-portal-score-arrow { color: var(--rz-text-secondary-color); font-size: 1.125rem; padding-bottom: 0.6rem; }
.dash-portal-score-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}
.dash-portal-lcp {
    grid-column: 1 / -1;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: -26px;
    position: relative;
    z-index: 1;
}
.dash-portal-lcp-caption {
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
    text-align: center;
}
.dash-portal-lcp .dash-portal-score-circle.bad { background: #fdeff0; }
.dash-portal-lcp .dash-portal-score-circle.ok { background: #faf5e8; }
.dash-portal-lcp .dash-portal-score-circle.good { background: #ebfaf3; }
.dash-overview-scores .dash-portal-lcp .dash-portal-score-circle.bad { background: #fbe5e5; }
.dash-overview-scores .dash-portal-lcp .dash-portal-score-circle.ok { background: #faefe1; }
.dash-overview-scores .dash-portal-lcp .dash-portal-score-circle.good { background: #e3f4e9; }
.dash-portal-score-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0;
}
.dash-portal-score-edit-wrap.bad .rz-numeric input { border-color: var(--dp-red) !important; color: var(--dp-red); }
.dash-portal-score-edit-wrap.ok .rz-numeric input { border-color: var(--dp-yellow) !important; color: var(--dp-yellow); }
.dash-portal-score-edit-wrap.good .rz-numeric input { border-color: var(--dp-green) !important; color: var(--dp-green); }
.dash-portal--customer { max-width: 920px; margin: 0 auto; width: 100%; }
.page-content--portal { max-width: 980px; }
.dash-portal-order-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.dash-portal-order-pills .dash-portal-pill { cursor: pointer; }

.dash-portal-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--rz-base-200);
    color: var(--rz-text-secondary-color);
    border: 1px solid var(--rz-border-disabled-color);
}
.dash-portal-chip--active { background: rgba(52, 201, 139, 0.12); color: var(--dp-green); border-color: rgba(52, 201, 139, 0.25); }
.dash-portal-chip--pending { background: rgba(217, 119, 6, 0.12); color: #d97706; border-color: rgba(217, 119, 6, 0.25); }
.dash-portal-chip--progress { background: rgba(34, 113, 177, 0.1); color: var(--dp-blue); border-color: var(--dp-blue-border); }
.dash-portal-chip--done { background: rgba(52, 201, 139, 0.12); color: var(--dp-green); border-color: rgba(52, 201, 139, 0.25); }

.dash-portal-chip--audit .material-icons { font-size: 0.9rem; }
.dash-portal-stages--readonly .dash-portal-stage-dot { cursor: default; }
.dash-portal-stages--readonly .dash-portal-stage-btn:hover .dash-portal-stage-dot { outline: none; }
.dash-portal-muted { font-size: 0.85rem; color: var(--rz-text-secondary-color); }
.dash-portal-history-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: rgba(34, 113, 177, 0.08);
    border: 1px solid var(--dp-blue-border);
    color: var(--dp-blue-dark);
    font-size: 0.875rem;
}
.dash-portal-history-banner .material-icons { font-size: 1.1rem; }
.dash-portal-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.dash-portal-empty-icon { font-size: 3rem; color: var(--rz-text-disabled-color); }
.dash-portal-empty-state h2 { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--rz-text-color); }
.dash-portal-empty-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}
.dash-portal-empty-btn {
    padding: 0.55rem 1.15rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--rz-border-color);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dash-portal-empty-btn--secondary {
    background: #fff;
    color: var(--rz-text-color);
}
.dash-portal-empty-btn--secondary:hover {
    border-color: var(--dp-blue);
    color: var(--dp-blue);
}
.dash-portal-empty-btn--primary {
    background: var(--dp-blue);
    color: #fff;
    border-color: var(--dp-blue);
}
.dash-portal-empty-btn--primary:hover {
    filter: brightness(1.06);
}
.dash-portal-extra-actions { display: flex; gap: 0.35rem; margin-top: 0.35rem; flex-wrap: wrap; }

.dash-portal-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-portal-web a { color: var(--dp-accent); text-decoration: none; }
.dash-portal-web a:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .dash-portal-score-grid--4col { grid-template-columns: repeat(2, 1fr); }
    .dash-portal-2col { grid-template-columns: 1fr; }
}
.dash-portal-score-note {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.dash-portal-score-note .material-icons { font-size: 0.9rem; }
.dash-portal-issues-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.dash-portal-issues-grid--single { grid-template-columns: 1fr; }
.dash-portal-issue-group-title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rz-text-secondary-color);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dash-portal-issue-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rz-border-disabled-color);
}
.dash-portal-issue-cat {
    font-size: 0.6875rem;
    color: var(--rz-text-secondary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dash-portal-issue-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.35rem;
    background: var(--rz-base-100, #f4f6f8);
    border: 1px solid var(--rz-border-disabled-color);
}
.dash-portal-issue-name { font-size: 0.8125rem; color: var(--rz-text-secondary-color); }
.dash-portal-issue-meta { display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.dash-portal-issue-count {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}
.dash-portal-issue-count.low,
.dash-portal-issue-count.green { background: rgba(52, 201, 139, 0.12); color: var(--dp-green); }
.dash-portal-issue-count.medium,
.dash-portal-issue-count.yellow { background: rgba(232, 160, 48, 0.12); color: var(--dp-orange); }
.dash-portal-issue-count.high,
.dash-portal-issue-count.orange { background: rgba(240, 90, 90, 0.12); color: var(--dp-red); }
.dash-portal-issue-count.critical,
.dash-portal-issue-count.red {
    background: linear-gradient(135deg, #1a0000 0%, #3d0000 100%);
    color: var(--dp-critical);
    border: 1px solid rgba(255, 26, 26, 0.65);
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(255, 26, 26, 0.12);
}

.dash-portal-add-section-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed var(--dp-blue-border);
}
.dash-portal-add-section-bar .rz-dropdown {
    flex: 1 1 200px;
    min-width: 160px;
}
.dash-portal-issue-row--edit .rz-dropdown {
    flex: 0 0 auto;
}
.dash-portal-issue-section {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--dp-blue-border);
    border-radius: 8px;
    background: #fafcff;
}
.dash-portal-issue-section-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}
.dash-portal-section-name { flex: 1; font-weight: 600; }

.dash-portal-color-trigger .material-icons { font-size: 1rem; color: var(--rz-text-secondary-color); }

.dash-portal-color-opt.selected { background: var(--dp-blue-soft); }
.dash-portal-color-opt .dash-portal-issue-count { display: inline-block; width: 100%; text-align: center; }
.dash-portal-fixed-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.35rem;
    background: var(--rz-base-100, #f4f6f8);
    border: 1px solid var(--rz-border-disabled-color);
    font-size: 0.8125rem;
    color: var(--rz-text-secondary-color);
}
.dash-portal-fixed-check { color: var(--dp-blue); font-size: 0.875rem; flex-shrink: 0; }
.dash-portal-reco-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: var(--rz-base-100, #f4f6f8);
    border: 1px solid var(--rz-border-disabled-color);
}
.dash-portal-reco-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dp-blue-soft);
    border: 1px solid var(--dp-blue-border);
    border-radius: 10px;
    flex-shrink: 0;
    color: var(--dp-blue);
}
.dash-portal-reco-icon .material-icons { font-size: 1.25rem; line-height: 1; }
.dash-portal-reco-text {
    font-size: 0.8125rem;
    color: var(--rz-text-secondary-color);
    line-height: 1.55;
}
.dash-portal-reco-text strong {
    color: var(--rz-text-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.15rem;
}
@media (max-width: 640px) {
    .dash-portal-hero { flex-direction: column; gap: 0.75rem; }
    .dash-portal-hero-badge { align-items: flex-start; }
    .dash-portal-2col,
    .dash-portal-issues-grid { grid-template-columns: 1fr; }
    .dash-portal-score-grid:not(.dash-portal-score-grid--4col) { grid-template-columns: 1fr; }
    .dash-portal-tabs { width: 100%; }
    .dash-portal-tab { flex: 1; text-align: center; }
    .dash-portal-stages {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem 0.65rem;
    }
    .dash-portal-stage {
        flex: none;
        min-width: 0;
    }
    .dash-portal-stage-line { display: none; }
    .dash-portal-stage-label,
    .dash-portal-stage-label-input { font-size: 0.6875rem; }
    .dash-portal-extra-table th:nth-child(2),
    .dash-portal-extra-table td:nth-child(2) { display: none; }
    .dash-portal-issue-row--edit {
        flex-wrap: wrap;
    }
    .dash-portal-issue-row--edit .dash-portal-issue-name-field {
        flex: 1 1 100%;
    }
}
.dash-portal-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px dashed var(--rz-border-disabled-color);
    background: transparent;
    color: var(--rz-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.dash-portal-add-btn:hover { border-color: var(--dp-blue); background: var(--dp-blue-soft); color: var(--dp-blue-dark); }
.dash-portal-add-btn .material-icons { font-size: 1rem; }
.dash-portal-add-btn--sm { margin-top: 0.35rem; margin-bottom: 0.5rem; font-size: 0.75rem; padding: 0.3rem 0.6rem; }
.dash-portal-issue-row--edit,
.dash-portal-fixed-row--edit {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
}
.dash-portal-issue-row--edit .dash-portal-issue-name-field {
    flex: 1 1 auto;
    min-width: 0;
}
.dash-portal-issue-row--edit .dash-portal-badge-input {
    flex: 0 0 64px;
    max-width: 64px;
    text-align: center;
}
.dash-portal-issue-row--edit .dash-portal-severity-select {
    flex: 0 0 118px;
    max-width: 118px;
    padding: 0.35rem 0.4rem;
}
.dash-portal-fixed-row--edit {
    flex-wrap: wrap;
    gap: 0.35rem;
}
.dash-portal-grid-span2 { grid-column: 1 / -1; }
.dash-portal-issue-section--mirror { align-self: start; }
.dash-portal-issue-section-head--readonly { cursor: default; }
.dash-portal-section-name-label { flex: 1; font-weight: 600; color: var(--rz-text-color); }
.dash-portal-issue-row--fixed { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; }
.dash-portal-fixed-item-name { flex: 1; font-size: 0.88rem; color: var(--rz-text-color); }
.dash-portal-fixed-count-input { width: 60px !important; flex: 0 0 60px !important; text-align: center; }
.dash-portal-fixed-of { font-size: 0.8rem; color: var(--rz-text-disabled-color); white-space: nowrap; }
.dash-portal-fixed-count-badge { font-size: 0.82rem; font-weight: 600; white-space: nowrap; padding: 0.15rem 0.5rem; border-radius: 999px; }
.dash-portal-fixed-count-badge--zero { color: var(--rz-text-secondary-color); background: var(--rz-base-200, #e9edf1); }
.dash-portal-fixed-count-badge--partial { color: var(--dp-orange); background: rgba(232, 160, 48, 0.12); }
.dash-portal-fixed-count-badge--full { color: var(--dp-green); background: rgba(52, 201, 139, 0.12); }

.dash-portal-svc-toggle--locked .dash-portal-pill:disabled { opacity: 1; cursor: default; }
.dash-portal-badge-input { max-width: 70px; flex: 0 0 70px !important; }

.dash-portal-fixed-row--edit .dash-portal-inline-input { flex: 1; }
.dash-portal-reco-row--edit { align-items: flex-start; }
.dash-portal-reco-icon-btn {
    cursor: pointer;
    border: none;
    background: var(--dp-blue-soft);
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}
.dash-portal-reco-icon-btn:hover { filter: brightness(1.05); }
.dash-portal-reco-edit { flex: 1; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.dash-portal-reco-textarea { resize: vertical; min-height: 2.5rem; }
.dash-portal-admin-notes {
    width: 100%;
    resize: none;
    overflow: hidden;
    min-height: 4.5rem;
    field-sizing: content;
    line-height: 1.45;
    box-sizing: border-box;
}
.dash-portal-info-value.amber { color: #d97706; }
.dash-portal-score-edit-wrap { margin-top: 0.25rem; }

.dash-portal-work-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--dp-blue-border);
}
.dash-portal-work-row:last-of-type { border-bottom: none; }
.dash-portal-work-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid var(--dp-blue-border);
    background: #fff;
    color: var(--rz-text-secondary-color);
}
.dash-portal-work-num.done {
    background: var(--dp-blue);
    border-color: var(--dp-blue);
    color: #fff;
}
.dash-portal-work-num.current {
    background: var(--dp-blue-soft);
    border-color: var(--dp-blue);
    color: var(--dp-blue-dark);
}
.dash-portal-work-body { flex: 1; min-width: 0; }
.dash-portal-work-title { font-weight: 600; margin-bottom: 0.35rem; }
.dash-portal-work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.dash-portal-subphase-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.dash-portal-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.dash-portal-tech-item {
    padding: 0.75rem;
    border: 1px solid var(--dp-blue-border);
    border-radius: 8px;
    background: #fff;
    text-align: center;
}
.dash-portal-tech-item--edit {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
    position: relative;
    padding-right: 2rem;
}
.dash-portal-tech-item--edit .hex-icon-hint-btn { position: absolute; top: 0.35rem; right: 0.35rem; }
.dash-portal-tech-role { font-size: 0.8rem; color: var(--rz-text-secondary-color); }
@media (max-width: 720px) {
    .dash-portal-tech-grid { grid-template-columns: 1fr 1fr; }
}

.portal-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem 0;
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
}
.points-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: none;
    background: none;
    color: #111;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
}
.points-badge:hover {
    opacity: 0.72;
    text-decoration: none;
}
.points-badge .material-icons,
.points-badge__value {
    color: #111 !important;
}
.points-badge .material-icons { font-size: 1.1rem; }

.token-icon,
.token-icon.material-icons,
.material-icons.token-icon {
    color: #111 !important;
    background: transparent;
    line-height: 1;
}
.points-profile-card {
    border: 1px solid var(--dp-blue-border, rgba(34, 113, 177, 0.32)) !important;
    overflow: visible !important;
}
.points-profile-card .rz-card-body,
.points-profile-card > .rz-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.points-profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.points-profile-balance-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    margin-left: auto;
}
.points-profile-balance-hint {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--rz-text-secondary-color);
    line-height: 1.2;
    text-align: right;
}
.points-profile-balance {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    color: #111;
}
.points-profile-balance strong {
    font-size: 1.1rem;
    color: #111;
}
.points-profile-balance span:not(.material-icons) {
    color: #111;
}
.points-profile-balance .material-icons,
.points-profile-balance .token-icon {
    font-size: 1.2rem;
    color: #111 !important;
}
.points-profile-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
}
.points-profile-action-btn {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    border: none;
    border-radius: 10px;
    background: var(--dp-blue, #2271b1) !important;
    color: #fff !important;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    padding: 0.5rem 0.65rem;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.2);
    font: inherit;
}
.points-profile-action-btn:hover { background: var(--dp-blue-dark, #1a5a94) !important; }
.points-profile-action-btn.is-active {
    background: var(--dp-blue-dark, #1a5a94) !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}
.points-profile-action-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff !important;
    line-height: 1.2;
    white-space: nowrap;
}
.points-profile-action-icon {
    font-size: 1.25rem !important;
    color: #fff !important;
    flex-shrink: 0;
    line-height: 1;
}
.purchases-list { display: flex; flex-direction: column; gap: 0.75rem; }
.purchases-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.purchases-list-main { display: flex; flex-direction: column; gap: 0.2rem; }
.purchases-list-desc { font-weight: 600; }
.purchases-list-date { font-size: 0.85rem; color: var(--rz-text-secondary-color); }
.purchases-list-actions { display: flex; align-items: center; gap: 1rem; }
.purchase-receipt-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 640px;
    margin: 0 auto 1rem;
}
.points-history-panel {
    margin-top: 0.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--dp-blue-border);
    animation: points-history-expand 0.2s ease-out;
}
@keyframes points-history-expand {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.points-history-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.points-history-panel-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}
.points-history-panel-close {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--rz-text-secondary-color);
    display: flex;
    padding: 0.2rem;
    border-radius: 8px;
}
.points-history-panel-close:hover { background: rgba(15, 23, 42, 0.06); }
.points-history-panel-body {
    max-height: 360px;
    overflow-y: auto;
}
.points-history-loading {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}
.points-history-empty {
    margin: 1rem 0;
    text-align: center;
    color: var(--rz-text-secondary-color);
    font-size: 0.9rem;
}
.points-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.points-history-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--rz-border-color);
    border-radius: 12px;
    background: rgba(34, 113, 177, 0.03);
}
.points-history-item-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.points-history-item-text {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--rz-text-color);
}
.points-history-item-date {
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
}
.points-history-item-amount {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}
.points-history-item-amount.is-credit { color: #15803d; }
.points-history-item-amount.is-debit { color: #b45309; }
.points-history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 0 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--rz-border-color);
}
.points-history-page-btn {
    border: 1px solid var(--dp-blue-border);
    background: #fff;
    color: var(--dp-blue-dark);
    border-radius: 8px;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.points-history-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.points-history-page-info {
    font-size: 0.85rem;
    color: var(--rz-text-secondary-color);
    min-width: 3.5rem;
    text-align: center;
}
.reports-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-end;
}
.reports-grid-shell {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.reports-grid-shell .rz-data-grid-data,
.reports-grid-shell .rz-datatable-scrollable,
.reports-grid-shell .rz-datatable {
    min-width: 52rem;
}
.reports-grid-shell .rz-column-title-content {
    white-space: normal;
    line-height: 1.25;
    overflow: visible;
    text-overflow: unset;
}
.reports-grid-shell .rz-data-row > td {
    vertical-align: middle;
}
.reports-website-cell {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.reports-website-cell strong {
    font-size: 0.875rem;
    font-weight: 600;
}
.reports-website-cell span {
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .reports-grid-shell .rz-data-grid-data,
    .reports-grid-shell .rz-datatable-scrollable,
    .reports-grid-shell .rz-datatable {
        min-width: 0;
    }
    .reports-grid-shell .rz-grid-table thead {
        display: none;
    }
    .reports-grid-shell .rz-grid-table,
    .reports-grid-shell .rz-grid-table tbody {
        display: block;
        width: 100%;
    }
    .reports-grid-shell .rz-data-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 0.35rem 0.75rem;
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid var(--rz-border-disabled-color);
    }
    .reports-grid-shell .rz-data-row > td {
        display: block;
        border: none;
        padding: 0;
    }
    .reports-grid-shell .rz-data-row > td:last-child {
        text-align: right;
    }
}
.points-admin-card { border: 1px solid var(--dp-blue-border) !important; position: relative; }
.points-admin-card .points-profile-balance { margin-top: 0.85rem; }
.points-admin-rate-hint {
    position: absolute;
    top: 0.65rem;
    right: 0.85rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--rz-text-secondary-color, #6c757d);
    letter-spacing: 0.01em;
    pointer-events: none;
    z-index: 1;
}
.points-admin-mode-tabs {
    display: inline-flex;
    gap: 0.25rem;
    background: #fff;
    border: 1px solid var(--dp-blue-border);
    border-radius: 999px;
    padding: 0.25rem;
}
.points-admin-mode-tab {
    border: none;
    background: transparent;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rz-text-secondary-color);
    cursor: pointer;
}
.points-admin-mode-tab.active {
    background: var(--dp-blue);
    color: #fff;
}
.points-history-amount.plus { color: #16a34a; font-weight: 600; }
.points-history-amount.minus { color: #dc2626; font-weight: 600; }
.points-celebration {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12000;
    width: min(520px, calc(100vw - 2rem));
    pointer-events: none;
}
.points-celebration-inner {
    pointer-events: auto;
    position: relative;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1rem 1.1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid rgba(22, 163, 74, 0.35);
    box-shadow: 0 12px 40px rgba(22, 163, 74, 0.22);
    overflow: hidden;
}
.points-celebration--pop .points-celebration-inner {
    animation: pointsCelebrationPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pointsCelebrationPop {
    0% { opacity: 0; transform: translateY(-18px) scale(0.92); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.points-celebration-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.points-celebration-body strong {
    display: block;
    font-size: 1.15rem;
    color: #166534;
}
.points-celebration-body p {
    margin: 0.25rem 0 0;
    color: #14532d;
    font-size: 0.9rem;
}
.points-celebration-close {
    margin-left: auto;
    border: none;
    background: transparent;
    color: #166534;
    cursor: pointer;
    padding: 0;
    display: flex;
}
.points-celebration-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(22, 163, 74, 0.18);
}
.points-celebration-progress-fill {
    width: 100%;
    height: 100%;
    background: #16a34a;
    transform: scaleX(1);
    transform-origin: left center;
}
.points-celebration-progress-fill.is-running {
    animation: pointsCelebrationProgress 15s linear forwards;
}
@keyframes pointsCelebrationProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
.points-adjust-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.points-adjust-row > * {
    min-height: 38px;
}
.points-adjust-row .points-adjust-amount {
    width: 120px;
    flex: 0 0 auto;
}
.points-adjust-row .points-adjust-reason {
    flex: 1 1 200px;
    min-width: 200px;
}
.points-adjust-row .points-adjust-btn {
    flex: 0 0 auto;
    align-self: stretch;
}

.dash-portal-welcome-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(34, 113, 177, 0.1), rgba(52, 201, 139, 0.08));
    border: 1px solid var(--dp-blue-border);
}
.dash-portal-welcome-icon .material-icons { font-size: 2rem; color: var(--dp-blue); }
.dash-portal-welcome-card p { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--rz-text-secondary-color); }
.dash-portal-discount-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--rz-text-secondary-color);
}
.dash-portal-discount-bar--trailing { margin-left: auto; }
.dash-portal-repair-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--rz-border-disabled-color);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.dash-portal-repair-row.selected { border-color: var(--dp-blue); background: rgba(34, 113, 177, 0.05); }
.dash-portal-repair-row input { flex-shrink: 0; }
.dash-portal-repair-name { flex: 1; font-size: 0.875rem; }
.dash-portal-repair-row--section .dash-portal-repair-name { font-weight: 600; }
.dash-portal-repair-section-note {
    display: block;
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--rz-text-secondary-color);
    margin-top: 0.15rem;
}
.dash-portal-repair-row--unfixable {
    cursor: default;
    border-style: dashed;
    opacity: 0.85;
}
.dash-portal-repair-unfixable-note,
.dash-portal-issue-unfixable {
    font-size: 0.6875rem;
    color: var(--rz-text-disabled-color);
    white-space: nowrap;
}
.dash-portal-issue-unfixable { display: block; margin-top: 0.15rem; white-space: normal; }
.dash-portal-repair-row .dash-portal-issue-count {
    flex-shrink: 0;
    min-width: 2rem;
    text-align: center;
}
.dash-portal-repair-price {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 5.5rem;
    text-align: right;
}

.dash-portal-repair-total-hint {
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color, #6b7280);
    margin-bottom: 0.6rem;
    line-height: 1.35;
}
.dash-portal-repair-actions { display: flex; justify-content: flex-end; margin-top: 0.25rem; }
.dash-portal-repair-selectall {
    background: none;
    border: none;
    padding: 0.25rem 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dp-blue);
    cursor: pointer;
    text-decoration: underline;
}
.dash-portal-repair-selectall:hover { opacity: 0.75; }
.dash-portal-repair-total {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: var(--rz-base-100, #f4f6f8);
    transition: transform 0.25s ease;
}
.dash-portal-repair-total.anim { transform: scale(1.02); }
.dash-portal-repair-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    padding: 0.25rem 0;
}
.dash-portal-repair-total-row.final { font-size: 1rem; margin-top: 0.35rem; padding-top: 0.5rem; border-top: 1px solid var(--rz-border-disabled-color); }

.dash-portal-stage-remove {
    position: absolute;
    top: -6px;
    right: 2px;
    z-index: 10;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: var(--rz-base-200);
    color: var(--rz-text-secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.dash-portal-stage-remove .material-icons { font-size: 14px; }
.dash-portal-stage-remove:hover { background: #fee2e2; color: #dc2626; }
.dash-portal-stage { position: relative; }

.dash-chat-float {
    position: fixed;
    left: 1.5rem;
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    z-index: 1200;
}
.dash-chat-float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--dp-accent, #2563eb);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-chat-float-btn .material-icons { font-size: 1.5rem; }
.dash-chat-float-btn.active { background: #1d4ed8; }
.dash-chat-float-backdrop {
    display: none;
}
.dash-chat-float-panel {
    position: fixed;
    left: 1.5rem;
    bottom: calc(max(1.5rem, env(safe-area-inset-bottom)) + 4.5rem);
    width: min(400px, calc(100vw - 3rem));
    height: min(520px, calc(100vh - 8rem));
    background: var(--rz-base-background-color, #fff);
    border: 1px solid var(--rz-border-color);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.dash-chat-float-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--rz-border-color);
}
.dash-chat-float-header-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.dash-chat-float-title {
    font-weight: 600;
    line-height: 1.2;
}
.dash-chat-float-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--rz-text-secondary-color);
}
.dash-chat-float-close {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--rz-text-secondary-color);
    display: flex;
    padding: 0.25rem;
}
.dash-chat-float-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.85rem 0.85rem;
}
.dash-chat-float-body .chat-panel {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.dash-chat-float-body .chat-messages {
    flex: 1;
    min-height: 0;
    max-height: none;
    border-radius: 14px;
}
.dash-chat-float-body .chat-input-row {
    padding-top: 0.15rem;
}
@media (max-width: 768px) {
    .dash-chat-float-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1199;
    }
    .dash-chat-float {
        left: max(1rem, env(safe-area-inset-left));
        bottom: max(1rem, env(safe-area-inset-bottom));
    }
    .dash-chat-float-panel {
        left: max(0.75rem, env(safe-area-inset-left));
        right: max(0.75rem, env(safe-area-inset-right));
        bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.25rem);
        width: auto;
        height: auto;
        max-height: min(72vh, 560px);
        min-height: 280px;
        border-radius: 20px;
        z-index: 1200;
    }
    .dash-chat-float-body {
        padding: 0.65rem 0.75rem 0.75rem;
    }
}

.points-shop-loading { display: flex; justify-content: center; padding: 4rem; }
.points-shop { max-width: 1120px; margin: 0 auto; padding: 0 0 2rem; }
.points-shop-hero {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(34, 113, 177, 0.08) 0%, rgba(34, 113, 177, 0.02) 100%);
    border: 1px solid var(--dp-blue-border);
}
.points-shop-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    border: none;
}
.points-shop-hero-icon .material-icons,
.points-shop-hero-icon .token-icon {
    font-size: 1.35rem;
}
.points-shop-hero-copy {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    min-width: 0;
}
.points-shop-hero h1 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
}
.points-shop-hero p {
    margin: 0;
    color: var(--rz-text-secondary-color);
    font-size: 0.85rem;
    line-height: 1.35;
}
.points-shop-hero-sep {
    color: var(--rz-text-secondary-color);
    font-size: 0.85rem;
    line-height: 1;
}
.points-shop-pending {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1rem; margin-bottom: 1rem;
    border-radius: 10px; background: #fffbeb; border: 1px solid #fcd34d;
    color: #92400e; font-size: 0.875rem;
}
.points-shop-card--first-bonus {
    margin-bottom: 0;
    cursor: default;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.points-shop-card--first-bonus + .points-shop-packages {
    margin-top: 2rem;
}
.points-shop-card-icon--gift {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    flex-shrink: 0;
    background: rgba(201, 162, 39, 0.22);
    border: 1px solid rgba(221, 184, 74, 0.45);
}
.points-shop-card-icon--gift .material-icons {
    font-size: 1.5rem;
    color: #ddb84a !important;
    line-height: 1;
}
.points-shop-first-bonus-desc {
    line-height: 1.45;
}
.points-shop-audit-actions--info {
    min-width: 148px;
}
.points-shop-first-bonus-amount {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
}
.points-shop-first-bonus-amount strong {
    color: #e8cc6a;
}
.points-shop-first-bonus-amount .token-icon {
    font-size: 1.2rem;
    color: #f8fafc !important;
}
.points-shop-packages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: stretch;
    padding: 1.25rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #0c1424 0%, #111c31 100%);
    border: 1px solid #3d3422;
    box-shadow: inset 0 1px 0 rgba(201, 162, 39, 0.12);
}
.points-shop-card {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    width: 100%;
    padding: 1.35rem 1rem 1rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #1a2438 0%, #121b2e 100%);
    border: 2px solid #4a4030;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    min-height: 248px;
    appearance: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.points-shop-card:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}
.points-shop-card:hover:not(:disabled) {
    transform: translateY(-3px);
    border-color: #8b7340;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.points-shop-card:hover:not(:disabled) .points-shop-card-price {
    background: linear-gradient(180deg, #2b3a52 0%, #121b2e 100%);
    border-color: #ddb84a;
}
.points-shop-card.tier-t2,
.points-shop-card.tier-t3 { border-color: #5e4f32; }
.points-shop-card.tier-t4,
.points-shop-card.tier-t5 { border-color: #7a6538; }
.points-shop-card.tier-t6 {
    border-color: #c9a227;
    background: linear-gradient(180deg, #1f2840 0%, #151f35 55%, #1a2438 100%);
    box-shadow: 0 10px 28px rgba(201, 162, 39, 0.2);
}
.points-shop-card.featured {
    border-color: #ddb84a;
    box-shadow: 0 0 0 1px rgba(221, 184, 74, 0.45), 0 12px 30px rgba(201, 162, 39, 0.28);
}
.points-shop-card-popular {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.28rem 0.7rem;
    border-radius: 10px 0 10px 0;
    background: linear-gradient(135deg, #e8cc6a 0%, #c9a227 55%, #a67c00 100%);
    color: #1c1408;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.points-shop-card-icon {
    width: 58px; height: 58px; border-radius: 14px;
    background: rgba(96, 165, 250, 0.12);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(201, 162, 39, 0.25);
}
.points-shop-card-icon.tier-t3,
.points-shop-card-icon.tier-t4 { background: rgba(139, 92, 246, 0.14); }
.points-shop-card-icon.tier-t5,
.points-shop-card-icon.tier-t6 { background: rgba(201, 162, 39, 0.16); }
.points-shop-card-icon .material-icons { font-size: 1.85rem; color: #93c5fd; }
.points-shop-card-icon.tier-t5 .material-icons,
.points-shop-card-icon.tier-t6 .material-icons { color: #e8cc6a; }
.points-shop-card-tokens { margin-bottom: 0.35rem; line-height: 1.1; }
.points-shop-card-tokens-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.points-shop-card-tokens-main strong {
    display: block;
    font-size: 1.9rem;
    color: #f8fafc;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.points-shop-card-tokens-main .token-icon {
    font-size: 1.35rem;
    color: #f8fafc !important;
}
.points-shop-card-tokens span {
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: lowercase;
}
.points-shop-card-bonus {
    min-height: 1.25rem;
    margin-bottom: 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ddb84a;
    letter-spacing: 0.02em;
}
.points-shop-card-bonus--empty { visibility: hidden; }
.points-shop-card-price {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #a67c00;
    border-radius: 6px;
    background: linear-gradient(180deg, #1e293b 0%, #0b1220 100%);
    color: #f1f5f9;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    pointer-events: none;
}
.points-shop-card--audit {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(200px, 1.15fr) auto;
    grid-template-areas: "intro features actions";
    align-items: center;
    gap: 1.25rem 1.5rem;
    text-align: left;
    padding: 1.5rem;
    margin-bottom: 0;
    min-height: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border: none;
    color: #e2e8f0;
}
.points-shop-audit-intro {
    grid-area: intro;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}
.points-shop-audit-copy { min-width: 0; }
.points-shop-card--audit h2 { margin: 0 0 0.35rem; font-size: 1.25rem; color: #fff; width: auto; }
.points-shop-card--audit .points-shop-card-desc {
    margin: 0;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.45;
    white-space: pre-line;
    max-width: 360px;
}
.points-shop-audit-actions {
    grid-area: actions;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.65rem;
    flex-shrink: 0;
    min-width: 168px;
}
.points-shop-audit-price {
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
}
.points-shop-price-was {
    display: block;
    font-size: 0.95rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 0.15rem;
}
.points-shop-audit-price-current {
    line-height: 1.1;
}
.points-shop-audit-bonus {
    margin-top: 0.35rem;
    min-height: 0;
    margin-bottom: 0;
    white-space: normal;
}
.points-shop-audit-price strong {
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
}
.points-shop-audit-price span {
    font-size: 1rem;
    color: #cbd5e1;
    margin-left: 0.2rem;
}

.points-shop-card-icon.audit {
    width: 48px; height: 48px;
    background: rgba(96, 165, 250, 0.2);
    margin-bottom: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.points-shop-card-icon.audit .material-icons {
    font-size: 1.5rem;
    color: #60a5fa;
    line-height: 1;
}
.points-shop-audit-features {
    grid-area: features;
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.35rem;
    min-width: 0;
}
.points-shop-audit-features li {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.85rem; color: #cbd5e1;
}
.points-shop-audit-features .material-icons { font-size: 1rem; color: #4ade80; }
.points-shop-buy-btn {
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
    padding: 0.6rem 1rem;
    border: none; border-radius: 10px;
    background: var(--dp-blue); color: #fff;
    font-weight: 600; font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s;
}
.points-shop-buy-btn--audit {
    width: 100%;
    min-width: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    align-self: center;
    box-shadow: none;
}
.points-shop-buy-btn--audit:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}
.points-shop-footnote {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--rz-text-secondary-color);
}
@media (max-width: 900px) {
    .points-shop-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .points-shop-card--audit,
    .points-shop-card--first-bonus {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "intro intro"
            "features actions";
    }
}
@media (max-width: 640px) {
    .points-shop-packages { grid-template-columns: 1fr; }
    .points-shop-card--audit,
    .points-shop-card--first-bonus {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "features"
            "actions";
    }
    .points-shop-audit-actions { width: 100%; min-width: 0; }
    .points-shop-buy-btn--audit { width: 100%; }
}

.dash-overview {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.dash-overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.dash-overview-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: auto;
}
.dash-overview-promo {
    margin-bottom: 0;
    cursor: default;
}
.dash-overview-promo-pending {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    text-align: center;
}
.dash-overview-promo-pending .material-icons { font-size: 1.1rem; }
.dash-overview-report-card,
.dash-overview-card {
    background: var(--rz-base-background-color);
    border: 1px solid var(--rz-border-color);
    border-radius: 12px;
    padding: 1.25rem;
}
.dash-overview-report-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.dash-overview-report-card-head .dash-overview-report-note {
    margin: 0;
    flex: 1;
    min-width: 0;
}
.dash-overview-report-note {
    margin: 0 0 1rem;
    color: var(--rz-text-secondary-color);
    font-size: 0.9rem;
}
.dash-overview-scores {
    margin: 0;
}
.dash-overview-scores .dash-portal-score-card {
    text-align: center;
}
.dash-overview-scores .dash-portal-score-circle {
    width: 64px;
    height: 64px;
    font-size: 1.125rem;
}
.dash-overview-scores .dash-portal-score-circle.good {
    border-color: #16a34a;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.12);
}
.dash-overview-scores .dash-portal-score-circle.ok {
    border-color: #d97706;
    color: #d97706;
    background: rgba(217, 119, 6, 0.12);
}
.dash-overview-scores .dash-portal-score-circle.bad {
    border-color: #dc2626;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.12);
}
.dash-overview-scores .dash-portal-lcp {
    margin-top: -32px;
}
@media (max-width: 768px) {
    .dash-overview-scores.dash-portal-score-grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }
}
.dash-overview-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}
.dash-overview-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.dash-overview-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--rz-border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--rz-primary);
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.dash-overview-icon-btn:hover:not(:disabled) {
    background: rgba(34, 113, 177, 0.08);
    border-color: var(--rz-primary);
    color: var(--rz-primary-dark);
}
.dash-overview-icon-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.dash-overview-audit-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.dash-overview-audit-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--rz-border-color);
    border-radius: 10px;
    background: var(--rz-base-background-color);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    font: inherit;
    color: inherit;
}
.dash-overview-audit-item:hover {
    border-color: var(--dp-blue-border, rgba(34, 113, 177, 0.32));
    background: rgba(34, 113, 177, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.dash-overview-audit-item-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.dash-overview-audit-item-main strong {
    font-size: 0.92rem;
    line-height: 1.3;
}
.dash-overview-history-panel {
    margin-top: 0;
}
.dash-overview-website-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.dash-overview-website-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rz-border-color);
}
.dash-overview-website-row:last-child {
    border-bottom: none;
}
.dash-overview-website-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.website-request-dialog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
}
.website-request-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.website-request-dialog-head h6,
.website-request-dialog-head .rz-text-h6 {
    margin: 0;
    font-weight: 700;
}
.website-request-dialog-close {
    border: none;
    background: #f3f4f6;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
}
.website-request-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.25rem;
}
.dash-overview-recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.dash-overview-recent-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 0.75rem;
    border: 1px solid var(--rz-border-color);
    border-radius: 10px;
    background: var(--rz-base-background-color);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font: inherit;
    color: inherit;
}
.dash-overview-recent-row:hover {
    border-color: var(--dp-blue-border, rgba(34, 113, 177, 0.32));
    background: rgba(34, 113, 177, 0.04);
}
.dash-overview-recent-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.dash-overview-recent-main strong,
.dash-overview-recent-main .dash-overview-muted {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-overview-recent-main strong {
    font-size: 0.92rem;
    line-height: 1.3;
}
.dash-overview-recent-arrow {
    font-size: 1.25rem;
    color: var(--rz-text-secondary-color);
    flex-shrink: 0;
}
.dash-overview-website-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.dash-overview-muted {
    color: var(--rz-text-secondary-color);
    font-size: 0.85rem;
}
.dash-overview-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.dash-overview-toggle {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}
.dash-overview-toggle-btn {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--rz-border-color);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
}
.dash-overview-toggle-btn.active {
    background: var(--rz-primary);
    border-color: var(--rz-primary);
    color: #fff;
}
.dash-overview-audit-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.85rem 0 0.5rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--rz-text-secondary-color);
}
.dash-overview-audit-meta--end {
    justify-content: flex-end;
}
.dash-overview-audit-remaining {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.dash-overview-audit-remaining-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rz-text-color);
}
.dash-overview-audit-remaining strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    line-height: 1;
}
.dash-overview-audit-price {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--rz-text-secondary-color);
}
.dash-overview-audit-price strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
}
.dash-overview-audit-price .token-icon {
    color: #111;
    font-size: 0.95rem;
}
@media (max-width: 960px) {
    .dash-overview-columns {
        grid-template-columns: 1fr;
    }
}

.storage-restricted {
    position: relative;
    min-height: 520px;
    border-radius: 14px;
    overflow: hidden;
}
.storage-restricted-bg {
    filter: blur(9px);
    opacity: 0.72;
    user-select: none;
    pointer-events: none;
    transform: scale(1.02);
}
.storage-restricted-fake-field {
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--rz-border-color);
    background: var(--rz-base-100);
    margin-bottom: 0.75rem;
}
.storage-restricted-modal-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.45);
    backdrop-filter: blur(3px);
}
.storage-restricted-modal {
    width: min(100%, 440px);
    padding: 2rem 1.75rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    text-align: center;
}
.storage-restricted-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}
.storage-restricted-modal-icon .material-icons { font-size: 1.75rem; }
.storage-restricted-modal h2 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--rz-text-color);
}
.storage-restricted-modal p {
    margin: 0 0 0.65rem;
    color: var(--rz-text-secondary-color);
    line-height: 1.55;
    font-size: 0.95rem;
}
.storage-restricted-modal-safe {
    font-size: 0.88rem !important;
    color: var(--rz-success) !important;
    font-weight: 600;
}
.storage-restricted-modal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
    padding: 0.8rem 1.35rem;
    border: none;
    border-radius: 10px;
    background: var(--rz-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.storage-restricted-modal-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.34);
}
.storage-restricted-modal-cta .material-icons { font-size: 1.15rem; }

.checkout-page { max-width: 1100px; margin: 0 auto; padding: 0 0 2rem; }
.checkout-page-loading { display: flex; justify-content: center; padding: 3rem; }
.checkout-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.checkout-back {
    display: inline-flex; align-items: center; gap: 0.25rem;
    border: none; background: none; color: var(--rz-primary); cursor: pointer;
    font-weight: 600; margin-bottom: 0; padding: 0;
}
.checkout-layout {
    display: grid; grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 0.85fr);
    gap: 1.5rem; align-items: start;
}
.checkout-panel-title { margin: 0 0 1rem; font-size: 1.5rem; }
.checkout-form-panel,
.checkout-panel-card {
    background: var(--rz-base-background-color);
    border: 1px solid var(--rz-border-color);
    border-radius: 12px;
    padding: 1.25rem;
}
.checkout-order-panel { display: flex; flex-direction: column; gap: 1rem; }
.checkout-divider {
    height: 1px; margin: 1.25rem 0;
    background: linear-gradient(90deg, var(--rz-primary), rgba(34, 113, 177, 0.15));
    border-radius: 1px;
}
.checkout-website-row { display: flex; gap: 0.5rem; align-items: center; }
.checkout-website-url { margin: 0.65rem 0 0; word-break: break-all; }
.checkout-order-lines { display: flex; flex-direction: column; gap: 0; }
.checkout-order-line {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.85rem 0; border-bottom: 1px solid var(--rz-border-color);
}
.checkout-order-line:last-child { border-bottom: none; padding-bottom: 0; }
.checkout-order-line:first-child { padding-top: 0; }
.checkout-order-line-main {
    display: flex; align-items: center; gap: 0.75rem; min-width: 0;
}
.checkout-order-line-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 8px;
}
.checkout-order-line-icon-wrap--package {
    background: rgba(34, 113, 177, 0.1);
    border: 1px solid rgba(34, 113, 177, 0.2);
}
.checkout-order-line-icon-wrap--package .material-icons {
    font-size: 1.35rem;
    color: var(--rz-primary);
    line-height: 1;
}
.checkout-order-line-icon-wrap--gift {
    background: rgba(221, 184, 74, 0.14);
    border: 1px solid rgba(221, 184, 74, 0.35);
}
.checkout-order-line-icon-wrap--gift .material-icons {
    font-size: 1.3rem;
    color: #ddb84a;
    line-height: 1;
}
.checkout-order-line-main--tokens { align-items: center; }
.checkout-order-tokens-copy { min-width: 0; }
.checkout-order-tokens-amount-row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.checkout-order-tokens-amount {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--rz-text-color);
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.checkout-order-tokens-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rz-text-secondary-color);
    text-transform: lowercase;
}
.checkout-order-tokens-product {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: var(--rz-text-tertiary-color);
}
.checkout-order-bonus-package-copy {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
    line-height: 1.15;
}
.checkout-order-bonus-package-copy strong {
    font-size: 1.45rem;
    font-weight: 800;
    color: #c9a227;
    letter-spacing: -0.02em;
}
.checkout-order-bonus-package-copy span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ddb84a;
}
.checkout-order-line-price { text-align: right; white-space: nowrap; flex-shrink: 0; }
.checkout-order-line-price strong { font-size: 1.2rem; }
.checkout-order-line-price--free strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--rz-text-secondary-color);
}
.checkout-order-line-price .points-shop-price-was {
    display: block;
    margin-bottom: 0.15rem;
}
.checkout-terms-block {
    margin: 1rem 0;
}
.checkout-field-hint {
    margin: 0.25rem 0 0;
    font-size: 0.72rem;
    color: var(--rz-text-secondary-color);
}
.checkout-panel-card--error {
    border-color: #e74c3c !important;
}

.checkout-pay-block {
    position: sticky;
    top: 1rem;
}

.checkout-summary-item .material-icons {
    font-size: 1.75rem; color: var(--rz-primary);
}

.checkout-muted { color: var(--rz-text-secondary-color); font-size: 0.875rem; }
.checkout-form-panel h2,
.checkout-panel-card h2 { margin: 0 0 1rem; font-size: 1.1rem; }

.checkout-type-toggle { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.checkout-type-btn {
    flex: 1; padding: 0.55rem 0.75rem; border-radius: 8px;
    border: 1px solid var(--rz-border-color); background: transparent; cursor: pointer; font-weight: 600;
}
.checkout-type-btn.active {
    border-color: var(--rz-primary); background: rgba(34, 113, 177, 0.08); color: var(--rz-primary);
}
.checkout-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.checkout-pay-option {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.85rem 1rem; border: 1px solid var(--rz-border-color); border-radius: 10px; cursor: pointer;
    margin-bottom: 0.55rem; transition: border-color .15s, background .15s;
}
.checkout-pay-option.selected { border-color: var(--rz-primary); background: rgba(34, 113, 177, 0.06); }
.checkout-pay-option input { accent-color: var(--rz-primary); flex-shrink: 0; }
.checkout-pay-option--disabled { opacity: .5; cursor: not-allowed; }
.checkout-pay-icon { color: var(--rz-text-secondary-color); flex-shrink: 0; }
.checkout-pay-option-body { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.checkout-pay-option-title { font-size: 0.92rem; font-weight: 500; }
.checkout-pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.1rem; }
.checkout-pay-grid .checkout-pay-option { margin-bottom: 0; }

@media (max-width: 500px) { .checkout-pay-grid { grid-template-columns: 1fr; } }
.checkout-pay-option-unavailable { font-size: 0.75rem; color: var(--rz-danger); margin-top: 0.1rem; }
@media (max-width: 900px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-grid-2 { grid-template-columns: 1fr; }
}

.reports-access-restricted .material-icons { font-size: 2rem; color: #d97706; }

.prof-language-hint {
    margin: -0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--rz-text-secondary-color);
    line-height: 1.45;
}

.legal-section { margin-bottom: 0.5rem; }
.legal-section-title { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 600; }
.legal-section-body { font-size: 0.92rem; line-height: 1.6; color: var(--rz-text-color); overflow-wrap: anywhere; word-break: break-word; }
.legal-section-body p { margin: 0 0 0.65rem; }
.legal-section-body ul { margin: 0; padding-left: 1.25rem; }
.legal-section-body li { margin-bottom: 0.35rem; }

.legal-page {
    width: 100%;
    max-width: 840px;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
}
.legal-page-stack {
    width: 100%;
    min-width: 0;
}
.legal-grid-shell {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.legal-grid-shell .rz-data-grid-data,
.legal-grid-shell .rz-datatable-scrollable,
.legal-grid-shell .rz-datatable {
    min-width: 46rem;
}
.legal-page .rz-tabview,
.legal-page .rz-tabview-nav,
.legal-page .rz-tabview-panels,
.legal-page .rz-tabview-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.legal-page .rz-tabview-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.legal-page .rz-tabview-nav::-webkit-scrollbar { display: none; }
.legal-page .rz-tabview-nav li {
    flex: 0 0 auto;
    min-width: 0;
}
.legal-page .rz-tabview-nav .rz-tabview-nav-link {
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    line-height: 1.25;
    padding: 0.45rem 0.5rem;
    font-size: 0.75rem;
}
@media (max-width: 640px) {
    .unauth-main { padding: 1rem 0.75rem; }
    .unauth-bar { padding: 0.75rem 1rem; }
    .legal-page .rz-tabview-nav .rz-tabview-nav-link {
        font-size: 0.75rem;
        padding: 0.5rem 0.45rem;
    }
    .legal-section-body { font-size: 0.88rem; }
    .legal-page-footer { font-size: 0.8rem; }
}

.legal-page-footer {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rz-border-color, #e2e8f0);
    font-size: 0.875rem;
    color: var(--rz-text-secondary-color);
}
.legal-page-footer a { color: var(--rz-primary); }

.privacy-settings-panel {
    margin-top: 0.25rem;
    padding: 0.85rem 0 0.25rem;
    border-top: 1px solid var(--rz-border-color);
    animation: points-history-expand 0.2s ease-out;
}
.privacy-settings-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.privacy-settings-panel-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}
.privacy-settings-panel-close {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--rz-text-secondary-color);
    display: flex;
    padding: 0.2rem;
    border-radius: 8px;
}
.privacy-settings-panel-close:hover { background: rgba(15, 23, 42, 0.06); }
.privacy-settings-panel--inline {
    margin-top: 0;
    padding: 0;
    border-top: none;
    animation: none;
}

.privacy-toggle-row--disabled {
    opacity: 0.72;
}
.profile-privacy-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--rz-border-color);
    border-radius: 10px;
    background: transparent;
    color: var(--rz-text-secondary-color);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.profile-privacy-toggle-btn .material-icons {
    font-size: 1.2rem;
    color: var(--rz-text-tertiary-color);
}
.profile-privacy-toggle-btn:hover,
.profile-privacy-toggle-btn.is-active {
    border-color: var(--dp-blue-border, rgba(34, 113, 177, 0.32));
    background: rgba(34, 113, 177, 0.04);
    color: var(--rz-text-color);
}

.profile-privacy-card .rz-card-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-legal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 0.65rem;
}
.legal-link-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}
.legal-link-tile-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    color: var(--rz-text-color);
    line-height: 1.3;
    padding: 0 0.15rem;
}
.legal-link-tile-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 88px;
    aspect-ratio: 1;
    margin: 0 auto;
    border: 1px solid var(--rz-border-color) !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--dp-blue, #2271b1) !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.legal-link-tile-btn:hover {
    border-color: var(--dp-blue-border, rgba(34, 113, 177, 0.32)) !important;
    background: rgba(34, 113, 177, 0.05) !important;
    box-shadow: 0 4px 14px rgba(34, 113, 177, 0.14);
    transform: translateY(-2px);
}
.legal-link-tile-btn .material-icons {
    font-size: 2.1rem;
    line-height: 1;
}

.privacy-toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}
.privacy-toggle-label {
    font-weight: 500;
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
}

/* ── Contract wizard stepper ── */
.cwiz-steps { display: flex; align-items: center; width: 100%; background: #f8faff; border: 1px solid #e3eaf6; border-radius: 10px; overflow: hidden; padding: 0; gap: 0; }
.cwiz-step { flex: 1; display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .8rem 1rem .8rem 1.2rem; background: #f8faff; color: #94a3b8; font-size: .85rem; font-weight: 500; transition: background .2s, color .2s; white-space: nowrap; }
.cwiz-step.cwiz-active { background: #1565c0; color: #fff; }
.cwiz-step.cwiz-done { background: #dbeafe; color: #1565c0; }
.cwiz-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.08); font-size: .73rem; font-weight: 700; flex-shrink: 0; }
.cwiz-step.cwiz-active .cwiz-num { background: rgba(255,255,255,.25); color: #fff; }
.cwiz-step.cwiz-done .cwiz-num { background: #1565c0; color: #fff; font-size: .7rem; }
.cwiz-label { font-weight: 500; }
.cwiz-clickable { cursor: pointer; }
.cwiz-step.cwiz-done.cwiz-clickable:hover { background: #bfdbfe !important; color: #1e40af !important; }
.cwiz-step.cwiz-clickable:not(.cwiz-done):not(.cwiz-active):hover { background: #e8edf8 !important; color: #475569 !important; }
.cwiz-sep { color: #cbd5e1; font-size: 1.4rem; line-height: 1; padding: 0 .1rem; flex-shrink: 0; user-select: none; }
.cwiz-wrapper .rz-steps > ul { display: none !important; }
.cwiz-wrapper .rz-steps-content { padding-top: .5rem !important; }

/* ── Styled audit contract (SeoContract) ── */
.sod-contract { font-family: 'Segoe UI', Arial, sans-serif; color: #1a1a1a; }
.sod-page { background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.12); padding: 3rem 3.5rem 2rem; margin-bottom: 2rem; max-width: 860px; min-height: 29.7cm; box-sizing: border-box; display: flex; flex-direction: column; }
.sod-page-break { height: 0; border-top: 3px dashed #e0e0e0; margin: 0 0 2rem 0; }
.doc-page-num { text-align: center; font-size: .78rem; color: #aaa; margin-top: auto; padding-top: 1rem; padding-bottom: .75rem; }
.sod-title { text-align: center; font-size: 1.35rem; font-weight: 700; letter-spacing: .04em; color: #1a1a1a; margin-bottom: .25rem; }
.sod-subtitle { text-align: center; font-size: 1rem; color: #1565c0; font-weight: 600; margin-bottom: 1.75rem; }
.sod-h { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: #1565c0; padding: .35rem .8rem; border-radius: 4px; margin: 1.4rem 0 .6rem; display: block; }
.sod-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: .5rem; }
.sod-party { border: 1.5px solid #e3eaf6; border-radius: 6px; padding: 1rem 1.2rem; }
.sod-party-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #1565c0; margin-bottom: .5rem; }
.sod-party p { margin: .18rem 0; font-size: .88rem; }
.sod-party strong { font-size: .95rem; }

.sod-bullet { display: flex; gap: .6rem; align-items: flex-start; margin: .35rem 0; font-size: .9rem; }
.sod-bullet-dot { color: #1565c0; font-weight: 700; flex-shrink: 0; margin-top: .05rem; }
.sod-text { font-size: .9rem; line-height: 1.6; margin: .3rem 0; }
.sod-text strong { font-weight: 600; }

.sod-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; align-items: end; }
.sod-sig-line { border-top: 1.5px solid #555; padding-top: .4rem; font-size: .82rem; color: #555; display: flex; align-items: baseline; gap: .4rem; }
.sod-sig-name { font-size: .82rem; font-weight: 600; color: #1a1a1a; }
.sod-date-line { font-size: .88rem; margin: 1.5rem 0 .5rem; color: #444; }
.sod-spec-item { border-bottom: 1px solid #e0e0e0; padding: .55rem 0; font-size: .9rem; min-height: 2rem; }
.sod-sig-img { display: block; max-height: 90px; max-width: 260px; margin: 0 0 0; object-fit: contain; object-position: bottom left; }
.sig-pad-dialog { display: flex; flex-direction: column; gap: 1rem; padding: .5rem 0; }
.sig-pad-hint { font-size: .9rem; color: #555; margin: 0; }
.sig-pad-wrap { position: relative; }
.sig-pad-wrap canvas { border: 1.5px solid #d0d0d0; border-radius: 6px; display: block; width: 100%; cursor: crosshair; touch-action: none; background: #fafafa; }
.sig-pad-clear { position: absolute; top: .4rem; right: .5rem; background: none; border: none; font-size: .78rem; color: #888; cursor: pointer; padding: .15rem .4rem; }
.sig-pad-clear:hover { color: #e53935; }
.sig-pad-pwd .rz-form-field, .sig-pad-pwd { width: 100%; }
.sig-pad-error { font-size: .82rem; color: #e53935; margin: -.25rem 0 0; }
.sig-pad-actions { display: flex; align-items: center; gap: .75rem; }
.sig-pad-actions .sig-pad-pwd { flex: 1; }
.sod-pdf-render .sod-page { box-shadow: none !important; border-radius: 0 !important; margin: 0 !important; max-width: 100% !important; }
.sod-pdf-render .sod-page-break { display: none !important; }

/* ── Styled invoice ── */
.inv-doc { font-family: 'Segoe UI', Arial, sans-serif; color: #1a1a1a; }
.inv-page { background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.12); padding: 2.5rem 3rem 2rem; max-width: 860px; min-height: 29.7cm; box-sizing: border-box; display: flex; flex-direction: column; }
.inv-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.8rem; }
.inv-title { font-size: 1.7rem; font-weight: 800; letter-spacing: .03em; color: #1565c0; }
.inv-number { font-size: 1rem; color: #555; margin-top: .2rem; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.inv-party { border: 1.5px solid #e3eaf6; border-radius: 6px; padding: .9rem 1.1rem; }
.inv-party-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #1565c0; margin-bottom: .4rem; }
.inv-party p { margin: .15rem 0; font-size: .87rem; }
.inv-dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; background: #f0f4ff; border-radius: 6px; padding: .8rem 1rem; margin-bottom: 1.5rem; font-size: .88rem; }
.inv-date-cell label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #1565c0; margin-bottom: .2rem; }
.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: .9rem; }
.inv-table thead tr { background: #1565c0; color: #fff; }
.inv-table thead th { padding: .55rem .8rem; text-align: left; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.inv-table thead th:last-child { text-align: right; }
.inv-table tbody tr:nth-child(even) { background: #f5f8ff; }
.inv-table tbody td { padding: .6rem .8rem; border-bottom: 1px solid #e8edf8; }
.inv-table tbody td:last-child { text-align: right; font-weight: 600; }

.inv-recap { display: flex; justify-content: flex-end; margin: .5rem 0 1.5rem; }
.inv-recap-inner { border-radius: 6px; overflow: hidden; min-width: 320px; border: 1px solid #dde5f8; }
.inv-recap-row { display: flex; justify-content: space-between; align-items: center; padding: .45rem 1rem; font-size: .88rem; background: #f5f8ff; border-bottom: 1px solid #e3eaf6; gap: 2rem; }
.inv-recap-row:last-child { border-bottom: none; }
.inv-recap-total { background: #1565c0; color: #fff; font-weight: 700; font-size: 1rem; padding: .65rem 1rem; }
.inv-payment { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; background: #f8faff; border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.inv-payment-details { font-size: .88rem; }
.inv-payment-details p { margin: .25rem 0; }
.inv-payment-details strong { font-weight: 700; }
.inv-payment-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #1565c0; margin-bottom: .5rem; }
.inv-qr canvas, .inv-qr img { display: block; border-radius: 4px; }
.inv-qr-label { font-size: .65rem; text-align: center; color: #888; margin-top: .3rem; }
.inv-notice { font-size: .78rem; color: #888; border-top: 1px solid #e0e0e0; padding-top: .7rem; margin-top: .5rem; }
.inv-notes { font-size: .88rem; color: #444; font-style: italic; margin-bottom: 1rem; }

/* ── Audit Report ───────────────────────────────── */
.ar-report { font-family: 'Segoe UI', Arial, sans-serif; color: #1a1a1a; }
.ar-page { padding: 2.5cm 2cm 2cm !important; }
.ar-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; }
.ar-header-left { flex: 1; }
.ar-title { font-size: 2rem; font-weight: 800; color: #1a1a1a; line-height: 1.1; }
.ar-subtitle { font-size: .92rem; color: #666; margin-top: .3rem; }
.ar-header-right { flex-shrink: 0; margin-left: 2rem; }
.ar-logo { height: 56px; width: auto; display: block; }
.ar-section-title { font-size: 1rem; font-weight: 700; color: #1a1a1a; border-bottom: 2px solid #e0e0e0; padding-bottom: .4rem; margin-bottom: 1rem; }
.ar-scores-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ar-scores-table thead tr { border-bottom: none; }
.ar-scores-table thead th { text-align: left; padding: .4rem .6rem .6rem; font-size: .78rem; font-weight: 600; color: #555; vertical-align: bottom; }
.ar-scores-table thead th:first-child { width: 110px; }
.ar-th-bar { display: block; height: 3px; border-radius: 2px; margin-bottom: .35rem; width: 100%; }
.ar-th-bar--orange { background: #f97316; }
.ar-th-bar--green  { background: #22c55e; }
.ar-th-bar--blue   { background: #3b82f6; }
.ar-th-bar--red    { background: #ef4444; }
.ar-scores-table tbody tr { border-top: 1px solid #e8e8e8; }
.ar-scores-table tbody td { padding: 1rem .6rem; vertical-align: top; }
.ar-device-label { vertical-align: middle; padding-top: 0; padding-bottom: 0; }
.ar-device-link { font-size: .88rem; font-weight: 700; color: #2271b1; }
.ar-score { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.ar-score--great { color: #16a34a; }
.ar-score--good  { color: #f97316; }
.ar-score--poor  { color: #dc2626; }
.ar-score-sub { font-size: .75rem; color: #666; margin-top: .2rem; }
.ar-errors-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ar-error-box { border-radius: 8px; padding: 1.5rem 1rem; text-align: center; border: 1.5px solid transparent; }
.ar-error-box--critical { background: #fff0f0; border-color: #fca5a5; }
.ar-error-box--warning  { background: #fffbeb; border-color: #fcd34d; }
.ar-error-box--contrast { background: #fff7eb; border-color: #fdba74; }
.ar-error-num { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.ar-error-box--critical .ar-error-num { color: #dc2626; }
.ar-error-box--warning  .ar-error-num { color: #d97706; }
.ar-error-box--contrast .ar-error-num { color: #ea580c; }
.ar-error-label { font-size: .82rem; color: #555; margin-top: .4rem; }
@media print {
    .ar-page { padding: 1.5cm 1.5cm 1cm !important; }
    .ar-logo { height: 44px; }
}
.inv-late-notice { font-size: .82rem; color: #1a1a1a; margin: .75rem 0 1rem; padding: .6rem 1rem; border-left: 3px solid #f97316; background: #fff8f0; border-radius: 0 4px 4px 0; }
.ar-pkg { margin-bottom: 1.5rem; border-radius: 6px; overflow: hidden; border: 1px solid #e8e8e8; }
.ar-pkg-header { display: flex; justify-content: space-between; align-items: center; padding: .65rem 1rem; background: var(--ar-pkg-accent); color: #fff; }
.ar-pkg-name { font-weight: 700; font-size: 1rem; }
.ar-pkg-price { font-weight: 800; font-size: 1.1rem; }
.ar-pkg-items { margin: 0; padding: .5rem 1rem .5rem 2rem; list-style: none; }
.ar-pkg-items li { position: relative; padding: .3rem 0; font-size: .88rem; border-bottom: 1px solid #f0f0f0; color: #333; }
.ar-pkg-items li:last-child { border-bottom: none; }
.ar-pkg-items li::before { content: "-"; position: absolute; left: -1rem; color: var(--ar-pkg-accent); font-weight: 700; }

/* ── Předávací protokol ─────────────────────────── */
.pp-page { padding: 2cm 2cm 1.5cm !important; }
.pp-title { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: .2rem; }
.pp-subtitle { font-size: 1rem; text-align: center; color: #444; }
.pp-proto-num { font-size: .88rem; text-align: center; color: #888; margin-bottom: 2rem; }
.pp-section-title { font-size: .95rem; font-weight: 700; border-bottom: 1.5px solid #ccc; padding-bottom: .3rem; margin: 1.4rem 0 .7rem; }
.pp-party-label { font-size: .88rem; font-weight: 700; margin-bottom: .3rem; }
.pp-party-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: .5rem; }
.pp-party-table td { padding: .3rem .6rem; border: 1px solid #ddd; }
.pp-party-table td:first-child { font-weight: 700; width: 130px; background: #fafafa; }
.pp-works-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.pp-works-table thead tr { background: #2271b1; color: #fff; }
.pp-works-table thead th { padding: .45rem .8rem; text-align: left; font-weight: 600; }
.pp-works-table tbody tr { border-bottom: 1px solid #e8e8e8; }
.pp-works-table tbody tr:last-child { border-bottom: none; }
.pp-works-table tbody td { padding: .4rem .8rem; }
.pp-check { text-align: center; font-size: 1rem; color: #16a34a; font-weight: 700; width: 40px; }
.pp-note-box { font-size: .84rem; font-style: italic; color: #444; border: 1px solid #ccc; border-radius: 4px; padding: .6rem .9rem; margin-bottom: 1.2rem; background: #fafafa; }
@media print { .pp-page { padding: 1.5cm 1.5cm 1cm !important; } }

.dash-overview-empty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.dash-overview-repair-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.85rem;
    border: 1px solid var(--rz-border-color);
    border-radius: 12px;
    margin-bottom: 0.6rem;
}
.dash-overview-repair-card-name {
    font-size: 0.9375rem;
    line-height: 1.3;
}
.dash-overview-repair-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.dash-overview-repair-price-old {
    margin-top: 0.35rem;
    text-decoration: line-through;
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--rz-text-secondary-color);
}
.dash-overview-repair-card-count,
.dash-overview-repair-total-label {
    font-size: 0.8125rem;
}
.dash-overview-repair-total-label {
    margin-top: 0.5rem;
}
.dash-overview-repair-saved {
    font-size: 0.8125rem;
    color: var(--dp-green);
}
.dash-overview-repair-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.dash-overview-repair-price-now {
    font-size: 1.35rem;
    line-height: 1.2;
}
