@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500&family=DM+Sans:wght@300;400;500&display=swap');

/* ============================================
   MASSAGE MANAGER — BACKEND STYLESHEET
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f7f4ef;
    font-family: 'DM Sans', sans-serif;
    color: #2c3530;
    line-height: 1.5;
    min-height: 100vh;
}

/* --- SCREEN WRAPPER --- */
.mm-screen {
    background: #f7f4ef;
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
}

/* --- TOP NAV --- */
.mm-nav {
    background: #2c3e35;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 0;
}

.mm-nav-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-right: 48px;
    text-decoration: none;
    flex-shrink: 0;
}

.mm-nav-emblem {
    width: 34px;
    height: 34px;
    background: #b8965a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mm-nav-emblem svg {
    width: 18px;
    height: 18px;
}

.mm-nav-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 1px;
}

.mm-nav-wordmark span:first-child {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.18em;
    color: #c9b99a;
    text-transform: uppercase;
}

.mm-nav-wordmark span:last-child {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.22em;
    color: #e8e2d8;
    text-transform: uppercase;
}

.mm-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.mm-nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 13.5px;
    font-weight: 400;
    color: #9aaa9f;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.mm-nav-link i {
    font-size: 15px;
}

.mm-nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ddd7cc;
}

.mm-nav-link.active {
    background: rgba(184, 150, 90, 0.15);
    color: #d4b07a;
    font-weight: 500;
}

.mm-nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.mm-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(184, 150, 90, 0.2);
    border: 1px solid rgba(184, 150, 90, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: #d4b07a;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.mm-nav-username {
    font-size: 13px;
    color: #9aaa9f;
    font-weight: 400;
    padding-right: 4px;
}

.mm-nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
}

.mm-nav-logout {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #7a8a80;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
}

.mm-nav-logout:hover {
    color: #c4766a;
    background: rgba(196, 118, 106, 0.1);
}

.mm-nav-logout i {
    font-size: 15px;
}

.mm-impersonation-banner {
    background: #3d5248;
    color: #d4c8b8;
    padding: 10px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    border-bottom: 1px solid rgba(184, 150, 90, 0.25);
}

.mm-impersonation-banner strong {
    color: #f0ebe3;
    font-weight: 500;
}

.mm-impersonation-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d4b07a;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.mm-impersonation-back:hover {
    color: #f0ebe3;
}

.mm-practice-link {
    color: #2c3e35;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.mm-practice-link:hover {
    color: #4a7a58;
    border-bottom-color: #b8965a;
}

/* --- SUBNAV --- */
.mm-subnav {
    background: #f7f4ef;
    border-bottom: 1px solid #e8e0d4;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 0;
}

.mm-subnav-link {
    font-size: 12.5px;
    color: #8a7e6e;
    padding: 0 14px;
    height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.15s;
    text-decoration: none;
}

.mm-subnav-link:hover {
    color: #4a3f30;
}

.mm-subnav-link.active {
    color: #2c3e35;
    font-weight: 500;
    border-bottom-color: #b8965a;
}

/* --- PAGE --- */
.mm-page {
    padding: 32px 32px 48px;
}

.mm-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.mm-page-title {
    font-size: 22px;
    font-weight: 500;
    color: #1e2a24;
    letter-spacing: -0.01em;
}

.mm-page-sub {
    font-size: 13.5px;
    color: #8a7e6e;
    margin-top: 3px;
    font-weight: 300;
}

/* --- BUTTONS --- */
.mm-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #2c3e35;
    color: #e8e2d8;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.15s;
    white-space: nowrap;
    text-decoration: none;
}

.mm-btn-primary:hover {
    background: #1e2a24;
}

.mm-btn-primary i {
    font-size: 15px;
}

.mm-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: white;
    color: #2c3e35;
    border: 1px solid #e8e0d4;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.mm-btn-secondary:hover {
    background: #fdfcfa;
    border-color: #d4c8b8;
}

/* --- CARDS & TABLES --- */
.mm-card {
    background: white;
    border: 1px solid #e8e0d4;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px 24px;
}

.mm-card > .settings-intro:first-child,
.mm-card > .mm-agenda-intro:first-child {
    margin-top: 0;
}

.mm-card > .mm-form-section-title:first-child {
    margin-top: 0;
}

.mm-card.mm-cal-card,
.mm-agenda-toolbar.mm-card {
    padding: 0;
}

.mm-agenda-toolbar.mm-card {
    padding: 16px 20px;
}

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

.mm-table th {
    padding: 13px 20px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a09080;
    text-align: left;
    border-bottom: 1px solid #f0ebe3;
    background: #fdfcfa;
}

.mm-table td {
    padding: 15px 20px;
    font-size: 13.5px;
    color: #2c3530;
    border-bottom: 1px solid #f7f4ef;
}

.mm-table tr:last-child td {
    border-bottom: none;
}

.mm-table tr:hover td {
    background: #fdfcfa;
}

.mm-table .td-muted {
    color: #7a8a80;
}

.mm-table .td-strong {
    font-weight: 500;
}

/* --- BADGES --- */
.mm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.badge-master { background: #2c3e35; color: #b8d4c0; }
.badge-manager { background: #f0ebe3; color: #7a6048; }
.badge-receptionist { background: #eef4f8; color: #4a7090; }
.badge-practitioner { background: #f4eef4; color: #704870; }
.badge-partner { background: #f0ebe3; color: #7a6048; }

/* --- TABLE ACTIONS --- */
.mm-action-btn {
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 5px;
    transition: background 0.12s;
}

.mm-action-edit { color: #4a7a58; }
.mm-action-edit:hover { background: #eef6f0; }
.mm-action-del { color: #a05050; }
.mm-action-del:hover { background: #fdf0f0; }

.mm-action-publish {
	color: #4a7a58;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.mm-action-publish:hover { background: #eef6f0; }

.mm-action-unpublish {
	color: #8a7e6e;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.mm-action-unpublish:hover { background: #f7f4ef; }

.mm-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #2c3530;
	cursor: pointer;
	margin-top: 28px;
}

.mm-checkbox-label input {
	accent-color: #b8965a;
	width: auto;
}

.mm-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 8px 16px;
	margin-top: 8px;
}

.mm-checkbox-grid-item {
	margin-top: 0;
}

/* --- DASHBOARD CARDS --- */
.mm-dash-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

a.mm-dash-card {
    display: block;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

a.mm-dash-card:hover {
    border-color: #d4c8b8;
    box-shadow: 0 4px 14px rgba(44, 62, 53, 0.06);
    transform: translateY(-1px);
}

.mm-dash-card {
    background: white;
    border: 1px solid #e8e0d4;
    border-radius: 12px;
    padding: 22px 24px;
}

.mm-dash-card strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1e2a24;
    margin-bottom: 6px;
}

.mm-dash-card span {
    font-size: 13px;
    color: #8a7e6e;
    font-weight: 300;
}

/* --- LOGIN --- */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f4ef;
}

.login-box {
    background: white;
    border: 1px solid #e8e0d4;
    border-radius: 12px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.login-emblem {
    width: 52px;
    height: 52px;
    background: #b8965a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-emblem svg {
    width: 26px;
    height: 26px;
}

.login-box h1 {
    font-size: 18px;
    font-weight: 500;
    color: #1e2a24;
    text-align: center;
    margin-bottom: 4px;
}

.login-box input[type="email"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e8e0d4;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #2c3530;
    background: #fdfcfa;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.login-box input:focus {
    border-color: #b8965a;
    background: white;
}

.login-box input::placeholder {
    color: #a09080;
}

.login-box button[type="submit"] {
    width: 100%;
    background: #2c3e35;
    color: #e8e2d8;
    padding: 11px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.login-box button[type="submit"]:hover {
    background: #1e2a24;
}

.login-error {
    text-align: center;
    font-size: 13px;
    color: #a05050;
    background: #fdf0f0;
    border-radius: 6px;
    padding: 8px 12px;
}

/* --- MODAL --- */
.mm-modal-overlay {
    background: rgba(30, 42, 36, 0.45);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.mm-modal-overlay.active,
#mm-modal-overlay.active {
    display: flex;
}

.mm-modal {
    background: white;
    border-radius: 12px;
    border: 1px solid #e8e0d4;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.mm-modal-wide {
    max-width: 620px;
}

.form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

.mm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0ebe3;
}

.mm-modal-header h2 {
    font-size: 16px;
    font-weight: 500;
    color: #1e2a24;
}

.mm-modal-close {
    background: none;
    border: none;
    color: #a09080;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
}

.mm-modal-close:hover {
    color: #2c3530;
    background: #f7f4ef;
}

.mm-modal-body {
    padding: 24px;
}

.mm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #f0ebe3;
}

.mm-modal-footer-split {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.mm-modal-footer-left,
.mm-modal-footer-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mm-modal-compact {
    max-width: 420px;
}

.mm-modal-footer-stack {
    flex-direction: column;
    align-items: stretch;
}

.mm-modal-footer-stack .mm-btn-primary,
.mm-modal-footer-stack .mm-btn-secondary {
    width: 100%;
    justify-content: center;
}

.mm-cal-day-col-roster-plan {
    cursor: crosshair;
}

.mm-appt-error {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e8b4b4;
    background: #fff5f5;
    color: #8a2f2f;
    font-size: 14px;
    line-height: 1.45;
}

/* --- FORMS --- */
.mm-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.mm-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #4a3f30;
}

.mm-form-group input,
.mm-form-group select,
.mm-form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e8e0d4;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #2c3530;
    background: #fdfcfa;
    outline: none;
    transition: border-color 0.2s;
}

.mm-form-group input:focus,
.mm-form-group select:focus,
.mm-form-group textarea:focus {
    border-color: #b8965a;
    background: white;
}

.mm-form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e8e0d4;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #2c3530;
    background: #fdfcfa;
    resize: vertical;
    min-height: 90px;
}

.mm-form-section-title {
    font-size: 13px;
    font-weight: 500;
    color: #4a3f30;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 8px 0 12px;
}

.mm-form-section-title:not(:first-child) {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0ebe3;
}

/* --- SETTINGS LAYOUT --- */
.settings-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}

.settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-sidebar a {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    color: #8a7e6e;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.settings-sidebar a:hover {
    background: #f0ebe3;
    color: #4a3f30;
}

.settings-sidebar a.active {
    background: rgba(184, 150, 90, 0.15);
    color: #2c3e35;
    font-weight: 500;
}

.settings-content {
    background: white;
    border: 1px solid #e8e0d4;
    border-radius: 12px;
    padding: 28px;
}

.mm-settings-section {
    margin-bottom: 32px;
}

.mm-settings-section:last-of-type {
    margin-bottom: 0;
}

.mm-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.mm-logo-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px;
    background: #fdfcfa;
    border: 1px solid #f0ebe3;
    border-radius: 10px;
}

.mm-logo-upload img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    border: 1px solid #e8e0d4;
    padding: 8px;
}

#locationsList {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mm-locations-section[data-mode="single"] .mm-locations-header,
.mm-locations-section[data-mode="single"] .mm-location-meta,
.mm-locations-section[data-mode="single"] .mm-location-contact-fields,
.mm-locations-section[data-mode="single"] .mm-add-location-prominent {
    display: none;
}

.mm-locations-section[data-mode="single"] .mm-address-heading {
    display: block;
    margin: 28px 0 16px;
    padding-top: 28px;
    border-top: 1px solid #f0ebe3;
}

.mm-locations-section[data-mode="multiple"] .mm-address-heading,
.mm-locations-section[data-mode="multiple"] .mm-add-location-subtle {
    display: none;
}

.mm-locations-section[data-mode="multiple"] .mm-locations-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 28px 0 18px;
    padding-top: 28px;
    border-top: 1px solid #f0ebe3;
    flex-wrap: wrap;
}

.mm-locations-section[data-mode="multiple"] .mm-location-card {
    border: 1px solid #e8e0d4;
    border-radius: 12px;
    padding: 20px;
    background: #fdfcfa;
}

.mm-locations-section[data-mode="single"] .mm-location-card {
    border: none;
    padding: 0;
    background: transparent;
}

.mm-location-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.mm-location-card-title {
    font-size: 15px;
    font-weight: 500;
    color: #1e2a24;
}

.mm-location-card-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mm-location-default {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #4a3f30;
    cursor: pointer;
}

.mm-location-default input {
    accent-color: #b8965a;
}

.mm-add-location-subtle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 13px;
    color: #4a7a58;
    cursor: pointer;
}

.mm-add-location-subtle:hover {
    color: #2c3e35;
    text-decoration: underline;
}

.settings-content .street-grid {
    grid-template-columns: 2fr 1fr;
}

.settings-content .mm-form-group {
    margin-bottom: 14px;
}

.settings-content .mm-form-group input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e8e0d4;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: white;
}

.settings-content .mm-form-group input:focus {
    outline: none;
    border-color: #b8965a;
}

.settings-content h2 {
    font-size: 18px;
    font-weight: 500;
    color: #1e2a24;
    margin-bottom: 6px;
}

.settings-warning {
	color: #b45309;
}

.settings-intro {
    font-size: 13.5px;
    color: #8a7e6e;
    margin-bottom: 24px;
    font-weight: 300;
}

.ws-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 1rem;
}

.ws-preset-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #e8e0d4;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
}

.ws-preset-card.is-active {
    border-color: #8b6f47;
    background: #faf7f2;
}

.ws-preset-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ws-preset-swatches {
    display: flex;
    gap: 4px;
}

.ws-preset-swatches i {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: block;
}

.ws-preset-label {
    font-size: 12px;
    font-weight: 600;
}

.mm-textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.65rem 0.75rem;
    border: 1px solid #ddd4c8;
    border-radius: 8px;
    font: inherit;
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-section {
    margin-bottom: 24px;
}

.form-section label,
.form-grid label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4a3f30;
    margin-bottom: 6px;
}

.form-section input,
.form-grid input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e8e0d4;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fdfcfa;
    margin-bottom: 14px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.form-actions .button,
.settings-content .btn {
    background: #2c3e35;
    color: #e8e2d8;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
}

.form-actions .button:hover {
    background: #1e2a24;
}

/* Legacy aliases */
.backend-page { padding: 32px; }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 22px; font-weight: 500; color: #1e2a24; }
.card { background: white; border: 1px solid #e8e0d4; border-radius: 12px; overflow: hidden; }
.btn { display: inline-flex; align-items: center; gap: 7px; background: #2c3e35; color: #e8e2d8; border: none; border-radius: 8px; padding: 10px 18px; font-size: 13.5px; font-family: 'DM Sans', sans-serif; font-weight: 500; cursor: pointer; text-decoration: none; }
.btn:hover { background: #1e2a24; }
.btn-secondary { background: white; color: #2c3e35; border: 1px solid #e8e0d4; }
.btn-edit { background: none; border: none; color: #4a7a58; cursor: pointer; font-family: inherit; font-size: 13px; padding: 4px 8px; border-radius: 5px; }
.btn-edit:hover { background: #eef6f0; }

@media (max-width: 768px) {
    .mm-nav {
        padding: 0 16px;
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .mm-nav-brand {
        margin-right: 16px;
    }

    .mm-nav-links {
        order: 3;
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
        overflow-x: auto;
    }

    .mm-nav-username {
        display: none;
    }

    .mm-page,
    .mm-subnav {
        padding-left: 16px;
        padding-right: 16px;
    }

    .settings-layout {
        grid-template-columns: 1fr;
    }

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

/* --- AGENDA --- */
.mm-agenda-sync-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f3efe6;
    border: 1px solid #e0d6c8;
    color: #4a3d2a;
    font-size: 14px;
}

.mm-agenda-sync-notice-btn {
    border: 0;
    background: none;
    padding: 0;
    color: #6b5344;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.mm-agenda-sync-notice-btn:hover {
    color: #4a3d2a;
}

.mm-agenda-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.mm-agenda-week-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mm-agenda-week-label {
    min-width: 140px;
    text-align: center;
    font-size: 15px;
    color: #2c3530;
}

.mm-agenda-nav-btn {
    padding: 8px 12px;
}

.mm-agenda-location-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mm-agenda-location-filter label {
    font-size: 13px;
    color: #6b7c72;
}

.mm-agenda-location-filter select {
    min-width: 180px;
}

.mm-agenda-toolbar-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mm-agenda-treatment-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mm-agenda-treatment-filter label {
    font-size: 13px;
    color: #6b7c72;
}

.mm-agenda-treatment-filter select {
    min-width: 220px;
    max-width: 320px;
}

.mm-agenda-week-picker-wrap {
    display: inline-flex;
}

.mm-agenda-week-picker {
    font-size: 13px;
    padding: 7px 10px;
    border: 1px solid #d8ddd9;
    border-radius: 8px;
    color: #2c3530;
    background: #fff;
}

.mm-agenda-single-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7c72;
}

.mm-agenda-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.mm-agenda-tab {
    padding: 10px 18px;
    border-radius: 8px 8px 0 0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #6b7c72;
    background: #ebe6de;
}

.mm-agenda-tab.active {
    background: #fff;
    color: #2c3530;
    box-shadow: 0 -1px 0 #f0ebe3 inset;
}

.mm-agenda-intro {
    margin-bottom: 16px;
}

.mm-agenda-header-actions {
    display: flex;
    gap: 8px;
}

.mm-row-muted td {
    opacity: 0.65;
}

.mm-cal-card {
    padding: 0;
    overflow: visible;
}

.mm-cal-wrap {
    overflow-x: auto;
    overflow-y: visible;
}

.mm-cal-week {
    display: grid;
    grid-template-columns: 52px repeat(7, minmax(120px, 1fr));
    grid-template-rows: auto auto;
    align-items: start;
    min-width: 900px;
}

.mm-cal-corner,
.mm-cal-day-head {
    grid-row: 1;
}

.mm-cal-time-col {
    grid-row: 2;
    grid-column: 1;
}

.mm-cal-day-col {
    grid-row: 2;
}

.mm-cal-day-head-wide .mm-cal-day-name {
    display: block;
}

.mm-cal-day-meta {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 400;
    color: #9aa59f;
}

.mm-cal-corner {
    background: #faf8f4;
    border-bottom: 1px solid #ebe6de;
}

.mm-cal-day-head {
    padding: 12px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    background: #faf8f4;
    border-bottom: 1px solid #ebe6de;
    border-left: 1px solid #f0ebe3;
}

.mm-cal-day-head.mm-cal-today {
    background: #f3efe6;
    color: #6b5344;
}

.mm-cal-time-col {
    background: #faf8f4;
    height: calc(var(--mm-cal-slots, 28) * var(--mm-cal-slot-height, 38px));
    min-height: calc(var(--mm-cal-slots, 28) * var(--mm-cal-slot-height, 38px));
    max-height: calc(var(--mm-cal-slots, 28) * var(--mm-cal-slot-height, 38px));
}

.mm-cal-time-label {
    height: var(--mm-cal-slot-height, 38px);
    padding: 4px 8px 0 0;
    text-align: right;
    font-size: 11px;
    color: #6b7c72;
    border-top: 1px solid #f0ebe3;
    box-sizing: border-box;
    line-height: 1.2;
    flex-shrink: 0;
}

.mm-cal-time-label:not(.mm-cal-time-label-empty) {
    color: #4a5c52;
    font-weight: 500;
}

.mm-cal-time-label-empty {
    border-top-color: #f5f1ea;
}

.mm-cal-day-col {
    position: relative;
    height: calc(var(--mm-cal-slots, 28) * var(--mm-cal-slot-height, 38px));
    min-height: calc(var(--mm-cal-slots, 28) * var(--mm-cal-slot-height, 38px));
    max-height: calc(var(--mm-cal-slots, 28) * var(--mm-cal-slot-height, 38px));
    border-left: 1px solid #f0ebe3;
    background: #fff;
    overflow: visible;
}

.mm-cal-day-col.mm-cal-today {
    background: #fffdf9;
}

.mm-cal-day-head-past .mm-cal-day-name,
.mm-cal-day-head-past .mm-cal-day-meta {
    color: #a8a39a;
}

.mm-cal-day-col-past {
    background: #f7f6f4;
}

.mm-cal-day-col-past.mm-cal-today {
    background: #f7f6f4;
}

.mm-cal-day-col-past .mm-cal-slot-line {
    border-top-color: #ece9e3;
}

.mm-cal-day-col-past .mm-cal-free-region {
    background: rgba(220, 220, 218, 0.45);
    border-color: rgba(160, 160, 158, 0.25);
}

.mm-cal-day-col-past .mm-cal-block-shift,
.mm-cal-day-col-past .mm-cal-block-shift-schema,
.mm-cal-day-col-past .mm-cal-block-shift-virtual {
    opacity: 0.82;
}

.mm-cal-past-time-cover {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 6;
    background: rgba(244, 243, 240, 0.72);
    border-bottom: 1px dashed rgba(168, 163, 154, 0.35);
    box-sizing: border-box;
    pointer-events: auto;
    cursor: default;
}

.mm-cal-day-col-bookable {
    cursor: crosshair;
}

.mm-cal-day-col-bookable.mm-cal-day-col-past {
    cursor: default;
}

.mm-cal-day-col-bookable:hover {
    background: #faf8f5;
}

.mm-cal-day-col-bookable.mm-cal-today:hover {
    background: #f9f5ee;
}

.mm-cal-slot-line {
    height: var(--mm-cal-slot-height, 38px);
    border-top: 1px solid #f5f1ea;
    box-sizing: border-box;
    pointer-events: none;
}

.mm-cal-slot-line-hour {
    border-top-color: #ebe6de;
}

.mm-cal-free-region {
    position: absolute;
    left: 3px;
    right: 7px;
    z-index: 2;
    border-radius: 6px;
    background: rgba(216, 236, 222, 0.42);
    border: 1px solid rgba(90, 143, 106, 0.2);
    box-sizing: border-box;
    pointer-events: none;
}

.mm-cal-avail-columned {
    right: auto;
    left: calc(2px + (100% - 10px) * var(--mm-cal-col) / var(--mm-cal-col-count));
    width: calc((100% - 10px) / var(--mm-cal-col-count) - 2px);
}

.mm-cal-bookable-slot {
    position: absolute;
    left: 3px;
    right: 7px;
    z-index: 8;
    border-radius: 5px;
    background: #b8dcc6;
    border: 1px solid rgba(74, 124, 90, 0.5);
    box-sizing: border-box;
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px 3px;
    min-height: 18px;
    isolation: isolate;
}

@media (max-width: 900px) {
    .mm-cal-bookable-slot {
        min-height: 28px;
        left: 2px;
        right: 4px;
    }
}

.mm-cal-bookable-slot:hover {
    z-index: 11;
    background: #9eccae;
    border-color: rgba(48, 98, 64, 0.6);
}

.mm-cal-bookable-slot-label {
    position: relative;
    z-index: 1;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    color: #1a3d28;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mm-cal-slot-time-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, calc(-100% - 6px));
    padding: 6px 10px;
    background: #2c3530;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(44, 53, 48, 0.2);
    pointer-events: none;
    z-index: 30;
}

.mm-cal-bookable-slot:hover .mm-cal-slot-time-tooltip {
    display: block;
}

.mm-cal-bookable-slot:hover .mm-cal-bookable-slot-label {
    opacity: 0.35;
}

.mm-cal-bookable-slot-past {
    background: #e3e1dc;
    border-color: rgba(150, 148, 142, 0.45);
    cursor: default;
    pointer-events: none;
    opacity: 0.85;
}

.mm-cal-bookable-slot-past .mm-cal-bookable-slot-label {
    color: #7a7770;
    font-weight: 500;
}

.mm-cal-bookable-slot-past:hover {
    background: #e3e1dc;
    border-color: rgba(150, 148, 142, 0.45);
    z-index: 8;
}

.mm-cal-day-col-bookable:hover .mm-cal-free-region {
    background: rgba(206, 230, 214, 0.52);
    border-color: rgba(74, 124, 90, 0.28);
}

.mm-cal-block {
    position: absolute;
    border-radius: 6px;
    padding: 5px 7px;
    overflow: visible;
    font-size: 12px;
    line-height: 1.3;
    z-index: 2;
    box-sizing: border-box;
    cursor: default;
    min-height: calc(var(--mm-cal-slot-height, 38px) - 4px);
}

.mm-cal-block-content {
    overflow: hidden;
    height: 100%;
    min-height: calc(var(--mm-cal-slot-height, 38px) - 14px);
}

.mm-cal-block[onclick] {
    cursor: pointer;
}

.mm-cal-day-col-bookable .mm-cal-block-shift,
.mm-cal-day-col-bookable .mm-cal-block-shift-schema,
.mm-cal-day-col-bookable .mm-cal-block-shift-virtual {
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.mm-cal-week-adaptive .mm-cal-block-shift,
.mm-cal-week-adaptive .mm-cal-block-shift-schema,
.mm-cal-week-adaptive .mm-cal-block-shift-virtual {
    background: transparent;
    background-image: none;
    border: 1px dashed rgba(90, 143, 106, 0.28);
    border-left: 3px solid rgba(90, 143, 106, 0.45);
    box-shadow: none;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.mm-cal-week-adaptive .mm-cal-block-shift .mm-cal-block-content,
.mm-cal-week-adaptive .mm-cal-block-shift-schema .mm-cal-block-content,
.mm-cal-week-adaptive .mm-cal-block-shift-virtual .mm-cal-block-content {
    display: none;
}

.mm-cal-day-col-bookable .mm-cal-block-shift:hover,
.mm-cal-day-col-bookable .mm-cal-block-shift-schema:hover,
.mm-cal-day-col-bookable .mm-cal-block-shift-virtual:hover {
    box-shadow: 0 2px 8px rgba(44, 53, 48, 0.1);
    z-index: 5;
}

.mm-cal-week-adaptive .mm-cal-block-shift:hover,
.mm-cal-week-adaptive .mm-cal-block-shift-schema:hover,
.mm-cal-week-adaptive .mm-cal-block-shift-virtual:hover {
    transform: none;
    border-color: rgba(74, 124, 90, 0.45);
    z-index: 5;
}

.mm-cal-day-col-bookable .mm-cal-block-shift:active,
.mm-cal-day-col-bookable .mm-cal-block-shift-schema:active,
.mm-cal-day-col-bookable .mm-cal-block-shift-virtual:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 6px rgba(44, 53, 48, 0.12);
}

.mm-cal-block-appointment:hover,
.mm-cal-block-appointment:focus-within {
    z-index: 30;
}

.mm-cal-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    min-width: 210px;
    max-width: 280px;
    padding: 10px 12px;
    background: #2c3530;
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
    box-shadow: 0 6px 18px rgba(44, 53, 48, 0.22);
    pointer-events: none;
    white-space: normal;
    z-index: 40;
}

.mm-cal-block:hover .mm-cal-tooltip,
.mm-cal-block:focus-within .mm-cal-tooltip {
    display: block;
}

.mm-cal-tooltip-row {
    margin-bottom: 5px;
}

.mm-cal-tooltip-row:last-child {
    margin-bottom: 0;
}

.mm-cal-tooltip-label {
    display: inline-block;
    min-width: 78px;
    color: rgba(255, 255, 255, 0.65);
}

.mm-cal-block-title {
    display: block;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm-cal-block-sub {
    display: block;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm-cal-block-shift {
    left: 3px;
    right: 7px;
    background: #e8f2eb;
    border: 1px solid rgba(90, 143, 106, 0.35);
    border-left: 3px solid #5a8f6a;
    color: #2c4a35;
    box-shadow: 0 1px 2px rgba(44, 53, 48, 0.06);
}

.mm-cal-block-shift-schema {
    left: 3px;
    right: 7px;
    background: #edf4ef;
    border: 1px dashed rgba(122, 171, 136, 0.55);
    border-left: 3px solid #7aab88;
    color: #2c4a35;
    box-shadow: 0 1px 2px rgba(44, 53, 48, 0.06);
}

.mm-cal-block-shift-virtual {
    left: 3px;
    right: 7px;
    background: #e8f2eb;
    border: 1px dashed #7aab88;
    border-left: 3px solid #5a8f6a;
    color: #2c4a35;
    box-shadow: 0 1px 2px rgba(44, 53, 48, 0.06);
}

.mm-cal-block-appointment {
    left: 8px;
    right: 3px;
    background: #f7f0e4;
    border: 1px solid rgba(184, 150, 90, 0.55);
    border-left: 3px solid #b8965a;
    color: #4a3d2a;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(74, 61, 42, 0.14);
}

.mm-cal-block-appointment.mm-cal-block-treatment-colored {
    background: var(--mm-treatment-bg, #f7f0e4) !important;
    border-color: var(--mm-treatment-border, #b8965a) !important;
    border-left-color: var(--mm-treatment-border, #b8965a) !important;
    color: var(--mm-treatment-text, #4a3d2a) !important;
}

.mm-cal-block-appointment.mm-cal-block-treatment-colored .mm-cal-block-title,
.mm-cal-block-appointment.mm-cal-block-treatment-colored .mm-cal-block-sub {
    color: inherit;
}

.mm-cal-appt-segments {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.mm-cal-appt-segment-main {
    background: var(--mm-treatment-bg, #f7f0e4);
}

.mm-cal-appt-segment-prep,
.mm-cal-appt-segment-post {
    background: repeating-linear-gradient(
        -45deg,
        var(--mm-treatment-prep-bg, #f5f0e8),
        var(--mm-treatment-prep-bg, #f5f0e8) 6px,
        color-mix(in srgb, var(--mm-treatment-bg, #f7f0e4) 35%, white) 6px,
        color-mix(in srgb, var(--mm-treatment-bg, #f7f0e4) 35%, white) 12px
    );
}

.mm-cal-appt-segment-prep {
    border-bottom: 1px dashed color-mix(in srgb, var(--mm-treatment-border, #b8965a) 45%, transparent);
}

.mm-cal-appt-segment-post {
    border-top: 1px dashed color-mix(in srgb, var(--mm-treatment-border, #b8965a) 45%, transparent);
}

.mm-cal-block-treatment-colored .mm-cal-block-content {
    position: relative;
    z-index: 1;
}

.mm-cal-appt-prep-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--mm-treatment-text, #4a3d2a) 12%, transparent);
}

.mm-color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mm-color-swatch {
    position: relative;
    cursor: pointer;
}

.mm-color-swatch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mm-color-swatch span {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 2px solid rgba(44, 53, 48, 0.12);
    box-shadow: inset 0 0 0 1px rgba(44, 53, 48, 0.08);
}

.mm-color-swatch input:checked + span {
    border-color: #2c3530;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2c3530;
}

.mm-treatment-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    display: inline-block;
    vertical-align: middle;
}

.mm-cal-block-columned {
    right: auto;
}

.mm-cal-block-shift.mm-cal-block-columned,
.mm-cal-block-shift-schema.mm-cal-block-columned,
.mm-cal-block-shift-virtual.mm-cal-block-columned {
    left: calc(2px + (100% - 10px) * var(--mm-cal-col) / var(--mm-cal-col-count));
    width: calc((100% - 10px) / var(--mm-cal-col-count) - 2px);
}

.mm-cal-block-appointment.mm-cal-block-columned {
    left: calc(2px + (100% - 8px) * var(--mm-cal-col) / var(--mm-cal-col-count));
    width: calc((100% - 8px) / var(--mm-cal-col-count) - 2px);
}

.mm-cal-block-appointment.mm-cal-block-nested,
.mm-cal-block-floating-break.mm-cal-block-nested {
    right: auto;
    left: calc(
        2px + (100% - 8px)
        * (var(--mm-cal-practitioner-col) + var(--mm-cal-sub-col) / var(--mm-cal-sub-count))
        / var(--mm-cal-practitioner-count)
    );
    width: calc(
        (100% - 8px) / var(--mm-cal-practitioner-count) / var(--mm-cal-sub-count) - 2px
    );
}

.mm-cal-block-floating-break {
    pointer-events: auto;
    font-size: 12px;
    line-height: 1.3;
}

.mm-cal-block-floating-break-floating {
    background: repeating-linear-gradient(
        -45deg,
        rgba(237, 228, 255, 0.58),
        rgba(237, 228, 255, 0.58) 8px,
        rgba(201, 184, 240, 0.34) 8px,
        rgba(201, 184, 240, 0.34) 16px
    );
    border: 2px dashed rgba(124, 92, 191, 0.72);
    border-left: 4px solid #8b6fd4;
    color: #4a3568;
    z-index: 9;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.mm-cal-block-floating-break-placed {
    background: linear-gradient(180deg, #e3edf6 0%, #c8d9e8 100%);
    border: 1px solid #7a9cb8;
    border-left: 4px solid #5b7f9d;
    color: #2c4a62;
    z-index: 9;
    box-shadow: 0 1px 2px rgba(44, 74, 98, 0.14);
}

.mm-cal-block-floating-badge,
.mm-cal-block-planned-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.mm-cal-block-floating-badge {
    background: rgba(124, 92, 191, 0.14);
    border: 1px dashed rgba(124, 92, 191, 0.5);
    color: #5f4691;
}

.mm-cal-block-planned-badge {
    background: rgba(91, 127, 157, 0.16);
    border: 1px solid rgba(91, 127, 157, 0.45);
    color: #2c4a62;
}

.mm-cal-legend-swatch.mm-cal-block-floating-break-floating {
    background: repeating-linear-gradient(
        -45deg,
        #ede4ff,
        #ede4ff 3px,
        #c9b8f0 3px,
        #c9b8f0 6px
    );
    border: 1px dashed #8b6fd4;
}

.mm-cal-legend-swatch.mm-cal-block-floating-break-placed {
    background: linear-gradient(180deg, #e3edf6 0%, #c8d9e8 100%);
    border: 1px solid #7a9cb8;
}

.mm-btn-danger-text {
    color: #b54a4a;
    margin-right: auto;
}

.mm-cal-legend-details {
    margin-bottom: 12px;
}

.mm-cal-legend-details > summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #4a5c52;
    margin-bottom: 8px;
    list-style: none;
}

.mm-cal-legend-details > summary::-webkit-details-marker {
    display: none;
}

.mm-cal-legend-details > summary::before {
    content: '▸ ';
    display: inline-block;
    transition: transform 0.15s ease;
}

.mm-cal-legend-details[open] > summary::before {
    transform: rotate(90deg);
}

.mm-cal-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 0;
    padding-top: 4px;
    font-size: 13px;
    color: #6b7c72;
}

.mm-table-row-highlight {
    background: #f3f8f5;
    outline: 2px solid rgba(74, 124, 90, 0.35);
}

.mm-inline-link {
    color: #3d6b52;
    font-weight: 600;
    text-decoration: none;
}

.mm-inline-link:hover {
    text-decoration: underline;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mm-cal-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    vertical-align: -2px;
    margin-right: 6px;
}

.mm-appt-slot-banner {
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #f7f4ef;
    border-radius: 8px;
    color: #4a3f30;
}

.mm-appt-fixed-value {
    margin: 0;
    padding: 10px 12px;
    background: #faf8f4;
    border: 1px solid #ebe6de;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3530;
}

.mm-form-group[hidden],
#appt-practitioner-select-wrap[hidden],
#appt-practitioner-fixed[hidden] {
    display: none !important;
}

/* Rich text editor (Quill) */
.mm-rich-editor-wrap .mm-field-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #7a7268;
}

.mm-rich-editor {
    background: #fff;
    border: 1px solid #ebe6de;
    border-radius: 8px;
    min-height: 220px;
}

.mm-rich-editor .ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid #ebe6de;
    border-radius: 8px 8px 0 0;
    background: #faf8f4;
    font-family: inherit;
}

.mm-rich-editor .ql-container.ql-snow {
    border: none;
    border-radius: 0 0 8px 8px;
    font-family: inherit;
    font-size: 14px;
}

.mm-rich-editor .ql-editor {
    min-height: 180px;
    line-height: 1.55;
    color: #2c3530;
}

.mm-rich-editor .ql-editor h1 { font-size: 1.5rem; }
.mm-rich-editor .ql-editor h2 { font-size: 1.25rem; }
.mm-rich-editor .ql-editor h3 { font-size: 1.1rem; }

/* Website menu order */
.mm-menu-order-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.mm-menu-order-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #ebe6de;
    border-radius: 10px;
    background: #fff;
}

.mm-menu-order-item.is-disabled {
    opacity: 0.65;
    background: #faf8f4;
}

.mm-menu-order-label {
    font-weight: 600;
    flex: 1;
}

.mm-menu-order-hint {
    font-size: 12px;
    color: #7a7268;
}

.mm-menu-order-actions {
    display: flex;
    gap: 0.35rem;
}

.mm-icon-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd5c8;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

.mm-icon-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.mm-image-preview {
    margin: 0.5rem 0 0.75rem;
    max-width: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ebe6de;
}

.mm-image-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.mm-image-preview-crop-16x10 {
    aspect-ratio: 16 / 10;
    max-width: 320px;
}

.mm-image-preview-crop-16x10 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-table-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 8px;
    vertical-align: middle;
}

.mm-fieldset {
    margin: 1.25rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid #ebe6de;
    border-radius: 10px;
}

.mm-fieldset legend {
    padding: 0 0.35rem;
    font-weight: 600;
}

.mm-homepage-photos-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.mm-homepage-photo-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.75rem;
    border: 1px solid #ebe6de;
    border-radius: 10px;
    background: #faf8f4;
}

.mm-homepage-photo-thumb {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.mm-homepage-photo-fields {
    flex: 1;
    display: grid;
    gap: 0.5rem;
}

.mm-homepage-tiles-list {
    display: grid;
    gap: 0.75rem;
    margin: 0.5rem 0 1rem;
}

.mm-homepage-tile-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.75rem;
    border: 1px solid #ebe6de;
    border-radius: 10px;
    background: #faf8f4;
}

.mm-homepage-tile-thumb-wrap {
    flex-shrink: 0;
}

.mm-homepage-tile-placeholder {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #ebe6de;
    font-size: 12px;
    color: #7a7268;
}

.mm-homepage-tile-fields {
    flex: 1;
    display: grid;
    gap: 0.45rem;
}

.mm-homepage-tile-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mm-homepage-tile-new-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ebe6de;
}

.mm-homepage-tile-new-row {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border: 1px dashed #ddd5c8;
    border-radius: 10px;
}
