:root {
    --customer-bg: #050607;
    --customer-bg-soft: #090a0c;
    --customer-surface: #101114;
    --customer-surface-raised: #15171b;
    --customer-surface-soft: #1a1d22;
    --customer-border: rgb(255 255 255 / 8%);
    --customer-border-strong: rgb(243 243 21 / 42%);
    --customer-text: #f5f6f7;
    --customer-text-soft: #d3d6da;
    --customer-muted: #989ea6;
    --customer-accent: #f3f315;
    --customer-accent-strong: #ffff28;
    --customer-accent-soft: rgb(243 243 21 / 12%);
    --customer-accent-text: #08090a;
    --customer-danger: #ff6b6b;
    --customer-shadow: 0 18px 44px rgb(0 0 0 / 34%);
}

.customer-portal,
.customer-auth-page {
    background: var(--customer-bg);
    color: var(--customer-text);
}

.customer-portal .wrapper,
.customer-auth-page {
    background:
        linear-gradient(180deg, #08090b 0%, var(--customer-bg) 260px),
        var(--customer-bg);
}

.customer-portal .content-wrapper.customer-content-wrapper {
    min-height: calc(100vh - 108px);
    background: var(--customer-bg);
}

.customer-navbar.navbar {
    min-height: 74px;
    padding: 0 18px;
    background: rgb(9 10 12 / 96%);
    border-bottom: 1px solid var(--customer-border);
    box-shadow: 0 8px 28px rgb(0 0 0 / 22%);
}

.customer-navbar .container-fluid {
    max-width: 1480px;
    padding-right: 18px;
    padding-left: 18px;
}

.customer-brand.navbar-brand {
    display: flex;
    align-items: center;
    min-height: 74px;
    margin-right: 30px;
    padding: 0;
}

.customer-brand-logo {
    display: block;
    height: 34px;
    width: auto;
}

.customer-navbar .navbar-nav {
    align-items: center;
}

.customer-navbar .nav-item {
    margin-right: 4px;
}

.customer-navbar .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--customer-text-soft);
    font-weight: 700;
    line-height: 1.1;
}

.customer-navbar .nav-link i {
    margin-right: 0 !important;
}

.customer-navbar .nav-link:hover,
.customer-navbar .nav-link:focus {
    background: rgb(255 255 255 / 4%);
    border-color: var(--customer-border);
    color: var(--customer-text);
}

.customer-navbar .customer-nav-divider {
    align-self: center;
    flex-shrink: 0;
    width: 0;
    height: 0;
    margin: 0 14px 0 10px !important;
    padding: 0;
    background: transparent;
    border: none;
}

.customer-navbar .nav-link.customer-nav-active {
    color: var(--customer-text);
    position: relative;
}

.customer-navbar .nav-link.customer-nav-active::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;
    height: 2px;
    background: var(--customer-accent);
    border-radius: 1px;
}

.customer-navbar .navbar-toggler {
    border-color: var(--customer-border);
}

.customer-navbar .dropdown-menu {
    background: var(--customer-surface-raised);
    border: 1px solid var(--customer-border);
    border-radius: 8px;
    box-shadow: var(--customer-shadow);
}

.customer-navbar .dropdown-item,
.customer-navbar .dropdown-item-text {
    color: var(--customer-text-soft);
}

.customer-navbar .dropdown-item:hover,
.customer-navbar .dropdown-item:focus,
.customer-navbar .dropdown-item.active {
    background: var(--customer-accent-soft);
    color: var(--customer-accent);
}

.customer-navbar .dropdown-divider {
    border-top-color: var(--customer-border);
}

.customer-content {
    padding: 26px 0 40px;
}

.customer-container {
    max-width: 1480px;
    padding-right: 28px;
    padding-left: 28px;
}

.customer-footer.main-footer {
    min-height: 34px;
    padding: 8px 28px;
    background: #08090b;
    border-top: 1px solid var(--customer-border);
    color: var(--customer-muted);
    font-size: 0.84rem;
}

.customer-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}

.customer-footer-signoff {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--customer-muted);
}

.customer-footer-author {
    color: var(--customer-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.customer-footer-author strong {
    color: var(--customer-text-soft);
    font-weight: 800;
}

.customer-footer-version {
    color: #767d86;
    font-size: 0.8rem;
    font-weight: 700;
}

.customer-link,
.customer-table a {
    color: var(--customer-accent);
}

.customer-link:hover,
.customer-table a:hover {
    color: var(--customer-accent-strong);
    text-decoration: none;
}

.btn-customer-primary,
.customer-portal .btn-customer-primary,
.customer-auth-page .btn-customer-primary {
    min-height: 38px;
    padding: 9px 16px;
    background: var(--customer-accent);
    border-color: var(--customer-accent);
    border-radius: 6px;
    color: var(--customer-accent-text);
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 10px 22px rgb(243 243 21 / 12%);
}

.btn-customer-primary:hover,
.btn-customer-primary:focus {
    background: var(--customer-accent-strong);
    border-color: var(--customer-accent-strong);
    color: var(--customer-accent-text);
    box-shadow: 0 12px 26px rgb(243 243 21 / 18%);
}

.btn-outline-customer {
    min-height: 34px;
    padding: 7px 12px;
    background: transparent;
    border-color: var(--customer-border-strong);
    border-radius: 6px;
    color: var(--customer-accent);
    font-weight: 700;
}

.btn-outline-customer:hover,
.btn-outline-customer:focus {
    background: var(--customer-accent);
    border-color: var(--customer-accent);
    color: var(--customer-accent-text);
}

.btn-customer-secondary,
.customer-portal .btn-customer-secondary {
    min-height: 38px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--customer-border-strong);
    border-radius: 6px;
    color: var(--customer-accent);
    font-weight: 800;
}

.btn-customer-secondary:hover,
.btn-customer-secondary:focus {
    background: var(--customer-accent-soft);
    border-color: var(--customer-accent-strong);
    color: var(--customer-accent-strong);
}

.customer-hero,
.customer-page-header,
.customer-panel,
.customer-side-panel,
.customer-metric {
    background: var(--customer-surface);
    border: 1px solid var(--customer-border);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgb(0 0 0 / 24%);
}

.customer-hero,
.customer-page-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 144px;
    margin-bottom: 22px;
    padding: 28px 30px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgb(243 243 21 / 9%) 0%, rgb(243 243 21 / 0%) 34%),
        var(--customer-surface);
}

.customer-hero::before,
.customer-page-header::before {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 3px;
    background: var(--customer-accent);
    content: "";
}

.customer-hero > *,
.customer-page-header > * {
    position: relative;
}

.customer-hero h1,
.customer-page-header h1 {
    max-width: 860px;
    margin: 0;
    color: var(--customer-text);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.15;
}

.customer-eyebrow {
    margin: 0 0 10px;
    color: var(--customer-accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: uppercase;
}

.customer-welcome-line {
    max-width: 780px;
    margin: 14px 0 0;
    color: var(--customer-text-soft);
    font-size: 1rem;
    line-height: 1.55;
    animation: customer-welcome 720ms ease-out both;
}

.customer-portal .alert,
.customer-auth-page .alert {
    background: #0d0f12;
    border-color: var(--customer-border);
    border-radius: 8px;
    color: var(--customer-text-soft);
    box-shadow: 0 10px 26px rgb(0 0 0 / 20%);
}

.customer-portal .alert-success,
.customer-auth-page .alert-success {
    border-color: rgb(243 243 21 / 28%);
}

.customer-portal .alert-danger,
.customer-auth-page .alert-danger {
    border-color: rgb(255 107 107 / 34%);
    color: #ffd4d4;
}

.customer-portal .alert .close,
.customer-auth-page .alert .close {
    color: var(--customer-muted);
    opacity: 1;
    text-shadow: none;
}

.customer-metrics {
    margin-bottom: 8px;
}

.customer-metrics > div {
    margin-bottom: 16px;
}

.customer-metric {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: 44px auto;
    align-content: center;
    gap: 7px 14px;
    min-height: 118px;
    padding: 18px;
    color: var(--customer-text);
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.customer-metric:hover,
.customer-metric:focus {
    background: var(--customer-surface-raised);
    border-color: var(--customer-border-strong);
    color: var(--customer-text);
    text-decoration: none;
    transform: translateY(-1px);
}

.customer-metric-icon {
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--customer-accent);
    border-radius: 8px;
    color: var(--customer-accent-text);
    font-size: 1.05rem;
}

.customer-metric-value {
    align-self: center;
    color: var(--customer-text);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.customer-metric-label {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    color: var(--customer-muted);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
}

.customer-panel {
    margin-bottom: 22px;
    padding: 20px;
}

.customer-panel-narrow {
    max-width: 640px;
}

.customer-side-panel {
    padding: 18px;
}

.customer-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--customer-border);
}

.customer-panel h2,
.customer-panel-header h2 {
    margin: 0;
    color: var(--customer-text);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
}

.customer-table.table {
    margin-bottom: 0;
    color: var(--customer-text-soft);
}

.customer-table thead th {
    padding: 10px 12px;
    border-top: 0;
    border-bottom: 1px solid var(--customer-border);
    color: var(--customer-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.customer-table td {
    padding: 14px 12px;
    border-top-color: var(--customer-border);
    vertical-align: middle;
}

.customer-table tbody tr:hover {
    background: rgb(255 255 255 / 3%);
}

.customer-status-badge.badge {
    padding: 5px 9px;
    background: var(--customer-accent-soft);
    border: 1px solid var(--customer-border-strong);
    border-radius: 999px;
    color: var(--customer-accent);
    font-weight: 800;
}

.customer-status-active.badge {
    padding: 5px 9px;
    background: rgb(46 204 113 / 18%);
    border: 1px solid rgb(46 204 113 / 45%);
    border-radius: 999px;
    color: #2ecc71;
    font-weight: 800;
}

.customer-status-inactive.badge {
    padding: 5px 9px;
    background: rgb(255 255 255 / 6%);
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 999px;
    color: var(--customer-muted);
    font-weight: 700;
}

.badge-customer-self.badge {
    padding: 3px 7px;
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 999px;
    color: var(--customer-text);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.customer-employee-actions {
    white-space: nowrap;
    vertical-align: middle;
}

.customer-employee-actions > a,
.customer-employee-actions > form,
.customer-employee-actions > span {
    display: inline-block;
    margin: 2px 6px 2px 0;
    vertical-align: middle;
}

.customer-employee-actions > *:last-child {
    margin-right: 0;
}

.customer-employee-actions form {
    margin: 2px 6px 2px 0;
}

.customer-employee-danger {
    border: 1px solid rgb(220 53 69 / 35%);
    background: rgb(220 53 69 / 6%);
}

.customer-employee-danger-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.customer-otp-panel {
    border: 1px solid var(--customer-accent);
    background: var(--customer-accent-soft);
}

.customer-otp-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 6px;
}

.customer-otp-row .form-control {
    font-family: var(--customer-mono, ui-monospace, "SFMono-Regular", Menlo, monospace);
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.customer-empty {
    margin: 0;
    padding: 18px 0 2px;
}

.customer-empty,
.customer-muted,
.customer-upload-limits {
    color: var(--customer-muted);
}

.customer-filter-bar {
    display: flex;
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
}

.customer-filter-search {
    flex: 1;
}

.customer-ticket-guidance {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    margin-bottom: 22px;
    padding: 16px 18px 18px;
    background: linear-gradient(90deg, rgb(243 243 21 / 10%), rgb(255 255 255 / 3%));
    border: 1px solid rgb(243 243 21 / 35%);
    border-radius: 8px;
}

.customer-ticket-guidance-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--customer-accent);
    border-radius: 8px;
    color: var(--customer-accent-text);
    font-size: 1.15rem;
}

.customer-ticket-guidance h2 {
    margin: 0 0 6px;
    color: var(--customer-text);
    font-size: 1rem;
    font-weight: 900;
}

.customer-ticket-guidance-lead {
    margin: 0;
    color: var(--customer-text-soft);
    font-size: 0.96rem;
    line-height: 1.5;
}

.customer-ticket-guidance-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.customer-ticket-guidance-point {
    min-height: 74px;
    padding: 12px 13px;
    background: rgb(0 0 0 / 15%);
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: 8px;
}

.customer-ticket-guidance-point span {
    display: block;
    margin-bottom: 5px;
    color: var(--customer-accent);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-ticket-guidance-point p {
    margin: 0;
    color: var(--customer-text-soft);
    font-size: 0.9rem;
    line-height: 1.45;
}

.customer-ticket-guidance-point--info {
    grid-column: 1 / -1;
    background: rgb(23 162 184 / 10%);
    border-color: rgb(23 162 184 / 25%);
}

.customer-ticket-guidance-point--info span {
    color: #17a2b8;
}

.customer-dashboard-alert {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
    padding: 16px 18px;
    background: linear-gradient(90deg, rgb(243 243 21 / 12%), rgb(255 255 255 / 3%));
    border: 1px solid var(--customer-border-strong);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgb(0 0 0 / 20%);
}

.customer-dashboard-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--customer-accent);
    border-radius: 10px;
    color: var(--customer-accent-text);
    font-size: 1.15rem;
}

.customer-dashboard-alert strong,
.customer-dashboard-message h3 {
    display: block;
    margin: 0;
    color: var(--customer-text);
}

.customer-dashboard-message h3 {
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.28;
}

.customer-dashboard-alert p,
.customer-products-section-header p,
.customer-dashboard-message-body,
.customer-dashboard-message-sender,
.customer-dashboard-message-ticket {
    margin: 4px 0 0;
    color: var(--customer-text-soft);
}

.customer-row-unread {
    background: rgb(243 243 21 / 4%);
}

.customer-row-unread:hover {
    background: rgb(243 243 21 / 8%) !important;
}

.customer-table-primary {
    display: inline-block;
    margin-right: 8px;
}

.customer-dashboard-unread-badge.badge {
    padding: 4px 8px;
    background: rgb(243 243 21 / 18%);
    border: 1px solid var(--customer-border-strong);
    border-radius: 999px;
    color: var(--customer-accent);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--customer-border);
}

.customer-pagination-list .page-link {
    background: var(--customer-surface-raised);
    border-color: var(--customer-border);
    color: var(--customer-text-soft);
}

.customer-pagination-list .page-item.active .page-link,
.customer-pagination-list .page-link:hover,
.customer-pagination-list .page-link:focus {
    background: var(--customer-accent-soft);
    border-color: var(--customer-border-strong);
    color: var(--customer-accent);
}

.customer-pagination-list .page-item.disabled .page-link {
    background: transparent;
    color: var(--customer-muted);
}

.customer-dashboard-message-list {
    display: grid;
    gap: 12px;
}

.customer-dashboard-message {
    padding: 14px 15px;
    background: var(--customer-surface-raised);
    border: 1px solid var(--customer-border);
    border-radius: 8px;
}

.customer-dashboard-message--unread {
    border-color: var(--customer-border-strong);
    box-shadow: inset 3px 0 0 var(--customer-accent);
}

.customer-dashboard-message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--customer-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.customer-dashboard-message-sender,
.customer-dashboard-message-ticket {
    font-size: 0.88rem;
}

.customer-dashboard-message-title-link {
    color: var(--customer-text);
}

.customer-dashboard-message-title-link:hover,
.customer-dashboard-message-title-link:focus {
    color: var(--customer-accent);
    text-decoration: none;
}

.customer-dashboard-message-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.customer-dashboard-message-footer .customer-dashboard-message-ticket {
    margin-top: 0;
}

.customer-dashboard-message-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 34px;
    min-width: 34px;
    padding: 7px;
    background: rgb(243 243 21 / 9%);
    border: 1px solid var(--customer-border-strong);
    border-radius: 999px;
    color: var(--customer-accent);
    font-size: 0.9rem;
    line-height: 1;
}

.customer-dashboard-message-open:hover,
.customer-dashboard-message-open:focus {
    background: var(--customer-accent);
    border-color: var(--customer-accent);
    color: var(--customer-accent-text);
    text-decoration: none;
}

.customer-products-sections {
    display: grid;
    gap: 18px;
}

.customer-products-section {
    padding: 16px;
    background: rgb(255 255 255 / 2%);
    border: 1px solid var(--customer-border);
    border-radius: 8px;
}

.customer-products-section--on_warranty {
    border-color: rgb(46 204 113 / 24%);
}

.customer-products-section--off_warranty {
    border-color: rgb(255 107 107 / 24%);
}

.customer-products-section--pending {
    border-color: var(--customer-border-strong);
}

.customer-products-section-header {
    margin-bottom: 14px;
}

.customer-products-sync-note {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 14px;
    padding: 13px 14px;
    background: rgb(23 162 184 / 9%);
    border: 1px solid rgb(23 162 184 / 22%);
    border-radius: 8px;
}

.customer-products-sync-note i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgb(23 162 184 / 18%);
    border-radius: 8px;
    color: #5bc0de;
}

.customer-products-sync-note strong,
.customer-product-warranty-date {
    display: block;
}

.customer-product-card--off_warranty {
    border-color: rgb(255 107 107 / 20%);
}

.customer-product-card--pending {
    border-style: dashed;
}

.customer-product-warranty-date {
    margin-top: 6px;
    color: var(--customer-text-soft);
    font-size: 0.84rem;
    line-height: 1.35;
}

.customer-ticket-service-job-panel {
    border-color: var(--customer-border-strong);
    background: linear-gradient(180deg, rgb(243 243 21 / 8%), rgb(255 255 255 / 0%));
}

.customer-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.customer-products-hint {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: rgb(243 243 21 / 7%);
    border: 1px solid var(--customer-border-strong);
    border-radius: 8px;
}

.customer-products-hint-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--customer-accent);
    border-radius: 8px;
    color: var(--customer-accent-text);
    font-size: 1rem;
    font-weight: 900;
}

.customer-products-hint strong {
    display: block;
    margin-bottom: 4px;
    color: var(--customer-text);
    font-weight: 900;
    line-height: 1.25;
}

.customer-products-hint p {
    margin: 0;
    color: var(--customer-text-soft);
    line-height: 1.5;
}

.customer-products-page {
    padding-top: 14px;
}

.customer-product-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    min-height: 132px;
    padding: 15px 16px;
    background: var(--customer-surface-raised);
    border: 1px solid var(--customer-border);
    border-radius: 8px;
    color: var(--customer-text);
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.customer-product-card:hover,
.customer-product-card:focus {
    background: #111418;
    border-color: var(--customer-border-strong);
    color: var(--customer-text);
    text-decoration: none;
    transform: translateY(-1px);
}

.customer-product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--customer-accent);
    border-radius: 8px;
    color: var(--customer-accent-text);
    font-size: 1.05rem;
}

.customer-product-body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    min-width: 0;
}

.customer-product-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 38px;
    height: 38px;
    margin-top: 10px;
    color: var(--customer-accent);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.2;
    background: rgb(243 243 21 / 10%);
    border: 1px solid rgb(243 243 21 / 20%);
    border-radius: 999px;
}

.customer-product-name {
    display: block;
    margin-bottom: 6px;
    color: var(--customer-text);
    font-size: 1.04rem;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.customer-product-qp {
    display: block;
    margin-bottom: 2px;
    color: var(--customer-accent);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.customer-product-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--customer-border);
}

.customer-product-meta span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--customer-text-soft);
    font-size: 0.92rem;
    line-height: 1.35;
}

.customer-product-meta strong {
    color: var(--customer-muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-selected-product {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgb(243 243 21 / 8%);
    border: 1px solid var(--customer-border-strong);
    border-radius: 8px;
}

.customer-selected-product i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--customer-accent);
    border-radius: 8px;
    color: var(--customer-accent-text);
}

.customer-selected-product strong,
.customer-selected-product span {
    display: block;
}

.customer-selected-product strong {
    color: var(--customer-text);
    font-weight: 900;
    line-height: 1.25;
}

.customer-selected-product span {
    margin-top: 3px;
    color: var(--customer-text-soft);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.customer-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--customer-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.customer-product-detail-page {
    padding-top: 14px;
}

.customer-breadcrumbs a {
    color: var(--customer-accent);
}

.customer-product-hero {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 22px;
    padding: 28px 30px;
    background:
        linear-gradient(120deg, rgb(243 243 21 / 9%) 0%, rgb(243 243 21 / 0%) 44%),
        var(--customer-surface);
    border: 1px solid var(--customer-border);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgb(0 0 0 / 24%);
}

.customer-product-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 148px;
    background:
        radial-gradient(circle at 50% 50%, rgb(243 243 21 / 18%) 0%, rgb(243 243 21 / 4%) 48%, rgb(0 0 0 / 10%) 100%),
        var(--customer-surface-soft);
    border: 1px solid rgb(243 243 21 / 18%);
    border-radius: 12px;
}

.customer-product-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    background: var(--customer-accent);
    border-radius: 18px;
    color: var(--customer-accent-text);
    font-size: 1.75rem;
    box-shadow: 0 16px 36px rgb(243 243 21 / 16%);
}

.customer-product-hero-content h1 {
    margin: 0;
    color: var(--customer-text);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.12;
}

.customer-product-hero-content h1 small {
    display: inline-block;
    margin-left: 8px;
    color: var(--customer-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.customer-product-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.customer-product-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    background: rgb(255 255 255 / 5%);
    border: 1px solid var(--customer-border);
    border-radius: 999px;
    color: var(--customer-text-soft);
    font-size: 0.86rem;
    font-weight: 800;
}

.customer-product-pill strong {
    color: var(--customer-muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-product-pill--muted {
    background: var(--customer-surface-soft);
}

.customer-product-hero-copy {
    max-width: 740px;
    margin: 14px 0 0;
    color: var(--customer-text-soft);
    line-height: 1.55;
}

.customer-panel-header--stacked {
    align-items: flex-start;
}

.customer-panel-header--stacked h2 {
    margin-bottom: 6px;
}

.customer-panel-header--stacked p {
    margin: 0;
    color: var(--customer-text-soft);
    line-height: 1.5;
}

.customer-location-map-card {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: stretch;
}

.customer-location-map-preview {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    background: var(--customer-surface-raised);
    border: 1px solid var(--customer-border);
    border-radius: 10px;
}

.customer-location-map-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--customer-surface-raised);
}

.customer-location-map-preview .leaflet-container {
    width: 100%;
    height: 100%;
    background: var(--customer-surface-raised);
}

.customer-location-map-preview .leaflet-control-attribution,
.customer-location-map-preview .leaflet-control-zoom a {
    color: var(--customer-text);
}

.customer-location-map-preview .leaflet-control-attribution {
    background: rgb(17 24 39 / 78%);
}

.customer-location-map-preview .leaflet-control-zoom a {
    background: rgb(17 24 39 / 86%);
    border-bottom-color: rgb(255 255 255 / 8%);
}

.customer-location-map-preview .leaflet-control-zoom a:hover {
    background: rgb(12 93 72 / 90%);
    color: #fff;
}

.customer-location-map-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--customer-accent);
    border-radius: 10px;
    color: var(--customer-accent-text);
    font-size: 1rem;
    box-shadow: 0 10px 24px rgb(0 0 0 / 24%);
    z-index: 3;
}

.customer-location-map-coordinates {
    position: relative;
    z-index: 3;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    background: rgb(17 24 39 / 70%);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 10px;
    backdrop-filter: blur(6px);
}

.customer-location-map-coordinates span {
    color: rgb(255 255 255 / 72%);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-location-map-coordinates strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.customer-location-map-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 18px;
    background: var(--customer-surface-raised);
    border: 1px solid var(--customer-border);
    border-radius: 10px;
}

.customer-location-map-address span {
    display: block;
    margin-bottom: 5px;
    color: var(--customer-muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-location-map-address strong {
    color: var(--customer-text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
}

.customer-location-map-note {
    margin: 0;
    color: var(--customer-text-soft);
    line-height: 1.55;
}

.customer-location-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.customer-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.customer-spec-card {
    min-height: 112px;
    padding: 16px;
    background: var(--customer-surface-soft);
    border: 1px solid var(--customer-border);
    border-radius: 10px;
}

.customer-spec-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--customer-muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-spec-card strong {
    color: var(--customer-text);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.customer-manuals-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.customer-manual-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    background: var(--customer-surface-soft);
    border: 1px solid var(--customer-border);
    border-radius: 10px;
}

.customer-manual-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgb(243 243 21 / 10%);
    border: 1px solid rgb(243 243 21 / 22%);
    border-radius: 10px;
    color: var(--customer-accent);
    font-size: 1.15rem;
}

.customer-manual-card-body {
    min-width: 0;
}

.customer-manual-card-body strong {
    display: block;
    color: var(--customer-text);
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.customer-manual-card-body span {
    display: block;
    margin-top: 6px;
    color: var(--customer-text-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.customer-manual-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.customer-empty--compact {
    margin: 0;
}

.customer-product-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    margin-bottom: 18px;
    padding: 22px 24px;
    background:
        linear-gradient(90deg, rgb(243 243 21 / 8%), rgb(243 243 21 / 0%) 45%),
        var(--customer-surface);
    border: 1px solid var(--customer-border);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgb(0 0 0 / 24%);
}

.customer-product-cta h2 {
    margin: 0 0 6px;
    color: var(--customer-text);
    font-size: 1.1rem;
    font-weight: 900;
}

.customer-product-cta p {
    margin: 0;
    color: var(--customer-text-soft);
    line-height: 1.5;
}

.customer-form label,
.customer-message-form label,
.customer-auth-form label {
    color: var(--customer-text-soft);
    font-weight: 700;
}

.customer-portal .customer-form .form-control,
.customer-portal .customer-form .custom-select,
.customer-portal .customer-message-form .form-control,
.customer-portal .customer-message-form .custom-select,
.customer-auth-page .customer-auth-input.form-control,
.customer-auth-page.dark-mode .customer-auth-form .customer-auth-input.form-control {
    min-height: 40px;
    background: #0a0b0d;
    border-color: var(--customer-border);
    border-radius: 6px;
    color: var(--customer-text);
}

.customer-portal .customer-form textarea.form-control,
.customer-portal .customer-message-form textarea.form-control {
    min-height: 124px;
    line-height: 1.45;
}

.customer-portal .customer-form .form-control:focus,
.customer-portal .customer-form .custom-select:focus,
.customer-portal .customer-message-form .form-control:focus,
.customer-portal .customer-message-form .custom-select:focus,
.customer-auth-page .customer-auth-input.form-control:focus,
.customer-auth-page.dark-mode .customer-auth-form .customer-auth-input.form-control:focus {
    background: #0b0c0f;
    border-color: var(--customer-accent);
    color: var(--customer-text);
    box-shadow: 0 0 0 0.16rem rgb(243 243 21 / 15%);
}

.customer-portal .customer-form .form-control::placeholder,
.customer-portal .customer-message-form .form-control::placeholder,
.customer-auth-page .customer-auth-input.form-control::placeholder,
.customer-auth-page.dark-mode .customer-auth-form .customer-auth-input.form-control::placeholder {
    color: #737982;
}

.customer-form .form-control-file {
    color: var(--customer-text-soft);
}

.customer-portal .form-control.is-invalid,
.customer-portal .custom-select.is-invalid,
.customer-auth-page .form-control.is-invalid {
    border-color: var(--customer-danger);
    box-shadow: 0 0 0 0.12rem rgb(255 107 107 / 18%);
}

.customer-portal .invalid-feedback,
.customer-auth-page .invalid-feedback {
    margin-top: 6px;
    color: #ffb3b3;
    font-size: 0.84rem;
    font-weight: 700;
}

.customer-character-counter {
    margin-top: 6px;
    color: var(--customer-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.customer-character-counter.is-valid {
    color: var(--customer-text-soft);
}

.customer-character-counter.is-invalid {
    color: #ffb3b3;
}

.customer-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--customer-border);
}

.customer-details-list dt {
    margin-bottom: 4px;
    color: var(--customer-muted);
    font-weight: 800;
}

.customer-details-list dd {
    margin-bottom: 14px;
    color: var(--customer-text-soft);
}

.customer-ticket-attachments-panel {
    padding: 18px;
}

.customer-ticket-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customer-ticket-attachment {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    background: var(--customer-surface-soft);
    border: 1px solid var(--customer-border);
    border-radius: 8px;
}

.customer-ticket-attachment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--customer-accent-soft);
    border: 1px solid var(--customer-border-strong);
    border-radius: 8px;
    color: var(--customer-accent);
}

.customer-ticket-attachment-body {
    min-width: 0;
}

.customer-ticket-attachment-body h3 {
    margin: 0;
    color: var(--customer-text);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.customer-ticket-attachment-body p {
    margin: 4px 0 0;
    color: var(--customer-text-soft);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.customer-ticket-attachment-body span {
    display: block;
    margin-top: 5px;
    color: var(--customer-muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.customer-ticket-attachment-actions {
    display: flex;
    gap: 6px;
}

.customer-ticket-attachment-actions form {
    margin: 0;
}

.btn-customer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
}

.customer-ticket-attachment-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--customer-border);
}

.customer-ticket-description {
    color: var(--customer-text-soft);
    line-height: 1.55;
}

.customer-ticket-description-box {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 20px;
    padding: 15px 16px;
    background:
        linear-gradient(90deg, rgb(243 243 21 / 8%), rgb(255 255 255 / 2%)),
        var(--customer-surface-soft);
    border: 1px solid rgb(243 243 21 / 22%);
    border-radius: 8px;
}

.customer-ticket-description-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgb(243 243 21 / 12%);
    border: 1px solid rgb(243 243 21 / 32%);
    border-radius: 8px;
    color: var(--customer-accent);
}

.customer-ticket-description-box h2 {
    margin: 0 0 7px;
    color: var(--customer-text);
    font-size: 1rem;
    font-weight: 900;
}

.customer-ticket-description-box .customer-ticket-description {
    margin: 0;
}

.customer-message-form {
    border-top: 1px solid var(--customer-border);
    margin-top: 20px;
    padding-top: 20px;
}

.customer-message-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.btn-customer-send {
    min-width: 168px;
    min-height: 44px;
    padding-right: 22px;
    padding-left: 22px;
    font-size: 0.98rem;
}

.ticket-chat-thread.direct-chat-messages {
    height: auto;
    max-height: none;
    padding: 0;
    overflow: visible;
}

.ticket-chat-thread .direct-chat-msg {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.customer-portal .ticket-chat-thread .direct-chat-infos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 4px;
}

.customer-portal .ticket-chat-thread .direct-chat-msg.right .direct-chat-infos {
    flex-direction: row-reverse;
}

.customer-portal .ticket-chat-thread .direct-chat-name,
.customer-portal .ticket-chat-thread .direct-chat-timestamp {
    float: none !important;
    min-width: 0;
}

.customer-portal .ticket-chat-thread .direct-chat-name {
    max-width: 70%;
    overflow: hidden;
    color: var(--customer-muted);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-portal .ticket-chat-thread .direct-chat-timestamp {
    color: var(--customer-muted);
    font-size: 0.86rem;
    white-space: nowrap;
}

.customer-portal .ticket-chat-thread .direct-chat-text {
    align-self: flex-start;
    box-sizing: border-box;
    position: relative;
    max-width: calc(100% - 18px);
    margin: 0;
    min-height: 0;
    padding: 6px 10px;
    overflow-wrap: anywhere;
    white-space: normal;
    background: var(--customer-surface-soft);
    border-color: var(--customer-border);
    border-radius: 8px;
    color: var(--customer-text-soft);
    line-height: 1.35;
}

.customer-portal .ticket-chat-thread .direct-chat-text::before,
.customer-portal .ticket-chat-thread .direct-chat-text::after {
    position: absolute;
    top: 12px;
    width: 0;
    height: 0;
    border: solid transparent;
    content: "";
    pointer-events: none;
}

.customer-portal .ticket-chat-thread .direct-chat-text::before {
    left: -13px;
    border-width: 7px;
    border-right-color: var(--customer-border);
}

.customer-portal .ticket-chat-thread .direct-chat-text::after {
    left: -11px;
    border-width: 6px;
    border-right-color: var(--customer-surface-soft);
}

.customer-portal .ticket-chat-thread .right .direct-chat-text {
    align-self: flex-end;
    background: var(--customer-accent-soft);
    border-color: var(--customer-border-strong);
}

.customer-portal .ticket-chat-thread .right .direct-chat-text::before {
    right: -13px;
    left: auto;
    border-right-color: transparent;
    border-left-color: var(--customer-border-strong);
}

.customer-portal .ticket-chat-thread .right .direct-chat-text::after {
    right: -11px;
    left: auto;
    border-right-color: transparent;
    border-left-color: #2d310e;
}

.ticket-chat-thread .direct-chat-name,
.ticket-chat-thread .direct-chat-timestamp {
    color: var(--customer-muted);
}

.customer-portal .chat-attachments {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    white-space: normal;
}

.customer-portal .chat-attachment-video {
    display: block;
    width: min(100%, 286px);
    padding: 8px;
    background: rgb(0 0 0 / 16%);
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 8px;
}

.customer-portal .ticket-chat-thread .right .chat-attachment-video {
    margin-left: auto;
    background: rgb(0 0 0 / 14%);
    border-color: rgb(243 243 21 / 18%);
}

.customer-portal .chat-attachment-video-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.customer-portal .chat-attachment-video-preview {
    display: block;
    aspect-ratio: 16 / 9;
}

.customer-portal .chat-attachment-video .btn-play-video {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 12px;
    background:
        radial-gradient(circle at center, rgb(243 243 21 / 15%) 0%, rgb(243 243 21 / 3%) 42%, rgb(0 0 0 / 12%) 100%),
        rgb(0 0 0 / 20%);
    border: 1px solid rgb(243 243 21 / 26%);
    border-radius: 7px;
    color: var(--customer-text);
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.2;
    cursor: pointer;
}

.customer-portal .chat-attachment-video .btn-play-video:hover,
.customer-portal .chat-attachment-video .btn-play-video:focus {
    background:
        radial-gradient(circle at center, rgb(243 243 21 / 22%) 0%, rgb(243 243 21 / 5%) 44%, rgb(0 0 0 / 14%) 100%),
        rgb(0 0 0 / 20%);
    border-color: var(--customer-accent-strong);
    color: var(--customer-text);
    outline: none;
    transform: none;
}

.customer-portal .chat-video-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding-left: 3px;
    background: var(--customer-accent);
    border-radius: 50%;
    color: var(--customer-accent-text);
    box-shadow: 0 10px 24px rgb(243 243 21 / 18%);
}

.customer-portal .chat-video-play-icon i {
    margin: 0;
    font-size: 1rem;
}

.customer-portal .chat-video-play-label {
    color: var(--customer-text-soft);
    font-size: 0.86rem;
}

.customer-portal .chat-attachment-video .btn-outline-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 0 !important;
    padding: 0;
    border-color: rgb(255 255 255 / 18%);
    color: var(--customer-muted);
}

.customer-portal .chat-attachment-video .btn-outline-secondary:hover,
.customer-portal .chat-attachment-video .btn-outline-secondary:focus {
    background: rgb(243 243 21 / 12%);
    border-color: var(--customer-border-strong);
    color: var(--customer-accent);
}

.customer-portal .chat-attachment-name {
    display: block;
    min-width: 0;
    color: var(--customer-muted);
    overflow: hidden;
    font-size: 0.86rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-portal .chat-video-player {
    display: block;
    width: 100%;
    max-height: 220px;
    background: #000;
    border-radius: 8px;
    object-fit: contain;
}

.customer-auth-page {
    min-height: 100vh;
}

.customer-auth-toolbar {
    position: fixed;
    top: 22px;
    right: 22px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.customer-auth-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 24px;
}

.customer-auth-card {
    width: min(430px, 100%);
    padding: 36px;
    background: var(--customer-surface);
    border: 1px solid var(--customer-border);
    border-radius: 8px;
    box-shadow: var(--customer-shadow);
}

.customer-auth-brand {
    margin-bottom: 28px;
    text-align: center;
}

.customer-auth-logo {
    height: 56px;
    width: auto;
}

.customer-auth-title {
    margin-top: 14px;
    color: var(--customer-muted);
    font-weight: 800;
}

.customer-auth-page .customer-auth-icon.input-group-text {
    background: var(--customer-accent);
    border-color: var(--customer-accent);
    color: var(--customer-accent-text);
}

.customer-auth-copy {
    color: var(--customer-muted);
    line-height: 1.5;
    text-align: center;
}

@keyframes customer-welcome {
    from {
        opacity: 0.58;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (width <= 991.98px) {
    .customer-navbar .navbar-nav {
        align-items: stretch;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .customer-navbar .nav-item {
        margin-right: 0;
        margin-bottom: 6px;
    }

    .customer-navbar .customer-nav-divider {
        width: auto;
        height: 1px;
        margin: 8px 0;
        background: rgb(255 255 255 / 10%);
    }

    .customer-navbar .customer-nav-right {
        border-top: 1px solid rgb(255 255 255 / 10%);
        margin-top: 8px;
        padding-top: 12px;
    }

    .customer-ticket-guidance-points {
        grid-template-columns: 1fr;
    }

    .customer-product-hero {
        grid-template-columns: 1fr;
    }

    .customer-manual-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .customer-manual-card-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (width <= 767.98px) {
    .customer-navbar.navbar {
        padding-right: 8px;
        padding-left: 8px;
    }

    .customer-container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .customer-content {
        padding-top: 16px;
    }

    .customer-hero,
    .customer-page-header,
    .customer-panel-header,
    .customer-filter-bar,
    .customer-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-hero,
    .customer-page-header {
        min-height: auto;
        padding: 24px 22px;
    }

    .customer-ticket-attachment {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .customer-ticket-attachment-actions {
        grid-column: 2;
    }

    .customer-hero h1,
    .customer-page-header h1 {
        font-size: 1.45rem;
    }

    .customer-metric {
        min-height: 104px;
    }

    .customer-ticket-guidance {
        grid-template-columns: 1fr;
    }

    .customer-dashboard-alert,
    .customer-pagination-bar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .customer-dashboard-message-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-dashboard-message-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-location-map-card {
        grid-template-columns: 1fr;
    }

    .customer-breadcrumbs,
    .customer-product-pills,
    .customer-product-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-product-hero {
        padding: 22px;
    }

    .customer-product-hero-content h1 {
        font-size: 1.55rem;
    }

    .customer-product-hero-content h1 small {
        display: block;
        margin-top: 6px;
        margin-left: 0;
    }

    .customer-auth-toolbar {
        position: static;
        justify-content: center;
        padding-top: 16px;
    }

    .customer-auth-shell {
        align-items: flex-start;
        padding: 18px 16px 28px;
    }

    .customer-auth-card {
        padding: 28px 22px;
    }

    .customer-message-form-actions {
        justify-content: stretch;
    }

    .btn-customer-send {
        width: 100%;
    }

    .customer-footer-meta,
    .customer-footer-signoff {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .customer-panel .table-responsive {
        overflow: visible;
    }

    .customer-table.table,
    .customer-table thead,
    .customer-table tbody,
    .customer-table tr,
    .customer-table td {
        display: block;
        width: 100%;
    }

    .customer-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .customer-table tbody tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--customer-border);
    }

    .customer-table tbody tr:last-child {
        border-bottom: 0;
    }

    .customer-table td {
        display: grid;
        grid-template-columns: minmax(96px, 36%) minmax(0, 1fr);
        gap: 12px;
        padding: 8px 0;
        border-top: 0;
        line-height: 1.45;
    }

    .customer-table td::before {
        color: var(--customer-muted);
        content: attr(data-label);
        font-size: 0.74rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .customer-table td > * {
        min-width: 0;
    }

    .customer-status-badge.badge {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }
}

/* Inline role pill rendered alongside the eyebrow on employee detail pages. */
.customer-role-pill {
    display: inline-block;
    padding: 1px 10px;
    border: 1px solid var(--customer-border-strong);
    border-radius: 999px;
    background: var(--customer-accent-soft);
    color: var(--customer-accent-strong);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* AdminLTE-compatible confirmation modal styled for the customer portal. */
.customer-confirm-modal .modal-content {
    background: var(--customer-surface-raised);
    border: 1px solid var(--customer-border);
    color: var(--customer-text);
}

.customer-confirm-modal .modal-header,
.customer-confirm-modal .modal-footer {
    border-color: var(--customer-border);
}

.customer-confirm-modal .modal-title {
    color: var(--customer-text);
    font-weight: 700;
}

.customer-confirm-modal .close {
    color: var(--customer-text-soft);
    text-shadow: none;
    opacity: 0.85;
}

.customer-confirm-modal .close:hover {
    color: var(--customer-text);
    opacity: 1;
}

.customer-confirm-modal .modal-body {
    color: var(--customer-text-soft);
}
