:root {
    --color-navy: #0f2438;
    --color-navy-light: #163350;
    --color-gold: #c9a24b;
    --color-bg: #f4f6f8;
    --color-text: #1c2733;
    --color-muted: #6b7a89;
    --color-danger: #b3261e;
    --color-danger-bg: #fdecea;
    --radius: 10px;
    --font-heading: "Playfair Display", Georgia, serif;
    --font-body: "Poppins", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
}

h1, h2, h3 { font-family: var(--font-heading); }

/* --- Auth pages --- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-navy);
}

.auth-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius);
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.auth-logo { max-height: 56px; margin-bottom: .5rem; }
.auth-subtitle { color: var(--color-muted); margin-bottom: 1.5rem; }

.auth-card form { text-align: left; display: flex; flex-direction: column; gap: .4rem; }
.auth-card label { font-size: .85rem; font-weight: 600; margin-top: .5rem; }
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
    padding: .65rem .75rem;
    border: 1px solid #d7dde3;
    border-radius: 6px;
    font-size: 1rem;
}
.checkbox { display: flex; align-items: center; gap: .4rem; font-weight: 400; }

.btn {
    display: inline-block;
    padding: .7rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
.btn-primary { background: var(--color-navy); color: #fff; margin-top: 1rem; }
.btn-primary:hover { background: var(--color-navy-light); }
.btn-link { background: none; border: none; color: var(--color-muted); cursor: pointer; }

.alert { padding: .6rem .8rem; border-radius: 6px; margin-bottom: .75rem; font-size: .9rem; }
.alert-error { background: var(--color-danger-bg); color: var(--color-danger); }

/* --- App shell --- */
.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
    width: 250px;
    background: var(--color-navy);
    color: #fff;
    padding: 1.5rem 1rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.app-sidebar-brand {
    font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 2rem; color: var(--color-gold);
    display: flex; align-items: center; gap: .6rem;
}
.app-sidebar-brand img { height: 32px; width: auto; border-radius: 4px; }
.app-sidebar nav { display: flex; flex-direction: column; gap: .3rem; flex: 1; overflow-y: auto; }
.app-sidebar nav a {
    color: #d7dde3; text-decoration: none; padding: .55rem .6rem; border-radius: 6px;
    display: flex; align-items: center; gap: .65rem; font-size: .9rem;
}
.app-sidebar nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.app-sidebar nav a:hover { background: var(--color-navy-light); color: #fff; }
.app-sidebar nav a:hover svg { opacity: 1; }

/* --- Menu utilisateur (bas de la barre latérale) --- */
.app-sidebar-user { position: relative; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.app-sidebar-user-trigger {
    width: 100%; display: flex; align-items: center; gap: .65rem;
    background: none; border: none; cursor: pointer; padding: .5rem; border-radius: 8px;
    color: #fff; text-align: left;
}
.app-sidebar-user-trigger:hover { background: var(--color-navy-light); }
.app-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: var(--color-gold); color: var(--color-navy);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem;
}
.app-sidebar-user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.app-sidebar-user-info strong { font-size: .85rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-sidebar-user-info small { font-size: .75rem; color: #a9b6c4; }
.app-sidebar-user-chevron { width: 16px; height: 16px; flex-shrink: 0; color: #a9b6c4; transition: transform .15s; }
.app-sidebar-user-menu.is-open ~ .app-sidebar-user-trigger .app-sidebar-user-chevron,
.app-sidebar-user-trigger:has(+ .app-sidebar-user-menu.is-open) .app-sidebar-user-chevron { transform: rotate(180deg); }

.app-sidebar-user-menu {
    display: none;
    position: absolute; bottom: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 50;
}
.app-sidebar-user-menu.is-open { display: block; }
.app-sidebar-user-menu a, .app-sidebar-user-menu button {
    display: flex; align-items: center; gap: .6rem; width: 100%;
    padding: .7rem .9rem; font-size: .85rem; color: var(--color-text);
    background: none; border: none; text-align: left; cursor: pointer; text-decoration: none;
}
.app-sidebar-user-menu svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-muted); }
.app-sidebar-user-menu a:hover, .app-sidebar-user-menu button:hover { background: #f4f6f8; }
.app-sidebar-user-menu form { margin: 0; }

.app-content { flex: 1; padding: 2rem; }

.app-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.app-topbar-user { display: flex; align-items: center; gap: 1rem; font-size: .9rem; color: var(--color-muted); }

.app-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.card { background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.card h3 { margin: 0 0 .5rem; font-size: .85rem; color: var(--color-muted); font-family: var(--font-body); }
.card-value { font-size: 1.8rem; font-weight: 700; margin: 0; }
.card-hint { font-size: .75rem; color: var(--color-muted); margin: .3rem 0 0; }

.app-note { color: var(--color-muted); font-size: .85rem; }

.app-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.app-table th, .app-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid #eef1f4; }
.app-table th { background: #fafbfc; font-size: .8rem; text-transform: uppercase; color: var(--color-muted); }

.app-form { background: #fff; padding: 1.5rem; border-radius: var(--radius); max-width: 480px; display: flex; flex-direction: column; gap: .3rem; }
.app-form label { font-size: .85rem; font-weight: 600; margin-top: .6rem; }
.app-form input, .app-form select {
    padding: .6rem .7rem; border: 1px solid #d7dde3; border-radius: 6px; font-size: .95rem;
}

.app-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.app-grid-2 h2 { margin-top: 0; }
.app-grid-2 h3 { margin-top: 1.5rem; font-size: 1rem; }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-en_attente, .badge-planifiee { background: #fff3cd; color: #7a5b00; }
.badge-confirmee, .badge-en_cours { background: #d1ecf1; color: #0c5460; }
.badge-enregistree { background: #d4edda; color: #155724; }
.badge-terminee { background: #e2e3e5; color: #383d41; }
.badge-annulee, .badge-no_show { background: var(--color-danger-bg); color: var(--color-danger); }
.badge-brouillon { background: #e2e3e5; color: #383d41; }
.badge-pro_forma { background: #fff3cd; color: #7a5b00; }
.badge-emise { background: #d1ecf1; color: #0c5460; }
.badge-payee { background: #d4edda; color: #155724; }
.badge-partiellement_payee { background: #fff3cd; color: #7a5b00; }

.error-page { text-align: center; padding: 4rem 1rem; }
.error-page h1 { font-size: 4rem; color: var(--color-navy); margin: 0; }
.error-detail { color: var(--color-danger); font-family: monospace; }

/* --- Modals Back Office --- */
body.modal-open { overflow: hidden; }
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 36, 56, .6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.modal-overlay.is-open { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    animation: modal-pop .15s ease-out;
}
.modal-box.modal-box-wide { max-width: 760px; }
@keyframes modal-pop {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.1rem 1.5rem; border-bottom: 1px solid #eef1f4;
    position: sticky; top: 0; background: #fff; border-radius: 12px 12px 0 0;
}
.modal-header h3 { margin: 0; font-family: var(--font-heading); color: var(--color-navy); font-size: 1.15rem; }
.modal-close {
    background: none; border: none; font-size: 1.5rem; line-height: 1;
    cursor: pointer; color: var(--color-muted); padding: .25rem .5rem;
}
.modal-close:hover { color: var(--color-navy); }
.modal-body { padding: 1.5rem; }
.modal-body .app-form { max-width: none; }
.modal-trigger-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }

/* Tableau de bord — cartes KPI : 4 par ligne sur grand écran, 2 par ligne
   sur écran moyen (portable, tablette), 1 par ligne sur téléphone.
   Classe dédiée pour ne pas modifier les autres écrans qui utilisent .app-cards. */
.app-cards--kpi { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1280px) { .app-cards--kpi { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .app-cards--kpi { grid-template-columns: 1fr; } }

/* Graphiques du tableau de bord : côte à côte, puis l'un sous l'autre sur écran étroit. */
@media (max-width: 1024px) { .dashboard-charts { grid-template-columns: 1fr; } }

/* ===== Composants communs Back Office (introduits avec le menu Réservations,
   réutilisables dans les autres menus) ===== */

/* Boutons */
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-topbar { display: inline-flex; align-items: center; gap: .4rem; margin-top: 0; }
.btn-sm { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; font-size: .85rem; margin: 0; white-space: nowrap; }
.btn-navy { background: var(--color-navy); color: #fff; }
.btn-navy:hover { background: var(--color-navy-light); }
.btn-success { background: #2e7d32; color: #fff; }
.btn-success:hover { background: #256a29; }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover { background: #962019; }
.btn-outline { background: #fff; color: var(--color-navy); border: 1px solid #cfd6dd; }
.btn-outline:hover { border-color: var(--color-navy); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Bouton-icône (consulter, modifier…) */
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    color: var(--color-navy); background: #eef2f6; transition: background .15s, color .15s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--color-navy); color: #fff; }
.icon-btn:focus-visible, .btn:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }

/* Tableaux : défilement horizontal sur petit écran au lieu de casser la page */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table-responsive .app-table { min-width: 640px; }
.app-table .col-actions { width: 1%; text-align: center; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.segment-actions { display: flex; flex-wrap: wrap; gap: .4rem; }

/* En-tête de page et actions */
.topbar-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.page-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.page-actions .btn { margin-top: 0; }
.breadcrumb { font-size: .85rem; color: var(--color-muted); margin: 0 0 .5rem; }
.breadcrumb a { color: var(--color-muted); }

/* Formulaires en modale */
.form-section { margin: 1rem 0 .2rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); }
.form-section:first-of-type { margin-top: 0; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.form-field-full { grid-column: 1 / -1; }
.form-hint { font-size: .85rem; color: var(--color-muted); margin: .5rem 0 .3rem; }
.app-form textarea { padding: .6rem .7rem; border: 1px solid #d7dde3; border-radius: 6px; font-size: .95rem; font-family: inherit; resize: vertical; }
.room-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.app-form .room-choice, .room-choice { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .7rem; border: 1px solid #d7dde3; border-radius: 6px; font-weight: 500; cursor: pointer; margin: 0; }
.room-choice:has(input:checked) { border-color: var(--color-navy); background: #eef2f6; }
.room-choice:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.room-choices-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .6rem 0 .5rem; }
.text-success { color: #1f7a3a; font-weight: 600; }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; margin-top: 1.25rem; }
.modal-actions .btn { margin-top: 0; }

@media (max-width: 760px) {
    .app-topbar { flex-wrap: wrap; gap: .75rem; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .modal-overlay { padding: .5rem; align-items: flex-start; }
    .modal-box { max-height: calc(100vh - 1rem); }
    .modal-actions .btn { flex: 1; }
}
.app-content { min-width: 0; } /* permet aux tableaux larges de défiler dans leur conteneur */

/* ===== Menu Chambres ===== */
.section-title { font-size: 1.15rem; margin: 0 0 .75rem; }
.row-actions { display: inline-flex; align-items: center; gap: .35rem; }
.row-actions form { display: inline-flex; margin: 0; }
label.icon-btn { cursor: pointer; margin: 0; }
.icon-btn { border: 0; cursor: pointer; }
.icon-btn-danger { color: var(--color-danger); background: var(--color-danger-bg); }
.icon-btn-danger:hover { background: var(--color-danger); color: #fff; }
.icon-btn-xs { width: 26px; height: 26px; border-radius: 6px; }
.icon-btn-xs svg { width: 14px; height: 14px; }
.table-thumb { width: 64px; height: 46px; object-fit: cover; border-radius: 6px; display: block; }
.table-thumb-empty { display: flex; align-items: center; justify-content: center; background: #eef2f6; color: var(--color-muted); }
.alert-success { background: #d4edda; color: #155724; }

.lock-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; }
.lock-bar.is-locked { background: #fff3cd; color: #7a5b00; }
.lock-bar.is-unlocked { background: #d4edda; color: #155724; }
.lock-bar-text { display: flex; align-items: center; gap: .6rem; }
.lock-bar-text svg { width: 20px; height: 20px; flex-shrink: 0; }

.tour-card { margin-bottom: 1rem; }
.tour-card-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tour-card-header h3 { margin: 0; font-size: 1rem; color: var(--color-text); }
.tour-card-header form { margin: 0; }
.pano-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.pano-tile { border: 1px solid #e5e9ee; border-radius: 10px; overflow: hidden; background: #fff; }
.pano-thumb { position: relative; height: 110px; background-size: cover; background-position: center; }
.pano-generic { position: absolute; top: 8px; left: 8px; padding: .15rem .5rem; border-radius: 999px; background: #b3261e; color: #fff; font-size: .7rem; font-weight: 700; }
.pano-body { padding: .75rem; }
.pano-title-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.pano-links { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.pano-links li { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--color-muted); }
.pano-links li > svg { width: 14px; height: 14px; flex-shrink: 0; }
.pano-links li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pano-links form { margin: 0; }

.modal-box.modal-box-tour { max-width: 1000px; }
.tour-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.tour-link-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tour-link-form select, .tour-link-form input { padding: .45rem .6rem; border: 1px solid #d7dde3; border-radius: 6px; font-size: .9rem; }
.tour-link-form input { min-width: 240px; }
#admin-tour::after { /* réticule : position exacte où sera placé le point de passage */
    content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
    border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(15,36,56,.6); pointer-events: none; z-index: 4;
}
@media (max-width: 760px) {
    .tour-link-form, .tour-link-form input, .tour-link-form select, .tour-link-form .btn { width: 100%; min-width: 0; }
    .tour-tools > .btn { width: 100%; }
}
/* Harmonise la police des <button> et des <a> stylés en bouton (le navigateur n'hérite pas la police sur <button>). */
.btn, .icon-btn, .btn-link { font-family: inherit; }
.btn-topbar { font-size: .9rem; }

/* ===== Barre latérale repliable (tablette / mobile) ===== */
.app-sidebar nav a.is-active { background: var(--color-navy-light); color: #fff; box-shadow: inset 3px 0 0 var(--color-gold); }
.app-menu-toggle, .app-sidebar-backdrop { display: none; }
@media (max-width: 960px) {
    .app-menu-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        position: fixed; top: 12px; left: 12px; z-index: 1101;
        width: 44px; height: 44px; border: 0; border-radius: 10px;
        background: var(--color-navy); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.2); cursor: pointer;
    }
    .app-menu-toggle svg { width: 22px; height: 22px; }
    .app-sidebar {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 1100; width: 260px; max-width: 85vw;
        transform: translateX(-100%); transition: transform .2s ease; overflow-y: auto;
    }
    body.sidebar-open .app-sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
    body.sidebar-open .app-menu-toggle { left: calc(min(260px, 85vw) + 12px); }
    .app-sidebar-backdrop { position: fixed; inset: 0; z-index: 1099; background: rgba(15,36,56,.5); }
    body.sidebar-open .app-sidebar-backdrop { display: block; }
    body.sidebar-open { overflow: hidden; }
    .app-content { padding: 4.25rem 1rem 1.5rem; }
}

/* ===== Module Restaurant ===== */
/* Sous-navigation par onglets (réutilisable pour Bar, Piscine…) */
.sub-nav { display: flex; gap: .35rem; margin: -.5rem 0 1.5rem; padding-bottom: .25rem; border-bottom: 1px solid #e3e8ee; overflow-x: auto; }
.sub-nav a {
    display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .9rem; border-radius: 8px 8px 0 0;
    color: var(--color-muted); text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap;
    border-bottom: 3px solid transparent; margin-bottom: -.3rem;
}
.sub-nav a svg { width: 18px; height: 18px; }
.sub-nav a:hover { color: var(--color-navy); background: #eef2f6; }
.sub-nav a.is-active { color: var(--color-navy); border-bottom-color: var(--color-gold); }

.page-section { margin-bottom: 2.25rem; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.section-header .section-title { margin: 0; }
.cell-sub { font-size: .8rem; color: var(--color-muted); margin-top: .15rem; }
.link-count { white-space: nowrap; background: none; border: 0; padding: 0; color: var(--color-navy); text-decoration: underline; cursor: pointer; font: inherit; }

.table-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .75rem; }
.table-toolbar select { padding: .55rem .7rem; border: 1px solid #d7dde3; border-radius: 8px; font: inherit; font-size: .9rem; background: #fff; }
.search-field { display: flex; align-items: center; gap: .4rem; flex: 1 1 260px; padding: 0 .7rem; border: 1px solid #d7dde3; border-radius: 8px; background: #fff; }
.search-field svg { width: 17px; height: 17px; color: var(--color-muted); flex-shrink: 0; }
.search-field input { border: 0; outline: 0; padding: .55rem 0; width: 100%; font: inherit; font-size: .9rem; background: transparent; }
.search-field:focus-within { border-color: var(--color-navy); }

.btn-block { display: flex; width: 100%; justify-content: center; }
.icon-btn-sm { width: 30px; height: 30px; border-radius: 7px; }
.icon-btn-sm svg { width: 16px; height: 16px; }
.icon-flip svg { transform: scaleX(-1); }

/* Plan de salle */
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.table-card { display: flex; flex-direction: column; gap: .5rem; border-top: 4px solid #2e7d32; }
.table-card-occupee { border-top-color: var(--color-danger); }
.table-card-reservee { border-top-color: var(--color-gold); }
.table-card-head { display: flex; justify-content: space-between; align-items: center; }
.table-card-head h3 { margin: 0; font-size: 1.05rem; color: var(--color-text); }
.table-card-meta { display: flex; justify-content: space-between; align-items: center; margin: 0; }
.table-card-order { margin: 0; }
.table-card-form { display: flex; flex-direction: column; gap: .4rem; margin-top: auto; }
.table-card-form input { padding: .5rem .6rem; border: 1px solid #d7dde3; border-radius: 6px; font: inherit; font-size: .9rem; }
.table-card .btn-block { margin-top: auto; }

/* Écran cuisine */
.kitchen-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.kitchen-card { display: flex; flex-direction: column; gap: .35rem; border-left: 5px solid #c9a24b; }
.kitchen-en_preparation { border-left-color: #0c5460; }
.kitchen-pret { border-left-color: #2e7d32; }
.kitchen-card h3 { margin: 0; font-size: 1.05rem; color: var(--color-text); }
.kitchen-card-head { display: flex; justify-content: space-between; align-items: center; }
.kitchen-qty { font-size: 1.4rem; font-weight: 700; color: var(--color-navy); }
.kitchen-notes { margin: 0; padding: .4rem .6rem; background: #fff3cd; color: #7a5b00; border-radius: 6px; font-size: .85rem; }
.kitchen-card .btn-block { margin-top: auto; }

/* Commande (caisse) */
.complimentary-toggle { margin-bottom: 1rem; }
.complimentary-toggle svg { width: 16px; height: 16px; }
.pos-category h4 { margin: 1rem 0 .3rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); }
.pos-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); }
.pos-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .45rem .75rem; border-bottom: 1px solid #eef1f4; }
.pos-list li:last-child { border-bottom: 0; }
.order-total { font-size: 1.1rem; margin: 1rem 0 0; }

/* Navigation par date */
.date-nav { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.date-nav input[type=date] { padding: .5rem .6rem; border: 1px solid #d7dde3; border-radius: 8px; font: inherit; }
.date-nav-label { margin-left: .25rem; color: var(--color-muted); font-weight: 600; }

@media (max-width: 960px) {
    .app-grid-2 { grid-template-columns: 1fr; }
}
.stack > label, .stack > input, .stack > select { display: block; width: 100%; box-sizing: border-box; }
.stack > label { margin-top: .6rem; margin-bottom: .3rem; }
.btn:has(svg) { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
/* Statuts restaurant sans style jusqu'ici */
.badge-ouverte, .badge-en_cuisine, .badge-en_preparation { background: #d1ecf1; color: #0c5460; }
.badge-servie, .badge-servi, .badge-pret { background: #d4edda; color: #155724; }
.badge-encaissee { background: #e2e3e5; color: #383d41; }
.table-responsive .app-table.table-compact { min-width: 0; }
@media (max-width: 560px) {
    .hide-sm { display: none; }
    .app-table th, .app-table td { padding: .6rem .6rem; }
}

/* ===== Module Piscine ===== */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.quick-action {
    display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; text-align: left;
    background: var(--color-navy); color: #fff; border: 0; border-radius: var(--radius); cursor: pointer;
    font: inherit; box-shadow: 0 2px 6px rgba(15,36,56,.15); transition: transform .12s, background .12s;
}
.quick-action:hover { background: var(--color-navy-light); transform: translateY(-1px); }
.quick-action:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.quick-action strong { display: block; font-size: .95rem; }
.quick-action small { display: block; font-size: .78rem; opacity: .75; margin-top: .1rem; }
.quick-action-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(201,162,75,.2); color: var(--color-gold); }
.quick-action-icon svg { width: 22px; height: 22px; }

.pool-kpis.app-cards--kpi { grid-template-columns: repeat(3, 1fr); }
.card-link { text-decoration: none; color: inherit; transition: box-shadow .15s; }
.card-link:hover { box-shadow: 0 4px 14px rgba(15,36,56,.12); }


.stock-pill { display: inline-block; padding: .15rem .55rem; border-radius: 999px; background: #d4edda; color: #155724; font-weight: 600; font-size: .85rem; }
.stock-pill.is-low { background: #fff3cd; color: #7a5b00; }
.stock-pill.is-empty { background: var(--color-danger-bg); color: var(--color-danger); }

@media (max-width: 900px) { .quick-actions { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
    .pool-kpis.app-cards--kpi { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
    .pool-kpis .card { padding: .75rem .6rem; }
    .pool-kpis .card h3 { font-size: .72rem; }
    .pool-kpis .card-value { font-size: 1.4rem; }
    .pool-kpis .card-hint { display: none; }
    .quick-actions { gap: .5rem; }
    .quick-action { padding: .7rem .9rem; }
}

/* ===== Salles de conférence ===== */
/* Formulaire de réservation : 2 colonnes (1 sur écran étroit) */
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: stretch; }
.form-card { border: 0; margin: 0; padding: 1.25rem 1.4rem 1.4rem; min-width: 0; }
.form-card legend {
    display: flex; align-items: center; gap: .5rem; float: left; width: 100%; padding: 0; margin: 0 0 1rem;
    font-weight: 700; font-size: 1rem; color: var(--color-navy);
}
.form-card legend + * { clear: both; }
.form-card legend svg { width: 20px; height: 20px; color: var(--color-gold); }
.form-card .form-field { margin-bottom: .85rem; }
.form-card .form-field label { font-size: .85rem; font-weight: 600; }
.form-card input, .form-card select {
    width: 100%; box-sizing: border-box; padding: .6rem .7rem; border: 1px solid #d7dde3; border-radius: 6px;
    font: inherit; font-size: .95rem; background: #fff;
}
.form-card input:focus, .form-card select:focus { outline: 0; border-color: var(--color-navy); box-shadow: 0 0 0 3px rgba(15,36,56,.08); }
.readonly-value { padding: .6rem .7rem; border-radius: 6px; background: #f4f6f8; font-weight: 600; color: var(--color-navy); }
.readonly-value.is-error, .form-hint.is-error { color: var(--color-danger); }
.form-card .form-hint { margin: .25rem 0 0; font-size: .8rem; }

.option-list { display: flex; flex-direction: column; gap: .45rem; }
.option-item {
    display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; margin: 0;
    border: 1px solid #e3e8ee; border-radius: 8px; cursor: pointer; font-weight: 500; transition: border-color .12s, background .12s;
}
.option-item:hover { border-color: #c5ced8; }
.option-item:has(input:checked) { border-color: var(--color-navy); background: #eef2f6; }
.option-item input { width: 18px; height: 18px; flex-shrink: 0; margin: 0; }
.option-name { flex: 1; min-width: 0; }
.option-price { white-space: nowrap; font-weight: 600; color: var(--color-navy); font-size: .9rem; }
.option-price small { font-weight: 400; color: var(--color-muted); }
.option-item.is-included { cursor: default; background: #f4f9f5; border-style: dashed; }

.form-footer { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.form-footer .btn { margin-top: 0; }

@media (max-width: 1100px) { .booking-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
    .form-card { padding: 1rem; }
    .form-footer .btn { flex: 1; }
}

/* Fiche réservation */
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.detail-item { display: flex; flex-direction: column; gap: .25rem; }
.detail-item span { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--color-muted); }
.detail-item span svg { width: 15px; height: 15px; }
.detail-item strong { font-size: 1rem; color: var(--color-text); }
.detail-item small { color: var(--color-muted); }
.table-total td { font-weight: 700; color: var(--color-navy); background: #fafbfc; font-size: 1.05rem; }
.table-total td:first-child { text-align: right; }
@media (max-width: 1100px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .detail-grid { grid-template-columns: 1fr; } }

/* Pastilles (accessoires par salle) */
.chip-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .35rem .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.chip small { font-weight: 400; opacity: .8; }
.chip form { display: inline-flex; margin: 0; }
.chip-included { background: #d4edda; color: #155724; }
.chip-extra { background: #fff3cd; color: #7a5b00; }
p .chip { padding-right: .6rem; }
.chip-remove { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 0; border-radius: 50%; background: rgba(0,0,0,.08); color: inherit; cursor: pointer; padding: 0; }
.chip-remove svg { width: 11px; height: 11px; }
.chip-remove:hover { background: var(--color-danger); color: #fff; }
.chip-add { border: 1px dashed #b8c2cc; background: #fff; color: var(--color-muted); cursor: pointer; padding: .2rem .6rem; font: inherit; font-size: .78rem; font-weight: 600; }
.chip-add svg { width: 12px; height: 12px; }
.chip-add:hover { border-color: var(--color-navy); color: var(--color-navy); }
/* L'attribut hidden doit toujours l'emporter sur les display des composants (.badge, .form-field…). */
[hidden] { display: none !important; }
.form-footer .btn { font-size: .95rem; }
.page-actions .btn, a.btn { font-size: .9rem; }

/* ===== Housekeeping : tableau de suivi ===== */
.hk-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.hk-col { background: #eef1f5; border-radius: 12px; padding: .75rem; min-height: 160px; border-top: 4px solid var(--hk-accent, #6b7a89); }
.hk-col-todo { --hk-accent: #c9a24b; }
.hk-col-progress { --hk-accent: #0c5460; }
.hk-col-inspect { --hk-accent: #2e7d32; }
.hk-col-maintenance { --hk-accent: #b3261e; }
.hk-col-title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .75rem; font-size: .95rem; color: var(--color-navy); }
.hk-col-title svg { width: 18px; height: 18px; color: var(--hk-accent); }
.hk-count { margin-left: auto; min-width: 26px; padding: .1rem .5rem; border-radius: 999px; background: var(--hk-accent); color: #fff; font-size: .8rem; text-align: center; }
.hk-card { background: #fff; border-radius: 10px; padding: .8rem; margin-bottom: .6rem; box-shadow: 0 1px 3px rgba(15,36,56,.08); display: flex; flex-direction: column; gap: .45rem; }
.hk-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.hk-room { font-size: 1rem; color: var(--color-text); }
.hk-card-head .card-hint { font-size: .75rem; white-space: nowrap; }
.hk-meta { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .85rem; color: var(--color-muted); }
.hk-meta svg { width: 14px; height: 14px; }
.hk-reason { color: var(--color-text); }
.hk-rejected { margin: 0; padding: .4rem .55rem; border-radius: 6px; background: var(--color-danger-bg); color: var(--color-danger); font-size: .8rem; }
.hk-assign { display: flex; flex-direction: column; gap: .4rem; }
.hk-assign select { width: 100%; padding: .5rem .55rem; border: 1px solid #d7dde3; border-radius: 6px; font: inherit; font-size: .88rem; background: #fff; }
.hk-assign select.is-invalid { border-color: var(--color-danger); box-shadow: 0 0 0 3px var(--color-danger-bg); }
.hk-assign .btn, .hk-card .btn-block { width: 100%; }
.hk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.hk-empty { margin: .25rem 0; padding: 1rem .5rem; text-align: center; color: var(--color-muted); font-size: .85rem; border: 1px dashed #c9d1da; border-radius: 8px; }
.btn-outline-danger { background: #fff; color: var(--color-danger); border: 1px solid #e8b4b0; }
.btn-outline-danger:hover { background: var(--color-danger-bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1280px) { .hk-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hk-board { grid-template-columns: 1fr; } }

/* ===== Stocks ===== */
.location-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.location-tabs a {
    padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 1px solid #d7dde3;
    color: var(--color-muted); text-decoration: none; font-size: .88rem; font-weight: 600;
}
.location-tabs a:hover { border-color: var(--color-navy); color: var(--color-navy); }
.location-tabs a.is-active { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.card-button { font: inherit; text-align: left; border: 0; cursor: pointer; width: 100%; }
.card-button:disabled { cursor: default; box-shadow: none; }
.card-value small { font-size: .55em; font-weight: 600; color: var(--color-muted); }
.toolbar-count { align-self: center; margin-left: auto; white-space: nowrap; }
.row-muted td { opacity: .6; }
.icon-btn-disabled { opacity: .35; cursor: not-allowed; background: #eef2f6; color: var(--color-muted); }
.icon-btn-disabled:hover { background: #eef2f6; color: var(--color-muted); }
.link-icon { display: inline-flex; align-items: center; gap: .3rem; color: var(--color-navy); text-decoration: none; }
.link-icon svg { width: 14px; height: 14px; color: var(--color-muted); }
.link-icon:hover { text-decoration: underline; }
.qty-in { color: #1e6b23; font-weight: 600; }
.qty-out { color: var(--color-danger); font-weight: 600; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .5rem; }
.filter-bar select, .filter-bar input[type=date] { padding: .55rem .7rem; border: 1px solid #d7dde3; border-radius: 8px; font: inherit; font-size: .9rem; background: #fff; }
.filter-bar .btn { margin-top: 0; }
.date-field { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--color-muted); margin: 0; font-weight: 600; }
@media (max-width: 760px) {
    .filter-bar > * { flex: 1 1 100%; }
    .date-field { flex: 1 1 45%; }
    .date-field input { flex: 1; min-width: 0; }
}

/* ===== Comptabilité ===== */
.period-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; margin-bottom: .5rem; }
.period-presets { display: flex; flex-wrap: wrap; gap: .4rem; }
.period-presets a { padding: .45rem .85rem; border-radius: 999px; background: #fff; border: 1px solid #d7dde3; color: var(--color-muted); text-decoration: none; font-size: .85rem; font-weight: 600; }
.period-presets a:hover { border-color: var(--color-navy); color: var(--color-navy); }
.period-presets a.is-active { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.period-custom { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.period-custom input[type=date] { padding: .45rem .6rem; border: 1px solid #d7dde3; border-radius: 8px; font: inherit; font-size: .88rem; }
.period-custom .btn { margin-top: 0; }
.period-label { margin: 0 0 1rem; color: var(--color-muted); font-size: .9rem; }

.acc-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1.5rem; }
.acc-kpi h3 { font-size: .8rem; }
.acc-kpi .card-value { font-size: 1.35rem; white-space: nowrap; }
.acc-kpi-strong { background: var(--color-navy); }
.acc-kpi-strong h3, .acc-kpi-strong .card-hint { color: rgba(255,255,255,.75); }
.acc-kpi-strong .card-value, .acc-kpi-strong .card-value small { color: #fff; }

.acc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 2rem; align-items: start; }
.acc-panel { min-width: 0; }
.acc-panel .section-title { margin-bottom: .75rem; }
.acc-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.acc-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); padding: .4rem .3rem; border-bottom: 1px solid #e3e8ee; }
.acc-table td { padding: .55rem .3rem; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.acc-table tfoot td { font-weight: 700; color: var(--color-navy); border-top: 2px solid #e3e8ee; border-bottom: 0; }
.acc-amount { text-align: right; white-space: nowrap; }
.acc-pct { text-align: right; color: var(--color-muted); width: 3.5rem; }
.acc-bar { height: 6px; background: #eef1f5; border-radius: 3px; margin-top: .3rem; overflow: hidden; }
.acc-bar span { display: block; height: 100%; background: var(--color-gold); border-radius: 3px; }
.acc-discount td { color: var(--color-danger); }
.age-late { color: var(--color-danger); font-weight: 600; }

@media (max-width: 1400px) { .acc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .acc-split { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .acc-kpis { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .acc-kpi .card-value { font-size: 1.1rem; }
    .period-bar, .period-custom { flex-direction: column; align-items: stretch; }
}

/* Impression du rapport : sans menu ni commandes */
@media print {
    .app-sidebar, .app-menu-toggle, .app-sidebar-backdrop, .no-print { display: none !important; }
    .app-content { padding: 0 !important; }
    body { background: #fff; }
    .card { box-shadow: none; border: 1px solid #ddd; }
    .acc-kpis { grid-template-columns: repeat(3, 1fr); }
    .acc-split { grid-template-columns: 1fr 1fr; }
    .acc-kpi-strong { background: #fff; }
    .acc-kpi-strong h3, .acc-kpi-strong .card-hint, .acc-kpi-strong .card-value, .acc-kpi-strong .card-value small { color: #000; }
}
.tab-count { display: inline-block; min-width: 20px; margin-left: .3rem; padding: 0 .35rem; border-radius: 999px; background: rgba(15,36,56,.08); font-size: .75rem; text-align: center; }
.location-tabs a.is-active .tab-count { background: rgba(255,255,255,.2); }

/* ===== Facturation ===== */
.invoice-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.invoice-actions .btn { margin-top: 0; }
.detail-due { border-left: 4px solid var(--color-danger); }
.detail-due strong { color: var(--color-danger); }
.detail-item a { color: var(--color-navy); }
.invoice-totals { max-width: 460px; margin: 1rem 0 0 auto; }
.acc-sub td { font-size: .82rem; color: var(--color-muted); padding-left: 1rem; }
.input-with-action { display: flex; gap: .5rem; }
.input-with-action input { flex: 1; min-width: 0; }
.input-with-action .btn { margin-top: 0; white-space: nowrap; }
@media (max-width: 760px) { .invoice-totals { max-width: none; } .invoice-actions .btn { flex: 1 1 100%; } }

/* ===== Rebours ===== */
.rebours-kpis { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); }
.rebours-kpis h3 { display: flex; align-items: center; gap: .35rem; }
.rebours-kpis h3 svg { width: 15px; height: 15px; }
.col-check { width: 1%; text-align: center; }
.col-check input { width: 18px; height: 18px; cursor: pointer; }
.type-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.type-chip svg { width: 14px; height: 14px; }
.type-petit_dejeuner { background: #fff3cd; color: #7a5b00; }
.type-restaurant { background: #d1ecf1; color: #0c5460; }
.type-bar { background: #e8e1f5; color: #4b3a78; }
.batch-bar {
    position: sticky; bottom: 1rem; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    margin-top: 1rem; padding: .75rem 1rem; border-radius: var(--radius); background: var(--color-navy); color: #fff;
    box-shadow: 0 6px 20px rgba(15,36,56,.25);
}
.batch-bar .btn { margin-top: 0; }
@media (max-width: 1200px) { .rebours-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rebours-kpis { grid-template-columns: 1fr 1fr; } .batch-bar .btn { width: 100%; } }
.badge { white-space: nowrap; }

/* ===== Utilisateurs ===== */
.user-cell { display: flex; align-items: center; gap: .7rem; }
.avatar { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--color-navy); color: var(--color-gold); font-weight: 700; font-size: .85rem; }
.avatar-off { background: #d7dde3; color: #6b7a89; }
.switch { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 0; padding: .2rem 0; cursor: pointer; font: inherit; }
.switch:disabled { opacity: .5; cursor: wait; }
.switch-track { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #c5ced8; transition: background .15s; flex-shrink: 0; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch.is-on .switch-track { background: #2e7d32; }
.switch.is-on .switch-thumb { transform: translateX(18px); }
.switch-label { font-size: .85rem; font-weight: 600; color: var(--color-muted); }
.switch.is-on .switch-label { color: #1e6b23; }
.switch:focus-visible .switch-track { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.row-muted .switch, .row-muted .row-actions { opacity: 1; }
tr.row-muted td { opacity: 1; }
tr.row-muted td:not(:nth-last-child(-n+2)) { opacity: .6; }

/* ===== Rôles & permissions ===== */
.role-access { min-width: 150px; }
.role-access .acc-bar { max-width: 160px; }
.chip-module { background: #eef2f6; color: var(--color-navy); padding: .2rem .6rem; font-weight: 600; }
.members { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: var(--color-navy); cursor: help; }
.members svg { width: 15px; height: 15px; }
.alert-warning { background: #fff3cd; color: #7a5b00; }

.role-name-card { max-width: 520px; margin-bottom: 1.5rem; }
.role-name-card label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.role-name-card input { width: 100%; box-sizing: border-box; padding: .65rem .75rem; border: 1px solid #d7dde3; border-radius: 6px; font: inherit; font-size: 1rem; }
.perm-toolbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.perm-counter { color: var(--color-muted); font-size: .9rem; }
.perm-toolbar-actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.perm-toolbar-actions .btn { margin-top: 0; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; align-items: start; }
.perm-module { margin: 0; padding: 1rem 1.1rem; border: 0; min-width: 0; }
.perm-module[disabled] { opacity: .85; }
.perm-module-head { display: flex; justify-content: space-between; align-items: center; width: 100%; float: left; padding: 0; margin-bottom: .6rem; font-weight: 700; color: var(--color-navy); }
.perm-module-head + * { clear: both; }
.perm-item { display: flex; align-items: flex-start; gap: .55rem; padding: .45rem .5rem; margin: 0 -.5rem; border-radius: 6px; cursor: pointer; font-weight: 500; font-size: .9rem; }
.perm-item:hover { background: #f4f6f8; }
.perm-item input { width: 17px; height: 17px; margin: .15rem 0 0; flex-shrink: 0; }
.perm-warning { display: block; color: var(--color-danger); font-size: .75rem; font-weight: 600; }
.save-bar {
    position: sticky; bottom: 1rem; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    margin-top: 1.5rem; padding: .75rem 1rem; background: #fff; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(15,36,56,.18);
}
.save-bar-actions { display: flex; gap: .6rem; }
.save-bar-actions .btn { margin-top: 0; }
#dirty-hint.is-dirty { color: #7a5b00; font-weight: 600; }
@media (max-width: 560px) { .save-bar-actions { width: 100%; } .save-bar-actions .btn { flex: 1; } }

/* ===== Design du site ===== */
.site-tabs .tab-count { margin-left: .15rem; }
.site-about { max-width: 820px; }
.site-about textarea { min-height: 140px; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.site-grid-gallery { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.site-card { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(15,36,56,.08); }
.site-card.is-hidden { opacity: .7; }
.site-card.is-hidden .site-card-img { filter: grayscale(.8); }
.site-card-img { position: relative; aspect-ratio: 16 / 9; background: #eef1f5 center / cover no-repeat; }
.order-badge { position: absolute; top: 8px; left: 8px; padding: .1rem .5rem; border-radius: 999px; background: rgba(15,36,56,.8); color: #fff; font-size: .75rem; font-weight: 700; }
.hidden-badge { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: 999px; background: var(--color-danger); color: #fff; font-size: .72rem; font-weight: 700; }
.hidden-badge svg { width: 12px; height: 12px; }
.site-card-body { flex: 1; display: flex; flex-direction: column; gap: .35rem; padding: .8rem .9rem .4rem; min-width: 0; }
.site-card-body .card-hint { margin: 0; }
.site-link { display: flex; align-items: center; gap: .3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-link svg { width: 13px; height: 13px; flex-shrink: 0; }
.site-card-actions { display: flex; gap: .35rem; padding: .5rem .9rem .8rem; border-top: 1px solid #f0f2f5; margin-top: .4rem; }
.site-card-actions form { display: inline-flex; margin: 0; }
.site-card-actions form:last-child { margin-left: auto; }
.testimonial-head { display: flex; align-items: center; gap: .65rem; }
.avatar-img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.stars { color: var(--color-gold); letter-spacing: .1em; }
.stars span { color: #d7dde3; }
.testimonial-quote { margin: .2rem 0 0; font-style: italic; color: var(--color-text); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.image-preview { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; margin-top: .5rem; }
.remove-photo-form { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid #eef1f5; }
.app-form textarea { width: 100%; box-sizing: border-box; }
@media (max-width: 560px) {
    .site-grid, .site-grid-gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .site-grid:not(.site-grid-gallery) { grid-template-columns: 1fr; }
    .site-card-actions { padding: .4rem .6rem .6rem; gap: .25rem; }
    .section-header .btn { width: 100%; }
}

/* ===== Paramètres ===== */
.settings-card { max-width: 860px; margin-bottom: 1.25rem; }
.settings-card .section-title { margin-bottom: 1rem; }
.settings-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }
.settings-actions .btn { margin-top: 0; }
.settings-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 1100px; }
.settings-duo .settings-card { margin-bottom: 0; }
.input-suffix { display: flex; align-items: stretch; }
.input-suffix input { flex: 1; min-width: 0; border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.input-suffix span { display: flex; align-items: center; padding: 0 .75rem; border: 1px solid #d7dde3; border-left: 0; border-radius: 0 6px 6px 0; background: #f4f6f8; color: var(--color-muted); font-size: .85rem; white-space: nowrap; }
.tax-example { padding: .75rem 1rem; border-radius: 8px; background: #f4f6f8; font-size: .9rem; margin-top: .25rem; }
.form-hint-warn { color: #7a5b00; }
.secret-state { margin-left: .4rem; padding: .05rem .45rem; border-radius: 999px; background: #eef1f5; color: var(--color-muted); font-size: .7rem; font-weight: 600; }
.secret-state.is-set { background: #d4edda; color: #155724; }
.clear-secret { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; font-size: .82rem; font-weight: 500; color: var(--color-danger); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: .2rem; }
.status-dot.is-ok { background: #2e7d32; }
.status-dot.is-off { background: #c5ced8; }
.config-status { display: flex; align-items: center; gap: .6rem; max-width: 860px; padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; }
.config-status svg { width: 18px; height: 18px; flex-shrink: 0; }
.config-status.is-ok { background: #d4edda; color: #155724; }
.config-status.is-off { background: #fff3cd; color: #7a5b00; }
.alert svg { width: 16px; height: 16px; vertical-align: -3px; }
.gateway-title { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.test-mail .input-with-action input { padding: .6rem .7rem; border: 1px solid #d7dde3; border-radius: 6px; font: inherit; }
@media (max-width: 900px) { .settings-duo { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
    .test-mail .input-with-action { flex-direction: column; }
    .settings-actions .btn { width: 100%; }
    .input-suffix span { font-size: .75rem; padding: 0 .5rem; }
}
/* Logo de la barre latérale cliquable (retour au tableau de bord) */
a.app-sidebar-brand { text-decoration: none; }
a.app-sidebar-brand:hover { opacity: .85; }

/* Saisie des heures en 24 h (voir assets/js/time24.js) */
.time24 { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; max-width: 100%; }
.time24 input[type="date"] { width: auto; min-width: 9.5rem; }
.time24 .time24-part { width: auto; min-width: 4.2rem; }
.time24 .time24-sep { font-weight: 600; }

/* Client résident choisi (N° de chambre + pièce d'identité) */
.resident-card { margin: .4rem 0 .6rem; padding: .55rem .75rem; border-left: 3px solid #e3a51c; background: rgba(227, 165, 28, .08); border-radius: 6px; font-size: .9rem; line-height: 1.45; }

/* Champs côte à côte dans les fenêtres (ex. mois / année d'abonnement) */
.app-form .form-grid-2 > div > label { display: block; }
.app-form .form-grid-2 > div > select,
.app-form .form-grid-2 > div > input { width: 100%; }

/* Facturation au modèle KM-Hôtel */
.alert-info { background: #e8f1fb; color: #0c3c6e; }
.alert-info a { color: inherit; font-weight: 600; }
.modal-box-lg { max-width: 760px; }
.kmh-billing, .kmh-section { margin-bottom: 1.25rem; }
.kmh-totals { max-width: 520px; margin: .75rem 0 0 auto; }
.kmh-grand td { font-weight: 700; }
.kmh-boxed td { font-weight: 700; border-top: 2px solid var(--color-navy, #1f3a5f); border-bottom: 2px solid var(--color-navy, #1f3a5f); background: #f3f6fa; }
.kmh-boxed td:first-child { border-left: 2px solid var(--color-navy, #1f3a5f); }
.kmh-boxed td:last-child { border-right: 2px solid var(--color-navy, #1f3a5f); }
.credit-room { padding: .5rem 0; border-bottom: 1px dashed var(--border, #e3e7ee); }

/* Pagination des tableaux (table-pager.js) */
.app-table tr.pager-off { display: none; }
.table-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin: .6rem 0 1.2rem; font-size: .88rem; color: #5b6673; }
.table-pager[hidden] { display: none; }
.pager-nav { display: inline-flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.pager-btn { min-width: 2rem; height: 2rem; padding: 0 .5rem; border: 1px solid #d7dde3; border-radius: 6px; background: #fff; color: var(--color-navy, #12263a); font: inherit; cursor: pointer; }
.pager-btn:hover:not(:disabled) { border-color: var(--color-navy, #12263a); }
.pager-btn.is-current { background: var(--color-navy, #12263a); border-color: var(--color-navy, #12263a); color: #fff; font-weight: 600; }
.pager-btn:disabled { opacity: .4; cursor: default; }
.pager-gap { padding: 0 .2rem; }
.pager-size select { margin-left: .35rem; padding: .25rem .4rem; border: 1px solid #d7dde3; border-radius: 6px; font: inherit; width: auto; }

/* Quantité d'une ligne de commande (− / +) */
.qty-stepper { display: inline-flex; align-items: center; gap: .35rem; }
.qty-stepper span { min-width: 1.6rem; text-align: center; font-weight: 600; }
.qty-btn:not(.icon-btn) { width: 1.9rem; height: 1.9rem; border: 1px solid #d7dde3; border-radius: 6px; background: #fff; color: var(--color-navy, #12263a); font-size: 1.05rem; font-weight: 700; line-height: 1; cursor: pointer; }
.qty-btn:not(.icon-btn):hover:not(:disabled) { border-color: var(--color-navy, #12263a); }

/* Restauration d'une réservation de salle : case + nombre de services */
.catering-item { cursor: default; }
.catering-check { display: inline-flex; align-items: center; gap: .55rem; flex: 1; cursor: pointer; margin: 0; font-weight: 500; }
.catering-qty { display: inline-flex; align-items: center; gap: .3rem; margin: 0; font-size: .85rem; color: #5b6673; white-space: nowrap; }
.app-form .catering-qty input, .catering-qty input { width: 3.6rem !important; height: auto; padding: .25rem .35rem; margin: 0; }

/* Réservation : tiers payeur et occupants par chambre */
.payer-choice { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.occupants-list { display: flex; flex-direction: column; gap: .4rem; max-height: 320px; overflow-y: auto; overflow-x: hidden; padding-right: .25rem; }
.occupant-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 1fr) 9.75rem; gap: .5rem; align-items: center; }
.app-form .occupant-row input { min-width: 0; width: 100%; }
.occupants-head { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 1fr) 9.75rem; gap: .5rem; font-size: .75rem; color: var(--color-muted, #6b7785); margin-bottom: .2rem; }
.occupant-row input.arrival-changed { border-color: #b54708; background: #fffaeb; }
.app-form .occupant-row input { margin: 0; }
@media (max-width: 640px) { .occupant-row { grid-template-columns: 1fr 1fr; } .occupant-row strong { grid-column: 1 / -1; } .occupants-head { display: none; } .occupant-row input[type=date] { grid-column: 1 / -1; } }

.catering-group { margin: .6rem 0 .1rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted, #6b7785); }
.option-desc { display: block; font-weight: 400; font-size: .75rem; color: var(--color-muted, #6b7785); line-height: 1.3; }
.catering-item .option-included:not([hidden]) ~ .catering-qty { display: none; }

.manager-box { margin: .75rem 0; padding: .6rem .9rem; }
.manager-box summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.manager-box summary svg { width: 16px; height: 16px; flex-shrink: 0; }
.manager-box[open] summary { margin-bottom: .5rem; }
.preorder-list { display: flex; flex-direction: column; gap: .3rem; margin: .4rem 0; }
.preorder-row { display: flex; justify-content: space-between; gap: .5rem; align-items: center; padding: .3rem .5rem; border: 1px solid #e3e8ee; border-radius: 6px; }

.acc-table .acc-sub td { font-size: .82rem; color: var(--color-muted, #6b7785); padding-top: .1rem; padding-bottom: .1rem; }
.acc-table .acc-sub td:first-child { padding-left: 1.2rem; }

.badge-dept { background: #eef2f6; color: var(--color-navy, #12263a); font-weight: 600; margin: 0 .15rem .15rem 0; white-space: nowrap; }

/* Réservation de salle : options en lignes, onglets de restauration, récapitulatif */
.form-card-wide { grid-column: 1 / -1; }
.legend-count { margin-left: .4rem; font-size: .78rem; font-weight: 600; color: var(--color-gold, #b8913a); }
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .9rem; }
.opt-grid-1 { grid-template-columns: 1fr; }
.opt-grid-1 .opt-row { grid-template-columns: minmax(0, 1fr) 9.5rem 14rem; }
.opt-inputs { justify-content: flex-end; }
.opt-row .option-included { justify-self: end; grid-column: 2 / -1; }
.opt-row { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem 6.8rem; align-items: center; gap: .4rem .9rem;
    padding: .55rem .8rem; border: 1px solid #e3e8ee; border-radius: 8px; background: #fff; transition: border-color .12s, background .12s; }
.opt-row:hover { border-color: #c5ced8; }
.opt-row:has(.opt-check:checked) { border-color: var(--color-navy); background: #eef2f6; }
.opt-row.is-included { background: #f4f9f5; border-style: dashed; }
.opt-main { display: flex; align-items: flex-start; gap: .6rem; margin: 0; cursor: pointer; min-width: 0; font-weight: 500; }
.form-card .opt-main input { width: 18px; height: 18px; flex-shrink: 0; margin: .15rem 0 0; padding: 0; }
.opt-name { min-width: 0; line-height: 1.3; }
.opt-desc { display: block; font-weight: 400; font-size: .78rem; color: var(--color-muted, #6b7785); }
.opt-price { white-space: nowrap; font-weight: 600; color: var(--color-navy); font-size: .9rem; text-align: right; }
.opt-price small { font-weight: 400; color: var(--color-muted, #6b7785); }
.opt-inputs { display: inline-flex; gap: .5rem; align-items: center; }
.opt-inputs label { display: inline-flex; align-items: center; gap: .3rem; margin: 0; font-size: .78rem; color: var(--color-muted, #6b7785); white-space: nowrap; }
.form-card .opt-inputs input { width: 4.2rem; padding: .3rem .4rem; font-size: .9rem; }
.opt-row:not(:has(.opt-check:checked)) .opt-inputs { visibility: hidden; }
.opt-row.is-included .opt-inputs { display: none; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.cat-tab { padding: .45rem .9rem; border: 1px solid #d7dde3; border-radius: 999px; background: #fff; font: inherit; font-size: .88rem; font-weight: 600; color: var(--color-navy); cursor: pointer; }
.cat-tab.is-active { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.cat-tab-count:not(:empty) { display: inline-block; min-width: 1.2rem; margin-left: .25rem; padding: 0 .3rem; border-radius: 999px; background: var(--color-gold, #b8913a); color: #fff; font-size: .72rem; }
.booking-summary { position: sticky; bottom: 0; z-index: 5; margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; padding: .85rem 1.2rem; box-shadow: 0 -4px 14px rgba(15,36,56,.08); }
.summary-figures { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .88rem; color: var(--color-muted, #6b7785); }
.summary-figures strong { color: var(--color-navy); }
.summary-total { font-size: 1rem; color: var(--color-navy); }
.summary-actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.summary-actions .checkbox { margin: 0; font-size: .88rem; }
.summary-actions .btn { margin-top: 0; }
@media (max-width: 900px) { .opt-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .opt-row, .opt-grid-1 .opt-row { grid-template-columns: minmax(0, 1fr) auto; }
    .opt-inputs { grid-column: 1 / -1; justify-content: flex-end; }
    .opt-row:not(:has(.opt-check:checked)) .opt-inputs { display: none; }
}

/* Situation des factures */
.situation-tabs { margin-bottom: 1rem; }
.situation-tabs a { font-size: .9rem; padding: .55rem 1rem; }
.situation-filters .period-presets label { padding: .45rem .85rem; border-radius: 999px; background: #fff; border: 1px solid #d7dde3; color: var(--color-muted); font-size: .85rem; font-weight: 600; cursor: pointer; margin: 0; }
.situation-filters .period-presets label.is-active { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.situation-filters [data-mode][hidden] { display: none; }
.situation-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.app-table tr.row-total td { background: #f2f5f8; border-top: 2px solid var(--color-navy); }
@media (max-width: 760px) { .situation-kpis { grid-template-columns: 1fr 1fr; } }

.app-table th.text-right, .app-table td.text-right { text-align: right; }
.situation-filters .date-field select { padding: .45rem .6rem; border: 1px solid #d7dde3; border-radius: 8px; background: #fff; font: inherit; font-size: .9rem; min-width: 10rem; }

/* Buffets / formules : composition */
.buffet-components { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .25rem .75rem; max-height: 280px; overflow-y: auto; border: 1px solid #e3e8ee; border-radius: 8px; padding: .5rem .75rem; margin-bottom: .75rem; }
.buffet-components .checkbox { margin: 0; font-weight: 400; font-size: .88rem; }
.buffet-components [hidden] { display: none; }
.buffet-compo { display: block; font-size: .78rem; color: var(--color-muted, #6b7785); }
/* Buffets : menus composés et menu personnalisé (08/11/2026) */
.buffet-menu-box { border: 1px solid #e3e8ee; border-radius: 8px; padding: .75rem; margin: 0 0 .75rem; background: #fafbfc; }
.buffet-components-sm { max-height: 170px; }
.buffet-menu-line { font-size: .82rem; margin-top: .25rem; }
.buffet-choice { border: 1px solid #e3e8ee; border-radius: 8px; padding: .6rem .75rem; margin-bottom: .5rem; display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.buffet-choice:has(input:checked) { border-color: var(--color-primary, #1f3354); background: #f4f6fa; }
.buffet-choice small { display: block; color: var(--color-muted, #6b7785); }
.buffet-custom-price { font-size: 1.05rem; font-weight: 600; margin: .5rem 0; }
/* Notifications (08/11/2026) : cloche flottante, bandeaux */
.km-notif { position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 50px; height: 50px; border-radius: 50%; background: var(--color-primary, #1f3354); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.km-notif svg { width: 24px; height: 24px; }
.km-notif:hover { filter: brightness(1.15); }
.km-notif-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #d92d20; color: #fff; font: 700 12px/22px system-ui, sans-serif; text-align: center; }
.km-notif-badge[hidden] { display: none; }
.km-toasts { position: fixed; right: 18px; bottom: 80px; z-index: 950; display: flex; flex-direction: column; gap: .5rem; width: min(360px, calc(100vw - 36px)); }
.km-toast { display: block; background: #fff; color: #1d2939; border-left: 5px solid #667085; border-radius: 8px; padding: .65rem .8rem; box-shadow: 0 6px 20px rgba(0,0,0,.18); text-decoration: none; animation: km-toast-in .25s ease-out; transition: opacity .5s, transform .5s; }
.km-toast strong { display: block; font-size: .92rem; }
.km-toast span { display: block; font-size: .84rem; color: #475467; margin-top: .15rem; }
.km-toast small { display: block; font-size: .72rem; color: #98a2b3; margin-top: .2rem; }
.km-toast-kitchen { border-left-color: #f79009; }
.km-toast-ready { border-left-color: #12b76a; }
.km-toast-alert { border-left-color: #d92d20; }
.km-toast.is-leaving { opacity: 0; transform: translateX(30px); }
@keyframes km-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.notif-list { list-style: none; padding: 0; margin: 0; }
.notif-list li { display: flex; gap: .75rem; padding: .7rem .85rem; border-bottom: 1px solid #eaecf0; align-items: flex-start; }
.notif-list li.is-unread { background: #f5f8ff; }
.notif-list .notif-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .4rem; flex: none; background: #667085; }
.notif-dot-kitchen { background: #f79009 !important; } .notif-dot-ready { background: #12b76a !important; } .notif-dot-alert { background: #d92d20 !important; }
.notif-list .notif-main { flex: 1; min-width: 0; }
.notif-list .notif-main a { color: inherit; text-decoration: none; }
.notif-list .notif-time { font-size: .78rem; color: #98a2b3; white-space: nowrap; }
@media print { .km-notif, .km-toasts { display: none !important; } }
/* Journal d'audit (08/11/2026) */
.audit-filters { margin-bottom: 1rem; }
.audit-filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem .75rem; margin-bottom: .75rem; }
.audit-filter-q { grid-column: span 2; }
.audit-details { font-size: .8rem; color: #475467; max-width: 420px; word-break: break-word; }
.audit-failed { background: #fff6f5; }
.audit-pager { display: flex; gap: .75rem; align-items: center; justify-content: center; margin: 1rem 0; }
@media (max-width: 640px) { .audit-filter-q { grid-column: auto; } }
/* Rentabilité, fiches produit (08/11/2026) */
.rent-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: 1rem; }
.rent-filters > div { min-width: 150px; }
.rent-filters .checkbox { margin: 0 0 .5rem; }
.nature-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; margin-bottom: .75rem; }
.nature-choice { border: 1px solid #e3e8ee; border-radius: 8px; padding: .55rem .7rem; display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; font-weight: 400; }
.nature-choice:has(input:checked) { border-color: var(--color-primary, #1f3354); background: #f4f6fa; }
.nature-choice small { display: block; color: var(--color-muted, #6b7785); font-size: .78rem; }
.product-form [hidden] { display: none !important; }
