
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f9f6f4;
    color: #333;
}

/* Main container */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Headings */
h1 {
    color: #7a5c61;
    margin-top: 0;
}

h2 {
    color: #7a5c61;
}

/* Navigation buttons */
.nav-links {
    margin-bottom: 20px;
}

.nav-links a {
    display: inline-block;
    text-decoration: none;
    background-color: #b88c94;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    margin-right: 10px;
    font-weight: bold;
}

.nav-links a:hover {
    background-color: #9f747c;
}

.nav-links {
    margin-bottom: 20px;
}


/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

th {
    background-color: #f1e7e9;
    color: #5d4348;
}

tr:nth-child(even) {
    background-color: #fafafa;
}

tr:hover {
    background-color: #f6eef0;
}

/* Buttons */
.btn {
    display: inline-block;
    text-decoration: none;
    background-color: #6f9b7d;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
}

.btn:hover {
    background-color: #5b8468;
}

/* Info box */
.info-box {
    background-color: #f8f1f2;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* No data message */
.no-data {
    padding: 15px;
    background-color: #fff8e1;
    border: 1px solid #f0d98c;
    border-radius: 8px;
}

/* MAIN NAV */
.nav-links {
    margin-bottom: 15px;
}

.page-nav {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.page-nav .btn,
.page-nav a.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.page-nav .btn {
    min-height: 40px;
    display: flex;
    align-items: center;
}

/* BUTTON BASE */
.nav-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    color: white;
}

/* NEXT BUTTON */
.nav-btn.primary {
    background-color: #125e65; /* your spa color */
}

/* PREVIOUS BUTTON */
.nav-btn.secondary {
    background-color: #888; /* softer gray */
}

/* Secondary (less important actions) */
.nav-links a.secondary {
    background-color: #e5d6d9;
    color: #7a5c61;
}

/* Danger (delete buttons later) */
.nav-links a.danger {
    background-color: #c94c4c;
}

/* Success (save/confirm later) */
.nav-links a.success {
    background-color: #6f9b7d;
}

.page-nav {
    margin-top: 35px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f3eadf;
    color: #f3ead;
}

#  -----------------
#  background  colors for above 
#
#   soft beige       #f3eadf
#   warmer geige     #efe4d6
#   light brown/beige #e8dccb
#
#  ------------------

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f3eadf; /* soft beige */
    color: #333;
}

/* Banner */
.banner {
    text-align: center;
    background-color: #e6d6c3;
    padding: 10px 0;
}

.banner img {
    max-width: 100%;
    max-height: 160px;
}

/* Main container (you already use this) */
.container {
    max-width: 1000px;
    margin: 30px auto;
    background: #fffaf5;
    padding: 25px;
    border-radius: 10px;
}

/* Navigation links (styled like buttons) */
.nav-links {
    margin-bottom: 20px;
}

.nav-links a {
    display: inline-block;
    margin-right: 10px;
    padding: 8px 14px;
    background-color: #b8a28a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.nav-links a:hover {
    background-color: #9e8871;
}

/* Buttons */
.btn {
    background-color: #8b6b4a;
    color: white;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
}

.btn:hover {
    background-color: #73563b;
}


.form-buttons {
    margin-top: 30px;
}

.form-buttons .btn,
.form-buttons button {
    margin-right: 12px;
}

.cancel-btn {
    background-color: #999;
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    display: inline-block;
}

.cancel-btn:hover {
    background-color: #777;
}

.form-buttons {
    margin-top: 30px;
}

.form-buttons button,
.form-buttons .btn {
    margin-right: 12px;
}

.cancel-btn {
    text-decoration: none;
    display: inline-block;
}

.form-buttons {
    margin-bottom: 20px;
}

.form-buttons button,
.form-buttons .btn {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    margin-right: 12px;
    cursor: pointer;
}

.admin-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.admin-form input,
.admin-form select {
    padding: 8px;
}

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

.return-btn {
    background-color: #2e7d32; /* green */
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.return-btn:hover {
    background-color: #1b5e20;
}


button[type="submit"] {
    background-color: #125e65;
    color: white;
    border: none;
}

button[type="submit"]:hover {
    background-color: #0e4c52;
}

button[type="reset"] {
    background-color: #ccc;
    border: none;
}

button[type="reset"]:hover {
    background-color: #aaa;
}

.cancel-btn {
    background-color: #999;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    display: inline-block;
}

.cancel-btn:hover {
    background-color: #777;
}


.delete-btn {
    background-color: #b22222;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

.delete-btn:hover {
    background-color: #8b1a1a;
}

.flash-messages {
    max-width: 1100px;
    margin: 15px auto;
}

.flash {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #c3e6cb;
}

.admin-links {
    margin-top: 20px;
}

.admin-links .btn {
    margin-right: 12px;
    margin-bottom: 12px;
}


table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: #125e65;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Allow text to wrap instead of squeezing */
td {
    white-space: normal;
}

/* Prevent table from squishing */
table {
    table-layout: auto;
}

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

.notes-cell {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn {
    padding: 6px 10px;
    margin: 2px;
    font-size: 14px;
}

.btn-danger {
    background-color: #c0392b;
    color: white;
}

.notes-cell {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notes-cell {
    max-width: 260px;
}

.note-wrapper {
    position: relative;
    cursor: pointer;
}

/* Hidden popup */
.note-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 10px;
    width: 300px;
    z-index: 1000;
    white-space: normal;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 6px;
}

/* Show on hover */
.note-wrapper:hover .note-popup {
    display: block;
}

.notes-cell {
    min-width: 120px;
}

.note-btn {
    white-space: nowrap;
}

.note-popup-box {
    display: none;
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0;
    z-index: 5000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    width: 350px;
    max-width: 90%;
}

.note-popup-content {
    padding: 18px;
    white-space: normal;
    word-wrap: break-word;
}

.container {
    width: 95%;
    max-width: 1400px;   /* or 1600px if you want wider */
    margin: 0 auto;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.appointments-table {
    width: 100%;
    min-width: 1400px;
}

.notes-cell {
    max-width: 350px;
    white-space: normal;   /* allow wrapping */
}

.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    padding: 20px;
    min-width: 200px;
    flex: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-align: center;
}

.dashboard-card h3 {
    margin-bottom: 10px;
    color: #125e65;
    font-size: 18px;
}

.dashboard-card p {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.dashboard-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.status {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    text-transform: capitalize;
}

.status.booked {
    background-color: #e6f4ea;
    color: #2e7d32;
}

.status.completed {
    background-color: #e3f2fd;
    color: #1565c0;
}

.status.cancelled {
    background-color: #fdecea;
    color: #c62828;
}

.dashboard-actions {
    margin-bottom: 20px;
}

.dashboard-actions .btn {
    margin-right: 10px;
}

.next-appointment {
    background: #fdecea;      /* light red background */
    color: #c62828;           /* dark red text */
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    font-weight: bold;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
}

.calendar-day {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    min-height: 200px;
}

.calendar-day h3 {
    margin: 0;
    font-size: 16px;
    color: #125e65;
}

.calendar-event {
    margin-top: 10px;
    padding: 8px;
v    border-radius: 6px;
    font-size: 13px;
    background: #f1f1f1;
}

/* status colors */
.calendar-event.booked {
    background: #e6f4ea;
}

.calendar-event.completed {
    background: #e3f2fd;
}

.calendar-event.cancelled {
    background: #fdecea;
}

.calendar-nav {
    margin-bottom: 15px;
}

.calendar-nav .btn {
    margin-right: 10px;
}

.next-appointment {
    background-color: #f4fdfb;
    border-left: 5px solid #2e8b57;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 16px;
}

.calendar-day.today {
    background-color: #e6f7ff;
    border: 2px solid #4da6ff;
}

.calendar-day.has-appt {
    background-color: #f3fff3;
}

.calendar-day.today.has-appt {
    background-color: #e8fff0;
    border: 2px solid #2e8b57;
}

<div class="calendar-nav" style="margin-bottom: 20px;">
    <a class="btn" href="{{ url_for('calendar', week=week-1) }}">Previous</a>
    <a class="btn" href="{{ url_for('calendar', week=0) }}">Today</a>
    <a class="btn" href="{{ url_for('calendar', week=week+1) }}">Next</a>
</div>

.calendar-day-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.calendar-day-link:hover .calendar-day {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    transition: 0.2s ease;
    cursor: pointer;
}

.calendar-event.booked {
    background-color: #e6f7ff;
    border-left: 4px solid #4da6ff;
}

.calendar-event.completed {
    background-color: #e8fff0;
    border-left: 4px solid #2e8b57;
}

.calendar-event.cancelled {
    background-color: #ffeaea;
    border-left: 4px solid #cc0000;
}

.calendar-day {
    min-height: 180px;
    padding: 12px;
    border-radius: 10px;
    background: #ffffff;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
}

.form-row label {
    min-width: 140px;
    font-weight: bold;
}

.form-row input,
.form-row select,
.form-row textarea {
    flex: 1;
    max-width: 400px;
}

.short-input {
    max-width: 120px !important;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
}

.form-row label {
    min-width: 140px;
    font-weight: bold;
}

.form-row input,
.form-row select,
.form-row textarea {
    flex: 1;
    max-width: 400px;
}

.short-input {
    max-width: 120px !important;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.form-row label {
    width: 140px;
    font-weight: bold;
}

/* Default inputs */
.form-row input,
.form-row select {
    max-width: 300px;
}

/* Room number specifically */
#room_number {
    width: 100px;
}

#room_number {
    width: 90px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.form-row label {
    width: 140px;
    font-weight: bold;
}

/* General inputs */
.form-row input {
    max-width: 300px;
}

/* Room number specifically (override) */
#room_number {
    width: 90px;
}

#room_number {
    width: 70px;
    text-align: center;
}

.room-input {
    width: 70px !important;
    max-width: 70px !important;
    display: inline-block;
}

/* Remove arrows (Chrome, Safari, Edge) */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove arrows (Firefox) */
input[type=number] {
    -moz-appearance: textfield;
}\\#duration_minutes {
    width: 90px;
    text-align: center;
}

.calendar-event.booked {
    background-color: #dbeafe;
    border-left: 4px solid #3b82f6;
}

.calendar-event.completed {
    background-color: #dcfce7;
    border-left: 4px solid #22c55e;
}

.calendar-event.cancelled {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
}

.calendar-day-actions {
    margin: 10px 0;
}

.btn-sm {
    display: inline-block;
    padding: 6px 10px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
}

.calendar-event.overdue {
    border: 2px solid #cc0000;
    background-color: #ffe5e5;
}


.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.calendar-day {
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 12px;
    min-height: 220px;
    box-sizing: border-box;
}

.calendar-day.today {
    border: 2px solid #125e65;
    background-color: #eef9f9;
}

.calendar-day.has-appointment {
    box-shadow: 0 0 0 2px rgba(18, 94, 101, 0.12);
}

.calendar-day-actions {
    margin: 10px 0 12px 0;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calendar-event-link {
    text-decoration: none;
    color: inherit;
}

.calendar-event {
    background: #f6f6f6;
    border-left: 4px solid #125e65;
    border-radius: 8px;
    padding: 8px;
    font-size: 14px;
}

.calendar-event.overdue {
    background-color: #ffe5e5;
    border-left: 4px solid #cc0000;
}

.btn-sm {
    display: inline-block;
    padding: 6px 10px;
    font-size: 14px;
}

.calendar-event.booked {
    background: #f6f6f6;
    border-left: 4px solid #125e65;
}

.calendar-event.completed {
    background-color: #e8f5e9;
    border-left: 4px solid #2e7d32;
}

.calendar-event.cancelled {
    background-color: #f3f3f3;
    border-left: 4px solid #888888;
    opacity: 0.8;
}

.calendar-event.overdue {
    background-color: #ffe5e5;
    border-left: 4px solid #cc0000;
}

.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.dashboard-card h3 {
    margin-bottom: 10px;
}

.dashboard-card p {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

@media print {
    nav,
    .nav,
    .btn,
    form,
    .flash-messages,
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        margin: 0;
        padding: 20px;
        font-size: 12pt;
    }

    h1, h2, h3 {
        color: #000;
    }

    .dashboard-cards {
        display: block;
    }

    .dashboard-card {
        display: inline-block;
        width: 30%;
        min-width: 180px;
        vertical-align: top;
        margin: 0 10px 15px 0;
        border: 1px solid #999;
        box-shadow: none;
        background: #fff;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    table, th, td {
        border: 1px solid #999;
    }

    th, td {
        padding: 8px;
        text-align: left;
    }
}

.footer-note {
    font-size: 9px;
    color: #bbb;
    text-align: center;
    margin-top: 50px;
}

.footer-note {
    position: fixed;
    bottom: 5px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 9px;
    color: #bbb;
    pointer-events: none; /* prevents blocking clicks */
}

form label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

form input,
form select,
form textarea {
    width: 300px;
    max-width: 100%;
    padding: 8px;
    margin-top: 4px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 8px;
}

.calendar-weekdays div {
    text-align: center;
    font-weight: bold;
    padding: 8px 0;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* =========================
   INCOME REPORT
========================= */

.report-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.report-header h1 {
    margin: 0;
    font-size: 2rem;
    color: #1f2937;
}

.report-subtitle {
    margin-top: 6px;
    color: #6b7280;
    font-size: 1rem;
}

.report-actions {
    display: flex;
    gap: 10px;
}

.btn-print {
    background-color: #1f4e79;
    color: white;
    border: none;
}

.btn-print:hover {
    background-color: #163a59;
}

.report-filter-card {
    background: #ffffff;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    margin-bottom: 18px;
}

.report-filter-form {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

.filter-group input {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.report-period {
    margin: 10px 0 20px 0;
    font-size: 1rem;
    color: #374151;
    background: #f8fafc;
    padding: 12px 14px;
    border-left: 5px solid #1f4e79;
    border-radius: 8px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.summary-card {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #d9e4ef;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.summary-card h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #475569;
    font-weight: 600;
}

.summary-card p {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    color: #0f172a;
}

.report-section {
    margin-bottom: 30px;
}

.report-section h2 {
    margin-bottom: 14px;
    color: #1f2937;
    font-size: 1.35rem;
}

.table-wrap {
    overflow-x: auto;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    border: 1px solid #dbe3ea;
}

.styled-report-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.compact-table {
    min-width: 500px;
}

.styled-report-table thead {
    background: #1f4e79;
    color: white;
}

.styled-report-table th,
.styled-report-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
}

.styled-report-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.styled-report-table tbody tr:hover {
    background-color: #eef6ff;
}

.amount-cell {
    font-weight: 700;
    color: #0f5132;
    white-space: nowrap;
}

.no-data {
    text-align: center;
    padding: 24px;
    color: #6b7280;
    font-style: italic;
}

.muted-text {
    color: #9ca3af;
}

/* PRINT FORMAT */
@media print {
    .no-print,
    nav,
    .navbar,
    .btn,
    footer {
        display: none !important;
    }

    body {
        background: white;
    }

    .report-page {
        max-width: 100%;
        padding: 0;
    }

    .summary-card,
    .report-filter-card,
    .table-wrap {
        box-shadow: none;
    }

    .detail-section {
        page-break-before: always;
    }

    .styled-report-table th,
    .styled-report-table td {
        font-size: 11px;
        padding: 8px 10px;
    }

    .summary-card p {
        font-size: 1.4rem;
    }
}

/* =========================
   GENERAL INCOME FORM
========================= */

.form-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.form-header h1 {
    margin-bottom: 6px;
    color: #1f2937;
}

.form-subtitle {
    color: #6b7280;
    margin-bottom: 20px;
}

.form-card {
    background: #ffffff;
    border: 1px solid #dbe3ea;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.general-income-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: #6b7280;
    color: #fff;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

@media (max-width: 800px) {
    .general-income-form .form-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   SECTION HOME PAGES
========================= */

.section-page {
			    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.section-header h1 {
    margin-bottom: 6px;
    color: #1f2937;
}

.section-subtitle {
    color: #6b7280;
    margin-bottom: 24px;
}

.section-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.section-card {
    display: block;
    background: #ffffff;
    border: 1px solid #dbe3ea;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.section-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1f2937;
}

.section-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

.inactive-card {
    opacity: 0.75;
    cursor: default;
}

/* =========================
   MAIN NAVIGATION
========================= */

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0 20px 0;
}

.nav-btn {
    display: inline-block;
    padding: 10px 16px;
    background-color: #1f4e79;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

.nav-btn:hover {
    background-color: #163a59;
}

@media print {
    .no-print,
    .btn,
    form,
    nav,
    .sidebar {
        display: none !important;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    th, td {
        border: 1px solid #999;
        padding: 6px;
        text-align: left;
    }

    body {
        background: white;
        color: black;
    }
}


.money-summary {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.summary-card {
    flex: 1;
    min-width: 220px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.summary-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #444;
}

.summary-card p {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    color: #222;
}

.flash {
    padding: 12px;
    margin: 10px 0 15px 0;
    border-radius: 6px;
    font-weight: bold;
}

.flash.success {
    background-color: #e6ffe6;
    border-left: 5px solid #008000;
}

.flash.error {
    background-color: #ffe5e5;
    border-left: 5px solid #cc0000;
}

.flash.warning {
    background-color: #fff8e1;
    border-left: 5px solid #cc9900;
}

.flash {
    padding: 12px;
    margin: 10px 0 15px 0;
    border-radius: 6px;
    font-weight: bold;
}

.flash.success {
    background-color: #e6ffe6;
    border-left: 5px solid #008000;
}

.flash.error {
    background-color: #ffe5e5;
    border-left: 5px solid #cc0000;
}

.flash.warning {
    background-color: #fff8e1;
    border-left: 5px solid #cc9900;
}

.help-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
}

.help-section h2 {
    color: #125e65;
    margin-bottom: 10px;
}

.help-section h3 {
    margin-top: 15px;
    color: #333;
}

.help-section ul {
    margin-left: 20px;
    line-height: 1.7;
}

.help-section p {
    line-height: 1.7;
}

.btn {
    background-color: #1f4e79;
    color: white;
    padding: 10px 14px;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
}

.compensation-row {
    display: flex;
    align-items: end;
    gap: 50px;
    margin-bottom: 10px;
}

.comp-type-group {
    width: 260px;
    flex: none;
}

.amount-group {
    width:110px;
    flex: none;
}

.compensation-row select,
.compensation-row input {
    height: 38px;
    padding: 6px 10px;
    box-sizing: border-box;
}

.narrow-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
    gap: 40px;
    justify-content: center;
}

.narrow-cards .section-card {
    width: 220px;
    max-width: 220px;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

.footer-note {
    text-align: center;
    padding: 10px 0;
    background: transparent;
    border-top: none;
    font-size: 13px;
    color: #666;
}


table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}




.table-container {
    max-height: 500px;
    overflow: auto;
    border: 1px solid #ccc;
}

.table-container table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-container thead th {
    position: sticky;
    top: 0;
    background: #034F3B;
    z-index: 10;
    border-bottom: 2px solid #999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.table-container th:first-child,
.table-container td:first-child {
    position: sticky;
    left: 0;
    background: #f1e1e90;
;
    z-index: 6;
    border-right: 2px solid #ccc;
}

.table-container thead th:first-child {
    z-index: 15;
}


.alert-banner {
    background-color: #ffe5e5;
    border-left: 6px solid #cc0000;
    padding: 12px;
    margin-bottom: 15px;
    font-weight: bold;
}

.alert-card {
    background-color: #ffe5e5;
    border: 2px solid #cc0000;
}


.summary-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.summary-label {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 6px;
}

.summary-value {
    font-size: 1.3rem;
    font-weight: 600;
}

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

.history-card {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 22px;
    overflow: hidden;
}

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

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.history-table th,
.history-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #efefef;
    text-align: left;
    vertical-align: top;
}

.history-table th {
    background: #fafafa;
    font-weight: 700;
    color: #444;
}

.history-table tr:hover {
    background: #fcfcfc;
}

.notes-cell {
    max-width: 260px;
    white-space: normal;
    color: #555;
}

.table-link {
    font-weight: 600;
    text-decoration: none;
}

.status-pill {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid #ddd;
    background: #f7f7f7;
}

.status-booked {
    background: #f3f8ff;
}

.status-completed {
    background: #f3fcf4;
}

.status-cancelled {
    background: #fff4f4;
}

.status-no-show {
    background: #fff8ef;
}

.empty-state {
    margin: 0;
    color: #666;
}

<style>
.feedback-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: #d97b2d;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}
.feedback-float-btn:hover {
    opacity: 0.9;
}
</style>

.placeholder-grid {
    display: grid;
    grid-template-columns: 220px 80px; /* fixed widths */
    gap: 26px 30px;
    align-items: center;
}

.btn-copy {
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1;
}

<style>
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.calendar-appointment {
    border: none;
    background: #f6d6c8;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}
</style>

<style>
.calendar-event-link {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.calendar-event-link:hover {
    text-decoration: underline;
}
</style>

.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.status-badge.booked { background: #d9edf7; }
.status-badge.completed { background: #d4edda; }
.status-badge.cancelled { background: #f8d7da; }


.client-management-page .btn {
    padding: 3px 8px;
    font-size: 13px;
    line-height: 1.1;
}

.client-management-page .btn {
    border-radius: 6px;
    cursor: pointer;
}

.client-management-page .badge {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.badge-success {
    background-color: #28a745;   /* strong green */
    color: #fff;
}

.badge-danger {
    background-color: #dc3545;   /* strong red */
    color: #fff;
}

.badge-warning {
    background-color: #ffc107;   /* yellow */
    color: #212529;
}

td {
    vertical-align: top;
}

td:nth-child(3) {
    line-height: 1.4;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}



.conversation-page {
    max-width: 900px;
    margin: 0 auto;
}

.conversation-box {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
    min-height: 400px;
}

.message-row {
    display: flex;
    margin-bottom: 14px;
}

.message-row.inbound {
    justify-content: flex-start;
}

.message-row.outbound {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 14px;
    border-radius: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.message-row.inbound .message-bubble {
    background: #ffffff;
    border-bottom-left-radius: 4px;
}

.message-row.outbound .message-bubble {
    background: #dff3ff;
    border-bottom-right-radius: 4px;
}

.message-body {
    white-space: pre-wrap;
    line-height: 1.4;
    font-size: 15px;
}

.message-meta {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    text-align: right;
}

.sms-status {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    background: #ddd;
    color: #333;
}

.status-sent,
.status-delivered {
    background: #d7f5df;
    color: #217a35;
}

.status-queued {
    background: #fff3cd;
    color: #856404;
}

.status-failed,
.status-undelivered {
    background: #f8d7da;
    color: #842029;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #777;
}

.sms-reply-box {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.sms-reply-box textarea {
    flex: 1;
    resize: vertical;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
}

.sms-error {
    font-size: 11px;
    color: #c00;
    margin-top: 4px;
}


.styled-report-table th {
    width: 220px;
    white-space: nowrap;
}


.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    min-width: 85px;
}

.badge.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.badge.danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.badge.missing {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.styled-table thead th {
    position: sticky;
    top: 0;
    background: #ffffff;
    color: #111827;
    z-index: 10;
}

.table-container {
    overflow-x: auto;
    max-height: 75vh;
}

.help-content h1,
.help-content h2,
.help-content h3,
.help-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.help-content p {
    margin-top: 0;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.help-content ul,
.help-content ol {
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.help-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 0.5rem 0;
}

.help-content {
    font-size: 1rem;
}


.summary-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.summary-card {
    padding: 12px 18px;
    border-radius: 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    min-width: 110px;
    text-align: center;
}

.status-badge {
    padding: 4px 9px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.sent {
    background: #d4edda;
    color: #155724;
}

.status-badge.failed {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.skipped {
    background: #e2e3e5;
    color: #383d41;
}

.status-badge.cancelled {
    background: #777;
    color: white;
}


.help-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 10px 0;
}

.help-image:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}


.site-footer {
    margin-top: 40px;
    padding: 20px 10px;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 4px;
}

.footer-tagline {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

.footer-company,
.footer-motto {
    font-size: 0.8rem;
    color: #888;
}

.site-footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-brand:hover {
    opacity: .85;
}

.footer-icon {
    width: 40px;
    height: 40px;
}

.footer-title {
    font-size: 1.35rem;
    font-weight: bold;
    color: #e67e22;
}

.footer-tagline {
    color: #555;
    margin-top: 5px;
    margin-bottom: 12px;
}

.footer-company,
.footer-motto {
    color: #888;
    font-size: .85rem;
}

.footer-version {
    font-size: .75rem;
    color: #aaa;
    margin-bottom: 8px;
}

.site-footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
    box-shadow: 0 -2px 8px rgba(0,0,0,.05);
}

.footer-icon {
    width: 42px;
    height: 42px;
    transition: transform .2s ease;
}

.footer-brand:hover .footer-icon {
    transform: rotate(5deg) scale(1.08);
}


.site-footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    background-color: #fafafa;
    box-shadow: 0 -2px 8px rgba(0,0,0,.05);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-brand:hover {
    opacity: .85;
}

.footer-icon {
    width: 42px;
    height: 42px;
    transition: transform .2s ease;
}

.footer-brand:hover .footer-icon {
    transform: rotate(5deg) scale(1.08);
}

.footer-title {
    font-size: 1.35rem;
    font-weight: bold;
    color: #e67e22;
}

.footer-version {
    margin-top: 6px;
    font-size: .80rem;
    color: #999;
}

.footer-tagline {
    margin-top: 8px;
    margin-bottom: 12px;
    font-size: .95rem;
    color: #555;
}

.footer-company,
.footer-motto {
    font-size: .82rem;
    color: #888;
}

.footer-links {
    margin-top: 15px;
    font-size: .85rem;
}

.footer-links a {
    color: #777;
    text-decoration: none;
    margin: 0 5px;
}

.footer-links a:hover {
    color: #e67e22;
    text-decoration: underline;
}

.footer-links span {
    color: #bbb;
}


.page-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 20px;
}

.page-top-content {
    flex: 1;
}

.page-top-image {
    width: 260px;
    text-align: right;
}

.page-top-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.module-image {
    width: 260px;
    height: auto;
    border-radius: 12px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 20px;
}

.page-content {
    flex: 1;
}

.module-image {
    width: 260px;
    height: auto;
    border-radius: 12px;
}

.page-card {
    margin-bottom: 15px;
}

.kpi-green {
    border-left: 6px solid #28a745;
}

.kpi-yellow {
    border-left: 6px solid #ffc107;
}

.kpi-red {
    border-left: 6px solid #dc3545;
}

.kpi-neutral {
    border-left: 6px solid #ccc;
}

.progress-wrap {
    margin: 20px 0;
}

.progress-row {
    margin-bottom: 14px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 4px;
}

.progress-bar-bg {
    width: 100%;
    height: 18px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 12px;
}

.progress-green {
    background: #28a745;
}

.progress-yellow {
    background: #ffc107;
}

.progress-red {
    background: #dc3545;
}

.status-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.green {
    background: #28a745;
}

.yellow {
    background: #ffc107;
}

.red {
    background: #dc3545;
}

.business-health-table {
    width: auto;
    border-collapse: collapse;
    margin-top: 15px;
}

.business-health-table th,
.business-health-table td {
    padding: 6px 10px;
    white-space: nowrap;
}

.business-health-table th {
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

.business-health-table td:first-child {
    width: 35px;
    text-align: center;
}

.business-health-table td:nth-child(2) {
    width: 220px;
}

.business-health-table td:nth-child(3) {
    width: 100px;
    text-align: right;
}

.business-health-table td:nth-child(4) {
    width: 100px;
    text-align: right;
}

.business-health-table td:nth-child(2) {
    min-width: 180px;
}

.health-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.health-card {
    width: 260px;
    flex-shrink: 0;
}

.health-table {
    flex: 1;
}

.business-health-table {
    width: auto;
    border-collapse: collapse;
    margin-top: 10px;
}

.business-health-table th,
.business-health-table td {
    padding: 6px 10px;
    white-space: nowrap;
}

.business-health-table th {
    text-align: left;
    border-bottom: 2px solid #ddd;
}

.business-health-table td:first-child {
    width: 30px;
    text-align: center;
}

.business-health-table td:nth-child(3),
.business-health-table td:nth-child(4),
.business-health-table td:nth-child(5) {
    text-align: right;
}

.briefing-banner {
    padding: 12px 16px;
    margin: 18px 0 25px 0;
    border-left: 6px solid #f4a261;
    background: #fff7ed;
    border-radius: 8px;
}

.briefing-banner .btn {
    margin-left: 12px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
}




/* Morning Briefing Navigation Button */

.nav-btn-briefing {
    background-color: #f9c74f;
    color: #000;
    font-weight: bold;
    border: 1px solid #d9a404;
}

.nav-btn-briefing:hover {
    background-color: #f4b400;
    color: #000;
    transform: translateY(-1px);
    transition: 0.2s ease;
}

.dashboard-card h1 {
    font-weight: 500;
}

.dashboard-card h2 {
    font-weight: 600;
}

.dashboard-card h3 {
    font-weight: 400;
}

.help-icon {
  cursor: pointer;
  margin-left: 6px;
  background-color: #10b981;
}


.help-popover {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #ccc;
  background: #fff8e8;
  border-radius: 40px;
  max-width: 350px;
  font-size: 14px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.page-title h1 {
    margin: 0;
}

.archive-filter-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.archive-filter-form input[type="checkbox"] {
    margin: 0;
    width: auto;
}

.tool-pill {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    background: #f7f7f7;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s ease;
}

.tool-pill:hover {
    background: #eaf3ff;
    border-color: #7aa7d9;
    color: #0b5cad;
}

/* ======================================================
   TOOL PILLS
====================================================== */

.tool-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    color: #444;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
}

.tool-pill:hover {
    background: #f7f7f7;
    color: #222;
    text-decoration: none;
}

/* Small: page tools */
.tool-pill-small {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Medium: base/header nav */
.tool-pill-medium {
    line-height: 1.2;
    padding: 10px 15px;
    font-size: 0.98rem;
}

/* Large: sub-page navigation */
.tool-pill-large {
    padding: 12px 18px;
    font-size: 1.05rem;
    font-weight: 600;
}

.user-menu {
    position: relative;
    display: inline-block;
    margin-left: 12px;
}

.user-menu-button {
    border: 1px solid #e5c7af;
    background: #fff7ef;
    color: #6f3f28;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
}

.user-menu-button:hover {
    background: #ffe9d6;
}

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: 44px;
    min-width: 230px;
    background: #fff;
    border: 1px solid #ead7c8;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 8px;
    z-index: 9999;
}

.user-menu-dropdown a {
    display: block;
    padding: 10px 12px;
    color: #4a3428;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
}

.user-menu-dropdown a:hover {
    background: #fff1e6;
}

.user-menu-divider {
    height: 1px;
    background: #ead7c8;
    margin: 8px 4px;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-button {
    border: 1px solid #f0c9a8;
    background: #fff7f0;
    color: #6f3b1f;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
}

.user-menu-button:hover {
    background: #ffe9d6;
}

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: 115%;
    min-width: 240px;
    background: #ffffff;
    border: 1px solid #f0c9a8;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 12px;
    z-index: 9999;
    text-align: left;
}

.user-menu-header {
    padding: 10px 12px;
    line-height: 1.35;
}

.user-menu-muted {
    color: #777;
    font-size: 0.85rem;
    margin-top: 2px;
}

.user-menu-dropdown a {
    display: block;
    padding: 1px 10px;
    border-radius: 10px;
    color: #4a2c1a;
    text-decoration: none;
    font-size: 0.95rem;
}

.user-menu-dropdown a:hover {
    background: #fff1e5;
}

.user-menu-divider {
    height: 1px;
    background: #f2d7c0;
    margin: 4px 0;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 9000;

    display: flex;
    align-items: center;

    padding: 10px 18px;

    background: #fff7f0;
    border-bottom: 1px solid #f0c9a8;
}

.app-main-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}


/* ======================================================
   DAILY BRIEFING
====================================================== */

.briefing-hero {
    display: flex;
    align-items: center;
    gap: 24px;

    margin: 22px 0;
    padding: 24px;

    background: #fff7f0;
    border: 1px solid #f0c9a8;
    border-radius: 18px;
}

.briefing-hero h2 {
    margin: 0 0 8px 0;
}

.briefing-health-score {
    min-width: 160px;
    text-align: center;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #f0c9a8;
    border-radius: 18px;
}

.briefing-score-number {
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
    color: #6f3b1f;
}

.briefing-score-label {
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #4a2c1a;
}

.briefing-score-subtitle {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #777;
}

.briefing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.briefing-grid .dashboard-card {
    margin: 0;
}

@media (max-width: 800px) {
    .briefing-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .briefing-grid {
        grid-template-columns: 1fr;
    }
}

.briefing-grid .dashboard-card h2 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.briefing-grid .dashboard-card p {
    font-size: 0.95rem;
    line-height: 1.55;
}

.briefing-hero h2 {
    font-size: 1.35rem;
    font-weight: 500;
}

.briefing-hero p {
    font-size: 0.95rem;
    color: #777;
}

.briefing-hero {
    display: flex;
    align-items: center;
    gap: 24px;

    margin: 22px 0;
    padding: 24px;

    background: #fff7f0;
    border: 1px solid #f0c9a8;
    border-radius: 18px;
}

.coach-intro {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 18px;
}

.coach-intro strong {
    color: #444;
    font-weight: 600;
}

.business-coach-card {
    padding: 20px;
}

.business-coach-card .btn {
    font-size: 0.92rem;
    padding: 8px 18px;
}

.coach-section-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.coach-note {
    color: #666;
    margin: 0 0 18px 0;
    max-width: 700px;
}

.business-schedule-empty {
    text-align: left;
    margin: 16px 0 22px 0;
    padding: 14px 0;
}

.business-schedule-empty p {
    text-align: left;
    font-size: 1rem;
    font-weight: normal;
    color: #666;
    margin: 0 0 14px 0;
    max-width: 760px;
}

.table-actions {
    white-space: nowrap;
}

.btn-small {
    font-size: 0.85rem;
    padding: 4px 9px;
    margin-right: 4px;
}

.business-schedule-footer-action {
    margin-top: 18px;
    text-align: left;
}

.business-schedule-footer-action p {
    color: #666;
    margin-bottom: 10px;
}

.detail-note {
    font-size: inherit !important;
    font-weight: 400 !important;
    line-height: 1.4;
    text-align: left;
    color: #666;
    margin: 0 0 14px 0;
    max-width: 760px;
}

.compact-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
    font-size: 0.9rem;
}

.compact-checkbox input {
    margin: 0;
}

.compact-checkbox label {
    margin: 0;
}

.compact-filter-form {
    margin: 4px 0 10px 0;
}

/* Compact checkbox layout override */
.compact-checkbox {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 6px 0 !important;
}

.compact-checkbox input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
}

.compact-checkbox label {
    display: inline !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: normal !important;
}

.user-menu-button {
    text-decoration: none;
}

.calendar-event.unreviewed {
    background: #fff3b0;
    border-left: 4px solid #d6a700;
}

.appointment-review-badge {
    display: inline-block;
    margin-top: 3px;
    padding: 2px 6px;
    border-radius: 8px;
    background: #d6a700;
    color: #2f2a00;
    font-size: 10px;
    font-weight: 600;
}

.schedule-description {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f7f7f7;
    border-radius: 6px;
    font-size: 0.95rem;
}

.schedule-preview {
    margin-top: 18px;
}

.schedule-preview h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.schedule-preview-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.schedule-preview-date {
    padding: 7px 10px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.9rem;
}

.processing-options {
    display: grid;
    gap: 12px;
}

.processing-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dddddd;
    border-radius: 7px;
    cursor: pointer;
}

.processing-option input {
    margin-top: 4px;
}

.processing-option-title {
    display: block;
    font-weight: 600;
}

.processing-option-description {
    display: block;
    margin-top: 3px;
    font-size: 0.9rem;
    color: #666666;
}

.command-card-list{
    display:flex;
    flex-direction:column;
    gap:18px;
    margin-top:20px;
}

.command-card{
    background:#fff;
    border:1px solid #e6ddd3;
    border-radius:14px;
    padding:22px;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.command-card-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:18px;
}

.command-card-title{
    margin:0;
    font-size:1.55rem;
    color:#5b4242;
}

.command-card-subtitle{
    margin-top:4px;
    color:#777;
}

.command-card-amount{
    font-size:2rem;
    font-weight:700;
    color:#2d6a4f;
}

.command-card-details{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:16px;
    margin-bottom:20px;
}

.command-detail{
    background:#faf8f5;
    border-radius:10px;
    padding:12px;
}

.command-detail-label{
    display:block;
    font-size:.78rem;
    color:#888;
    text-transform:uppercase;
    letter-spacing:.04em;
    margin-bottom:4px;
}

.command-detail-value{
    font-size:1rem;
    font-weight:600;
    color:#444;
}

.command-card-notes{
    background:#fffdf8;
    border-left:4px solid #f2b261;
    padding:14px;
    border-radius:8px;
    margin-bottom:18px;
}

.command-card-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-top:1px solid #ece7df;
    padding-top:16px;
}

.command-card-status{
    color:#666;
    font-size:.95rem;
}

.command-card-tools{
    display:flex;
    gap:8px;
}

.summary-card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:18px;
    margin:25px 0;
}

.summary-card{
    background:#fff;
    border:1px solid #e6ddd3;
    border-radius:12px;
    padding:18px;
    text-align:center;
    box-shadow:0 2px 6px rgba(0,0,0,.05);
}

.summary-card-title{
    font-size:.85rem;
    color:#777;
    text-transform:uppercase;
    letter-spacing:.04em;
    margin-bottom:10px;
}

.summary-card-value{
    font-size:2rem;
    font-weight:700;
    color:#5b4242;
}

.coach-panel{
    background:#fffdf7;
    border-left:6px solid #f2b261;
    border-radius:12px;
    padding:20px 24px;
    margin-bottom:25px;
    box-shadow:0 2px 6px rgba(0,0,0,.05);
}

.coach-panel h2{
    margin:0 0 10px 0;
    color:#5b4242;
}

.coach-panel p{
    margin:0;
    line-height:1.6;
}

.command-card-container{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
    gap:20px;
}

.command-card{
    background:#fff;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    overflow:hidden;
}

.command-card-accent {
    height: 6px;
    width: 100%;
}

.command-card-body {
    padding: 20px;
}

.command-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.command-card-title {
    margin: 0;
    font-size: 1.25rem;
}

.command-card-subtitle {
    margin-top: 4px;
    font-weight: 600;
}

.command-card-muted {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #666;
}

.command-card-section {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #e5e5e5;
}

.command-card-section-title {
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
}

.command-card-detail {
    margin: 5px 0;
}

.command-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-active {
    background: #e8f5e9;
    color: #256029;
}

.status-inactive {
    background: #f1f1f1;
    color: #666;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

form input:not([type="checkbox"]):not([type="radio"]),
form select,
form textarea {
    width: 300px;
    max-width: 100%;
}

form input[type="checkbox"],
form input[type="radio"] {
    width: auto;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: inherit;

    cursor: pointer;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease,
        background-color .18s ease;
}

.quick-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
    border-color: #c5a6d8;
    background: #ffffff;
}

.quick-action:active {
    transform: translateY(0);
}

.quick-action:hover .quick-action-title {
    color: #7c3aed;
}


.command-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.command-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.command-card {
    cursor: pointer;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.command-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,.10);
}

button.tool-pill {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 999px;

    background: #fff;
    color: #444;

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: normal;
    line-height: 1;

    text-decoration: none;
    cursor: pointer;
}

button.tool-pill:hover {
    background: #f7f7f7;
    border-color: #ddd;
    color: #222;
}

.about-peach-modal {
    width: min(540px, calc(100% - 30px));
    padding: 0;
    border: none;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.about-peach-modal::backdrop {
    background: rgba(0, 0, 0, 0.48);
}

.about-peach-modal-content {
    padding: 0;
}

.about-peach-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #e4e4e4;
}

.about-peach-modal-header h2 {
    margin: 0;
}

.about-peach-subtitle {
    margin-top: 4px;
    color: #666666;
    font-size: 0.9rem;
}

.about-peach-close {
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #eeeeee;
    color: #444444;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.about-peach-close:hover {
    background: #dddddd;
}

.about-peach-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
}

.about-peach-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #fff1e8;
    font-size: 2rem;
}

.about-peach-registration {
    margin: 0 24px 22px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    overflow: hidden;
}

.about-peach-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 14px;
    border-bottom: 1px solid #eeeeee;
}

.about-peach-detail-row:last-child {
    border-bottom: none;
}

.about-peach-detail-row span {
    color: #666666;
}

.about-peach-detail-row strong {
    text-align: right;
}

.about-peach-coach {
    margin: 0 24px 22px;
    padding: 15px;
    border-radius: 10px;
    background: #f8f8f8;
}

.about-peach-coach p {
    margin: 7px 0 0;
    line-height: 1.5;
}

.about-peach-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    border-top: 1px solid #e4e4e4;
    color: #666666;
    font-size: 0.86rem;
}

.about-peach-footer form {
    margin: 0;
}

@media (max-width: 600px) {
    .about-peach-detail-row {
        display: block;
    }

    .about-peach-detail-row strong {
        display: block;
        margin-top: 4px;
        text-align: left;
    }

    .about-peach-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

.peach-help-modal {
    width: min(760px, calc(100% - 30px));
    max-height: calc(100vh - 40px);
    padding: 0;
    border: none;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.peach-help-modal::backdrop {
    background: rgba(0, 0, 0, 0.48);
}

.peach-help-modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
}

.peach-help-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #e4e4e4;
}

.peach-help-modal-header h2 {
    margin: 0;
}

.peach-help-modal-subtitle {
    margin-top: 4px;
    color: #666666;
    font-size: 0.9rem;
}

.peach-help-close {
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #eeeeee;
    color: #444444;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.peach-help-close:hover {
    background: #dddddd;
}

.peach-help-search-section {
    padding: 18px 24px;
    border-bottom: 1px solid #eeeeee;
    background: #fafafa;
}

.peach-help-search-section label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.peach-help-search-row {
    display: flex;
    gap: 10px;
}

.peach-help-search-row input {
    flex: 1;
    min-width: 0;
}

.peach-help-body {
    overflow-y: auto;
    padding: 22px 24px;
}

.peach-help-context-section {
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    background: #fffaf6;
}

.peach-help-context-section h3 {
    margin: 5px 0 7px;
}

.peach-help-context-section p {
    margin: 0 0 15px;
    color: #555555;
    line-height: 1.5;
}

.peach-help-section-label {
    color: #777777;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.peach-help-topic-grid {
    display: grid;
    grid-template-columns: repeat(
        2,
        minmax(0, 1fr)
    );
    gap: 10px;
}

.peach-help-topic-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
}

.peach-help-topic-card:hover {
    border-color: #bbbbbb;
    background: #f8f8f8;
}

.peach-help-topic-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #fff1e8;
    font-size: 0.8rem;
    font-weight: 800;
}

.peach-help-empty-context {
    color: #666666;
    font-size: 0.9rem;
}

.peach-help-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

#peachHelpResultCount {
    color: #777777;
    font-size: 0.8rem;
}

.peach-help-results {
    display: grid;
    gap: 8px;
}

.peach-help-result-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 13px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
}

.peach-help-result-link:hover {
    border-color: #bbbbbb;
    background: #f8f8f8;
}

.peach-help-result-arrow {
    color: #888888;
    font-weight: 700;
}

.peach-help-loading,
.peach-help-no-results {
    padding: 18px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #666666;
    text-align: center;
}

.peach-help-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 24px;
    border-top: 1px solid #e4e4e4;
    background: #ffffff;
}

.peach-help-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.peach-help-footer-actions form {
    margin: 0;
}

@media (max-width: 650px) {
    .peach-help-topic-grid {
        grid-template-columns: 1fr;
    }

    .peach-help-search-row {
        align-items: stretch;
        flex-direction: column;
    }

    .peach-help-modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .peach-help-footer-actions {
        justify-content: flex-end;
    }
}

.campaign-id-field input {
    width: 100%;
    min-width: 20ch;
    font-family: monospace;
}

.campaign-id-wide {
    grid-column: 1 / -1;
}

.campaign-id-wide input {
    width: 100%;
    min-width: 32ch;
    box-sizing: border-box;
    font-family: monospace;
}

.campaign-id-wide {
    grid-column: 1 / -1;
}

.campaign-id-wide input {
    width: 100%;
    min-width: 50ch;
    box-sizing: border-box;
    font-family: monospace;
}

.agreement-notes-field {
    margin-top: 16px;
}

.agreement-status-note {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
}

.agreement-accepted {
    background: #e3f5e9;
    color: #247245;
}

.agreement-revoked {
    background: #f3e5e5;
    color: #9d3d3d;
}

.sms-status-grid {
    grid-template-columns: repeat(
        auto-fit,
        minmax(170px, 1fr)
    );
}

/* =========================================================
   DAILY BRIEFING — EXECUTIVE SUMMARY
========================================================= */

.briefing-hero {
    display: grid;
    grid-template-columns:
        minmax(250px, 1.25fr)
        repeat(3, minmax(180px, 1fr));
    gap: 22px;
    align-items: stretch;

    padding: 28px 34px;
    margin: 28px 0 30px;

    background: #fffaf5;
    border: 1px solid #efc5a7;
    border-radius: 18px;
}

.briefing-hero-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.briefing-hero-intro h2 {
    margin: 0 0 18px;
}

.briefing-hero-intro p {
    margin: 0;
}

.briefing-local-time {
    color: #666;
}

.briefing-summary-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    min-height: 130px;
    padding: 20px;

    text-align: center;

    background: #ffffff;
    border: 1px solid #efc5a7;
    border-radius: 16px;
}

.briefing-card-title {
    margin-bottom: 10px;

    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
}

.briefing-card-value {
    color: #4d2c20;
    font-size: 1.15rem;
    font-weight: 700;
}

.briefing-card-detail {
    margin-top: 8px;

    color: #777;
    font-size: 0.9rem;
}


/* Tablet */
@media (max-width: 1050px) {

    .briefing-hero {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* Phone */
@media (max-width: 650px) {

    .briefing-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .briefing-hero-intro {
        text-align: center;
    }

}

.briefing-hero {
    gap: 16px;
    padding: 20px 26px;
}

.briefing-summary-card {
    min-height: 105px;
    padding: 14px 16px;
}

.briefing-card-value {
    font-size: 1rem;
}

/* =========================================================
   BUSINESS HEALTH DETAILS
========================================================= */

.briefing-summary-card-button {
    width: 100%;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    appearance: none;
}

.briefing-summary-card-button:hover {
    border-color: #d99970;
    transform: translateY(-1px);
}

.briefing-summary-card-button:focus-visible {
    outline: 3px solid rgba(217, 153, 112, 0.35);
    outline-offset: 3px;
}

.briefing-card-link {
    margin-top: 9px;
    color: #9a5e3c;
    font-size: 0.82rem;
    font-weight: 600;
}

.business-health-details {
    padding: 20px 24px;
    margin: -12px 0 26px;

    background: #fffaf5;
    border: 1px solid #efc5a7;
    border-radius: 16px;
}

.business-health-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.business-health-details-header h2 {
    margin: 0 0 6px;
}

.business-health-details-header p {
    margin: 0;
    color: #666;
}

.business-health-score-summary {
    margin-top: 18px;
    padding: 14px 16px;

    background: #ffffff;
    border: 1px solid #efc5a7;
    border-radius: 12px;
}

.business-health-score-summary p {
    margin: 6px 0 0;
}

.business-health-factor-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.business-health-factor {
    padding: 14px 16px;

    background: #ffffff;
    border: 1px solid #ead8ca;
    border-radius: 12px;
}

.business-health-factor-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.business-health-factor-heading span {
    color: #9a5e3c;
    font-weight: 600;
    white-space: nowrap;
}

.business-health-factor p {
    margin: 7px 0 0;
    color: #666;
}

@media (max-width: 650px) {

    .business-health-details-header,
    .business-health-factor-heading {
        flex-direction: column;
    }

}

.styled-form .inventory-scan-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.styled-form .inventory-scan-actions .inventory-scan-button {
    width: auto !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    display: inline-flex !important;
}

/* =========================================================
   HELP CENTER DIRECTORY
========================================================= */

.help-center-page {
    max-width: 1100px;
    margin: 0 auto;
}

.help-center-banner {
    margin: 18px 0 22px;
    text-align: center;
}

.help-center-banner img {
    width: 82%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
}

.help-center-search {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.help-center-search input {
    flex: 1 1 300px;
    min-width: 220px;
    margin: 0;
}

.help-center-search .tool-pill {
    width: auto !important;
    flex: 0 0 auto;
}

.help-center-directory-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 12px;
}

.help-center-directory-header h2 {
    margin: 0 0 3px;
    font-size: 1.15rem;
}

.help-center-directory-header p {
    margin: 0;
    color: #666;
    font-size: 0.88rem;
}

.help-center-directory-header .record-count {
    white-space: nowrap;
    font-size: 0.82rem;
    color: #777;
}

.help-center-directory {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px, 1fr)
        );
    gap: 7px 12px;
}

.help-center-directory-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 9px;

    min-height: 40px;
    padding: 8px 11px;

    color: inherit;
    text-decoration: none;

    background: #fff;
    border: 1px solid #eadfd6;
    border-radius: 8px;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        transform 0.15s ease;
}

.help-center-directory-item:hover {
    background: #fffaf6;
    border-color: #dda47e;
    transform: translateY(-1px);
}

.help-center-directory-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
}

.help-center-directory-language {
    padding: 2px 6px;

    color: #76523c;
    background: #f8eee7;
    border-radius: 10px;

    font-size: 0.67rem;
    font-weight: 700;
}

.help-center-directory-arrow {
    color: #a26645;
    font-size: 1.15rem;
    line-height: 1;
}

.help-center-empty {
    padding: 22px;

    text-align: center;

    background: #fffaf6;
    border: 1px solid #eadfd6;
    border-radius: 10px;
}

.help-center-empty p {
    margin: 6px 0 0;
    color: #666;
}

.help-center-footer-message {
    margin-top: 24px;
    padding-top: 16px;

    text-align: center;
    color: #777;
    font-size: 0.82rem;

    border-top: 1px solid #eee;
}

@media (max-width: 650px) {

    .help-center-banner img {
        width: 100%;
    }

    .help-center-directory-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .help-center-directory {
        grid-template-columns: 1fr;
    }

}

.peach-help-result-button {
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.peach-help-topic-button {
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/* =========================================================
   HELP MODAL ARTICLE CONTENT
========================================================= */

.peach-help-article-view {
    padding: 18px 22px;
    max-height: 65vh;
    overflow-y: auto;
}


.peach-help-article h2 {
    margin: 5px 0 14px;
    font-size: 1.25rem;
}

.peach-help-article-content {
    font-size: 0.88rem;
    line-height: 1.55;
}

.peach-help-article-content h1 {
    margin: 18px 0 9px;
    font-size: 1.3rem;
}

.peach-help-article-content h2 {
    margin: 17px 0 8px;
    font-size: 1.08rem;
}

.peach-help-article-content h3 {
    margin: 15px 0 7px;
    font-size: 0.98rem;
}

.peach-help-article-content p {
    margin: 7px 0;
}

.peach-help-article-content hr {
    margin: 16px 0;
    border: 0;
    border-top: 1px solid #e5ddd7;
}

.peach-help-article-content ul,
.peach-help-article-content ol {
    margin: 7px 0 10px;
    padding-left: 22px;
}

.peach-help-article-content li {
    margin-bottom: 4px;
}


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

.peach-help-header-actions form {
    margin: 0;
}

.peach-help-header-actions .tool-pill {
    width: auto !important;
    white-space: nowrap;
}

.peach-help-article-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;

    display: flex;
    justify-content: flex-start;

    margin: 0 0 12px;
    padding: 10px 0;

    background: #ffffff;
    border-bottom: 1px solid #eadfd6;
}

.peach-help-article-toolbar .tool-pill {
    width: auto !important;
    flex: 0 0 auto;
}

/* =========================================================
   APP SIDE PANEL
========================================================= */

body.app-menu-open {
    overflow: hidden;
}


/* ---------------------------------------------------------
   TOP HEADER / MENU BUTTON
--------------------------------------------------------- */

.app-header {
    position: sticky;
    top: 0;
    z-index: 9000;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    min-height: 58px;
    padding: 8px 18px;

    background: #fff7f0;
    border-bottom: 1px solid #f0c9a8;
}


.app-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    border: 1px solid #e5c7af;
    background: #ffffff;
    color: #6f3f28;

    border-radius: 999px;
    padding: 9px 16px;

    font-size: 0.98rem;
    font-weight: 700;

    cursor: pointer;
}


.app-menu-trigger:hover {
    background: #ffe9d6;
}


.app-menu-trigger:focus-visible {
    outline: 3px solid rgba(185, 109, 61, 0.3);
    outline-offset: 2px;
}


.app-menu-trigger-icon {
    font-size: 1.15rem;
    line-height: 1;
}


/* ---------------------------------------------------------
   PAGE OVERLAY
--------------------------------------------------------- */

.app-menu-overlay {
    position: fixed;
    inset: 0;

    background: rgba(47, 31, 22, 0.38);

    z-index: 9100;
}


.app-menu-overlay[hidden] {
    display: none;
}


/* ---------------------------------------------------------
   SIDE PANEL
--------------------------------------------------------- */

.app-side-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;

    width: min(350px, 90vw);

    background: #fffdf9;
    border-right: 1px solid #ead7c8;

    box-shadow: 14px 0 36px rgba(0, 0, 0, 0.18);

    z-index: 9200;

    overflow-x: hidden;
    overflow-y: auto;

    transform: translateX(-105%);
    visibility: hidden;

    transition:
        transform 0.22s ease,
        visibility 0.22s ease;
}


.app-side-panel.is-open {
    transform: translateX(0);
    visibility: visible;
}


/* ---------------------------------------------------------
   PANEL HEADER
--------------------------------------------------------- */

.app-side-panel-header {
    position: sticky;
    top: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    min-height: 72px;
    padding: 14px 16px;

    background: #fff7f0;
    border-bottom: 1px solid #ead7c8;

    z-index: 2;
}


.app-side-panel-title {
    color: #5d3521;
    font-size: 1.05rem;
    font-weight: 800;
}


.app-side-panel-business {
    margin-top: 3px;

    color: #856957;
    font-size: 0.82rem;
    font-weight: 600;
}


.app-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border: 1px solid #e5c7af;
    border-radius: 50%;

    background: #ffffff;
    color: #6f3f28;

    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;
}


.app-menu-close:hover {
    background: #ffe9d6;
}


.app-menu-close:focus-visible {
    outline: 3px solid rgba(185, 109, 61, 0.3);
    outline-offset: 2px;
}


/* ---------------------------------------------------------
   PANEL NAVIGATION
--------------------------------------------------------- */

.app-side-panel-navigation {
    padding: 12px;
}


.app-side-panel-link {
    display: flex;
    align-items: center;
    gap: 11px;

    width: 100%;
    box-sizing: border-box;

    margin: 2px 0;
    padding: 11px 12px;

    border-radius: 10px;

    color: #4a3428;
    text-decoration: none;

    font-size: 0.96rem;
    font-weight: 700;
}


.app-side-panel-link:hover {
    background: #fff1e6;
}


.app-side-panel-link-special {
    background: #fff1e6;
    color: #713d20;
}


.app-side-panel-divider {
    height: 1px;

    margin: 10px 4px;

    background: #ead7c8;
}




/* ---------------------------------------------------------
   TEMPORARY SUPPORT FOR EXISTING MENU PARTIALS

   This changes the old horizontal dropdown components into
   full-width rows inside the side panel.
--------------------------------------------------------- */

.app-side-panel .user-menu {
    position: relative;

    display: block;

    width: 100%;

    margin: 2px 0;
}


.app-side-panel .user-menu-button {
    display: block;

    width: 100%;
    box-sizing: border-box;

    padding: 11px 12px;

    border: none;
    border-radius: 10px;

    background: transparent;
    color: #4a3428;

    text-align: left;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;

    white-space: normal;
}


.app-side-panel .user-menu-button:hover {
    background: #fff1e6;
}


.app-side-panel .user-menu-button:focus-visible {
    outline: 3px solid rgba(185, 109, 61, 0.3);
    outline-offset: 1px;
}


.app-side-panel .user-menu-button br {
    display: none;
}


/*
The old dropdowns now expand downward inside the side panel.
This prevents them from opening beyond the browser edge.
*/

.app-side-panel .user-menu-dropdown {
    position: static;

    right: auto;
    top: auto;

    width: auto;
    min-width: 0;

    margin: 3px 0 9px 16px;
    padding: 7px;

    border: 1px solid #f0dfd1;
    border-radius: 10px;

    background: #ffffff;

    box-shadow: none;

    text-align: left;
}


.app-side-panel .user-menu-dropdown > br {
    display: none;
}


.app-side-panel .user-menu-dropdown a {
    display: block;

    padding: 8px 10px;

    border-radius: 8px;

    color: #4a3428;
    text-decoration: none;

    font-size: 0.92rem;
    font-weight: 600;
}


.app-side-panel .user-menu-dropdown a:hover {
    background: #fff1e6;
}



.app-side-panel .user-menu.is-open
> .user-menu-button {
    background: #fff1e6;
    color: #6f3f28;
}




/* ---------------------------------------------------------
   RESPONSIVE PANEL WIDTH
--------------------------------------------------------- */

@media (max-width: 767px) {

    .app-header {
        padding: 8px 12px;
    }

    .app-side-panel {
        width: 100%;
        max-width: none;
    }

}

/* =========================================================
   STANDARD SIDE-PANEL CATEGORY ROW
========================================================= */

.app-side-panel .app-menu-category-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
}


.app-menu-category-main {
    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 0;
}


.app-menu-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    flex: 0 0 24px;

    font-size: 1rem;
}


.app-menu-category-label {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.app-menu-category-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 20px;

    color: #8b6955;
    font-size: 1.45rem;
    line-height: 1;

    transform: rotate(0deg);

    transition: transform 0.18s ease;
}


.app-menu-category.is-open
.app-menu-category-chevron {
    transform: rotate(90deg);
}

/* =========================================================
   SIDE-PANEL COLOR SEPARATION
========================================================= */

/* Main menu background */
.app-side-panel {
    background: #f8eee6;
}


/* Sticky panel heading */
.app-side-panel-header {
    background: #f3e2d5;
}


/* Main navigation area */
.app-side-panel-navigation {
    background: #f8eee6;
}


/* Expanded submenu remains lighter */
.app-side-panel .user-menu-dropdown,
.app-side-panel .app-menu-submenu {
    background: #ffffff;

    border: 1px solid #e4c8b4;

    box-shadow:
        0 3px 10px rgba(91, 57, 37, 0.08);
}


/* Stronger active category highlight */
.app-side-panel .user-menu.is-open
> .user-menu-button {
    background: #ead2c0;
    color: #5f321d;
}


/* Main-menu hover state */
.app-side-panel .user-menu-button:hover,
.app-side-panel-link:hover {
    background: #f0ddcf;
}


/* Slightly stronger section divider */
.app-side-panel-divider {
    background: #ddc1ad;
}


/* =========================================================
   DESKTOP SECONDARY MENU PANEL
========================================================= */

:root {
    --app-primary-menu-width: 350px;
    --app-secondary-menu-width: 390px;
}


/*
The JavaScript adds this heading to every submenu.
Keep it hidden while the submenu uses the inline layout.
*/

.app-desktop-submenu-header {
    display: none;
}


/* ---------------------------------------------------------
   DESKTOP FLYOUT LAYOUT
--------------------------------------------------------- */

@media (min-width: 1100px) {

    /*
    On desktop, use left-position animation rather than
    transform. This allows fixed secondary panels to extend
    beyond the primary panel without being clipped.
    */

    .app-side-panel {
        left: calc(-1 * var(--app-primary-menu-width));

        width: var(--app-primary-menu-width);

        transform: none;

        overflow-x: hidden;
        overflow-y: auto;

        transition:
            left 0.22s ease,
            visibility 0.22s ease;
    }


    .app-side-panel.is-open {
        left: 0;

        transform: none;
    }


    /*
    The category wrapper no longer acts as the positioning
    container. Each submenu becomes a viewport-level panel.
    */

    .app-side-panel .user-menu {
        position: static;
    }


    /*
    Secondary panel positioned directly beside the primary
    navigation panel.
    */

    .app-side-panel .app-menu-submenu {
        position: fixed;

        top: 0;
        bottom: 0;
        left: var(--app-primary-menu-width);

        width: min(
            var(--app-secondary-menu-width),
            calc(100vw - var(--app-primary-menu-width))
        );

        min-width: 0;
        box-sizing: border-box;

        margin: 0;
        padding: 0 14px 24px;

        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;

        background: #ffffff;

        border: none;
        border-left: 1px solid #dfc5b3;
        border-radius: 0;

        box-shadow:
            12px 0 30px rgba(0, 0, 0, 0.14);

        z-index: 9300;
    }


    /*
    The main category remains highlighted while its
    secondary panel is open.
    */

    .app-side-panel .app-menu-category.is-open
    > .app-menu-category-button {
        background: #ead2c0;
        color: #5f321d;
    }


    /*
    On desktop, the arrow continues pointing right because
    the submenu opens to the right rather than downward.
    */

    .app-menu-category.is-open
    .app-menu-category-chevron {
        transform: rotate(0deg);
    }


    /* -----------------------------------------------------
       SECONDARY PANEL HEADER
    ----------------------------------------------------- */

    .app-desktop-submenu-header {
        position: sticky;
        top: 0;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;

        min-height: 72px;
        box-sizing: border-box;

        margin: 0 -14px 12px;
        padding: 14px 16px;

        background: #fff7f0;
        border-bottom: 1px solid #ead7c8;

        z-index: 2;
    }


    .app-desktop-submenu-title {
        color: #5d3521;

        font-size: 1.05rem;
        font-weight: 800;
    }


    .app-desktop-submenu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        width: 38px;
        height: 38px;
        flex: 0 0 38px;

        border: 1px solid #e5c7af;
        border-radius: 50%;

        background: #ffffff;
        color: #6f3f28;

        font-family: inherit;
        font-size: 1rem;
        font-weight: 700;

        cursor: pointer;
    }


    .app-desktop-submenu-close:hover {
        background: #ffe9d6;
    }


    .app-desktop-submenu-close:focus-visible {
        outline: 3px solid rgba(185, 109, 61, 0.3);
        outline-offset: 2px;
    }


    /*
    Remove the nested-card appearance because the entire
    white secondary panel is now the submenu container.
    */

    .app-side-panel .app-menu-submenu-section {
        padding: 0 3px;
    }


    .app-side-panel .app-menu-submenu
    > .user-menu-divider {
        margin: 10px 4px;
    }

}



/* =========================================================
   STANDARD SUBMENU CONTENT
========================================================= */

.app-side-panel .app-menu-submenu {
    margin-left: 12px;
    margin-right: 4px;
}


.app-menu-submenu-section {
    display: block;
}


.app-menu-submenu-heading {
    padding: 7px 10px 5px;

    color: #856957;

    font-size: 0.78rem;
    font-weight: 800;

    letter-spacing: 0.03em;
    text-transform: uppercase;
}


.app-side-panel .app-menu-submenu a {
    display: flex;
    align-items: center;
    gap: 8px;
}


.help-support-menu .app-menu-category-label {
    font-size: 1.08rem;
    font-weight: 700;
}

.help-support-menu .app-menu-submenu-heading {
    font-size: 1rem;
    font-weight: 700;
}

.help-support-menu .app-menu-submenu a,
.help-support-menu .app-menu-submenu button {
    font-size: 1rem;
}


/* ---------------------------------------------------------
   FEEDBACK MODAL
--------------------------------------------------------- */

#feedbackModal {
    width: min(760px, calc(100vw - 32px));
    max-width: 760px;
    box-sizing: border-box;
}

#feedbackModal .about-peach-modal-content {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

#feedbackModal #feedbackModalStatus,
#feedbackModal #feedbackModalForm {
    width: calc(100% - 64px);
    max-width: 550px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

#feedbackModal #feedbackModalForm {
    padding-top: 20px;
    padding-bottom: 30px;
}

#feedbackModal .form-group {
    width: 100%;
    box-sizing: border-box;
}

#feedbackModal .form-group input,
#feedbackModal .form-group select,
#feedbackModal .form-group textarea {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

#feedbackModal .form-buttons {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 650px) {
    #feedbackModal {
        width: calc(100vw - 20px);
    }

    #feedbackModal #feedbackModalStatus,
    #feedbackModal #feedbackModalForm {
        width: calc(100% - 40px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    #feedbackModal .about-peach-modal-header {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ---------------------------------------------------------
   SMS AUTOMATION QUEUE SUMMARY LINKS
--------------------------------------------------------- */

.summary-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.summary-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
}

.summary-card-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.summary-card-active {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}


/* =========================================================
   LOGIN SPLASH SCREEN
========================================================= */

.login-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        radial-gradient(
            circle at center,
            #fffaf6 0%,
            #fde9dc 58%,
            #f8d3bd 100%
        );

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


.login-splash-content {
    width: min(420px, 90vw);
    text-align: center;

    animation: loginSplashEnter 0.65s ease both;
}


.login-splash-logo {
    display: block;

    width: min(210px, 54vw);
    height: auto;

    margin: 0 auto 18px;

    border-radius: 28px;

    box-shadow:
        0 18px 45px rgba(78, 44, 26, 0.16);
}


.login-splash-content h1 {
    margin: 0 0 8px;

    font-size: clamp(1.8rem, 5vw, 2.6rem);
    line-height: 1.15;
}


.login-splash-content p {
    margin: 0;

    font-size: 1.05rem;
    color: #76594a;
}


.login-splash-loader {
    width: 46px;
    height: 46px;

    margin: 24px auto 0;

    border: 4px solid rgba(118, 89, 74, 0.18);
    border-top-color: #c97955;
    border-radius: 50%;

    animation: loginSplashSpin 0.9s linear infinite;
}


.login-splash-skip {
    position: absolute;
    top: 22px;
    right: 24px;

    padding: 8px 16px;

    border: 1px solid rgba(80, 50, 35, 0.22);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.75);
    color: #5d4438;

    font: inherit;
    cursor: pointer;

    backdrop-filter: blur(6px);
}


.login-splash-skip:hover {
    background: #ffffff;
}


.login-splash-skip:focus-visible {
    outline: 3px solid rgba(201, 121, 85, 0.45);
    outline-offset: 3px;
}


.login-splash-exit {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


@keyframes loginSplashEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

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


@keyframes loginSplashSpin {
    to {
        transform: rotate(360deg);
    }
}


@media (max-width: 600px) {
    .login-splash {
        padding: 18px;
    }

    .login-splash-logo {
        width: min(185px, 58vw);
        border-radius: 22px;
    }

    .login-splash-skip {
        top: 16px;
        right: 16px;
    }
}


@media (prefers-reduced-motion: reduce) {
    .login-splash,
    .login-splash-content,
    .login-splash-loader {
        animation: none;
        transition: none;
    }
}


/* =========================================================
   NESTED APP MENU
========================================================= */

:root {
    --app-tertiary-menu-width: 340px;
}


.app-nested-menu {
    display: block;
}


.app-nested-menu-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    box-sizing: border-box;

    padding: 8px 10px;

    border: none;
    border-radius: 8px;

    background: transparent;
    color: #4a3428;

    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;

    cursor: pointer;
}


.app-nested-menu-button:hover {
    background: #fff1e6;
}


.app-nested-menu-button:focus-visible {
    outline: 3px solid rgba(185, 109, 61, 0.3);
    outline-offset: 1px;
}


.app-nested-menu-button-main {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
}


.app-nested-menu-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 20px;

    color: #8b6955;
    font-size: 1.35rem;
    line-height: 1;

    transition: transform 0.18s ease;
}


.app-nested-menu.is-open
> .app-nested-menu-button {
    background: #fff1e6;
    color: #6f3f28;
}


.app-nested-menu.is-open
> .app-nested-menu-button
.app-nested-menu-chevron {
    transform: rotate(90deg);
}


/*
On phone and tablet, the nested menu expands downward
inside the existing category panel.
*/

.app-nested-menu-pane {
    position: static;

    min-width: 0;

    margin: 4px 0 7px 14px;
    padding: 6px;

    background: #fffaf6;

    border: 1px solid #ead7c8;
    border-radius: 9px;

    box-shadow: none;
}


.app-nested-menu-header {
    display: none;
}


/* ---------------------------------------------------------
   DESKTOP THIRD MENU PANE
--------------------------------------------------------- */

@media (min-width: 1100px) {

    .app-side-panel .app-nested-menu-pane {
        position: fixed;

        top: 0;
        bottom: 0;

        left: calc(
            var(--app-primary-menu-width)
            + var(--app-secondary-menu-width)
        );

        width: min(
            var(--app-tertiary-menu-width),
            calc(
                100vw
                - var(--app-primary-menu-width)
                - var(--app-secondary-menu-width)
            )
        );

        min-width: 0;
        box-sizing: border-box;

        margin: 0;
        padding: 0 14px 24px;

        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;

        background: #ffffff;

        border: none;
        border-left: 1px solid #dfc5b3;
        border-radius: 0;

        box-shadow:
            12px 0 30px rgba(0, 0, 0, 0.14);

        z-index: 9400;
    }


    .app-nested-menu.is-open
    > .app-nested-menu-button
    .app-nested-menu-chevron {
        transform: rotate(0deg);
    }


    .app-nested-menu-header {
        position: sticky;
        top: 0;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;

        min-height: 72px;
        box-sizing: border-box;

        margin: 0 -14px 12px;
        padding: 14px 16px;

        background: #fff7f0;
        border-bottom: 1px solid #ead7c8;

        z-index: 2;
    }


    .app-nested-menu-title {
        color: #5d3521;

        font-size: 1.05rem;
        font-weight: 800;
    }


    .app-nested-menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        width: 38px;
        height: 38px;
        flex: 0 0 38px;

        border: 1px solid #e5c7af;
        border-radius: 50%;

        background: #ffffff;
        color: #6f3f28;

        font-family: inherit;
        font-size: 1rem;
        font-weight: 700;

        cursor: pointer;
    }


    .app-nested-menu-close:hover {
        background: #ffe9d6;
    }


    .app-nested-menu-close:focus-visible {
        outline: 3px solid rgba(185, 109, 61, 0.3);
        outline-offset: 2px;
    }

}
