/* Operational feature demos — cart, quotes, bookings, invoices, CRM, staff, SEO */

.ops-nav {
    background: #1e293b;
    color: #fff;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.88rem;
}

.ops-nav .logo { font-weight: 800; color: #a5b4fc; }
.ops-nav .spacer { flex: 1; }

.ops-body {
    max-width: 920px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 2rem;
}

.ops-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.85rem;
}

.ops-card h3 { margin: 0 0 0.5rem; font-size: 1rem; color: #1e293b; }

.ops-btn {
    display: inline-block;
    min-height: 42px;
    padding: 0.5rem 1rem;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
}

.ops-btn:hover { background: #6d28d9; }
.ops-btn.secondary { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }

.ops-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.ops-field { margin-bottom: 0.65rem; }
.ops-field label { display: block; font-size: 0.78rem; font-weight: 600; color: #475569; margin-bottom: 0.25rem; }
.ops-field input, .ops-field select, .ops-field textarea {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.88rem;
}

.ops-cart-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

.ops-cart-line input[type="number"] { width: 52px; }

.ops-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.05rem;
    padding-top: 0.65rem;
    margin-top: 0.35rem;
    border-top: 2px solid #e2e8f0;
}

.ops-steps { display: flex; gap: 0.35rem; margin-bottom: 1rem; flex-wrap: wrap; }
.ops-step {
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
}

.ops-step.active { background: #7c3aed; color: #fff; }
.ops-step.done { background: #dcfce7; color: #166534; }

.ops-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
    font-size: 0.78rem;
}

.ops-cal-head { font-weight: 700; text-align: center; color: #64748b; padding: 0.25rem; }

.ops-cal-day {
    aspect-ratio: 1;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
}

.ops-cal-day:hover:not(.muted):not(.booked) { border-color: #7c3aed; }
.ops-cal-day.selected { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.ops-cal-day.muted { color: #cbd5e1; cursor: default; background: #f8fafc; }
.ops-cal-day.booked { background: #fef2f2; color: #b91c1c; cursor: not-allowed; }

.ops-slots { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }

.ops-slot {
    padding: 0.4rem 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
}

.ops-slot.active { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.ops-slot.taken { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

.ops-invoice {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.ops-invoice-head {
    background: #f8fafc;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ops-invoice-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.ops-invoice-table th, .ops-invoice-table td { padding: 0.55rem 1rem; border-bottom: 1px solid #f1f5f9; text-align: left; }
.ops-invoice-table th { background: #f8fafc; font-size: 0.78rem; color: #64748b; }
.ops-invoice-table .inv-col-amount { text-align: right; width: 7rem; }
.ops-invoice-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.inv-empty-state {
    text-align: center;
    padding: 2rem 1.25rem;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
}

.inv-empty-state h3 { margin: 0 0 0.5rem; color: #334155; font-size: 1.05rem; }
.inv-empty-state p { margin: 0 0 0.65rem; font-size: 0.88rem; line-height: 1.55; max-width: 28rem; margin-left: auto; margin-right: auto; }
.inv-empty-icon { font-size: 2rem; margin-bottom: 0.65rem; }
.inv-empty-hint { font-size: 0.82rem !important; color: #94a3b8 !important; }

.inv-meta { font-size: 0.82rem; color: #64748b; }
.inv-type-tag {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    vertical-align: middle;
    background: #ede9fe;
    color: #6d28d9;
}

.inv-type-tag.products { background: #dbeafe; color: #1d4ed8; }
.inv-type-tag.services { background: #dcfce7; color: #166534; }

.inv-bill-to {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

.inv-bill-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}

.inv-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    font-weight: 800;
    font-size: 1.05rem;
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
}

.inv-partial-row {
    padding: 0 1rem 0.85rem;
    font-size: 0.85rem;
    color: #64748b;
    text-align: right;
}

.inv-pay-note { margin-top: 0.65rem; text-align: center; }

.inv-builder-intro {
    margin: 0 0 0.85rem;
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.5;
}

.inv-template-desc {
    margin: -0.35rem 0 0.75rem;
    padding: 0.55rem 0.7rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.45;
}

.inv-admin-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.85rem;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #5b21b6;
}

.inv-admin-total strong { font-size: 1.15rem; color: #4c1d95; }

.inv-ref-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.15rem 0.45rem;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
}

.inv-sent-meta { margin: 0 0 0.75rem; font-size: 0.84rem; color: #64748b; }
.inv-sent-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.65rem; }
.inv-new-btn { width: 100%; margin-top: 0.25rem; }

.ops-field-hint {
    margin: 0.35rem 0 0;
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.4;
}

.ops-btn--wide { width: 100%; }
.ops-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.inv-pay-actions .ops-btn:disabled { background: #94a3b8; }

.ops-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
}

.ops-badge.paid { background: #dcfce7; color: #166534; }
.ops-badge.pending { background: #fef3c7; color: #92400e; }

.ops-crm-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.82rem;
}

.ops-perm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.82rem;
}

.pg-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.pg-switch input { opacity: 0; width: 0; height: 0; }

.pg-switch .slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.2s;
}

.pg-switch .slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.pg-switch input:checked + .slider { background: #16a34a; }
.pg-switch input:checked + .slider::before { transform: translateX(20px); }

.pg-wm-text-input {
    width: 100%;
    padding: 0.4rem 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.82rem;
}

.ops-seo-preview {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    background: #fff;
}

.ops-seo-preview .serp-title { color: #1a0dab; font-size: 1.1rem; margin: 0 0 0.15rem; }
.ops-seo-preview .serp-url { color: #006621; font-size: 0.82rem; margin: 0 0 0.25rem; }
.ops-seo-preview .serp-desc { color: #545454; font-size: 0.88rem; line-height: 1.45; margin: 0; }

.ops-social-preview {
    margin-top: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    max-width: 420px;
}

.ops-social-preview .og-img {
    height: 120px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.ops-social-preview .og-body { padding: 0.65rem 0.75rem; background: #f8fafc; font-size: 0.82rem; }
.ops-social-preview .og-body strong { display: block; color: #1e293b; margin-bottom: 0.15rem; }

.ops-success {
    text-align: center;
    padding: 2rem 1rem;
}

.ops-success .tick {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.ops-check { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: #475569; margin: 0.35rem 0; cursor: pointer; }
.ops-check input { width: auto; }

.ops-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: help;
    position: relative;
    vertical-align: middle;
}

.ops-tip:hover::after,
.ops-tip:focus::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    width: 220px;
    padding: 0.45rem 0.55rem;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 6px;
    z-index: 30;
    pointer-events: none;
    white-space: normal;
}

.ops-alt-offer { border-color: #fcd34d; background: #fffbeb; }
.ops-cal-day.unavailable { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; text-decoration: line-through; }
.ops-cal-day.has-bookings { box-shadow: inset 0 -3px 0 #7c3aed; }
.ops-cal-day.partial-block { background: #fffbeb; border-color: #fcd34d; }
.ops-slot.unavailable { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.ops-book-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.78rem;
    color: #64748b;
}
.ops-book-stat strong { color: #1e293b; font-size: 0.95rem; margin-right: 0.15rem; }

.ops-book-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin: 0.5rem 0 0.35rem;
}
.ops-book-section-label:first-child { margin-top: 0; }

.ops-book-diary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.ops-book-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ops-book-badge.confirmed { background: #dcfce7; color: #166534; }
.ops-book-badge.pending { background: #fef3c7; color: #92400e; }

.ops-book-ref {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: ui-monospace, monospace;
    margin-top: 0.2rem;
}
.ops-book-note {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    font-style: italic;
    margin-top: 0.15rem;
}
.ops-book-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}
.ops-book-actions .ops-btn { font-size: 0.72rem; padding: 0.25rem 0.55rem; min-height: 28px; }

.ops-book-diary-item.ops-book-complete { opacity: 0.65; }

.ops-book-blocks { margin-top: 0.65rem; }
.ops-book-block-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    padding: 0.5rem 0.65rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
}
.ops-book-block-item strong { color: #92400e; }
.ops-book-block-item span { color: #78716c; flex: 1; min-width: 140px; }
.ops-book-block-item--day { background: #f1f5f9; border-color: #cbd5e1; }
.ops-book-block-item--day strong { color: #475569; }

.book-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.book-cal-nav h3, .book-cal-nav h4 {
    margin: 0;
    flex: 1;
    text-align: center;
    font-size: 0.95rem;
    color: #1e293b;
}

.book-cal-nav-btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}

.book-cal-nav-btn:hover { border-color: #7c3aed; color: #7c3aed; }

.book-slots-heading {
    font-size: 0.95rem;
    margin: 1rem 0 0.35rem;
    color: #1e293b;
}

.book-admin-view-toggle {
    display: flex;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.book-admin-view-toggle button {
    flex: 1;
    padding: 0.4rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
}

.book-admin-view-toggle button.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.book-day-detail {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
}

.book-day-detail h5 {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    color: #334155;
}

.book-day-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.book-day-closed {
    margin: 0 0 0.65rem;
    padding: 0.55rem 0.7rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #991b1b;
}

.book-hours-grid {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.book-hours-row {
    display: grid;
    grid-template-columns: 5rem 1fr auto 1fr;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.82rem;
}

.book-hours-row select {
    padding: 0.35rem 0.4rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.82rem;
}

.book-hours-options {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.ops-cal-day.bank-holiday { background: #fef2f2; border-color: #fecaca; }
.ops-cal-day.admin-selected { outline: 2px solid #7c3aed; outline-offset: 1px; }

.book-client-notify {
    margin: 0.75rem 1rem 0;
    padding: 0;
}

.book-notify-inner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: #991b1b;
}

.book-notify-inner strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #7f1d1d;
}

.book-notify-inner p {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    line-height: 1.5;
}

.book-notify-meta {
    font-size: 0.78rem !important;
    color: #b91c1c !important;
}

.book-notify-dismiss {
    margin-top: 0.35rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    color: #991b1b;
    cursor: pointer;
}

.book-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.book-modal[hidden] {
    display: none !important;
}

.book-modal:not([hidden]) {
    display: flex;
}

.book-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.book-modal-panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.book-modal-panel h4 { margin: 0 0 0.5rem; }
.book-modal-sub { margin: 0 0 0.75rem; font-size: 0.85rem; color: #64748b; }
.book-modal-actions { display: flex; gap: 0.5rem; margin-top: 0.85rem; }
.book-modal-actions .ops-btn { flex: 1; }

@media (max-width: 640px) {
    .ops-grid-2 { grid-template-columns: 1fr; }
}

/* ── Enhanced shopping cart checkout ── */
.ops-checkout { max-width: 560px; }

.ops-basket-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.ops-basket-head h3 { margin: 0; }

.ops-basket-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.ops-cart-line--rich {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0;
}

.ops-cart-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.ops-cart-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.ops-cart-info strong {
    font-size: 0.88rem;
    color: #1e293b;
}

.ops-cart-variant {
    font-size: 0.72rem;
    color: #64748b;
}

.ops-cart-qty-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.ops-cart-line-total {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1e293b;
}

.ops-order-summary {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.ops-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #475569;
    padding: 0.2rem 0;
}

.ops-demo-hint {
    margin: 0.65rem 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.45;
}

.ops-btn--wide {
    width: 100%;
    margin-top: 0.85rem;
    text-align: center;
}

.ops-step-intro {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

.ops-checkout-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
}

.ops-checkout-nav .ops-btn--wide {
    margin-top: 0;
    flex: 1;
    min-width: 140px;
}

.ops-pay-total-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1px solid #ddd6fe;
    border-radius: 10px;
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
    color: #5b21b6;
}

.ops-pay-total-banner strong {
    font-size: 1.15rem;
    color: #4c1d95;
}

.ops-pay-methods {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.ops-pay-method {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.ops-pay-method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ops-pay-method.active {
    border-color: #7c3aed;
    background: #faf5ff;
}

.ops-pay-method-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ops-pay-method-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1e293b;
}

.ops-pay-method-desc {
    font-size: 0.75rem;
    color: #64748b;
}

.ops-pay-brand {
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
    flex-shrink: 0;
}

.ops-pay-brand--visa {
    color: #1a1f71;
    letter-spacing: 0.04em;
}

.ops-pay-brand--paypal {
    color: #003087;
}

.ops-pay-panel {
    margin-bottom: 0.85rem;
}

.ops-saved-card-visual {
    background: linear-gradient(135deg, #312e81 0%, #7c3aed 100%);
    color: #fff;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    max-width: 280px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}

.ops-saved-card-chip {
    display: block;
    width: 32px;
    height: 24px;
    border-radius: 4px;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    margin-bottom: 1rem;
}

.ops-saved-card-number {
    display: block;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ops-saved-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    opacity: 0.9;
}

.ops-saved-card-note {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.ops-paypal-demo {
    padding: 0.85rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

.ops-paypal-demo p {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
    color: #475569;
}

.ops-btn--paypal {
    background: #0070ba;
    width: 100%;
}

.ops-btn--paypal:hover {
    background: #003087;
}

.ops-billing-check {
    margin: 0.5rem 0 0.65rem;
}

.ops-secure-note {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 0.85rem;
}

.ops-pay-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ops-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-left: 0.35rem;
}

@keyframes ops-spin {
    to { transform: rotate(360deg); }
}

.ops-order-success {
    text-align: center;
    padding: 1.5rem 0.5rem 0.5rem;
}

.ops-order-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 1.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
}

.ops-order-success-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #16a34a;
}

.ops-order-success h3 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    color: #1e293b;
}

.ops-order-success-lead {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
}

.ops-order-success-card {
    text-align: left;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.ops-order-success-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    font-size: 0.82rem;
    border-bottom: 1px solid #f1f5f9;
}

.ops-order-success-row:last-child {
    border-bottom: none;
}

.ops-order-success-row span {
    color: #64748b;
}

.ops-order-success-row strong {
    color: #1e293b;
    text-align: right;
}

.ops-order-success-footer {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.55;
}

.ops-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.demo-admin-inbox-meta {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}

/* Admin order detail (shopping cart demo) */
.ops-admin-order-list-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.ops-admin-order-list-item:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.ops-admin-order-list-item.selected {
    border-color: #7c3aed;
    background: #f5f3ff;
    box-shadow: 0 0 0 1px #ddd6fe;
}

.ops-admin-order-list-item.fulfilled {
    opacity: 0.85;
}

.ops-admin-order-list-main {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.2rem;
}

.ops-admin-order-list-main strong {
    font-size: 0.85rem;
    color: #1e293b;
}

.ops-admin-order-list-meta {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.ops-admin-badge {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ops-admin-badge.paid {
    background: #dcfce7;
    color: #166534;
}

.ops-admin-badge.fulfilled {
    background: #e0e7ff;
    color: #3730a3;
}

.ops-admin-order {
    font-size: 0.82rem;
}

.ops-admin-order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #f1f5f9;
}

.ops-admin-order-head-main {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.ops-admin-order-head strong {
    font-size: 0.95rem;
    color: #1e293b;
}

.ops-admin-order-time {
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
}

.ops-admin-order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.ops-admin-order-block h5 {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.ops-admin-order-block p {
    margin: 0;
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.45;
}

.ops-admin-order-block a {
    color: #7c3aed;
    text-decoration: none;
}

.ops-admin-order-muted {
    color: #94a3b8;
    font-size: 0.75rem;
}

.ops-admin-order-lines {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-bottom: 0.65rem;
}

.ops-admin-order-lines th,
.ops-admin-order-lines td {
    padding: 0.4rem 0.35rem;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    vertical-align: top;
}

.ops-admin-order-lines th {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    background: #f8fafc;
}

.ops-admin-order-lines td:nth-child(2),
.ops-admin-order-lines th:nth-child(2),
.ops-admin-order-lines td:nth-child(3),
.ops-admin-order-lines th:nth-child(3),
.ops-admin-order-lines td:nth-child(4),
.ops-admin-order-lines th:nth-child(4) {
    text-align: right;
    white-space: nowrap;
}

.ops-admin-line-emoji {
    margin-right: 0.15rem;
}

.ops-admin-line-variant {
    font-size: 0.72rem;
    color: #94a3b8;
}

.ops-admin-order-totals {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.5rem;
    margin-bottom: 0.65rem;
}

.ops-admin-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #475569;
    padding: 0.15rem 0;
}

.ops-admin-total-row--grand {
    font-weight: 800;
    font-size: 0.92rem;
    color: #1e293b;
    padding-top: 0.35rem;
    margin-top: 0.2rem;
    border-top: 1px dashed #e2e8f0;
}

.ops-admin-payment {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    color: #475569;
    padding: 0.45rem 0.55rem;
    background: #f8fafc;
    border-radius: 6px;
}

.ops-admin-payment span {
    font-weight: 700;
    color: #64748b;
}

.ops-admin-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ops-admin-order-actions .ops-btn {
    font-size: 0.78rem;
    min-height: 36px;
    padding: 0.35rem 0.75rem;
}

@media (max-width: 640px) {
    .ops-admin-order-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Staff management demo ── */
.staff-dual-grid .demo-admin-column {
    max-height: none;
}

.staff-client-body {
    max-width: none;
}

.staff-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: flex-end;
}

.staff-admin-select-wrap {
    flex: 1 1 12rem;
    margin-bottom: 0;
}

.staff-admin-form-card {
    max-height: min(72vh, 720px);
    overflow-y: auto;
}

.staff-admin-sub {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    color: #64748b;
}

.staff-form-section {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.staff-form-section:last-of-type {
    border-bottom: none;
}

.staff-form-section h5 {
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.staff-form-hint {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

.staff-field-narrow {
    max-width: 14rem;
}

.staff-schedule-wrap {
    overflow-x: auto;
}

.staff-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.staff-schedule-table th,
.staff-schedule-table td {
    padding: 0.4rem 0.35rem;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.staff-schedule-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
}

.staff-schedule-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.staff-time-input {
    width: 100%;
    min-width: 6.5rem;
    padding: 0.35rem 0.4rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.82rem;
}

.staff-time-input:disabled {
    background: #f8fafc;
    color: #94a3b8;
}

.staff-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.staff-save-msg {
    flex: 1 1 100%;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #166534;
}

.staff-profile-view {
    margin-bottom: 0.85rem;
}

.staff-profile-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
}

.staff-profile-head {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.staff-profile-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #4338ca);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.staff-profile-avatar--admin {
    background: linear-gradient(135deg, #0f172a, #334155);
}

.staff-profile-name {
    margin: 0 0 0.15rem;
    font-size: 1.05rem;
    color: #0f172a;
}

.staff-profile-title {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
}

.staff-profile-meta {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.staff-profile-sections {
    display: grid;
    gap: 0.85rem;
}

.staff-profile-section h4 {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.staff-profile-dl {
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.staff-profile-dl > div {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.5rem;
    font-size: 0.82rem;
    line-height: 1.4;
}

.staff-profile-dl dt {
    margin: 0;
    font-weight: 600;
    color: #64748b;
}

.staff-profile-dl dd {
    margin: 0;
    color: #1e293b;
}

.staff-schedule-summary {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.45;
}

.staff-schedule-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.5;
}

.staff-admin-preview-note {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
}

.staff-preview-access {
    font-size: 0.88rem;
    color: #334155;
    margin: 0;
}

.staff-preview-role {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0.35rem 0 0;
}

.staff-access-card {
    margin-bottom: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .staff-profile-dl > div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .staff-admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}
