:root {
    --bg: #f4f7ff;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-soft: #f8f9fe;
    --primary: #7c3aed;
    --primary-dark: #5b2bb8;
    --primary-soft: #efe7ff;
    --secondary: #f4d35e;
    --accent: #ef5ca7;
    --text: #1d2433;
    --muted: #667085;
    --success: #0d9f6e;
    --warning: #e59f08;
    --danger: #dc2626;
    --border: #e5eaf5;
    --shadow: 0 18px 48px rgba(66, 48, 107, 0.12);
    --shadow-soft: 0 8px 20px rgba(84, 63, 137, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(164, 124, 255, 0.20), transparent 30%),
        radial-gradient(circle at bottom right, rgba(80, 165, 255, 0.18), transparent 35%),
        linear-gradient(135deg, #f6f0ff 0%, #edf4ff 100%);
    color: var(--text);
}

a { color: inherit; }

button, input, select, textarea {
    font: inherit;
}

button, .btn {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.20);
}

button:hover, .btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #f3f4ff, #e9ecff);
    color: var(--text);
    box-shadow: var(--shadow-soft);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.18);
}

.btn-light {
    background: #f3f5fa;
    color: var(--text);
    box-shadow: var(--shadow-soft);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 18px 60px;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    max-width: 1540px;
    margin: 0 auto;
    padding: 22px;
    gap: 20px;
}

.sidebar {
    position: sticky;
    top: 18px;
    width: 270px;
    height: calc(100vh - 36px);
    background: linear-gradient(180deg, #1a1630 0%, #120f1c 100%);
    color: #f4f0ff;
    border-radius: 26px;
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sidebar-brand .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.sidebar-brand strong,
.sidebar-brand small {
    display: block;
}

.sidebar-brand small {
    color: rgba(255,255,255,0.7);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
    border-color: rgba(255,255,255,0.08);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(124,58,237,0.38), rgba(239,92,167,0.18));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 10px 22px rgba(124,58,237,0.18);
}

.sidebar-info {
    margin-top: auto;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: rgba(255,255,255,0.8);
}

.sidebar-info strong,
.sidebar-info small,
.sidebar-info span {
    display: block;
}

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

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #ed6ba4);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.brand h1 {
    margin: 0;
    font-size: 1.3rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-chip {
    background: #f3e8ff;
    color: var(--primary-dark);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.notice.danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.93), rgba(247, 248, 255, 0.98));
    border: 1px solid rgba(127, 143, 179, 0.15);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px rgba(103, 94, 138, 0.08);
}

.stat-card .label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat-card.total { background: linear-gradient(135deg, #f3e8ff, #ffffff); }
.stat-card.pending { background: linear-gradient(135deg, #fff7dc, #ffffff); }
.stat-card.paid { background: linear-gradient(135deg, #e9fff5, #ffffff); }
.stat-card.due { background: linear-gradient(135deg, #ffe5ea, #ffffff); }

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 22px;
    margin-bottom: 24px;
}

.panel {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(126, 142, 175, 0.12);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    padding: 20px;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.panel:hover {
    box-shadow: 0 12px 26px rgba(76, 60, 122, 0.08);
}

.panel-wide {
    grid-column: span 2;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f8;
}

.panel-header h2, .section-title {
    margin: 0;
    font-size: 1.3rem;
}

.panel-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-form.compact input,
.toolbar-form.compact select {
    min-width: 120px;
}

.toolbar-form.multi-inputs input,
.toolbar-form.multi-inputs select {
    min-width: 140px;
}

.filter-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.filter-card {
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.filter-card.wider {
    grid-column: span 1;
}

.filter-card label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.field label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(123, 44, 191, 0.12);
    border-color: rgba(123, 44, 191, 0.5);
}

textarea { resize: vertical; min-height: 90px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 12px 16px;
}

.full { grid-column: 1 / -1; }

.inline-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.table-wrap {
    overflow-x: auto;
}

.table-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.table-tools .table-search {
    flex: 1 1 220px;
    max-width: 360px;
}

.table-tools select {
    width: auto;
    min-width: 105px;
}

.table-tools .table-count {
    color: var(--muted);
    font-size: 0.85rem;
    margin-left: auto;
}

.table-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.table-pagination button {
    padding: 7px 11px;
}

.table-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.table-sort-button {
    border: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    padding: 0;
    font: inherit;
    text-transform: inherit;
}

.table-sort-button:hover {
    transform: none;
    color: var(--primary-dark);
}

.module-records {
    display: flex;
    flex-direction: column;
}

.module-records > .panel-wide {
    order: 1;
}

.module-records > .form-disclosure {
    order: 2;
}

.form-disclosure {
    width: 100%;
}

.form-disclosure > summary {
    cursor: pointer;
    list-style: none;
    font-size: 1.1rem;
    font-weight: 700;
}

.form-disclosure > summary::-webkit-details-marker {
    display: none;
}

.form-disclosure > summary::after {
    content: "+";
    float: right;
    color: var(--primary-dark);
}

.form-disclosure[open] > summary::after {
    content: "−";
}

.form-disclosure[open] > form {
    margin-top: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th, td {
    padding: 12px 10px;
    border-bottom: 1px solid #edf0f5;
    text-align: left;
    vertical-align: middle;
}

th {
    background: var(--panel-soft);
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Refined Status Color Coding - All 8 Lifecycle Stages */
.badge.pending, .badge.status-pending, .badge-pending { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge.booked, .badge.status-booked, .badge-booked { background: #e0e7ff; color: #4338ca; border: 1px solid #c7d2fe; }
.badge.confirmed, .badge.status-confirmed, .badge-confirmed { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge.in_progress, .badge.in-progress, .badge.status-in-progress, .badge.status-in_progress, .badge-in_progress { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; font-weight: 800; }
.badge.done_due, .badge.status-done_due, .badge-done_due { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.badge.done_settled, .badge.status-done_settled, .badge-done_settled, .badge.done, .badge.completed, .badge.status-done, .badge-done { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge.postponed, .badge.status-postponed, .badge-postponed { background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.badge.cancelled, .badge.canceled, .badge.status-cancelled, .badge.status-canceled, .badge-cancelled { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.badge.due { background: #ffe4e6; color: #9f1239; border: 1px solid #fecdd3; }

/* Interactive Inline Status Dropdown - Clean & Compact */
.status-dropdown-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    max-width: 100%;
}
select.status-select-native {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    font-size: 11.5px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    min-height: 28px !important;
    height: 28px !important;
    width: auto !important;
    max-width: 195px !important;
    padding: 3px 22px 3px 9px !important;
    border-radius: 999px !important;
    cursor: pointer;
    border: 1px solid transparent !important;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-overflow: ellipsis;
    background-repeat: no-repeat;
    background-position: right 7px center;
    background-size: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23475569'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
}
select.status-select-native:hover {
    filter: brightness(0.95);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1) !important;
}
select.status-select-native:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.35) !important;
}

select.status-select-native.status-pending, select.status-select-native.status-pending:hover, select.status-select-native.status-pending:focus {
    background-color: #fef3c7 !important; color: #92400e !important; border-color: #fde68a !important;
}
select.status-select-native.status-booked, select.status-select-native.status-booked:hover, select.status-select-native.status-booked:focus {
    background-color: #e0e7ff !important; color: #4338ca !important; border-color: #c7d2fe !important;
}
select.status-select-native.status-confirmed, select.status-select-native.status-confirmed:hover, select.status-select-native.status-confirmed:focus {
    background-color: #e0f2fe !important; color: #0369a1 !important; border-color: #bae6fd !important;
}
select.status-select-native.status-in_progress, select.status-select-native.status-in-progress, select.status-select-native.status-in_progress:hover, select.status-select-native.status-in_progress:focus {
    background-color: #dbeafe !important; color: #1d4ed8 !important; border-color: #bfdbfe !important;
}
select.status-select-native.status-done_due, select.status-select-native.status-done_due:hover, select.status-select-native.status-done_due:focus {
    background-color: #ffedd5 !important; color: #c2410c !important; border-color: #fed7aa !important;
}
select.status-select-native.status-done_settled, select.status-select-native.status-done, select.status-select-native.status-done_settled:hover, select.status-select-native.status-done_settled:focus {
    background-color: #dcfce7 !important; color: #15803d !important; border-color: #bbf7d0 !important;
}
select.status-select-native.status-postponed, select.status-select-native.status-postponed:hover, select.status-select-native.status-postponed:focus {
    background-color: #f3e8ff !important; color: #7e22ce !important; border-color: #e9d5ff !important;
}
select.status-select-native.status-cancelled, select.status-select-native.status-cancelled:hover, select.status-select-native.status-cancelled:focus {
    background-color: #fee2e2 !important; color: #b91c1c !important; border-color: #fecaca !important;
}

/* Status KPI Card and Progress Distribution */
.status-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.status-kpi-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.status-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.status-kpi-card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--sk-color, #cbd5e1);
}
.status-kpi-card .sk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.status-kpi-card .sk-val {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 4px 0 2px;
}
.status-kpi-card .sk-sub {
    font-size: 11.5px;
    color: #94a3b8;
}

/* Quick Status Filter Pills */
.status-pills-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}
.status-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all 0.15s ease;
}
.status-pill-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    transform: translateY(-1px);
}
.status-pill-btn.active {
    background: var(--active-bg, #0f172a);
    color: #ffffff !important;
    border-color: var(--active-bg, #0f172a);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.status-pill-btn .pill-count {
    background: rgba(0,0,0,0.07);
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 800;
}
.status-pill-btn.active .pill-count {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
}

/* Quick Status Switcher Button Group */
.status-quick-switcher {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.btn-status-quick {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    background: #f8fafc;
    color: #334155;
}
.btn-status-quick:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}
.btn-status-quick.is-active {
    box-shadow: inset 0 0 0 1.5px currentColor, 0 1px 3px rgba(0,0,0,0.08);
    font-weight: 800;
}
.btn-status-quick.status-pending { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.btn-status-quick.status-confirmed { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.btn-status-quick.status-in_progress { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.btn-status-quick.status-done { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.btn-status-quick.status-postponed { background: #f3e8ff; color: #7e22ce; border-color: #e9d5ff; }
.btn-status-quick.status-cancelled { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }

/* Status Audit Timeline */
.status-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-left: 24px;
    margin-top: 10px;
}
.status-timeline:before {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e2e8f0;
}
.status-timeline-item {
    position: relative;
    font-size: 13px;
}
.status-timeline-dot {
    position: absolute;
    left: -24px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3b82f6;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1.5px #cbd5e1;
}
.status-timeline-dot.done { background: #16a34a; box-shadow: 0 0 0 1.5px #86efac; }
.status-timeline-dot.in_progress { background: #2563eb; box-shadow: 0 0 0 1.5px #93c5fd; }
.status-timeline-dot.postponed { background: #9333ea; box-shadow: 0 0 0 1.5px #d8b4fe; }
.status-timeline-dot.cancelled { background: #dc2626; box-shadow: 0 0 0 1.5px #fca5a5; }
.status-timeline-dot.pending { background: #d97706; box-shadow: 0 0 0 1.5px #fde68a; }
.status-timeline-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.status-timeline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #64748b;
}
.status-timeline-change {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
.status-timeline-notes {
    font-size: 12px;
    color: #475569;
    background: #ffffff;
    border-left: 3px solid #cbd5e1;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 2px;
}

.action-links {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.action-links a, .action-links button {
    font-size: 0.75rem;
    padding: 6px 10px;
}

/* =========================================================
   COMPACT ICON ACTION BUTTONS (MANAGE BOOKINGS & TABLES)
   Horizontal inline row of small crisp icon buttons
   ========================================================= */
.action-links.booking-action-icons {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    margin: 0 auto;
}

.action-links.booking-action-icons form {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

.action-links.booking-action-icons a.btn-act,
.action-links.booking-action-icons button.btn-act {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
    max-width: 29px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 7px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #475569 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.15s ease-in-out !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.action-links.booking-action-icons a.btn-act svg,
.action-links.booking-action-icons button.btn-act svg {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
    pointer-events: none !important;
    transition: transform 0.15s ease-in-out !important;
}

.action-links.booking-action-icons a.btn-act:hover svg,
.action-links.booking-action-icons button.btn-act:hover svg {
    transform: scale(1.15) !important;
}

/* 1. View - Royal Blue */
.action-links.booking-action-icons .btn-act-view {
    color: #2563eb !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
.action-links.booking-action-icons .btn-act-view:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2) !important;
}

/* 2. Edit - Sky Blue / Teal */
.action-links.booking-action-icons .btn-act-edit {
    color: #0284c7 !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
.action-links.booking-action-icons .btn-act-edit:hover {
    background: #f0f9ff !important;
    border-color: #7dd3fc !important;
    color: #0369a1 !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2) !important;
}

/* 3. Print / Invoice - Slate */
.action-links.booking-action-icons .btn-act-print {
    color: #475569 !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
.action-links.booking-action-icons .btn-act-print:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(71, 85, 105, 0.2) !important;
}

/* 4. WhatsApp - WhatsApp Brand Green */
.action-links.booking-action-icons .btn-act-wa {
    color: #15803d !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
.action-links.booking-action-icons .btn-act-wa:hover {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #166534 !important;
    box-shadow: 0 2px 6px rgba(22, 101, 52, 0.22) !important;
}

/* 5. Email - Purple */
.action-links.booking-action-icons .btn-act-email {
    color: #7c3aed !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
.action-links.booking-action-icons .btn-act-email:hover {
    background: #faf5ff !important;
    border-color: #d8b4fe !important;
    color: #6d28d9 !important;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.2) !important;
}

/* 6. Delete - Danger Red */
.action-links.booking-action-icons .btn-act-del {
    color: #dc2626 !important;
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}
.action-links.booking-action-icons .btn-act-del:hover {
    background: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25) !important;
}

/* Booking live update toast */
.booking-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    max-width: 440px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    background: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    animation: toastSlideIn 0.22s ease-out;
}
.booking-toast[hidden] {
    display: none !important;
}
.booking-toast.success {
    background: #15803d !important;
    border: 1px solid #16a34a !important;
}
.booking-toast.error {
    background: #b91c1c !important;
    border: 1px solid #dc2626 !important;
}
@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


.list-box {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.list-box li {
    background: #f9fafb;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
}

.list-box strong {
    display: block;
    margin-bottom: 3px;
}

.list-box span, .list-box small {
    color: var(--muted);
}

.report-box {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-grid > .panel {
    min-width: 0;
}

.panel-large {
    grid-column: 1 / 2;
}

.module-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 20px;
    margin-bottom: 24px;
}

.module-layout.module-records {
    display: flex;
    flex-direction: column;
}

.mini-metrics {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.mini-stat {
    background: linear-gradient(135deg, #f8faff, #f4f6ff);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-stat span {
    color: var(--muted);
    font-weight: 600;
}

.mini-stat strong {
    font-size: 1.2rem;
}

.action-stack {
    display: grid;
    gap: 12px;
}

.btn-block {
    width: 100%;
}

.list-stack {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.list-stack li {
    background: linear-gradient(135deg, #f9fbff, #f5f7ff);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.18s ease;
}

.list-stack li:hover {
    transform: translateX(2px);
}

.list-stack strong {
    font-size: 0.98rem;
}

.list-stack span {
    color: var(--muted);
}

.landing-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f7d9ff 0%, #dfeeff 100%);
}

.landing-shell {
    width: min(1100px, 92vw);
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 28px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: var(--shadow);
    border-radius: 26px;
    padding: 28px;
    backdrop-filter: blur(10px);
}

.landing-hero {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    width: fit-content;
    background: #fff1f6;
    color: var(--accent);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.landing-hero h1 {
    font-size: clamp(2.4rem, 3vw, 4rem);
    margin: 18px 0 16px;
    line-height: 1.1;
}

.landing-hero p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 18px;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.hero-points li {
    position: relative;
    padding-left: 24px;
    color: var(--text);
    font-weight: 500;
}

.hero-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.login-panel {
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.login-header p {
    margin: 8px 0 20px;
    color: var(--muted);
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    color: var(--muted);
}

.login-form input {
    padding: 12px 14px;
    border-radius: 12px;
}

.login-form button {
    margin-top: 8px;
    padding: 12px 16px;
    font-size: 1rem;
}

.login-footer {
    margin-top: 18px;
    display: grid;
    gap: 4px;
    color: var(--muted);
}

@media (max-width: 980px) {
    .app-shell {
        flex-direction: column;
        padding: 14px;
    }

    .sidebar {
        width: 100%;
        position: static;
        height: auto;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .stats-grid,
    .module-grid,
    .landing-shell,
    .filter-strip,
    .dashboard-grid,
    .module-layout {
        grid-template-columns: 1fr;
    }

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

    .dashboard-grid .panel-large {
        grid-column: 1 / -1;
    }

    .module-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .module-layout > .panel,
    .module-layout .form-grid {
        min-width: 0;
    }

    .panel-wide {
        grid-column: span 1;
    }

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

    .panel-toolbar,
    .toolbar-form {
        width: 100%;
    }

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

    .table-tools .table-count {
        flex-basis: 100%;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .table-tools > * {
        width: 100%;
        max-width: none;
    }

    .table-tools select {
        width: 100%;
    }

    .table-pagination {
        justify-content: space-between;
    }
}

:root {
    --bg: #f3f5f2;
    --panel: #ffffff;
    --panel-soft: #f4f6f3;
    --primary: #365d4b;
    --primary-dark: #294737;
    --primary-soft: #e9efea;
    --secondary: #b78552;
    --accent: #9b6c4c;
    --text: #26332d;
    --muted: #68756e;
    --success: #3e7257;
    --warning: #a97833;
    --danger: #a34c47;
    --border: #dce3dd;
    --shadow: 0 12px 28px rgba(34, 52, 42, 0.08);
    --shadow-soft: 0 4px 14px rgba(34, 52, 42, 0.06);
}

body {
    background: var(--bg);
    color: var(--text);
}

button, .btn {
    border-radius: 6px;
    background: var(--primary);
    box-shadow: none;
    letter-spacing: 0;
}

button:hover, .btn:hover {
    background: var(--primary-dark);
    box-shadow: none;
}

.btn-primary { background: var(--primary); }
.btn-secondary { background: #edf1ed; color: var(--text); }
.btn-secondary:hover, .btn-light:hover { background: #e3e9e3; color: var(--text); }
.btn-light { background: #f0f3f0; color: var(--text); }
.btn-danger { background: #a34c47; }
.btn-danger:hover { background: #893d39; }

.sidebar {
    background: #263d33;
    color: #f4f6f3;
    border: 1px solid #314b3f;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.sidebar-brand .brand-mark,
.brand-mark {
    border-radius: 6px;
    background: var(--secondary);
    color: #fff;
}

.nav-item, .nav-item.active {
    border-radius: 6px;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.13);
    box-shadow: inset 3px 0 var(--secondary);
}

.topbar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: none;
}

.brand h1, .panel-header h2, .section-title, .login-header h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: 0;
}

.brand h1 { font-size: 1.55rem; }

.user-chip {
    border-radius: 6px;
    background: #edf1ed;
    color: #365d4b;
}

.panel, .stat-card, .filter-card, .login-panel, .landing-shell {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: none;
}

.panel:hover, .stat-card:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
}

.stat-card { padding: 16px 18px; }
.stat-card .value { letter-spacing: 0; }
.stat-card .label { letter-spacing: 0.04em; }
.stat-card.total, .stat-card.pending, .stat-card.paid, .stat-card.due { background: #fff; }

.panel-header {
    border-bottom-color: var(--border);
}

input, select, textarea {
    border-color: #d5ddd6;
    border-radius: 6px;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(54, 93, 75, 0.14);
    border-color: var(--primary);
}

.table-tools input, .table-tools select { border-radius: 6px; }
.table-tools .table-count { font-variant-numeric: tabular-nums; }

th { background: #eef2ee; }
th, td { border-bottom-color: #e5eae5; }
tr:hover td { background: #fafbf9; }

.badge {
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.form-disclosure > summary { color: var(--primary-dark); }

.toast {
    position: fixed;
    z-index: 1000;
    top: 20px;
    right: 20px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 18px;
    border: 1px solid #c5d9c9;
    border-left: 4px solid var(--success);
    border-radius: 6px;
    background: #fff;
    color: #315941;
    box-shadow: 0 12px 32px rgba(24, 43, 31, 0.18);
    animation: toast-in 180ms ease-out;
}

.toast.danger {
    border-color: #e2c7c4;
    border-left-color: var(--danger);
    color: #823d39;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-body { background: #f3f5f2; }
.landing-shell { border-radius: 8px; }
.landing-hero h1 { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0; }
.hero-badge { border-radius: 4px; background: #edf1ed; color: var(--primary-dark); }

table.profile-table {
    min-width: 0;
    table-layout: fixed;
}

.profile-table th {
    width: 200px;
}

.landing-body {
    min-height: 100vh;
    padding: 36px 20px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse at 12% 12%, rgba(183, 133, 82, 0.12), transparent 32%),
        radial-gradient(ellipse at 88% 88%, rgba(54, 93, 75, 0.10), transparent 34%),
        #f5f5f0;
}

.landing-shell {
    width: min(1080px, 100%);
    min-height: 630px;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(38, 61, 51, 0.08);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(30, 48, 38, 0.13);
}

.landing-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 5vw, 64px);
    color: #f7f7f2;
    background:
        radial-gradient(ellipse at 92% 0%, rgba(183, 133, 82, 0.2), transparent 36%),
        linear-gradient(145deg, var(--primary-dark), var(--primary));
}

.landing-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -210px;
    bottom: -220px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.025), 0 0 0 58px rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: clamp(46px, 7vw, 82px);
}

.landing-logo {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    padding: 5px;
}

.landing-logo-default {
    padding: 0;
    border: 0;
    background: transparent;
}

.landing-brand-copy {
    display: grid;
    gap: 4px;
}

.landing-brand-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.landing-eyebrow, .login-eyebrow {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.landing-eyebrow { color: rgba(255, 255, 255, 0.68); }

.hero-copy { max-width: 510px; }

.hero-kicker {
    color: #e5c9a9;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.landing-hero h1 {
    max-width: 490px;
    margin: 15px 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 4vw, 3.55rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.landing-hero p {
    max-width: 440px;
    margin: 0;
    color: rgba(255, 255, 255, 0.77);
    font-size: 0.96rem;
    line-height: 1.75;
}

.landing-address {
    display: block;
    margin-top: 11px;
    color: rgba(255, 255, 255, 0.63);
    font-size: 0.82rem;
}

.landing-feature-heading {
    margin: 39px 0 15px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-points {
    gap: 0;
    max-width: 470px;
}

.hero-points li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
}

.hero-points li::before { content: none; }

.feature-icon {
    padding-top: 2px;
    color: #e4c5a1;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-points li > span:last-child {
    display: grid;
    gap: 4px;
}

.hero-points strong {
    font-size: 0.88rem;
    font-weight: 600;
}

.hero-points small {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    line-height: 1.5;
}

.landing-quiet-note {
    margin-top: 27px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
}

.landing-quiet-note span {
    margin-right: 5px;
    color: #e5c9a9;
}

.login-panel {
    position: relative;
    align-items: stretch;
    padding: clamp(36px, 5vw, 62px);
    border: 0;
    border-radius: 0;
    background: #fff;
}

.login-panel-mark {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 44px;
    place-items: center;
    border-radius: 13px;
    background: #f0f3ef;
}

.login-panel-mark img {
    width: 30px;
    height: 30px;
}

.login-header h2 {
    margin-top: 12px;
    font-size: 2.15rem;
    letter-spacing: -0.025em;
}

.login-header p {
    margin: 9px 0 30px;
    color: #737b73;
    font-size: 0.9rem;
}

.login-eyebrow {
    color: var(--primary);
    font-size: 0.62rem;
}

.login-form { gap: 19px; }

.login-form label {
    gap: 8px;
    color: #3e493f;
    font-size: 0.82rem;
}

.login-form input {
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #dfe5df;
    border-radius: 8px;
    background: #fbfcfa;
    color: #263d33;
    font-size: 0.88rem;
}

.login-form input::placeholder { color: #9ba49a; }

.login-form button {
    min-height: 50px;
    justify-content: space-between;
    margin-top: 5px;
    padding: 12px 17px;
    border-radius: 8px;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(38, 61, 51, 0.18);
    font-size: 0.9rem;
}

.login-form button span { font-size: 1.2rem; }

.login-secure-note {
    margin: auto 0 0;
    padding-top: 36px;
    color: #8b948a;
    font-size: 0.74rem;
}

.login-secure-note span {
    margin-right: 6px;
    color: #6d9a75;
    font-size: 0.58rem;
}

@media (max-width: 760px) {
    .landing-body { padding: 18px 14px; }
    .landing-shell {
        width: min(520px, 100%);
        min-height: 0;
        grid-template-columns: 1fr;
    }
    .landing-hero { padding: 32px 28px; }
    .landing-brand { margin-bottom: 38px; }
    .landing-hero h1 { max-width: 430px; }
    .landing-feature-heading { margin-top: 28px; }
    .landing-quiet-note { margin-top: 20px; }
    .login-panel { padding: 32px 28px; }
    .login-panel-mark { display: none; }
    .login-secure-note { padding-top: 25px; }
}

@media (max-width: 420px) {
    .landing-body { padding: 10px; }
    .landing-shell { border-radius: 13px; }
    .landing-hero, .login-panel { padding: 27px 22px; }
    .landing-hero h1 { font-size: 2.25rem; }
}

.profile-table td {
    overflow-wrap: anywhere;
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.settings-preview {
    display: grid;
    gap: 10px;
    align-content: start;
}

.settings-preview strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.settings-preview span {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.security-panel {
    margin-top: 20px;
}

.security-warning {
    padding: 12px 14px;
    border-left: 4px solid var(--warning);
    background: #faf4e8;
    color: #6e542c;
}

.settings-logo-preview, .salon-logo {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

.settings-logo-preview {
    width: 96px;
    height: 96px;
    padding: 8px;
    border: 1px solid var(--border);
}

.settings-logo-placeholder {
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font: 2rem Georgia, "Times New Roman", serif;
}

.settings-favicon-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}

.settings-favicon-preview img {
    width: 40px;
    height: 40px;
    padding: 4px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.settings-favicon-preview span {
    color: var(--muted);
    font-size: 0.82rem;
}

.theme-swatches {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.theme-swatches span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--swatch);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border);
}

.check-field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.check-field input { width: auto; }

.server-table-filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.server-table-filters input {
    flex: 1 1 190px;
    min-width: 150px;
}

.server-table-filters select {
    width: auto;
    min-width: 125px;
}

.table-pagination .disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.customer-lookup {
    position: relative;
}

.booking-lookup {
    position: relative;
    display: grid;
    gap: 8px;
}

.amount-summary {
    display: inline-flex;
    width: fit-content;
    min-height: 40px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f2f5f2;
    color: var(--primary-dark);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.lookup-results {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    display: grid;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--shadow);
}

.lookup-results:empty { display: none; }

.lookup-option {
    justify-content: flex-start;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: #fff;
    color: var(--text);
    box-shadow: none;
    text-align: left;
}

.lookup-option:hover { background: #f2f5f2; color: var(--text); }
.lookup-option:last-child { border-bottom: 0; }

.lookup-empty {
    padding: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .toast { top: 12px; right: 12px; }

    .profile-table th {
        width: 110px;
    }

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

    .server-table-filters {
        justify-content: stretch;
    }

    .server-table-filters input,
    .server-table-filters select,
    .server-table-filters button,
    .server-table-filters .btn {
        width: 100%;
    }
}

/* Global Booking Reference Badge */
.booking-ref-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: var(--primary, #2563eb);
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 7px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: .02em;
    transition: background .15s, border-color .15s, transform .1s;
    white-space: nowrap;
}
.booking-ref-badge:hover {
    background: #e2e8f0;
    border-color: var(--primary, #2563eb);
    transform: translateY(-1px);
}
