@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* General Light Theme Styles */
body {
    background-color: #f5f7fa;
    font-family: Arial, sans-serif;
    color: #333333;
}
/* Default Light Theme Styles */
.modal-content {
    background: var(--crm-surface-elevated, #ffffff);
    color: var(--crm-text, #333333);
    border: 1px solid var(--crm-border, #ddd);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.modal-header, .modal-footer {
    background-color: var(--crm-surface, #f8f9fa);
    color: var(--crm-text, #333333);
    border-bottom: 1px solid var(--crm-border, #ddd);
    border-top: 1px solid var(--crm-border, #ddd);
}

.modal-title,
.modal-body,
.modal-header .btn-close {
    color: inherit;
}

.modal-header .btn-close {
    filter: none;
}

html[data-theme="dark"] .modal-header .btn-close,
body[data-theme="dark"] .modal-header .btn-close,
html[data-theme="slate"] .modal-header .btn-close,
body[data-theme="slate"] .modal-header .btn-close,
html[data-theme="dusk"] .modal-header .btn-close,
body[data-theme="dusk"] .modal-header .btn-close,
html[data-theme="midnight"] .modal-header .btn-close,
body[data-theme="midnight"] .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(180%);
}

/* Scrollbar Styling */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: color-mix(in srgb, var(--crm-text, #333333) 28%, transparent);
    border-radius: 4px;
}

.search-result-item {
    padding: 10px;
    font-size: 16px;  /* Μεγαλύτερη γραμματοσειρά */
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #f0f0f0;  /* Εφέ hover */
}

.search-results-container {
    border: 1px solid #ddd; /* Περιγράμματα για το dropdown */
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


/* Navbar */
.navbar {
    background-color: #2b3e50;
}
.navbar-brand, .nav-link, .dropdown-toggle {
    color: #ffffff;
}
.nav-link.active {
    border: 2px solid #2b3e50; /* Χρώμα μπλε */
    border-radius: 5px; /* Στρογγυλεμένες γωνίες */
    padding: 5px 10px; /* Περιθώρια */
    color: #2b3e50; /* Μαύρο κείμενο */
}

[data-theme="dark"] .nav-link.active {
    border: 2px solid #ffffff; /* Λευκό πλαίσιο για dark theme */
    color: #ffffff; /* Λευκό κείμενο */
}
/* Dropdown */
.dropdown-menu {
    background-color: var(--crm-surface-elevated);
    color: var(--crm-text);
    border: 1px solid var(--crm-border);
}
.dropdown-item {
    color: var(--crm-text);
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--crm-row-hover);
    color: var(--crm-heading);
}

/* Page Content */
.page-content {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    color: #333333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form Elements */
.form-control, .form-select {
    background-color: var(--crm-surface-elevated);
    color: var(--crm-text);
    border: 1px solid var(--crm-input-border);
}
.form-control::placeholder {
    color: var(--crm-muted);
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: #007bff;
    color: #ffffff;
}

/* Table Styling for Light Theme */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.table th {
    font-weight: bold;
    padding: 12px;
    text-align: left;
    background-color: var(--crm-surface-frost);
    color: var(--crm-heading);
}
.table td {
    color: var(--crm-text);
}
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: color-mix(in srgb, var(--crm-surface) 86%, white 14%);
}
.table tbody tr:hover {
    background-color: var(--crm-row-hover);
    transition: background-color 0.2s ease;
}

.table-container {
    max-height: 700px; /* Ρύθμισε το ύψος όπως ταιριάζει στη σελίδα σου */
    overflow-y: auto;  /* Ενεργοποίηση της κατακόρυφης κύλισης */
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}
.custom-alert-container {
    position: fixed;
    top: 20px; /* Απόσταση από την κορυφή */
    right: 20px; /* Απόσταση από τη δεξιά πλευρά */
    width: 300px;
    z-index: 9999;
    text-align: left; /* Ευθυγράμμιση κειμένου */
}

.custom-alert {
    background-color: #f8d7da; /* Default error alert */
    color: #721c24;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(0);
}

.custom-alert.success {
    background-color: #d4edda; /* Success alert */
    color: #155724;
    border-color: #c3e6cb;
}

.custom-alert.info {
    background-color: #e7f1ff;
    color: #0b4f8a;
    border-color: #c7ddfb;
}

.custom-alert.warning {
    background-color: #fff3cd;
    color: #7a5a00;
    border-color: #ffe08a;
}

.custom-alert.fade-out {
    opacity: 0;
    transform: translateY(-20px); /* Κίνηση προς τα πάνω κατά το fade-out */
}


/* Dark Theme Styles */
[data-theme="dark"] {
    background-color: #1a1a1a;
    color: #c5c6c7;
}

/* Navbar Dark Theme */
[data-theme="dark"] .navbar {
    background-color: #0e0e0e;
}
[data-theme="dark"] .navbar-brand, [data-theme="dark"] .nav-link, [data-theme="dark"] .dropdown-toggle {
    color: #c5c6c7;
}

/* Dropdown Dark Theme */
[data-theme="dark"] .dropdown-menu {
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #444444;
}
[data-theme="dark"] .dropdown-item {
    color: #c5c6c7;
}
[data-theme="dark"] .dropdown-item:hover, [data-theme="dark"] .dropdown-item:focus {
    background-color: #444444;
    color: #ffffff;
}

/* Page Content Dark Theme */
[data-theme="dark"] .page-content {
    background-color: #2a2a2a;
    color: #c5c6c7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Form Elements Dark Theme */
[data-theme="dark"] .form-control, [data-theme="dark"] .form-select {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #555555;
}
[data-theme="dark"] .form-control::placeholder {
    color: #c5c6c7;
}

/* Buttons Dark Theme */
[data-theme="dark"] .btn-primary {
    background-color: #444444;
    border-color: #444444;
    color: #ffffff;
}
[data-theme="dark"] .btn-primary:hover, [data-theme="dark"] .btn-primary:focus {
    background-color: #555555;
    border-color: #555555;
}

.reports-page__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, var(--crm-accent-soft, rgba(13, 110, 253, 0.14)), transparent 36%),
        var(--crm-surface-elevated, linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%));
    border: 1px solid var(--crm-border, rgba(15, 23, 42, 0.08));
    box-shadow: var(--crm-shadow-soft, 0 16px 40px rgba(15, 23, 42, 0.08));
}

.reports-page__subtitle {
    margin: 0.35rem 0 0;
    color: var(--crm-muted, #6c757d);
    max-width: 680px;
}

.reports-page__period {
    display: inline-flex;
    align-items: center;
    margin-top: 0.75rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--crm-accent-soft, rgba(13, 110, 253, 0.1));
    color: var(--crm-accent-strong, #1d4ed8);
    font-size: 0.82rem;
    font-weight: 700;
}

.reports-page__filters {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: var(--crm-surface-frost, rgba(255, 255, 255, 0.72));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.18));
    backdrop-filter: blur(8px);
}

.reports-page__filters > div {
    min-width: 150px;
}

.reports-page__filters .form-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--crm-muted, #52606d);
    text-transform: uppercase;
}

.reports-page__filters .form-control {
    border-radius: 12px;
    border-color: rgba(148, 163, 184, 0.35);
    min-height: 44px;
}

.reports-page__actions {
    display: flex;
    gap: 0.5rem;
}

.reports-privacy-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.reports-privacy-controls__field {
    flex: 1 1 320px;
    min-width: 260px;
}

.reports-privacy-controls__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.reports-privacy-summary {
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.18));
    border-radius: 16px;
    padding: 1rem 1.1rem;
    background: var(--crm-surface-frost, rgba(15, 23, 42, 0.04));
}

.reports-export-card {
    margin-bottom: 1.25rem;
}

.reports-export-builder {
    display: grid;
    gap: 1rem;
}

.reports-export-presets {
    display: grid;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: var(--crm-surface-frost, rgba(255, 255, 255, 0.82));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.18));
}

.reports-export-presets__row {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) minmax(170px, 0.8fr) auto;
    gap: 0.85rem;
    align-items: end;
}

.reports-export-presets__field--wide {
    min-width: 0;
}

.reports-export-presets__field .form-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--crm-muted, #52606d);
    text-transform: uppercase;
}

.reports-export-presets__field .form-control,
.reports-export-presets__field .form-select {
    min-height: 44px;
    border-radius: 12px;
    border-color: var(--crm-input-border, rgba(148, 163, 184, 0.35));
}

.reports-export-presets__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.reports-export-builder.d-none {
    display: none;
}

.reports-export-toolbar {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(220px, 1fr) auto;
    gap: 0.85rem;
    align-items: end;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: var(--crm-surface-frost, linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.92) 100%));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.18));
}

.reports-export-toolbar__field .form-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--crm-muted, #52606d);
    text-transform: uppercase;
}

.reports-export-toolbar__field .form-select {
    min-height: 44px;
    border-radius: 12px;
    border-color: var(--crm-input-border, rgba(148, 163, 184, 0.35));
}

.reports-export-toolbar__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    margin: 0;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    background: var(--crm-surface, rgba(255, 255, 255, 0.74));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.18));
    color: var(--crm-text, #334155);
    font-weight: 600;
}

.reports-export-toolbar__toggle input {
    margin: 0;
}

.reports-export-toolbar__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.reports-export-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
}

.reports-export-section {
    padding: 1rem 1rem 0.95rem;
    border-radius: 16px;
    background: var(--crm-surface-elevated, linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.16));
    box-shadow: var(--crm-shadow-soft, 0 10px 24px rgba(15, 23, 42, 0.06));
}

.reports-export-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.reports-export-section__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-weight: 700;
    color: var(--crm-heading, #1e293b);
}

.reports-export-section__meta {
    font-size: 0.76rem;
    color: var(--crm-muted, #64748b);
    text-align: right;
}

.reports-export-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.55rem;
}

.reports-export-field {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
    background: var(--crm-surface-frost, rgba(248, 250, 252, 0.92));
    border: 1px solid var(--crm-border, rgba(226, 232, 240, 0.92));
    color: var(--crm-text, #334155);
    font-size: 0.9rem;
}

.reports-export-field input,
.reports-export-section__toggle input {
    margin: 0;
}

@media (max-width: 991.98px) {
    .reports-export-presets__row,
    .reports-export-toolbar {
        grid-template-columns: 1fr;
    }

    .reports-export-presets__actions,
    .reports-export-toolbar__actions {
        justify-content: stretch;
    }
}

.reports-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.reports-summary-card {
    border-radius: 16px;
    padding: 1rem 1.1rem;
    color: var(--crm-text, #1f2933);
    background: var(--crm-surface-elevated, linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%));
    border: 1px solid var(--crm-border, rgba(15, 23, 42, 0.08));
    box-shadow: var(--crm-shadow-soft, 0 10px 30px rgba(15, 23, 42, 0.08));
}

.reports-summary-card--primary {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.reports-summary-card--success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.reports-summary-card--warning {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.reports-summary-card--info {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
}

.reports-summary-card__label {
    display: block;
    font-size: 0.9rem;
    color: var(--crm-muted, #52606d);
    margin-bottom: 0.35rem;
}

.reports-summary-card__value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--crm-heading, #f8fafc);
}

.reports-card {
    border-radius: 18px;
    overflow: hidden;
    background: var(--crm-surface-elevated);
    border: 1px solid var(--crm-border, rgba(15, 23, 42, 0.08));
    box-shadow: var(--crm-shadow-soft, 0 14px 34px rgba(15, 23, 42, 0.08));
}

.reports-card .card-body {
    padding: 1.2rem 1.25rem;
}

.reports-table-container {
    margin-top: 0.2rem;
}

.reports-card .reports-table-container {
    padding: 0.45rem;
    border-radius: 24px;
}

.reports-section-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--crm-heading, #f8fafc);
}

.reports-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.reports-metric {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--crm-surface-frost, #f8fafc);
    border: 1px solid var(--crm-border, rgba(15, 23, 42, 0.08));
}

.reports-metric__label {
    display: block;
    color: var(--crm-muted, #52606d);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.reports-metric__value {
    display: block;
    font-size: 1.15rem;
    color: var(--crm-heading, #f8fafc);
}

.reports-card .text-muted,
.reports-export-card .text-muted,
.reports-privacy-card .text-muted {
    color: var(--crm-muted, #9aa5b1) !important;
}

.reports-table__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.reports-table {
    margin-bottom: 0;
}

.reports-table thead th {
    border-bottom-width: 1px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--crm-muted, #52606d);
    background: color-mix(in srgb, var(--crm-surface) 88%, transparent);
}

.reports-table tbody td {
    vertical-align: middle;
    color: var(--crm-text);
    border-color: var(--crm-row-border, rgba(226, 232, 240, 0.9));
    background: color-mix(in srgb, var(--crm-surface) 90%, transparent);
}

.reports-table tbody tr:hover {
    background: rgba(13, 110, 253, 0.04);
}

.reports-table.table-striped > tbody > tr:nth-of-type(odd) > * {
    background: color-mix(in srgb, var(--crm-surface) 92%, transparent);
    color: var(--crm-text);
}

.reports-table.table-striped > tbody > tr:nth-of-type(even) > * {
    background: color-mix(in srgb, var(--crm-surface-frost) 88%, transparent);
    color: var(--crm-text);
}

.reports-empty-state {
    padding: 1.35rem 0.75rem;
}

.reports-empty-state__icon {
    font-size: 1.35rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.45rem;
}

.reports-empty-state__text {
    color: var(--crm-muted, #64748b);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 30px;
    padding: 0.3rem 0.72rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.status-badge::before {
    content: "";
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.85;
}

.status-badge--default {
    background: #eef2f7;
    border-color: #d8e1eb;
    color: #52606d;
}

.status-badge--new,
.status-badge--pending {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.status-badge--in-progress,
.status-badge--unpaid {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

.status-badge--waiting-on-customer,
.status-badge--overdue {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.status-badge--resolved,
.status-badge--paid {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.status-badge--cancelled {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.ticket-widget-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.ticket-widget-row__content {
    min-width: 0;
}

.ticket-widget-row__meta {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.recent-log-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.recent-log-item__user {
    font-weight: 700;
    color: #1f2937;
}

.recent-log-item__time {
    font-size: 0.78rem;
    color: #6b7280;
    white-space: nowrap;
}

.recent-log-item__summary {
    color: #374151;
    line-height: 1.4;
}

.ticket-widget-row__title {
    display: block;
    font-weight: 600;
}

.ticket-widget-row__details {
    display: block;
    margin-top: 0.2rem;
    color: #52606d;
    font-size: 0.9rem;
}

[data-theme="dark"] .reports-page__subtitle,
html[data-theme="slate"] .reports-page__subtitle,
body[data-theme="slate"] .reports-page__subtitle,
html[data-theme="dusk"] .reports-page__subtitle,
body[data-theme="dusk"] .reports-page__subtitle,
html[data-theme="midnight"] .reports-page__subtitle,
body[data-theme="midnight"] .reports-page__subtitle,
html[data-theme="olive"] .reports-page__subtitle,
body[data-theme="olive"] .reports-page__subtitle,
html[data-theme="terracotta"] .reports-page__subtitle,
body[data-theme="terracotta"] .reports-page__subtitle {
    color: var(--crm-muted);
}

[data-theme="dark"] .reports-page__period,
html[data-theme="slate"] .reports-page__period,
body[data-theme="slate"] .reports-page__period,
html[data-theme="dusk"] .reports-page__period,
body[data-theme="dusk"] .reports-page__period,
html[data-theme="midnight"] .reports-page__period,
body[data-theme="midnight"] .reports-page__period,
html[data-theme="olive"] .reports-page__period,
body[data-theme="olive"] .reports-page__period,
html[data-theme="terracotta"] .reports-page__period,
body[data-theme="terracotta"] .reports-page__period {
    background: color-mix(in srgb, var(--crm-accent-soft) 84%, transparent);
    color: var(--crm-accent-strong);
}

[data-theme="dark"] .reports-page__header,
html[data-theme="slate"] .reports-page__header,
body[data-theme="slate"] .reports-page__header,
html[data-theme="dusk"] .reports-page__header,
body[data-theme="dusk"] .reports-page__header,
html[data-theme="midnight"] .reports-page__header,
body[data-theme="midnight"] .reports-page__header,
html[data-theme="olive"] .reports-page__header,
body[data-theme="olive"] .reports-page__header,
html[data-theme="terracotta"] .reports-page__header,
body[data-theme="terracotta"] .reports-page__header {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--crm-accent-soft) 88%, white 12%), transparent 34%),
        var(--crm-surface-elevated);
    border-color: var(--crm-border);
    box-shadow: var(--crm-shadow-soft);
}

[data-theme="dark"] .reports-page__filters,
html[data-theme="slate"] .reports-page__filters,
body[data-theme="slate"] .reports-page__filters,
html[data-theme="dusk"] .reports-page__filters,
body[data-theme="dusk"] .reports-page__filters,
html[data-theme="midnight"] .reports-page__filters,
body[data-theme="midnight"] .reports-page__filters,
html[data-theme="olive"] .reports-page__filters,
body[data-theme="olive"] .reports-page__filters,
html[data-theme="terracotta"] .reports-page__filters,
body[data-theme="terracotta"] .reports-page__filters {
    background: var(--crm-surface-frost);
    border-color: var(--crm-border);
}

[data-theme="dark"] .reports-export-toolbar,
[data-theme="dark"] .reports-export-section,
html[data-theme="slate"] .reports-export-toolbar,
body[data-theme="slate"] .reports-export-toolbar,
html[data-theme="slate"] .reports-export-section,
body[data-theme="slate"] .reports-export-section,
html[data-theme="dusk"] .reports-export-toolbar,
body[data-theme="dusk"] .reports-export-toolbar,
html[data-theme="dusk"] .reports-export-section,
body[data-theme="dusk"] .reports-export-section,
html[data-theme="midnight"] .reports-export-toolbar,
body[data-theme="midnight"] .reports-export-toolbar,
html[data-theme="midnight"] .reports-export-section,
body[data-theme="midnight"] .reports-export-section,
html[data-theme="olive"] .reports-export-toolbar,
body[data-theme="olive"] .reports-export-toolbar,
html[data-theme="olive"] .reports-export-section,
body[data-theme="olive"] .reports-export-section,
html[data-theme="terracotta"] .reports-export-toolbar,
body[data-theme="terracotta"] .reports-export-toolbar,
html[data-theme="terracotta"] .reports-export-section,
body[data-theme="terracotta"] .reports-export-section {
    background: var(--crm-surface-elevated);
    border-color: var(--crm-border);
}

[data-theme="dark"] .reports-page__filters .form-label,
[data-theme="dark"] .reports-table thead th,
[data-theme="dark"] .ticket-widget-row__details,
[data-theme="dark"] .ticket-widget-row__meta,
html[data-theme="slate"] .reports-page__filters .form-label,
body[data-theme="slate"] .reports-page__filters .form-label,
html[data-theme="slate"] .reports-table thead th,
body[data-theme="slate"] .reports-table thead th,
html[data-theme="slate"] .ticket-widget-row__details,
body[data-theme="slate"] .ticket-widget-row__details,
html[data-theme="slate"] .ticket-widget-row__meta,
body[data-theme="slate"] .ticket-widget-row__meta,
html[data-theme="dusk"] .reports-page__filters .form-label,
body[data-theme="dusk"] .reports-page__filters .form-label,
html[data-theme="dusk"] .reports-table thead th,
body[data-theme="dusk"] .reports-table thead th,
html[data-theme="dusk"] .ticket-widget-row__details,
body[data-theme="dusk"] .ticket-widget-row__details,
html[data-theme="dusk"] .ticket-widget-row__meta,
body[data-theme="dusk"] .ticket-widget-row__meta,
html[data-theme="midnight"] .reports-page__filters .form-label,
body[data-theme="midnight"] .reports-page__filters .form-label,
html[data-theme="midnight"] .reports-table thead th,
body[data-theme="midnight"] .reports-table thead th,
html[data-theme="midnight"] .ticket-widget-row__details,
body[data-theme="midnight"] .ticket-widget-row__details,
html[data-theme="midnight"] .ticket-widget-row__meta,
body[data-theme="midnight"] .ticket-widget-row__meta,
html[data-theme="olive"] .reports-page__filters .form-label,
body[data-theme="olive"] .reports-page__filters .form-label,
html[data-theme="olive"] .reports-table thead th,
body[data-theme="olive"] .reports-table thead th,
html[data-theme="olive"] .ticket-widget-row__details,
body[data-theme="olive"] .ticket-widget-row__details,
html[data-theme="olive"] .ticket-widget-row__meta,
body[data-theme="olive"] .ticket-widget-row__meta,
html[data-theme="terracotta"] .reports-page__filters .form-label,
body[data-theme="terracotta"] .reports-page__filters .form-label,
html[data-theme="terracotta"] .reports-table thead th,
body[data-theme="terracotta"] .reports-table thead th,
html[data-theme="terracotta"] .ticket-widget-row__details,
body[data-theme="terracotta"] .ticket-widget-row__details,
html[data-theme="terracotta"] .ticket-widget-row__meta,
body[data-theme="terracotta"] .ticket-widget-row__meta {
    color: var(--crm-muted);
}

[data-theme="dark"] .reports-export-toolbar__field .form-label,
[data-theme="dark"] .reports-export-section__meta,
[data-theme="dark"] .reports-export-field,
[data-theme="dark"] .reports-export-toolbar__toggle,
html[data-theme="slate"] .reports-export-toolbar__field .form-label,
body[data-theme="slate"] .reports-export-toolbar__field .form-label,
html[data-theme="slate"] .reports-export-section__meta,
body[data-theme="slate"] .reports-export-section__meta,
html[data-theme="slate"] .reports-export-field,
body[data-theme="slate"] .reports-export-field,
html[data-theme="slate"] .reports-export-toolbar__toggle,
body[data-theme="slate"] .reports-export-toolbar__toggle,
html[data-theme="dusk"] .reports-export-toolbar__field .form-label,
body[data-theme="dusk"] .reports-export-toolbar__field .form-label,
html[data-theme="dusk"] .reports-export-section__meta,
body[data-theme="dusk"] .reports-export-section__meta,
html[data-theme="dusk"] .reports-export-field,
body[data-theme="dusk"] .reports-export-field,
html[data-theme="dusk"] .reports-export-toolbar__toggle,
body[data-theme="dusk"] .reports-export-toolbar__toggle,
html[data-theme="midnight"] .reports-export-toolbar__field .form-label,
body[data-theme="midnight"] .reports-export-toolbar__field .form-label,
html[data-theme="midnight"] .reports-export-section__meta,
body[data-theme="midnight"] .reports-export-section__meta,
html[data-theme="midnight"] .reports-export-field,
body[data-theme="midnight"] .reports-export-field,
html[data-theme="midnight"] .reports-export-toolbar__toggle,
body[data-theme="midnight"] .reports-export-toolbar__toggle,
html[data-theme="olive"] .reports-export-toolbar__field .form-label,
body[data-theme="olive"] .reports-export-toolbar__field .form-label,
html[data-theme="olive"] .reports-export-section__meta,
body[data-theme="olive"] .reports-export-section__meta,
html[data-theme="olive"] .reports-export-field,
body[data-theme="olive"] .reports-export-field,
html[data-theme="olive"] .reports-export-toolbar__toggle,
body[data-theme="olive"] .reports-export-toolbar__toggle,
html[data-theme="terracotta"] .reports-export-toolbar__field .form-label,
body[data-theme="terracotta"] .reports-export-toolbar__field .form-label,
html[data-theme="terracotta"] .reports-export-section__meta,
body[data-theme="terracotta"] .reports-export-section__meta,
html[data-theme="terracotta"] .reports-export-field,
body[data-theme="terracotta"] .reports-export-field,
html[data-theme="terracotta"] .reports-export-toolbar__toggle,
body[data-theme="terracotta"] .reports-export-toolbar__toggle {
    color: var(--crm-muted);
}

[data-theme="dark"] .reports-export-toolbar__toggle,
[data-theme="dark"] .reports-export-field,
html[data-theme="slate"] .reports-export-toolbar__toggle,
body[data-theme="slate"] .reports-export-toolbar__toggle,
html[data-theme="slate"] .reports-export-field,
body[data-theme="slate"] .reports-export-field,
html[data-theme="dusk"] .reports-export-toolbar__toggle,
body[data-theme="dusk"] .reports-export-toolbar__toggle,
html[data-theme="dusk"] .reports-export-field,
body[data-theme="dusk"] .reports-export-field,
html[data-theme="midnight"] .reports-export-toolbar__toggle,
body[data-theme="midnight"] .reports-export-toolbar__toggle,
html[data-theme="midnight"] .reports-export-field,
body[data-theme="midnight"] .reports-export-field,
html[data-theme="olive"] .reports-export-toolbar__toggle,
body[data-theme="olive"] .reports-export-toolbar__toggle,
html[data-theme="olive"] .reports-export-field,
body[data-theme="olive"] .reports-export-field,
html[data-theme="terracotta"] .reports-export-toolbar__toggle,
body[data-theme="terracotta"] .reports-export-toolbar__toggle,
html[data-theme="terracotta"] .reports-export-field,
body[data-theme="terracotta"] .reports-export-field {
    background: var(--crm-surface-frost);
    border-color: var(--crm-border);
}

[data-theme="dark"] .reports-export-section__toggle,
html[data-theme="slate"] .reports-export-section__toggle,
body[data-theme="slate"] .reports-export-section__toggle,
html[data-theme="dusk"] .reports-export-section__toggle,
body[data-theme="dusk"] .reports-export-section__toggle,
html[data-theme="midnight"] .reports-export-section__toggle,
body[data-theme="midnight"] .reports-export-section__toggle,
html[data-theme="olive"] .reports-export-section__toggle,
body[data-theme="olive"] .reports-export-section__toggle,
html[data-theme="terracotta"] .reports-export-section__toggle,
body[data-theme="terracotta"] .reports-export-section__toggle {
    color: var(--crm-text);
}

[data-theme="dark"] .reports-empty-state__icon {
    color: #94a3b8;
}

[data-theme="dark"] .reports-empty-state__text,
[data-theme="dark"] .recent-log-item__summary,
[data-theme="dark"] .recent-log-item__user,
html[data-theme="slate"] .reports-empty-state__text,
body[data-theme="slate"] .reports-empty-state__text,
html[data-theme="slate"] .recent-log-item__summary,
body[data-theme="slate"] .recent-log-item__summary,
html[data-theme="slate"] .recent-log-item__user,
body[data-theme="slate"] .recent-log-item__user,
html[data-theme="dusk"] .reports-empty-state__text,
body[data-theme="dusk"] .reports-empty-state__text,
html[data-theme="dusk"] .recent-log-item__summary,
body[data-theme="dusk"] .recent-log-item__summary,
html[data-theme="dusk"] .recent-log-item__user,
body[data-theme="dusk"] .recent-log-item__user,
html[data-theme="midnight"] .reports-empty-state__text,
body[data-theme="midnight"] .reports-empty-state__text,
html[data-theme="midnight"] .recent-log-item__summary,
body[data-theme="midnight"] .recent-log-item__summary,
html[data-theme="midnight"] .recent-log-item__user,
body[data-theme="midnight"] .recent-log-item__user,
html[data-theme="olive"] .reports-empty-state__text,
body[data-theme="olive"] .reports-empty-state__text,
html[data-theme="olive"] .recent-log-item__summary,
body[data-theme="olive"] .recent-log-item__summary,
html[data-theme="olive"] .recent-log-item__user,
body[data-theme="olive"] .recent-log-item__user,
html[data-theme="terracotta"] .reports-empty-state__text,
body[data-theme="terracotta"] .reports-empty-state__text,
html[data-theme="terracotta"] .recent-log-item__summary,
body[data-theme="terracotta"] .recent-log-item__summary,
html[data-theme="terracotta"] .recent-log-item__user,
body[data-theme="terracotta"] .recent-log-item__user {
    color: var(--crm-muted);
}

[data-theme="dark"] .recent-log-item__time {
    color: #9ca3af;
}

[data-theme="dark"] .reports-page__filters .form-control,
html[data-theme="slate"] .reports-page__filters .form-control,
body[data-theme="slate"] .reports-page__filters .form-control,
html[data-theme="dusk"] .reports-page__filters .form-control,
body[data-theme="dusk"] .reports-page__filters .form-control,
html[data-theme="midnight"] .reports-page__filters .form-control,
body[data-theme="midnight"] .reports-page__filters .form-control,
html[data-theme="olive"] .reports-page__filters .form-control,
body[data-theme="olive"] .reports-page__filters .form-control,
html[data-theme="terracotta"] .reports-page__filters .form-control,
body[data-theme="terracotta"] .reports-page__filters .form-control {
    background: var(--crm-surface);
    border-color: var(--crm-input-border);
    color: var(--crm-text);
}

[data-theme="dark"] .reports-privacy-summary,
html[data-theme="slate"] .reports-privacy-summary,
body[data-theme="slate"] .reports-privacy-summary,
html[data-theme="dusk"] .reports-privacy-summary,
body[data-theme="dusk"] .reports-privacy-summary,
html[data-theme="midnight"] .reports-privacy-summary,
body[data-theme="midnight"] .reports-privacy-summary,
html[data-theme="olive"] .reports-privacy-summary,
body[data-theme="olive"] .reports-privacy-summary,
html[data-theme="terracotta"] .reports-privacy-summary,
body[data-theme="terracotta"] .reports-privacy-summary {
    background: var(--crm-surface-frost);
    border-color: var(--crm-border);
    color: var(--crm-muted);
}

[data-theme="dark"] .reports-export-toolbar__field .form-select,
html[data-theme="slate"] .reports-export-toolbar__field .form-select,
body[data-theme="slate"] .reports-export-toolbar__field .form-select,
html[data-theme="dusk"] .reports-export-toolbar__field .form-select,
body[data-theme="dusk"] .reports-export-toolbar__field .form-select,
html[data-theme="midnight"] .reports-export-toolbar__field .form-select,
body[data-theme="midnight"] .reports-export-toolbar__field .form-select,
html[data-theme="olive"] .reports-export-toolbar__field .form-select,
body[data-theme="olive"] .reports-export-toolbar__field .form-select,
html[data-theme="terracotta"] .reports-export-toolbar__field .form-select,
body[data-theme="terracotta"] .reports-export-toolbar__field .form-select {
    background: var(--crm-surface);
    border-color: var(--crm-input-border);
    color: var(--crm-text);
}

[data-theme="dark"] .reports-table tbody td,
[data-theme="dark"] .reports-table.table-striped > tbody > tr:nth-of-type(odd) > *,
[data-theme="dark"] .reports-table.table-striped > tbody > tr:nth-of-type(even) > *,
html[data-theme="slate"] .reports-table tbody td,
body[data-theme="slate"] .reports-table tbody td,
html[data-theme="slate"] .reports-table.table-striped > tbody > tr:nth-of-type(odd) > *,
body[data-theme="slate"] .reports-table.table-striped > tbody > tr:nth-of-type(odd) > *,
html[data-theme="slate"] .reports-table.table-striped > tbody > tr:nth-of-type(even) > *,
body[data-theme="slate"] .reports-table.table-striped > tbody > tr:nth-of-type(even) > *,
html[data-theme="dusk"] .reports-table tbody td,
body[data-theme="dusk"] .reports-table tbody td,
html[data-theme="dusk"] .reports-table.table-striped > tbody > tr:nth-of-type(odd) > *,
body[data-theme="dusk"] .reports-table.table-striped > tbody > tr:nth-of-type(odd) > *,
html[data-theme="dusk"] .reports-table.table-striped > tbody > tr:nth-of-type(even) > *,
body[data-theme="dusk"] .reports-table.table-striped > tbody > tr:nth-of-type(even) > *,
html[data-theme="midnight"] .reports-table tbody td,
body[data-theme="midnight"] .reports-table tbody td,
html[data-theme="midnight"] .reports-table.table-striped > tbody > tr:nth-of-type(odd) > *,
body[data-theme="midnight"] .reports-table.table-striped > tbody > tr:nth-of-type(odd) > *,
html[data-theme="midnight"] .reports-table.table-striped > tbody > tr:nth-of-type(even) > *,
body[data-theme="midnight"] .reports-table.table-striped > tbody > tr:nth-of-type(even) > * {
    background: color-mix(in srgb, var(--crm-surface) 88%, transparent);
    color: var(--crm-text);
}

[data-theme="dark"] .reports-table tbody tr:hover > *,
html[data-theme="slate"] .reports-table tbody tr:hover > *,
body[data-theme="slate"] .reports-table tbody tr:hover > *,
html[data-theme="dusk"] .reports-table tbody tr:hover > *,
body[data-theme="dusk"] .reports-table tbody tr:hover > *,
html[data-theme="midnight"] .reports-table tbody tr:hover > *,
body[data-theme="midnight"] .reports-table tbody tr:hover > * {
    background: color-mix(in srgb, var(--crm-row-hover) 82%, transparent);
}

[data-theme="dark"] .reports-summary-card,
[data-theme="dark"] .reports-metric,
[data-theme="dark"] .reports-card {
    background: var(--crm-surface-elevated);
    color: var(--crm-text);
    border-color: var(--crm-border);
    box-shadow: var(--crm-shadow-soft);
}

[data-theme="dark"] .reports-summary-card__label,
[data-theme="dark"] .reports-metric__label {
    color: var(--crm-muted);
}

[data-theme="dark"] .reports-summary-card--primary,
[data-theme="dark"] .reports-summary-card--success,
[data-theme="dark"] .reports-summary-card--warning,
[data-theme="dark"] .reports-summary-card--info,
html[data-theme="slate"] .reports-summary-card,
body[data-theme="slate"] .reports-summary-card,
html[data-theme="slate"] .reports-metric,
body[data-theme="slate"] .reports-metric,
html[data-theme="slate"] .reports-card,
body[data-theme="slate"] .reports-card,
html[data-theme="slate"] .reports-summary-card--primary,
body[data-theme="slate"] .reports-summary-card--primary,
html[data-theme="slate"] .reports-summary-card--success,
body[data-theme="slate"] .reports-summary-card--success,
html[data-theme="slate"] .reports-summary-card--warning,
body[data-theme="slate"] .reports-summary-card--warning,
html[data-theme="slate"] .reports-summary-card--info,
body[data-theme="slate"] .reports-summary-card--info,
html[data-theme="dusk"] .reports-summary-card,
body[data-theme="dusk"] .reports-summary-card,
html[data-theme="dusk"] .reports-metric,
body[data-theme="dusk"] .reports-metric,
html[data-theme="dusk"] .reports-card,
body[data-theme="dusk"] .reports-card,
html[data-theme="dusk"] .reports-summary-card--primary,
body[data-theme="dusk"] .reports-summary-card--primary,
html[data-theme="dusk"] .reports-summary-card--success,
body[data-theme="dusk"] .reports-summary-card--success,
html[data-theme="dusk"] .reports-summary-card--warning,
body[data-theme="dusk"] .reports-summary-card--warning,
html[data-theme="dusk"] .reports-summary-card--info,
body[data-theme="dusk"] .reports-summary-card--info,
html[data-theme="midnight"] .reports-summary-card,
body[data-theme="midnight"] .reports-summary-card,
html[data-theme="midnight"] .reports-metric,
body[data-theme="midnight"] .reports-metric,
html[data-theme="midnight"] .reports-card,
body[data-theme="midnight"] .reports-card,
html[data-theme="midnight"] .reports-summary-card--primary,
body[data-theme="midnight"] .reports-summary-card--primary,
html[data-theme="midnight"] .reports-summary-card--success,
body[data-theme="midnight"] .reports-summary-card--success,
html[data-theme="midnight"] .reports-summary-card--warning,
body[data-theme="midnight"] .reports-summary-card--warning,
html[data-theme="midnight"] .reports-summary-card--info,
body[data-theme="midnight"] .reports-summary-card--info,
html[data-theme="olive"] .reports-summary-card,
body[data-theme="olive"] .reports-summary-card,
html[data-theme="olive"] .reports-metric,
body[data-theme="olive"] .reports-metric,
html[data-theme="olive"] .reports-card,
body[data-theme="olive"] .reports-card,
html[data-theme="olive"] .reports-summary-card--primary,
body[data-theme="olive"] .reports-summary-card--primary,
html[data-theme="olive"] .reports-summary-card--success,
body[data-theme="olive"] .reports-summary-card--success,
html[data-theme="olive"] .reports-summary-card--warning,
body[data-theme="olive"] .reports-summary-card--warning,
html[data-theme="olive"] .reports-summary-card--info,
body[data-theme="olive"] .reports-summary-card--info,
html[data-theme="terracotta"] .reports-summary-card,
body[data-theme="terracotta"] .reports-summary-card,
html[data-theme="terracotta"] .reports-metric,
body[data-theme="terracotta"] .reports-metric,
html[data-theme="terracotta"] .reports-card,
body[data-theme="terracotta"] .reports-card,
html[data-theme="terracotta"] .reports-summary-card--primary,
body[data-theme="terracotta"] .reports-summary-card--primary,
html[data-theme="terracotta"] .reports-summary-card--success,
body[data-theme="terracotta"] .reports-summary-card--success,
html[data-theme="terracotta"] .reports-summary-card--warning,
body[data-theme="terracotta"] .reports-summary-card--warning,
html[data-theme="terracotta"] .reports-summary-card--info,
body[data-theme="terracotta"] .reports-summary-card--info {
    background: var(--crm-surface-elevated);
    color: var(--crm-text);
    border-color: var(--crm-border);
    box-shadow: var(--crm-shadow-soft);
}

html[data-theme="slate"] .reports-summary-card__label,
body[data-theme="slate"] .reports-summary-card__label,
html[data-theme="slate"] .reports-metric__label,
body[data-theme="slate"] .reports-metric__label,
html[data-theme="dusk"] .reports-summary-card__label,
body[data-theme="dusk"] .reports-summary-card__label,
html[data-theme="dusk"] .reports-metric__label,
body[data-theme="dusk"] .reports-metric__label,
html[data-theme="midnight"] .reports-summary-card__label,
body[data-theme="midnight"] .reports-summary-card__label,
html[data-theme="midnight"] .reports-metric__label,
body[data-theme="midnight"] .reports-metric__label,
html[data-theme="olive"] .reports-summary-card__label,
body[data-theme="olive"] .reports-summary-card__label,
html[data-theme="olive"] .reports-metric__label,
body[data-theme="olive"] .reports-metric__label,
html[data-theme="terracotta"] .reports-summary-card__label,
body[data-theme="terracotta"] .reports-summary-card__label,
html[data-theme="terracotta"] .reports-metric__label,
body[data-theme="terracotta"] .reports-metric__label {
    color: var(--crm-muted);
}

html[data-theme="olive"] .reports-page__header,
body[data-theme="olive"] .reports-page__header,
html[data-theme="terracotta"] .reports-page__header,
body[data-theme="terracotta"] .reports-page__header {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--crm-accent-soft) 88%, white 12%), transparent 36%),
        var(--crm-surface-elevated);
    border-color: var(--crm-border);
    box-shadow: var(--crm-shadow-soft);
}

html[data-theme="olive"] .reports-page__subtitle,
body[data-theme="olive"] .reports-page__subtitle,
html[data-theme="olive"] .reports-page__filters .form-label,
body[data-theme="olive"] .reports-page__filters .form-label,
html[data-theme="olive"] .reports-table thead th,
body[data-theme="olive"] .reports-table thead th,
html[data-theme="olive"] .ticket-widget-row__details,
body[data-theme="olive"] .ticket-widget-row__details,
html[data-theme="olive"] .ticket-widget-row__meta,
body[data-theme="olive"] .ticket-widget-row__meta,
html[data-theme="olive"] .reports-export-toolbar__field .form-label,
body[data-theme="olive"] .reports-export-toolbar__field .form-label,
html[data-theme="olive"] .reports-export-section__meta,
body[data-theme="olive"] .reports-export-section__meta,
html[data-theme="olive"] .reports-summary-card__label,
body[data-theme="olive"] .reports-summary-card__label,
html[data-theme="olive"] .reports-metric__label,
body[data-theme="olive"] .reports-metric__label,
html[data-theme="olive"] .reports-empty-state__text,
body[data-theme="olive"] .reports-empty-state__text,
html[data-theme="olive"] .recent-log-item__summary,
body[data-theme="olive"] .recent-log-item__summary,
html[data-theme="olive"] .recent-log-item__user,
body[data-theme="olive"] .recent-log-item__user,
html[data-theme="terracotta"] .reports-page__subtitle,
body[data-theme="terracotta"] .reports-page__subtitle,
html[data-theme="terracotta"] .reports-page__filters .form-label,
body[data-theme="terracotta"] .reports-page__filters .form-label,
html[data-theme="terracotta"] .reports-table thead th,
body[data-theme="terracotta"] .reports-table thead th,
html[data-theme="terracotta"] .ticket-widget-row__details,
body[data-theme="terracotta"] .ticket-widget-row__details,
html[data-theme="terracotta"] .ticket-widget-row__meta,
body[data-theme="terracotta"] .ticket-widget-row__meta,
html[data-theme="terracotta"] .reports-export-toolbar__field .form-label,
body[data-theme="terracotta"] .reports-export-toolbar__field .form-label,
html[data-theme="terracotta"] .reports-export-section__meta,
body[data-theme="terracotta"] .reports-export-section__meta,
html[data-theme="terracotta"] .reports-summary-card__label,
body[data-theme="terracotta"] .reports-summary-card__label,
html[data-theme="terracotta"] .reports-metric__label,
body[data-theme="terracotta"] .reports-metric__label,
html[data-theme="terracotta"] .reports-empty-state__text,
body[data-theme="terracotta"] .reports-empty-state__text,
html[data-theme="terracotta"] .recent-log-item__summary,
body[data-theme="terracotta"] .recent-log-item__summary,
html[data-theme="terracotta"] .recent-log-item__user,
body[data-theme="terracotta"] .recent-log-item__user {
    color: var(--crm-muted);
}

html[data-theme="olive"] .reports-page__period,
body[data-theme="olive"] .reports-page__period,
html[data-theme="olive"] .reports-export-toolbar__toggle,
body[data-theme="olive"] .reports-export-toolbar__toggle,
html[data-theme="olive"] .reports-export-field,
body[data-theme="olive"] .reports-export-field,
html[data-theme="olive"] .reports-export-section__toggle,
body[data-theme="olive"] .reports-export-section__toggle,
html[data-theme="terracotta"] .reports-page__period,
body[data-theme="terracotta"] .reports-page__period,
html[data-theme="terracotta"] .reports-export-toolbar__toggle,
body[data-theme="terracotta"] .reports-export-toolbar__toggle,
html[data-theme="terracotta"] .reports-export-field,
body[data-theme="terracotta"] .reports-export-field,
html[data-theme="terracotta"] .reports-export-section__toggle,
body[data-theme="terracotta"] .reports-export-section__toggle {
    background: color-mix(in srgb, var(--crm-accent-soft) 78%, white 22%);
    color: var(--crm-accent-strong);
    border-color: color-mix(in srgb, var(--crm-accent) 18%, transparent);
}

html[data-theme="olive"] .reports-page__filters,
body[data-theme="olive"] .reports-page__filters,
html[data-theme="olive"] .reports-export-toolbar,
body[data-theme="olive"] .reports-export-toolbar,
html[data-theme="olive"] .reports-export-section,
body[data-theme="olive"] .reports-export-section,
html[data-theme="olive"] .reports-privacy-summary,
body[data-theme="olive"] .reports-privacy-summary,
html[data-theme="olive"] .reports-summary-card,
body[data-theme="olive"] .reports-summary-card,
html[data-theme="olive"] .reports-metric,
body[data-theme="olive"] .reports-metric,
html[data-theme="olive"] .reports-card,
body[data-theme="olive"] .reports-card,
html[data-theme="olive"] .reports-summary-card--primary,
body[data-theme="olive"] .reports-summary-card--primary,
html[data-theme="olive"] .reports-summary-card--success,
body[data-theme="olive"] .reports-summary-card--success,
html[data-theme="olive"] .reports-summary-card--warning,
body[data-theme="olive"] .reports-summary-card--warning,
html[data-theme="olive"] .reports-summary-card--info,
body[data-theme="olive"] .reports-summary-card--info,
html[data-theme="terracotta"] .reports-page__filters,
body[data-theme="terracotta"] .reports-page__filters,
html[data-theme="terracotta"] .reports-export-toolbar,
body[data-theme="terracotta"] .reports-export-toolbar,
html[data-theme="terracotta"] .reports-export-section,
body[data-theme="terracotta"] .reports-export-section,
html[data-theme="terracotta"] .reports-privacy-summary,
body[data-theme="terracotta"] .reports-privacy-summary,
html[data-theme="terracotta"] .reports-summary-card,
body[data-theme="terracotta"] .reports-summary-card,
html[data-theme="terracotta"] .reports-metric,
body[data-theme="terracotta"] .reports-metric,
html[data-theme="terracotta"] .reports-card,
body[data-theme="terracotta"] .reports-card,
html[data-theme="terracotta"] .reports-summary-card--primary,
body[data-theme="terracotta"] .reports-summary-card--primary,
html[data-theme="terracotta"] .reports-summary-card--success,
body[data-theme="terracotta"] .reports-summary-card--success,
html[data-theme="terracotta"] .reports-summary-card--warning,
body[data-theme="terracotta"] .reports-summary-card--warning,
html[data-theme="terracotta"] .reports-summary-card--info,
body[data-theme="terracotta"] .reports-summary-card--info {
    background: var(--crm-surface-elevated);
    color: var(--crm-text);
    border-color: var(--crm-border);
    box-shadow: var(--crm-shadow-soft);
}

html[data-theme="olive"] .reports-page__filters .form-control,
body[data-theme="olive"] .reports-page__filters .form-control,
html[data-theme="olive"] .reports-export-toolbar__field .form-select,
body[data-theme="olive"] .reports-export-toolbar__field .form-select,
html[data-theme="terracotta"] .reports-page__filters .form-control,
body[data-theme="terracotta"] .reports-page__filters .form-control,
html[data-theme="terracotta"] .reports-export-toolbar__field .form-select,
body[data-theme="terracotta"] .reports-export-toolbar__field .form-select {
    background: var(--crm-surface);
    color: var(--crm-text);
    border-color: var(--crm-input-border);
}

.content-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    min-height: 40px;
    margin-bottom: 16px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--crm-accent) 20%, transparent);
    background: var(--crm-surface-elevated);
    color: var(--crm-accent-strong);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--crm-accent) 14%, transparent);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.back-button--inline {
    margin-right: 1rem;
    align-self: center;
}

.app-navigation-inline-host {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.back-button--forward {
    margin-right: 0;
}

.crm-page-title-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.crm-page-title-row .crm-page-title,
.crm-page-title-row .crm-page-title-secondary {
    margin-bottom: 0;
}

.status-select-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.detail-page__toolbar,
.edit-page__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.detail-page__toolbar--align-end {
    justify-content: flex-end;
}

.detail-page__status-column {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 240px;
    max-width: 360px;
}

.detail-page__status-label {
    margin-bottom: 0;
    color: var(--crm-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-page__actions,
.edit-page__actions {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.detail-page__actions .btn,
.edit-page__actions .btn {
    min-height: 48px;
    white-space: nowrap;
}

.detail-page__summary-card {
    border-radius: 22px;
    background: var(--crm-surface-elevated, rgba(255, 255, 255, 0.96));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.18));
    box-shadow: var(--crm-shadow-soft, 0 16px 40px rgba(15, 23, 42, 0.08));
}

.detail-entity-shell__header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 88px;
    margin-bottom: 1.8rem;
}

.detail-entity-shell__header .app-navigation-inline-host,
.inventory-detail-shell__header .app-navigation-inline-host {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.detail-entity-shell__title-group {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 360px);
    min-width: 0;
    text-align: center;
}

.detail-entity-shell__header .crm-page-title,
.inventory-detail-shell__header .crm-page-title {
    text-align: center;
    justify-self: center;
    white-space: nowrap;
}

.detail-entity-shell__code,
.inventory-detail-shell__code {
    flex: 0 0 auto;
    margin-left: auto;
    position: relative;
    z-index: 2;
}

.detail-entity-shell__subtitle {
    margin-top: 0.7rem;
    color: var(--crm-muted);
    max-width: 760px;
    line-height: 1.68;
}

.detail-entity-shell__code {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: var(--crm-surface-frost, rgba(15, 23, 42, 0.05));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.16));
    min-width: 170px;
}

.detail-entity-shell__code-label {
    color: var(--crm-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.77rem;
    font-weight: 700;
}

.detail-entity-shell__code-value {
    font-size: 1.55rem;
    line-height: 1;
    color: var(--crm-text);
}

.detail-page__status-column--static {
    min-width: 220px;
}

.detail-page__status-static {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
}

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

.detail-page__metric {
    padding: 1.15rem 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.18));
    background: var(--crm-surface-frost, rgba(255, 255, 255, 0.72));
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 118px;
    justify-content: space-between;
}

.detail-page__metric--accent {
    background:
        radial-gradient(circle at top right, var(--crm-accent-soft, rgba(59, 130, 246, 0.14)), transparent 45%),
        var(--crm-surface-elevated, rgba(255, 255, 255, 0.82));
    border-color: color-mix(in srgb, var(--crm-accent, #3b82f6) 28%, var(--crm-border, rgba(148, 163, 184, 0.18)));
}

.detail-page__metric-label {
    color: var(--crm-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
    font-weight: 700;
}

.detail-page__metric-value {
    font-size: 1.25rem;
    line-height: 1.25;
    color: var(--crm-text);
}

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

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

.detail-page__panel {
    border-radius: 24px;
    background: var(--crm-surface-elevated, rgba(255, 255, 255, 0.96));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.18));
    box-shadow: var(--crm-shadow-soft, 0 16px 40px rgba(15, 23, 42, 0.08));
}

.detail-page__panel--wide {
    grid-column: 1 / -1;
}

.detail-page__panel-heading {
    margin-bottom: 1.7rem;
}

.detail-page__panel-title {
    font-size: 1.15rem;
    color: var(--crm-text);
}

.detail-page__panel-subtitle {
    color: var(--crm-muted);
    line-height: 1.55;
}

.detail-entity-shell .detail-page__panel-subtitle,
.inventory-detail-shell .detail-page__panel-subtitle {
    display: none;
}

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

.detail-page__keyvals--two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-page__keyval {
    padding: 1.2rem 1.25rem;
    border-radius: 18px;
    background: var(--crm-surface-frost, rgba(15, 23, 42, 0.045));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.14));
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}

.detail-page__keyval--wide,
.detail-page__keyval--notes,
.detail-page__keyval--password {
    grid-column: 1 / -1;
}

.detail-page__key {
    color: var(--crm-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.77rem;
    font-weight: 700;
    margin: 0;
}

.detail-page__value {
    color: var(--crm-text);
    line-height: 1.6;
    font-weight: 600;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.detail-page__value--notes {
    white-space: pre-wrap;
    font-weight: 500;
}

.detail-page__relation-field {
    width: 100%;
}

.detail-page__relation {
    display: flex;
    flex-direction: row;
    gap: 0.9rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
}

.detail-page__relation-text {
    display: block;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.detail-page__relation-text--clickable {
    cursor: pointer;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.detail-page__relation-text--clickable:hover {
    color: var(--accent-color, #2f74ff);
}

.detail-page__relation-action {
    align-self: center;
    min-width: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 0.95rem;
    line-height: 1;
    border-radius: 0.95rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--crm-accent-strong, #2f74ff);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-size: 0;
}

.detail-page__relation-action:hover,
.detail-page__relation-action:focus {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
    border-color: rgba(37, 99, 235, 0.92);
}

.detail-page__relation-action::before {
    content: "\2197";
    font-size: 1rem;
    line-height: 1;
    color: currentColor;
}

.detail-page__relation-action i {
    pointer-events: none;
    display: none;
}

.entity-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.entity-link-inline:hover,
.entity-link-inline:focus {
    color: var(--crm-accent-strong);
}

.entity-link-inline__icon,
.search-page__action .detail-page__relation-action,
.account-notification-item__action {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--crm-border);
    background: transparent;
    color: var(--crm-muted);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.entity-link-inline:hover .entity-link-inline__icon,
.entity-link-inline:focus .entity-link-inline__icon,
.search-page__action .detail-page__relation-action:hover,
.search-page__action .detail-page__relation-action:focus,
.account-notification-item:hover .account-notification-item__action,
.account-notification-item:focus .account-notification-item__action {
    color: var(--crm-accent-strong);
    border-color: rgba(37, 99, 235, 0.26);
    background: rgba(37, 99, 235, 0.08);
}

.reports-table__row-link {
    cursor: pointer;
}

.reports-table__entity-cell {
    min-width: 0;
}

.settings-inline-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    align-items: center;
}

.settings-list-card {
    border-radius: 24px;
    border: 1px solid var(--crm-border);
    background: var(--crm-surface);
    box-shadow: var(--crm-shadow-soft);
}

.settings-list-editor {
    display: grid;
    gap: 0.95rem;
}

.settings-list-editor__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem;
    border-radius: 20px;
    border: 1px solid var(--crm-border);
    background: var(--crm-surface-frost);
}

.settings-list-editor__form--triple {
    grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.1fr) auto;
}

.settings-list-editor__field,
.settings-list-editor__select {
    min-width: 0;
    width: 100%;
    min-height: 46px;
}

.settings-list-editor__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem;
    border-radius: 20px;
    border: 1px solid var(--crm-border);
    background: var(--crm-surface-frost);
}

.settings-list-editor__actions--single {
    grid-template-columns: minmax(0, 1fr) auto;
}

.settings-list-editor__button {
    min-height: 46px;
    white-space: nowrap;
}

.settings-list-editor__stack {
    display: grid;
    gap: 0.75rem;
}

.settings-list-editor__setting {
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--crm-border);
    background: var(--crm-surface-frost);
}

.settings-list-editor__setting .form-label {
    margin-bottom: 0;
    color: var(--crm-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.settings-inline-actions .form-select,
.settings-inline-actions .form-control {
    min-width: 0;
    width: 100%;
}

.settings-inline-actions > .btn {
    white-space: nowrap;
}

.settings-form__action-col .btn {
    min-height: 46px;
    white-space: nowrap;
}

#editStoreButton,
#deleteStoreButton {
    min-height: 46px;
    white-space: nowrap;
}

.settings-list-card .row.g-2 {
    row-gap: 0.75rem !important;
}

.settings-list-card .row.g-2 > [class*="col-"] > .form-control,
.settings-list-card .row.g-2 > [class*="col-"] > .form-select,
.settings-list-card .row.g-2 > [class*="col-"] > textarea.form-control {
    min-height: 46px;
}

.settings-list-card .row.g-2 > [class*="col-"] > textarea.form-control {
    min-height: 86px;
}

@media (max-width: 767.98px) {
    .settings-inline-actions {
        grid-template-columns: 1fr;
    }

    .settings-list-editor__form,
    .settings-list-editor__form--triple,
    .settings-list-editor__actions,
    .settings-list-editor__actions--single {
        grid-template-columns: 1fr;
    }

    .settings-inline-actions > .btn {
        width: 100%;
    }

    .settings-form__action-col .btn {
        width: 100%;
    }

    .settings-list-editor__button,
    #editStoreButton,
    #deleteStoreButton {
        width: 100%;
    }
}

.detail-page__password-group {
    max-width: 460px;
}

.detail-page__list-card {
    border-radius: 24px;
    background: var(--crm-surface-elevated, rgba(255, 255, 255, 0.96));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.18));
    box-shadow: var(--crm-shadow-soft, 0 16px 40px rgba(15, 23, 42, 0.08));
}

.detail-page__list-card .crm-table-shell {
    padding: 0.3rem;
    border-radius: 20px;
    background: color-mix(in srgb, var(--crm-surface-frost, rgba(255, 255, 255, 0.74)) 92%, transparent);
    border: 1px solid var(--crm-border);
    box-shadow: none;
}

.detail-page__list-card .table-container {
    border-radius: 18px;
}

.detail-page__list-card .crm-table-shell .table {
    border-radius: 16px;
}

.detail-page__list-card .crm-table-shell .table th {
    background: transparent !important;
}

.detail-page__list-card .crm-table-shell .table td {
    background: transparent !important;
}

.detail-page__list-card .crm-table-shell .table.table-striped > tbody > tr:nth-of-type(odd) > * {
    background: transparent !important;
}

.detail-page__list-card .crm-table-shell .table.table-striped > tbody > tr:nth-of-type(even) > * {
    background: color-mix(in srgb, var(--crm-surface) 28%, transparent) !important;
}

.detail-page__list-card .crm-table-shell .table tbody tr:hover > * {
    background: color-mix(in srgb, var(--crm-row-hover) 82%, transparent) !important;
}

.detail-page__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.15rem;
}

.detail-page__list li {
    padding: 1.15rem 1.2rem;
    border-radius: 18px;
    background: var(--crm-surface-frost, rgba(15, 23, 42, 0.045));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.14));
    line-height: 1.55;
}

.detail-page__service-cost-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.detail-page__service-cost-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--crm-muted);
}

.detail-page__service-cost-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--crm-text);
}

.detail-page__linked-list,
.ticket-linked-devices-editor__list {
    display: grid;
    gap: 0.9rem;
}

.detail-page__linked-empty,
.ticket-linked-devices-editor__empty {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: var(--crm-surface-frost, rgba(15, 23, 42, 0.045));
    border: 1px dashed color-mix(in srgb, var(--crm-border, rgba(148, 163, 184, 0.2)) 92%, transparent);
    color: var(--crm-muted);
}

.detail-page__linked-item,
.ticket-linked-devices-editor__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: var(--crm-surface-frost, rgba(15, 23, 42, 0.045));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.14));
}

.detail-page__linked-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.detail-page__linked-main:hover .detail-page__linked-title {
    color: var(--accent-color, #2f74ff);
}

.detail-page__linked-title,
.ticket-linked-devices-editor__name {
    color: var(--crm-text);
    font-weight: 700;
    line-height: 1.45;
}

.detail-page__linked-meta,
.ticket-linked-devices-editor__meta {
    color: var(--crm-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.ticket-linked-devices-editor {
    display: grid;
    gap: 0.85rem;
}

.ticket-linked-devices-editor__title {
    color: var(--crm-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.77rem;
    font-weight: 700;
}

.ticket-linked-devices-editor__content {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 0.35rem;
}

.ticket-linked-devices-editor__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.ticket-device-picker-actions {
    display: flex;
    justify-content: flex-end;
}

.ticket-entity-search-results {
    margin-top: -0.35rem;
    margin-bottom: 0.85rem;
    padding: 0.4rem;
    border-radius: 18px;
    background: var(--crm-surface-elevated, rgba(255, 255, 255, 0.96));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.18));
    box-shadow: var(--crm-shadow-soft, 0 14px 34px rgba(15, 23, 42, 0.08));
}

.ticket-entity-search-results:empty {
    display: none;
}

.ticket-entity-search-result {
    width: 100%;
    display: grid;
    gap: 0.2rem;
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    text-align: left;
    background: transparent;
    border: 0;
    color: inherit;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.ticket-entity-search-result:hover,
.ticket-entity-search-result:focus-visible {
    background: var(--crm-surface-frost, rgba(15, 23, 42, 0.045));
    transform: translateY(-1px);
    outline: none;
}

.ticket-entity-search-result strong {
    color: var(--crm-heading);
    font-size: 0.95rem;
    line-height: 1.4;
}

.ticket-entity-search-result span {
    color: var(--crm-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.ticket-selected-entity {
    display: grid;
    gap: 0.75rem;
}

.ticket-selected-entity__card,
.ticket-selected-entity__empty {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: var(--crm-surface-frost, rgba(15, 23, 42, 0.045));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.14));
}

.ticket-selected-entity__card {
    display: grid;
    gap: 0.28rem;
}

.ticket-selected-entity__label {
    color: var(--crm-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.74rem;
    font-weight: 700;
}

.ticket-selected-entity__title {
    color: var(--crm-heading);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
}

.ticket-selected-entity__meta {
    color: var(--crm-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.ticket-selected-entity__empty {
    color: var(--crm-muted);
}

#addSelectedTicketDeviceButton,
#editSelectedTicketDeviceButton {
    display: none !important;
}

[data-theme="dark"] .detail-entity-shell__subtitle,
[data-theme="dark"] .detail-entity-shell__code-label,
[data-theme="dark"] .detail-page__panel-subtitle,
[data-theme="dark"] .detail-page__metric-label,
[data-theme="dark"] .detail-page__key,
[data-theme="slate"] .detail-entity-shell__subtitle,
[data-theme="slate"] .detail-entity-shell__code-label,
[data-theme="slate"] .detail-page__panel-subtitle,
[data-theme="slate"] .detail-page__metric-label,
[data-theme="slate"] .detail-page__key,
[data-theme="dusk"] .detail-entity-shell__subtitle,
[data-theme="dusk"] .detail-entity-shell__code-label,
[data-theme="dusk"] .detail-page__panel-subtitle,
[data-theme="dusk"] .detail-page__metric-label,
[data-theme="dusk"] .detail-page__key,
[data-theme="midnight"] .detail-entity-shell__subtitle,
[data-theme="midnight"] .detail-entity-shell__code-label,
[data-theme="midnight"] .detail-page__panel-subtitle,
[data-theme="midnight"] .detail-page__metric-label,
[data-theme="midnight"] .detail-page__key {
    color: rgba(226, 232, 240, 0.72);
}

[data-theme="dark"] .detail-page__metric--accent,
[data-theme="slate"] .detail-page__metric--accent,
[data-theme="dusk"] .detail-page__metric--accent,
[data-theme="midnight"] .detail-page__metric--accent {
    background:
        radial-gradient(circle at top right, var(--crm-accent-soft, rgba(59, 130, 246, 0.18)), transparent 45%),
        var(--crm-surface-elevated, rgba(15, 23, 42, 0.86));
}

[data-theme="dark"] .detail-entity-shell__code-value,
[data-theme="dark"] .detail-page__metric-value,
[data-theme="dark"] .detail-page__panel-title,
[data-theme="dark"] .detail-page__value,
[data-theme="slate"] .detail-entity-shell__code-value,
[data-theme="slate"] .detail-page__metric-value,
[data-theme="slate"] .detail-page__panel-title,
[data-theme="slate"] .detail-page__value,
[data-theme="dusk"] .detail-entity-shell__code-value,
[data-theme="dusk"] .detail-page__metric-value,
[data-theme="dusk"] .detail-page__panel-title,
[data-theme="dusk"] .detail-page__value,
[data-theme="midnight"] .detail-entity-shell__code-value,
[data-theme="midnight"] .detail-page__metric-value,
[data-theme="midnight"] .detail-page__panel-title,
[data-theme="midnight"] .detail-page__value {
    color: #f8fafc;
}

.ticket-device-inline {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.ticket-device-inline__meta {
    color: var(--crm-muted);
    font-size: 0.92rem;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row td,
.clickable-row th {
    user-select: text;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 767.98px) {
    .detail-page__status-column {
        min-width: 100%;
        max-width: none;
    }

    .detail-page__actions,
    .edit-page__actions {
        width: 100%;
        justify-content: stretch;
    }

    .detail-page__actions .btn,
    .edit-page__actions .btn {
        flex: 1 1 220px;
    }

    .detail-page__metrics,
    .detail-page__keyvals,
    .detail-page__keyvals--two-column {
        grid-template-columns: 1fr;
    }

    .detail-entity-shell__header {
        display: grid;
        grid-template-columns: 1fr;
        align-items: flex-start;
        min-height: 0;
    }

    .detail-entity-shell__title-group {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        order: 2;
    }

    .detail-entity-shell__code {
        width: 100%;
        align-items: flex-start;
        justify-self: stretch;
        margin-left: 0;
        order: 3;
    }

    .detail-entity-shell__header .app-navigation-inline-host,
    .inventory-detail-shell__header .app-navigation-inline-host {
        justify-self: start;
        margin-bottom: 0.75rem;
        order: 1;
    }

    .detail-entity-shell__header .crm-page-title,
    .inventory-detail-shell__header .crm-page-title {
        white-space: normal;
    }
}

.back-button:hover,
.back-button:focus {
    color: var(--crm-heading);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--crm-accent) 18%, transparent);
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--crm-surface) 86%, white 14%) 0%,
        color-mix(in srgb, var(--crm-accent-soft) 44%, var(--crm-surface) 56%) 100%
    );
}

.back-button:active {
    transform: translateY(0);
}

.loading-status-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(16px);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    max-width: min(92vw, 520px);
    padding: 10px 16px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--crm-surface-elevated, #ffffff) 94%, transparent);
    color: var(--crm-text, #0f172a);
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.24));
    box-shadow: var(--crm-shadow-soft, 0 10px 24px rgba(0, 0, 0, 0.2));
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10000;
}

.loading-status-bar.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.loading-status-bar__spinner {
    width: 14px;
    height: 14px;
    border: 2px solid color-mix(in srgb, var(--crm-accent, #2563eb) 22%, transparent);
    border-top-color: var(--crm-accent, #2563eb);
    border-radius: 50%;
    animation: effectivecrm-spin 0.75s linear infinite;
}

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

.search-results-footer {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: #0d6efd;
    font-weight: 600;
    text-align: left;
}

.search-results-footer:hover {
    background-color: rgba(13, 110, 253, 0.08);
}

.inventory-filters-toolbar__filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-notification-item__title-stack {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.account-notification-item__category {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(58, 127, 246, 0.12);
    color: #3a7ff6;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#searchResults,
#sidebarSearchResults {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(var(--search-dropdown-width, 100%), var(--search-dropdown-max-width, calc(100vw - 1.5rem)));
    max-width: min(var(--search-dropdown-max-width, calc(100vw - 1.5rem)), calc(100vw - 1.5rem));
    min-width: min(320px, calc(100vw - 1.5rem));
    padding: 0.5rem;
    border: 1px solid var(--crm-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
    z-index: 9999;
    max-height: min(70vh, var(--search-dropdown-max-height, 560px));
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    color: var(--crm-text);
}

#sidebarSearchResults {
    width: 100%;
    min-width: min(320px, calc(100vw - 1.5rem));
    max-width: 100%;
}

#sidebarSearchResults .result-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.8rem 0.85rem;
}

#sidebarSearchResults .result-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 0.92rem;
}

#sidebarSearchResults .result-item-arrow {
    display: none;
}

#sidebarSearchResults .result-item h6 {
    -webkit-line-clamp: 3;
}

#sidebarSearchResults .result-item small {
    -webkit-line-clamp: 4;
}

#searchResults .result-item,
#sidebarSearchResults .result-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.9rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 18px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

#searchResults .result-item + .result-item,
#sidebarSearchResults .result-item + .result-item {
    margin-top: 0.35rem;
}

#searchResults .result-item:hover,
#searchResults .result-item:focus,
#sidebarSearchResults .result-item:hover,
#sidebarSearchResults .result-item:focus {
    background: rgba(58, 127, 246, 0.08);
    border-color: rgba(58, 127, 246, 0.2);
    transform: translateY(-1px);
}

.result-item-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--crm-accent) 16%, transparent),
        color-mix(in srgb, var(--crm-accent-soft) 72%, white 28%)
    );
    color: var(--crm-accent-strong);
    font-size: 1rem;
}

.result-item-content {
    min-width: 0;
}

.result-item-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 0.3rem;
}

.result-item-type {
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--crm-accent-soft) 86%, white 14%);
    color: var(--crm-accent-strong);
    font-size: 0.72rem;
    font-weight: 700;
}

.result-item-id {
    color: var(--crm-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

#searchResults .result-item h6,
#sidebarSearchResults .result-item h6 {
    margin: 0;
    color: var(--crm-heading);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#searchResults .result-item small,
#sidebarSearchResults .result-item small {
    display: block;
    margin-top: 0.18rem;
    color: var(--crm-muted);
    font-size: 0.8rem;
    line-height: 1.4;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.result-item-arrow {
    color: var(--crm-muted);
    font-size: 0.82rem;
    justify-self: end;
}

.search-results-group + .search-results-group {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--crm-border);
}

.search-results-group__title {
    padding: 0.2rem 0.5rem 0.5rem;
    color: var(--crm-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.search-results-footer {
    margin-top: 0.5rem;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(58, 127, 246, 0.08);
    color: #2563eb;
    text-align: center;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.search-results-footer:hover,
.search-results-footer:focus {
    background: rgba(58, 127, 246, 0.14);
    transform: translateY(-1px);
}

[data-theme="dark"] .account-notification-item__category {
    background: rgba(96, 165, 250, 0.16);
    color: #93c5fd;
}

[data-theme="dark"] .search-results-footer {
    background: rgba(59, 130, 246, 0.14);
    color: #bfdbfe;
}

@media (max-width: 1199.98px) {
    .inventory-filters-toolbar__filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    #searchResults,
    #sidebarSearchResults {
        width: 100%;
        min-width: 0;
    }

    .inventory-filters-toolbar__filters {
        grid-template-columns: 1fr;
    }
}

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

.search-page__summary {
    margin: 6px 0 0;
    color: #6c757d;
}

.search-page__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.search-page__stat {
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef3f8;
    color: #2b3e50;
    font-size: 14px;
    font-weight: 600;
}

.search-page__list {
    display: grid;
    gap: 14px;
}

.search-page__empty {
    padding: 28px 20px;
    border-radius: 14px;
    background: #ffffff;
    color: #6c757d;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.search-page__card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 18px 20px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.search-page__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #eef3f8;
    color: #2b3e50;
    flex-shrink: 0;
}

.search-page__body {
    flex: 1;
    min-width: 0;
}

.search-page__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.search-page__type {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0d6efd;
}

.search-page__id {
    color: #6c757d;
    font-size: 13px;
}

.search-page__title {
    margin: 0;
    font-size: 19px;
    color: #1f2d3d;
    line-height: 1.3;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.search-page__subtitle {
    margin: 6px 0 0;
    color: #6c757d;
    line-height: 1.55;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.search-page__action {
    align-self: start;
    flex-shrink: 0;
    padding-top: 6px;
}

@media (max-width: 767.98px) {
    .reports-page__header,
    .reports-page__filters {
        padding: 1rem;
    }

    .reports-page__header {
        gap: 1.1rem;
        border-radius: 18px;
    }

    .reports-page__period {
        width: 100%;
        justify-content: center;
    }

    .reports-page__filters > div {
        min-width: 0;
        width: 100%;
    }

    .reports-export-toolbar {
        grid-template-columns: 1fr;
    }

    .reports-export-toolbar__actions {
        justify-content: stretch;
    }

    .reports-page__actions,
    .reports-page__actions .btn {
        width: 100%;
    }

    .reports-page__actions {
        flex-direction: column;
    }

    .reports-page__actions .btn {
        min-height: 44px;
    }

    .reports-privacy-controls__actions,
    .reports-privacy-controls__actions .btn {
        width: 100%;
    }

    .reports-privacy-controls__actions {
        flex-direction: column;
    }

    .reports-export-presets,
    .reports-export-section {
        padding: 0.9rem;
    }

    .reports-card .card-body {
        padding: 1rem;
    }

    .reports-table {
        min-width: 620px;
    }

    .ticket-widget-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-button {
        width: 100%;
        justify-content: center;
    }
}

html[data-theme="dark"] .search-page__summary,
body[data-theme="dark"] .search-page__summary,
html[data-theme="slate"] .search-page__summary,
body[data-theme="slate"] .search-page__summary,
html[data-theme="dusk"] .search-page__summary,
body[data-theme="dusk"] .search-page__summary,
html[data-theme="midnight"] .search-page__summary,
body[data-theme="midnight"] .search-page__summary,
html[data-theme="olive"] .search-page__summary,
body[data-theme="olive"] .search-page__summary,
html[data-theme="terracotta"] .search-page__summary,
body[data-theme="terracotta"] .search-page__summary,
html[data-theme="dark"] .search-page__id,
body[data-theme="dark"] .search-page__id,
html[data-theme="slate"] .search-page__id,
body[data-theme="slate"] .search-page__id,
html[data-theme="dusk"] .search-page__id,
body[data-theme="dusk"] .search-page__id,
html[data-theme="midnight"] .search-page__id,
body[data-theme="midnight"] .search-page__id,
html[data-theme="olive"] .search-page__id,
body[data-theme="olive"] .search-page__id,
html[data-theme="terracotta"] .search-page__id,
body[data-theme="terracotta"] .search-page__id,
html[data-theme="dark"] .search-page__subtitle,
body[data-theme="dark"] .search-page__subtitle,
html[data-theme="slate"] .search-page__subtitle,
body[data-theme="slate"] .search-page__subtitle,
html[data-theme="dusk"] .search-page__subtitle,
body[data-theme="dusk"] .search-page__subtitle,
html[data-theme="midnight"] .search-page__subtitle,
body[data-theme="midnight"] .search-page__subtitle,
html[data-theme="olive"] .search-page__subtitle,
body[data-theme="olive"] .search-page__subtitle,
html[data-theme="terracotta"] .search-page__subtitle,
body[data-theme="terracotta"] .search-page__subtitle {
    color: #b8bcc2;
}

html[data-theme="dark"] .search-page__stat,
body[data-theme="dark"] .search-page__stat,
html[data-theme="slate"] .search-page__stat,
body[data-theme="slate"] .search-page__stat,
html[data-theme="dusk"] .search-page__stat,
body[data-theme="dusk"] .search-page__stat,
html[data-theme="midnight"] .search-page__stat,
body[data-theme="midnight"] .search-page__stat,
html[data-theme="olive"] .search-page__stat,
body[data-theme="olive"] .search-page__stat,
html[data-theme="terracotta"] .search-page__stat,
body[data-theme="terracotta"] .search-page__stat {
    background: #2f3944;
    color: #e6edf3;
}

html[data-theme="dark"] .search-page__empty,
body[data-theme="dark"] .search-page__empty,
html[data-theme="slate"] .search-page__empty,
body[data-theme="slate"] .search-page__empty,
html[data-theme="dusk"] .search-page__empty,
body[data-theme="dusk"] .search-page__empty,
html[data-theme="midnight"] .search-page__empty,
body[data-theme="midnight"] .search-page__empty,
html[data-theme="olive"] .search-page__empty,
body[data-theme="olive"] .search-page__empty,
html[data-theme="terracotta"] .search-page__empty,
body[data-theme="terracotta"] .search-page__empty,
html[data-theme="dark"] .search-page__card,
body[data-theme="dark"] .search-page__card,
html[data-theme="slate"] .search-page__card,
body[data-theme="slate"] .search-page__card,
html[data-theme="dusk"] .search-page__card,
body[data-theme="dusk"] .search-page__card,
html[data-theme="midnight"] .search-page__card,
body[data-theme="midnight"] .search-page__card,
html[data-theme="olive"] .search-page__card,
body[data-theme="olive"] .search-page__card,
html[data-theme="terracotta"] .search-page__card,
body[data-theme="terracotta"] .search-page__card {
    background: #232323;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .search-page__icon,
body[data-theme="dark"] .search-page__icon,
html[data-theme="slate"] .search-page__icon,
body[data-theme="slate"] .search-page__icon,
html[data-theme="dusk"] .search-page__icon,
body[data-theme="dusk"] .search-page__icon,
html[data-theme="midnight"] .search-page__icon,
body[data-theme="midnight"] .search-page__icon,
html[data-theme="olive"] .search-page__icon,
body[data-theme="olive"] .search-page__icon,
html[data-theme="terracotta"] .search-page__icon,
body[data-theme="terracotta"] .search-page__icon {
    background: #2f3944;
    color: #f1f3f5;
}

html[data-theme="dark"] .search-page__title,
body[data-theme="dark"] .search-page__title,
html[data-theme="slate"] .search-page__title,
body[data-theme="slate"] .search-page__title,
html[data-theme="dusk"] .search-page__title,
body[data-theme="dusk"] .search-page__title,
html[data-theme="midnight"] .search-page__title,
body[data-theme="midnight"] .search-page__title,
html[data-theme="olive"] .search-page__title,
body[data-theme="olive"] .search-page__title,
html[data-theme="terracotta"] .search-page__title,
body[data-theme="terracotta"] .search-page__title {
    color: #f1f3f5;
}

html[data-theme="olive"] .search-page__summary,
body[data-theme="olive"] .search-page__summary,
html[data-theme="terracotta"] .search-page__summary,
body[data-theme="terracotta"] .search-page__summary,
html[data-theme="olive"] .search-page__empty,
body[data-theme="olive"] .search-page__empty,
html[data-theme="terracotta"] .search-page__empty,
body[data-theme="terracotta"] .search-page__empty,
html[data-theme="olive"] .search-page__card,
body[data-theme="olive"] .search-page__card,
html[data-theme="terracotta"] .search-page__card,
body[data-theme="terracotta"] .search-page__card {
    background: var(--crm-surface-elevated);
    color: var(--crm-text);
    border-color: var(--crm-border);
    box-shadow: var(--crm-shadow-soft);
}

html[data-theme="olive"] .search-page__id,
body[data-theme="olive"] .search-page__id,
html[data-theme="olive"] .search-page__subtitle,
body[data-theme="olive"] .search-page__subtitle,
html[data-theme="terracotta"] .search-page__id,
body[data-theme="terracotta"] .search-page__id,
html[data-theme="terracotta"] .search-page__subtitle,
body[data-theme="terracotta"] .search-page__subtitle {
    color: var(--crm-muted);
}

html[data-theme="olive"] .search-page__stat,
body[data-theme="olive"] .search-page__stat,
html[data-theme="terracotta"] .search-page__stat,
body[data-theme="terracotta"] .search-page__stat {
    background: color-mix(in srgb, var(--crm-accent-soft) 78%, white 22%);
    color: var(--crm-accent-strong);
}

html[data-theme="olive"] .search-page__icon,
body[data-theme="olive"] .search-page__icon,
html[data-theme="terracotta"] .search-page__icon,
body[data-theme="terracotta"] .search-page__icon {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--crm-accent-soft) 82%, white 18%),
        color-mix(in srgb, var(--crm-accent) 18%, white 82%)
    );
    color: var(--crm-accent-strong);
}

html[data-theme="olive"] .search-page__title,
body[data-theme="olive"] .search-page__title,
html[data-theme="terracotta"] .search-page__title,
body[data-theme="terracotta"] .search-page__title {
    color: var(--crm-heading);
}

[data-theme="dark"] .btn-outline-primary {
    color: #c5c6c7;
    border-color: #555555;
}
[data-theme="dark"] .btn-outline-primary:hover, [data-theme="dark"] .btn-outline-primary:focus {
    background-color: #555555;
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .search-page__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
        margin-bottom: 0.85rem;
    }

    .search-page__summary {
        margin-top: 0;
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .search-page__stats {
        gap: 0.5rem;
        margin-bottom: 0.95rem;
    }

    .search-page__stat {
        padding: 0.45rem 0.8rem;
        font-size: 0.83rem;
    }

    .search-page__card {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 0.8rem;
        padding: 15px;
        border-radius: 18px;
    }

    .search-page__icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 0.9rem;
    }

    .search-page__meta {
        gap: 0.35rem 0.5rem;
        margin-bottom: 0.45rem;
    }

    .search-page__type {
        font-size: 0.68rem;
    }

    .search-page__id {
        font-size: 0.76rem;
    }

    .search-page__action {
        grid-column: 2;
        justify-self: end;
        padding-top: 0;
    }

    .search-page__title {
        font-size: 1.02rem;
        line-height: 1.35;
    }

    .search-page__subtitle {
        margin-top: 0.45rem;
        font-size: 0.88rem;
        line-height: 1.5;
        -webkit-line-clamp: 3;
    }
}

/* Dark Theme Table Styling */
[data-theme="dark"] .table {
    background-color: #2a2a2a;
    color: #c5c6c7;
    border: 1px solid #444444;
}
[data-theme="dark"] .table th {
    background-color: #3a3a3a;
    color: #c5c6c7;
}
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #333333;
}
[data-theme="dark"] .table tbody tr:hover {
    background-color: #444444;
    transition: background-color 0.2s ease;
}

/* Light Mode */
.customer-device-container {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.customer-device-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.customer-device-container .form-control,
.customer-device-container .form-select {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #cccccc;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.customer-device-container .form-control::placeholder {
    color: #888888;
}

.customer-device-container .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

.customer-device-container .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}
/* Dark Mode */
[data-theme="dark"] .customer-device-container {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #444444;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .customer-device-header {
    color: #e0e0e0;
}

[data-theme="dark"] .customer-device-container .form-control,
[data-theme="dark"] .customer-device-container .form-select {
    background-color: #333333;
    color: #e0e0e0;
    border: 1px solid #555555;
}

[data-theme="dark"] .customer-device-container .form-control::placeholder {
    color: #888888;
}

[data-theme="dark"] .customer-device-container .btn-secondary {
    background-color: #444444;
    border-color: #555555;
    color: #ffffff;
}

[data-theme="dark"] .customer-device-container .btn-secondary:hover {
    background-color: #555555;
    border-color: #666666;
}

.nav-tabs {
    border-bottom: 1px solid var(--crm-border);
}

.nav-tabs .nav-link {
    background-color: var(--crm-surface-frost);
    color: var(--crm-muted);
    border: 1px solid var(--crm-border);
    border-bottom: none;
    margin-right: 5px;
    padding: 10px 15px;
    border-radius: 4px 4px 0 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background-color: color-mix(in srgb, var(--crm-surface-frost) 82%, white 18%);
    color: var(--crm-heading);
    transform: scale(1.05); /* Slight zoom effect for better focus */
    border-color: var(--crm-border); /* Highlight border on hover */
}

.nav-tabs .nav-link.active {
    background-color: var(--crm-surface-elevated);
    color: var(--crm-heading);
    border: 1px solid var(--crm-border);
    border-bottom: 1px solid var(--crm-surface-elevated); /* Seamless integration with content */
}

/* Default Dark Theme Styles for Tabs */
[data-theme="dark"] .nav-tabs {
    border-bottom: 1px solid #555;
}

[data-theme="dark"] .nav-tabs .nav-link {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
    border-bottom: none;
    margin-right: 5px;
    padding: 10px 15px;
    border-radius: 4px 4px 0 0;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

[data-theme="dark"] .nav-tabs .nav-link:hover {
    background-color: #444;
    color: #fff;
    transform: scale(1.05); /* Slight zoom effect for better focus */
    border-color: #666; /* Highlight border on hover */
}

[data-theme="dark"] .nav-tabs .nav-link.active {
    background-color: #222;
    color: #fff;
    border: 1px solid #555;
    border-bottom: 1px solid #222; /* Seamless integration with content */
}

/* Light Theme */
[data-theme="light"] .card {
    background-color: #fff;
    color: #212529;
    border: 1px solid #ddd;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .list-group-item {
    background-color: #fff;
    color: #212529;
    border: 1px solid #ddd;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}


[data-theme="dark"] .card {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #333;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .list-group-item {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #333;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Recent Activity */
[data-theme="light"] #recentActivity {
    background-color: #f8f9fa;
    color: #212529;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] #recentActivity {
    background-color: #2a2a2a;
    color: #e0e0e0;
    transition: background-color 0.3s ease, color 0.3s ease;
}



.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100%;
    background-color: #2b3e50; /* Light background */
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: #fff; /* Light text */

}

.sidebar .navbar-brand {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffffff;
}

.sidebar .nav-link {
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.sidebar .nav-link.active {
    background-color: #fff;
    color: #000;
    border: 1px solid #ddd;
    border-bottom: 1px solid #fff; /* Seamless integration with content */
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #000;
    transform: scale(1.05); /* Slight zoom effect for better focus */
    border-color: #ccc; /* Highlight border on hover */
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

[data-theme="dark"] .sidebar {
    background-color: #333; /* Dark background */
    color: #fff; /* Light text */
}

[data-theme="dark"] .sidebar .navbar-brand {
    color: #fff;
}

[data-theme="dark"] .sidebar .nav-link {
    color: #fff;
}

[data-theme="dark"] .sidebar .nav-link.active {
    background-color: #222;
    color: #fff;
    border: 1px solid #555;
    border-bottom: 1px solid #222; /* Seamless integration with content */
}

[data-theme="dark"] .sidebar .nav-link:hover {
    background-color: #444;
    color: #fff;
    transform: scale(1.05); /* Slight zoom effect for better focus */
    border-color: #666; /* Highlight border on hover */
}

[data-theme="dark"] .sidebar-footer {
    border-top: 1px solid #555;
}
.layout {
    display: flex;
    height: 100vh; /* Το ύψος γεμίζει όλο το παράθυρο */
}
.content {
    flex: 1; /* Το content καταλαμβάνει όλο τον υπόλοιπο χώρο */
    padding: 20px; /* Εσωτερικό περιθώριο */
    overflow-y: auto; /* Προσθήκη scrolling αν χρειάζεται */
}

.d-none {
    left: -250px;
}

#toggleSidebar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 9999;
    background: var(--crm-nav-bg);
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: filter 0.2s ease, left 0.3s, transform 0.3s;
}

/* Αλλαγή χρώματος στο hover */
#toggleSidebar:hover {
    filter: brightness(1.08);
}


/* Αλλαγή χρώματος στο hover */
[data-theme="dark"] #toggleSidebar:hover {
    background-color: #666;
}


@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        left: -250px;
    }

    .sidebar-active .sidebar {
        left: 0;
    }
}

form[role="search"] {
    position: relative; /* Εξασφαλίζει ότι το searchResults θα τοποθετηθεί κάτω από το input */
    width: 100%; /* Διασφαλίζει ότι το πεδίο και τα αποτελέσματα ευθυγραμμίζονται */
}

/* Styling για το container των αποτελεσμάτων */
#searchResults {
    position: absolute; /* Τοποθέτηση ακριβώς κάτω από το input */
    top: calc(100% + 5px); /* 5px διάστημα από το input */
    left: 0;
    min-width: 250px; /* Ελάχιστο πλάτος μεγαλύτερο από 200px */
    width: 100%; /* Συμπληρώνει το πλάτος του input */
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    max-height: 800px;
    overflow-y: auto;
    display: none; /* Κρυφό μέχρι να υπάρχουν αποτελέσματα */
    padding: 5px; /* Εσωτερικό περιθώριο για καλύτερη εμφάνιση */
    color: black;
}

/* Στυλ για κάθε αποτέλεσμα */
#searchResults .result-item {
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
    color: black;
    cursor: pointer;
    font-size: 0.9rem;
}

#searchResults .result-item:hover {
    background-color: #f8f9fa;
}

#searchResults .result-item:last-child {
    border-bottom: none;
}
#sidebarSearchResults {
    position: absolute; /* Σιγουρευτείτε ότι είναι απόλυτα τοποθετημένο */
    top: calc(100% + 5px); /* Ακριβώς κάτω από το input */
    left: 0;
    width: 100%; /* Συμπληρώνει το πλάτος του input */
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999; /* Εξασφαλίζει ότι εμφανίζεται πάνω από άλλα στοιχεία */
    max-height: 300px; /* Ορισμός μέγιστου ύψους */
    overflow-y: auto;
    display: none; /* Κρυφό μέχρι να υπάρχουν αποτελέσματα */
    padding: 5px;
    color: black;
}
#sidebarSearchResults .result-item {
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
    color: black;
    cursor: pointer;
    font-size: 0.9rem;
}
#sidebarSearchResults .result-item:hover {
    background-color: #f8f9fa;
}

#sidebarSearchResults .result-item:last-child {
    border-bottom: none;
}

[data-theme="dark"] #searchResults {
    background-color: #333; /* Σκούρο φόντο */
    color: #fff; /* Λευκό κείμενο */
    border: 1px solid #555; /* Σκούρο περίγραμμα */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); /* Πιο έντονη σκιά */
}

[data-theme="dark"] #searchResults .result-item {
    background-color: #444; /* Σκούρο φόντο για τα αποτελέσματα */
    color: #fff; /* Λευκό κείμενο */
    border-bottom: 1px solid #555; /* Σκούρο περίγραμμα */
}

[data-theme="dark"] #searchResults .result-item:hover {
    background-color: #555; /* Ελαφρώς πιο φωτεινό χρώμα κατά το hover */
}

.navbar-shell {
    position: relative;
}

#navbarNav {
    gap: 0.9rem;
    align-items: center;
    width: 100%;
}

#menuItems {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: 0;
    margin-left: 0 !important;
    width: 100%;
}

#menuItems .nav-link {
    white-space: nowrap;
}

.navbar-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

.navbar-tools > * {
    min-width: 0;
    max-width: 100%;
}

#topSearchForm {
    flex: 1 1 320px;
    width: min(100%, 360px);
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
}

#topSearchForm #searchInput {
    min-width: 0;
    width: 100%;
    height: 46px;
    border-radius: 16px;
}

#sidebarSearchForm #sidebarSearch {
    min-height: 44px;
    border-radius: 14px;
}

#searchResults,
#sidebarSearchResults {
    top: calc(100% + 8px);
}

#searchResults {
    left: 0;
    right: auto;
    width: min(100%, 760px);
    min-width: 0;
    max-width: min(calc(100vw - 2rem), 760px);
}

#userDropdown,
.account-menu-trigger,
#userName {
    min-width: 0;
}

#userDropdown {
    max-width: min(240px, 28vw);
}

#userName {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .navbar-shell {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 1.5rem;
    }

    .navbar-brand {
        grid-column: 1;
        position: relative;
        z-index: 2;
        margin-right: 0;
        white-space: nowrap;
    }

    #navbarNav {
        grid-column: 2;
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 0;
    }

    #menuItems {
        flex: 0 1 auto;
        justify-content: center;
        padding-inline: 1rem;
        min-width: 0;
        gap: 0.2rem;
    }

    .navbar-tools {
        grid-column: 3;
        flex: 0 0 auto;
        justify-content: flex-end;
        min-width: 0;
        margin-left: 0;
        max-width: min(100%, 560px);
    }

    #topSearchForm {
        flex: 0 0 auto;
        width: clamp(200px, 15vw, 300px);
        min-width: 0;
    }

    #menuItems .nav-link {
        padding-inline: 0.55rem;
        font-size: 0.97rem;
    }
}

@media (max-width: 1699.98px) {
    #menuItems .nav-link {
        padding-inline: 0.45rem;
        font-size: 0.94rem;
    }

    #topSearchForm {
        flex-basis: 240px;
        min-width: 0;
    }
}

@media (max-width: 1399.98px) {
    #menuItems .nav-link {
        padding-inline: 0.36rem;
        font-size: 0.9rem;
    }

    #topSearchForm {
        flex-basis: 220px;
        min-width: 0;
    }
}

@media (max-width: 1199.98px) {
    .navbar-shell {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    #navbarNav {
        width: 100%;
        gap: 0.7rem;
        order: 4;
    }

    #menuItems {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .navbar-tools {
        width: 100%;
        order: 3;
        justify-content: space-between;
        flex-wrap: wrap;
        margin-top: 0.75rem;
        overflow: visible;
    }

    #topSearchForm {
        flex: 1 1 320px;
        min-width: 220px;
    }
}

@media (max-width: 767.98px) {
    .navbar-tools {
        gap: 0.65rem;
    }

    #menuItems {
        width: 100%;
    }

    .navbar-tools {
        flex-wrap: wrap;
    }

    #topSearchForm {
        flex: 1 1 100%;
        max-width: none;
        margin: 0;
        min-width: 0;
    }

    #topSearchForm #searchInput {
        width: 100%;
    }

    #searchResults {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .account-dropdown-menu {
        width: auto;
        min-width: 0;
        max-width: none;
        left: 0.75rem !important;
        right: 0.75rem !important;
        transform: none !important;
    }

    .account-dropdown-menu__header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .account-dropdown-menu__mark-all {
        align-self: flex-start;
    }

    .account-notifications-list {
        max-height: min(52vh, 360px);
    }

    .account-notification-item__title-row {
        flex-direction: column;
        gap: 0.35rem;
    }

    .account-notification-item__time {
        white-space: normal;
    }

    .account-notification-item__message {
        overflow-wrap: anywhere;
    }
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Shortcut Card Styles */
.shortcut-card {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Widget Card Styles */
.widget-card {
    border-radius: 15px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

/* List Group Styling */
.list-group-item {
    border: none;
    padding: 10px 15px;
    font-size: 0.95rem;
    background: #f8f9fa;
}

.list-group-item:hover {
    border-left: 4px solid #007bff;
    cursor: pointer; /* Αλλαγή του δείκτη σε χεράκι */

}

/* Icon Styles */
.fas {
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

.fas:hover {
    transform: scale(1.2);
}

/* Typography */
.card-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.fs-4 {
    font-size: 1.5rem !important;
    font-weight: bold;
}

.font-small {
    font-size: 0.875rem;
}

.font-medium {
    font-size: 1rem;
}

.font-large {
    font-size: 1.25rem;
}

.font-xlarge {
    font-size: 1.4rem;
}

.density-compact .card,
.density-compact .crm-page-header,
.density-compact .crm-form-shell,
.density-compact .crm-toolbar-row,
.density-compact .crm-tab-panels,
.density-compact .reports-card {
    padding: 0.95rem;
}

.density-compact .table td,
.density-compact .table th {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.density-compact .btn,
.density-compact .form-control,
.density-compact .form-select {
    min-height: 40px;
}

.settings-switch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem 1.25rem;
}

.settings-section-nav {
    background: var(--crm-surface-elevated, #f8fafc);
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.24));
}

.settings-section-nav .btn {
    min-height: 44px;
    padding: 0.7rem 1rem;
    border-radius: 16px;
    border-color: var(--crm-border);
    background: var(--crm-surface);
    color: var(--crm-text);
    font-weight: 700;
    box-shadow: none;
}

.settings-section-nav .btn:hover,
.settings-section-nav .btn:focus {
    background: var(--crm-row-hover);
    border-color: var(--crm-input-border);
    color: var(--crm-heading);
}

.settings-section-nav .btn.is-active,
.settings-section-nav .btn.is-active:hover,
.settings-section-nav .btn.is-active:focus {
    background: var(--crm-accent-soft);
    border-color: var(--crm-input-border);
    color: var(--crm-heading);
}

.settings-system-section {
    margin-bottom: 1.5rem;
    padding: 1.1rem 1.15rem;
    border-radius: 18px;
    background: var(--crm-surface, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.18));
    box-shadow: var(--crm-shadow-soft, 0 14px 32px rgba(15, 23, 42, 0.06));
}

.settings-system-section__header {
    margin-bottom: 1rem;
}

.settings-system-section__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--crm-heading, #0f172a);
}

.settings-system-section__help {
    margin: 0.35rem 0 0;
    color: var(--crm-muted, #64748b);
}

.user-management-form__submit .btn {
    min-height: 42px;
    min-width: 112px;
}

.user-management-form__row {
    row-gap: 1rem;
}

@media (max-width: 767.98px) {
    .user-management-form__submit {
        justify-content: stretch !important;
    }

    .user-management-form__submit .btn {
        min-width: 100%;
    }
}

.entity-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--crm-border, rgba(15, 23, 42, 0.08));
    background: var(--crm-surface-elevated, #f5f8fc);
    box-shadow: var(--crm-shadow-soft, 0 18px 44px rgba(15, 23, 42, 0.08));
}

.entity-list-footer__summary {
    font-size: 0.95rem;
    color: var(--crm-muted, #35506f);
}

.entity-list-footer__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.entity-list-footer__select-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--crm-muted, #35506f);
    font-size: 0.92rem;
}

.entity-list-footer__select {
    min-width: 84px;
}

.entity-list-footer__pager {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.entity-list-footer__page {
    min-width: 88px;
    text-align: center;
    color: var(--crm-text, #35506f);
    font-size: 0.92rem;
}

.settings-shell .card,
.settings-shell form.card,
.settings-shell .settings-card,
.settings-shell .settings-section-nav,
.settings-shell .table-container,
.settings-shell .entity-list-footer {
    background: var(--crm-surface-elevated, #f8fafc);
    border-color: var(--crm-border, rgba(15, 23, 42, 0.08));
    box-shadow: var(--crm-shadow-soft, 0 18px 44px rgba(15, 23, 42, 0.08));
}

.settings-shell .table,
.settings-shell .table th,
.settings-shell .table td,
.settings-shell .list-group-item,
.settings-shell .card-header,
.settings-shell .card-body,
.settings-shell .card-title,
.settings-shell .card-text {
    color: var(--crm-text, #35506f);
}

.settings-shell .table thead th {
    background: var(--crm-surface-frost, rgba(255, 255, 255, 0.72));
    border-color: var(--crm-border, rgba(15, 23, 42, 0.08));
    color: var(--crm-muted, #64748b);
}

.settings-shell .table tbody td,
.settings-shell .table tbody th,
.settings-shell .list-group-item,
.settings-shell .card-header {
    background: transparent;
    border-color: var(--crm-border, rgba(15, 23, 42, 0.08));
}

.settings-shell .form-control,
.settings-shell .form-select,
.settings-shell .input-group-text {
    background: var(--crm-surface, #ffffff);
    border-color: var(--crm-border, rgba(15, 23, 42, 0.08));
    color: var(--crm-text, #35506f);
}

@media (max-width: 991.98px) {
    .entity-list-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .entity-list-footer__actions {
        justify-content: space-between;
    }
}

.account-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.account-notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #ff6b6b;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.account-dropdown-menu {
    width: min(420px, calc(100vw - 2rem));
    padding: 0.65rem;
}

.account-dropdown-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.25rem 0.25rem 0;
}

.account-dropdown-menu__subtitle {
    margin-top: 0.15rem;
    color: var(--crm-muted);
    font-size: 0.82rem;
}

.account-dropdown-menu__mark-all {
    padding: 0;
    text-decoration: none;
    white-space: nowrap;
}

.account-dropdown-menu__link-row {
    padding: 0 0.25rem 0.35rem;
}

.account-dropdown-menu__history-link {
    padding: 0;
    text-decoration: none;
    white-space: nowrap;
}

.account-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 360px;
    overflow-y: auto;
    padding: 0.25rem;
}

.notifications-archive-list {
    max-height: none;
}

.account-notifications-list__empty {
    padding: 1rem 0.85rem;
    border-radius: 16px;
    color: var(--crm-muted);
    background: var(--crm-surface-frost);
    border: 1px dashed var(--crm-border);
    text-align: center;
}

.account-notification-item {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--crm-border);
    border-radius: 18px;
    background: var(--crm-surface-frost);
    color: inherit;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.account-notification-item:hover,
.account-notification-item:focus {
    transform: translateY(-1px);
    border-color: rgba(58, 127, 246, 0.45);
    box-shadow: var(--crm-shadow-soft);
}

.account-notification-item--unread {
    border-color: rgba(58, 127, 246, 0.45);
    background: rgba(58, 127, 246, 0.08);
}

.account-notification-item--important {
    box-shadow: inset 3px 0 0 #ff8a3d;
}

.account-notification-item__title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.account-notification-item__title {
    color: var(--crm-heading);
    font-size: 0.95rem;
}

.account-notification-item__time {
    color: var(--crm-muted);
    font-size: 0.76rem;
    white-space: nowrap;
}

.account-notification-item__message {
    color: var(--crm-text);
    font-size: 0.88rem;
    line-height: 1.45;
}

.note-item {
    margin-bottom: 1rem;
}

.note-item__card {
    position: relative;
    padding: 1rem 1.05rem;
    padding-right: 7.4rem;
    border-radius: 18px;
    border: 1px solid var(--crm-border);
    background: var(--crm-surface-elevated);
    box-shadow: var(--crm-shadow-soft);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.note-item__header {
    display: block;
    margin-bottom: 0.6rem;
}

.note-item__timestamp {
    color: var(--crm-muted);
    font-size: 0.86rem;
    display: block;
}

.note-item__content {
    color: var(--crm-text);
    line-height: 1.6;
    white-space: pre-wrap;
}

.note-item__delete {
    min-width: 94px;
    position: absolute;
    top: 0.95rem;
    right: 1rem;
}

.note-item--pending-delete .note-item__card {
    border-color: rgba(255, 107, 107, 0.58);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.14);
    transform: translateY(-1px);
}

.shortcut-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.shortcut-list-item__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.shortcut-list-item__action {
    font-weight: 700;
    color: var(--crm-heading);
}

.shortcut-list-item__keys {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--crm-accent-soft);
    border: 1px solid var(--crm-border);
    color: var(--crm-accent-strong);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.shortcut-list-item--empty {
    justify-content: center;
    color: var(--crm-muted);
}

.hidden {
    display: none;
}

/* Layout Styles */
.layout-grid .widget-card {
    display: block; /* Default grid */
}

.layout-list .widget-card {
    display: block;
    width: 100%; /* Full-width list layout */
}

.layout-compact .widget-card {
    display: inline-block;
    width: calc(20% - 10px); /* 5 κάρτες ανά σειρά */
    margin: 5px;
    height: 150px; /* Σταθερό ύψος */
    text-overflow: ellipsis; /* Περιορισμός περιεχομένου */
}

.layout-compact .card-title {
    font-size: 0.875rem; /* Μικρότερο μέγεθος τίτλου */
}

.layout-compact .fas {
    font-size: 1.5rem; /* Μικρότερα εικονίδια */
}

.layout-compact .widget-card {
    display: inline-block;
    width: calc(20% - 10px); /* Πέντε widgets ανά σειρά */
    height: 300px; /* Μικρότερο ύψος */
    margin: 5px;
    overflow: hidden; /* Περιορισμός περιεχομένου */
}

.layout-compact .card-title {
    font-size: 0.875rem; /* Μικρότερο μέγεθος τίτλου */
}

.layout-compact .fas {
    font-size: 1.5rem; /* Μικρότερα εικονίδια */
}

#shortcutInput {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: not-allowed;
}

body.accessibility-high-contrast {
    --crm-bg: #ffffff;
    --crm-surface: #ffffff;
    --crm-surface-elevated: #ffffff;
    --crm-text: #0f172a;
    --crm-heading: #020617;
    --crm-muted: #0f172a;
    --crm-border: #0f172a;
    --crm-input-border: #0f172a;
    --crm-accent: #0037ff;
    --crm-accent-strong: #0025ad;
    --crm-accent-soft: #dbe7ff;
}

body[data-theme="dark"].accessibility-high-contrast {
    --crm-bg: #020617;
    --crm-surface: #020617;
    --crm-surface-elevated: #020617;
    --crm-text: #f8fafc;
    --crm-heading: #ffffff;
    --crm-muted: #f8fafc;
    --crm-border: #f8fafc;
    --crm-input-border: #f8fafc;
    --crm-accent: #60a5fa;
    --crm-accent-strong: #bfdbfe;
    --crm-accent-soft: rgba(96, 165, 250, 0.22);
}

body.accessibility-high-contrast .card,
body.accessibility-high-contrast .crm-page-header,
body.accessibility-high-contrast .crm-form-shell,
body.accessibility-high-contrast .crm-tab-panels,
body.accessibility-high-contrast .table-container,
body.accessibility-high-contrast .reports-card,
body.accessibility-high-contrast .modal-content,
body.accessibility-high-contrast .form-control,
body.accessibility-high-contrast .form-select,
body.accessibility-high-contrast .btn-secondary,
body.accessibility-high-contrast .btn-outline-secondary {
    border-width: 2px;
    box-shadow: none !important;
}

body.accessibility-strong-focus :focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
    box-shadow: none !important;
}

body.accessibility-readable-spacing {
    line-height: 1.7;
    letter-spacing: 0.015em;
}

body.accessibility-readable-spacing p,
body.accessibility-readable-spacing li,
body.accessibility-readable-spacing label,
body.accessibility-readable-spacing td,
body.accessibility-readable-spacing th {
    line-height: 1.75;
}

body.accessibility-large-targets .btn,
body.accessibility-large-targets .form-control,
body.accessibility-large-targets .form-select,
body.accessibility-large-targets .dropdown-item,
body.accessibility-large-targets .nav-link {
    min-height: 52px;
}

body.accessibility-reduced-motion *,
body.accessibility-reduced-motion *::before,
body.accessibility-reduced-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

/* Κρύβει το input file */
#sqlFileInput {
    display: none;
}

/* Στυλ για το label (Choose SQL File) */
label[for="sqlFileInput"] {
    cursor: pointer;
}

/* Προσαρμογή για το filename display */
#fileNameDisplay {
    font-style: italic;
}
[data-theme="dark"] label[for="sqlFileInput"] {
    color: white;
}

#loadingOverlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 18px;
    right: 18px;
    width: auto;
    height: auto;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--crm-surface-elevated, #ffffff) 94%, transparent);
    color: var(--crm-text, #0f172a);
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.24));
    box-shadow: var(--crm-shadow-soft, 0 18px 38px rgba(15, 23, 42, 0.12));
    backdrop-filter: blur(14px);
    z-index: 1055;
    pointer-events: none;
}

#logoPreview {
    border: 1px solid #ddd;
    padding: 10px;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
}

#recentEntries {
    max-height: calc(10 * 2.5rem); /* Υπολογισμός για 3 γραμμές */
    overflow-y: auto; /* Ενεργοποίηση κάθετου scroll αν ξεπεραστεί το ύψος */
}

#openTickets {
    max-height: calc(10 * 2.5rem); /* Υπολογισμός για 3 γραμμές */
    overflow-y: auto; /* Ενεργοποίηση κάθετου scroll αν ξεπεραστεί το ύψος */
}

#recentLogs {
    max-height: calc(10 * 2.5rem); /* Υπολογισμός για 3 γραμμές */
    overflow-y: auto; /* Ενεργοποίηση κάθετου scroll αν ξεπεραστεί το ύψος */
}
/* Unified UI Layer */
:root {
    --crm-font: "Manrope", "Segoe UI", sans-serif;
    --crm-bg: #eef2f6;
    --crm-bg-accent: rgba(13, 110, 253, 0.08);
    --crm-text: #243b53;
    --crm-heading: #102a43;
    --crm-muted: #52606d;
    --crm-surface: rgba(252, 252, 250, 0.94);
    --crm-surface-elevated: linear-gradient(135deg, rgba(252, 253, 255, 0.98) 0%, rgba(243, 247, 251, 0.97) 100%);
    --crm-surface-frost: rgba(250, 252, 255, 0.82);
    --crm-border: rgba(15, 23, 42, 0.08);
    --crm-row-border: rgba(226, 232, 240, 0.95);
    --crm-row-hover: rgba(13, 110, 253, 0.05);
    --crm-input-border: rgba(148, 163, 184, 0.34);
    --crm-shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.08);
    --crm-accent: #0d6efd;
    --crm-accent-strong: #1d4ed8;
    --crm-accent-soft: #dbeafe;
    --crm-chip-bg: #eef4ff;
    --crm-success: #047857;
    --crm-success-bg: #ecfdf5;
    --crm-dashboard-card-bg: linear-gradient(135deg, rgba(252, 253, 255, 0.98) 0%, rgba(240, 245, 251, 0.96) 100%);
    --crm-dashboard-card-border: rgba(148, 163, 184, 0.22);
    --crm-dashboard-panel-bg: rgba(255, 255, 255, 0.62);
    --crm-dashboard-panel-border: rgba(148, 163, 184, 0.18);
    --crm-dashboard-accent-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
    --crm-nav-bg: linear-gradient(135deg, #102a43 0%, #1f4b73 100%);
    --crm-nav-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    --crm-search-flyout-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

html[data-theme="dark"],
body[data-theme="dark"] {
    --crm-bg: #0f172a;
    --crm-bg-accent: rgba(56, 189, 248, 0.08);
    --crm-text: #e2e8f0;
    --crm-heading: #f8fafc;
    --crm-muted: #cbd5e1;
    --crm-surface: rgba(23, 31, 41, 0.94);
    --crm-surface-elevated: linear-gradient(135deg, rgba(31, 41, 51, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    --crm-surface-frost: rgba(15, 23, 42, 0.5);
    --crm-border: rgba(148, 163, 184, 0.16);
    --crm-row-border: rgba(51, 65, 85, 0.85);
    --crm-row-hover: rgba(59, 130, 246, 0.1);
    --crm-input-border: rgba(148, 163, 184, 0.28);
    --crm-shadow-soft: none;
    --crm-accent: #60a5fa;
    --crm-accent-strong: #93c5fd;
    --crm-accent-soft: rgba(59, 130, 246, 0.16);
    --crm-chip-bg: rgba(37, 99, 235, 0.16);
    --crm-success: #34d399;
    --crm-success-bg: rgba(16, 185, 129, 0.16);
    --crm-dashboard-card-bg: linear-gradient(135deg, rgba(31, 41, 51, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    --crm-dashboard-card-border: rgba(70, 97, 143, 0.34);
    --crm-dashboard-panel-bg: rgba(255, 255, 255, 0.03);
    --crm-dashboard-panel-border: rgba(70, 97, 143, 0.22);
    --crm-dashboard-accent-shadow: 0 22px 48px rgba(10, 22, 40, 0.24);
    --crm-nav-bg: linear-gradient(135deg, #111827 0%, #1e293b 100%);
    --crm-nav-shadow: none;
    --crm-search-flyout-shadow: 0 24px 48px rgba(2, 6, 23, 0.55);
}

html[data-theme="forest"],
body[data-theme="forest"] {
    --crm-bg: #f4faf5;
    --crm-bg-accent: rgba(22, 163, 74, 0.08);
    --crm-text: #234036;
    --crm-heading: #163527;
    --crm-muted: #567166;
    --crm-surface: rgba(255, 255, 255, 0.93);
    --crm-surface-elevated: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 252, 247, 0.98) 100%);
    --crm-surface-frost: rgba(255, 255, 255, 0.8);
    --crm-border: rgba(34, 197, 94, 0.1);
    --crm-row-border: rgba(209, 250, 229, 0.95);
    --crm-row-hover: rgba(34, 197, 94, 0.07);
    --crm-accent: #16a34a;
    --crm-accent-strong: #15803d;
    --crm-accent-soft: #dcfce7;
    --crm-dashboard-card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 250, 244, 0.98) 100%);
    --crm-dashboard-card-border: rgba(34, 197, 94, 0.16);
    --crm-dashboard-panel-bg: rgba(255, 255, 255, 0.64);
    --crm-dashboard-panel-border: rgba(134, 239, 172, 0.24);
    --crm-dashboard-accent-shadow: 0 18px 38px rgba(20, 83, 45, 0.12);
    --crm-nav-bg: linear-gradient(135deg, #14532d 0%, #15803d 100%);
}

html[data-theme="sand"],
body[data-theme="sand"] {
    --crm-bg: #fcf7ef;
    --crm-bg-accent: rgba(217, 119, 6, 0.08);
    --crm-text: #4b3521;
    --crm-heading: #362415;
    --crm-muted: #7c6247;
    --crm-surface: rgba(255, 251, 245, 0.94);
    --crm-surface-elevated: linear-gradient(135deg, rgba(255, 253, 249, 0.98) 0%, rgba(252, 244, 230, 0.98) 100%);
    --crm-surface-frost: rgba(255, 251, 245, 0.82);
    --crm-border: rgba(217, 119, 6, 0.12);
    --crm-row-border: rgba(254, 243, 199, 0.95);
    --crm-row-hover: rgba(245, 158, 11, 0.08);
    --crm-accent: #d97706;
    --crm-accent-strong: #b45309;
    --crm-accent-soft: #fef3c7;
    --crm-dashboard-card-bg: linear-gradient(135deg, rgba(255, 252, 247, 0.98) 0%, rgba(250, 241, 225, 0.98) 100%);
    --crm-dashboard-card-border: rgba(217, 119, 6, 0.18);
    --crm-dashboard-panel-bg: rgba(255, 251, 245, 0.68);
    --crm-dashboard-panel-border: rgba(251, 191, 36, 0.24);
    --crm-dashboard-accent-shadow: 0 18px 38px rgba(120, 53, 15, 0.12);
    --crm-nav-bg: linear-gradient(135deg, #7c4a03 0%, #b45309 100%);
}

html[data-theme="slate"],
body[data-theme="slate"] {
    --crm-bg: #1b2433;
    --crm-bg-accent: rgba(96, 165, 250, 0.08);
    --crm-text: #e7edf7;
    --crm-heading: #f8fbff;
    --crm-muted: #c2cbd8;
    --crm-surface: rgba(30, 41, 59, 0.94);
    --crm-surface-elevated: linear-gradient(135deg, rgba(44, 58, 80, 0.98) 0%, rgba(27, 36, 51, 0.98) 100%);
    --crm-surface-frost: rgba(27, 36, 51, 0.72);
    --crm-border: rgba(148, 163, 184, 0.14);
    --crm-row-border: rgba(71, 85, 105, 0.86);
    --crm-row-hover: rgba(96, 165, 250, 0.1);
    --crm-accent: #7fb3ff;
    --crm-accent-strong: #b8d5ff;
    --crm-accent-soft: rgba(96, 165, 250, 0.16);
    --crm-dashboard-card-bg: linear-gradient(135deg, rgba(44, 58, 80, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    --crm-dashboard-card-border: rgba(120, 164, 232, 0.24);
    --crm-dashboard-panel-bg: rgba(255, 255, 255, 0.04);
    --crm-dashboard-panel-border: rgba(120, 164, 232, 0.16);
    --crm-dashboard-accent-shadow: 0 22px 48px rgba(12, 18, 28, 0.22);
    --crm-nav-bg: linear-gradient(135deg, #253246 0%, #43526a 100%);
    --crm-nav-shadow: none;
    --crm-search-flyout-shadow: 0 24px 48px rgba(2, 6, 23, 0.55);
}

html[data-theme="dusk"],
body[data-theme="dusk"] {
    --crm-bg: #221f33;
    --crm-bg-accent: rgba(129, 140, 248, 0.09);
    --crm-text: #ecebff;
    --crm-heading: #faf9ff;
    --crm-muted: #d0d0eb;
    --crm-surface: rgba(39, 36, 58, 0.94);
    --crm-surface-elevated: linear-gradient(135deg, rgba(59, 52, 89, 0.98) 0%, rgba(34, 31, 51, 0.98) 100%);
    --crm-surface-frost: rgba(34, 31, 51, 0.72);
    --crm-border: rgba(167, 139, 250, 0.16);
    --crm-row-border: rgba(79, 70, 118, 0.86);
    --crm-row-hover: rgba(129, 140, 248, 0.12);
    --crm-accent: #9ea8ff;
    --crm-accent-strong: #d0d6ff;
    --crm-accent-soft: rgba(129, 140, 248, 0.18);
    --crm-dashboard-card-bg: linear-gradient(135deg, rgba(59, 52, 89, 0.98) 0%, rgba(39, 36, 58, 0.98) 100%);
    --crm-dashboard-card-border: rgba(167, 139, 250, 0.24);
    --crm-dashboard-panel-bg: rgba(255, 255, 255, 0.04);
    --crm-dashboard-panel-border: rgba(167, 139, 250, 0.16);
    --crm-dashboard-accent-shadow: 0 22px 48px rgba(18, 16, 30, 0.24);
    --crm-nav-bg: linear-gradient(135deg, #3c3360 0%, #5a4a8f 100%);
    --crm-nav-shadow: none;
    --crm-search-flyout-shadow: 0 24px 48px rgba(2, 6, 23, 0.55);
}

html[data-theme="olive"],
body[data-theme="olive"] {
    --crm-bg: #f5f6f0;
    --crm-bg-accent: rgba(101, 163, 13, 0.07);
    --crm-text: #2f3c2d;
    --crm-heading: #243223;
    --crm-muted: #657460;
    --crm-surface: rgba(253, 253, 250, 0.94);
    --crm-surface-elevated: linear-gradient(135deg, rgba(255, 255, 252, 0.98) 0%, rgba(246, 248, 239, 0.98) 100%);
    --crm-surface-frost: rgba(255, 255, 252, 0.84);
    --crm-border: rgba(101, 163, 13, 0.1);
    --crm-row-border: rgba(217, 249, 157, 0.9);
    --crm-row-hover: rgba(132, 204, 22, 0.08);
    --crm-accent: #5f8f1f;
    --crm-accent-strong: #466a17;
    --crm-accent-soft: #eaf5d4;
    --crm-dashboard-card-bg: linear-gradient(135deg, rgba(255, 255, 252, 0.98) 0%, rgba(243, 247, 232, 0.98) 100%);
    --crm-dashboard-card-border: rgba(101, 163, 13, 0.16);
    --crm-dashboard-panel-bg: rgba(255, 255, 255, 0.7);
    --crm-dashboard-panel-border: rgba(163, 230, 53, 0.22);
    --crm-dashboard-accent-shadow: 0 18px 38px rgba(63, 98, 18, 0.12);
    --crm-nav-bg: linear-gradient(135deg, #495f22 0%, #7c9b2d 100%);
}

html[data-theme="terracotta"],
body[data-theme="terracotta"] {
    --crm-bg: #f9f3ef;
    --crm-bg-accent: rgba(194, 65, 12, 0.07);
    --crm-text: #4b332b;
    --crm-heading: #39231e;
    --crm-muted: #7b6057;
    --crm-surface: rgba(255, 252, 249, 0.94);
    --crm-surface-elevated: linear-gradient(135deg, rgba(255, 255, 252, 0.98) 0%, rgba(250, 238, 231, 0.98) 100%);
    --crm-surface-frost: rgba(255, 252, 249, 0.84);
    --crm-border: rgba(194, 65, 12, 0.1);
    --crm-row-border: rgba(254, 215, 170, 0.92);
    --crm-row-hover: rgba(234, 88, 12, 0.08);
    --crm-accent: #c65b22;
    --crm-accent-strong: #a44717;
    --crm-accent-soft: #fde3d2;
    --crm-dashboard-card-bg: linear-gradient(135deg, rgba(255, 255, 252, 0.98) 0%, rgba(249, 235, 227, 0.98) 100%);
    --crm-dashboard-card-border: rgba(194, 65, 12, 0.16);
    --crm-dashboard-panel-bg: rgba(255, 255, 255, 0.68);
    --crm-dashboard-panel-border: rgba(251, 146, 60, 0.22);
    --crm-dashboard-accent-shadow: 0 18px 38px rgba(124, 45, 18, 0.12);
    --crm-nav-bg: linear-gradient(135deg, #9a4d27 0%, #cc6c3a 100%);
}

html[data-theme="midnight"],
body[data-theme="midnight"] {
    --crm-bg: #0a0d14;
    --crm-bg-accent: rgba(148, 163, 184, 0.04);
    --crm-text: #e6e8ee;
    --crm-heading: #fbfcfe;
    --crm-muted: #bcc3cf;
    --crm-surface: rgba(18, 22, 31, 0.96);
    --crm-surface-elevated: linear-gradient(135deg, rgba(24, 29, 40, 0.99) 0%, rgba(10, 13, 20, 0.99) 100%);
    --crm-surface-frost: rgba(10, 13, 20, 0.78);
    --crm-border: rgba(148, 163, 184, 0.12);
    --crm-row-border: rgba(39, 47, 63, 0.92);
    --crm-row-hover: rgba(148, 163, 184, 0.08);
    --crm-input-border: rgba(148, 163, 184, 0.22);
    --crm-shadow-soft: none;
    --crm-accent: #d1d5db;
    --crm-accent-strong: #f3f4f6;
    --crm-accent-soft: rgba(148, 163, 184, 0.14);
    --crm-chip-bg: rgba(148, 163, 184, 0.12);
    --crm-success: #34d399;
    --crm-success-bg: rgba(16, 185, 129, 0.14);
    --crm-dashboard-card-bg: linear-gradient(135deg, rgba(24, 29, 40, 0.99) 0%, rgba(10, 13, 20, 0.99) 100%);
    --crm-dashboard-card-border: rgba(71, 85, 105, 0.28);
    --crm-dashboard-panel-bg: rgba(255, 255, 255, 0.02);
    --crm-dashboard-panel-border: rgba(71, 85, 105, 0.18);
    --crm-dashboard-accent-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
    --crm-nav-bg: linear-gradient(135deg, #080b12 0%, #161b24 100%);
    --crm-nav-shadow: none;
    --crm-search-flyout-shadow: 0 24px 48px rgba(2, 6, 23, 0.55);
}

body {
    font-family: var(--crm-font);
    background:
        radial-gradient(circle at top left, var(--crm-bg-accent), transparent 32%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.06), transparent 28%),
        var(--crm-bg);
    color: var(--crm-text);
}

.layout {
    min-height: 100vh;
    height: auto;
}

.content {
    padding: 12px 0 40px;
}

body[data-layout="navbar"] .layout > .container.mt-5 {
    margin-top: 1.5rem !important;
}

body[data-layout="sidebar"][data-sidebar-pinned="enabled"] .layout > .container.mt-5 {
    width: calc(100% - 250px);
    max-width: none;
    margin-top: 0 !important;
    margin-right: 0;
    margin-left: 250px;
    padding: 16px 48px 40px;
}

body[data-layout="sidebar"][data-sidebar-pinned="disabled"] .layout > .container.mt-5 {
    width: 100%;
    max-width: none;
    margin-top: 0 !important;
    margin-right: 0;
    margin-left: 0;
    padding: 16px 48px 40px;
}

body[data-layout="sidebar"] #main-content > .container,
body[data-layout="sidebar"] #main-content > .container-fluid {
    max-width: 1240px;
}

body[data-layout="sidebar"] .content-toolbar,
body[data-layout="sidebar"] #main-content {
    padding-left: 0.75rem;
}

#main-content > .container,
#main-content > .container-fluid {
    max-width: 1240px;
}

.navbar,
.sidebar {
    background: var(--crm-nav-bg);
    box-shadow: var(--crm-nav-shadow);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.16);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.98%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.25' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand,
.sidebar .navbar-brand {
    font-weight: 800;
    letter-spacing: -0.03em;
}

#sidebarHoverZone {
    position: fixed;
    inset: 0 auto 0 0;
    width: 14px;
    z-index: 1030;
    display: none;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

#sidebarPinButton {
    min-height: 38px;
    min-width: 38px;
    padding: 0.45rem 0.65rem;
}

#sidebarPinButton.is-pinned {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar .nav-link,
.sidebar .nav-link,
.dropdown-toggle {
    border-radius: 12px;
    transition: background-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.navbar .nav-link:hover,
.sidebar .nav-link:hover,
.dropdown-toggle:hover {
    transform: translateY(-1px);
}

.nav-link.active,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.dropdown-menu {
    border-radius: 16px;
    border-color: var(--crm-border);
    box-shadow: var(--crm-shadow-soft);
    background: var(--crm-surface-elevated);
    color: var(--crm-text);
}

.dropdown-menu .dropdown-item,
.dropdown-menu .dropdown-item-text {
    color: var(--crm-text);
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background: var(--crm-row-hover);
    color: var(--crm-heading);
}

body[data-layout="sidebar"] #sidebarHoverZone {
    display: block;
}

body[data-layout="sidebar"] .sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    padding: 1.25rem 1rem 1rem;
    overflow-y: auto;
    z-index: 1040;
    transition: left 0.22s ease;
}

body[data-layout="sidebar"][data-sidebar-pinned="enabled"] .sidebar,
body[data-layout="sidebar"].sidebar-preview-open .sidebar,
body[data-layout="sidebar"].sidebar-manually-open .sidebar {
    left: 0;
}

body[data-layout="sidebar"][data-sidebar-pinned="enabled"] #sidebarHoverZone {
    display: none;
}

.crm-page-title {
    margin-bottom: 1.35rem;
    color: var(--crm-heading);
    font-size: clamp(1.7rem, 2.6vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.crm-page-title-secondary {
    margin-bottom: 1.35rem;
    color: var(--crm-muted);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    font-weight: 700;
}

.crm-page-header {
    margin-bottom: 1.35rem;
    padding: 1.1rem 1.25rem;
    border-radius: 24px;
    background: var(--crm-surface-elevated);
    border: 1px solid var(--crm-border);
    box-shadow: var(--crm-shadow-soft);
}

.crm-page-header--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.crm-page-header__intro {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.crm-entity-form-page {
    display: grid;
    gap: 1.25rem;
}

.crm-entity-form-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.crm-entity-form-page__header--actions .btn {
    min-width: 160px;
}

.crm-entity-form-title {
    margin-bottom: 0;
}

.crm-entity-form {
    display: grid;
    gap: 1.1rem;
}

.crm-entity-form__grid {
    row-gap: 1.1rem;
}

.crm-entity-form__section {
    margin: 0;
}

.crm-entity-form__section-header {
    margin-bottom: 1rem;
}

.crm-entity-form__section-title {
    color: var(--crm-heading);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.crm-entity-form__compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.crm-entity-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.crm-entity-form__actions .btn {
    min-width: 180px;
}

.crm-entity-form__id-hint {
    color: var(--crm-muted);
    font-size: 0.94rem;
    font-weight: 700;
}

.crm-entity-form .customer-container,
.crm-entity-form .customer-device-container,
.crm-entity-form .items-container {
    margin: 0;
}

.crm-entity-form .customer-header,
.crm-entity-form .customer-device-header,
.crm-entity-form .items-container h5 {
    margin-bottom: 0.95rem;
}

.crm-entity-form .input-group {
    align-items: stretch;
}

.crm-entity-form .input-group > .btn {
    min-width: 156px;
}

.crm-entity-form .ticket-linked-devices-editor {
    margin-top: 0.9rem;
}

.crm-entity-form .search-results-container:empty {
    display: none;
}

.modal-content .crm-page-shell.crm-entity-form-page {
    padding-inline: 0;
}

.modal-content .crm-entity-form-page__header {
    margin-bottom: -0.15rem;
}

.modal-content .crm-entity-form-title {
    font-size: 1.4rem;
}

.crm-form-modal__dialog {
    width: min(calc(100vw - 2.25rem), var(--crm-form-modal-width, 1120px));
    max-width: none;
    margin: 1rem auto;
}

.crm-form-modal__dialog--customer {
    --crm-form-modal-width: 1320px;
}

.crm-form-modal__dialog--device {
    --crm-form-modal-width: 1120px;
}

.crm-form-modal__content {
    --crm-modal-surface-solid: #ffffff;
    max-height: calc(100vh - 1rem);
    border-radius: 30px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid color-mix(in srgb, var(--crm-border, #d1d5db) 88%, transparent);
    background: var(--crm-modal-surface-solid) !important;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    opacity: 1;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.crm-form-modal__content > .crm-page-shell {
    margin: 0;
    padding: 1rem 1.2rem 1.15rem;
    background: var(--crm-modal-surface-solid);
}

.crm-form-modal__content::-webkit-scrollbar {
    width: 10px;
}

.crm-form-modal__content::-webkit-scrollbar-thumb {
    background-color: color-mix(in srgb, var(--crm-text, #333333) 30%, transparent);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.crm-form-modal__content .crm-page-shell > h1,
.crm-form-modal__content .crm-entity-form-title {
    margin-bottom: 0;
    color: var(--crm-heading);
    font-size: clamp(1.45rem, 1.9vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.crm-form-modal__content .crm-page-shell > h1 {
    margin-bottom: 0.8rem;
}

.crm-form-modal__content .crm-entity-form-page__header {
    margin-bottom: 0.1rem;
}

.crm-form-modal__content .crm-form-shell {
    height: 100%;
    border-radius: 20px;
    padding: 0.95rem 1rem;
    background: var(--crm-modal-surface-solid);
    border-color: color-mix(in srgb, var(--crm-border, #d1d5db) 92%, transparent);
}

.crm-form-modal__content .crm-entity-form {
    gap: 0.9rem;
}

.crm-form-modal__content .crm-entity-form__grid {
    row-gap: 0.9rem;
}

.crm-form-modal__content .crm-page-shell .form-control,
.crm-form-modal__content .crm-page-shell .form-select,
.crm-form-modal__content .crm-page-shell .btn,
.crm-form-modal__content .crm-page-shell .input-group-text {
    min-height: 44px;
}

.crm-form-modal__content .crm-page-shell textarea.form-control {
    min-height: 92px;
}

.crm-form-modal__content .crm-page-shell .form-label {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.crm-form-modal__content .crm-entity-form__section-header {
    margin-bottom: 0.7rem;
}

.crm-form-modal__content .crm-entity-form__section-title {
    font-size: 0.98rem;
}

#addCustomerModal #newCustomerForm .mb-3,
#addDeviceModal #newDeviceForm .mb-3 {
    margin-bottom: 0.8rem !important;
}

#addCustomerModal #newCustomerForm .row.crm-entity-form__grid > [class*="col-"],
#addCustomerModal #newCustomerForm .row > [class*="col-"] {
    margin-bottom: 0;
}

#addDeviceModal .crm-page-shell > h1 {
    margin-bottom: 0.8rem;
}

#addDeviceModal .d-flex.align-items-center {
    align-items: stretch !important;
    gap: 0.75rem;
}

#addDeviceModal .d-flex.align-items-center .form-select,
#addDeviceModal .d-flex.align-items-center .form-control {
    min-width: 0;
}

#addDeviceModal .d-flex.align-items-center > .btn {
    min-width: 54px;
    padding-inline: 0;
    margin-left: 0 !important;
    font-size: 1.1rem;
    font-weight: 700;
}

#addDeviceModal #newDeviceForm > .btn.btn-success {
    min-width: 220px;
}

#addCustomerModal #addPhoneButton {
    min-width: 220px;
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
    font-size: 0.92rem;
}

#addCustomerModal #addCustomerButton {
    min-width: 210px;
}

#addCustomerModal #newCustomerForm {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

#addCustomerModal #newCustomerForm > .crm-entity-form__grid {
    grid-column: 1;
}

#addCustomerModal #newCustomerForm > .crm-entity-form__actions {
    grid-column: 1;
    margin: 0;
    padding: 0;
    background: none;
    position: static;
    justify-content: flex-end;
}

#addCustomerModal #newCustomerForm > .crm-entity-form__actions .btn {
    min-width: 220px;
}

#addCustomerModal #newCustomerForm > .crm-form-shell.crm-entity-form__section:last-of-type {
    display: none;
}

#addCustomerModal #phoneFields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem 0.75rem;
    align-items: end;
}

#addCustomerModal #phoneFields > .form-label {
    grid-column: 1 / -1;
}

#addCustomerModal #phoneFields > input[name="phone"] {
    margin-bottom: 0 !important;
}

#addCustomerModal #notes {
    min-height: 110px;
}

#addDeviceModal #newDeviceForm {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1rem;
    align-items: start;
}

#addDeviceModal #newDeviceForm > .mb-3 {
    margin-bottom: 0 !important;
}

#addDeviceModal #newDeviceForm > .mb-3:nth-child(1),
#addDeviceModal #newDeviceForm > .mb-3:nth-child(7),
#addDeviceModal #newDeviceForm > .mb-3:nth-child(9) {
    grid-column: 1 / -1;
}

#addDeviceModal #newDeviceForm > .btn.btn-success {
    grid-column: 2;
    justify-self: end;
    align-self: end;
    min-width: 220px;
    margin-top: 0.15rem;
    padding-inline: 1.3rem;
}

html[data-theme="dark"] .crm-form-modal__content,
body[data-theme="dark"] .crm-form-modal__content {
    --crm-modal-surface-solid: #172131;
}

html[data-theme="slate"] .crm-form-modal__content,
body[data-theme="slate"] .crm-form-modal__content {
    --crm-modal-surface-solid: #253246;
}

html[data-theme="dusk"] .crm-form-modal__content,
body[data-theme="dusk"] .crm-form-modal__content {
    --crm-modal-surface-solid: #2f2842;
}

html[data-theme="midnight"] .crm-form-modal__content,
body[data-theme="midnight"] .crm-form-modal__content {
    --crm-modal-surface-solid: #121925;
}

.crm-toolbar-row {
    margin-bottom: 1.1rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: var(--crm-surface-frost);
    border: 1px solid var(--crm-border);
    box-shadow: var(--crm-shadow-soft);
    backdrop-filter: blur(10px);
}

.crm-filters-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: var(--crm-surface-frost);
    border: 1px solid var(--crm-border);
    box-shadow: var(--crm-shadow-soft);
    backdrop-filter: blur(10px);
}

.dashboard-shell {
    display: grid;
    gap: 1.25rem;
}

.dashboard-shell--refined {
    gap: 1.4rem;
}

.dashboard-shell--clean {
    gap: 1.35rem;
}

.dashboard-shell__header {
    align-items: end;
}

.dashboard-shell__intro {
    display: grid;
    gap: 0.35rem;
}

.dashboard-shell__grid {
    align-items: stretch;
}

.dashboard-shell__section {
    margin-top: 0.35rem;
}

.dashboard-shell__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-shell__section-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--crm-muted);
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.95rem;
}

.dashboard-overview-card {
    border-radius: 26px;
    background: var(--crm-dashboard-card-bg);
    border: 1px solid var(--crm-dashboard-card-border);
    box-shadow: var(--crm-shadow-soft);
    padding: 1.4rem;
    display: grid;
    gap: 1.2rem;
}

.dashboard-overview-card__main {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.dashboard-overview-card__icon {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(58, 127, 246, 0.14);
    border: 1px solid rgba(58, 127, 246, 0.24);
    color: #1f9d63;
    font-size: 2.8rem;
    flex: 0 0 auto;
}

.dashboard-overview-card__eyebrow {
    color: var(--crm-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-overview-card__title {
    margin: 0.35rem 0 0;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--crm-heading);
}

.dashboard-overview-card__amount {
    margin-top: 0.5rem;
    color: var(--crm-heading);
    font-size: clamp(2rem, 3vw, 2.85rem);
    font-weight: 900;
    line-height: 1.05;
}

.dashboard-overview-card__help {
    margin: 0.55rem 0 0;
    color: var(--crm-text);
    opacity: 0.86;
    line-height: 1.55;
}

.dashboard-overview-card__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.9rem;
}

.dashboard-overview-card__main > :last-child {
    min-width: 0;
}

.workspace-setup-card {
    overflow: hidden;
}

.workspace-setup__mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--crm-dashboard-panel-border);
    background: var(--crm-dashboard-panel-bg);
    color: var(--crm-heading);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.workspace-setup__mode-badge--trial {
    background: rgba(37, 99, 235, 0.11);
    border-color: rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
}

.workspace-setup__mode-badge--manual {
    background: rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}

.workspace-setup__mode-badge--active {
    background: rgba(5, 150, 105, 0.11);
    border-color: rgba(5, 150, 105, 0.2);
    color: #047857;
}

.workspace-setup__mode-badge--pending {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.24);
    color: #b45309;
}

html[data-theme="dark"] .workspace-setup__mode-badge--trial,
body[data-theme="dark"] .workspace-setup__mode-badge--trial {
    color: #bfdbfe;
}

html[data-theme="dark"] .workspace-setup__mode-badge--manual,
body[data-theme="dark"] .workspace-setup__mode-badge--manual {
    color: #99f6e4;
}

html[data-theme="dark"] .workspace-setup__mode-badge--active,
body[data-theme="dark"] .workspace-setup__mode-badge--active {
    color: #a7f3d0;
}

html[data-theme="dark"] .workspace-setup__mode-badge--pending,
body[data-theme="dark"] .workspace-setup__mode-badge--pending {
    color: #fde68a;
}

.workspace-setup__checklist-card {
    height: 100%;
    border-radius: 20px;
    border: 1px solid var(--crm-dashboard-panel-border);
    background: var(--crm-dashboard-panel-bg);
    padding: 1rem;
    display: grid;
    gap: 0.7rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.workspace-setup__checklist-card.is-complete {
    border-color: rgba(5, 150, 105, 0.22);
    background: linear-gradient(135deg, var(--crm-surface-elevated, rgba(236, 253, 245, 0.92)) 0%, var(--crm-surface-frost, rgba(244, 255, 250, 0.94)) 100%);
}

.workspace-setup__checklist-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.workspace-setup__checklist-title {
    color: var(--crm-heading);
    font-size: 0.98rem;
    font-weight: 800;
}

.workspace-setup__checklist-text {
    margin: 0;
    color: var(--crm-text);
    opacity: 0.88;
    line-height: 1.55;
}

.workspace-setup__checklist-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(148, 163, 184, 0.16);
    color: var(--crm-muted);
}

.workspace-setup__checklist-badge.is-complete {
    background: rgba(5, 150, 105, 0.14);
    color: var(--crm-success);
}

.workspace-setup__notes {
    display: grid;
    gap: 0.75rem;
}

.workspace-setup__shortcut-block {
    display: grid;
    gap: 1rem;
}

.workspace-setup__shortcut-heading {
    display: grid;
    gap: 0.35rem;
}

.workspace-setup__shortcut-title {
    margin: 0;
    color: var(--crm-heading);
    font-size: 1.05rem;
    font-weight: 800;
}

.workspace-setup__shortcut-help {
    margin: 0;
    color: var(--crm-muted);
    line-height: 1.55;
}

.workspace-setup__shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.workspace-setup__shortcut-card {
    border-radius: 18px;
    border: 1px solid var(--crm-dashboard-panel-border);
    background: var(--crm-surface-frost, var(--crm-dashboard-panel-bg));
    padding: 1rem;
    display: grid;
    gap: 0.65rem;
    box-shadow: var(--crm-shadow-soft, inset 0 1px 0 rgba(255, 255, 255, 0.18));
}

.workspace-setup__shortcut-card strong {
    color: var(--crm-heading);
    font-size: 0.98rem;
}

.workspace-setup__shortcut-card p {
    margin: 0;
    color: var(--crm-text);
    opacity: 0.88;
    line-height: 1.55;
}

.workspace-setup__note {
    border-radius: 16px;
    border: 1px solid var(--crm-dashboard-panel-border);
    background: var(--crm-surface-frost, rgba(255, 255, 255, 0.48));
    color: var(--crm-text);
    padding: 0.85rem 1rem;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .workspace-setup-page {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .workspace-setup-card .card-body {
        padding: 1rem;
    }

    .workspace-setup__mode-badge {
        width: 100%;
        justify-content: center;
    }

    .workspace-setup__checklist-card {
        padding: 0.9rem;
        border-radius: 18px;
    }

    .workspace-setup__note {
        padding: 0.8rem 0.9rem;
    }

    .workspace-setup__shortcut-card {
        padding: 0.9rem;
        border-radius: 16px;
    }

    .workspace-setup-page .btn {
        width: 100%;
    }
}

.dashboard-mini-stat {
    min-width: 0;
    border-radius: 18px;
    background: var(--crm-dashboard-panel-bg);
    border: 1px solid var(--crm-dashboard-panel-border);
    padding: 0.95rem 1rem;
    display: grid;
    gap: 0.3rem;
}

.dashboard-mini-stat__label {
    color: var(--crm-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-mini-stat__value {
    color: var(--crm-heading);
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.1;
}

.dashboard-mini-stat__meta {
    color: var(--crm-text);
    opacity: 0.82;
    font-size: 0.82rem;
}

.dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.dashboard-action-card {
    border-radius: 22px;
    background: var(--crm-dashboard-card-bg);
    border: 1px solid var(--crm-dashboard-card-border);
    box-shadow: var(--crm-shadow-soft);
    padding: 1.2rem 1.25rem;
    display: grid;
    gap: 0.95rem;
}

.dashboard-action-card > .btn {
    margin-top: auto;
    width: fit-content;
}

.dashboard-action-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    background: var(--crm-dashboard-panel-bg);
    border: 1px solid var(--crm-dashboard-panel-border);
}

.dashboard-action-card__eyebrow,
.dashboard-list-card__eyebrow {
    color: var(--crm-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-action-card__title,
.dashboard-list-card__title {
    margin: 0.3rem 0 0;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--crm-heading);
}

.dashboard-action-card__copy {
    margin: 0;
    color: var(--crm-text);
    opacity: 0.86;
    line-height: 1.55;
}

.dashboard-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

.dashboard-list-card {
    border-radius: 24px;
    background: var(--crm-dashboard-card-bg);
    border: 1px solid var(--crm-dashboard-card-border);
    box-shadow: var(--crm-shadow-soft);
    padding: 1.2rem 1.2rem 1rem;
}

.dashboard-list-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.dashboard-list-card__list.list-group .list-group-item {
    border-radius: 16px !important;
    margin-bottom: 0.55rem;
    border: 1px solid var(--crm-dashboard-panel-border);
    background: var(--crm-dashboard-panel-bg);
    color: var(--crm-text);
}

.dashboard-list-card__list.list-group .list-group-item div,
.dashboard-list-card__list.list-group .list-group-item span:not(.status-badge),
.dashboard-list-card__list.list-group .list-group-item strong {
    color: inherit;
}

#recentEntries .list-group-item,
#openTickets .list-group-item {
    color: var(--crm-text);
}

#recentEntries .list-group-item > :first-child,
#openTickets .list-group-item > :first-child {
    color: var(--crm-text-muted);
}

.dashboard-summary-card {
    border-radius: 20px;
    background: var(--crm-dashboard-card-bg);
    border: 1px solid var(--crm-dashboard-card-border);
    box-shadow: var(--crm-shadow-soft);
    padding: 1.1rem 1.15rem;
    display: grid;
    gap: 0.45rem;
}

.dashboard-summary-card--accent {
    border-color: color-mix(in srgb, var(--crm-accent) 35%, transparent);
    box-shadow: var(--crm-dashboard-accent-shadow);
}

.dashboard-summary-card__label {
    color: var(--crm-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-summary-card__value {
    color: var(--crm-heading);
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    font-weight: 900;
    line-height: 1.05;
}

.dashboard-summary-card__meta {
    color: var(--crm-text);
    opacity: 0.84;
    font-size: 0.85rem;
}

.dashboard-card {
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(17, 27, 48, 0.96), rgba(15, 26, 46, 0.92));
    border: 1px solid rgba(70, 97, 143, 0.35);
    box-shadow: var(--crm-shadow-soft);
}

.crm-entity-list-shell {
    display: grid;
    gap: 1.25rem;
}

.crm-entity-list-shell > * {
    min-width: 0;
}

.crm-entity-list-shell .row {
    margin-bottom: 0;
    min-width: 0;
}

.crm-entity-list-shell__table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.crm-entity-list-shell .crm-table-shell,
.crm-entity-list-shell .crm-filters-toolbar,
.crm-entity-list-shell .table-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.crm-entity-list-shell .crm-table-shell {
    overflow-x: clip !important;
}

.crm-entity-list-shell .table-container {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    scrollbar-gutter: stable both-edges;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.crm-entity-list-shell .table-container::-webkit-scrollbar {
    height: 10px;
}

.crm-entity-list-shell .table-container::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.14);
    border-radius: 999px;
}

.crm-entity-list-shell .table-container::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.42);
    border-radius: 999px;
}

.crm-entity-list-shell .table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.58);
}

.dashboard-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.35rem 1.4rem 1.45rem;
}

.dashboard-card__eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--crm-muted);
    margin-bottom: 0.75rem;
}

.dashboard-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--crm-heading);
    margin-bottom: 0;
}

.dashboard-card__copy {
    margin-top: 0.85rem;
    color: var(--crm-text);
    opacity: 0.88;
    line-height: 1.55;
}

.dashboard-card__action-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-card__action-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(70, 97, 143, 0.24);
    flex: 0 0 auto;
}

.dashboard-card__hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-card__hero-value,
.dashboard-card__metric-value {
    margin: 0.6rem 0 0;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    font-weight: 900;
    color: var(--crm-heading);
}

.dashboard-card__hero-icon {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(58, 127, 246, 0.12);
    border: 1px solid rgba(58, 127, 246, 0.22);
    color: #1f9d63;
    font-size: 2.6rem;
    flex: 0 0 auto;
}

.dashboard-card__metric-value {
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.dashboard-card__action-icon {
    font-size: 2.7rem;
    margin-bottom: 1rem;
}

.dashboard-card__list.list-group {
    margin-top: 0.95rem;
}

.dashboard-card__list .list-group-item {
    border-radius: 16px !important;
    margin-bottom: 0.55rem;
    border: 1px solid rgba(70, 97, 143, 0.22);
    background: rgba(255, 255, 255, 0.03);
}

.dashboard-grid--refined .dashboard-widget--list .dashboard-card .card-body {
    padding-bottom: 1.15rem;
}

.detail-page__list-item--action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.detail-page__list-item-content {
    display: grid;
    gap: 0.3rem;
}

.detail-page__list-item-content strong {
    color: var(--crm-heading);
}

.detail-page__list-item-content span {
    color: var(--crm-text);
}

.detail-page__inline-action {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.attachment-uploader {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
}

.attachment-uploader .form-control {
    min-width: 220px;
    flex: 1 1 320px;
}

.attachment-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.detail-page__list-empty {
    list-style: none;
    border: 1px dashed var(--crm-border);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    color: var(--crm-muted);
    background: var(--crm-surface);
}

#dashboardContainer.dashboard-size-small .widget-card .card {
    min-height: 178px;
}

#dashboardContainer.dashboard-size-small .widget-card .card-body {
    padding: 1rem 1rem 1.1rem;
}

#dashboardContainer.dashboard-size-small .widget-card .fas {
    font-size: 2rem !important;
}

#dashboardContainer.dashboard-size-medium .widget-card .card {
    min-height: 210px;
}

#dashboardContainer.dashboard-size-large .widget-card .card {
    min-height: 248px;
}

#dashboardContainer.dashboard-size-large .widget-card .card-body {
    padding: 1.4rem 1.45rem 1.5rem;
}

#dashboardContainer.dashboard-size-large .widget-card .fas {
    font-size: 3.25rem !important;
}

#dashboardContainer.layout-grid > .widget-card {
    width: auto;
}

#dashboardContainer.layout-list > .widget-card {
    flex: 0 0 100%;
    max-width: 100%;
}

#dashboardContainer.layout-list .dashboard-widget--action,
#dashboardContainer.layout-list .dashboard-widget--metric,
#dashboardContainer.layout-list .dashboard-widget--hero {
    flex: 0 0 50%;
    max-width: 50%;
}

#dashboardContainer.layout-compact {
    row-gap: 1rem !important;
}

#dashboardContainer.layout-compact > .widget-card {
    flex: 0 0 25%;
    max-width: 25%;
}

.inventory-stock-actions {
    display: grid;
    gap: 0.75rem;
}

.inventory-stock-actions__quantity .input-group {
    flex-wrap: nowrap;
}

@media (max-width: 991.98px) {
    body[data-layout="sidebar"] .layout > .container.mt-5,
    body[data-layout="sidebar"][data-sidebar-pinned="enabled"] .layout > .container.mt-5,
    body[data-layout="sidebar"][data-sidebar-pinned="disabled"] .layout > .container.mt-5 {
        width: 100%;
        margin-left: 0;
        padding: 24px 16px 32px;
    }

    body[data-layout="sidebar"] #sidebarHoverZone {
        display: none;
    }

    body[data-layout="sidebar"] .sidebar {
        left: -250px;
        box-shadow: 0 24px 48px rgba(15, 23, 42, 0.24);
    }

    body[data-layout="sidebar"].sidebar-manually-open .sidebar,
    body[data-layout="sidebar"][data-sidebar-pinned="enabled"] .sidebar {
        left: 0;
    }

    #dashboardContainer.layout-compact > .widget-card {
        flex: 0 0 50%;
        max-width: 50%;
    }

    #dashboardContainer.layout-list .dashboard-widget--action,
    #dashboardContainer.layout-list .dashboard-widget--metric,
    #dashboardContainer.layout-list .dashboard-widget--hero {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    #dashboardContainer.layout-compact > .widget-card,
    #dashboardContainer.layout-list > .widget-card,
    #dashboardContainer > .widget-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .dashboard-card__hero-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-overview-card__main,
    .dashboard-list-card__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-overview-card {
        padding: 1.2rem;
    }

    .dashboard-overview-card__icon {
        width: 70px;
        height: 70px;
        border-radius: 20px;
        font-size: 2.2rem;
    }

    .dashboard-shell__section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.4rem;
    }

    .dashboard-action-card {
        padding: 1.05rem 1.05rem 1.15rem;
    }

.dashboard-action-card > .btn,
.dashboard-list-card__head .btn {
    width: 100%;
}

.dashboard-list-card__head .btn.btn-outline-secondary:hover,
.dashboard-list-card__head .btn.btn-outline-secondary:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #111827;
}

    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }

    .detail-page__list-item--action {
        align-items: flex-start;
        flex-direction: column;
    }
}

.crm-filters-toolbar--stacked {
    align-items: stretch;
}

.crm-filters-toolbar__filters {
    flex: 1 1 760px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    min-width: 0;
}

.crm-filters-toolbar__filters--compact {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.crm-filters-toolbar__field {
    min-width: 0;
}

.crm-filters-toolbar__field--search {
    grid-column: span 2;
}

.crm-filters-toolbar .form-label {
    margin-bottom: 0.45rem;
    color: var(--crm-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.crm-filters-toolbar .form-control,
.crm-filters-toolbar .form-select {
    min-height: 46px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--crm-surface) 72%, var(--crm-surface-frost) 28%);
    color: var(--crm-text);
    border-color: var(--crm-border);
}

.crm-filters-toolbar__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
}

.crm-filters-toolbar__actions .btn {
    min-width: 172px;
    height: 46px;
    white-space: nowrap;
}

.crm-form-shell {
    padding: 1.35rem 1.45rem;
    border-radius: 24px;
    background: var(--crm-surface-elevated);
    border: 1px solid var(--crm-border);
    box-shadow: var(--crm-shadow-soft);
}

.crm-table-shell {
    padding: 0.45rem;
    border-radius: 24px;
    background: var(--crm-surface-elevated);
    border: 1px solid var(--crm-border);
    box-shadow: var(--crm-shadow-soft);
    overflow: hidden;
}

.crm-table-shell .table {
    margin-bottom: 0;
    box-shadow: none;
    border-radius: 18px;
    overflow: hidden;
    background: transparent !important;
}

.crm-table-shell .table th {
    padding: 0.95rem 0.9rem;
    background: color-mix(in srgb, var(--crm-surface-frost) 82%, var(--crm-surface) 18%) !important;
    color: var(--crm-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--crm-row-border);
}

.crm-table-shell .table td {
    padding: 0.95rem 0.9rem;
    color: var(--crm-text);
    border-bottom: 1px solid var(--crm-row-border);
    background: transparent !important;
}

.crm-table-shell .table.table-striped > tbody > tr:nth-of-type(odd) > * {
    background: color-mix(in srgb, var(--crm-surface-frost) 74%, var(--crm-surface) 26%) !important;
    color: var(--crm-text);
}

.crm-table-shell .table.table-striped > tbody > tr:nth-of-type(even) > * {
    background: color-mix(in srgb, var(--crm-surface-frost) 58%, var(--crm-surface) 42%) !important;
    color: var(--crm-text);
}

.crm-table-shell .table tbody tr:hover > * {
    background: var(--crm-row-hover) !important;
    color: var(--crm-text);
}

.inventory-table-container {
    overflow-x: auto;
}

.inventory-list-table {
    width: 100%;
    min-width: 1220px;
    table-layout: fixed;
}

.inventory-list-table__col--id {
    width: 64px;
}

.inventory-list-table__col--category,
.inventory-list-table__col--store {
    width: 110px;
}

.inventory-list-table__col--name,
.inventory-list-table__col--supplier {
    width: 132px;
}

.inventory-list-table__col--sku-supplier,
.inventory-list-table__col--sku-system {
    width: 142px;
}

.inventory-list-table__col--purchase,
.inventory-list-table__col--wholesale,
.inventory-list-table__col--retail {
    width: 106px;
}

.inventory-list-table__col--stock {
    width: 86px;
}

.inventory-list-table th,
.inventory-list-table td {
    vertical-align: middle;
}

.inventory-list-table th:nth-child(8),
.inventory-list-table th:nth-child(9),
.inventory-list-table th:nth-child(10),
.inventory-list-table th:nth-child(11),
.inventory-list-table td:nth-child(8),
.inventory-list-table td:nth-child(9),
.inventory-list-table td:nth-child(10),
.inventory-list-table td:nth-child(11) {
    text-align: right;
}

.inventory-list-table th:nth-child(11),
.inventory-list-table td:nth-child(11) {
    text-align: center;
}

.inventory-list-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-list-table td[colspan] {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    text-align: center;
}

.device-table-container {
    overflow-x: auto;
}

.device-list-table {
    width: 100%;
    min-width: 1040px;
    table-layout: fixed;
}

.device-list-table__col--id {
    width: 72px;
}

.device-list-table__col--type,
.device-list-table__col--store,
.device-list-table__col--status {
    width: 120px;
}

.device-list-table__col--manufacturer,
.device-list-table__col--model {
    width: 136px;
}

.device-list-table__col--serial,
.device-list-table__col--imei {
    width: 168px;
}

.device-list-table th,
.device-list-table td {
    vertical-align: middle;
}

.device-list-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device-list-table td[colspan] {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    text-align: center;
}

.orders-table-container {
    overflow-x: auto;
}

.orders-list-table {
    width: 100%;
    min-width: 1080px;
    table-layout: fixed;
}

.orders-list-table__col--id {
    width: 76px;
}

.orders-list-table__col--customer {
    width: 238px;
}

.orders-list-table__col--subject {
    width: 190px;
}

.orders-list-table__col--status {
    width: 150px;
}

.orders-list-table__col--price {
    width: 120px;
}

.orders-list-table__col--due-date,
.orders-list-table__col--created-at {
    width: 150px;
}

.orders-list-table th,
.orders-list-table td {
    vertical-align: middle;
}

.orders-list-table th:nth-child(5),
.orders-list-table td:nth-child(5) {
    text-align: right;
}

.orders-list-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-list-table td:nth-child(4) {
    overflow: visible;
    text-overflow: clip;
}

.orders-list-table td[colspan] {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    text-align: center;
}

.customers-table-container,
.tickets-table-container,
.invoices-table-container,
.estimates-table-container {
    overflow-x: auto;
}

.customers-list-table,
.tickets-list-table,
.invoices-list-table,
.estimates-list-table {
    width: 100%;
    table-layout: fixed;
}

.customers-list-table {
    min-width: 1040px;
}

.tickets-list-table {
    min-width: 1160px;
}

.invoices-list-table {
    min-width: 1100px;
}

.estimates-list-table {
    min-width: 980px;
}

.customers-list-table__col--name {
    width: 180px;
}

.customers-list-table__col--phone {
    width: 180px;
}

.customers-list-table__col--address {
    width: 220px;
}

.customers-list-table__col--city {
    width: 120px;
}

.customers-list-table__col--email {
    width: 190px;
}

.customers-list-table__col--type {
    width: 120px;
}

.tickets-list-table__col--id {
    width: 72px;
}

.tickets-list-table__col--subject {
    width: 180px;
}

.tickets-list-table__col--description {
    width: 240px;
}

.tickets-list-table__col--due-date,
.tickets-list-table__col--status {
    width: 130px;
}

.tickets-list-table__col--customer {
    width: 190px;
}

.tickets-list-table__col--device {
    width: 218px;
}

.invoices-list-table__col--id {
    width: 72px;
}

.invoices-list-table__col--customer {
    width: 190px;
}

.invoices-list-table__col--date,
.invoices-list-table__col--due-date {
    width: 126px;
}

.invoices-list-table__col--status {
    width: 130px;
}

.invoices-list-table__col--total,
.invoices-list-table__col--paid,
.invoices-list-table__col--balance {
    width: 120px;
}

.estimates-list-table__col--id {
    width: 76px;
}

.estimates-list-table__col--customer {
    width: 200px;
}

.estimates-list-table__col--date,
.estimates-list-table__col--valid-until {
    width: 126px;
}

.estimates-list-table__col--status {
    width: 140px;
}

.estimates-list-table__col--total {
    width: 130px;
}

.estimates-list-table__col--ticket {
    width: 110px;
}

.customers-list-table th,
.customers-list-table td,
.tickets-list-table th,
.tickets-list-table td,
.invoices-list-table th,
.invoices-list-table td,
.estimates-list-table th,
.estimates-list-table td {
    vertical-align: middle;
}

.customers-list-table td,
.tickets-list-table td,
.invoices-list-table td,
.estimates-list-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tickets-list-table td:nth-child(5),
.invoices-list-table td:nth-child(5),
.estimates-list-table td:nth-child(5) {
    overflow: visible;
    text-overflow: clip;
}

.invoices-list-table th:nth-child(6),
.invoices-list-table th:nth-child(7),
.invoices-list-table th:nth-child(8),
.invoices-list-table td:nth-child(6),
.invoices-list-table td:nth-child(7),
.invoices-list-table td:nth-child(8),
.estimates-list-table th:nth-child(6),
.estimates-list-table td:nth-child(6) {
    text-align: right;
}

.customers-list-table td[colspan],
.tickets-list-table td[colspan],
.invoices-list-table td[colspan],
.estimates-list-table td[colspan] {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    text-align: center;
}

#logsTable td {
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#logsTable td:nth-child(4),
#logsTable td:nth-child(6) {
    white-space: normal;
}

.crm-card,
.customer-device-container,
.customer-container,
.items-container,
.payments-section {
    border-radius: 22px;
    border: 1px solid var(--crm-border);
    background: var(--crm-surface-elevated);
    box-shadow: var(--crm-shadow-soft);
}

.customer-device-container,
.customer-container,
.items-container,
.payments-section {
    padding: 1.2rem 1.25rem;
}

.crm-card .card-header {
    padding: 1rem 1.2rem;
    background: transparent;
    border-bottom: 1px solid var(--crm-row-border);
    font-weight: 700;
    color: var(--crm-heading);
}

.crm-card .card-body {
    padding: 1.2rem 1.25rem;
}

.card-title,
.customer-device-header,
.customer-header,
.items-container h5,
.payments-section h3 {
    color: var(--crm-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.crm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    border-bottom: none;
    margin-bottom: 0.35rem;
}

.crm-tabs .nav-link {
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: var(--crm-chip-bg);
    color: var(--crm-muted);
    font-weight: 700;
}

.crm-tabs .nav-link:hover {
    transform: none;
    background: var(--crm-accent-soft);
    color: var(--crm-accent-strong);
}

.crm-tabs .nav-link.active {
    background: var(--crm-accent);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.18);
}

.crm-tab-panels {
    padding: 1.25rem;
    border-radius: 24px;
    background: var(--crm-surface-elevated);
    border: 1px solid var(--crm-border);
    box-shadow: var(--crm-shadow-soft);
}

.detail-page__tab-pane {
    display: grid;
    gap: 1rem;
}

.detail-page__tab-pane > .row.mb-3 {
    margin-bottom: 0 !important;
}

.detail-page__tab-pane > .row .col-md-9,
.detail-page__tab-pane > .row .col {
    width: 100%;
}

.detail-page__tab-pane .search-field,
.detail-page__tab-pane .form-control.search-field {
    max-width: 680px;
}

.detail-page__tab-pane .table-container {
    margin-top: 0;
}

.detail-page__tab-pane .crm-table-shell {
    padding: 0.4rem;
}

.crm-list-group .list-group-item {
    border: 1px solid var(--crm-border);
    border-radius: 16px !important;
    margin-bottom: 0.7rem;
    background: var(--crm-surface);
}

.crm-list-group .list-group-item:last-child {
    margin-bottom: 0;
}

.form-control,
.form-select {
    min-height: 46px;
    border-radius: 14px;
    border-color: var(--crm-input-border);
    background: var(--crm-surface);
    color: var(--crm-text);
    box-shadow: none;
}

textarea.form-control {
    min-height: 112px;
}

.form-control::placeholder,
.form-select::placeholder {
    color: #94a3b8;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(13, 110, 253, 0.35);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.12);
    background: var(--crm-surface);
    color: var(--crm-text);
}

.btn {
    min-height: 44px;
    padding: 0.62rem 1rem;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-sm {
    min-height: auto;
    padding: 0.5rem 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #0d6efd 100%);
    border: none;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 10px 22px rgba(5, 150, 105, 0.18);
}

.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, #0f9f74 0%, #047857 100%);
    transform: translateY(-1px);
}

.btn-secondary,
.btn-outline-secondary {
    border-color: var(--crm-input-border);
    background: var(--crm-surface);
    color: var(--crm-text);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: #edf2f7;
    color: var(--crm-heading);
}

.status-badge--completed {
    background: var(--crm-success-bg);
    border-color: rgba(16, 185, 129, 0.28);
    color: var(--crm-success);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .btn-outline-secondary {
    color: var(--crm-text);
}

[data-theme="slate"] .btn-secondary,
[data-theme="slate"] .btn-outline-secondary,
[data-theme="dusk"] .btn-secondary,
[data-theme="dusk"] .btn-outline-secondary,
[data-theme="midnight"] .btn-secondary,
[data-theme="midnight"] .btn-outline-secondary {
    color: var(--crm-text);
}

[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .btn-secondary:focus,
[data-theme="dark"] .btn-outline-secondary:hover,
[data-theme="dark"] .btn-outline-secondary:focus {
    background: rgba(51, 65, 85, 0.9);
    color: #f8fafc;
}

[data-theme="dark"] .dashboard-list-card__head .btn.btn-outline-secondary:hover,
[data-theme="dark"] .dashboard-list-card__head .btn.btn-outline-secondary:focus,
[data-theme="slate"] .dashboard-list-card__head .btn.btn-outline-secondary:hover,
[data-theme="slate"] .dashboard-list-card__head .btn.btn-outline-secondary:focus,
[data-theme="dusk"] .dashboard-list-card__head .btn.btn-outline-secondary:hover,
[data-theme="dusk"] .dashboard-list-card__head .btn.btn-outline-secondary:focus,
[data-theme="midnight"] .dashboard-list-card__head .btn.btn-outline-secondary:hover,
[data-theme="midnight"] .dashboard-list-card__head .btn.btn-outline-secondary:focus {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(255, 255, 255, 0.92);
    color: #111827;
}

[data-theme="dark"] .crm-tabs .nav-link.active,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-success {
    box-shadow: none;
}

.layout {
    min-height: calc(100vh - 64px);
    height: auto;
}

.content {
    overflow: visible;
}

.table-container {
    max-height: none !important;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
}

.table-container.table-container--paginated {
    max-height: none !important;
    overflow-y: visible;
    overflow-x: auto;
}

.table-container > .table,
.table-container table {
    min-width: 100%;
}

.crm-table-shell {
    overflow: visible !important;
}

@media (max-width: 991.98px) {
    .crm-toolbar-row {
        padding: 0.9rem;
    }

    .crm-form-modal__dialog {
        width: min(calc(100vw - 1.5rem), var(--crm-form-modal-width, 1120px));
        margin: 0.75rem auto;
    }

    .crm-form-modal__content {
        max-height: calc(100vh - 1.5rem);
    }

    .crm-page-header,
    .crm-form-shell,
    .crm-tab-panels {
        padding: 1rem;
    }

    .crm-page-header--split {
        align-items: flex-start;
    }

    .crm-entity-form-page__header {
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .content {
        padding-top: 18px;
    }

    .crm-form-modal__dialog {
        width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    .crm-form-modal__content {
        border-radius: 22px;
        max-height: calc(100vh - 1rem);
    }

    .crm-form-modal__content > .crm-page-shell {
        padding: 0.9rem 0.9rem 1rem;
    }

    .crm-form-modal__content .crm-form-shell {
        padding: 0.85rem;
        border-radius: 18px;
    }

    .crm-form-modal__content .crm-page-shell > h1,
    .crm-form-modal__content .crm-entity-form-title {
        font-size: clamp(1.35rem, 6vw, 1.7rem);
    }

    #addCustomerModal #newCustomerForm,
    #addDeviceModal #newDeviceForm,
    #addCustomerModal #phoneFields {
        grid-template-columns: 1fr;
    }

    #addCustomerModal #newCustomerForm > .crm-entity-form__actions,
    #addDeviceModal #newDeviceForm > .btn.btn-success {
        grid-column: auto;
        justify-self: stretch;
        width: 100%;
    }

    .crm-toolbar-row {
        padding: 0.85rem;
    }

    .crm-filters-toolbar {
        padding: 0.9rem;
    }

    .crm-filters-toolbar__filters,
    .crm-filters-toolbar__filters--compact {
        grid-template-columns: 1fr;
    }

    .crm-filters-toolbar__field--search {
        grid-column: auto;
    }

    .crm-filters-toolbar__actions {
        width: 100%;
    }

    .crm-filters-toolbar__actions .btn {
        width: 100%;
    }

    .crm-page-title {
        font-size: 1.6rem;
    }

    .crm-tabs .nav-link {
        width: 100%;
        text-align: center;
    }

    .detail-page__tab-pane .search-field,
    .detail-page__tab-pane .form-control.search-field {
        max-width: none;
    }

    .crm-entity-form__actions {
        justify-content: stretch;
    }

    .crm-entity-form__actions .btn,
    .crm-entity-form-page__header--actions .btn,
    .crm-entity-form .input-group > .btn {
        width: 100%;
        min-width: 0;
    }

    .crm-entity-form .input-group {
        flex-direction: column;
    }

    .public-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .public-cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
        padding: 0.95rem;
    }

    .public-cookie-banner__actions {
        width: 100%;
        flex-direction: column;
    }

    .public-cookie-banner__actions .btn {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    body[data-layout="sidebar"] .layout > .container.mt-5 {
        width: 100%;
        margin-left: 0;
        padding-inline: 1rem;
    }
}

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 32%),
        radial-gradient(circle at 85% 18%, rgba(125, 211, 252, 0.14), transparent 26%),
        linear-gradient(135deg, #10192c 0%, #17243a 38%, #22324b 100%);
    color: #e2e8f0;
    font-family: "Manrope", sans-serif;
}

.auth-page--compact {
    display: flex;
    align-items: center;
}

.auth-scene {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    position: relative;
    overflow: hidden;
}

.auth-scene::before,
.auth-scene::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.8;
}

.auth-scene::before {
    width: 320px;
    height: 320px;
    left: -120px;
    top: 60px;
    background: rgba(96, 165, 250, 0.2);
}

.auth-scene::after {
    width: 280px;
    height: 280px;
    right: -100px;
    bottom: 40px;
    background: rgba(56, 189, 248, 0.16);
}

.auth-language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.auth-language-switcher__option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.auth-language-switcher__option:hover,
.auth-language-switcher__option:focus,
.auth-language-switcher__option--active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.88);
}

.auth-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 460px);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(20px);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.38);
    position: relative;
    z-index: 1;
}

.auth-shell--register {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
}

.auth-shell--portal-results {
    width: min(1320px, 100%);
    display: block;
}

.auth-shell--login-minimal {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 430px);
}

.auth-showcase {
    position: relative;
    padding: 56px 48px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.66)),
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 32%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.auth-showcase--minimal {
    gap: 1.1rem;
    padding: 48px 42px;
}

.auth-showcase::after {
    content: "";
    position: absolute;
    inset: 28px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.auth-brand-mark {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.95));
    color: #eff6ff;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.08em;
    box-shadow: 0 22px 40px rgba(14, 165, 233, 0.24);
}

.auth-showcase__badge,
.auth-status-card__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #dbeafe;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-showcase__title,
.auth-status-card__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #f8fafc;
}

.auth-showcase__text,
.auth-status-card__text {
    margin: 0;
    max-width: 620px;
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(226, 232, 240, 0.84);
}

.auth-showcase--minimal .auth-showcase__title {
    max-width: 560px;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.auth-showcase--minimal .auth-showcase__text {
    max-width: 560px;
    font-size: 0.98rem;
    line-height: 1.7;
}

.auth-showcase__highlights {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.auth-showcase__minimal-list {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    display: grid;
    gap: 0.85rem;
    max-width: 580px;
}

.auth-showcase__minimal-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.88);
}

.auth-showcase__minimal-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.22);
    color: #bfdbfe;
}

.auth-highlight-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-highlight-card__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(14, 165, 233, 0.9));
    color: #eff6ff;
    font-size: 1rem;
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.2);
}

.auth-highlight-card strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: #f8fafc;
}

.auth-highlight-card p {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.6;
}

.auth-page--billing .auth-panel__inner {
    width: min(100%, 500px);
}

.auth-inline-help {
    margin-top: -0.1rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(191, 219, 254, 0.84);
}

.billing-form {
    display: grid;
    gap: 0.15rem;
}

.billing-plan-list {
    display: grid;
    gap: 0.85rem;
}

.billing-plan-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    cursor: pointer;
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.billing-plan-card:hover {
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.billing-plan-card:has(.billing-plan-card__input:checked) {
    border-color: rgba(37, 99, 235, 0.4);
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(248, 250, 252, 0.98));
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.14);
}

.billing-plan-card__input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.3rem;
    accent-color: #2563eb;
    flex: 0 0 auto;
}

.billing-plan-card__body {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.billing-plan-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.billing-plan-card__name {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.billing-plan-card__price {
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.billing-plan-card__badge {
    display: inline-flex;
    width: fit-content;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.billing-plan-card__description,
.billing-plan-card__meta {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #64748b;
}

.billing-plan-card__meta {
    color: #475569;
}

.billing-plan-card--recommended {
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(248, 250, 252, 0.96));
    border-color: rgba(59, 130, 246, 0.24);
}

.auth-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 255, 0.95));
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.auth-panel--portal-results {
    width: 100%;
}

.auth-panel__inner {
    width: min(100%, 360px);
}

.auth-panel--portal-results .auth-panel__inner {
    width: min(100%, 1180px);
}

.auth-panel--portal-results .auth-panel__header,
.auth-panel--portal-results .auth-form {
    max-width: 760px;
}

.auth-panel__header {
    margin-bottom: 1.5rem;
}

.auth-panel__eyebrow {
    display: inline-flex;
    margin-bottom: 0.8rem;
    color: #1d4ed8;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.auth-panel__title {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.auth-panel__subtitle {
    margin: 0.65rem 0 0;
    color: #52637a;
    line-height: 1.7;
}

.auth-form__label {
    font-weight: 700;
    color: #1e293b;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap__icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    z-index: 2;
}

.auth-form__control {
    min-height: 54px;
    padding-left: 46px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.auth-form__control:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.1);
}

.auth-form__control--password {
    padding-right: 54px;
}

.auth-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #64748b;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

.auth-submit-button {
    min-height: 52px;
    margin-top: 0.35rem;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
}

.auth-form__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
}

.auth-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #2563eb;
    cursor: pointer;
}

.auth-checkbox span {
    line-height: 1.3;
}

.auth-inline-link {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.auth-inline-link:hover,
.auth-inline-link:focus {
    text-decoration: underline;
}

[data-theme="dark"] .auth-checkbox {
    color: #cbd5e1;
}

.auth-form__meta .auth-inline-link {
    margin-left: auto;
}

@media (max-width: 575px) {
    .auth-form__meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-form__meta .auth-inline-link {
        margin-left: 0;
    }
}

.auth-alert {
    border-radius: 16px;
    border: none;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.auth-panel__footer {
    margin-top: 1.5rem;
    color: #52637a;
    text-align: center;
}

.auth-panel__footer--stacked {
    margin-top: 0;
}

.auth-panel__footer a {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.auth-panel__footer a:hover,
.auth-panel__footer a:focus {
    text-decoration: underline;
}

.public-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.7rem 0.9rem;
}

.public-legal-links__prefix {
    color: #52637a;
    font-size: 0.92rem;
    font-weight: 700;
}

.public-legal-links__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.public-legal-links__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(248, 250, 252, 0.9);
    color: #1d4ed8;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.public-legal-links__link:hover,
.public-legal-links__link:focus {
    background: #ffffff;
    border-color: rgba(59, 130, 246, 0.3);
    color: #1e40af;
    text-decoration: none;
}

.auth-status-shell {
    width: min(100%, 560px);
    position: relative;
    z-index: 1;
}

.auth-status-card {
    padding: 42px 34px;
    text-align: center;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22);
}

.auth-status-card__icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    font-size: 2rem;
    color: #ffffff;
}

.auth-status-card__icon--success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.auth-status-card__icon--warning {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.auth-status-card__icon--info {
    background: linear-gradient(135deg, #2563eb, #0891b2);
}

.auth-status-card__title {
    font-size: 2.2rem;
    color: #0f172a;
}

.auth-status-card__text {
    max-width: 430px;
    margin: 1rem auto 0;
    color: #475569;
}

.auth-status-card__actions {
    margin-top: 1.5rem;
}

.auth-page--legal .auth-scene {
    padding: clamp(24px, 4vw, 44px) 18px;
}

.legal-document-shell {
    width: min(100%, 960px);
}

.legal-document-card {
    padding: clamp(28px, 4vw, 44px);
}

.legal-document-card__back-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.1rem;
}

.legal-document-card__back {
    border-radius: 999px;
    padding-inline: 1rem;
}

.legal-document-card__header {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.legal-document-card__header .auth-status-card__text {
    max-width: none;
}

.legal-document-card__notice {
    border-radius: 20px;
    text-align: center;
}

@media (max-width: 767px) {
    .legal-document-card__back-row {
        justify-content: center;
    }

    .public-legal-links,
    .public-legal-links__items {
        flex-direction: column;
    }

    .public-legal-links__link {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .auth-shell,
    .auth-shell--register {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        padding: 40px 28px 28px;
    }

    .auth-panel {
        padding: 28px 22px;
    }

    .inventory-detail-shell__header {
        align-items: start;
    }

    .inventory-detail-shell__code {
        margin-left: 0;
        align-items: flex-start;
    }

    .inventory-detail-metrics,
    .inventory-detail-grid,
    .inventory-detail-price-snapshot,
    .inventory-price-editor__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .auth-scene {
        padding: 18px;
    }

    .auth-showcase,
    .auth-panel,
    .auth-status-card {
        padding-left: 20px;
        padding-right: 20px;
    }

    .auth-showcase__title,
    .auth-status-card__title {
        font-size: 1.9rem;
    }

    .auth-highlight-card {
        grid-template-columns: 1fr;
    }

    .auth-page--billing .auth-panel__inner {
        width: 100%;
    }

    .billing-plan-card {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .billing-plan-card__input {
        margin-top: 0;
    }

    .billing-plan-card__row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }
}

/* Unified page shell */
.crm-page-shell {
    padding-inline: 0.35rem;
}

.crm-page-shell > h1,
.crm-page-shell .row > .col > h1,
.crm-page-shell .d-flex > h1 {
    margin-bottom: 1.35rem;
}

.crm-page-shell .card,
.crm-page-shell form.card,
.crm-page-shell .table-container,
.crm-page-shell .nav-tabs,
.crm-page-shell .tab-content > .tab-pane > .card {
    border-radius: 22px;
}

.crm-page-shell .card,
.crm-page-shell form.card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.crm-page-shell .row {
    row-gap: 0.35rem;
}

.crm-page-shell .form-label {
    margin-bottom: 0.45rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.crm-page-shell .form-control,
.crm-page-shell .form-select,
.crm-page-shell .btn,
.crm-page-shell .input-group-text {
    min-height: 46px;
    border-radius: 14px;
}

.crm-page-shell textarea.form-control {
    min-height: 104px;
}

.inventory-detail-shell__header {
    align-items: end;
    gap: 1.2rem;
}

.inventory-detail-shell__subtitle {
    margin-top: 0.35rem;
    color: var(--crm-text-muted, #64748b);
    max-width: 760px;
    line-height: 1.65;
}

.inventory-detail-shell__code {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.inventory-detail-shell__code-label {
    color: var(--crm-text-muted, #64748b);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.inventory-detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.inventory-detail-metric {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: var(--crm-surface-frost, rgba(255, 255, 255, 0.82));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.16));
}

.inventory-detail-metric--wide {
    background: linear-gradient(180deg, var(--crm-accent-soft, rgba(37, 99, 235, 0.08)), var(--crm-surface-frost, rgba(255, 255, 255, 0.82)));
}

.inventory-detail-metric__label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--crm-muted, #64748b);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.inventory-detail-metric__value {
    display: block;
    color: var(--crm-text, #0f172a);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.inventory-detail-metric__value--status {
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0;
}

.inventory-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr) minmax(0, 0.92fr);
    gap: 1rem;
}

.inventory-detail-panel {
    padding: 1.15rem;
    border-radius: 20px;
    background: var(--crm-surface-frost, rgba(255, 255, 255, 0.82));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.16));
}

.inventory-detail-panel__header {
    margin-bottom: 0.95rem;
}

.inventory-detail-panel__header--inline {
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.inventory-detail-panel__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.inventory-detail-panel__subtitle {
    margin-top: 0.35rem;
    color: var(--crm-muted, #64748b);
    font-size: 0.92rem;
    line-height: 1.6;
}

.inventory-detail-keyvals {
    display: grid;
    gap: 0.85rem;
}

.inventory-detail-keyval {
    padding: 0.82rem 0.95rem;
    border-radius: 16px;
    background: var(--crm-surface, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.12));
}

.inventory-detail-keyval__label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--crm-muted, #64748b);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.inventory-detail-keyval__value {
    display: block;
    color: var(--crm-text, #0f172a);
    font-size: 1rem;
    line-height: 1.45;
    word-break: break-word;
}

.inventory-detail-price-snapshot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.inventory-detail-price-snapshot__item {
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: var(--crm-surface, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.12));
}

.inventory-detail-price-snapshot__item span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--crm-muted, #64748b);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.inventory-detail-price-snapshot__item strong {
    color: var(--crm-text, #0f172a);
    font-size: 1rem;
}

.inventory-price-editor + .inventory-price-editor {
    margin-top: 1rem;
}


.inventory-price-editor__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
}

.inventory-stock-actions__serials textarea.form-control {
    min-height: 132px;
}

.inventory-stock-serial-status {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.16));
    background: var(--crm-surface, rgba(255, 255, 255, 0.9));
}

.inventory-stock-serial-status__label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--crm-muted, #64748b);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.inventory-stock-serial-status__value {
    display: block;
    color: var(--crm-text, #0f172a);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.55;
}

[data-theme="dark"] .inventory-detail-metric,
[data-theme="dark"] .inventory-detail-panel {
    background: var(--crm-surface-frost, rgba(15, 23, 42, 0.42));
    border-color: var(--crm-border, rgba(96, 165, 250, 0.16));
}

[data-theme="dark"] .inventory-detail-keyval,
[data-theme="dark"] .inventory-detail-price-snapshot__item {
    background: var(--crm-surface, rgba(15, 23, 42, 0.46));
    border-color: var(--crm-border, rgba(148, 163, 184, 0.12));
}

[data-theme="dark"] .inventory-detail-keyval__value,
[data-theme="dark"] .inventory-detail-metric__value,
[data-theme="dark"] .inventory-detail-price-snapshot__item strong {
    color: var(--crm-text, #f8fafc);
}

[data-theme="dark"] .inventory-detail-shell__subtitle,
[data-theme="dark"] .inventory-detail-shell__code-label,
[data-theme="dark"] .inventory-detail-panel__subtitle,
[data-theme="dark"] .inventory-detail-keyval__label,
[data-theme="dark"] .inventory-detail-metric__label,
[data-theme="dark"] .inventory-detail-price-snapshot__item span {
    color: var(--crm-muted, rgba(226, 232, 240, 0.72));
}

.crm-page-shell .input-group > .form-control,
.crm-page-shell .input-group > .form-select {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.crm-page-shell .input-group > .btn:last-child,
.crm-page-shell .input-group > .input-group-text:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.crm-page-shell .btn {
    font-weight: 600;
}

.crm-page-shell .form-label {
    color: rgba(15, 23, 42, 0.92);
    font-weight: 700;
}

.crm-page-shell .form-control::placeholder,
.crm-page-shell textarea.form-control::placeholder {
    color: rgba(71, 85, 105, 0.9);
}

.crm-page-shell .table-container {
    overflow-x: auto;
    overflow-y: visible !important;
    max-height: none !important;
    padding-bottom: 0.35rem;
}

.crm-page-shell table {
    margin-bottom: 0;
    min-width: 100%;
}

.crm-page-shell .nav-tabs {
    gap: 0.45rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.crm-page-shell .nav-tabs .nav-link {
    border-radius: 14px 14px 0 0;
    padding: 0.8rem 1rem;
    border: 1px solid var(--crm-border);
    border-bottom: none;
    background: var(--crm-surface-frost);
    color: var(--crm-muted);
    font-weight: 700;
}

.crm-page-shell .nav-tabs .nav-link:hover,
.crm-page-shell .nav-tabs .nav-link:focus {
    background: color-mix(in srgb, var(--crm-surface-frost) 82%, white 18%);
    color: var(--crm-heading);
    border-color: var(--crm-border);
}

.crm-page-shell .nav-tabs .nav-link.active,
.crm-page-shell .nav-tabs .nav-link.active:hover,
.crm-page-shell .nav-tabs .nav-link.active:focus {
    background: var(--crm-surface-elevated);
    color: var(--crm-heading);
    border-color: var(--crm-border);
    border-bottom-color: var(--crm-surface-elevated);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.crm-page-shell .input-group .btn {
    min-width: 52px;
}

.crm-page-shell .table td,
.crm-page-shell .table th {
    vertical-align: middle;
}

.crm-page-shell .user-management-form__row {
    align-items: flex-end;
}

.crm-page-shell .user-management-form__submit {
    align-self: stretch;
}

.crm-page-shell .user-management-form__submit .btn {
    height: 46px;
}

@media (max-width: 991.98px) {
    .crm-page-shell .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.35rem;
        scrollbar-width: thin;
    }

    .crm-page-shell .nav-tabs .nav-item {
        flex: 0 0 auto;
    }

    .crm-page-shell .nav-tabs .nav-link {
        white-space: nowrap;
    }
}

@media (max-width: 767.98px) {
    .crm-page-shell .nav-tabs .nav-link {
        padding: 0.72rem 0.9rem;
    }

    .crm-page-shell .card,
    .crm-page-shell form.card {
        border-radius: 18px;
    }

    .crm-page-shell .card-body {
        padding: 1rem;
    }

    .crm-page-shell .input-group,
    .crm-page-shell .settings-inline-actions {
        flex-wrap: wrap;
    }

    .crm-page-shell .settings-inline-actions > .btn,
    .crm-page-shell .input-group .btn {
        width: 100%;
    }

    .crm-page-shell .table-container {
        margin-inline: -0.15rem;
    }

    .settings-section-nav .card-body {
        padding: 0.85rem;
    }

    .settings-section-nav .btn {
        flex: 1 1 calc(50% - 0.5rem);
        justify-content: center;
    }

    .user-management-form__submit {
        width: 100%;
    }

    .user-management-form__submit .btn {
        width: 100%;
    }

    .crm-entity-list-shell .crm-filters-toolbar {
        gap: 0.75rem;
        padding: 0.85rem 0.9rem;
        border-radius: 18px;
    }

    .crm-entity-list-shell .crm-filters-toolbar__filters {
        gap: 0.65rem;
    }

    .crm-entity-list-shell .crm-filters-toolbar__field {
        min-width: 0;
    }

    .crm-entity-list-shell .crm-filters-toolbar__actions,
    .crm-entity-list-shell .crm-filters-toolbar__actions .btn {
        width: 100%;
    }

    .crm-entity-list-shell .crm-table-shell {
        padding: 0.35rem;
    }

    .crm-entity-list-shell .table-container {
        border-radius: 16px;
    }

    .crm-entity-list-shell .table th,
    .crm-entity-list-shell .table td {
        padding: 0.62rem 0.7rem;
        font-size: 0.83rem;
        line-height: 1.35;
    }

    .crm-entity-list-shell .table th {
        font-size: 0.76rem;
    }

    .customers-list-table {
        min-width: 760px;
    }

    .tickets-list-table {
        min-width: 820px;
    }

    .invoices-list-table {
        min-width: 800px;
    }

    .estimates-list-table {
        min-width: 740px;
    }

    .inventory-list-table {
        min-width: 860px;
    }

    .device-list-table {
        min-width: 760px;
    }

    .orders-list-table {
        min-width: 780px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .crm-entity-list-shell .crm-filters-toolbar {
        padding: 0.95rem 1rem;
    }

    .crm-entity-list-shell .table th,
    .crm-entity-list-shell .table td {
        padding: 0.72rem 0.78rem;
        font-size: 0.88rem;
    }

    .customers-list-table {
        min-width: 900px;
    }

    .tickets-list-table {
        min-width: 980px;
    }

    .invoices-list-table {
        min-width: 940px;
    }

    .estimates-list-table {
        min-width: 860px;
    }

    .inventory-list-table {
        min-width: 1020px;
    }

    .device-list-table {
        min-width: 900px;
    }

    .orders-list-table {
        min-width: 920px;
    }
}

html[data-theme="dark"] .crm-page-shell .card,
body[data-theme="dark"] .crm-page-shell .card,
html[data-theme="dark"] .crm-page-shell form.card,
body[data-theme="dark"] .crm-page-shell form.card,
html[data-theme="slate"] .crm-page-shell .card,
body[data-theme="slate"] .crm-page-shell .card,
html[data-theme="slate"] .crm-page-shell form.card,
body[data-theme="slate"] .crm-page-shell form.card,
html[data-theme="dusk"] .crm-page-shell .card,
body[data-theme="dusk"] .crm-page-shell .card,
html[data-theme="dusk"] .crm-page-shell form.card,
body[data-theme="dusk"] .crm-page-shell form.card,
html[data-theme="midnight"] .crm-page-shell .card,
body[data-theme="midnight"] .crm-page-shell .card,
html[data-theme="midnight"] .crm-page-shell form.card,
body[data-theme="midnight"] .crm-page-shell form.card {
    background: var(--crm-surface-elevated);
    border-color: var(--crm-border);
    box-shadow: var(--crm-shadow-soft);
}

html[data-theme="dark"] .crm-page-shell .table-container,
body[data-theme="dark"] .crm-page-shell .table-container,
html[data-theme="slate"] .crm-page-shell .table-container,
body[data-theme="slate"] .crm-page-shell .table-container,
html[data-theme="dusk"] .crm-page-shell .table-container,
body[data-theme="dusk"] .crm-page-shell .table-container,
html[data-theme="olive"] .crm-page-shell .table-container,
body[data-theme="olive"] .crm-page-shell .table-container,
html[data-theme="terracotta"] .crm-page-shell .table-container,
body[data-theme="terracotta"] .crm-page-shell .table-container,
html[data-theme="midnight"] .crm-page-shell .table-container,
body[data-theme="midnight"] .crm-page-shell .table-container {
    background: transparent;
}

.crm-page-shell .crm-table-shell .table thead th,
.crm-page-shell .crm-table-shell .table tbody td {
    background-clip: padding-box;
}

html[data-theme="dark"] .crm-page-shell .crm-table-shell,
body[data-theme="dark"] .crm-page-shell .crm-table-shell,
html[data-theme="slate"] .crm-page-shell .crm-table-shell,
body[data-theme="slate"] .crm-page-shell .crm-table-shell,
html[data-theme="dusk"] .crm-page-shell .crm-table-shell,
body[data-theme="dusk"] .crm-page-shell .crm-table-shell,
html[data-theme="midnight"] .crm-page-shell .crm-table-shell,
body[data-theme="midnight"] .crm-page-shell .crm-table-shell {
    background: var(--crm-surface-elevated);
    border-color: var(--crm-border);
}

html[data-theme="olive"] .crm-page-shell .crm-table-shell,
body[data-theme="olive"] .crm-page-shell .crm-table-shell,
html[data-theme="terracotta"] .crm-page-shell .crm-table-shell,
body[data-theme="terracotta"] .crm-page-shell .crm-table-shell {
    background: var(--crm-surface-elevated);
    border-color: var(--crm-border);
    box-shadow: var(--crm-shadow-soft);
}

html[data-theme="dark"] .crm-page-shell .form-control,
body[data-theme="dark"] .crm-page-shell .form-control,
html[data-theme="dark"] .crm-page-shell .form-select,
body[data-theme="dark"] .crm-page-shell .form-select,
html[data-theme="slate"] .crm-page-shell .form-control,
body[data-theme="slate"] .crm-page-shell .form-control,
html[data-theme="slate"] .crm-page-shell .form-select,
body[data-theme="slate"] .crm-page-shell .form-select,
html[data-theme="dusk"] .crm-page-shell .form-control,
body[data-theme="dusk"] .crm-page-shell .form-control,
html[data-theme="dusk"] .crm-page-shell .form-select,
body[data-theme="dusk"] .crm-page-shell .form-select,
html[data-theme="midnight"] .crm-page-shell .form-control,
body[data-theme="midnight"] .crm-page-shell .form-control,
html[data-theme="midnight"] .crm-page-shell .form-select,
body[data-theme="midnight"] .crm-page-shell .form-select {
    background: var(--crm-surface-frost);
    border-color: var(--crm-input-border, var(--crm-border));
    color: var(--crm-text);
}

html[data-theme="dark"] .crm-page-shell .form-label,
body[data-theme="dark"] .crm-page-shell .form-label,
html[data-theme="slate"] .crm-page-shell .form-label,
body[data-theme="slate"] .crm-page-shell .form-label,
html[data-theme="dusk"] .crm-page-shell .form-label,
body[data-theme="dusk"] .crm-page-shell .form-label,
html[data-theme="midnight"] .crm-page-shell .form-label,
body[data-theme="midnight"] .crm-page-shell .form-label {
    color: var(--crm-heading, rgba(241, 245, 249, 0.96));
}

html[data-theme="dark"] .crm-page-shell .text-muted,
body[data-theme="dark"] .crm-page-shell .text-muted,
html[data-theme="dark"] .crm-page-shell small.text-muted,
body[data-theme="dark"] .crm-page-shell small.text-muted,
html[data-theme="slate"] .crm-page-shell .text-muted,
body[data-theme="slate"] .crm-page-shell .text-muted,
html[data-theme="slate"] .crm-page-shell small.text-muted,
body[data-theme="slate"] .crm-page-shell small.text-muted,
html[data-theme="dusk"] .crm-page-shell .text-muted,
body[data-theme="dusk"] .crm-page-shell .text-muted,
html[data-theme="dusk"] .crm-page-shell small.text-muted,
body[data-theme="dusk"] .crm-page-shell small.text-muted,
html[data-theme="midnight"] .crm-page-shell .text-muted,
body[data-theme="midnight"] .crm-page-shell .text-muted,
html[data-theme="midnight"] .crm-page-shell small.text-muted,
body[data-theme="midnight"] .crm-page-shell small.text-muted {
    color: var(--crm-muted, rgba(191, 219, 254, 0.72)) !important;
}

html[data-theme="dark"] .crm-page-shell .form-control::placeholder,
body[data-theme="dark"] .crm-page-shell .form-control::placeholder,
html[data-theme="dark"] .crm-page-shell textarea.form-control::placeholder,
body[data-theme="dark"] .crm-page-shell textarea.form-control::placeholder,
html[data-theme="slate"] .crm-page-shell .form-control::placeholder,
body[data-theme="slate"] .crm-page-shell .form-control::placeholder,
html[data-theme="slate"] .crm-page-shell textarea.form-control::placeholder,
body[data-theme="slate"] .crm-page-shell textarea.form-control::placeholder,
html[data-theme="dusk"] .crm-page-shell .form-control::placeholder,
body[data-theme="dusk"] .crm-page-shell .form-control::placeholder,
html[data-theme="dusk"] .crm-page-shell textarea.form-control::placeholder,
body[data-theme="dusk"] .crm-page-shell textarea.form-control::placeholder,
html[data-theme="midnight"] .crm-page-shell .form-control::placeholder,
body[data-theme="midnight"] .crm-page-shell .form-control::placeholder,
html[data-theme="midnight"] .crm-page-shell textarea.form-control::placeholder,
body[data-theme="midnight"] .crm-page-shell textarea.form-control::placeholder {
    color: color-mix(in srgb, var(--crm-muted, rgba(226, 232, 240, 0.78)) 92%, transparent);
}

html[data-theme="dark"] .crm-filters-toolbar .form-label,
body[data-theme="dark"] .crm-filters-toolbar .form-label,
html[data-theme="slate"] .crm-filters-toolbar .form-label,
body[data-theme="slate"] .crm-filters-toolbar .form-label,
html[data-theme="dusk"] .crm-filters-toolbar .form-label,
body[data-theme="dusk"] .crm-filters-toolbar .form-label,
html[data-theme="midnight"] .crm-filters-toolbar .form-label,
body[data-theme="midnight"] .crm-filters-toolbar .form-label {
    color: var(--crm-heading, rgba(226, 232, 240, 0.9));
}

.crm-filters-toolbar .form-control:focus,
.crm-filters-toolbar .form-select:focus {
    border-color: color-mix(in srgb, var(--crm-accent) 62%, white 38%);
    box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--crm-accent) 18%, transparent);
}

html[data-theme="dark"] .crm-page-shell input[type="date"],
body[data-theme="dark"] .crm-page-shell input[type="date"],
html[data-theme="dark"] .crm-page-shell input[type="datetime-local"],
body[data-theme="dark"] .crm-page-shell input[type="datetime-local"],
html[data-theme="slate"] .crm-page-shell input[type="date"],
body[data-theme="slate"] .crm-page-shell input[type="date"],
html[data-theme="slate"] .crm-page-shell input[type="datetime-local"],
body[data-theme="slate"] .crm-page-shell input[type="datetime-local"],
html[data-theme="dusk"] .crm-page-shell input[type="date"],
body[data-theme="dusk"] .crm-page-shell input[type="date"],
html[data-theme="dusk"] .crm-page-shell input[type="datetime-local"],
body[data-theme="dusk"] .crm-page-shell input[type="datetime-local"],
html[data-theme="midnight"] .crm-page-shell input[type="date"],
body[data-theme="midnight"] .crm-page-shell input[type="date"],
html[data-theme="midnight"] .crm-page-shell input[type="datetime-local"],
body[data-theme="midnight"] .crm-page-shell input[type="datetime-local"] {
    color-scheme: dark;
}

html[data-theme="dark"] .crm-page-shell input[type="date"]::-webkit-calendar-picker-indicator,
body[data-theme="dark"] .crm-page-shell input[type="date"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] .crm-page-shell input[type="datetime-local"]::-webkit-calendar-picker-indicator,
body[data-theme="dark"] .crm-page-shell input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html[data-theme="slate"] .crm-page-shell input[type="date"]::-webkit-calendar-picker-indicator,
body[data-theme="slate"] .crm-page-shell input[type="date"]::-webkit-calendar-picker-indicator,
html[data-theme="slate"] .crm-page-shell input[type="datetime-local"]::-webkit-calendar-picker-indicator,
body[data-theme="slate"] .crm-page-shell input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html[data-theme="dusk"] .crm-page-shell input[type="date"]::-webkit-calendar-picker-indicator,
body[data-theme="dusk"] .crm-page-shell input[type="date"]::-webkit-calendar-picker-indicator,
html[data-theme="dusk"] .crm-page-shell input[type="datetime-local"]::-webkit-calendar-picker-indicator,
body[data-theme="dusk"] .crm-page-shell input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html[data-theme="midnight"] .crm-page-shell input[type="date"]::-webkit-calendar-picker-indicator,
body[data-theme="midnight"] .crm-page-shell input[type="date"]::-webkit-calendar-picker-indicator,
html[data-theme="midnight"] .crm-page-shell input[type="datetime-local"]::-webkit-calendar-picker-indicator,
body[data-theme="midnight"] .crm-page-shell input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(0.92) brightness(1.1);
}

.appointment-status-cell {
    display: grid;
    gap: 0.45rem;
}

.appointment-status-select {
    min-width: 140px;
}

#appointmentFormColumn .card > #newAppointmentTitle,
#appointmentFormColumn .card > h3 {
    color: var(--crm-heading);
}

.crm-row-highlight {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: -2px;
}

.crm-message-row--unread td {
    font-weight: 700;
}

#messagePreviewCard {
    border: 1px solid rgba(148, 163, 184, 0.18);
}

#messagePreviewBody {
    white-space: pre-wrap;
    line-height: 1.65;
}

.messages-layout .card {
    min-height: 100%;
    background: var(--crm-surface-elevated);
    border: 1px solid var(--crm-border);
}

.messages-sidebar__header {
    margin-bottom: 1rem;
}

.messages-sidebar__header h3,
.messages-thread-card__header h3 {
    color: var(--crm-heading);
}

.messages-conversation-list {
    display: grid;
    gap: 0.7rem;
    max-height: 680px;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.messages-conversation-list__empty,
.messages-thread-body__empty {
    padding: 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    color: var(--crm-muted);
    text-align: center;
}

.messages-conversation-item {
    width: 100%;
    text-align: left;
    border: 1px solid var(--crm-border);
    border-radius: 16px;
    background: var(--crm-surface-frost);
    padding: 0.95rem 1rem;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.messages-conversation-item:hover,
.messages-conversation-item--active {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.12);
}

.messages-conversation-item__header,
.messages-conversation-item__preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.messages-conversation-item__time {
    color: var(--crm-muted);
    font-size: 0.82rem;
}

.messages-conversation-item__preview {
    color: var(--crm-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.messages-conversation-item__badge {
    min-width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: #2563eb;
}

.messages-thread-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
}

.messages-thread-card__header {
    padding: 1.35rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.messages-thread-card__meta {
    color: var(--crm-muted);
}

.messages-thread-body {
    min-height: 420px;
    max-height: 640px;
    overflow-y: auto;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top right, var(--crm-accent-soft, rgba(59, 130, 246, 0.08)), transparent 35%),
        linear-gradient(180deg, var(--crm-surface, rgba(248, 250, 252, 0.86)), var(--crm-surface-frost, rgba(241, 245, 249, 0.86)));
}

.message-bubble-row {
    display: flex;
    margin-bottom: 0.9rem;
}

.message-bubble-row--mine {
    justify-content: flex-end;
}

.message-bubble-row--their {
    justify-content: flex-start;
}

.message-bubble {
    max-width: min(78%, 720px);
    border-radius: 18px;
    padding: 0.9rem 1rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.message-bubble--mine {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #eff6ff;
    border-bottom-right-radius: 8px;
}

.message-bubble--their {
    background: var(--crm-surface);
    color: var(--crm-text);
    border: 1px solid var(--crm-border);
    border-bottom-left-radius: 8px;
}

.message-bubble__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.78rem;
    margin-bottom: 0.45rem;
    opacity: 0.86;
}

.message-bubble__body {
    white-space: pre-wrap;
    line-height: 1.6;
}

.messages-thread-composer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.messages-thread-composer__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.9rem;
}

.messages-thread-composer__actions small {
    color: var(--crm-muted);
}

[data-theme="dark"] .messages-conversation-item,
[data-theme="slate"] .messages-conversation-item,
[data-theme="dusk"] .messages-conversation-item,
[data-theme="midnight"] .messages-conversation-item {
    background: var(--crm-surface-frost, rgba(30, 41, 59, 0.78));
    border-color: var(--crm-border, rgba(96, 165, 250, 0.16));
}

[data-theme="dark"] .messages-conversation-item__preview,
[data-theme="dark"] .messages-thread-card__meta,
[data-theme="dark"] .messages-thread-composer__actions small,
[data-theme="dark"] .messages-conversation-item__time,
[data-theme="slate"] .messages-conversation-item__preview,
[data-theme="slate"] .messages-thread-card__meta,
[data-theme="slate"] .messages-thread-composer__actions small,
[data-theme="slate"] .messages-conversation-item__time,
[data-theme="dusk"] .messages-conversation-item__preview,
[data-theme="dusk"] .messages-thread-card__meta,
[data-theme="dusk"] .messages-thread-composer__actions small,
[data-theme="dusk"] .messages-conversation-item__time,
[data-theme="midnight"] .messages-conversation-item__preview,
[data-theme="midnight"] .messages-thread-card__meta,
[data-theme="midnight"] .messages-thread-composer__actions small,
[data-theme="midnight"] .messages-conversation-item__time {
    color: var(--crm-muted, rgba(226, 232, 240, 0.78));
}

[data-theme="dark"] .messages-thread-body,
[data-theme="slate"] .messages-thread-body,
[data-theme="dusk"] .messages-thread-body,
[data-theme="midnight"] .messages-thread-body {
    background:
        radial-gradient(circle at top right, var(--crm-accent-soft, rgba(59, 130, 246, 0.16)), transparent 30%),
        linear-gradient(180deg, var(--crm-surface, rgba(15, 23, 42, 0.9)), var(--crm-surface-frost, rgba(15, 23, 42, 0.78)));
}

[data-theme="dark"] .message-bubble--their,
[data-theme="slate"] .message-bubble--their,
[data-theme="dusk"] .message-bubble--their,
[data-theme="midnight"] .message-bubble--their {
    background: var(--crm-surface, rgba(30, 41, 59, 0.9));
    color: var(--crm-text, #e2e8f0);
    border-color: var(--crm-border, rgba(96, 165, 250, 0.14));
}

[data-theme="dark"] .messages-conversation-list__empty,
[data-theme="dark"] .messages-thread-body__empty,
[data-theme="slate"] .messages-conversation-list__empty,
[data-theme="slate"] .messages-thread-body__empty,
[data-theme="dusk"] .messages-conversation-list__empty,
[data-theme="dusk"] .messages-thread-body__empty,
[data-theme="midnight"] .messages-conversation-list__empty,
[data-theme="midnight"] .messages-thread-body__empty {
    color: var(--crm-muted, rgba(226, 232, 240, 0.78));
    border-color: var(--crm-border, rgba(96, 165, 250, 0.22));
}

.marketing-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 24%),
        linear-gradient(180deg, #081120 0%, #0f172a 42%, #111827 100%);
    color: #e5eefb;
}

.marketing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 17, 32, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.marketing-nav__inner,
.marketing-main,
.marketing-footer {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.marketing-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 0;
}

.marketing-nav__brand {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

.marketing-nav__brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.marketing-nav__login {
    min-width: 8.6rem;
}

.marketing-nav__links,
.marketing-nav__actions,
.marketing-hero__actions,
.marketing-hero__badges,
.marketing-payment-list {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.marketing-nav__links {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    flex-wrap: nowrap;
}

.marketing-nav__links a {
    color: rgba(226, 232, 240, 0.84);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.marketing-nav__actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

.marketing-main {
    padding: 2.4rem 0 4.5rem;
}

.marketing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
    gap: 1.4rem;
    align-items: stretch;
}

.marketing-hero__copy,
.marketing-hero__panel-card,
.marketing-section,
.marketing-support-card {
    border: 1px solid rgba(96, 165, 250, 0.16);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.34);
}

.marketing-hero__copy,
.marketing-hero__panel-card {
    border-radius: 28px;
    padding: 2rem;
}

.marketing-hero__copy {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.76));
}

.marketing-hero__eyebrow {
    display: inline-flex;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.18);
    color: #93c5fd;
    font-weight: 700;
    margin-bottom: 1rem;
}

.marketing-hero h1 {
    font-size: clamp(2.3rem, 4vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    color: #f8fafc;
}

.marketing-hero__lead {
    max-width: 58rem;
    font-size: 1.03rem;
}

.marketing-hero p,
.marketing-section__heading p,
.marketing-feature-card p,
.marketing-pricing-card p,
.marketing-support-card p,
.marketing-hero__panel-list p {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.7;
}

.marketing-hero__notice {
    border-radius: 16px;
}

.marketing-google-button,
.auth-social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.marketing-hero__badges span,
.marketing-payment-list span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.58rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #dbeafe;
    font-weight: 600;
}

.marketing-hero__mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
    margin-top: 1.25rem;
}

.marketing-mini-card {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #eff6ff;
    min-height: 94px;
    display: flex;
    align-items: center;
}

.marketing-mini-card strong {
    font-size: 0.96rem;
    line-height: 1.45;
}

.marketing-hero__panel-header,
.marketing-support-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.marketing-hero__panel-pill {
    display: inline-flex;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
    font-size: 0.82rem;
    font-weight: 700;
}

.marketing-hero__panel-subtitle {
    color: rgba(191, 219, 254, 0.82);
    font-size: 0.92rem;
    margin-top: 0.25rem;
}

.marketing-hero__panel-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
}

.marketing-section {
    border-radius: 28px;
    padding: 1.7rem;
    margin-top: 1.5rem;
}

.marketing-section--compact {
    padding: 1.45rem 1.7rem;
}

.marketing-section__heading h2 {
    color: #f8fafc;
    font-size: clamp(1.7rem, 2.2vw, 2.5rem);
    margin-bottom: 0.55rem;
}

.marketing-feature-grid,
.marketing-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

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

.marketing-feature-card,
.marketing-pricing-card {
    border-radius: 24px;
    padding: 1.35rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(148, 163, 184, 0.14);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.marketing-feature-card:hover,
.marketing-pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.32);
    box-shadow: 0 20px 44px rgba(2, 6, 23, 0.26);
}

.marketing-feature-card i {
    font-size: 1.4rem;
    color: #60a5fa;
    margin-bottom: 0.8rem;
}

.marketing-step-card {
    position: relative;
    overflow: hidden;
}

.marketing-step-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: #dbeafe;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.9rem;
}

.marketing-feature-card h3,
.marketing-pricing-card__name {
    color: #f8fafc;
    font-size: 1.08rem;
    font-weight: 700;
}

.marketing-pricing-card__price {
    display: block;
    font-size: 2rem;
    color: #bfdbfe;
    margin: 0.4rem 0 0.6rem;
    letter-spacing: -0.04em;
}

.marketing-pricing-card--featured {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.24), rgba(30, 41, 59, 0.68));
    border-color: rgba(96, 165, 250, 0.28);
    transform: translateY(-4px);
}

.marketing-footer {
    padding: 0 0 2rem;
    color: rgba(226, 232, 240, 0.68);
    text-align: center;
}

.auth-social-stack {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    color: rgba(100, 116, 139, 0.88);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.auth-divider span {
    position: relative;
    z-index: 1;
    padding: 0 0.7rem;
    background: #ffffff;
}

.auth-social-button {
    border: 1px solid rgba(148, 163, 184, 0.24);
}

@media (max-width: 1199px) {
    .marketing-hero,
    .marketing-feature-grid,
    .marketing-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marketing-hero__mini-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .marketing-nav__inner,
    .marketing-nav__links,
    .marketing-nav__actions,
    .marketing-hero,
    .marketing-feature-grid,
    .marketing-pricing-grid,
    .marketing-support-card {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .marketing-nav__inner {
        align-items: stretch;
    }

    .marketing-nav__links,
    .marketing-nav__actions {
        gap: 0.65rem;
    }

    .marketing-hero__copy,
    .marketing-hero__panel-card,
    .marketing-section {
        padding: 1.35rem;
        border-radius: 22px;
    }
}

/* Public landing page overrides must stay last so generic app body/theme rules
   do not flatten the marketing layout after deployment. */
body.marketing-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    font-family: 'Manrope', Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 24%),
        linear-gradient(180deg, #081120 0%, #0f172a 42%, #111827 100%);
    color: #e5eefb;
}

.public-cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
}

.public-cookie-banner__content {
    width: min(960px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.26);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.32);
    backdrop-filter: blur(18px);
}

.public-cookie-banner__text {
    margin: 0;
    color: #dbe7f6;
    font-size: 0.95rem;
    line-height: 1.55;
}

.public-cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

body.marketing-page .marketing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 17, 32, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

body.marketing-page .marketing-nav__inner,
body.marketing-page .marketing-main,
body.marketing-page .marketing-footer {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

body.marketing-page .marketing-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 0;
}

body.marketing-page .marketing-nav__links,
body.marketing-page .marketing-nav__actions,
body.marketing-page .marketing-hero__actions,
body.marketing-page .marketing-payment-list {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

body.marketing-page .marketing-nav__links a,
body.marketing-page .marketing-nav__brand {
    text-decoration: none;
}

body.marketing-page .marketing-nav__brand {
    color: #f8fafc;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

body.marketing-page .marketing-nav__brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

body.marketing-page .marketing-nav__links a {
    color: rgba(226, 232, 240, 0.84);
    font-weight: 600;
    white-space: nowrap;
}

body.marketing-page .marketing-nav__links {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    flex-wrap: nowrap;
}

body.marketing-page .marketing-nav__actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

body.marketing-page .marketing-main {
    padding: 2.4rem 0 4.5rem;
}

body.marketing-page .marketing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
    gap: 1.4rem;
    align-items: stretch;
}

body.marketing-page .marketing-hero__copy,
body.marketing-page .marketing-hero__panel-card,
body.marketing-page .marketing-section,
body.marketing-page .marketing-support-card {
    border: 1px solid rgba(96, 165, 250, 0.16);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.34);
}

body.marketing-page .marketing-hero__copy,
body.marketing-page .marketing-hero__panel-card {
    border-radius: 28px;
    padding: 2rem;
}

body.marketing-page .marketing-hero__copy {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.76));
}

body.marketing-page .marketing-hero__eyebrow {
    display: inline-flex;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.18);
    color: #93c5fd;
    font-weight: 700;
    margin-bottom: 1rem;
}

body.marketing-page .marketing-hero h1 {
    font-size: clamp(2.3rem, 4vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    color: #f8fafc;
}

body.marketing-page .marketing-hero p,
body.marketing-page .marketing-section__heading p,
body.marketing-page .marketing-feature-card p,
body.marketing-page .marketing-pricing-card p,
body.marketing-page .marketing-support-card p,
body.marketing-page .marketing-hero__panel-list p {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.7;
}

body.marketing-page .marketing-hero__mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
    margin-top: 1.25rem;
}

body.marketing-page .marketing-mini-card {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #eff6ff;
    min-height: 94px;
    display: flex;
    align-items: center;
}

body.marketing-page .marketing-hero__panel-header,
body.marketing-page .marketing-support-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

body.marketing-page .marketing-hero__panel-pill {
    display: inline-flex;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
    font-size: 0.82rem;
    font-weight: 700;
}

body.marketing-page .marketing-hero__panel-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
}

body.marketing-page .marketing-section {
    border-radius: 28px;
    padding: 1.7rem;
    margin-top: 1.5rem;
}

body.marketing-page .marketing-section--compact {
    padding: 1.45rem 1.7rem;
}

body.marketing-page .marketing-section__heading h2 {
    color: #f8fafc;
    font-size: clamp(1.7rem, 2.2vw, 2.5rem);
    margin-bottom: 0.55rem;
}

body.marketing-page .marketing-feature-grid,
body.marketing-page .marketing-pricing-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
}

body.marketing-page .marketing-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.marketing-page .marketing-pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.marketing-page .marketing-feature-card,
body.marketing-page .marketing-pricing-card {
    border-radius: 24px;
    padding: 1.35rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

body.marketing-page .marketing-feature-card i {
    font-size: 1.4rem;
    color: #60a5fa;
    margin-bottom: 0.8rem;
}

body.marketing-page .marketing-pricing-card--featured {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.24), rgba(30, 41, 59, 0.68));
    border-color: rgba(96, 165, 250, 0.28);
}

body.marketing-page .marketing-hero__actions .btn,
body.marketing-page .marketing-support-card .btn {
    min-height: 50px;
    border-radius: 16px;
    font-weight: 700;
}

body.marketing-page .marketing-pricing-card {
    min-height: 100%;
    display: grid;
    align-content: start;
    gap: 0.75rem;
}

body.marketing-page .marketing-pricing-card__name {
    display: inline-flex;
    width: fit-content;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.14);
    color: #bfdbfe;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.marketing-page .marketing-pricing-card__price {
    font-size: clamp(1.95rem, 3vw, 2.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #f8fafc;
}

body.marketing-page .marketing-footer {
    padding: 0 0 2rem;
    color: rgba(226, 232, 240, 0.68);
    text-align: center;
}

@media (max-width: 1199px) {
    body.marketing-page .marketing-hero,
    body.marketing-page .marketing-feature-grid,
    body.marketing-page .marketing-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.marketing-page .marketing-hero__mini-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body.marketing-page .marketing-nav__inner,
    body.marketing-page .marketing-nav__links,
    body.marketing-page .marketing-nav__actions,
    body.marketing-page .marketing-support-card {
        flex-direction: column;
        align-items: stretch;
    }

    body.marketing-page .marketing-hero,
    body.marketing-page .marketing-feature-grid,
    body.marketing-page .marketing-pricing-grid {
        grid-template-columns: 1fr;
    }

    body.marketing-page .marketing-hero__copy,
    body.marketing-page .marketing-hero__panel-card,
    body.marketing-page .marketing-section {
        padding: 1.35rem;
        border-radius: 22px;
    }

    body.marketing-page .marketing-hero__actions .btn,
    body.marketing-page .marketing-support-card .btn {
        width: 100%;
        justify-content: center;
    }
}

body.marketing-page--repair {
    --marketing-bg: #10192c;
    --marketing-surface: rgba(20, 31, 54, 0.76);
    --marketing-border: rgba(120, 164, 232, 0.14);
    --marketing-ink: #edf4ff;
    --marketing-muted: rgba(218, 231, 250, 0.78);
    --marketing-accent: #4b8dff;
    --marketing-accent-strong: #7eb8ff;
    background:
        radial-gradient(circle at top left, rgba(75, 141, 255, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.11), transparent 24%),
        linear-gradient(180deg, #0b1425 0%, #13203a 45%, #172742 100%);
    color: var(--marketing-ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
}

body.marketing-page--repair .marketing-nav {
    backdrop-filter: blur(18px);
    background: rgba(10, 18, 34, 0.8);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

body.marketing-page--repair .marketing-nav__brand,
body.marketing-page--repair .marketing-nav__links a {
    color: #f6fbff;
}

body.marketing-page--repair .marketing-nav__brand-mark {
    background: linear-gradient(135deg, #4b8dff 0%, #73d0ff 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(75, 141, 255, 0.22);
    width: 52px;
    min-width: 52px;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

body.marketing-page--repair .marketing-main,
body.marketing-page--repair .marketing-footer,
body.marketing-page--repair .marketing-nav__inner {
    max-width: 1180px;
}

body.marketing-page--repair .marketing-hero--repair {
    align-items: stretch;
    gap: 1.8rem;
    padding: 3rem 0 1rem;
}

body.marketing-page--repair .marketing-hero__copy,
body.marketing-page--repair .marketing-hero__panel-card,
body.marketing-page--repair .marketing-section,
body.marketing-page--repair .marketing-support-card,
body.marketing-page--repair .marketing-final-cta {
    border: 1px solid var(--marketing-border);
    background: var(--marketing-surface);
    box-shadow: 0 24px 70px rgba(4, 10, 24, 0.22);
    backdrop-filter: blur(20px);
}

body.marketing-page--repair .marketing-hero__copy,
body.marketing-page--repair .marketing-hero__panel-card {
    border-radius: 28px;
}

body.marketing-page--repair .marketing-hero__copy {
    padding: 3.2rem;
    background:
        radial-gradient(circle at top right, rgba(75, 141, 255, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(20, 31, 54, 0.92), rgba(20, 31, 54, 0.8));
}

body.marketing-page--repair .marketing-hero__eyebrow {
    color: #b8d8ff;
    background: rgba(75, 141, 255, 0.16);
    border: 1px solid rgba(120, 184, 255, 0.16);
    letter-spacing: 0.12em;
}

body.marketing-page--repair .marketing-hero h1,
body.marketing-page--repair .marketing-section__heading h2,
body.marketing-page--repair .marketing-final-cta h2 {
    font-family: "Fraunces", Georgia, serif;
    letter-spacing: -0.03em;
}

body.marketing-page--repair .marketing-hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.9rem);
    line-height: 1.04;
    max-width: 18ch;
    color: #f7fbff;
}

body.marketing-page--repair .marketing-nav__primary {
    background: linear-gradient(135deg, #4b8dff 0%, #2864d9 100%);
    border-color: transparent;
    color: #ffffff;
}

body.marketing-page--repair .marketing-nav__primary:hover,
body.marketing-page--repair .marketing-nav__primary:focus {
    background: linear-gradient(135deg, #4386f1 0%, #2359c5 100%);
    color: #ffffff;
}

body.marketing-page--repair .marketing-hero__lead,
body.marketing-page--repair .marketing-section__heading p,
body.marketing-page--repair .marketing-story-card p,
body.marketing-page--repair .marketing-role-card p,
body.marketing-page--repair .marketing-pricing-card p,
body.marketing-page--repair .marketing-faq-card p,
body.marketing-page--repair .marketing-dashboard-preview__text,
body.marketing-page--repair .marketing-timeline-item p,
body.marketing-page--repair .marketing-support-card p,
body.marketing-page--repair .marketing-final-cta p {
    color: var(--marketing-muted);
    font-size: 1rem;
    line-height: 1.7;
}

body.marketing-page--repair .marketing-section[id] {
    scroll-margin-top: 0;
}

body.marketing-page--repair .marketing-hero__proofline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.2rem 0 0;
}

body.marketing-page--repair .marketing-hero__proofline span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 198, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #dcecff;
    font-size: 0.9rem;
    font-weight: 600;
}

body.marketing-page--repair .marketing-hero__proofline i {
    color: #8fc8ff;
}

body.marketing-page--repair .marketing-hero__actions .btn,
body.marketing-page--repair .marketing-support-card .btn,
body.marketing-page--repair .marketing-final-cta .btn,
body.marketing-page--repair .marketing-pricing-note .btn {
    border-radius: 999px;
    padding: 0.95rem 1.5rem;
    font-weight: 700;
    box-shadow: none;
}

body.marketing-page--repair .btn-primary {
    background: linear-gradient(135deg, #0f766e 0%, #144f4a 100%);
    border-color: transparent;
}

body.marketing-page--repair .btn-primary:hover,
body.marketing-page--repair .btn-primary:focus {
    background: linear-gradient(135deg, #0e6e66 0%, #113f3b 100%);
}

body.marketing-page--repair .btn-outline-light {
    color: #e7f2ff;
    border-color: rgba(167, 198, 255, 0.24);
    background: rgba(255, 255, 255, 0.04);
}

body.marketing-page--repair .marketing-hero__copy .btn-outline-light {
    color: #eef6ff;
    border-color: rgba(167, 198, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
}

body.marketing-page--repair .marketing-hero__copy .btn-light,
body.marketing-page--repair .marketing-final-cta .btn-light,
body.marketing-page--repair .marketing-support-card .btn-primary,
body.marketing-page--repair .marketing-pricing-note .btn-outline-light {
    background: rgba(255, 255, 255, 0.12);
    color: #eef6ff;
    border: 1px solid rgba(167, 198, 255, 0.18);
}

body.marketing-page--repair .marketing-hero__mini-grid {
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.marketing-page--repair .marketing-hero__audience {
    margin-top: 1.25rem;
}

body.marketing-page--repair .marketing-hero__audience-title {
    margin: 0 0 0.85rem;
    color: #f3f8ff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

body.marketing-page--repair .marketing-hero__summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.2rem 0 0;
}

body.marketing-page--repair .marketing-hero-summary-card {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid rgba(167, 198, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

body.marketing-page--repair .marketing-hero-summary-card strong {
    display: block;
    font-size: 1.02rem;
    color: #f4f8ff;
}

body.marketing-page--repair .marketing-hero-summary-card span {
    display: block;
    margin-top: 0.35rem;
    color: rgba(219, 232, 250, 0.8);
    font-size: 0.92rem;
    line-height: 1.5;
}

body.marketing-page--repair .marketing-mini-card {
    min-height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

body.marketing-page--repair .marketing-mini-card strong {
    color: #edf4ff;
    font-size: 0.94rem;
    line-height: 1.5;
}

body.marketing-page--repair .marketing-dashboard-preview {
    padding: 2rem;
    background: linear-gradient(180deg, rgba(28, 42, 72, 0.95) 0%, rgba(22, 35, 60, 0.94) 100%);
    color: #edf4ff;
}

body.marketing-page--repair .marketing-dashboard-preview__topline,
body.marketing-page--repair .marketing-dashboard-preview__metrics,
body.marketing-page--repair .marketing-proof-strip,
body.marketing-page--repair .marketing-pricing-note,
body.marketing-page--repair .marketing-final-cta,
body.marketing-page--repair .marketing-final-cta__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

body.marketing-page--repair .marketing-dashboard-preview__topline {
    justify-content: space-between;
    align-items: center;
}

body.marketing-page--repair .marketing-dashboard-preview__label,
body.marketing-page--repair .marketing-dashboard-preview__status {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(219, 232, 250, 0.72);
}

body.marketing-page--repair .marketing-dashboard-preview__status {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(75, 141, 255, 0.14);
    color: #cae1ff;
}

body.marketing-page--repair .marketing-dashboard-preview__title {
    margin: 0.95rem 0 0.45rem;
    font-size: 1.6rem;
    color: #f7fbff;
}

body.marketing-page--repair .marketing-dashboard-preview__metrics {
    margin: 1.35rem 0;
}

body.marketing-page--repair .marketing-dashboard-preview__workspace {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.2rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(167, 198, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

body.marketing-page--repair .marketing-dashboard-preview__workspace strong {
    display: block;
    color: #f5f9ff;
    font-size: 1rem;
}

body.marketing-page--repair .marketing-dashboard-preview__workspace span {
    color: rgba(219, 232, 250, 0.76);
    font-size: 0.92rem;
}

body.marketing-page--repair .marketing-dashboard-preview__workspace-badge {
    flex: 0 0 auto;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.18);
    border: 1px solid rgba(94, 234, 212, 0.12);
    color: #d6fff5;
    font-size: 0.82rem;
    font-weight: 700;
}

body.marketing-page--repair .marketing-metric {
    flex: 1 1 150px;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(167, 198, 255, 0.12);
}

body.marketing-page--repair .marketing-metric strong {
    display: block;
    font-size: 1.7rem;
    line-height: 1;
    color: #f2f8ff;
}

body.marketing-page--repair .marketing-metric span {
    display: block;
    margin-top: 0.45rem;
    color: rgba(219, 232, 250, 0.72);
    font-size: 0.92rem;
}

body.marketing-page--repair .marketing-dashboard-preview__timeline {
    display: grid;
    gap: 1rem;
}

body.marketing-page--repair .marketing-dashboard-preview__modules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 0 0 1.35rem;
}

body.marketing-page--repair .marketing-dashboard-module {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(167, 198, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

body.marketing-page--repair .marketing-dashboard-module strong {
    display: block;
    color: #f4f8ff;
    font-size: 0.95rem;
}

body.marketing-page--repair .marketing-dashboard-module span {
    display: block;
    margin-top: 0.35rem;
    color: rgba(219, 232, 250, 0.76);
    font-size: 0.88rem;
    line-height: 1.45;
}

body.marketing-page--repair .marketing-timeline-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 0.8rem;
    align-items: start;
}

body.marketing-page--repair .marketing-timeline-item__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-top: 0.35rem;
    background: linear-gradient(135deg, #f1d9a8 0%, #0f766e 100%);
    box-shadow: 0 0 0 6px rgba(241, 217, 168, 0.08);
}

body.marketing-page--repair .marketing-timeline-item strong {
    color: #f3f8ff;
    font-size: 0.98rem;
}

body.marketing-page--repair .marketing-dashboard-preview__notes {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.25rem;
}

body.marketing-page--repair .marketing-dashboard-preview__note {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(223, 236, 252, 0.82);
    font-size: 0.92rem;
}

body.marketing-page--repair .marketing-dashboard-preview__note i {
    color: #85d9c8;
}

body.marketing-page--repair .marketing-proof-strip {
    margin: 1rem 0 0;
    padding: 1rem 1.4rem;
    border-radius: 20px;
    border: 1px solid var(--marketing-border);
    background: rgba(20, 31, 54, 0.56);
    color: #edf4ff;
    justify-content: space-between;
}

body.marketing-page--repair .marketing-proof-strip--hero {
    margin-top: 0;
}

body.marketing-page--repair .marketing-proof-strip span {
    flex: 1 1 180px;
    font-size: 0.95rem;
    font-weight: 700;
}

body.marketing-page--repair .marketing-section {
    padding: 2.15rem;
    border-radius: 28px;
}

body.marketing-page--repair .marketing-section__heading--wide {
    max-width: 760px;
}

body.marketing-page--repair .marketing-story-grid,
body.marketing-page--repair .marketing-role-grid,
body.marketing-page--repair .marketing-faq-grid {
    display: grid;
    gap: 1.1rem;
}

body.marketing-page--repair .marketing-story-grid,
body.marketing-page--repair .marketing-role-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.marketing-page--repair .marketing-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.marketing-page--repair .marketing-story-card,
body.marketing-page--repair .marketing-role-card,
body.marketing-page--repair .marketing-faq-card,
body.marketing-page--repair .marketing-feature-card,
body.marketing-page--repair .marketing-pricing-card {
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
}

body.marketing-page--repair .marketing-story-card i,
body.marketing-page--repair .marketing-role-card i,
body.marketing-page--repair .marketing-feature-card i {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(75, 141, 255, 0.16) 0%, rgba(115, 208, 255, 0.16) 100%);
    color: #9cc9ff;
    font-size: 1.15rem;
}

body.marketing-page--repair .marketing-story-card h3,
body.marketing-page--repair .marketing-role-card h3,
body.marketing-page--repair .marketing-feature-card h3,
body.marketing-page--repair .marketing-faq-card h3 {
    color: #f2f8ff;
    font-size: 1.12rem;
    margin-bottom: 0.55rem;
}

body.marketing-page--repair .marketing-feature-grid--steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.marketing-page--repair .marketing-step-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.04) 100%);
}

body.marketing-page--repair .marketing-step-card__number {
    color: #ffffff;
    background: linear-gradient(135deg, #4b8dff 0%, #73d0ff 100%);
    box-shadow: inset 0 0 0 1px rgba(167, 198, 255, 0.18);
}

body.marketing-page--repair .marketing-pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.marketing-page--repair .marketing-pricing-card {
    padding: 1.6rem;
    gap: 0.95rem;
}

body.marketing-page--repair .marketing-pricing-card__name {
    color: #b9d7ff;
    font-size: 1.08rem;
}

body.marketing-page--repair .marketing-pricing-card__price {
    color: #f6fbff;
}

body.marketing-page--repair .marketing-pricing-card__description {
    min-height: 3.2em;
}

body.marketing-page--repair .marketing-pricing-card__list {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(219, 232, 250, 0.82);
    display: grid;
    gap: 0.5rem;
}

body.marketing-page--repair .marketing-pricing-card__list li::marker {
    color: var(--marketing-accent);
}

body.marketing-page--repair .marketing-pricing-card--featured {
    transform: translateY(-6px);
    background: linear-gradient(180deg, rgba(56, 104, 186, 0.28) 0%, rgba(20, 31, 54, 0.84) 100%);
    border-color: rgba(120, 164, 232, 0.26);
}

body.marketing-page--repair .marketing-pricing-card--featured .marketing-pricing-card__name,
body.marketing-page--repair .marketing-pricing-card--featured .marketing-pricing-card__price,
body.marketing-page--repair .marketing-pricing-card--featured .marketing-pricing-card__description,
body.marketing-page--repair .marketing-pricing-card--featured .marketing-pricing-card__list {
    color: #f3f8ff;
}

body.marketing-page--repair .marketing-pricing-note {
    justify-content: space-between;
    align-items: center;
    margin-top: 1.2rem;
    padding: 1rem 1.2rem 0;
}

body.marketing-page--repair .marketing-pricing-note p {
    margin: 0;
    max-width: 760px;
    color: var(--marketing-muted);
}

body.marketing-page--repair .marketing-support-card {
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(24, 37, 63, 0.92) 0%, rgba(21, 32, 56, 0.9) 100%);
}

body.marketing-page--repair .marketing-support-card strong {
    color: #f3f8ff;
    font-size: 1.1rem;
}

body.marketing-page--repair .marketing-section--contact {
    scroll-margin-top: 104px;
}

body.marketing-page--repair .marketing-contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 1.2rem;
    align-items: start;
}

body.marketing-page--repair .marketing-contact-card {
    border: 1px solid var(--marketing-border);
    background: linear-gradient(135deg, rgba(23, 36, 61, 0.96) 0%, rgba(17, 28, 48, 0.96) 100%);
    border-radius: 28px;
    padding: 1.65rem;
    box-shadow: 0 24px 70px rgba(4, 10, 24, 0.2);
}

body.marketing-page--repair .marketing-contact-card__intro h3 {
    margin: 0.4rem 0 0.55rem;
    color: #f2f8ff;
    font-size: 1.35rem;
}

body.marketing-page--repair .marketing-contact-card__eyebrow {
    display: inline-flex;
    color: #8fc8ff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.marketing-page--repair .marketing-contact-card__intro p,
body.marketing-page--repair .marketing-contact-note {
    color: var(--marketing-muted);
}

body.marketing-page--repair .marketing-contact-points {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.15rem;
}

body.marketing-page--repair .marketing-contact-point {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(120, 164, 232, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

body.marketing-page--repair .marketing-contact-point__label {
    color: #8fc8ff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.marketing-page--repair .marketing-contact-point__value {
    color: #f2f8ff;
    font-size: 1rem;
    line-height: 1.5;
    text-decoration: none;
    word-break: break-word;
}

body.marketing-page--repair .marketing-contact-point__value:hover,
body.marketing-page--repair .marketing-contact-point__value:focus {
    color: #bde2ff;
}

body.marketing-page--repair .marketing-contact-note {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px dashed rgba(143, 200, 255, 0.24);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.94rem;
}

body.marketing-page--repair .marketing-contact-alert {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 1rem;
}

body.marketing-page--repair .marketing-contact-form {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

body.marketing-page--repair .marketing-contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

body.marketing-page--repair .marketing-contact-field {
    display: grid;
    gap: 0.45rem;
}

body.marketing-page--repair .marketing-contact-field--full {
    grid-column: 1 / -1;
}

body.marketing-page--repair .marketing-contact-field span {
    color: #d8e8ff;
    font-size: 0.86rem;
    font-weight: 700;
}

body.marketing-page--repair .marketing-contact-form input,
body.marketing-page--repair .marketing-contact-form textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(120, 164, 232, 0.18);
    background: rgba(9, 18, 34, 0.62);
    color: #f2f8ff;
    padding: 0.9rem 1rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

body.marketing-page--repair .marketing-contact-form input::placeholder,
body.marketing-page--repair .marketing-contact-form textarea::placeholder {
    color: rgba(216, 232, 255, 0.52);
}

body.marketing-page--repair .marketing-contact-form input:focus,
body.marketing-page--repair .marketing-contact-form textarea:focus {
    border-color: rgba(143, 200, 255, 0.34);
    box-shadow: 0 0 0 3px rgba(56, 122, 214, 0.16);
    background: rgba(9, 18, 34, 0.76);
}

body.marketing-page--repair .marketing-contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

body.marketing-page--repair .marketing-contact-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

body.marketing-page--repair .marketing-footer .public-legal-links {
    margin-top: 0.9rem;
}

body.marketing-page--repair .marketing-footer .public-legal-links__prefix {
    color: rgba(219, 232, 250, 0.72);
}

body.marketing-page--repair .marketing-footer .public-legal-links__link {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(120, 164, 232, 0.16);
    color: #e4efff;
}

body.marketing-page--repair .marketing-footer .public-legal-links__link:hover,
body.marketing-page--repair .marketing-footer .public-legal-links__link:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

body.marketing-page--repair .marketing-final-cta {
    margin-top: 1.75rem;
    border-radius: 30px;
    padding: 2rem 2.2rem;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(22, 35, 60, 0.96) 0%, rgba(17, 28, 50, 0.96) 100%);
}

body.marketing-page--repair .marketing-final-cta h2,
body.marketing-page--repair .marketing-final-cta p {
    color: #f2f8ff;
}

body.marketing-page--repair .marketing-final-cta__content {
    max-width: 720px;
}

body.marketing-page--repair .marketing-footer {
    color: rgba(219, 232, 250, 0.68);
}

@media (max-width: 1100px) {
    body.marketing-page--repair .marketing-story-grid,
    body.marketing-page--repair .marketing-role-grid,
    body.marketing-page--repair .marketing-feature-grid--steps,
    body.marketing-page--repair .marketing-pricing-grid,
    body.marketing-page--repair .marketing-faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.marketing-page--repair .marketing-hero__summary-grid,
    body.marketing-page--repair .marketing-dashboard-preview__modules,
    body.marketing-page--repair .marketing-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body.marketing-page--repair .marketing-hero__copy,
    body.marketing-page--repair .marketing-hero__panel-card,
    body.marketing-page--repair .marketing-section,
    body.marketing-page--repair .marketing-final-cta {
        padding: 1.4rem;
        border-radius: 22px;
    }

    body.marketing-page--repair .marketing-hero__mini-grid,
    body.marketing-page--repair .marketing-hero__summary-grid,
    body.marketing-page--repair .marketing-story-grid,
    body.marketing-page--repair .marketing-role-grid,
    body.marketing-page--repair .marketing-feature-grid--steps,
    body.marketing-page--repair .marketing-pricing-grid,
    body.marketing-page--repair .marketing-faq-grid,
    body.marketing-page--repair .marketing-dashboard-preview__modules,
    body.marketing-page--repair .marketing-contact-grid,
    body.marketing-page--repair .marketing-contact-form__grid {
        grid-template-columns: 1fr;
    }

    body.marketing-page--repair .marketing-proof-strip,
    body.marketing-page--repair .marketing-dashboard-preview__workspace,
    body.marketing-page--repair .marketing-pricing-note,
    body.marketing-page--repair .marketing-final-cta,
    body.marketing-page--repair .marketing-final-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.marketing-page--repair .marketing-hero h1 {
        max-width: none;
    }

    body.marketing-page--repair .marketing-proof-strip span {
        flex: 1 1 auto;
    }

    body.marketing-page--repair .marketing-contact-card,
    body.marketing-page--repair .marketing-contact-form__actions .btn,
    body.marketing-page--repair .marketing-contact-form__actions a {
        width: 100%;
    }
}

/* Search results overrides must stay near the end so legacy search styles above do not
   force light panels or low-contrast text inside dark theme surfaces. */
.search-result-item {
    padding: 0.8rem 0.95rem;
    font-size: 0.95rem;
    color: var(--crm-text, #334155);
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.search-result-item:hover {
    background-color: rgba(58, 127, 246, 0.08);
}

.search-results-container {
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.2));
    border-radius: 16px;
    background: var(--crm-surface-elevated, #ffffff);
    box-shadow: var(--crm-shadow-soft, 0 12px 24px rgba(15, 23, 42, 0.12));
    color: var(--crm-text, #334155);
    overflow: hidden;
}

#searchResults,
#sidebarSearchResults {
    background: var(--crm-surface-elevated, rgba(255, 255, 255, 0.98));
    border: 1px solid var(--crm-border, rgba(148, 163, 184, 0.18));
    border-radius: 22px;
    box-shadow: var(--crm-search-flyout-shadow);
    padding: 0.5rem;
    color: var(--crm-text, #334155);
}

#searchResults .result-item,
#sidebarSearchResults .result-item {
    padding: 0.9rem 0.95rem;
    border-bottom: 1px solid var(--crm-border, rgba(148, 163, 184, 0.12));
    color: var(--crm-text, #334155);
    background: transparent;
}

#searchResults .result-item:hover,
#searchResults .result-item:focus,
#sidebarSearchResults .result-item:hover,
#sidebarSearchResults .result-item:focus {
    background-color: color-mix(in srgb, var(--crm-accent-soft) 42%, var(--crm-surface) 58%);
    border-color: color-mix(in srgb, var(--crm-accent) 18%, transparent);
}

#searchResults .result-item:last-child,
#sidebarSearchResults .result-item:last-child {
    border-bottom: none;
}
