﻿: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;
}

.badge.pending, .badge.booked, .badge.confirmed, .badge.in_progress { background: #fff7d6; color: #8a5d00; }
.badge.done { background: #dcfce7; color: #166534; }
.badge.cancelled { background: #fee2e2; color: #991b1b; }
.badge.due { background: #ffe4e6; color: #9f1239; }
.badge.postponed { background: #f3e8ff; color: #6b21a8; }

.action-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

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

.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;
}

.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;
}

.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%;
    }
}
