:root {
    --brand: #2e5bff;
    --brand-dark: #1d4ed8;
    --soft-bg: #f7f9fc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
}

html {
    font-size: 16px;
}

body {
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    background: #f6f8fb;
    color: var(--text);
}

html[dir="ltr"] body {
    font-family: "Cairo", Arial, Tahoma, sans-serif;
    text-align: left;
}

html[dir="ltr"] .text-end {
    text-align: right !important;
}

html[dir="ltr"] .text-start {
    text-align: left !important;
}

html[dir="ltr"] .details-list dt {
    text-align: left;
}

.topbar {
    background: linear-gradient(135deg, #1840b8, #2563eb);
}

.brand {
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    white-space: nowrap;
}

.brand:hover,
.brand:focus {
    color: #fff;
}

.portal-nav {
    max-width: 100%;
}

.portal-nav .btn {
    white-space: nowrap;
}

.language-switcher {
    align-items: center;
}

.nav-active {
    box-shadow: inset 0 -2px 0 rgba(37, 99, 235, .35);
}

.skip-link {
    position: absolute;
    inset-block-start: .75rem;
    inset-inline-start: .75rem;
    z-index: 1050;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .5rem;
    padding: .5rem .75rem;
}

.modern-card,
.stat-card,
.summary-box,
.mini-card {
    border: 0;
    border-radius: .5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    background: #fff;
}

.portal-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.portal-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 91, 255, 0.08);
    color: var(--brand-dark);
    border-radius: 999px;
    padding: .45rem .9rem;
    font-size: .9rem;
    font-weight: 700;
}

.portal-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
}

.hero-card {
    overflow: hidden;
    position: relative;
}

.hero-card::after {
    content: none;
}

.hero-badge {
    color: var(--brand-dark);
    font-weight: 700;
}

.action-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
    min-width: min(100%, 230px);
}

.action-btn {
    border-radius: .5rem;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(46, 91, 255, 0.12);
}

.stat-card {
    padding: 1.25rem;
    height: 100%;
}

.stat-card-action {
    display: block;
    color: inherit;
    border: 1px solid rgba(37, 99, 235, 0.18);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}

button.stat-card-action {
    background: #fff;
    text-align: inherit;
}

.stat-card-action:hover,
.stat-card-action:focus {
    color: inherit;
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.16);
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.invoice-print-card .stat-value {
    color: var(--brand-dark);
}

.invoice-finalize-card .stat-value {
    color: var(--brand);
}

.invoice-finalize-card:disabled {
    cursor: not-allowed;
    opacity: .62;
    transform: none;
    box-shadow: none;
    background: #f8fafc;
}

.print-paper-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.print-paper-option {
    display: grid;
    gap: .25rem;
    min-height: 94px;
    border: 1px solid var(--line);
    border-radius: .5rem;
    padding: .95rem 1rem;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.print-paper-option:hover,
.print-paper-option:focus-within,
.print-paper-option.selected,
.print-paper-option:has(input:checked) {
    border-color: rgba(37, 99, 235, .75);
    box-shadow: 0 12px 24px rgba(37, 99, 235, .12);
    background: #eff6ff;
}

.print-paper-option input {
    justify-self: start;
}

.print-paper-option-title {
    font-weight: 800;
    color: var(--ink);
}

.print-paper-option-note {
    color: var(--muted);
    font-size: .92rem;
}

@media (max-width: 576px) {
    .print-paper-options {
        grid-template-columns: 1fr;
    }
}

.stat-title {
    color: var(--muted);
    margin-bottom: .5rem;
    font-weight: 700;
}

.stat-value {
    font-size: clamp(1.05rem, 1.6vw, 1.7rem);
    line-height: 1.15;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.stat-subtitle {
    color: var(--muted);
    font-size: .92rem;
    margin-top: .35rem;
}

.package-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
}

.summary-box {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.summary-box span {
    color: var(--muted);
    font-size: .95rem;
    font-weight: 700;
}

.summary-box strong {
    font-size: 1.1rem;
}

.modern-card-header {
    background: linear-gradient(135deg, var(--brand), #4f7dff);
    color: #fff;
    font-weight: 800;
    border: 0;
    padding: 1rem 1.25rem;
}

.details-grid {
    display: grid;
    gap: .85rem;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: .5rem;
    padding: .9rem 1rem;
    background: #fbfdff;
}

.detail-item span {
    color: var(--muted);
    font-weight: 700;
}

.detail-item strong {
    font-weight: 800;
    text-align: left;
}

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

.horizontal-cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 320px);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .4rem;
    scroll-snap-type: x proximity;
}

.horizontal-cards::-webkit-scrollbar {
    height: 10px;
}

.horizontal-cards::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.mini-card {
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    scroll-snap-align: start;
}

.mini-card-icon {
    font-size: 2rem;
    margin-bottom: .6rem;
}

.mini-card-date {
    font-weight: 800;
    margin-bottom: .85rem;
}

.mini-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.mini-card-grid span {
    display: block;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .2rem;
    font-weight: 700;
}

.mini-card-grid strong {
    font-size: .95rem;
    word-break: break-word;
}

.invoice-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.recharge-card {
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf8 100%);
}

.order-card {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}

.empty-state {
    border: 1px dashed #cbd5e1;
    border-radius: .5rem;
    padding: 1.25rem;
    text-align: center;
    color: var(--muted);
    background: #fbfdff;
}

.portal-footer {
    font-size: .95rem;
}

.table > :not(caption) > * > * {
    padding-top: .85rem;
    padding-bottom: .85rem;
    vertical-align: middle;
}

.table-responsive {
    border-radius: .5rem;
    -webkit-overflow-scrolling: touch;
}

.table-responsive > .table {
    min-width: 720px;
}

.table thead th {
    color: #334155;
    font-size: .92rem;
    white-space: nowrap;
}

.table td,
.table th,
.details-list dd,
.details-list dt {
    overflow-wrap: anywhere;
}

dl dt {
    color: var(--muted);
    font-weight: 700;
}

dl dd {
    margin-bottom: .85rem;
}

.alert {
    border: 0;
    border-radius: .5rem;
}

.btn {
    font-weight: 700;
}

.btn[disabled],
.btn.disabled {
    cursor: not-allowed;
    opacity: .62;
}

form .btn,
.operation-actions .btn {
    white-space: normal;
}

.form-control,
.form-select {
    min-height: 42px;
}

input[type="date"],
input[type="number"] {
    direction: ltr;
    text-align: right;
}

.timeline-list {
    display: grid;
    gap: .75rem;
}

.timeline-item {
    border: 1px solid var(--line);
    border-radius: .5rem;
    padding: .75rem;
    background: #f8fafc;
}

.customer-search-results {
    display: grid;
    gap: .5rem;
}

.customer-result-button {
    border: 1px solid var(--line);
    border-radius: .5rem;
    background: #fff;
    color: var(--text);
    display: grid;
    gap: .2rem;
    padding: .75rem;
    text-align: right;
    width: 100%;
}

.customer-result-button:hover,
.customer-result-button:focus {
    border-color: rgba(46, 91, 255, .45);
    box-shadow: 0 0 0 .2rem rgba(46, 91, 255, .08);
}

.subscription-balance-summary {
    background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
    border: 1px solid rgba(46, 91, 255, .22);
    border-radius: .75rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
    margin-block-end: .85rem;
    padding: .85rem;
}

.subscription-balance-summary-title {
    color: var(--brand-dark);
    font-size: .95rem;
    font-weight: 900;
    margin-block-end: .65rem;
}

.subscription-balance-summary-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.subscription-balance-summary-item {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: .65rem;
    display: grid;
    gap: .2rem;
    padding: .7rem;
}

.subscription-balance-summary-item span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.subscription-balance-summary-item strong {
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0;
}

.order-total-summary {
    background: #fff;
    border: 1px solid rgba(14, 165, 233, .28);
    border-radius: .75rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    margin-block-end: .85rem;
    padding: .85rem;
}

.order-total-summary-title {
    color: var(--brand-dark);
    font-size: .95rem;
    font-weight: 900;
    margin-block-end: .65rem;
}

.order-total-summary-body {
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: .65rem;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    padding: .75rem;
}

.order-total-summary-body span {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
}

.order-total-summary-body strong {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: 0;
    white-space: nowrap;
}

.order-total-summary-hint {
    color: #92400e;
    font-size: .82rem;
    font-weight: 700;
    margin-block-start: .55rem;
}

.cash-followup-table {
    min-width: 980px;
}

.cash-followup-table td,
.cash-followup-table th {
    white-space: nowrap;
}

.cash-collection-summary {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cash-collection-summary > div {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: .6rem;
    display: grid;
    gap: .15rem;
    padding: .7rem;
}

.cash-collection-summary span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.cash-collection-summary strong {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
}

.cash-collection-summary-due {
    background: #fff7ed !important;
    border-color: rgba(249, 115, 22, .25) !important;
}

.cash-collection-summary-due strong {
    color: #b45309;
}

.employee-order-items-table {
    min-width: 820px;
    table-layout: fixed;
}

.employee-order-items-table .order-item-col-catalog {
    width: 43%;
}

.employee-order-items-table .order-item-col-service {
    width: 22%;
}

.employee-order-items-table .order-item-col-quantity {
    width: 12%;
}

.employee-order-items-table .order-item-col-notes {
    width: 17%;
}

.employee-order-items-table .order-item-col-actions {
    width: 6%;
}

.employee-order-dynamic-row {
    animation: order-row-added .22s ease-out;
}

@keyframes order-row-added {
    from {
        background: #eff6ff;
    }
    to {
        background: transparent;
    }
}

.item-picker-control {
    min-width: 0;
}

.item-display-input {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-item-quantity-cell {
    text-align: center;
}

.order-item-quantity-input {
    margin-inline: auto;
    max-width: 6.5rem;
    min-width: 5.25rem;
    text-align: center !important;
}

.quantity-picker-control {
    flex-wrap: nowrap;
    justify-content: center;
    min-width: 0;
}

.quantity-picker-control .order-item-quantity-input {
    margin-inline: 0;
    max-width: 5rem;
    min-width: 3.8rem;
}

.quantity-picker-button {
    font-weight: 900;
    min-width: 2.45rem;
}

.order-item-notes-input {
    min-width: 0;
}

.service-picker-button {
    align-items: center;
    display: flex;
    font-size: .86rem;
    justify-content: center;
    line-height: 1.25;
    min-height: 42px;
    overflow: hidden;
    padding: .35rem .55rem;
    text-overflow: ellipsis;
    white-space: normal;
    width: 100%;
}

.service-picker-button.has-value {
    border-color: rgba(46, 91, 255, .45);
    color: var(--primary);
    font-weight: 700;
}

.order-item-clear-button {
    align-items: center;
    display: inline-flex;
    height: 2.35rem;
    justify-content: center;
    padding: 0;
    width: 2.35rem;
}

.order-item-clear-button svg {
    fill: currentColor;
    height: 1.1rem;
    width: 1.1rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .85rem;
}

.catalog-card-button {
    border: 1px solid var(--line);
    border-radius: .5rem;
    background: #fff;
    color: var(--text);
    display: grid;
    gap: .45rem;
    padding: .75rem;
    position: relative;
    text-align: right;
    min-height: 210px;
}

.catalog-card-button:hover,
.catalog-card-button:focus {
    border-color: rgba(46, 91, 255, .5);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
}

.catalog-card-button.catalog-item-added {
    border-color: rgba(22, 163, 74, .9);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, .18), 0 12px 26px rgba(21, 128, 61, .14);
}

.catalog-card-button.catalog-item-added:hover,
.catalog-card-button.catalog-item-added:focus {
    border-color: #15803d;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .22), 0 14px 30px rgba(21, 128, 61, .18);
}

.catalog-card-image,
.catalog-card-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: .45rem;
    object-fit: contain;
    background: #eef2ff;
}

.catalog-card-placeholder {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    justify-content: center;
    padding: .5rem;
    text-align: center;
}

.catalog-card-title {
    font-weight: 800;
}

.catalog-card-group {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}

.catalog-card-added-badge {
    align-self: start;
    background: rgba(22, 163, 74, .1);
    border: 1px solid rgba(22, 163, 74, .24);
    border-radius: 999px;
    color: #15803d;
    display: none;
    font-size: .78rem;
    font-weight: 800;
    justify-self: start;
    padding: .18rem .55rem;
}

.catalog-card-button.catalog-item-added .catalog-card-added-badge {
    display: inline-flex;
}

.catalog-edit-image-frame {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: .75rem;
    display: flex;
    justify-content: center;
    min-height: 220px;
    overflow: hidden;
    padding: 1rem;
}

.catalog-edit-image-preview {
    max-height: 260px;
    max-width: 100%;
    object-fit: contain;
}

.catalog-edit-image-empty {
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.service-picker-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.service-card-button {
    align-items: stretch;
    --service-accent: #2563eb;
    --service-soft: #eff6ff;
    --service-border: rgba(37, 99, 235, .22);
    --service-price-bg: #dbeafe;
    --service-price-color: #1d4ed8;
    background: linear-gradient(135deg, #fff 0%, var(--service-soft) 100%);
    border: 1px solid var(--service-border);
    border-radius: .75rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    color: var(--text);
    display: flex;
    gap: .9rem;
    min-height: 160px;
    overflow: hidden;
    padding: 1rem;
    position: relative;
    text-align: right;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}

.service-card-button::before {
    background: var(--service-accent);
    bottom: 0;
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
}

.service-card-button:hover,
.service-card-button:focus {
    border-color: var(--service-accent);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
    transform: translateY(-2px);
}

.service-card-button.selected {
    border-color: var(--service-accent);
    box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--service-accent) 18%, transparent), 0 18px 34px rgba(15, 23, 42, .14);
    transform: translateY(-1px);
}

.service-card-button:disabled {
    background: #f8fafc;
    color: var(--muted);
    cursor: not-allowed;
    opacity: .72;
}

.service-card-icon {
    align-items: center;
    background: #fff;
    border: 1px solid var(--service-border);
    border-radius: .65rem;
    color: var(--service-accent);
    display: inline-flex;
    flex: 0 0 52px;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.service-card-icon svg {
    fill: currentColor;
    height: 1.8rem;
    width: 1.8rem;
}

.service-card-body {
    display: grid;
    gap: .45rem;
    min-width: 0;
}

.service-card-title {
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.35;
}

.service-card-description {
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.45;
}

.service-card-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.service-card-price,
.service-card-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 900;
    padding: .34rem .7rem;
}

.service-card-price {
    background: var(--service-price-bg);
    color: var(--service-price-color);
    letter-spacing: 0;
}

.service-card-badge {
    background: #fff7ed;
    color: #c2410c;
}

.service-card-check {
    align-items: center;
    background: var(--service-accent);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    height: 1.7rem;
    justify-content: center;
    left: .8rem;
    opacity: 0;
    position: absolute;
    top: .8rem;
    transform: scale(.85);
    transition: opacity .18s ease, transform .18s ease;
    width: 1.7rem;
}

.service-card-check svg {
    fill: currentColor;
    height: 1.1rem;
    width: 1.1rem;
}

.service-card-button.selected .service-card-check {
    opacity: 1;
    transform: scale(1);
}

.service-tone-iron {
    --service-accent: #2563eb;
    --service-soft: #eff6ff;
    --service-border: rgba(37, 99, 235, .25);
    --service-price-bg: #dbeafe;
    --service-price-color: #1d4ed8;
}

.service-tone-iron-urgent {
    --service-accent: #ea580c;
    --service-soft: #fff7ed;
    --service-border: rgba(234, 88, 12, .28);
    --service-price-bg: #ffedd5;
    --service-price-color: #c2410c;
}

.service-tone-wash {
    --service-accent: #0891b2;
    --service-soft: #ecfeff;
    --service-border: rgba(8, 145, 178, .28);
    --service-price-bg: #cffafe;
    --service-price-color: #0e7490;
}

.service-tone-wash-urgent {
    --service-accent: #db2777;
    --service-soft: #fdf2f8;
    --service-border: rgba(219, 39, 119, .28);
    --service-price-bg: #fce7f3;
    --service-price-color: #be185d;
}

.service-tone-dryclean {
    --service-accent: #475569;
    --service-soft: #f8fafc;
    --service-border: rgba(71, 85, 105, .25);
    --service-price-bg: #e2e8f0;
    --service-price-color: #334155;
}

.service-tone-dryclean-urgent {
    --service-accent: #7c3aed;
    --service-soft: #f5f3ff;
    --service-border: rgba(124, 58, 237, .28);
    --service-price-bg: #ede9fe;
    --service-price-color: #6d28d9;
}

.service-tone-default {
    --service-accent: #2e5bff;
    --service-soft: #f8fbff;
    --service-border: rgba(46, 91, 255, .25);
    --service-price-bg: #eef2ff;
    --service-price-color: #2e5bff;
}

.quantity-modal-content {
    border: 0;
    border-radius: .85rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.quantity-picker-context {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: .6rem;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: .9rem;
    padding: .75rem;
    text-align: center;
}

.quantity-display {
    align-items: center;
    background: #0f172a;
    border-radius: .75rem;
    color: #fff;
    display: flex;
    font-size: 2.25rem;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0;
    margin-bottom: .9rem;
    min-height: 76px;
    padding: .5rem;
}

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

.quantity-key {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .65rem;
    color: var(--text);
    font-size: 1.28rem;
    font-weight: 900;
    min-height: 58px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.quantity-key:hover,
.quantity-key:focus {
    border-color: rgba(46, 91, 255, .55);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
    transform: translateY(-1px);
}

.quantity-key-muted {
    background: #f8fafc;
    color: var(--muted);
    font-size: 1rem;
}

.quantity-actions {
    display: grid;
    gap: .65rem;
    grid-template-columns: 1fr 1fr;
    margin-top: .9rem;
}

.quantity-actions .btn {
    min-height: 46px;
}

.admin-dashboard {
    max-width: 1320px;
}

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

.admin-dashboard-period {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .5rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    min-width: min(100%, 230px);
    padding: 1rem;
}

.admin-dashboard-period span,
.dashboard-stat-card span,
.dashboard-stat-card small,
.dashboard-section-title p,
.admin-shortcut span,
.ranking-row span,
.top-customer-card span,
.top-customer-card small {
    color: var(--muted);
    font-weight: 700;
}

.admin-dashboard-period strong {
    display: block;
    font-size: 1.1rem;
    margin-top: .25rem;
}

.quick-range-group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

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

.dashboard-stat-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: .5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
    color: #172033;
    overflow: hidden;
    padding: 1.1rem;
    position: relative;
}

a.dashboard-stat-card:hover,
a.dashboard-stat-card:focus {
    color: #172033;
    box-shadow: 0 14px 34px rgba(37, 99, 235, .12);
    transform: translateY(-1px);
}

.dashboard-stat-card::before {
    content: "";
    display: block;
    height: 4px;
    inset-block-start: 0;
    inset-inline: 0;
    position: absolute;
}

.dashboard-stat-card strong {
    display: block;
    font-size: clamp(1.2rem, 2vw, 1.9rem);
    font-weight: 800;
    line-height: 1.15;
    margin: .45rem 0 .25rem;
    overflow-wrap: anywhere;
}

.dashboard-stat-card small {
    display: block;
    font-size: .86rem;
    line-height: 1.6;
}

.accent-blue::before { background: #2563eb; }
.accent-green::before { background: #059669; }
.accent-teal::before { background: #14b8a6; }
.accent-red::before { background: #dc2626; }
.accent-purple::before { background: #7c3aed; }
.accent-indigo::before { background: #4f46e5; }
.accent-orange::before { background: #f59e0b; }
.accent-slate::before { background: #475569; }
.accent-amber::before { background: #d97706; }

.dashboard-section-title {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dashboard-section-title h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 .25rem;
}

.dashboard-section-title p {
    font-size: .9rem;
    margin: 0;
}

.dashboard-chart-wrap {
    height: 320px;
    min-width: 0;
    position: relative;
}

.dashboard-chart-wrap.compact {
    height: 260px;
}

.ranking-list {
    display: grid;
    gap: .65rem;
}

.ranking-row {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: .5rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .75rem .85rem;
}

.ranking-row strong,
.ranking-row span {
    display: block;
}

.top-customer-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(124, 58, 237, .08));
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: .5rem;
    padding: 1rem;
}

.top-customer-card strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    margin: .25rem 0;
}

.top-customer-card div {
    font-weight: 700;
    margin-top: .65rem;
}

.admin-shortcuts-grid {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-shortcut {
    border: 1px solid var(--line);
    border-radius: .5rem;
    color: var(--text);
    display: grid;
    gap: .35rem;
    padding: .9rem;
    text-decoration: none;
}

.admin-shortcut:hover,
.admin-shortcut:focus {
    border-color: rgba(37, 99, 235, .35);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    color: var(--text);
}

.admin-shortcut strong {
    font-weight: 800;
}

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

    .admin-dashboard-hero {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .employee-order-items-table {
        min-width: 760px;
    }

    .employee-order-items-table .order-item-col-catalog {
        width: 40%;
    }

    .employee-order-items-table .order-item-col-quantity {
        width: 13%;
    }

    .employee-order-items-table .order-item-col-notes {
        width: 16%;
    }

    .employee-order-items-table .order-item-col-actions {
        width: 7%;
    }
}

.customer-order-items-wrap {
    inline-size: 100%;
    max-inline-size: 100%;
    overflow-x: hidden;
}

.customer-order-items-list {
    display: grid;
    gap: .9rem;
    inline-size: 100%;
    max-inline-size: 100%;
    min-width: 0;
}

.customer-order-item-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .9rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
    box-sizing: border-box;
    display: grid;
    gap: .75rem;
    inline-size: 100%;
    max-inline-size: 100%;
    min-width: 0;
    overflow: hidden;
    padding: .9rem;
}

.customer-order-item-card *,
.customer-order-item-card *::before,
.customer-order-item-card *::after {
    box-sizing: border-box;
}

.customer-order-item-row {
    align-items: center;
    display: grid;
    gap: .65rem;
    grid-template-columns: minmax(0, 1fr) auto;
    inline-size: 100%;
    max-inline-size: 100%;
    min-width: 0;
}

.customer-order-item-value {
    display: grid;
    gap: .32rem;
    min-width: 0;
}

.customer-order-item-label {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
    line-height: 1.25;
}

.customer-order-item-display,
.customer-order-service-display {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .45rem;
    color: var(--text);
    display: flex;
    font-weight: 700;
    line-height: 1.5;
    min-height: 42px;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: .55rem .7rem;
    text-align: start;
    width: 100%;
}

.customer-order-item-display.item-display-input {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
}

.customer-order-item-action {
    flex: 0 0 auto;
    min-height: 42px;
    white-space: nowrap;
    width: auto;
}

.customer-order-item-action.service-picker-button {
    width: auto;
}

.customer-order-quantity-input {
    min-width: 0 !important;
    width: 100%;
}

.customer-order-delete-button {
    align-items: center;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    min-height: 42px;
    min-width: 42px;
    width: 42px;
}

.customer-order-validation:empty {
    display: none;
}

@media (max-width: 575.98px) {
    html {
        font-size: 15px;
    }

    .topbar .container {
        align-items: stretch !important;
    }

    .brand {
        width: 100%;
    }

    .portal-nav {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: .25rem;
        scrollbar-width: thin;
        width: 100%;
    }

    .portal-nav .btn {
        flex: 0 0 auto;
    }

    .portal-title,
    h1.h3 {
        font-size: 1.35rem;
    }

    .d-flex.flex-wrap.gap-2,
    .d-flex.flex-wrap.gap-3 {
        row-gap: .6rem !important;
    }

    .card-body {
        padding: 1rem;
    }

    .account-summary-grid,
    .mini-card-grid {
        grid-template-columns: 1fr;
    }

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

    .action-stack {
        width: 100%;
    }

    .horizontal-cards {
        grid-auto-columns: minmax(230px, 88vw);
    }

    .service-picker-grid {
        grid-template-columns: 1fr;
    }

    .service-card-button {
        min-height: 148px;
        padding: .9rem;
    }

    .service-card-icon {
        flex-basis: 46px;
        height: 46px;
        width: 46px;
    }

    .dashboard-stat-grid,
    .admin-shortcuts-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-chart-wrap,
    .dashboard-chart-wrap.compact {
        height: 250px;
    }

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

.form-control-modern,
.form-select.form-control-modern {
    border-radius: .5rem;
    border: 1px solid var(--line);
    min-height: 52px;
    padding: .85rem 1rem;
    box-shadow: none;
}

.form-control-modern:focus,
.form-select.form-control-modern:focus {
    border-color: rgba(46, 91, 255, 0.35);
    box-shadow: 0 0 0 0.2rem rgba(46, 91, 255, 0.12);
}

.page-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-heading h1 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: .35rem;
}

.page-heading p {
    color: var(--muted);
    margin-bottom: 0;
}

.portal-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    padding: 1.25rem;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.subscription-choice {
    border: 1px solid var(--line);
    border-radius: .5rem;
    padding: .9rem 2.4rem .9rem 1rem;
    background: #f8fafc;
    min-height: 52px;
}

.subscription-choice .form-check-label {
    font-weight: 800;
}

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

.subscription-package-card {
    display: grid;
    gap: .65rem;
    border: 1px solid var(--line);
    border-radius: .5rem;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    padding: 1rem;
    cursor: pointer;
    min-height: 172px;
    position: relative;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, transform .15s ease;
    touch-action: manipulation;
}

.subscription-package-card:hover,
.subscription-package-card:focus-within {
    border-color: rgba(46, 91, 255, .45);
    box-shadow: 0 0 0 .2rem rgba(46, 91, 255, .08);
}

.subscription-package-card:has(input:checked) {
    background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
    border-color: var(--brand);
    box-shadow: 0 0 0 .22rem rgba(46, 91, 255, .14), 0 18px 36px rgba(15, 23, 42, .08);
}

.subscription-package-card:has(input:disabled) {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: .72;
}

.subscription-package-card .package-radio {
    position: absolute;
    inset-block-start: 1rem;
    inset-inline-end: 1rem;
    min-height: auto;
}

.package-card-head {
    display: grid;
    gap: .45rem;
    padding-inline-end: 1.8rem;
}

.subscription-package-card .package-name {
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.5;
}

.package-type-badge {
    align-self: start;
    background: rgba(46, 91, 255, .08);
    border-radius: 999px;
    color: var(--brand-dark);
    display: inline-flex;
    font-size: .82rem;
    font-weight: 800;
    padding: .28rem .65rem;
    width: fit-content;
}

.package-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.package-info-badge {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: .45rem;
    color: #075985;
    font-size: .86rem;
    font-weight: 800;
    padding: .35rem .55rem;
}

.package-info-badge-soft {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.subscription-package-card .package-meta,
.subscription-package-card .package-notes {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65;
}

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

.subscription-method-card {
    display: grid;
    gap: .55rem;
    border: 1px solid var(--line);
    border-radius: .5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    cursor: pointer;
    min-height: 166px;
    padding: 1rem;
    position: relative;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    touch-action: manipulation;
}

.subscription-method-card.is-preferred {
    border-color: rgba(46, 91, 255, .25);
}

.subscription-method-card.is-secondary {
    background: #fff;
}

.subscription-method-card.is-disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: .78;
}

.subscription-method-card:hover,
.subscription-method-card:focus-within {
    border-color: rgba(46, 91, 255, .45);
    box-shadow: 0 0 0 .2rem rgba(46, 91, 255, .08);
}

.subscription-method-card:has(input:checked) {
    background: #f0f6ff;
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(46, 91, 255, .12);
}

.subscription-method-card input {
    position: absolute;
    inset-block-start: 1rem;
    inset-inline-end: 1rem;
    min-height: auto;
}

.method-card-top {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: space-between;
    padding-inline-end: 1.8rem;
}

.method-icon {
    align-items: center;
    background: rgba(46, 91, 255, .1);
    border-radius: .5rem;
    color: var(--brand-dark);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.method-icon svg {
    fill: currentColor;
    height: 26px;
    width: 26px;
}

.method-priority-badge {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    font-size: .78rem;
    font-weight: 800;
    padding: .25rem .55rem;
}

.subscription-method-card.is-secondary .method-priority-badge {
    background: #f8fafc;
    border-color: var(--line);
    color: var(--muted);
}

.subscription-method-card.is-disabled .method-icon,
.subscription-method-card.is-disabled .method-priority-badge {
    filter: grayscale(1);
    opacity: .7;
}

.subscription-method-card .method-title {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.45;
}

.subscription-method-card .method-description,
.subscription-method-card .method-status {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
}

.subscription-method-card .method-status {
    align-self: end;
    color: var(--brand-dark);
    font-weight: 800;
}

.subscription-summary-box {
    min-height: 74px;
    border: 1px solid var(--line);
    border-radius: .5rem;
    background: #f8fafc;
    padding: .75rem .9rem;
}

.dashboard-grid {
    display: grid;
    gap: .9rem;
}

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

.dashboard-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .5rem;
    padding: 1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.dashboard-card-label {
    display: block;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: .35rem;
}

.dashboard-card strong {
    font-size: 1.45rem;
    font-weight: 800;
}

.daily-close-period {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.daily-close-period div,
.daily-close-total {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: .5rem;
    padding: .9rem 1rem;
}

.daily-close-period span,
.daily-close-total span {
    color: var(--muted);
    display: block;
    font-weight: 700;
    margin-bottom: .3rem;
}

.daily-close-period strong,
.daily-close-total strong {
    font-weight: 900;
}

.daily-close-total {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.daily-close-total strong {
    color: var(--brand-dark);
    font-size: clamp(1.25rem, 2vw, 1.8rem);
}

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

.daily-close-form .btn {
    min-width: min(100%, 260px);
}

.order-help-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.order-help-icon {
    width: 64px;
    height: 64px;
    border-radius: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(46, 91, 255, 0.08);
}

.compact-grid .detail-item {
    padding: .8rem .9rem;
}

.timeline-steps {
    display: grid;
    gap: .9rem;
}

.timeline-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: .85rem;
    align-items: start;
}

.timeline-step strong {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(46, 91, 255, 0.08);
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.timeline-step span {
    color: var(--text);
    line-height: 1.8;
}

.admin-sticky-table-wrap {
    border: 1px solid var(--border);
    border-radius: .85rem;
    background: #fff;
    overflow: auto;
}

.admin-sticky-table {
    table-layout: auto;
}

.admin-users-table {
    min-width: 980px;
}

.admin-catalog-table {
    min-width: 820px;
}

.admin-subscriptions-table {
    min-width: 860px;
}

.admin-subscribers-table {
    min-width: 1280px;
}

.admin-customer-users-table {
    min-width: 1180px;
}

.admin-sticky-table .sticky-right-col {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 18px -18px rgba(15, 23, 42, .55);
}

.admin-sticky-table thead .sticky-right-col {
    z-index: 4;
    background: #f8fafc;
}

.admin-sticky-table .admin-primary-col {
    min-width: 220px;
    max-width: 320px;
}

.admin-sticky-table .admin-primary-col .fw-semibold {
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: break-word;
}

.admin-sticky-table tbody tr:hover .sticky-right-col {
    background: #f8fafc;
}

.permission-audit-table {
    min-width: 1200px;
}

.permission-audit-notes {
    min-width: 180px;
    max-width: 280px;
    overflow-wrap: anywhere;
}

.permission-audit-user-agent {
    display: inline-block;
    min-width: 220px;
    max-width: 340px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.subscription-point-rules-table {
    border: 1px solid var(--border);
    border-radius: .85rem;
    background: #fff;
    overflow: auto;
}

.point-rules-matrix {
    min-width: 980px;
    table-layout: fixed;
    margin-bottom: 0;
}

.point-rules-matrix th,
.point-rules-matrix td {
    vertical-align: middle;
}

.point-rules-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.point-rules-matrix .rule-item-col {
    width: 280px;
    min-width: 280px;
    position: sticky;
    right: 0;
    z-index: 2;
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 18px -18px rgba(15, 23, 42, 0.55);
}

.point-rules-matrix thead .rule-item-col {
    z-index: 4;
    background: #f1f5f9;
}

.point-rule-service-col {
    width: 116px;
    min-width: 116px;
}

.point-rule-service-header {
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.35;
    white-space: normal;
    border-bottom: 2px solid var(--point-rule-accent, #cbd5e1);
    background: linear-gradient(180deg, var(--point-rule-header-bg, #f8fafc), #fff);
    color: var(--point-rule-text, var(--text));
}

.point-rule-service-header span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
}

.point-rule-item {
    min-width: 0;
    line-height: 1.55;
}

.point-rule-item-name {
    color: var(--text);
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: break-word;
    unicode-bidi: plaintext;
}

.point-rule-item-meta,
.point-rule-item-id {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: break-word;
}

.point-rule-service-cell {
    width: 116px;
    min-width: 116px;
    background: var(--point-rule-cell-bg, #fff);
    transition: background-color .15s ease;
}

.point-rule-cell {
    display: grid;
    justify-items: center;
    align-items: center;
    gap: .4rem;
    min-width: 88px;
    border-radius: .65rem;
    padding: .25rem;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.point-rule-cell .form-control {
    width: 72px;
    height: 34px;
    padding-inline: .25rem;
    font-size: .88rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(148, 163, 184, 0.65);
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.point-rule-cell.has-points {
    background: rgba(34, 197, 94, 0.08);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.point-rule-cell.has-points .form-control {
    border-color: rgba(22, 163, 74, 0.75);
    background: #f0fdf4;
    color: #166534;
    box-shadow: 0 0 0 .12rem rgba(34, 197, 94, 0.12);
}

.point-rule-cell .form-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 1.25rem;
    padding: 0;
    white-space: nowrap;
    color: var(--muted);
}

.point-rule-cell .form-check-input {
    float: none;
    margin: 0;
}

.point-rule-service-wash-normal {
    --point-rule-accent: #0ea5e9;
    --point-rule-header-bg: rgba(14, 165, 233, 0.13);
    --point-rule-cell-bg: rgba(14, 165, 233, 0.035);
    --point-rule-text: #075985;
}

.point-rule-service-wash-urgent {
    --point-rule-accent: #f97316;
    --point-rule-header-bg: rgba(249, 115, 22, 0.14);
    --point-rule-cell-bg: rgba(249, 115, 22, 0.045);
    --point-rule-text: #9a3412;
}

.point-rule-service-iron-normal {
    --point-rule-accent: #64748b;
    --point-rule-header-bg: rgba(100, 116, 139, 0.12);
    --point-rule-cell-bg: rgba(100, 116, 139, 0.035);
    --point-rule-text: #334155;
}

.point-rule-service-iron-urgent {
    --point-rule-accent: #ef4444;
    --point-rule-header-bg: rgba(239, 68, 68, 0.12);
    --point-rule-cell-bg: rgba(239, 68, 68, 0.04);
    --point-rule-text: #991b1b;
}

.point-rule-service-dry-normal {
    --point-rule-accent: #8b5cf6;
    --point-rule-header-bg: rgba(139, 92, 246, 0.12);
    --point-rule-cell-bg: rgba(139, 92, 246, 0.035);
    --point-rule-text: #5b21b6;
}

.point-rule-service-dry-urgent {
    --point-rule-accent: #d946ef;
    --point-rule-header-bg: rgba(217, 70, 239, 0.12);
    --point-rule-cell-bg: rgba(217, 70, 239, 0.04);
    --point-rule-text: #86198f;
}

.report-action-bar {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.employee-index-filter-actions {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: .45rem;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: .1rem;
    scrollbar-width: thin;
}

.employee-index-filter-actions > .btn,
.employee-index-filter-actions .report-action-bar,
.employee-index-filter-actions .report-action-btn {
    flex: 0 0 auto;
}

.employee-index-filter-actions .report-action-bar {
    flex-wrap: nowrap;
}

.employee-index-filter-actions .report-share-status {
    flex-basis: auto;
    min-width: max-content;
}

.report-action-btn {
    width: 2.55rem;
    height: 2.55rem;
    border: 1px solid #d7e0ee;
    border-radius: 0.7rem;
    background: #fff;
    color: #1f2a44;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(31, 42, 68, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.report-action-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.report-action-btn:hover,
.report-action-btn:focus-visible {
    border-color: #2563eb;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
    outline: none;
    transform: translateY(-1px);
}

.report-action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    background: #f3f6fb;
    box-shadow: none;
    transform: none;
}

.report-action-btn-pdf {
    color: #dc2626;
}

.report-action-btn-excel {
    color: #15803d;
}

.report-action-btn-print {
    color: #334155;
}

.report-action-btn-share {
    color: #2563eb;
}

.report-share-status {
    color: #15803d;
    font-size: 0.82rem;
    min-height: 1.2rem;
    align-self: center;
}

.report-share-status[data-state="error"] {
    color: #dc2626;
}

@media print {
    .report-action-bar {
        display: none !important;
    }
}

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

    .subscription-package-grid,
    .subscription-method-grid,
    .dashboard-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .daily-close-grid,
    .daily-close-period {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .point-rules-matrix {
        min-width: 920px;
    }

    .point-rules-matrix .rule-item-col {
        width: 240px;
        min-width: 240px;
    }
}

@media (max-width: 575.98px) {
    .account-summary-grid {
        grid-template-columns: 1fr;
    }

    .subscription-balance-summary-grid {
        grid-template-columns: 1fr;
    }

    .order-total-summary-body {
        align-items: flex-start;
        flex-direction: column;
    }

    .cash-collection-summary {
        grid-template-columns: 1fr;
    }

    .subscription-package-grid,
    .subscription-method-grid,
    .dashboard-grid-4 {
        grid-template-columns: 1fr;
    }

    .daily-close-grid,
    .daily-close-period {
        grid-template-columns: 1fr;
    }

    .daily-close-total {
        align-items: flex-start;
        flex-direction: column;
    }

    .subscription-point-rules-table {
        border-radius: .65rem;
    }

    .point-rules-matrix {
        min-width: 860px;
    }

    .point-rules-matrix .rule-item-col {
        width: 220px;
        min-width: 220px;
    }

    .point-rule-service-header {
        font-size: .76rem;
    }

    .report-action-btn {
        width: 2.75rem;
        height: 2.75rem;
    }

    .report-share-status {
        flex-basis: 100%;
    }

    .customer-order-items-wrap,
    .customer-order-items-list,
    .customer-order-item-card,
    .customer-order-item-row {
        overflow-x: hidden;
    }

    .customer-order-item-card {
        border-radius: .85rem;
        gap: .68rem;
        padding: .78rem;
    }

    .customer-order-item-row {
        gap: .55rem;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .customer-order-item-display,
    .customer-order-service-display,
    .customer-order-item-action,
    .customer-order-delete-button {
        min-height: 44px;
    }

    .customer-order-item-display,
    .customer-order-service-display,
    .customer-order-item-value .form-control {
        min-width: 0 !important;
        max-width: 100%;
        width: 100%;
    }

    .customer-order-item-action {
        padding-inline: .72rem;
    }

    .customer-order-item-notes-row {
        grid-template-columns: minmax(0, 1fr) 44px;
    }
}

@media (max-width: 430px) {
    .customer-order-item-card {
        gap: .6rem;
        padding: .72rem;
    }

    .customer-order-item-row {
        gap: .48rem;
    }

    .customer-order-item-label {
        font-size: .74rem;
    }

    .customer-order-item-action {
        padding-inline: .55rem;
    }
}

.provider-method-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5.5rem;
    gap: .75rem;
    align-items: center;
    padding: .45rem 0;
    border-bottom: 1px solid #eef2f7;
}

.provider-method-row:last-child {
    border-bottom: 0;
}

.employee-operational-driver-select {
    min-width: 11rem;
}

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

.employee-alert-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.driver-alert-card,
.employee-alert-card {
    display: grid;
    gap: .35rem;
    min-width: 0;
    padding: 1rem 1.1rem;
    color: inherit;
    text-decoration: none;
    border: 1px solid #dbeafe;
    border-radius: .85rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.driver-alert-card:hover,
.driver-alert-card:focus,
.employee-alert-card:hover,
.employee-alert-card:focus {
    color: inherit;
    border-color: #2563eb;
    box-shadow: 0 16px 36px rgba(37, 99, 235, .14);
    transform: translateY(-1px);
}

.driver-alert-card strong,
.employee-alert-card strong {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1;
}

.driver-alert-card small,
.employee-alert-card small {
    color: #64748b;
}

.driver-alert-card-label,
.employee-alert-card-label {
    font-weight: 700;
    color: #0f172a;
}

.driver-alert-card-accepted {
    border-color: #bae6fd;
    background: linear-gradient(135deg, #f0f9ff, #ffffff);
}

.driver-alert-card-assigned {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.driver-alert-card-unassigned {
    border-color: #fed7aa;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.employee-alert-card-blue {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.employee-alert-card-orange {
    border-color: #fed7aa;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.employee-alert-card-green {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.employee-alert-card-red {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.employee-alert-card-purple {
    border-color: #ddd6fe;
    background: linear-gradient(135deg, #f5f3ff, #ffffff);
}

.driver-alert-card-new,
.employee-alert-card-new {
    animation: driver-alert-pulse 1.25s ease-in-out 0s 4;
}

@keyframes driver-alert-pulse {
    0%,
    100% {
        box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
        transform: translateY(0);
    }

    45% {
        border-color: #f97316;
        box-shadow: 0 18px 38px rgba(249, 115, 22, .22);
        transform: translateY(-2px);
    }
}

.driver-alert-toast,
.employee-alert-toast {
    position: fixed;
    inset-block-end: 1.25rem;
    inset-inline-start: 1.25rem;
    z-index: 1080;
    max-width: min(26rem, calc(100vw - 2rem));
    padding: .8rem 1rem;
    border-radius: .85rem;
    color: #0f172a;
    background: #fff7ed;
    border: 1px solid #fdba74;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .18s ease, transform .18s ease;
}

.driver-alert-toast.show,
.employee-alert-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.driver-audio-status,
.employee-audio-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem .9rem;
    border: 1px solid #bfdbfe;
    border-radius: .85rem;
    background: #eff6ff;
    color: #0f172a;
}

.driver-audio-status > div,
.employee-audio-status > div {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.driver-audio-status span,
.employee-audio-status span {
    color: #475569;
}

.driver-audio-status.is-ready,
.employee-audio-status.is-ready {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.driver-audio-status.needs-action,
.employee-audio-status.needs-action {
    border-color: #fed7aa;
    background: #fff7ed;
}

.driver-alert-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.driver-alert-tab,
.driver-alert-tab-count {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: .55rem .9rem;
    border-radius: 999px;
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
}

.driver-alert-tab:hover,
.driver-alert-tab:focus,
.driver-alert-tab.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.driver-alert-tab-count {
    margin-inline-start: auto;
    color: #64748b;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .driver-alert-cards,
    .employee-alert-cards {
        grid-template-columns: 1fr;
    }

    .driver-alert-tab-count {
        width: 100%;
        justify-content: center;
        margin-inline-start: 0;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .employee-alert-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.customer-dashboard-section {
    display: grid;
    gap: 1rem;
}

.customer-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.customer-unpaid-card {
    min-width: 0;
}

.customer-action-card {
    display: grid;
    min-width: 0;
    gap: .35rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid #bfdbfe;
    border-radius: .9rem;
    color: #0f172a;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    cursor: pointer;
}

.customer-action-card::-webkit-details-marker {
    display: none;
}

.customer-action-card strong {
    font-size: 1.8rem;
    line-height: 1;
}

.customer-action-card span {
    color: #475569;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.customer-action-label {
    color: #1d4ed8 !important;
    font-size: .92rem;
}

.customer-unpaid-panel {
    margin-top: .75rem;
    padding: 1rem;
    border: 1px solid #dbeafe;
    border-radius: .9rem;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .07);
}

.customer-tracker-card,
.customer-journey-card,
.customer-chart-card {
    min-width: 0;
    height: 100%;
    padding: 1rem;
    border: 1px solid #dbeafe;
    border-radius: .9rem;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .07);
}

.customer-active-order-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.customer-active-order-summary > div,
.customer-mini-metric {
    min-width: 0;
    padding: .85rem;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    background: #f8fafc;
}

.customer-active-order-summary span,
.customer-mini-metric span {
    display: block;
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
}

.customer-active-order-summary strong,
.customer-mini-metric strong {
    display: block;
    margin-top: .25rem;
    color: #0f172a;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.customer-tracker-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.customer-roadmap-steps {
    counter-reset: customer-roadmap;
}

.customer-tracker-step {
    position: relative;
    display: grid;
    min-width: 0;
    gap: .45rem;
    align-content: start;
    padding: .8rem;
    border: 1px solid #e2e8f0;
    border-radius: .8rem;
    color: #64748b;
    background: #f8fafc;
}

.customer-roadmap-steps .customer-tracker-step::before {
    content: "";
    position: absolute;
    inset-block-start: 1.65rem;
    inset-inline: calc(50% + 1rem) calc(-50% + .15rem);
    height: 2px;
    background: #cbd5e1;
    z-index: 0;
}

.customer-roadmap-steps .customer-tracker-step:nth-child(5n)::before,
.customer-roadmap-steps .customer-tracker-step:last-child::before {
    display: none;
}

[dir="ltr"] .customer-roadmap-steps .customer-tracker-step::before {
    inset-inline: calc(50% + 1rem) calc(-50% + .15rem);
}

[dir="rtl"] .customer-roadmap-steps .customer-tracker-step::before {
    inset-inline: calc(-50% + .15rem) calc(50% + 1rem);
}

.customer-tracker-step.is-done {
    border-color: #bbf7d0;
    color: #166534;
    background: #f0fdf4;
}

.customer-tracker-step.is-current {
    border-color: #93c5fd;
    color: #1d4ed8;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .12);
}

.customer-tracker-step span:last-child {
    min-width: 0;
    font-size: .84rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.customer-tracker-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    color: #fff;
    background: #94a3b8;
    font-size: .75rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.customer-tracker-step.is-done .customer-tracker-dot {
    background: #16a34a;
}

.customer-tracker-step.is-current .customer-tracker-dot {
    background: #2563eb;
}

.customer-empty-state,
.customer-tracking-unavailable,
.customer-empty-chart {
    display: grid;
    gap: .25rem;
    padding: 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: .85rem;
    color: #475569;
    background: #f8fafc;
}

.customer-empty-state strong,
.customer-tracking-unavailable strong {
    color: #0f172a;
}

.customer-journey-line {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
}

.customer-journey-line span {
    min-width: 0;
    padding: .65rem .55rem;
    border-radius: .75rem;
    color: #0f172a;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    text-align: center;
    font-size: .82rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.customer-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
}

.customer-mini-metric {
    border-inline-start-width: .35rem;
}

.customer-mini-metric.accent-blue { border-inline-start-color: #2563eb; }
.customer-mini-metric.accent-green { border-inline-start-color: #16a34a; }
.customer-mini-metric.accent-orange { border-inline-start-color: #f97316; }
.customer-mini-metric.accent-cyan { border-inline-start-color: #06b6d4; }
.customer-mini-metric.accent-purple { border-inline-start-color: #7c3aed; }

.customer-chart-card {
    display: grid;
    gap: 1rem;
}

.customer-chart-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.customer-chart-heading h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.customer-chart-heading p {
    margin: .25rem 0 0;
    color: #64748b;
    font-size: .86rem;
}

.customer-chart-total {
    flex: 0 0 auto;
    padding: .45rem .7rem;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-weight: 800;
    white-space: nowrap;
}

.customer-chart-card canvas {
    width: 100% !important;
    max-width: 100%;
    min-height: 14rem;
}

.checkout-shell .hero-strip {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.4rem 1.5rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.checkout-shell .section-kicker {
    font-size: .82rem;
    letter-spacing: .08em;
    opacity: .85;
    text-transform: uppercase;
    margin-bottom: .4rem;
}

.checkout-shell .page-title {
    font-weight: 800;
    margin-bottom: .35rem;
}

.checkout-shell .page-lead {
    margin-bottom: 0;
    opacity: .88;
    max-width: 720px;
}

.checkout-shell .form-card,
.checkout-shell .info-card {
    border-radius: 22px;
}

.checkout-shell .payment-option-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    height: 100%;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid #dbe4f0;
    background: #fff;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.checkout-shell .payment-option-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    border-color: #93c5fd;
}

.checkout-shell .payment-radio {
    margin-bottom: .45rem;
}

.checkout-shell .payment-title {
    font-weight: 800;
    color: #0f172a;
}

.checkout-shell .payment-desc {
    color: #6b7280;
    font-size: .88rem;
}

.checkout-shell .notes-list {
    line-height: 1.8;
}

.customer-chart-shell {
    position: relative;
    min-height: 14rem;
}

.customer-chart-shell .customer-chart-canvas {
    opacity: 0;
    transition: opacity .18s ease;
}

.customer-chart-shell.is-loaded .customer-chart-canvas {
    opacity: 1;
}

.customer-chart-skeleton {
    position: absolute;
    inset: 0;
    border-radius: .85rem;
    background:
        linear-gradient(90deg, rgba(226, 232, 240, .72), rgba(248, 250, 252, .95), rgba(226, 232, 240, .72)),
        repeating-linear-gradient(0deg, transparent 0 2.6rem, rgba(148, 163, 184, .16) 2.6rem 2.68rem);
    background-size: 220% 100%, 100% 100%;
    animation: customer-chart-skeleton 1.2s ease-in-out infinite;
    pointer-events: none;
}

.customer-chart-shell.is-loaded .customer-chart-skeleton {
    display: none;
}

@keyframes customer-chart-skeleton {
    0% { background-position: 120% 0, 0 0; }
    100% { background-position: -120% 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .customer-chart-skeleton {
        animation: none;
    }
}

@media (max-width: 991.98px) {
    .customer-active-order-summary,
    .customer-action-grid,
    .customer-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-tracker-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-roadmap-steps .customer-tracker-step::before {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .customer-active-order-summary,
    .customer-action-grid,
    .customer-metric-grid,
    .customer-tracker-steps,
    .customer-journey-line {
        grid-template-columns: 1fr;
    }

    .customer-chart-heading {
        display: grid;
    }

    .checkout-shell .hero-strip {
        display: grid;
        align-items: start;
    }
}
