:root {
    --ink: #1f2933;
    --muted: #667085;
    --line: #d8dee8;
    --paper: #f7f8fa;
    --panel: #ffffff;
    --accent: #0f766e;
    --accent-soft: #dff4f1;
    --warn: #b45309;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px;
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(216, 222, 232, 0.85);
    box-shadow: 0 1px 0 rgba(31, 41, 51, 0.02);
    backdrop-filter: blur(12px);
    transition: min-height 180ms ease, padding 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.topbar.is-scrolled {
    min-height: 62px;
    padding-top: 7px;
    padding-bottom: 7px;
    border-bottom-color: #cfd7e3;
    box-shadow: 0 10px 28px rgba(31, 41, 51, 0.12);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: clamp(138px, 18vw, 230px);
    height: 52px;
    object-fit: contain;
    object-position: left center;
    transition: height 180ms ease, width 180ms ease;
}

.topbar.is-scrolled .brand-logo {
    height: 42px;
    width: clamp(120px, 16vw, 190px);
}

.topnav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.topnav a {
    flex: 0 0 auto;
    color: var(--ink);
    text-decoration: none;
    padding: 10px 11px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    transition: background 160ms ease, color 160ms ease;
}

.topnav a.active,
.topnav a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.content {
    padding: 30px 28px;
    min-width: 0;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
h1,
h2,
p {
    margin: 0;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 18px;
    margin-bottom: 14px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stats article,
.panel,
.item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stats article {
    padding: 18px;
    display: grid;
    gap: 8px;
}

.stats span {
    color: var(--muted);
    font-size: 13px;
}

.stats strong {
    font-size: 24px;
}

.panel {
    padding: 18px;
}

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

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

th,
td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.right {
    text-align: right;
}

.empty {
    text-align: center;
    color: var(--muted);
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.item {
    padding: 16px;
    display: grid;
    gap: 8px;
}

@media (max-width: 820px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        min-height: auto;
        padding: 10px 16px;
    }

    .topbar.is-scrolled {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .brand-logo,
    .topbar.is-scrolled .brand-logo {
        width: 156px;
        height: 42px;
    }

    .topnav {
        justify-content: flex-start;
        width: 100%;
        padding-bottom: 2px;
    }

    .topnav a {
        padding: 9px 10px;
        font-size: 13px;
    }

    .content {
        padding: 18px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.notice {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 6px;
    border: 1px solid #9bd7c9;
    background: #e7f7f2;
    color: #0f5c52;
}

.notice.error {
    border-color: #f2b8a2;
    background: #fff1ec;
    color: #9a3412;
}

.hotel-entry-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.hotel-reservation-form {
    width: min(1040px, 100%);
    gap: 16px;
}

.hotel-form-title {
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f6;
}

.hotel-form-title h2 {
    margin-bottom: 4px;
}

.entry-block {
    border: 1px solid #e5edf5;
    border-radius: 8px;
    background: #fbfdff;
    padding: 14px;
    display: grid;
    gap: 12px;
}

.client-entry-block {
    background: #f8fbff;
    border-color: #dbeafe;
}

.entry-block-title {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.entry-block-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    flex: 0 0 auto;
}

.entry-block-title h3 {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
}

.entry-block-title p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.entry-grid {
    display: grid;
    gap: 12px;
}

.three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-entry-grid {
    max-width: 680px;
}

.centered-actions {
    justify-content: center;
    padding-top: 4px;
}

@media (max-width: 920px) {
    .three-cols {
        grid-template-columns: 1fr;
    }
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 18px;
}

.form-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    display: grid;
    gap: 12px;
}

.form-panel label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 11px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
}

textarea {
    resize: vertical;
}

button {
    border: 0;
    border-radius: 6px;
    padding: 11px 14px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #115e59;
}

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

.section-gap {
    margin-top: 18px;
}

@media (max-width: 820px) {
    .form-grid,
    .two-cols {
        grid-template-columns: 1fr;
    }
}
.server-order-layout {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(320px, 1fr);
    gap: 18px;
    align-items: start;
}

.server-order-form {
    position: sticky;
    top: 18px;
}

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

@media (max-width: 980px) {
    .server-order-layout {
        grid-template-columns: 1fr;
    }

    .server-order-form {
        position: static;
    }
}
.select-search {
    border-color: #99c7bd;
    background: #f5fffc;
}

.select-search:focus {
    outline: 2px solid #9bd7c9;
    outline-offset: 1px;
}
.combo-field {
    position: relative;
    display: grid;
    gap: 6px;
}

.combo-field > label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.combo-results {
    display: none;
    position: absolute;
    z-index: 20;
    top: 72px;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(31, 41, 51, 0.14);
}

.combo-results.open {
    display: grid;
}

.billing-guest-field .combo-results { z-index: 35; }
.billing-guest-field > small { color: #64748b; font-size: 10px; line-height: 1.35; }
.billing-guest-field:focus-within > small { color: #0f766e; }

.combo-option {
    display: grid;
    gap: 3px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 11px 12px;
    background: #ffffff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.combo-option:hover,
.combo-option:focus {
    background: var(--accent-soft);
    color: var(--ink);
}

.combo-option strong {
    font-size: 14px;
}

.combo-option span,
.combo-empty {
    color: var(--muted);
    font-size: 12px;
}

.combo-empty {
    padding: 12px;
}

.ghost-button {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--muted);
}

.ghost-button:hover {
    background: #f2f5f7;
    color: var(--ink);
}
.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.small-button {
    padding: 7px 10px;
    border-radius: 6px;
    background: #eef7f5;
    color: var(--accent);
    border: 1px solid #b7ddd5;
    font-size: 12px;
}

.small-button:hover {
    background: var(--accent-soft);
    color: var(--accent);
}
.reservations-head {
    gap: 18px;
    align-items: end;
}

.reservation-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
    align-items: end;
    gap: 10px;
    width: min(720px, 100%);
}

.search-control {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.search-control input {
    min-height: 38px;
    border-color: #c9d8de;
    background: #ffffff;
}

.search-control input:focus {
    outline: 2px solid #9bd7c9;
    outline-offset: 1px;
    border-color: #7fc8ba;
}

.table-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .reservations-head {
        align-items: stretch;
        flex-direction: column;
    }

    .reservation-filters {
        grid-template-columns: 1fr 1fr auto;
        width: 100%;
    }
}

/* Reservations premium compactes - 2026-10-06 */
body.page-reservations {
    background:
        linear-gradient(135deg, rgba(255, 245, 204, .72) 0%, rgba(255,255,255,.94) 34%, rgba(236,248,246,.92) 100%);
}
body.page-reservations .content {
    gap: 9px;
}
body.page-reservations .reservations-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px, .65fr) minmax(520px, 1.35fr);
    align-items: center;
    gap: 18px;
    margin-bottom: 0;
    padding: 12px 14px;
    overflow: hidden;
    border: 1px solid #d9a82d;
    border-radius: 8px;
    background: linear-gradient(118deg, #fff7d9 0%, #f4c84f 40%, #d89b12 100%);
    box-shadow: 0 9px 20px rgba(120, 78, 4, .20), inset 0 1px 0 rgba(255,255,255,.9), inset 0 -3px 0 rgba(129,80,0,.12);
}
body.page-reservations .reservations-head::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: rgba(255,255,255,.78);
    pointer-events: none;
}
.reservations-title-block { min-width: 0; }
.reservations-kicker {
    display: block;
    margin-bottom: 2px;
    color: #72500a;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}
body.page-reservations .reservations-head h1 {
    margin: 0;
    color: #142b44;
    font-size: 22px;
    line-height: 1.05;
    text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
body.page-reservations .reservations-head p {
    margin: 3px 0 0;
    color: #5e4a20;
    font-size: 10px;
    line-height: 1.25;
}
body.page-reservations .reservation-filters {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, .8fr) 34px;
    width: 100%;
    gap: 7px;
}
body.page-reservations .search-control { gap: 2px; color: #59420d; font-size: 9px; }
body.page-reservations .search-control input {
    min-height: 34px;
    height: 34px;
    padding: 5px 9px;
    border-color: rgba(110,74,4,.28);
    border-radius: 6px;
    background: rgba(255,255,255,.9);
    box-shadow: inset 0 1px 2px rgba(72,47,0,.08), 0 2px 6px rgba(96,61,0,.08);
}
body.page-reservations #reservation-clear-filters {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    border-color: rgba(110,74,4,.28);
    background: rgba(255,255,255,.82);
}
body.page-reservations #reservation-clear-filters::before {
    content: "×";
    display: grid;
    place-items: center;
    color: #76520a;
    font-size: 20px;
    font-weight: 800;
}
body.page-reservations .reservations-panel {
    padding: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 12px 28px rgba(74,48,4,.10), inset 0 1px 0 #fff;
}
body.page-reservations .reservation-pending-strip {
    min-height: 34px;
    margin-bottom: 6px;
    padding: 5px 8px;
    border-color: #e5c36a;
    border-radius: 6px;
    background: linear-gradient(110deg,#fff9e6,#fffdf7);
}
body.page-reservations .reservation-pending-strip > span { font-size: 9px; }
body.page-reservations .reservation-pending-strip a,
body.page-reservations .reservation-pending-strip em { min-height: 22px; padding: 3px 7px; font-size: 9px; }
body.page-reservations .reservation-group-toolbar {
    min-height: 32px;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg,#fff8df,#fff);
}
body.page-reservations .reservation-groups { gap: 4px; }
body.page-reservations .reservation-group-card {
    border-color: #e3d3a7;
    border-left-width: 3px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(64,46,11,.07), inset 0 1px 0 #fff;
}
body.page-reservations .reservation-group-card.is-pending {
    border-left-color: #d99a00;
    background: linear-gradient(92deg,#fff5ce 0,#fffdf8 14%,#fff 45%);
}
body.page-reservations .reservation-group-card:hover {
    transform: translateY(-1px);
    border-color: #d5b352;
    box-shadow: 0 7px 15px rgba(92,62,5,.13), inset 0 1px 0 #fff;
}
body.page-reservations .reservation-group-summary {
    grid-template-columns: 24px minmax(102px,.68fr) minmax(145px,1.3fr) minmax(150px,1.05fr) minmax(130px,.9fr) minmax(100px,.62fr) minmax(88px,.52fr) 66px;
    min-height: 44px;
    gap: 6px;
    padding: 3px 7px;
}
body.page-reservations .reservation-group-summary svg { width: 15px; height: 15px; }
body.page-reservations .reservation-group-check input { width: 15px; height: 15px; }
body.page-reservations .reservation-group-toggle {
    gap: 5px;
    min-height: 34px;
    padding: 3px 6px;
    border: 1px solid #d8a928;
    border-radius: 5px;
    background: linear-gradient(145deg,#fff4bf,#e6ad24);
    color: #3f300c;
    box-shadow: 0 3px 7px rgba(122,78,0,.16), inset 0 1px 0 rgba(255,255,255,.86), inset 0 -2px 0 rgba(123,76,0,.12);
}
body.page-reservations .reservation-group-toggle:hover,
body.page-reservations .reservation-group-toggle:focus,
body.page-reservations .reservation-group-toggle:active,
body.page-reservations .reservation-group-toggle[aria-expanded="true"] {
    background: linear-gradient(145deg,#ffefaa,#d99a0c);
    color: #302306;
    box-shadow: 0 4px 9px rgba(122,78,0,.20), inset 0 1px 0 rgba(255,255,255,.82);
}
body.page-reservations .reservation-group-toggle > svg { color: #765000; }
body.page-reservations .reservation-group-toggle strong { font-size: 11px; }
body.page-reservations .reservation-group-party strong,
body.page-reservations .reservation-group-stay strong,
body.page-reservations .reservation-group-rooms strong { font-size: 10px; }
body.page-reservations .reservation-group-toggle small,
body.page-reservations .reservation-group-party span,
body.page-reservations .reservation-group-stay small,
body.page-reservations .reservation-group-rooms small { font-size: 8px; }
body.page-reservations .reservation-group-total strong { color: #8b5d00; font-size: 11px; }
body.page-reservations .reservation-group-invoice {
    min-height: 25px;
    padding: 3px 5px;
    border-radius: 5px;
    font-size: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
body.page-reservations .reservation-icon-action,
body.page-reservations .reservation-detail-row a {
    width: 27px;
    height: 27px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(8,127,115,.10), inset 0 1px 0 #fff;
}
body.page-reservations .reservation-icon-action svg,
body.page-reservations .reservation-detail-row a svg { width: 13px; height: 13px; }
body.page-reservations .reservation-detail-head,
body.page-reservations .reservation-detail-row { padding-top: 5px; padding-bottom: 5px; }
body.page-reservations .reservation-detail-row { min-height: 38px; }

@media (max-width: 1100px) {
    body.page-reservations .reservations-head { grid-template-columns: minmax(200px,.55fr) minmax(440px,1.45fr); }
    body.page-reservations .reservation-group-summary { grid-template-columns: 24px 96px minmax(135px,1.25fr) minmax(140px,1fr) minmax(95px,.72fr) 82px 62px; }
}
@media (max-width: 760px) {
    body.page-reservations .content { gap: 6px; }
    body.page-reservations .reservations-head {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 9px;
    }
    body.page-reservations .reservations-title-block { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 7px; }
    body.page-reservations .reservations-kicker { display: none; }
    body.page-reservations .reservations-head h1 { font-size: 18px; }
    body.page-reservations .reservations-head p { margin: 0; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    body.page-reservations .reservation-filters { grid-template-columns: 1.2fr .9fr 32px; gap: 5px; }
    body.page-reservations .search-control span { display: none; }
    body.page-reservations .search-control input,
    body.page-reservations #reservation-clear-filters { height: 32px; min-height: 32px; }
    body.page-reservations .reservations-panel { padding: 5px; }
    body.page-reservations .reservation-pending-strip { margin-bottom: 4px; }
    body.page-reservations .reservation-group-toolbar { margin-bottom: 4px; }
    body.page-reservations .reservation-groups { gap: 3px; }
    body.page-reservations .reservation-group-summary {
        grid-template-columns: 20px 62px minmax(76px,1fr) 50px 27px 56px;
        min-height: 42px;
        gap: 3px;
        padding: 2px 4px;
    }
    body.page-reservations .reservation-group-invoice { width: 27px; min-height: 27px; }
    body.page-reservations .reservation-group-actions .reservation-icon-action { width: 27px; height: 27px; }
}
@media (max-width: 430px) {
    body.page-reservations .reservations-head p { display: none; }
    body.page-reservations .reservations-title-block { display: block; }
    body.page-reservations .reservation-group-summary { grid-template-columns: 19px 58px minmax(66px,1fr) 46px 26px 54px; }
    body.page-reservations .reservation-group-toggle small { display: none; }
}

@media (max-width: 560px) {
    .reservation-filters {
        grid-template-columns: 1fr;
    }
}
.invoice-mode-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    margin-bottom: 14px;
    border: 1px solid #d8e2ed;
    border-radius: 8px;
    background: #f6f9fc;
}

.invoice-mode-tabs a {
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.invoice-mode-tabs a.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.invoice-mode-tabs a:hover {
    color: var(--primary);
}
.invoice-archive-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.invoice-archive-actions .search-control {
    margin: 0;
}

.invoice-archive-panel {
    padding: 0;
    overflow: clip;
}

.invoice-archive-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    background: #f8fafc;
}

.invoice-archive-summary::-webkit-details-marker {
    display: none;
}

.invoice-archive-summary::before {
    content: '+';
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid #c9d6e2;
    border-radius: 50%;
    color: var(--primary);
    font-size: 18px;
    font-weight: 500;
}

.invoice-archive-panel[open] .invoice-archive-summary {
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.invoice-archive-panel[open] .invoice-archive-summary::before {
    content: '-';
}

.invoice-archive-summary span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.invoice-archive-summary strong {
    color: var(--ink);
    font-size: 16px;
}

.invoice-archive-summary em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
}

.invoice-archive-content {
    padding: 14px 16px 16px;
}

.invoice-archive-toolbar {
    margin-bottom: 10px;
}

.invoice-archive-toolbar h2 {
    margin: 0;
    font-size: 16px;
}

@media (max-width: 760px) {
    .invoice-archive-actions {
        width: 100%;
        justify-content: stretch;
    }

    .invoice-archive-actions .search-control,
    .invoice-archive-actions .bulk-action-form,
    .invoice-archive-actions .bulk-action-form button {
        width: 100%;
    }

    .invoice-archive-summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .invoice-archive-summary em {
        grid-column: 2;
    }

    .invoice-archive-content {
        padding: 12px;
    }
}
.invoice-search-panel {
    margin-bottom: 18px;
}

/* Keep the workbench focused on the invoice once it has been generated. */
.invoice-page-has-document ~ .invoice-pending-summary,
.invoice-page-has-document ~ .invoice-group-generator {
    display: none;
}

.invoice-page-has-document ~ .invoice-search-panel {
    margin-bottom: 10px;
    padding: 12px 14px;
    border-color: #cfe3df;
    background: #fbfefd;
}

.invoice-page-has-document ~ .invoice-search-panel .invoice-mode-tabs {
    margin-bottom: 8px;
}

.invoice-page-has-document ~ .invoice-search-panel .invoice-search-form {
    gap: 8px;
}

.invoice-options-panel {
    margin: 8px 0;
    border: 1px solid #dbe5ec;
    border-radius: 8px;
    background: #ffffff;
}

.invoice-options-panel > summary,
.invoice-finance-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 9px 12px;
    cursor: pointer;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    list-style: none;
}

.invoice-options-panel > summary::-webkit-details-marker,
.invoice-finance-details > summary::-webkit-details-marker {
    display: none;
}

.invoice-options-panel > summary::before,
.invoice-finance-details > summary::before {
    content: '+';
    display: inline-grid;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    place-items: center;
    border: 1px solid #c9d6e2;
    border-radius: 50%;
    color: var(--primary);
    font-size: 16px;
    font-weight: 500;
}

.invoice-options-panel[open] > summary::before,
.invoice-finance-details[open] > summary::before {
    content: '-';
}

.invoice-options-panel > summary span {
    margin-right: auto;
}

.invoice-options-panel > summary strong {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.invoice-options-content {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
    border-top: 1px solid #e6edf2;
}

.invoice-options-content .invoice-language-picker,
.invoice-options-content .invoice-scope-picker {
    margin: 0;
}

.invoice-search-form,
.invoice-actions,
.archive-form {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.invoice-search-form label,
.archive-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.archive-form input[type="number"] {
    width: 118px;
    text-align: right;
}
.invoice-actions {
    display: grid;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.invoice-finance-details {
    border-top: 1px solid #dbe3ec;
}

.invoice-finance-details > summary {
    min-height: 36px;
    padding: 8px 0 0;
    justify-content: flex-start;
    color: var(--muted);
    font-size: 12px;
}

.invoice-finance-details > summary::before {
    width: 18px;
    height: 18px;
    margin-right: 0;
    font-size: 14px;
}

.invoice-finance-details .invoice-finance-actions {
    padding-top: 12px;
}

.invoice-format-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid #dbe3ec;
}

.invoice-format-actions .invoice-action-button {
    min-width: 92px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.invoice-format-actions .invoice-action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(20, 43, 69, 0.10);
}

.invoice-format-actions .invoice-proforma-toggle {
    border-color: #d7b400;
    color: #6f5a00;
    background: #fffbea;
}

.invoice-format-actions .invoice-proforma-toggle:hover,
.invoice-format-actions .invoice-proforma-toggle.is-active {
    border-color: #e0bd00;
    color: #11183f;
    background: #ffdc00;
}

.invoice-finance-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr)) minmax(150px, 1.1fr);
    align-items: end;
    gap: 12px;
    width: 100%;
}

.invoice-finance-actions label {
    min-width: 0;
}

.invoice-finance-actions input[type="number"],
.invoice-finance-actions input[type="date"],
.invoice-finance-actions select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
}

.invoice-finance-actions .invoice-archive-button {
    min-height: 40px;
    white-space: nowrap;
}

@media (max-width: 840px) {
    .invoice-finance-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .invoice-finance-actions .invoice-archive-button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .invoice-actions {
        padding: 12px;
    }

    .invoice-format-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .invoice-format-actions .invoice-action-button {
        width: 100%;
        min-width: 0;
    }

    .invoice-finance-actions {
        grid-template-columns: 1fr;
    }
}

.invoice-document {
    max-width: 980px;
    margin: 18px auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.invoice-header-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 22px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 18px;
}

.invoice-brand-mark {
    display: flex;
    align-items: flex-start;
}

.invoice-logo {
    width: 180px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}

.invoice-heading-center {
    text-align: center;
    align-self: center;
}

.invoice-heading-center h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    color: var(--ink);
}

.invoice-number-box {
    justify-self: end;
    display: grid;
    gap: 7px;
    min-width: 190px;
    text-align: right;
}

.invoice-number-box p {
    display: grid;
    gap: 2px;
}

.invoice-number-box span,
.invoice-stay-band span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.invoice-number-box strong,
.invoice-stay-band strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

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

.invoice-party-card {
    min-height: 156px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.invoice-party-card h3 {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.invoice-party-card p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.invoice-party-card p strong {
    color: var(--ink);
    font-size: 13px;
}

.invoice-stay-band {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 0.7fr 1.2fr;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid #cfd7e3;
    border-radius: 8px;
    background: #ffffff;
    margin-bottom: 20px;
}

.invoice-stay-band div {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.invoice-table {
    min-width: 0;
}

.invoice-table tfoot th {
    font-size: 14px;
}

.grand-total th {
    color: var(--accent);
    font-size: 16px;
}

.muted-text {
    color: var(--muted);
}

@media print {
    .topbar,
    .no-print,
    .notice:not(.print-notice) {
        display: none !important;
    }

    body {
        background: #ffffff;
    }

    .content {
        padding: 0;
    }

    .invoice-document {
        margin: 0;
        max-width: none;
        border: 0;
        border-radius: 0;
        padding: 0;
    }
}

@media (max-width: 760px) {
    .invoice-top,
    .invoice-meta {
        grid-template-columns: 1fr;
    }

    .invoice-title {
        text-align: left;
    }
}
.form-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ghost-link,
.action-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ghost-link {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

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

.inline-form {
    margin: 0;
    display: inline-flex;
}

.warning-button {
    background: #fff7ed;
    color: var(--warn);
    border-color: #fed7aa;
}

.warning-button:hover {
    background: #ffedd5;
    color: #9a3412;
}

.danger-button {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.danger-button:hover {
    background: #ffe4e6;
    color: #9f1239;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef2f6;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

tr.is-cancelled td {
    color: var(--muted);
    background: #fafafa;
}
.compact-filters {
    grid-template-columns: minmax(240px, 1fr) auto;
    width: min(520px, 100%);
}

@media (max-width: 560px) {
    .compact-filters {
        grid-template-columns: 1fr;
    }
}
.bulk-toolbar {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bulk-action-form {
    margin: 0;
    display: inline-flex;
}

.select-col {
    width: 42px;
    text-align: center;
}

.select-col input[type="checkbox"] {
    width: 16px;
    height: 16px;
    padding: 0;
}
.success-button {
    background: #ecfdf3;
    color: #047857;
    border-color: #bbf7d0;
}

.success-button:hover {
    background: #d1fae5;
    color: #065f46;
}
.combo-inline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hidden-form {
    display: none;
}

.purchase-document {
    margin-top: 0;
}

button:disabled,
button:disabled:hover {
    opacity: 0.55;
    cursor: not-allowed;
}
.wide-panel {
    grid-column: 1 / -1;
}

.multi-entry-table table {
    min-width: 1180px;
}

.entry-table th,
.entry-table td {
    padding: 8px;
    vertical-align: top;
}

.entry-table input,
.entry-table select {
    min-height: 38px;
    padding: 8px 9px;
}

.entry-table .combo-field {
    min-width: 230px;
}

.compact-combo .combo-results {
    top: 68px;
}

.table-combo .combo-results {
    top: 40px;
    min-width: 280px;
}

.purchase-line td:last-child {
    width: 78px;
}

@media (max-width: 820px) {
    .wide-panel {
        grid-column: auto;
    }
}
.print-actions {
    align-items: center;
}

.print-document-copy {
    display: none;
}

.invoice-table .right,
.invoice-table th.right,
.invoice-table td.right,
.grand-total .right {
    white-space: nowrap;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.invoice-table th:not(.right),
.invoice-table td:not(.right) {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

@media print {
    .invoice-table {
        table-layout: fixed;
        width: 100%;
    }

    .invoice-table th.right,
    .invoice-table td.right {
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: keep-all !important;
    }
}
.room-available {
    border-color: #bbf7d0;
}

.room-occupied {
    border-color: #fed7aa;
    background: #fffaf3;
}

.status-badge.success {
    background: #ecfdf3;
    color: #047857;
}

.status-badge.warning {
    background: #fff7ed;
    color: var(--warn);
}
.rooms-head {
    gap: 18px;
    align-items: end;
}

.room-availability-form {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.room-availability-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.rooms-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.room-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.room-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.room-card-top,
.room-card-meta,
.room-card-note {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.room-card-top > div {
    display: grid;
    gap: 4px;
}

.room-card-top strong {
    font-size: 17px;
}

.room-card-top span,
.room-card-meta,
.room-card-note {
    color: var(--muted);
    font-size: 13px;
}

.room-card-meta,
.room-card-note {
    border-top: 1px solid #eef2f6;
    padding-top: 12px;
}

.room-status {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.room-status.available {
    background: #ecfdf3;
    color: #047857;
}

.room-status.occupied {
    background: #fff7ed;
    color: var(--warn);
}

.room-card.room-available {
    border-color: #bbf7d0;
}

.room-card.room-occupied {
    border-color: #fed7aa;
    background: #fffaf3;
}

.room-card-note.calm {
    justify-content: flex-start;
    color: #047857;
}

@media (max-width: 760px) {
    .rooms-head,
    .rooms-summary,
    .room-card-meta,
    .room-card-note {
        align-items: stretch;
        flex-direction: column;
    }

    .room-availability-form {
        width: 100%;
    }
}
@media print {
    body.print-pdf-mode {
        background: #ffffff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.print-pdf-mode .content {
        padding: 30px 28px;
    }

    body.print-pdf-mode .invoice-document {
        max-width: 980px;
        margin: 18px auto;
        padding: 28px;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 8px;
    }
}
.dashboard-head {
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-heading-copy {
    display: grid;
    gap: 6px;
}

.dashboard-kicker,
.dashboard-panel-eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.dashboard-heading-copy h1 {
    font-size: 30px;
    line-height: 1.12;
    font-weight: 800;
}

.dashboard-heading-copy p,
.dashboard-panel-title p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.dashboard-unpaid-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 12px 9px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(31, 41, 51, 0.05);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.dashboard-unpaid-toggle:hover,
.dashboard-unpaid-toggle.is-open {
    background: #fffdf9;
    border-color: #f7c98f;
    box-shadow: 0 10px 24px rgba(180, 83, 9, 0.12);
    transform: translateY(-1px);
}

.dashboard-unpaid-toggle span {
    font-size: 13px;
    font-weight: 800;
}

.dashboard-unpaid-toggle strong {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #b45309;
    font-size: 12px;
    line-height: 1;
}

.dashboard-shell {
    display: grid;
    gap: 18px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-card,
.dashboard-panel {
    background: #ffffff;
    border: 1px solid #e4eaf2;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(31, 41, 51, 0.06);
}

.dashboard-card {
    position: relative;
    min-height: 142px;
    padding: 18px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    isolation: isolate;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.055;
}

.dashboard-card.teal::before { background: #0f766e; }
.dashboard-card.blue::before { background: #2563eb; }
.dashboard-card.gold::before { background: #b45309; }

.dashboard-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.dashboard-card-topline > span:first-child,
.stay-metrics span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.dashboard-card-icon-wrap,
.dashboard-mini-icon-wrap {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #e7edf3;
    border-radius: 8px;
    background: #f8fafc;
}

.dashboard-card-icon-wrap {
    width: 125px;
    height: 125px;
    background: transparent;
    border-color: transparent;
}

.dashboard-card-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.dashboard-card strong {
    align-self: end;
    color: var(--ink);
    font-size: clamp(22px, 2.1vw, 30px);
    font-weight: 800;
    line-height: 1.06;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.dashboard-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
    gap: 18px;
    align-items: stretch;
}

.dashboard-panel {
    padding: 18px;
    min-width: 0;
}

.dashboard-panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-panel-title > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.dashboard-panel-title h2 {
    margin: 0;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}

.dashboard-mini-icon-wrap {
    width: 125px;
    height: 125px;
    background: transparent;
    border-color: transparent;
}

.dashboard-mini-icon-wrap.warning {
    background: #fff7ed;
    border-color: #fed7aa;
}

.dashboard-mini-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.revenue-panel,
.unpaid-panel {
    grid-column: 1;
}

.occupancy-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-rows: auto 1fr;
}

.stay-panel {
    grid-column: 1;
}

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

.dashboard-revenue-table,
.dashboard-unpaid-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.dashboard-revenue-table th,
.dashboard-revenue-table td,
.dashboard-unpaid-table th,
.dashboard-unpaid-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #edf1f6;
    white-space: nowrap;
}

.dashboard-revenue-table th,
.dashboard-unpaid-table th {
    color: #7b8794;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-revenue-table td,
.dashboard-unpaid-table td {
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    vertical-align: middle;
}

.dashboard-revenue-table .right,
.dashboard-unpaid-table .right {
    font-variant-numeric: tabular-nums;
}

.activity-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 999px;
    vertical-align: 1px;
}

.activity-dot.room { background: var(--accent); }
.activity-dot.resto { background: #2563eb; }

.dashboard-total-row td {
    background: #f8fbfa;
    color: var(--accent);
    font-weight: 900;
}

.occupancy-content {
    display: grid;
    gap: 16px;
    align-content: center;
    min-height: 100%;
}

.occupancy-gauge {
    width: min(218px, 78%);
    aspect-ratio: 1;
    margin: 4px auto 0;
    border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--rate) * 1%), #eef2f6 0);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.06);
}

.occupancy-gauge > div {
    width: 74%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ffffff;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(31, 41, 51, 0.08);
}

.occupancy-gauge strong {
    color: var(--accent);
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.occupancy-gauge span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.occupancy-bars {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    height: 142px;
    padding: 12px 12px 10px;
    border: 1px solid #e1e8ef;
    border-radius: 8px;
    background: #f8fafc;
    align-items: end;
}

.occupancy-bar {
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 6px;
    align-items: end;
    text-align: center;
}

.occupancy-bar b {
    color:#0f766e;
    font-size:10px;
    font-weight:900;
    line-height:1;
    font-variant-numeric:tabular-nums;
}

.occupancy-bar span {
    width: 100%;
    min-height: 4px;
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(180deg, #0f766e, #8edbd0);
    box-shadow: 0 5px 12px rgba(15, 118, 110, 0.16);
}

.occupancy-bar small {
    color: #7b8794;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.stay-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.stay-metrics div {
    min-height: 104px;
    padding: 16px;
    border: 1px solid #e8eef4;
    border-radius: 8px;
    background: #fbfcfd;
    display: grid;
    align-content: space-between;
    gap: 10px;
}

.stay-metrics strong {
    color: var(--ink);
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.unpaid-panel[hidden] {
    display: none;
}

.unpaid-panel {
    border-color: #f3d7b5;
}

@media (max-width: 1080px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .revenue-panel,
    .occupancy-panel,
    .stay-panel,
    .unpaid-panel {
        grid-column: auto;
        grid-row: auto;
    }

    .occupancy-content {
        grid-template-columns: minmax(220px, 0.65fr) minmax(260px, 1fr);
        align-items: center;
    }
}

@media (max-width: 820px) {
    .dashboard-hero,
    .occupancy-content {
        grid-template-columns: 1fr;
    }

    .dashboard-head {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-unpaid-toggle {
        width: fit-content;
    }
}

@media (max-width: 620px) {
    .dashboard-heading-copy h1 {
        font-size: 25px;
    }

    .dashboard-card strong {
        white-space: normal;
    }

    .stay-metrics {
        grid-template-columns: 1fr;
    }

    .dashboard-panel,
    .dashboard-card {
        padding: 15px;
    }
}
.room-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.room-timeline {
    display: grid;
    gap: 10px;
    border-top: 1px solid #eef2f6;
    padding-top: 12px;
}

.room-timeline-item {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid #f2d5aa;
    border-radius: 8px;
    background: #fffaf3;
}

.room-timeline-main {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.room-timeline-main strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.25;
}

.room-timeline-main span {
    flex: 0 0 auto;
    color: var(--warn);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.room-timeline-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 10px;
}

.room-timeline-details span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 560px) {
    .room-timeline-main,
    .room-timeline-details {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .room-timeline-main span {
        white-space: normal;
    }
}
@media (max-width: 760px) {
    .invoice-header-row,
    .invoice-party-grid,
    .invoice-stay-band {
        grid-template-columns: 1fr;
    }

    .invoice-heading-center,
    .invoice-number-box {
        justify-self: stretch;
        text-align: left;
    }
}

@media print {
    .invoice-header-row {
        grid-template-columns: 1fr auto 1fr;
        gap: 16px;
        padding-bottom: 12px;
        margin-bottom: 14px;
    }

    .invoice-heading-center h2 {
        font-size: 24px;
    }

    .invoice-logo {
        width: 150px;
        height: 48px;
    }

    .invoice-party-grid {
        gap: 12px;
        margin-bottom: 14px;
    }

    .invoice-party-card {
        min-height: 0;
        padding: 10px 12px;
    }

    .invoice-stay-band {
        grid-template-columns: 1.1fr 1fr 1fr 0.7fr 1.2fr;
        padding: 10px 12px;
        margin-bottom: 14px;
    }
}
.invoice-closing {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.invoice-amount-words {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.invoice-amount-words span,
.invoice-payment-grid span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.invoice-amount-words strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.invoice-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr minmax(160px, 0.7fr);
    gap: 12px;
}

.invoice-payment-grid > div {
    min-height: 74px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.invoice-payment-grid p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.invoice-signature-box {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

@media (max-width: 760px) {
    .invoice-payment-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .invoice-closing {
        gap: 10px;
        margin-top: 14px;
    }

    .invoice-amount-words,
    .invoice-payment-grid > div {
        padding: 9px 10px;
    }

    .invoice-payment-grid {
        grid-template-columns: 1fr 1fr minmax(130px, 0.7fr);
        gap: 8px;
    }
}

/* Invoice document premium A4 redesign */
.invoice-document {
    --invoice-navy: #111641;
    --invoice-yellow: #ffd400;
    --invoice-ink: #111827;
    width: min(100%, 794px);
    max-width: 794px;
    margin: 18px auto;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d7deea;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    color: var(--invoice-ink);
    font-size: 12px;
    line-height: 1.28;
}

.invoice-header-row {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(130px, 1fr) auto;
    align-items: end;
    gap: 14px;
    margin: -20px -20px 14px;
    padding: 14px 20px 16px;
    min-height: 92px;
    overflow: hidden;
    color: #ffffff;
    background: var(--invoice-navy);
    border-bottom: 3px solid #111111;
}

.invoice-header-row::before {
    content: "";
    position: absolute;
    inset: 0 -58px 0 auto;
    width: 245px;
    background: var(--invoice-yellow);
    clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
}

.invoice-header-row::after {
    content: "";
    position: absolute;
    right: 205px;
    bottom: -1px;
    width: 58px;
    height: 18px;
    background: var(--invoice-yellow);
    clip-path: polygon(0 0, 100% 0, 72% 100%, 18% 100%);
    z-index: 0;
}

.invoice-header-row > * {
    position: relative;
    z-index: 1;
}

.invoice-brand-mark {
    align-self: start;
    display: flex;
    align-items: flex-start;
}

.invoice-logo {
    width: 134px;
    height: 44px;
    padding: 0;
    object-fit: contain;
    object-position: left center;
    background: transparent;
    border-radius: 0;
}

.invoice-heading-center {
    align-self: center;
    text-align: center;
}

.invoice-heading-center h2 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.invoice-identity-line {
    justify-self: end;
    align-self: end;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-right: 86px;
    padding-top: 8px;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.invoice-identity-line strong {
    color: #ffffff;
    font-weight: 900;
}

.invoice-party-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.invoice-party-card {
    min-height: 0;
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    border-left: 4px solid var(--invoice-navy);
    border-radius: 6px;
    background: #ffffff;
}

.invoice-party-card.client-card {
    border-left-color: var(--invoice-yellow);
}

.invoice-party-card h3 {
    margin: 0 0 6px;
    color: var(--invoice-navy);
    font-size: 11px;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.invoice-party-card p {
    margin-top: 3px;
    color: #374151;
    font-size: 10.8px;
    line-height: 1.24;
}

.invoice-party-card p strong {
    color: var(--invoice-ink);
    font-size: 11.5px;
    font-weight: 900;
}

.invoice-stay-band {
    display: grid;
    grid-template-columns: 1.1fr 0.95fr 0.95fr 0.55fr 1.05fr;
    gap: 7px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 1px solid #cfd7e6;
    border-radius: 6px;
    background: #f7f9fc;
}

.invoice-stay-band div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.invoice-stay-band span {
    color: #526071;
    font-size: 9.5px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.invoice-stay-band strong {
    color: var(--invoice-ink);
    font-size: 10.5px;
    line-height: 1.16;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.invoice-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid #27314f;
    font-size: 10.8px;
}

.invoice-table th,
.invoice-table td {
    padding: 5px 7px;
    line-height: 1.18;
    vertical-align: top;
    border-bottom: 1px solid #d9e0ec;
}

.invoice-table thead th {
    padding: 6px 7px;
    color: #ffffff;
    background: var(--invoice-navy);
    border-right: 1px solid rgba(255, 255, 255, 0.38);
    font-size: 10.5px;
    font-weight: 900;
    text-transform: none;
}

.invoice-table thead th:first-child {
    background: linear-gradient(90deg, var(--invoice-navy), #1f2a63);
}

.invoice-table tbody td:first-child,
.invoice-table thead th:first-child {
    width: 52%;
}

.invoice-table tbody td:nth-child(2),
.invoice-table thead th:nth-child(2) {
    width: 11%;
}

.invoice-table tbody td:nth-child(3),
.invoice-table thead th:nth-child(3),
.invoice-table tbody td:nth-child(4),
.invoice-table thead th:nth-child(4) {
    width: 18.5%;
}

.invoice-table .right,
.invoice-table th.right,
.invoice-table td.right {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.invoice-table th:not(.right),
.invoice-table td:not(.right) {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.invoice-table tfoot th {
    padding: 5px 7px;
    color: var(--invoice-ink);
    background: #ffffff;
    border-bottom: 1px solid #cfd7e6;
    font-size: 10.8px;
    font-weight: 900;
}

.invoice-table tfoot .grand-total th {
    color: var(--invoice-navy);
    background: #fff4b8;
    border-top: 2px solid var(--invoice-navy);
    font-size: 11.4px;
}

.invoice-closing {
    position: relative;
    display: grid;
    gap: 8px;
    margin: 10px -20px -20px;
    padding: 10px 20px 30px;
    overflow: hidden;
    background: #ffffff;
}

.invoice-closing::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 24px;
    background: var(--invoice-navy);
    z-index: 0;
}

.invoice-closing::before {
    content: "";
    position: absolute;
    left: -24px;
    bottom: 0;
    width: 170px;
    height: 38px;
    background: var(--invoice-yellow);
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
    z-index: 1;
}

.invoice-closing > * {
    position: relative;
    z-index: 2;
}

.invoice-amount-words {
    display: grid;
    gap: 3px;
    padding: 8px 10px;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    background: #f8fafc;
}

.invoice-amount-words span,
.invoice-payment-grid span {
    color: #526071;
    font-size: 9.5px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.invoice-amount-words strong {
    color: var(--invoice-navy);
    font-size: 11.5px;
    line-height: 1.18;
    font-weight: 900;
}

.invoice-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr minmax(136px, 0.58fr);
    gap: 8px;
}

.invoice-payment-grid > div {
    min-height: 54px;
    padding: 8px 9px;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    background: #ffffff;
}

.invoice-payment-grid p {
    margin-top: 4px;
    color: #374151;
    font-size: 10.2px;
    line-height: 1.22;
}

.invoice-signature-box {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #111827;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    html,
    body {
        width: 210mm;
        min-height: 297mm;
        background: #ffffff;
    }

    .invoice-document {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 18px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        font-size: 10.6px;
        page-break-inside: avoid;
    }

    .invoice-header-row {
        margin: -18px -18px 12px;
        padding: 13px 18px 15px;
        min-height: 84px;
    }

    .invoice-logo {
        width: 126px;
        height: 40px;
    }

    .invoice-heading-center h2 {
        font-size: 22px;
    }

    .invoice-party-card p,
    .invoice-table,
    .invoice-payment-grid p {
        font-size: 10px;
    }

    .invoice-table th,
    .invoice-table td {
        padding: 4px 6px;
    }

    .invoice-closing {
        margin: 9px -18px -18px;
        padding: 9px 18px 28px;
    }
}

@media (max-width: 860px) {
    .invoice-header-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .invoice-heading-center {
        text-align: left;
    }

    .invoice-identity-line {
        justify-self: start;
        margin-right: 0;
        flex-wrap: wrap;
    }

    .invoice-party-grid,
    .invoice-payment-grid {
        grid-template-columns: 1fr;
    }

    .invoice-stay-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Invoice decorative band geometry correction */
.invoice-header-row {
    isolation: isolate;
}

.invoice-header-row::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: -10px;
    width: 244px;
    background: #ffdb00;
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
}

.invoice-header-row::after {
    content: "";
    position: absolute;
    right: 198px;
    bottom: -10px;
    width: 42px;
    height: 20px;
    background: #f6a313;
    clip-path: polygon(0 0, 100% 0, 45% 100%);
    z-index: 0;
}

.invoice-closing {
    isolation: isolate;
}

.invoice-closing::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 108px;
    height: 33px;
    background: #111641;
    z-index: 0;
}

.invoice-closing::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 150px;
    height: 50px;
    background: #ffdb00;
    clip-path: polygon(0 0, 92% 0, 72% 100%, 0 100%);
    z-index: 1;
}

.invoice-closing .invoice-amount-words,
.invoice-closing .invoice-payment-grid {
    position: relative;
    z-index: 2;
}

@media print {
    .invoice-header-row::before {
        right: 0;
        bottom: -9px;
        width: 228px;
    }

    .invoice-header-row::after {
        right: 185px;
        bottom: -9px;
        width: 40px;
        height: 18px;
    }

    .invoice-closing::after {
        left: 104px;
        height: 31px;
    }

    .invoice-closing::before {
        width: 144px;
        height: 47px;
    }
}

/* Invoice decorative band final reference geometry */
.invoice-header-row {
    overflow: visible !important;
    isolation: isolate;
}

.invoice-header-row::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    width: 236px;
    height: calc(100% + 10px);
    background: #ffdc00;
    clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
    pointer-events: none;
}

.invoice-header-row::after {
    content: "";
    position: absolute;
    right: 198px;
    bottom: -10px;
    width: 46px;
    height: 20px;
    background: #f4a21a;
    clip-path: polygon(0 0, 100% 0, 48% 100%);
    z-index: 0;
    pointer-events: none;
}

.invoice-header-row > * {
    position: relative;
    z-index: 2;
}

.invoice-identity-line {
    z-index: 3;
}

@media print {
    .invoice-header-row {
        overflow: visible !important;
    }

    .invoice-header-row::before {
        width: 222px;
        height: calc(100% + 9px);
        clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
    }

    .invoice-header-row::after {
        right: 186px;
        bottom: -9px;
        width: 43px;
        height: 18px;
    }
}

/* Invoice header SVG geometry definitive fix */
.invoice-header-row {
    overflow: visible !important;
    isolation: isolate;
}

.invoice-header-row::before,
.invoice-header-row::after {
    content: none !important;
    display: none !important;
}

.invoice-header-art {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: calc(100% + 12px);
    z-index: 1;
    pointer-events: none;
}

.invoice-header-art svg {
    display: block;
    width: 100%;
    height: 100%;
}

.invoice-header-row > :not(.invoice-header-art) {
    position: relative;
    z-index: 2;
}

.invoice-identity-line {
    position: absolute;
    left: 28px;
    right: auto;
    bottom: 16px;
    justify-self: start;
    margin-right: 0;
    color: #ffffff;
    z-index: 3;
}

.invoice-identity-line strong {
    color: #ffffff;
}

@media print {
    .invoice-header-row {
        overflow: visible !important;
    }

    .invoice-header-art {
        width: 260px;
        height: calc(100% + 10px);
    }

    .invoice-identity-line {
        left: 24px;
        bottom: 15px;
    }

    .invoice-party-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .invoice-party-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Invoice header centered identity and print columns */
.invoice-header-row {
    grid-template-columns: 150px minmax(260px, 1fr) 150px !important;
    align-items: center !important;
    overflow: hidden !important;
    min-height: 92px;
}

.invoice-header-art {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.invoice-header-art svg {
    display: block;
    width: 100%;
    height: 100%;
}

.invoice-header-art polygon:nth-child(n+2) {
    display: none !important;
}

.invoice-heading-center {
    display: grid !important;
    justify-items: center !important;
    align-content: center !important;
    gap: 8px !important;
    text-align: center !important;
    z-index: 3 !important;
}

.invoice-heading-center h2 {
    margin: 0 !important;
}

.invoice-identity-line {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    text-align: center !important;
    z-index: 4 !important;
}

.invoice-identity-line span,
.invoice-identity-line strong {
    color: #ffffff !important;
    font-weight: 900 !important;
}

.invoice-party-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

@media print {
    .invoice-header-row {
        grid-template-columns: 135px minmax(250px, 1fr) 135px !important;
        overflow: hidden !important;
        min-height: 84px;
    }

    .invoice-header-art {
        width: 250px !important;
        height: 100% !important;
    }

    .invoice-heading-center {
        gap: 7px !important;
    }

    .invoice-identity-line {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 18px !important;
        font-size: 10px !important;
    }

    .invoice-party-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}
@media print {
    html.print-landscape,
    body.print-landscape {
        width: 297mm !important;
        min-height: 210mm !important;
        background: #ffffff !important;
    }

    body.print-landscape .sidebar,
    body.print-landscape .topbar,
    body.print-landscape .no-print,
    body.print-landscape .content > :not(.invoice-document):not(.print-document-copy) {
        display: none !important;
    }

    body.print-landscape .app-shell,
    body.print-landscape main,
    body.print-landscape .content {
        display: block !important;
        width: 297mm !important;
        max-width: none !important;
        min-height: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #ffffff !important;
    }

    body.print-landscape .content {
        display: grid !important;
        grid-template-columns: 130.2mm 130.2mm !important;
        column-gap: 8mm !important;
        align-items: start !important;
        justify-content: center !important;
        height: 196mm !important;
    }

    body.print-landscape .invoice-document,
    body.print-landscape .print-document-copy {
        display: block !important;
        width: 210mm !important;
        max-width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        transform: scale(var(--landscape-scale, 0.62)) !important;
        transform-origin: top left !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
}

/* Invoice print modes master template lock */
@media print {
    @page invoice-portrait-page {
        size: A4 portrait;
        margin: 8mm;
    }

    @page invoice-landscape-page {
        size: A4 landscape;
        margin: 6mm;
    }

    html:not(.print-landscape),
    body:not(.print-landscape) {
        page: invoice-portrait-page;
    }

    html.print-landscape,
    body.print-landscape {
        page: invoice-landscape-page;
        width: 285mm !important;
        min-width: 285mm !important;
        max-width: 285mm !important;
        min-height: 198mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        overflow: hidden !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.print-landscape .sidebar,
    body.print-landscape .topbar,
    body.print-landscape .no-print,
    body.print-landscape .content > :not(.invoice-document):not(.print-document-copy) {
        display: none !important;
    }

    body.print-landscape .app-shell,
    body.print-landscape main,
    body.print-landscape .content {
        display: block !important;
        width: 285mm !important;
        min-width: 285mm !important;
        max-width: 285mm !important;
        min-height: 198mm !important;
        height: 198mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        overflow: hidden !important;
    }

    body.print-landscape .content {
        display: grid !important;
        grid-template-columns: 138.5mm 138.5mm !important;
        column-gap: 8mm !important;
        align-items: start !important;
        justify-content: start !important;
    }

    body.print-landscape .invoice-document,
    body.print-landscape .print-document-copy {
        display: block !important;
        grid-row: 1 !important;
        width: 210mm !important;
        max-width: 210mm !important;
        min-width: 210mm !important;
        height: 297mm !important;
        min-height: 297mm !important;
        max-height: 297mm !important;
        margin: 0 !important;
        padding: 18px !important;
        box-sizing: border-box !important;
        transform: scale(0.6595) !important;
        transform-origin: top left !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        overflow: hidden !important;
        background: #ffffff !important;
        border: 1px solid #d7deea !important;
        border-radius: 8px !important;
        box-shadow: none !important;
    }

    body.print-landscape .invoice-document {
        grid-column: 1 !important;
    }

    body.print-landscape .print-document-copy {
        grid-column: 2 !important;
    }

    body.print-landscape .invoice-header-row {
        grid-template-columns: 135px minmax(250px, 1fr) 135px !important;
        margin: -18px -18px 12px !important;
        min-height: 84px !important;
        overflow: hidden !important;
    }

    body.print-landscape .invoice-party-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.print-landscape .invoice-payment-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr minmax(136px, 0.58fr) !important;
        gap: 8px !important;
    }
}


/* Invoice portrait print parity with landscape */
@media print {
    @page invoice-portrait-page {
        size: A4 portrait;
        margin: 0;
    }

    body:not(.print-landscape) {
        page: invoice-portrait-page;
        width: 210mm !important;
        min-width: 210mm !important;
        max-width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        overflow: hidden !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body:not(.print-landscape) .sidebar,
    body:not(.print-landscape) .topbar,
    body:not(.print-landscape) .no-print,
    body:not(.print-landscape) .content > :not(.invoice-document) {
        display: none !important;
    }

    body:not(.print-landscape) .app-shell,
    body:not(.print-landscape) main,
    body:not(.print-landscape) .content {
        display: block !important;
        width: 210mm !important;
        max-width: 210mm !important;
        min-height: 297mm !important;
        height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        overflow: hidden !important;
    }

    body:not(.print-landscape) .invoice-document {
        display: block !important;
        width: 210mm !important;
        max-width: 210mm !important;
        min-width: 210mm !important;
        height: 297mm !important;
        min-height: 297mm !important;
        max-height: 297mm !important;
        margin: 0 !important;
        padding: 18px !important;
        box-sizing: border-box !important;
        transform: none !important;
        overflow: hidden !important;
        background: #ffffff !important;
        border: 1px solid #d7deea !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    body:not(.print-landscape) .invoice-header-row {
        display: grid !important;
        grid-template-columns: 135px minmax(250px, 1fr) 135px !important;
        align-items: center !important;
        margin: -18px -18px 12px !important;
        min-height: 84px !important;
        padding: 13px 18px 15px !important;
        overflow: hidden !important;
        background: #111641 !important;
        border-bottom: 3px solid #111111 !important;
    }

    body:not(.print-landscape) .invoice-header-art {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: 250px !important;
        height: 100% !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

    body:not(.print-landscape) .invoice-header-art svg {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    body:not(.print-landscape) .invoice-header-art polygon:nth-child(n+2) {
        display: none !important;
    }

    body:not(.print-landscape) .invoice-heading-center {
        display: grid !important;
        justify-items: center !important;
        align-content: center !important;
        gap: 7px !important;
        text-align: center !important;
        z-index: 3 !important;
    }

    body:not(.print-landscape) .invoice-identity-line {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #ffffff !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    body:not(.print-landscape) .invoice-party-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body:not(.print-landscape) .invoice-payment-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr minmax(136px, 0.58fr) !important;
        gap: 8px !important;
    }
}

.nav-group {
    position: relative;
    flex: 0 0 auto;
}

.nav-group > .nav-parent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-group > .nav-parent::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.7;
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 120;
    min-width: 210px;
    display: grid;
    gap: 4px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(31, 41, 51, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu a {
    width: 100%;
    padding: 9px 10px;
    font-size: 13px;
}

.erp-head p {
    margin-top: 6px;
    color: var(--muted);
    max-width: 820px;
}

.erp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: 12px;
}

.erp-kpi-grid article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 15px;
    display: grid;
    gap: 5px;
    min-height: 118px;
}

.erp-kpi-grid span,
.erp-kpi-grid small {
    color: var(--muted);
    font-size: 12px;
}

.erp-kpi-grid strong {
    font-size: 26px;
    color: var(--ink);
}

.erp-workflow {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 12px;
}

.erp-step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: flex-start;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.erp-step-number {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
}

.erp-step-card h2 {
    margin-bottom: 8px;
    font-size: 16px;
}

.erp-step-card p,
.erp-logic-list {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.erp-step-card .inline-actions {
    margin-top: 12px;
}

.erp-guide-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 14px;
}

.erp-logic-list {
    margin: 0;
    padding-left: 20px;
}

.erp-logic-list li + li {
    margin-top: 8px;
}

@media (max-width: 1180px) {
    .erp-kpi-grid,
    .erp-workflow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .erp-guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav-group {
        position: static;
    }

    .nav-submenu {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 116px;
        min-width: 0;
    }

    .erp-kpi-grid,
    .erp-workflow {
        grid-template-columns: 1fr;
    }
}
/* Premium application navigation */
.app-header.topbar {
    display: block;
    min-height: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(207, 215, 227, 0.95);
    box-shadow: 0 1px 0 rgba(31, 41, 51, 0.04), 0 12px 30px rgba(31, 41, 51, 0.06);
    backdrop-filter: blur(16px);
    transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.app-header.topbar.is-scrolled {
    min-height: 0;
    padding: 0;
    border-bottom-color: #bcc7d6;
    box-shadow: 0 14px 34px rgba(31, 41, 51, 0.14);
}

.topbar-main {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 78px;
    padding: 10px 30px 9px;
    transition: min-height 180ms ease, padding 180ms ease;
}

.app-header.is-scrolled .topbar-main {
    min-height: 64px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.app-header .brand-link {
    min-width: 172px;
    padding: 5px 0;
}

.app-header .brand-logo {
    width: clamp(148px, 15vw, 218px);
    height: 54px;
    object-fit: contain;
    object-position: left center;
}

.app-header.is-scrolled .brand-logo {
    width: clamp(132px, 13vw, 188px);
    height: 44px;
}

.primary-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 8px;
    overflow: visible;
    padding: 0;
}

.primary-nav a,
.primary-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    color: #344054;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    background: transparent;
    text-decoration: none;
    box-shadow: none;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.primary-nav a:hover,
.primary-nav-link:hover {
    color: #0f766e;
    background: #eef8f6;
    border-color: #cce8e2;
    transform: translateY(-1px);
}

.primary-nav a.active,
.primary-nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e 0%, #145e68 100%);
    border-color: #0f766e;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.secondary-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 7px 30px 9px calc(30px + clamp(148px, 15vw, 218px) + 28px);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.96));
    border-top: 1px solid rgba(216, 222, 232, 0.72);
    overflow-x: auto;
    scrollbar-width: thin;
}

.app-header.is-scrolled .secondary-nav {
    padding-left: calc(30px + clamp(132px, 13vw, 188px) + 28px);
}

.secondary-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 12px;
    color: #475467;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.secondary-nav a:hover {
    color: #0f766e;
    background: #ffffff;
    border-color: #d8eee8;
}

.secondary-nav a.active {
    color: #0f5f59;
    background: #ffffff;
    border-color: #a7d9d0;
    box-shadow: inset 0 -2px 0 #0f766e;
}

.app-header + .content {
    padding-top: 32px;
}

@media (max-width: 1120px) {
    .topbar-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 12px 22px 8px;
    }

    .app-header .brand-link {
        min-width: 0;
    }

    .primary-nav {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .secondary-nav,
    .app-header.is-scrolled .secondary-nav {
        padding-left: 22px;
        padding-right: 22px;
    }
}

@media (max-width: 820px) {
    .app-header.topbar,
    .app-header.topbar.is-scrolled {
        padding: 0;
    }

    .topbar-main,
    .app-header.is-scrolled .topbar-main {
        min-height: 0;
        padding: 10px 16px 8px;
    }

    .app-header .brand-logo,
    .app-header.is-scrolled .brand-logo {
        width: 150px;
        height: 42px;
    }

    .primary-nav a,
    .primary-nav-link {
        min-height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .secondary-nav,
    .app-header.is-scrolled .secondary-nav {
        min-height: 44px;
        padding: 6px 16px 8px;
    }

    .secondary-nav a {
        min-height: 30px;
        padding: 0 10px;
        font-size: 12px;
    }
}
.invoice-ref-combo .combo-option.is-suggested {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
}
/* ERP polish: compact professional management tables */
.erp-data-table {
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
}

.erp-data-table th,
.erp-data-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #edf1f6;
    vertical-align: middle;
    line-height: 1.25;
}

.erp-data-table th {
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    background: #f8fafc;
}

.erp-data-table td {
    font-size: 13px;
}

.erp-data-table tbody tr:hover td {
    background: #fbfefd;
}

.money-nowrap,
.erp-data-table .right {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.table-input {
    min-height: 32px;
    padding: 6px 8px;
    border-radius: 5px;
    font-size: 13px;
}

.narrow-cell {
    width: 132px;
}

.checkbox-cell {
    width: 38px;
    text-align: center;
}

.checkbox-cell input {
    width: auto;
}

.action-cell,
.recipe-table td:last-child {
    white-space: nowrap;
}

.recipe-cost-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 10px;
}

.recipe-cost-strip span {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid #e4eaf2;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.recipe-cost-strip strong {
    color: var(--ink);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.expense-entry-panel,
.expense-list-panel,
.recipe-table-wrap {
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.04);
}

.expense-toolbar {
    align-items: end;
}

.activity-dot.expense {
    background: #b45309;
}

.result-row td {
    background: #fffdf4;
}

@media (max-width: 900px) {
    .recipe-cost-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .recipe-cost-strip {
        grid-template-columns: 1fr;
    }
}
/* Stock purchases and restaurant ERP workflow polish */
.stock-purchase-panel .purchase-session-grid {
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px);
}

.purchase-entry-table,
.multi-entry-table .purchase-entry-table {
    min-width: 760px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.purchase-entry-table thead th {
    background: #f3f6f9;
    color: #344054;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0;
    border-top: 1px solid #e4eaf1;
    border-bottom: 1px solid #d7e0ea;
}

.purchase-entry-table thead th:first-child {
    border-top-left-radius: 6px;
}

.purchase-entry-table thead th:last-child {
    border-top-right-radius: 6px;
}

.purchase-entry-table th:nth-child(1),
.purchase-entry-table td:nth-child(1) { width: 42%; }
.purchase-entry-table th:nth-child(2),
.purchase-entry-table td:nth-child(2) { width: 22%; }
.purchase-entry-table th:nth-child(3),
.purchase-entry-table td:nth-child(3) { width: 12%; }
.purchase-entry-table th:nth-child(4),
.purchase-entry-table td:nth-child(4) { width: 14%; }
.purchase-entry-table th:nth-child(5),
.purchase-entry-table td:nth-child(5) { width: 90px; text-align: center; }

.purchase-entry-table .right,
.purchase-entry-table th.right,
.purchase-entry-table td.right {
    text-align: center;
}

.stock-current-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-left: auto;
}

.stock-filter-combo {
    width: min(340px, 42vw);
    position: relative;
}

.stock-filter-combo label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.stock-filter-combo input {
    width: 100%;
    min-height: 38px;
    padding-right: 34px;
}

.stock-filter-combo .clear-combo {
    position: absolute;
    right: 8px;
    top: 31px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 900;
    line-height: 1;
}

.stock-filter-combo .clear-combo:hover {
    background: #eef3f8;
    color: var(--ink);
}
.stock-filter-combo .combo-results {
    top: 66px;
    min-width: 340px;
    z-index: 45;
}

@media (max-width: 760px) {
    .stock-current-panel .form-title-row,
    .stock-current-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .stock-current-actions,
    .stock-filter-combo {
        width: 100%;
    }
}
.stock-current-wrap {
    border: 1px solid #edf1f6;
    border-radius: 8px;
    background: #ffffff;
}

.stock-current-table {
    min-width: 1180px;
    table-layout: fixed;
}

.stock-current-table th,
.stock-current-table td {
    padding: 7px 8px;
    vertical-align: middle;
}

.stock-current-table th {
    font-size: 10px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.stock-current-table th:nth-child(1),
.stock-current-table td:nth-child(1) { width: 250px; }
.stock-current-table th:nth-child(2),
.stock-current-table td:nth-child(2) { width: 108px; }
.stock-current-table th:nth-child(3),
.stock-current-table td:nth-child(3) { width: 108px; }
.stock-current-table th:nth-child(4),
.stock-current-table td:nth-child(4) { width: 145px; }
.stock-current-table th:nth-child(5),
.stock-current-table td:nth-child(5) { width: 112px; }
.stock-current-table th:nth-child(6),
.stock-current-table td:nth-child(6),
.stock-current-table th:nth-child(7),
.stock-current-table td:nth-child(7) { width: 124px; }
.stock-current-table th:nth-child(8),
.stock-current-table td:nth-child(8) { width: 100px; }
.stock-current-table th:nth-child(9),
.stock-current-table td:nth-child(9) { width: 104px; }
.stock-current-table th:nth-child(10),
.stock-current-table td:nth-child(10) { width: 72px; }

.stock-product-cell strong {
    display: block;
    color: var(--ink);
}

.stock-product-meta {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
}
.stock-new-row td {
    background: #f8fbff;
}

.stock-add-combo {
    position: relative;
}

.stock-add-combo .combo-results {
    min-width: 340px;
    z-index: 40;
}

.stock-item-search {
    min-height: 31px;
    font-size: 12px;
}
.stock-current-table .table-input {
    min-height: 31px;
    padding: 5px 7px;
    font-size: 12px;
}

.stock-unit-input { max-width: 62px; }
.stock-qty-input,
.stock-price-input,
.stock-used-input,
.stock-min-input { max-width: 100%; }

.money-edit-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px;
}

.money-edit-wrap span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.stock-readonly-value {
    display: inline-block;
    min-width: 54px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.stock-status-row.stock-status-normal td { background: #fbfffd; }
.stock-status-row.stock-status-low td { background: #fffaf0; }
.stock-status-row.stock-status-out td { background: #fff5f5; }

.stock-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.stock-status-badge.normal {
    color: #047857;
    background: #dff7ea;
    border: 1px solid #b8ebd0;
}

.stock-status-badge.low {
    color: #b45309;
    background: #fff0cc;
    border: 1px solid #ffd98a;
}

.stock-status-badge.out {
    color: #b42318;
    background: #ffe2df;
    border: 1px solid #ffbeb8;
}
.purchase-archive-table {
    table-layout: fixed;
    width: 100%;
}
.purchase-col-designation { width: 34%; }
.purchase-col-type { width: 13%; }
.purchase-col-supplier { width: 18%; }
.purchase-col-qty { width: 9%; }
.purchase-col-price { width: 13%; }
.purchase-col-amount { width: 13%; }
.purchase-archive-table th,
.purchase-archive-table td {
    overflow-wrap: normal;
    word-break: normal;
}
.purchase-archive-table .right,
.purchase-archive-table th.right,
.purchase-archive-table td.right {
    white-space: nowrap;
}

.server-order-layout-single {
    grid-template-columns: minmax(360px, 720px);
}

.guest-package-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid #d8eee8;
    border-radius: 8px;
    background: #f6fbfa;
}

.guest-package-card div {
    display: grid;
    gap: 3px;
}

.guest-package-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.guest-package-card strong {
    color: var(--ink);
    font-size: 13px;
}

.order-lines-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e4eaf2;
    border-radius: 8px;
    background: #fbfcfe;
}

.order-lines-panel h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.order-lines-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.extra-order-lines-wrap {
    border: 1px solid #edf1f6;
    border-radius: 8px;
    background: #fff;
}

.extra-order-lines-table {
    min-width: 840px;
    table-layout: fixed;
}

.extra-order-lines-table th:nth-child(1),
.extra-order-lines-table td:nth-child(1) { width: 230px; }
.extra-order-lines-table th:nth-child(2),
.extra-order-lines-table td:nth-child(2) { width: 190px; }
.extra-order-lines-table th:nth-child(3),
.extra-order-lines-table td:nth-child(3) { width: 82px; }
.extra-order-lines-table th:nth-child(4),
.extra-order-lines-table td:nth-child(4) { width: 112px; }
.extra-order-lines-table th:nth-child(5),
.extra-order-lines-table td:nth-child(5) { width: 130px; }
.extra-order-lines-table th:nth-child(6),
.extra-order-lines-table td:nth-child(6) { width: 84px; }
.extra-order-lines-table th:nth-child(7),
.extra-order-lines-table td:nth-child(7) { width: 72px; }

.extra-order-lines-table input,
.extra-order-lines-table select {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 12px;
}

.extra-order-lines-table .table-combo {
    min-width: 0;
}

.extra-order-lines-table td {
    position: relative;
    overflow: visible;
}

.extra-order-lines-wrap,
.order-lines-panel .table-wrap {
    overflow: visible;
}

.order-product-combo {
    position: relative;
}

.combo-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.combo-input-wrap input[type="search"] {
    width: 100%;
    padding-right: 34px;
}

.combo-input-wrap input.has-selection {
    border-color: var(--primary);
    background: #f4fbfa;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.combo-clear-button {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #667085;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.combo-clear-button:hover {
    background: #eef4f3;
    color: var(--primary);
}
.extra-order-lines-table .combo-results {
    top: 38px;
    left: 0;
    right: auto;
    z-index: 50;
    min-width: 340px;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}
.recipe-builder {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e4eaf2;
    border-radius: 8px;
    background: #fbfcfe;
}

.recipe-builder h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.recipe-builder-table {
    min-width: 720px;
    table-layout: fixed;
}

.recipe-builder-table th:nth-child(1),
.recipe-builder-table td:nth-child(1) { width: 48%; }
.recipe-builder-table th:nth-child(2),
.recipe-builder-table td:nth-child(2) { width: 18%; }
.recipe-builder-table th:nth-child(3),
.recipe-builder-table td:nth-child(3) { width: 20%; }
.recipe-builder-table th:nth-child(4),
.recipe-builder-table td:nth-child(4) { width: 90px; }

@media (max-width: 720px) {
    .guest-package-card,
    .stock-purchase-panel .purchase-session-grid {
        grid-template-columns: 1fr;
    }
}

.hotel-room-lines-panel {
    display: grid;
    gap: 10px;
}

.hotel-room-lines-table {
    min-width: 820px;
    table-layout: fixed;
}

.hotel-room-lines-table th:nth-child(1),
.hotel-room-lines-table td:nth-child(1) { width: 30%; }
.hotel-room-lines-table th:nth-child(2),
.hotel-room-lines-table td:nth-child(2) { width: 22%; }
.hotel-room-lines-table th:nth-child(3),
.hotel-room-lines-table td:nth-child(3) { width: 22%; }
.hotel-room-lines-table th:nth-child(4),
.hotel-room-lines-table td:nth-child(4) { width: 16%; }
.hotel-room-lines-table th:nth-child(5),
.hotel-room-lines-table td:nth-child(5) { width: 82px; }

.hotel-room-lines-table td {
    position: relative;
    overflow: visible;
}

.hotel-room-lines-table .table-combo {
    min-width: 0;
    position: relative;
}

.hotel-room-lines-table .combo-results {
    top: 38px;
    left: 0;
    right: auto;
    z-index: 55;
    min-width: 300px;
}
.invoice-pending-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.invoice-pending-summary > div {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #e4eaf2;
    border-radius: 8px;
    background: #f8fafc;
}

.invoice-pending-summary span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.invoice-pending-summary strong {
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
}

@media (max-width: 640px) {
    .invoice-pending-summary {
        grid-template-columns: 1fr;
    }
}
.reservation-pending-strip {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
}

.reservation-pending-strip > span {
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.reservation-pending-strip > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.reservation-pending-strip a,
.reservation-pending-strip em {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #ffffff;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.reservation-not-invoiced td {
    background: #fff3df;
    border-top: 1px solid #fed7aa;
    border-bottom-color: #fed7aa;
}

.reservation-not-invoiced td:first-child {
    border-left: 5px solid #f59e0b;
}

.reservation-not-invoiced:hover td {
    background: #ffead0;
}

.invoice-due-link {
    text-decoration: none;
}

.invoice-pending-ref-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.invoice-pending-ref-list a,
.invoice-pending-ref-list em {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.invoice-pending-ref-list a:hover {
    background: #ffedd5;
    color: #7c2d12;
}
.planning-head {
    gap: 18px;
    align-items: end;
}

.planning-period-form {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.planning-period-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.planning-period-form select,
.planning-period-form input {
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 11px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-weight: 700;
}

.planning-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.planning-panel {
    padding: 0;
    overflow: hidden;
}

.planning-month-title {
    position: sticky;
    left: 0;
    z-index: 4;
    padding: 10px 14px;
    background: linear-gradient(135deg, #172554, #1d4ed8);
    color: #ffffff;
    border-bottom: 3px solid #60a5fa;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .03em;
}

.planning-grid-wrap {
    overflow: auto;
    max-height: calc(100vh - 250px);
    background: #e0f2fe;
}

.room-planning-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 12px;
}

.room-planning-table th,
.room-planning-table td {
    border-right: 1px solid rgba(15, 23, 42, .22);
    border-bottom: 1px solid rgba(15, 23, 42, .18);
}

.planning-room-head,
.planning-room-name {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    background: rgba(248, 250, 252, .96);
    box-shadow: 1px 0 0 rgba(15, 23, 42, .15);
}

.planning-room-head {
    top: 0;
    height: 44px;
    color: #0f172a;
    text-align: left;
    padding: 8px 12px;
    font-weight: 900;
}

.planning-date-head {
    position: sticky;
    top: 0;
    z-index: 2;
    width: 48px;
    min-width: 48px;
    height: 44px;
    background: #f8fafc;
    color: #0f172a;
    text-align: center;
    vertical-align: middle;
}

.planning-date-head strong,
.planning-date-head span {
    display: block;
    line-height: 1.05;
}

.planning-date-head span {
    margin-top: 3px;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
}

.planning-date-head.is-weekend,
.planning-day-cell.is-weekend {
    background: #fecaca;
}

.planning-room-name {
    height: 34px;
    padding: 6px 10px;
    text-align: left;
    vertical-align: middle;
}

.planning-room-name span {
    display: inline-block;
    min-width: 44px;
    color: #334155;
    font-weight: 900;
    font-style: italic;
}

.planning-room-name strong {
    color: #0f172a;
    font-weight: 800;
}

.planning-day-cell {
    width: 48px;
    min-width: 48px;
    height: 34px;
    background: rgba(224, 242, 254, .82);
}

.planning-booking-cell {
    height: 34px;
    padding: 3px 4px;
    background: rgba(224, 242, 254, .82);
}

.planning-booking-cell a {
    display: grid;
    align-content: center;
    height: 26px;
    min-width: 100%;
    padding: 2px 8px;
    border: 1px solid rgba(15, 23, 42, .24);
    border-radius: 2px;
    color: #111827;
    text-align: center;
    text-decoration: none;
    line-height: 1.05;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 1px 2px rgba(15, 23, 42, .16);
    overflow: hidden;
}

.planning-booking-cell strong,
.planning-booking-cell span,
.planning-booking-cell small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.planning-booking-cell strong {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.planning-booking-cell span,
.planning-booking-cell small {
    font-size: 9px;
    font-weight: 800;
}

.planning-color-0 a { background: #fde047; }
.planning-color-1 a { background: #38bdf8; }
.planning-color-2 a { background: #fb7185; color: #ffffff; }
.planning-color-3 a { background: #a78bfa; color: #ffffff; }
.planning-color-4 a { background: #4ade80; }
.planning-color-5 a { background: #f97316; color: #ffffff; }
.planning-color-6 a { background: #60a5fa; color: #ffffff; }
.planning-color-7 a { background: #f0abfc; }

@media (max-width: 760px) {
    .planning-head,
    .planning-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .planning-period-form {
        width: 100%;
    }

    .planning-grid-wrap {
        max-height: calc(100vh - 280px);
    }
}
.planning-transposed-table {
    table-layout: fixed;
}

.planning-transposed-table .planning-date-row-head,
.planning-transposed-table .planning-date-row-name {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    box-shadow: 1px 0 0 rgba(15, 23, 42, .16);
}

.planning-transposed-table .planning-date-row-head {
    top: 0;
    z-index: 5;
    height: 46px;
    padding: 8px 12px;
    background: #f8fafc;
    color: #0f172a;
    text-align: left;
    font-weight: 900;
}

.planning-transposed-table .planning-date-row-name {
    height: 38px;
    padding: 6px 10px;
    background: rgba(248, 250, 252, .96);
    text-align: left;
    vertical-align: middle;
}

.planning-transposed-table .planning-date-row-name.is-weekend {
    background: #fecaca;
}

.planning-transposed-table .planning-date-row-name strong {
    display: inline-block;
    min-width: 34px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.planning-transposed-table .planning-date-row-name span {
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.planning-room-column-head,
.planning-atelier-head {
    position: sticky;
    top: 0;
    z-index: 2;
    width: 150px;
    min-width: 150px;
    height: 46px;
    padding: 8px 10px;
    background: #f8fafc;
    color: #0f172a;
    text-align: center;
    vertical-align: middle;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.planning-atelier-head,
.planning-atelier-cell {
    width: 140px;
    min-width: 140px;
}

.planning-atelier-head {
    background: #fff7ed;
    color: #9a3412;
}

.planning-atelier-cell {
    height: 38px;
    background: rgba(255, 247, 237, .72);
}

.planning-atelier-cell.is-weekend {
    background: #fed7aa;
}

.planning-transposed-table .planning-day-cell {
    width: 150px;
    min-width: 150px;
    height: 38px;
}

.planning-booking-cell.planning-booking-vertical {
    width: 150px;
    min-width: 150px;
    height: auto;
    padding: 4px;
    vertical-align: middle;
}

.planning-booking-cell.planning-booking-vertical a {
    min-height: 30px;
    height: calc(100% - 2px);
    padding: 5px 7px;
}
/* Planning chambres transpose : lisibilite compacte sans chevauchement */
.planning-transposed-table .planning-room-column-head {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.15;
    font-size: 11px;
    padding: 7px 6px;
}

.planning-transposed-table .planning-day-cell,
.planning-transposed-table .planning-atelier-cell {
    height: 42px;
}

.planning-booking-cell.planning-booking-vertical {
    padding: 3px;
    vertical-align: stretch;
}

.planning-booking-cell.planning-booking-vertical a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    width: 100%;
    height: 100%;
    min-height: 34px;
    padding: 4px 6px;
    line-height: 1.08;
    box-sizing: border-box;
}

.planning-booking-cell.planning-booking-vertical strong,
.planning-booking-cell.planning-booking-vertical span,
.planning-booking-cell.planning-booking-vertical small {
    max-width: 100%;
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: normal;
}

.planning-booking-cell.planning-booking-vertical strong {
    -webkit-line-clamp: 2;
    font-size: clamp(8px, .72vw, 10px);
    line-height: 1.08;
}

.planning-booking-cell.planning-booking-vertical span {
    -webkit-line-clamp: 1;
    font-size: clamp(7px, .66vw, 9px);
    line-height: 1.05;
}

.planning-booking-cell.planning-booking-vertical small {
    -webkit-line-clamp: 2;
    font-size: clamp(7px, .62vw, 8px);
    line-height: 1.05;
    opacity: .9;
}

.planning-booking-cell.planning-booking-vertical[rowspan="1"] a {
    gap: 1px;
    min-height: 34px;
    padding: 3px 5px;
}

.planning-booking-cell.planning-booking-vertical[rowspan="1"] strong {
    -webkit-line-clamp: 1;
    font-size: 8px;
}

.planning-booking-cell.planning-booking-vertical[rowspan="1"] span,
.planning-booking-cell.planning-booking-vertical[rowspan="1"] small {
    -webkit-line-clamp: 1;
    font-size: 7px;
}

.planning-booking-cell.planning-booking-vertical[rowspan="2"] strong {
    -webkit-line-clamp: 2;
    font-size: 9px;
}

.planning-booking-cell.planning-booking-vertical[rowspan="2"] span,
.planning-booking-cell.planning-booking-vertical[rowspan="2"] small {
    -webkit-line-clamp: 1;
    font-size: 8px;
}
/* Planning chambres : pas de couleur speciale weekend, couleur sur toute la reservation */
.planning-date-head.is-weekend,
.planning-day-cell.is-weekend,
.planning-transposed-table .planning-date-row-name.is-weekend,
.planning-atelier-cell.is-weekend {
    background: rgba(224, 242, 254, .82);
}

.planning-transposed-table .planning-date-row-name.is-weekend {
    background: rgba(248, 250, 252, .96);
}

.planning-atelier-cell.is-weekend {
    background: rgba(255, 247, 237, .72);
}

.planning-booking-cell.planning-booking-vertical {
    border-radius: 0;
    overflow: hidden;
}

.planning-booking-cell.planning-booking-vertical a {
    background: transparent !important;
    border-color: rgba(15, 23, 42, .16);
    box-shadow: none;
}

.planning-booking-cell.planning-color-0 { background: #fde047; }
.planning-booking-cell.planning-color-1 { background: #38bdf8; }
.planning-booking-cell.planning-color-2 { background: #fb7185; color: #ffffff; }
.planning-booking-cell.planning-color-3 { background: #a78bfa; color: #ffffff; }
.planning-booking-cell.planning-color-4 { background: #4ade80; }
.planning-booking-cell.planning-color-5 { background: #f97316; color: #ffffff; }
.planning-booking-cell.planning-color-6 { background: #60a5fa; color: #ffffff; }
.planning-booking-cell.planning-color-7 { background: #f0abfc; }

.planning-booking-cell.planning-color-2 a,
.planning-booking-cell.planning-color-3 a,
.planning-booking-cell.planning-color-5 a,
.planning-booking-cell.planning-color-6 a {
    color: #ffffff;
}
/* Planning chambres : ruban paiement et saisie rapide */
.planning-booking-cell.planning-booking-vertical a {
    position: relative;
    background: rgba(255, 255, 255, .34) !important;
    border-color: rgba(15, 23, 42, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}

.planning-booking-cell.is-paid a {
    outline: 1px solid rgba(22, 101, 52, .22);
}

.planning-booking-cell.is-unpaid a {
    outline: 1px solid rgba(153, 27, 27, .24);
}

.planning-payment-ribbon {
    position: absolute;
    top: 8px;
    right: -28px;
    width: 96px;
    transform: rotate(42deg);
    transform-origin: center;
    padding: 2px 0;
    color: #ffffff;
    font-size: 7px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .02em;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .18);
    pointer-events: none;
}

.planning-booking-cell.is-paid .planning-payment-ribbon {
    background: #16a34a;
}

.planning-booking-cell.is-unpaid .planning-payment-ribbon {
    background: #dc2626;
}

.planning-transposed-table.is-moving-booking [data-planning-room]:not(.is-dragging) {
    cursor: copy;
}

.planning-transposed-table .planning-booking-cell.is-dragging a {
    opacity: .45;
}

.planning-transposed-table [data-planning-room].is-drop-target {
    outline: 3px solid #087a6e;
    outline-offset: -3px;
    background: #d1fae5;
}

.planning-booking-cell.planning-booking-vertical {
    position: relative;
}

.planning-booking-cell [data-planning-booking] {
    cursor: grab;
}

.planning-booking-cell [data-planning-booking]:active {
    cursor: grabbing;
}

.planning-booking-cell .planning-edit-button {
    position: absolute;
    z-index: 1;
    right: 5px;
    bottom: 5px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #075e55;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 5px #0f172a40;
}

.planning-booking-cell .planning-edit-button:hover,
.planning-booking-cell .planning-edit-button:focus-visible {
    background: #053f39;
    outline: 2px solid #ffd166;
}

.planning-extend-dialog {
    width: min(420px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 22px;
    border: 1px solid #c4a65b;
    border-radius: 8px;
    background: #fff;
    color: #17233a;
    box-shadow: 0 18px 48px #0f172a50;
}

.planning-extend-dialog::backdrop { background: #0f172a99; }
.planning-extend-dialog h2 { margin: 0 28px 8px 0; font-size: 19px; }
.planning-edit-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 12px 0; padding: 3px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f1f5f9; }
.planning-edit-modes button { min-height: 34px; padding: 5px 8px; border: 0; border-radius: 4px; background: transparent; color: #294159; font-size: 12px; font-weight: 700; }
.planning-edit-modes button.is-active { background: #fff; color: #075e55; box-shadow: 0 1px 4px #0f172a26; }
#planning-add-fields[hidden] { display: none !important; }
.planning-extend-dialog label { display: block; margin: 14px 0 5px; font-weight: 700; }
.planning-extend-dialog input[type="date"] { width: 100%; }
.planning-extend-dialog input[type="number"], .planning-extend-dialog select { width: 100%; }
.planning-extend-dialog .planning-extend-note { color: #53627b; font-size: 13px; line-height: 1.4; }
.planning-dialog-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; padding: 0; }
.planning-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

@media (pointer: coarse) {
    .planning-booking-cell .planning-edit-button { width: 28px; height: 28px; min-width: 28px; min-height: 28px; }
}

.planning-quick-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0 auto;
    border: 1px solid rgba(15, 118, 110, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    opacity: 0;
    transform: scale(.92);
    transition: opacity .14s ease, transform .14s ease, background .14s ease;
}

.planning-day-cell:hover .planning-quick-add,
.planning-quick-add:focus-visible {
    opacity: 1;
    transform: scale(1);
    background: #ffffff;
}
.planning-transposed-table .planning-day-cell {
    vertical-align: middle;
}

.planning-quick-add {
    opacity: .42;
}
.planning-company-name {
    color: #dc2626;
}

.rapport-head {
    align-items: flex-end;
    gap: 18px;
}

.rapport-kpis {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rapport-kpis span {
    display: grid;
    gap: 2px;
    min-width: 112px;
    padding: 10px 12px;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.rapport-kpis strong {
    color: #0f172a;
    font-size: 18px;
    line-height: 1;
    text-transform: none;
}

.rapport-explain {
    display: grid;
    gap: 5px;
    margin-bottom: 16px;
    border-left: 4px solid #0f766e;
}

.rapport-explain span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.rapport-grid {
    display: grid;
    gap: 18px;
}

.rapport-panel {
    overflow: hidden;
}

.rapport-table-wrap {
    max-height: calc(100vh - 260px);
    overflow: auto;
}

.rapport-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
}

.rapport-compact-table {
    min-width: 820px;
}

.rapport-table th,
.rapport-table td {
    padding: 8px 9px;
    border-bottom: 1px solid #d9e2ec;
    border-right: 1px solid #e6edf3;
    white-space: nowrap;
    vertical-align: middle;
}

.rapport-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #173b7a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
}

.rapport-table tbody tr.is-free td {
    background: #f8fafc;
    color: #64748b;
}

.rapport-table tbody tr.is-occupied td {
    background: #ffffff;
    color: #0f172a;
}

.rapport-table tbody tr.is-occupied:hover td {
    background: #eef8f6;
}

.rapport-table tfoot th {
    position: sticky;
    bottom: 0;
    background: #fff7cc;
    color: #0f172a;
    font-weight: 900;
}

.rapport-company {
    color: #dc2626 !important;
    font-weight: 900;
}

.rapport-table .money-cell {
    font-weight: 900;
    color: #0f766e;
}

.rapport-note {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef2f7;
    color: #334155;
    font-size: 11px;
    font-weight: 900;
}

.rapport-note.leaving {
    background: #fff7ed;
    color: #c2410c;
}

.rapport-note.staying {
    background: #ecfdf5;
    color: #047857;
}

@media (max-width: 760px) {
    .rapport-head {
        align-items: stretch;
        flex-direction: column;
    }

    .rapport-kpis {
        justify-content: stretch;
    }

    .rapport-kpis span {
        flex: 1 1 120px;
    }
}

.rapport-panel-wide {
    min-width: 0;
}

@media (min-width: 1200px) {
    .rapport-grid {
        grid-template-columns: 1fr;
    }
}
/* Rapport chambres - style tableau operationnel type planning Excel */
.rapport-panel {
    border: 1px solid #111827;
    border-radius: 0;
    background: #000000;
    padding: 0;
}

.rapport-panel .section-title-row {
    display: none;
}

.rapport-table-wrap {
    max-height: calc(100vh - 230px);
    border: 1px solid #000000;
    background: #000000;
}

.rapport-table {
    min-width: 1120px;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 12px;
    font-weight: 800;
    color: #000000;
}

.rapport-table th,
.rapport-table td {
    height: 20px;
    padding: 2px 4px;
    border: 1px dotted rgba(255, 255, 255, 0.78);
    line-height: 1.15;
    white-space: nowrap;
    vertical-align: middle;
}

.rapport-table thead th {
    background: #000000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.rapport-table tbody tr.is-free td {
    background: #00b050;
    color: #000000;
}

.rapport-table tbody tr.is-occupied td {
    background: #ffffff;
    color: #000000;
}

.rapport-table tbody tr.is-occupied:hover td,
.rapport-table tbody tr.is-free:hover td {
    filter: brightness(0.96);
}

.rapport-table tbody td:first-child,
.rapport-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #000000;
    color: #ffffff;
    font-weight: 900;
    text-align: left;
}

.rapport-table tbody tr.is-free td:first-child,
.rapport-table tbody tr.is-occupied td:first-child {
    background: #000000;
    color: #ffffff;
}

.rapport-table tfoot th {
    position: sticky;
    bottom: 0;
    background: #000000;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    border: 1px dotted rgba(255, 255, 255, 0.78);
}

.rapport-table .money-cell {
    color: #000000;
    font-weight: 900;
}

.rapport-company {
    color: #dc2626 !important;
    font-weight: 900;
}

.rapport-note {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #000000;
    font-size: 11px;
    font-weight: 900;
}

.rapport-note.leaving,
.rapport-note.staying {
    background: transparent;
    color: #000000;
}

.rapport-free-cell {
    text-align: center;
}

.rapport-quick-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.72);
    color: #000000;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.rapport-quick-add:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

/* Saisie hotel - interface premium reception */
.hotel-entry-layout {
    padding: 6px 0 26px;
}

.hotel-reservation-form {
    width: min(1180px, 100%);
    gap: 18px;
}

.hotel-reservation-form.panel {
    border: 1px solid #d8e3ee;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.hotel-form-title {
    align-items: center;
    padding: 4px 2px 16px;
    border-bottom: 1px solid #dde7f0;
}

.hotel-form-title h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
}

.hotel-form-title p {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.hotel-reservation-form .entry-block {
    position: relative;
    border: 1px solid #dbe6ef;
    border-radius: 10px;
    background: #ffffff;
    padding: 16px;
    gap: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.hotel-reservation-form .client-entry-block {
    border-color: #cfe3f7;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.hotel-reservation-form .hotel-room-lines-panel {
    border-color: #c7eee5;
    background: linear-gradient(180deg, #f6fffc 0%, #ffffff 100%);
}

.hotel-reservation-form .stay-entry-block {
    border-color: #e2d8f0;
    background: linear-gradient(180deg, #fbf9ff 0%, #ffffff 100%);
}

.hotel-reservation-form .observation-entry-block {
    border-color: #e6edf3;
}

.hotel-reservation-form .entry-block-title,
.hotel-reservation-form .room-lines-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hotel-reservation-form .entry-block-title > div,
.hotel-reservation-form .room-lines-title > div {
    min-width: 0;
    flex: 1;
}

.hotel-reservation-form .entry-block-title span,
.hotel-reservation-form .room-lines-title span {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #0f766e;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(15, 118, 110, 0.22);
}

.hotel-reservation-form .client-entry-block .entry-block-title span {
    background: #174ea6;
    box-shadow: 0 8px 16px rgba(23, 78, 166, 0.2);
}

.hotel-reservation-form .stay-entry-block .entry-block-title span {
    background: #6d5bd0;
    box-shadow: 0 8px 16px rgba(109, 91, 208, 0.18);
}

.hotel-reservation-form .entry-block-title h3,
.hotel-reservation-form .room-lines-title h3 {
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
}

.hotel-reservation-form .entry-block-title p,
.hotel-reservation-form .room-lines-title p {
    color: #64748b;
    font-size: 12px;
}

.hotel-reservation-form label {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.hotel-reservation-form input,
.hotel-reservation-form select,
.hotel-reservation-form textarea {
    border-color: #cbd8e5;
    border-radius: 7px;
    background: #ffffff;
    min-height: 38px;
    color: #0f172a;
    font-size: 13px;
}

.hotel-reservation-form input:focus,
.hotel-reservation-form select:focus,
.hotel-reservation-form textarea:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
    outline: none;
}

.hotel-room-lines-wrap {
    border: 1px solid #d6e4ef;
    border-radius: 8px;
    background: #ffffff;
    overflow: visible;
}

.hotel-room-lines-table {
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
}

.hotel-room-lines-table thead th {
    background: #0f172a;
    color: #ffffff;
    border-bottom: 0;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hotel-room-lines-table th,
.hotel-room-lines-table td {
    padding: 8px;
    border-bottom: 1px solid #e3edf5;
}

.hotel-room-lines-table tbody tr:hover td {
    background: #f8fbfd;
}

.hotel-room-lines-table td:last-child,
.hotel-room-lines-table th:last-child {
    width: 54px;
    text-align: center;
}

.hotel-room-lines-table .remove-line-button,
.hotel-room-lines-table [data-room-line-remove] {
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 7px;
}

.room-lines-title .ghost-button {
    min-height: 34px;
    padding: 8px 12px;
    border-color: #0f766e;
    background: #e9fbf7;
    color: #0f766e;
    font-weight: 900;
}

.room-lines-title .ghost-button:hover {
    background: #d8f7ef;
    transform: translateY(-1px);
}

.hotel-reservation-form .centered-actions {
    justify-content: flex-end;
    padding-top: 2px;
}

.hotel-reservation-form .centered-actions button[type="submit"] {
    min-width: 210px;
    border-radius: 8px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.18);
}

@media (max-width: 860px) {
    .hotel-reservation-form .three-cols,
    .hotel-reservation-form .two-cols {
        grid-template-columns: 1fr;
    }

    .hotel-reservation-form .room-lines-title {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .room-lines-title .ghost-button {
        margin-left: 44px;
    }
}

/* Reservations - tableau compact premium */
.reservations-panel {
    padding: 14px;
    border: 1px solid #dbe6ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.reservations-table-wrap {
    border: 1px solid #dbe6ef;
    border-radius: 9px;
    background: #ffffff;
    overflow: auto;
}

.reservations-table {
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
}

.reservations-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px 8px;
    background: #f8fafc;
    color: #475569;
    border-bottom: 1px solid #dbe6ef;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}

.reservations-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #e6edf3;
    color: #0f172a;
    line-height: 1.15;
    vertical-align: middle;
    white-space: nowrap;
}

.reservations-table tbody tr:hover td {
    background: #f8fbfd;
}

.reservations-table .select-col {
    width: 34px;
    text-align: center;
}

.reservations-table .select-col input {
    width: 15px;
    height: 15px;
}

.reservations-table th:nth-child(2),
.reservations-table td:nth-child(2) {
    width: 74px;
    font-weight: 900;
}

.reservations-table th:nth-child(3),
.reservations-table td:nth-child(3) {
    width: 170px;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reservations-table th:nth-child(4),
.reservations-table td:nth-child(4) {
    width: 130px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reservations-table th:nth-child(5),
.reservations-table td:nth-child(5),
.reservations-table th:nth-child(6),
.reservations-table td:nth-child(6) {
    width: 110px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reservations-table th:nth-child(7),
.reservations-table td:nth-child(7),
.reservations-table th:nth-child(8),
.reservations-table td:nth-child(8) {
    width: 92px;
}

.reservations-table th:nth-child(9),
.reservations-table td:nth-child(9) {
    width: 62px;
    text-align: right;
}

.reservations-table th:nth-child(10),
.reservations-table td:nth-child(10),
.reservations-table th:nth-child(11),
.reservations-table td:nth-child(11) {
    width: 105px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.reservations-table th:nth-last-child(2),
.reservations-table td:nth-last-child(2) {
    width: 88px;
    text-align: center;
}

.reservations-table th:last-child,
.reservations-table td:last-child {
    width: 250px;
}

.reservations-table .money-cell,
.reservations-table td.right {
    white-space: nowrap;
}

.reservations-table .status-badge {
    margin-left: 4px;
    padding: 2px 6px;
    min-height: 20px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.reservations-table .invoice-due-link {
    margin-left: 0;
}

.reservations-table .inline-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    flex-wrap: nowrap;
}

.reservations-table .inline-form {
    display: inline-flex;
    margin: 0;
}

.reservations-table .small-button {
    min-height: 26px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.reservations-table .danger-button,
.reservations-table .warning-button,
.reservations-table .success-button,
.reservations-table .action-link {
    box-shadow: none;
}

.reservations-table .danger-button {
    color: #be123c;
}

.reservations-table .warning-button {
    color: #c2410c;
}

.reservations-table .success-button {
    background: #ecfdf5;
    color: #047857;
    border-color: #bbf7d0;
}

.reservations-table .success-button:hover {
    background: #d1fae5;
}

.reservations-table tr.reservation-not-invoiced td {
    background: #fff7e8;
}

.reservations-table tr.reservation-not-invoiced:hover td {
    background: #ffefd4;
}

.reservations-table tr.reservation-not-invoiced td:first-child {
    border-left: 3px solid #f59e0b;
}

@media (max-width: 900px) {
    .reservations-panel {
        padding: 10px;
    }

    .reservations-table th:last-child,
    .reservations-table td:last-child {
        width: 230px;
    }
}

/* Saisie resto - interface premium serveur */
.resto-order-head {
    align-items: end;
    gap: 18px;
}

.resto-order-head h1 {
    letter-spacing: 0;
}

.server-order-layout-single {
    grid-template-columns: minmax(720px, 1180px);
    justify-content: center;
}

.resto-premium-form {
    display: grid;
    gap: 16px;
    border: 1px solid #dbe6ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.resto-form-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dde7f0;
}

.resto-form-title h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.resto-form-title p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.resto-service-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.resto-premium-form > .combo-field,
.resto-premium-form > label,
.resto-premium-form > .two-cols,
.resto-premium-form > .guest-package-card,
.resto-premium-form > .order-lines-panel {
    border: 1px solid #dbe6ef;
    border-radius: 10px;
    background: #ffffff;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.resto-premium-form > .combo-field[data-combo="reservation"],
.resto-premium-form > label:has(#resto-walkin-client) {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-color: #cfe3f7;
}

.resto-premium-form > .combo-field[data-combo="product"],
.resto-premium-form > label:has(#resto-designation),
.resto-premium-form > label:has(#resto-billable) {
    background: linear-gradient(180deg, #f6fffc 0%, #ffffff 100%);
    border-color: #c7eee5;
}

.resto-premium-form label {
    color: #334155;
    font-size: 12px;
    font-weight: 850;
}

.resto-premium-form input,
.resto-premium-form select,
.resto-premium-form textarea {
    min-height: 38px;
    border-color: #cbd8e5;
    border-radius: 7px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
}

.resto-premium-form input:focus,
.resto-premium-form select:focus,
.resto-premium-form textarea:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
    outline: none;
}

.resto-premium-form .combo-inline-actions {
    margin-top: 8px;
    justify-content: flex-start;
}

.resto-premium-form .guest-package-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.resto-premium-form .guest-package-card div {
    min-height: 48px;
    padding: 8px;
    border-radius: 7px;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(191, 219, 254, 0.9);
}

.resto-premium-form .guest-package-card strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resto-premium-form .two-cols {
    align-items: end;
}

.resto-order-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.resto-order-summary span {
    display: grid;
    gap: 2px;
    min-height: 48px;
    padding: 9px 10px;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.resto-order-summary strong {
    color: #0f172a;
    font-size: 17px;
    line-height: 1;
    text-transform: none;
}

.resto-premium-form .order-lines-panel {
    gap: 12px;
    border-color: #c7eee5;
    background: linear-gradient(180deg, #f6fffc 0%, #ffffff 100%);
}

.resto-premium-form .resto-lines-title,
.resto-premium-form .section-title-row {
    align-items: center;
}

.resto-premium-form .order-lines-panel h3 {
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.resto-premium-form .order-lines-panel p {
    color: #64748b;
}

.resto-premium-form #add-order-line {
    min-height: 34px;
    padding: 8px 12px;
    border-color: #0f766e;
    background: #e9fbf7;
    color: #0f766e;
    font-weight: 900;
}

.resto-premium-form #add-order-line:hover {
    background: #d8f7ef;
    transform: translateY(-1px);
}

.resto-premium-form .extra-order-lines-wrap {
    border: 1px solid #d6e4ef;
    border-radius: 9px;
    background: #ffffff;
    overflow: visible;
}

.resto-premium-form .extra-order-lines-table {
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}

.resto-premium-form .extra-order-lines-table thead th {
    padding: 8px;
    background: #0f172a;
    color: #ffffff;
    border-bottom: 0;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.resto-premium-form .extra-order-lines-table td {
    padding: 7px;
    border-bottom: 1px solid #e3edf5;
    vertical-align: top;
}

.resto-premium-form .extra-order-lines-table tbody tr:hover td {
    background: #f8fbfd;
}

.resto-premium-form .extra-order-lines-table th:nth-child(1),
.resto-premium-form .extra-order-lines-table td:nth-child(1) { width: 32%; }
.resto-premium-form .extra-order-lines-table th:nth-child(2),
.resto-premium-form .extra-order-lines-table td:nth-child(2) { width: 22%; }
.resto-premium-form .extra-order-lines-table th:nth-child(3),
.resto-premium-form .extra-order-lines-table td:nth-child(3) { width: 8%; }
.resto-premium-form .extra-order-lines-table th:nth-child(4),
.resto-premium-form .extra-order-lines-table td:nth-child(4) { width: 12%; }
.resto-premium-form .extra-order-lines-table th:nth-child(5),
.resto-premium-form .extra-order-lines-table td:nth-child(5) { width: 13%; }
.resto-premium-form .extra-order-lines-table th:nth-child(6),
.resto-premium-form .extra-order-lines-table td:nth-child(6) { width: 8%; }
.resto-premium-form .extra-order-lines-table th:nth-child(7),
.resto-premium-form .extra-order-lines-table td:nth-child(7) { width: 58px; text-align: center; }

.resto-premium-form .extra-order-lines-table input,
.resto-premium-form .extra-order-lines-table select {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 12px;
}

.resto-premium-form .extra-order-lines-table [data-line-remove] {
    min-width: 36px;
    height: 34px;
    padding: 0;
    border-radius: 7px;
    font-size: 11px;
}

.resto-premium-form .form-actions {
    justify-content: flex-end;
    padding-top: 2px;
}

.resto-premium-form .form-actions button[type="submit"] {
    min-width: 210px;
    border-radius: 8px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.18);
}

@media (max-width: 860px) {
    .server-order-layout-single {
        grid-template-columns: 1fr;
    }

    .resto-form-title,
    .resto-premium-form .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .resto-premium-form .guest-package-card,
    .resto-order-summary,
    .resto-premium-form .two-cols {
        grid-template-columns: 1fr;
    }
}

/* Saisie resto - mode serveur simplifie */
.resto-premium-form > .combo-field[data-combo="product"],
.resto-premium-form > label:has(#resto-designation),
.resto-premium-form > .two-cols:has(#resto-price),
.resto-premium-form > label:has(#resto-billable) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    box-shadow: none !important;
}

.resto-premium-form > .two-cols:has(#resto-date) {
    display: grid;
    grid-template-columns: minmax(180px, 240px);
    max-width: 260px;
    padding: 12px;
    border-color: #dbeafe;
    background: #f8fbff;
}

.resto-premium-form > .two-cols:has(#resto-date) label:has(#resto-quantity) {
    display: none;
}

.resto-premium-form > label:has(#resto-manager) {
    max-width: 420px;
    border-color: #dbeafe;
    background: #f8fbff;
}

.resto-premium-form .order-lines-panel {
    order: 20;
    padding: 14px;
}

.resto-premium-form > label:has(#resto-manager),
.resto-premium-form > .form-actions {
    order: 30;
}

.resto-premium-form .extra-order-lines-table {
    min-width: 760px;
}

.resto-premium-form .extra-order-lines-table th:nth-child(5),
.resto-premium-form .extra-order-lines-table td:nth-child(5) {
    display: none;
}

.resto-premium-form .extra-order-lines-table th:nth-child(1),
.resto-premium-form .extra-order-lines-table td:nth-child(1) { width: 42%; }
.resto-premium-form .extra-order-lines-table th:nth-child(2),
.resto-premium-form .extra-order-lines-table td:nth-child(2) { width: 24%; }
.resto-premium-form .extra-order-lines-table th:nth-child(3),
.resto-premium-form .extra-order-lines-table td:nth-child(3) { width: 9%; }
.resto-premium-form .extra-order-lines-table th:nth-child(4),
.resto-premium-form .extra-order-lines-table td:nth-child(4) { width: 14%; }
.resto-premium-form .extra-order-lines-table th:nth-child(6),
.resto-premium-form .extra-order-lines-table td:nth-child(6) { width: 10%; }
.resto-premium-form .extra-order-lines-table th:nth-child(7),
.resto-premium-form .extra-order-lines-table td:nth-child(7) { width: 52px; }

.resto-premium-form .extra-order-lines-table [data-line-name="designation"] {
    min-width: 0;
}

.resto-premium-form .form-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 0 -14px -14px;
    padding: 12px 14px;
    border-top: 1px solid #dbe6ef;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
    .resto-order-head p {
        display: none;
    }

    .resto-premium-form {
        gap: 12px;
        padding: 12px;
        border-radius: 10px;
    }

    .resto-form-title {
        padding-bottom: 10px;
    }

    .resto-form-title h2 {
        font-size: 18px;
    }

    .resto-service-pill {
        min-height: 26px;
        font-size: 10px;
    }

    .resto-premium-form > .combo-field,
    .resto-premium-form > label,
    .resto-premium-form > .two-cols,
    .resto-premium-form > .guest-package-card,
    .resto-premium-form > .order-lines-panel {
        padding: 10px;
        border-radius: 9px;
    }

    .resto-premium-form .guest-package-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resto-premium-form .guest-package-card div {
        min-height: 42px;
        padding: 7px;
    }

    .resto-order-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .resto-order-summary span {
        min-height: 42px;
        padding: 7px;
        font-size: 10px;
    }

    .resto-order-summary strong {
        font-size: 14px;
    }

    .resto-premium-form .extra-order-lines-wrap,
    .resto-premium-form .order-lines-panel .table-wrap {
        overflow: visible;
    }

    .resto-premium-form .extra-order-lines-table,
    .resto-premium-form .extra-order-lines-table tbody,
    .resto-premium-form .extra-order-lines-table tr,
    .resto-premium-form .extra-order-lines-table td {
        display: block;
        width: 100% !important;
        min-width: 0;
    }

    .resto-premium-form .extra-order-lines-table thead {
        display: none;
    }

    .resto-premium-form .extra-order-lines-table tr {
        display: grid;
        grid-template-columns: 1fr 92px 112px 72px 42px;
        gap: 7px;
        padding: 9px;
        border-bottom: 1px solid #dbe6ef;
        background: #ffffff;
    }

    .resto-premium-form .extra-order-lines-table tr + tr {
        margin-top: 8px;
        border-top: 1px solid #eef2f7;
    }

    .resto-premium-form .extra-order-lines-table td {
        padding: 0;
        border: 0;
        background: transparent !important;
    }

    .resto-premium-form .extra-order-lines-table td:nth-child(1) {
        grid-column: 1 / -1;
    }

    .resto-premium-form .extra-order-lines-table td:nth-child(2) {
        grid-column: 1 / -1;
    }

    .resto-premium-form .extra-order-lines-table td:nth-child(3)::before,
    .resto-premium-form .extra-order-lines-table td:nth-child(4)::before,
    .resto-premium-form .extra-order-lines-table td:nth-child(6)::before {
        display: block;
        margin-bottom: 3px;
        color: #64748b;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .resto-premium-form .extra-order-lines-table td:nth-child(3)::before { content: 'Qte'; }
    .resto-premium-form .extra-order-lines-table td:nth-child(4)::before { content: 'PU'; }
    .resto-premium-form .extra-order-lines-table td:nth-child(6)::before { content: 'Fact.'; }

    .resto-premium-form .extra-order-lines-table td:nth-child(7) {
        align-self: end;
    }

    .resto-premium-form .extra-order-lines-table input,
    .resto-premium-form .extra-order-lines-table select {
        min-height: 38px;
        font-size: 13px;
    }

    .resto-premium-form .extra-order-lines-table [data-line-remove] {
        width: 38px;
        min-width: 38px;
        height: 38px;
        font-size: 0;
    }

    .resto-premium-form .extra-order-lines-table [data-line-remove]::before {
        content: '×';
        font-size: 18px;
        line-height: 1;
    }
}

@media (max-width: 560px) {
    .resto-premium-form .guest-package-card,
    .resto-order-summary {
        grid-template-columns: 1fr;
    }

    .resto-premium-form .extra-order-lines-table tr {
        grid-template-columns: 1fr 1fr 80px;
    }

    .resto-premium-form .extra-order-lines-table td:nth-child(3),
    .resto-premium-form .extra-order-lines-table td:nth-child(4),
    .resto-premium-form .extra-order-lines-table td:nth-child(6) {
        grid-column: auto;
    }

    .resto-premium-form .extra-order-lines-table td:nth-child(7) {
        grid-column: 3;
    }

    .resto-premium-form .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .resto-premium-form .form-actions button,
    .resto-premium-form .form-actions .ghost-button {
        width: 100%;
    }
}

/* Fiche technique menu / recette */
.fiche-tech-head {
    align-items: end;
    gap: 16px;
}

.fiche-tech-picker-form {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.fiche-tech-sheet {
    border: 1px solid #dbe6ef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.fiche-tech-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dde7f0;
}

.fiche-tech-title-row h2 {
    margin: 8px 0 3px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
}

.fiche-tech-title-row p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.fiche-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.fiche-kpis article {
    display: grid;
    gap: 5px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid #dbe6ef;
    border-radius: 10px;
    background: #f8fbfd;
}

.fiche-kpis span {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.fiche-kpis strong {
    color: #0f172a;
    font-size: 20px;
    line-height: 1;
}

.fiche-recipe-builder {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #c7eee5;
    border-radius: 10px;
    background: linear-gradient(180deg, #f6fffc 0%, #ffffff 100%);
}

.fiche-ingredients-wrap {
    border: 1px solid #dbe6ef;
    border-radius: 10px;
    background: #ffffff;
}

.fiche-ingredients-table {
    min-width: 980px;
}

.fiche-ingredients-table thead th {
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.fiche-ingredients-table tfoot th {
    background: #fff7cc;
    color: #0f172a;
    font-weight: 900;
}

.fiche-ingredients-table .table-input {
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 12px;
}

@media (max-width: 860px) {
    .fiche-tech-picker-form,
    .fiche-kpis {
        grid-template-columns: 1fr;
    }

    .fiche-tech-title-row {
        flex-direction: column;
    }
}

@media print {
    .fiche-tech-sheet {
        box-shadow: none;
        border-color: #111827;
    }

    .fiche-kpis {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Invoice stay summary: keep the web, print and PDF rendering identical. */
.invoice-document .invoice-stay-band {
    display: grid !important;
    grid-template-columns: 1.08fr 0.86fr 0.86fr 0.56fr 0.42fr !important;
    gap: 8px !important;
    align-items: start !important;
    margin: 0 0 10px !important;
    padding: 8px 10px !important;
    border: 1px solid #cfd7e3 !important;
    border-radius: 6px !important;
    background: #f7f9fc !important;
    overflow: hidden !important;
}

.invoice-document .invoice-stay-band div {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important;
}

.invoice-document .invoice-stay-band span {
    color: #526071 !important;
    font-size: 9.5px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.invoice-document .invoice-stay-band strong {
    color: #111827 !important;
    font-size: 10.5px !important;
    line-height: 1.12 !important;
    font-weight: 850 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

@media print {
    body .invoice-document .invoice-stay-band,
    body:not(.print-landscape) .invoice-document .invoice-stay-band,
    body.print-landscape .invoice-document .invoice-stay-band,
    body.print-landscape .print-document-copy .invoice-stay-band {
        display: grid !important;
        grid-template-columns: 1.08fr 0.86fr 0.86fr 0.56fr 0.42fr !important;
        gap: 8px !important;
        margin: 0 0 10px !important;
        padding: 8px 10px !important;
        border: 1px solid #cfd7e3 !important;
        border-radius: 6px !important;
        background: #f7f9fc !important;
        overflow: hidden !important;
    }
}
.invoice-check-note {
    grid-column: 1 / -1;
    margin: -2px 0 0;
    padding: 6px 8px;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    background: #fffaf0;
    color: #374151;
    font-size: 10px;
    line-height: 1.2;
}

.invoice-check-note strong {
    color: #111827;
    font-weight: 850;
}

@media print {
    .invoice-check-note {
        padding: 5px 7px !important;
        font-size: 9.2px !important;
        line-height: 1.15 !important;
    }
}

.reservation-choice-sections {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(260px, 1.2fr);
    gap: 14px;
    margin-top: 14px;
}

.choice-pill-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #f8fafc;
}

.choice-pill-group legend {
    padding: 0 4px;
    color: #526071;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.choice-pill-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111827;
    font-weight: 800;
}

.choice-pill-group input {
    width: auto;
}

.nationality-combo {
    align-self: end;
}

@media (max-width: 900px) {
    .reservation-choice-sections {
        grid-template-columns: 1fr;
    }
}


/* Saisie hotel - chambres multiples: tighter selectors and wider PU/forfait column. */
.hotel-room-lines-table {
    min-width: 1040px;
    table-layout: fixed;
}

.hotel-room-lines-table th:nth-child(1),
.hotel-room-lines-table td:nth-child(1) { width: 25%; }
.hotel-room-lines-table th:nth-child(2),
.hotel-room-lines-table td:nth-child(2) { width: 16%; }
.hotel-room-lines-table th:nth-child(3),
.hotel-room-lines-table td:nth-child(3) { width: 16%; }
.hotel-room-lines-table th:nth-child(4),
.hotel-room-lines-table td:nth-child(4) { width: 12%; }
.hotel-room-lines-table th:nth-child(5),
.hotel-room-lines-table td:nth-child(5) { width: 8%; }
.hotel-room-lines-table th:nth-child(6),
.hotel-room-lines-table td:nth-child(6) { width: 18%; }
.hotel-room-lines-table th:nth-child(7),
.hotel-room-lines-table td:nth-child(7) { width: 54px; }

.hotel-room-lines-table .money-input {
    min-width: 132px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}


/* Invoice customer card: company primary, customer secondary. */
.invoice-party-card.client-card h3 {
    color: var(--invoice-navy);
    font-size: 13.5px;
    font-weight: 950;
    line-height: 1.08;
}

.invoice-party-card.client-card .invoice-client-subtitle {
    margin: -2px 0 7px;
}

.invoice-party-card.client-card .invoice-client-subtitle,
.invoice-party-card.client-card .invoice-client-subtitle strong {
    color: #1f2937;
    font-size: 12.2px;
    font-weight: 850;
    line-height: 1.16;
    letter-spacing: 0;
}


.tariff-page-head {
    align-items: flex-end;
}

.tariff-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.tariff-kpi-grid article {
    padding: 16px 18px;
    border: 1px solid #dbe6ef;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.tariff-kpi-grid span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.tariff-kpi-grid strong {
    display: block;
    margin-top: 5px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
}

.tariff-editor-panel,
.tariff-list-panel {
    border: 1px solid #d8e3ee;
    border-radius: 10px;
    background: #ffffff;
}

.tariff-add-form {
    display: grid;
    grid-template-columns: 120px 130px minmax(180px, 1.3fr) minmax(180px, 1.3fr) minmax(140px, 1fr) 130px 130px 90px 110px;
    gap: 10px;
    align-items: end;
}

.tariff-add-form label,
.tariff-table label {
    color: #334155;
    font-size: 12px;
    font-weight: 850;
}

.tariff-add-form input,
.tariff-add-form select,
.tariff-table input,
.tariff-table select {
    min-height: 34px;
    border: 1px solid #cbd8e5;
    border-radius: 7px;
    background: #ffffff;
    font-size: 13px;
}

.tariff-active-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
}

.tariff-active-toggle input {
    min-height: auto;
    width: auto;
}

.tariff-list-head {
    align-items: end;
}

.tariff-search-control {
    width: min(340px, 100%);
}

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

.tariff-table {
    min-width: 1120px;
    table-layout: fixed;
}

.tariff-table th {
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    text-transform: uppercase;
}

.tariff-table th,
.tariff-table td {
    padding: 7px 8px;
    vertical-align: middle;
}

.tariff-table th:nth-child(1),
.tariff-table td:nth-child(1) { width: 92px; }
.tariff-table th:nth-child(2),
.tariff-table td:nth-child(2) { width: 118px; }
.tariff-table th:nth-child(3),
.tariff-table td:nth-child(3) { width: 190px; }
.tariff-table th:nth-child(4),
.tariff-table td:nth-child(4) { width: 190px; }
.tariff-table th:nth-child(5),
.tariff-table td:nth-child(5) { width: 150px; }
.tariff-table th:nth-child(6),
.tariff-table td:nth-child(6),
.tariff-table th:nth-child(7),
.tariff-table td:nth-child(7) { width: 126px; }
.tariff-table th:nth-child(8),
.tariff-table td:nth-child(8) { width: 70px; }
.tariff-table th:nth-child(9),
.tariff-table td:nth-child(9) { width: 116px; }

.tariff-table input,
.tariff-table select {
    width: 100%;
    padding: 6px 8px;
}

.tariff-money-input {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tariff-supplement-row td {
    background: #fffaf0;
}

@media (max-width: 1100px) {
    .tariff-kpi-grid,
    .tariff-add-form {
        grid-template-columns: 1fr;
    }
}


/* Saisie hotel - per-line dates, services and supplements. */
.hotel-room-lines-table {
    min-width: 1280px;
}

.hotel-room-lines-table th:nth-child(1),
.hotel-room-lines-table td:nth-child(1) { width: 210px; }
.hotel-room-lines-table th:nth-child(2),
.hotel-room-lines-table td:nth-child(2),
.hotel-room-lines-table th:nth-child(3),
.hotel-room-lines-table td:nth-child(3) { width: 126px; }
.hotel-room-lines-table th:nth-child(4),
.hotel-room-lines-table td:nth-child(4),
.hotel-room-lines-table th:nth-child(5),
.hotel-room-lines-table td:nth-child(5) { width: 160px; }
.hotel-room-lines-table th:nth-child(6),
.hotel-room-lines-table td:nth-child(6) { width: 118px; }
.hotel-room-lines-table th:nth-child(7),
.hotel-room-lines-table td:nth-child(7) { width: 88px; }
.hotel-room-lines-table th:nth-child(8),
.hotel-room-lines-table td:nth-child(8) { width: 150px; }
.hotel-room-lines-table th:nth-child(9),
.hotel-room-lines-table td:nth-child(9) { width: 54px; }

.hotel-supplement-lines-panel {
    border-color: #f1d69a !important;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%) !important;
}

.hotel-supplement-lines-table {
    min-width: 920px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.hotel-supplement-lines-table thead th {
    background: #7c5b18;
    color: #ffffff;
    border-bottom: 0;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hotel-supplement-lines-table th,
.hotel-supplement-lines-table td {
    padding: 8px;
    border-bottom: 1px solid #f1e3c3;
    position: relative;
    overflow: visible;
}

.hotel-supplement-lines-table th:nth-child(1),
.hotel-supplement-lines-table td:nth-child(1) { width: 250px; }
.hotel-supplement-lines-table th:nth-child(2),
.hotel-supplement-lines-table td:nth-child(2),
.hotel-supplement-lines-table th:nth-child(3),
.hotel-supplement-lines-table td:nth-child(3) { width: 126px; }
.hotel-supplement-lines-table th:nth-child(4),
.hotel-supplement-lines-table td:nth-child(4) { width: 86px; }
.hotel-supplement-lines-table th:nth-child(5),
.hotel-supplement-lines-table td:nth-child(5) { width: 92px; }
.hotel-supplement-lines-table th:nth-child(6),
.hotel-supplement-lines-table td:nth-child(6) { width: 140px; }
.hotel-supplement-lines-table th:nth-child(7),
.hotel-supplement-lines-table td:nth-child(7) { width: 54px; text-align: center; }

.hotel-supplement-lines-table input,
.hotel-supplement-lines-table select,
.hotel-room-lines-table input,
.hotel-room-lines-table select {
    min-height: 34px;
}

.hotel-supplement-lines-table .table-combo {
    min-width: 0;
    position: relative;
}

.hotel-supplement-lines-table .combo-results {
    top: 38px;
    left: 0;
    right: auto;
    z-index: 60;
    min-width: 300px;
}


/* Client/agency and passage dashboard refinements */
.passage-panel {
    grid-column: span 2;
}

.passage-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.passage-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.passage-breakdown-grid > div {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.75);
    padding: 12px;
}

.passage-breakdown-grid h3 {
    margin: 0 0 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #526179;
}

.passage-breakdown-grid p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 6px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 0.86rem;
}

.passage-breakdown-grid p:first-of-type {
    border-top: 0;
}

.passage-breakdown-grid p span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.passage-breakdown-grid p strong {
    color: #0f766e;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
    .passage-panel {
        grid-column: auto;
    }

    .passage-breakdown-grid {
        grid-template-columns: 1fr;
    }
}


/* PMS billing/guest workflow refinements */
.billing-entry-grid {
    grid-template-columns: minmax(260px, 1.45fr) minmax(150px, 0.65fr) minmax(220px, 1fr);
    align-items: end;
}

.billing-entity-field input {
    font-weight: 700;
}

.reservations-table {
    table-layout: fixed;
}

.reservations-table th,
.reservations-table td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.reservations-table td.right,
.reservations-table th.right,
.invoice-table td.right,
.invoice-table th.right,
#invoice-archive-table-body td.right {
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
    .billing-entry-grid {
        grid-template-columns: 1fr;
    }
}


/* Saisie resto - poste serveur tactile 2026 */
.resto-order-head {
    margin-bottom: 12px;
}

.resto-order-head h1 {
    font-size: 26px;
    line-height: 1.1;
}

.server-order-layout-single {
    grid-template-columns: minmax(0, 1120px);
}

.resto-premium-form {
    gap: 0;
    overflow: visible;
    padding: 0;
    border: 1px solid #d8e2ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.resto-premium-form .resto-form-title {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #fbfcfd;
}

.resto-premium-form .resto-form-title h2 {
    font-size: 20px;
    letter-spacing: 0;
}

.resto-premium-form .resto-form-title p {
    margin-top: 3px;
    font-size: 12px;
}

.resto-premium-form .resto-service-pill {
    border-radius: 6px;
    background: #e8f6f2;
}

.resto-customer-section,
.resto-premium-form .resto-service-context,
.resto-premium-form .order-lines-panel {
    padding: 18px 20px;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.resto-section-heading,
.resto-section-heading > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resto-section-heading {
    justify-content: space-between;
    margin-bottom: 14px;
}

.resto-section-heading h3 {
    margin: 0;
    color: #172033;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
}

.resto-section-heading p {
    margin: 3px 0 0;
    color: #66758a;
    font-size: 11px;
    line-height: 1.25;
}

.resto-step-number {
    display: inline-grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #0f766e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.customer-mode-switch {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 3px;
    border: 1px solid #cfdbe5;
    border-radius: 7px;
    background: #f1f5f8;
}

.customer-mode-button {
    min-height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #526071;
    box-shadow: none;
    font-size: 12px;
    font-weight: 850;
}

.customer-mode-button:hover {
    background: #ffffff;
    color: #0f766e;
    transform: none;
}

.customer-mode-button.is-active {
    background: #ffffff;
    color: #0f766e;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.12);
}

.resto-customer-panel {
    max-width: 100%;
}

.resto-customer-panel > .combo-field {
    width: min(680px, 100%);
}

.resto-customer-panel .combo-input-wrap > input {
    min-height: 44px;
    padding-right: 42px;
    font-size: 14px;
    font-weight: 750;
}

.resto-customer-panel .combo-results {
    z-index: 80;
}

.resto-customer-panel .field-help,
.line-entry-hint {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1.2;
}

.resto-premium-form .guest-package-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 1fr);
    gap: 0;
    margin-top: 12px;
    overflow: hidden;
    padding: 0;
    border: 1px solid #cfe0ee;
    border-left: 4px solid #0f766e;
    border-radius: 7px;
    background: #f7fafc;
}

.resto-premium-form .guest-package-card[hidden] {
    display: none;
}

.resto-premium-form .guest-package-card > div {
    display: grid;
    align-content: center;
    gap: 3px;
    min-height: 66px;
    padding: 10px 12px;
    border: 0;
    border-left: 1px solid #dce7ef;
    border-radius: 0;
    background: transparent;
}

.resto-premium-form .guest-package-card > div:first-child {
    border-left: 0;
}

.resto-premium-form .guest-package-card span {
    color: #65748a;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.resto-premium-form .guest-package-card strong {
    display: block;
    overflow: hidden;
    color: #172033;
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resto-premium-form .guest-package-card small {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: #526071;
    font-size: 10.5px;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resto-premium-form .guest-package-card small i::before {
    content: '•';
    font-style: normal;
}

.resto-premium-form .resto-service-context {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(240px, 1fr);
    gap: 14px;
    align-items: end;
    background: #fbfcfd;
}

.resto-premium-form .resto-service-context label {
    display: grid;
    gap: 5px;
}

.resto-premium-form .resto-service-context input {
    min-height: 40px;
}

.resto-premium-form .order-lines-panel {
    order: initial;
    display: grid;
    gap: 12px;
    border-color: #e2e8f0;
    background: #ffffff;
}

.resto-premium-form .order-lines-panel .resto-section-heading {
    margin-bottom: 0;
}

.resto-premium-form #add-order-line {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #93d5c6;
    border-radius: 6px;
    background: #edf9f6;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
}

.resto-premium-form #add-order-line[hidden] {
    display: none;
}

.resto-premium-form .resto-order-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.resto-premium-form .resto-order-summary span {
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 9.5px;
}

.resto-premium-form .resto-order-summary strong {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.resto-premium-form .extra-order-lines-wrap {
    overflow: visible;
    border: 1px solid #d8e2ea;
    border-radius: 7px;
}

.resto-premium-form .extra-order-lines-table {
    width: 100%;
    min-width: 720px;
    table-layout: fixed;
}

.resto-premium-form .extra-order-lines-table thead th {
    padding: 9px 8px;
    background: #17233b;
    font-size: 10px;
    letter-spacing: 0;
}

.resto-premium-form .extra-order-lines-table td {
    padding: 8px;
    vertical-align: middle;
}

.resto-premium-form .extra-order-lines-table th:nth-child(1),
.resto-premium-form .extra-order-lines-table td:nth-child(1) { width: 47%; }
.resto-premium-form .extra-order-lines-table th:nth-child(2),
.resto-premium-form .extra-order-lines-table td:nth-child(2) { width: 16%; }
.resto-premium-form .extra-order-lines-table th:nth-child(3),
.resto-premium-form .extra-order-lines-table td:nth-child(3) { width: 15%; }
.resto-premium-form .extra-order-lines-table th:nth-child(4),
.resto-premium-form .extra-order-lines-table td:nth-child(4) { width: 17%; }
.resto-premium-form .extra-order-lines-table th:nth-child(5),
.resto-premium-form .extra-order-lines-table td:nth-child(5) { width: 48px; text-align: center; }

.resto-premium-form .extra-order-lines-table input,
.resto-premium-form .extra-order-lines-table select {
    min-height: 40px;
    border-radius: 6px;
    font-size: 12.5px;
}

.resto-premium-form .extra-order-lines-table [data-line-role="product-search"].has-selection {
    border-color: #83cbbb;
    background: #f3fbf9;
    font-weight: 850;
}

.quantity-stepper {
    display: grid;
    grid-template-columns: 32px minmax(44px, 1fr) 32px;
    overflow: hidden;
    border: 1px solid #cbd8e5;
    border-radius: 6px;
    background: #ffffff;
}

.quantity-stepper button {
    min-width: 32px;
    min-height: 38px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #eef3f6;
    color: #24334a;
    box-shadow: none;
    font-size: 18px;
    font-weight: 900;
}

.quantity-stepper button:hover {
    background: #dce8ee;
    transform: none;
}

.resto-premium-form .quantity-stepper input {
    min-width: 0;
    padding: 4px;
    border: 0;
    border-right: 1px solid #d9e3ea;
    border-left: 1px solid #d9e3ea;
    border-radius: 0;
    text-align: center;
    font-weight: 900;
    appearance: textfield;
}

.resto-premium-form .quantity-stepper input::-webkit-inner-spin-button,
.resto-premium-form .quantity-stepper input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.resto-premium-form .extra-order-lines-table [data-line-remove] {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 18px;
    line-height: 1;
}

.resto-premium-form > .form-actions {
    order: initial;
    position: sticky;
    bottom: 0;
    z-index: 30;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    padding: 12px 20px;
    border-top: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.resto-premium-form .form-actions button[type="submit"] {
    min-width: 230px;
    min-height: 44px;
    border-radius: 6px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .resto-order-head {
        margin-bottom: 8px;
    }

    .resto-premium-form .resto-form-title,
    .resto-customer-section,
    .resto-premium-form .resto-service-context,
    .resto-premium-form .order-lines-panel {
        padding: 14px;
    }

    .resto-premium-form .resto-form-title,
    .resto-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-mode-switch {
        width: 100%;
    }

    .customer-mode-button {
        min-height: 40px;
    }

    .resto-premium-form .guest-package-card {
        grid-template-columns: 1fr 1fr;
    }

    .resto-premium-form .guest-package-card > div {
        min-height: 58px;
        border-top: 1px solid #dce7ef;
    }

    .resto-premium-form .guest-package-card .guest-package-main {
        grid-column: 1 / -1;
        border-top: 0;
    }

    .resto-premium-form .resto-service-context {
        grid-template-columns: minmax(150px, .7fr) minmax(220px, 1.3fr);
    }

    .resto-premium-form .extra-order-lines-table,
    .resto-premium-form .extra-order-lines-table tbody,
    .resto-premium-form .extra-order-lines-table tr,
    .resto-premium-form .extra-order-lines-table td {
        display: block;
        width: 100% !important;
        min-width: 0;
    }

    .resto-premium-form .extra-order-lines-table {
        min-width: 0;
    }

    .resto-premium-form .extra-order-lines-table thead {
        display: none;
    }

    .resto-premium-form .extra-order-lines-table tr {
        display: grid;
        grid-template-columns: minmax(100px, .8fr) minmax(110px, .9fr) minmax(140px, 1.15fr) 44px;
        gap: 8px;
        padding: 10px;
        border-bottom: 1px solid #dfe8ef;
        background: #ffffff;
    }

    .resto-premium-form .extra-order-lines-table tr + tr {
        margin-top: 0;
        border-top: 6px solid #edf2f5;
    }

    .resto-premium-form .extra-order-lines-table td {
        padding: 0;
        border: 0;
        background: transparent !important;
    }

    .resto-premium-form .extra-order-lines-table td:nth-child(1) {
        grid-column: 1 / -1;
    }

    .resto-premium-form .extra-order-lines-table td:nth-child(2),
    .resto-premium-form .extra-order-lines-table td:nth-child(3),
    .resto-premium-form .extra-order-lines-table td:nth-child(4),
    .resto-premium-form .extra-order-lines-table td:nth-child(5) {
        grid-column: auto;
    }

    .resto-premium-form .extra-order-lines-table td:nth-child(2)::before,
    .resto-premium-form .extra-order-lines-table td:nth-child(3)::before,
    .resto-premium-form .extra-order-lines-table td:nth-child(4)::before {
        display: block;
        margin-bottom: 4px;
        color: #66758a;
        font-size: 9px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .resto-premium-form .extra-order-lines-table td:nth-child(2)::before { content: 'Qte'; }
    .resto-premium-form .extra-order-lines-table td:nth-child(3)::before { content: 'PU'; }
    .resto-premium-form .extra-order-lines-table td:nth-child(4)::before { content: 'Facturation'; }

    .resto-premium-form .extra-order-lines-table td:nth-child(5) {
        align-self: end;
    }

    .resto-premium-form .extra-order-lines-table [data-line-remove]::before {
        content: none;
    }

    .resto-premium-form > .form-actions {
        margin: 0;
        padding: 10px 14px;
    }
}

@media (max-width: 560px) {
    .resto-order-head h1 {
        font-size: 22px;
    }

    .resto-premium-form {
        margin-right: -4px;
        margin-left: -4px;
        border-radius: 6px;
    }

    .resto-premium-form .resto-form-title {
        display: none;
    }

    .resto-customer-section,
    .resto-premium-form .resto-service-context,
    .resto-premium-form .order-lines-panel {
        padding: 11px;
    }

    .resto-section-heading {
        gap: 9px;
        margin-bottom: 10px;
    }

    .resto-section-heading p {
        display: none;
    }

    .resto-premium-form .guest-package-card,
    .resto-premium-form .resto-service-context,
    .resto-premium-form .resto-order-summary {
        grid-template-columns: 1fr;
    }

    .resto-premium-form .guest-package-card .guest-package-main {
        grid-column: auto;
    }

    .resto-premium-form .guest-package-card > div {
        min-height: 52px;
        border-top: 1px solid #dce7ef;
        border-left: 0;
    }

    .resto-premium-form .guest-package-card > div:first-child {
        border-top: 0;
    }

    .resto-premium-form .resto-order-summary {
        display: flex;
        overflow-x: auto;
    }

    .resto-premium-form .resto-order-summary span {
        flex: 1 0 104px;
        min-height: 40px;
    }

    .resto-premium-form .extra-order-lines-table tr {
        grid-template-columns: minmax(78px, .7fr) minmax(96px, .85fr) 42px;
    }

    .resto-premium-form .extra-order-lines-table td:nth-child(1) {
        grid-column: 1 / -1;
    }

    .resto-premium-form .extra-order-lines-table td:nth-child(2) {
        grid-column: 1;
    }

    .resto-premium-form .extra-order-lines-table td:nth-child(3) {
        grid-column: 2;
    }

    .resto-premium-form .extra-order-lines-table td:nth-child(4) {
        grid-column: 1 / 3;
    }

    .resto-premium-form .extra-order-lines-table td:nth-child(5) {
        grid-column: 3;
        grid-row: 3;
    }

    .resto-premium-form .extra-order-lines-table input,
    .resto-premium-form .extra-order-lines-table select,
    .resto-customer-panel .combo-input-wrap > input,
    .resto-premium-form .resto-service-context input {
        min-height: 44px;
        font-size: 14px;
    }

    .resto-premium-form #add-order-line {
        width: 100%;
        min-height: 42px;
    }

    .resto-premium-form > .form-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 9px 11px;
    }

    .resto-premium-form .form-actions button,
    .resto-premium-form .form-actions .ghost-button,
    .resto-premium-form .form-actions button[type="submit"] {
        width: 100%;
        min-width: 0;
        min-height: 46px;
    }
}


/* Invoice official stamp and signature */
.invoice-payment-grid .invoice-signature-box {
    display: grid;
    grid-template-rows: auto 66px auto auto;
    align-items: center;
    justify-items: center;
    align-content: start;
    gap: 1px;
    min-height: 104px;
    padding: 6px 8px 5px;
    border-bottom: 1px solid #111827;
    overflow: hidden;
    text-align: center;
}

.invoice-signature-visual {
    position: relative;
    width: min(150px, 100%);
    height: 66px;
    margin: 0 auto;
}

.invoice-stamp-image,
.invoice-signature-image {
    position: absolute;
    left: 50%;
    display: block;
    object-fit: contain;
    transform: translateX(-50%);
}

.invoice-stamp-image {
    top: 0;
    width: 66px;
    height: 66px;
    opacity: 0.82;
    z-index: 1;
}

.invoice-signature-image {
    top: 8px;
    width: min(136px, 100%);
    height: 56px;
    z-index: 2;
}

.invoice-responsible-name {
    color: #111641;
    font-size: 10.5px;
    line-height: 1.1;
    font-weight: 900;
    white-space: nowrap;
}

.invoice-signature-box small {
    color: #526071;
    font-size: 9px;
    line-height: 1.1;
    font-weight: 700;
    white-space: nowrap;
}

@media print {
    .invoice-payment-grid .invoice-signature-box {
        min-height: 100px;
        padding: 5px 7px 4px;
    }

    .invoice-signature-visual {
        height: 62px;
    }

    .invoice-stamp-image {
        width: 62px;
        height: 62px;
    }

    .invoice-signature-image {
        top: 7px;
        width: min(130px, 100%);
        height: 53px;
    }
}


/* Keep the signature centered; place the stamp on the bank/responsible corner. */
.invoice-payment-grid .invoice-signature-box {
    position: relative;
    overflow: visible;
}

.invoice-payment-grid .invoice-stamp-image {
    position: absolute;
    top: -100px;
    left: -112px;
    width: 150px;
    height: 150px;
    object-fit: contain;
    opacity: 0.9;
    transform: none;
    z-index: 4;
    filter: drop-shadow(0 2px 3px rgba(17, 22, 65, 0.12));
}

.invoice-payment-grid .invoice-signature-image {
    top: 8px;
    width: min(136px, 100%);
    height: 56px;
    z-index: 2;
}

@media print {
    .invoice-payment-grid .invoice-stamp-image {
        top: -100px;
        left: -112px;
        width: 150px;
        height: 150px;
    }

    .invoice-payment-grid .invoice-signature-image {
        top: 7px;
        width: min(130px, 100%);
        height: 53px;
    }
}

/* Keep the full official stamp visible above every invoice footer block. */
.invoice-document .invoice-closing {
    overflow: visible !important;
    z-index: 3;
}

.invoice-closing .invoice-payment-grid {
    z-index: 10 !important;
}

.invoice-payment-grid .invoice-stamp-image {
    z-index: 20 !important;
}

.invoice-format-actions .invoice-archive-top-button {
    min-width: 104px;
}


/* Invoice correction audit trail */
.invoice-trace-cell {
    min-width: 150px;
}
.invoice-trace-cell strong,
.invoice-trace-link {
    display: block;
    white-space: nowrap;
}
.invoice-trace-link {
    margin-top: 4px;
    color: #9f2f22;
    font-size: 11px;
    font-weight: 700;
}
.invoice-cancelled-row {
    background: #f7f8fa;
    color: #647184;
}
.invoice-correction-row {
    background: #fff8ef;
}
.invoice-row-actions {
    flex-wrap: nowrap;
}
.invoice-rectify-dialog {
    width: min(520px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 35, 60, .24);
}
.invoice-rectify-dialog::backdrop {
    background: rgba(12, 25, 43, .52);
}
.invoice-rectify-form {
    display: grid;
    gap: 16px;
    padding: 22px;
}
.invoice-rectify-head,
.invoice-rectify-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.invoice-rectify-head h3 {
    margin: 3px 0 0;
}
.invoice-rectify-form p {
    margin: 0;
    color: #526174;
    line-height: 1.5;
}
.invoice-rectify-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}
.invoice-rectify-form textarea {
    min-height: 88px;
    resize: vertical;
}
.invoice-rectify-actions {
    justify-content: flex-end;
}


/* Optional invoice authentication */
.invoice-document.is-authentication-hidden .invoice-stamp-image,
.invoice-document.is-authentication-hidden .invoice-signature-visual,
.invoice-document.is-authentication-hidden .invoice-responsible-name,
.invoice-document.is-authentication-hidden .invoice-signature-box > small {
    visibility: hidden !important;
}


.invoice-document.is-authentication-images-hidden .invoice-stamp-image,
.invoice-document.is-authentication-images-hidden .invoice-signature-visual {
    visibility: hidden !important;
}

/* Reservation confirmation */
.confirmation-page-head {
    align-items: flex-end;
}
.confirmation-search-panel {
    max-width: 860px;
    margin-inline: auto;
}
.confirmation-search-form {
    display: grid;
    gap: 8px;
}
.confirmation-search-form > label {
    color: #42536a;
    font-size: 13px;
    font-weight: 700;
}
.confirmation-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}
.confirmation-search-row input {
    min-width: 0;
}
.confirmation-toolbar {
    width: min(210mm, 100%);
    margin: 18px auto 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.confirmation-empty-state {
    max-width: 720px;
    margin: 34px auto;
    padding: 44px 24px;
    border: 1px dashed #bdc9d8;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
}
.confirmation-empty-state strong {
    display: block;
    color: #101b46;
    font-size: 20px;
}
.confirmation-empty-state p {
    margin: 7px 0 0;
    color: #617087;
}
.reservation-confirmation-document {
    width: min(210mm, 100%);
    min-height: 297mm;
    margin: 0 auto 32px;
    padding: 11mm 12mm;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #d8e0eb;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 52px rgba(17, 31, 59, .12);
    color: #1a2638;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}
.confirmation-document-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
    gap: 20px;
    min-height: 105px;
    padding: 18px 22px;
    overflow: hidden;
    background: #101846;
    color: #fff;
}
.confirmation-document-header::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 42%;
    height: 7px;
    background: #ffd500;
}
.confirmation-hotel-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}
.confirmation-hotel-brand img {
    width: 92px;
    height: 58px;
    padding: 5px 8px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
}
.confirmation-hotel-brand div {
    display: grid;
    gap: 3px;
}
.confirmation-hotel-brand strong {
    font-size: 18px;
}
.confirmation-hotel-brand span {
    color: #dce4f2;
    font-size: 10px;
    line-height: 1.35;
}
.confirmation-document-title {
    align-self: center;
    text-align: right;
}
.confirmation-document-title > span {
    color: #ffd500;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}
.confirmation-document-title h2 {
    margin: 5px 0 4px;
    color: #fff;
    font-size: 25px;
    line-height: 1;
}
.confirmation-document-title p {
    margin: 0;
    color: #e7ecf5;
    font-size: 12px;
    font-weight: 700;
}
.confirmation-meta-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
    border: 1px solid #dbe3ed;
    background: #f4f7fa;
}
.confirmation-meta-strip > div {
    min-width: 0;
    padding: 10px 12px;
    border-right: 1px solid #dbe3ed;
}
.confirmation-meta-strip > div:last-child {
    border-right: 0;
}
.confirmation-meta-strip span,
.confirmation-section-label,
.confirmation-stay-grid span {
    display: block;
    margin-bottom: 4px;
    color: #607087;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}
.confirmation-meta-strip strong {
    display: block;
    overflow-wrap: anywhere;
    color: #17233a;
    font-size: 11px;
}
.confirmation-status {
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;
}
.confirmation-status.success { background: #dff5e9; color: #087447; }
.confirmation-status.warning { background: #fff1d9; color: #a34d00; }
.confirmation-status.danger { background: #ffe2e5; color: #b42332; }
.confirmation-status.info { background: #dcecf7; color: #145d82; }
.confirmation-status.neutral { background: #e7ebf0; color: #4f5d70; }
.confirmation-guest-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 17px 4px 14px;
    border-bottom: 1px solid #dce3eb;
}
.confirmation-guest-section h3 {
    margin: 2px 0 4px;
    color: #111b44;
    font-size: 21px;
}
.confirmation-guest-section p {
    margin: 3px 0 0;
    color: #536277;
    font-size: 10px;
}
.confirmation-guest-section .confirmation-company {
    color: #b42332;
    font-size: 12px;
    font-weight: 800;
}
.confirmation-qr-placeholder {
    position: relative;
    width: 68px;
    height: 68px;
    border: 1px solid #273352;
    background: #fff;
}
.confirmation-qr-placeholder i {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 4px solid #111b44;
}
.confirmation-qr-placeholder i:nth-child(1) { top: 6px; left: 6px; }
.confirmation-qr-placeholder i:nth-child(2) { top: 6px; right: 6px; }
.confirmation-qr-placeholder i:nth-child(3) { bottom: 13px; left: 6px; }
.confirmation-qr-placeholder b {
    position: absolute;
    right: 10px;
    bottom: 19px;
    color: #111b44;
    font-size: 10px;
}
.confirmation-qr-placeholder small {
    position: absolute;
    right: 4px;
    bottom: 3px;
    color: #6d7888;
    font-size: 6px;
    text-transform: uppercase;
}
.confirmation-stay-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
}
.confirmation-stay-grid > div {
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid #dbe3ed;
    border-top: 3px solid #101846;
    background: #fff;
}
.confirmation-stay-grid strong {
    display: block;
    color: #111b44;
    font-size: 15px;
}
.confirmation-stay-grid small {
    color: #65748a;
    font-size: 8px;
}
.confirmation-room-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 8px;
    padding: 12px;
    border-left: 4px solid #ffd500;
    background: #f7f9fb;
}
.confirmation-room-section > div {
    min-width: 0;
    padding-right: 10px;
    border-right: 1px solid #dce3eb;
}
.confirmation-room-section > div:last-child {
    padding-right: 0;
    border-right: 0;
}
.confirmation-room-section strong {
    display: block;
    color: #17233a;
    font-size: 11px;
    line-height: 1.35;
}
.confirmation-pricing-section {
    margin-top: 14px;
}
.confirmation-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 7px;
}
.confirmation-section-heading span {
    color: #66758a;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}
.confirmation-section-heading h3 {
    margin: 2px 0 0;
    color: #111b44;
    font-size: 16px;
}
.confirmation-section-heading > strong {
    color: #101846;
    font-size: 18px;
    white-space: nowrap;
}
.confirmation-table-wrap {
    overflow-x: auto;
    border: 1px solid #cfd8e5;
}
.confirmation-price-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
    border-collapse: collapse;
}
.confirmation-price-table th,
.confirmation-price-table td {
    padding: 6px 7px;
    border-bottom: 1px solid #dce3eb;
    font-size: 9px;
    line-height: 1.25;
    vertical-align: top;
}
.confirmation-price-table thead th {
    background: #101846;
    color: #fff;
    font-size: 8px;
    text-transform: uppercase;
}
.confirmation-price-table th:nth-child(1) { width: 26%; }
.confirmation-price-table th:nth-child(2) { width: 17%; }
.confirmation-price-table th:nth-child(3) { width: 13%; }
.confirmation-price-table th:nth-child(4) { width: 8%; }
.confirmation-price-table th:nth-child(5),
.confirmation-price-table th:nth-child(6) { width: 18%; }
.confirmation-price-table tbody tr:last-child td {
    border-bottom: 0;
}
.confirmation-price-table tfoot th {
    border-top: 2px solid #101846;
    border-bottom: 0;
    background: #fff8cf;
    color: #111b44;
    font-size: 10px;
}
.confirmation-price-table .amount-cell {
    white-space: nowrap;
}
.confirmation-notes-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 9px;
    margin-top: 13px;
}
.confirmation-notes-grid > div {
    padding: 10px 12px;
    border: 1px solid #dce3eb;
    background: #f8fafc;
}
.confirmation-notes-grid p,
.confirmation-notes-grid ul {
    margin: 4px 0 0;
    color: #4f5f73;
    font-size: 8px;
    line-height: 1.45;
}
.confirmation-notes-grid ul {
    padding-left: 14px;
}
.confirmation-document-footer {
    margin-top: 14px;
    padding-top: 9px;
    border-top: 2px solid #101846;
}
.confirmation-document-footer > p {
    margin: 0;
    color: #49596e;
    font-size: 8px;
    text-align: center;
}
.confirmation-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    margin-top: 14px;
}
.confirmation-signatures > div {
    display: grid;
    gap: 5px;
    color: #5b687a;
    font-size: 8px;
    text-align: center;
}
.confirmation-signatures i {
    display: block;
    height: 24px;
    border-bottom: 1px solid #7b8798;
}
.confirmation-signatures strong {
    color: #17233a;
    font-size: 8px;
}

@media (max-width: 720px) {
    .confirmation-search-row {
        grid-template-columns: 1fr;
    }
    .confirmation-toolbar {
        padding-inline: 4px;
    }
    .reservation-confirmation-document {
        min-height: 0;
        padding: 18px;
        border-radius: 0;
    }
    .confirmation-document-header {
        grid-template-columns: 1fr;
    }
    .confirmation-document-title {
        text-align: left;
    }
    .confirmation-meta-strip,
    .confirmation-stay-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .confirmation-meta-strip > div:nth-child(2) {
        border-right: 0;
    }
    .confirmation-meta-strip > div:nth-child(-n + 2) {
        border-bottom: 1px solid #dbe3ed;
    }
    .confirmation-room-section,
    .confirmation-notes-grid {
        grid-template-columns: 1fr;
    }
    .confirmation-room-section > div {
        padding: 0 0 8px;
        border-right: 0;
        border-bottom: 1px solid #dce3eb;
    }
    .confirmation-room-section > div:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }
    .confirmation-price-table th,
    .confirmation-price-table td {
        padding: 5px 4px;
        font-size: 8px;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }
    html,
    body {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body:not(.print-landscape) .content > .reservation-confirmation-document {
        display: block !important;
    }
    .reservation-confirmation-document {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 11mm 12mm !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        page-break-after: avoid !important;
        break-after: avoid-page !important;
    }
}


/* Contrat de location */
.contract-page-head { align-items: flex-end; }
.contract-search-panel { border-top: 3px solid #101846; }
.contract-toolbar { width: min(210mm, 100%); }
.contract-settings-panel { max-width: 980px; margin-inline: auto; }
.contract-settings-form { display: grid; grid-template-columns: 135px minmax(190px, 1fr) minmax(190px, 1fr) minmax(170px, .85fr) auto; gap: 10px; align-items: end; }
.contract-settings-form label { display: grid; gap: 5px; color: #42536a; font-size: 12px; font-weight: 800; }
.contract-settings-form input, .contract-settings-form select { min-width: 0; height: 40px; }
@media (max-width: 780px) { .contract-settings-form { grid-template-columns: 1fr; } }


.contract-pdf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 10px 16px;
    border-color: #0f766e;
    background: #0f766e;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 118, 110, .18);
}
.contract-pdf-button::before {
    content: 'PDF';
    display: inline-grid;
    place-items: center;
    width: 29px;
    height: 22px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
}
.contract-pdf-button:hover {
    background: #0b5f59;
    border-color: #0b5f59;
    color: #fff;
}

.lease-contract-document {
    width: min(210mm, 100%);
    min-height: 297mm;
    margin: 0 auto 32px;
    padding: 10mm 11mm;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #d8e0eb;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 52px rgba(17, 31, 59, .12);
    color: #17233a;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}
.lease-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, .95fr);
    gap: 18px;
    padding: 16px 20px;
    overflow: hidden;
    background: #101846;
    color: #fff;
}
.lease-header::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45%;
    height: 7px;
    background: #ffd500;
}
.lease-brand { display: flex; align-items: center; gap: 14px; }
.lease-brand img {
    width: 88px;
    height: 56px;
    padding: 5px 8px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
}
.lease-brand div { display: grid; gap: 3px; }
.lease-brand strong { font-size: 18px; }
.lease-brand span {
    color: #dce4f2;
    font-size: 9px;
    line-height: 1.3;
}
.lease-title { align-self: center; text-align: right; }
.lease-title span {
    color: #ffd500;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}
.lease-title h2 {
    margin: 5px 0 4px;
    color: #fff;
    font-size: 21px;
    line-height: 1.05;
}
.lease-title p {
    margin: 0;
    color: #e7ecf5;
    font-size: 10px;
    font-weight: 700;
}
.lease-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
.lease-parties > div,
.lease-property-box,
.lease-finance,
.lease-clauses,
.lease-observations {
    border: 1px solid #dbe3ed;
    background: #fff;
}
.lease-parties > div {
    min-width: 0;
    padding: 10px 12px;
    border-left: 4px solid #101846;
}
.lease-parties > div:last-child { border-left-color: #ffd500; }
.lease-parties span,
.lease-summary-grid span,
.lease-property-box span,
.lease-observations span {
    display: block;
    margin-bottom: 4px;
    color: #607087;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}
.lease-parties h3 {
    margin: 0 0 5px;
    color: #101846;
    font-size: 15px;
}
.lease-parties p {
    margin: 3px 0;
    color: #4d5c70;
    font-size: 10.5px;
    line-height: 1.42;
}
.lease-contact-warning {
    display: inline-block;
    margin: 2px 0 5px !important;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff4db;
    color: #9a4a00 !important;
    font-weight: 800;
}
.lease-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 10px;
    border: 1px solid #dbe3ed;
    background: #f6f8fb;
}
.lease-summary-grid > div {
    min-width: 0;
    padding: 8px 9px;
    border-right: 1px solid #dbe3ed;
}
.lease-summary-grid > div:last-child { border-right: 0; }
.lease-summary-grid strong {
    display: block;
    color: #101846;
    font-size: 11px;
    line-height: 1.25;
}
.lease-property-box {
    display: grid;
    grid-template-columns: 1.25fr 1fr .85fr;
    gap: 0;
    margin-top: 10px;
    border-left: 4px solid #ffd500;
    background: #f8fafc;
}
.lease-property-box > div {
    min-width: 0;
    padding: 9px 11px;
    border-right: 1px solid #dbe3ed;
}
.lease-property-box > div:last-child { border-right: 0; }
.lease-property-box strong {
    display: block;
    color: #17233a;
    font-size: 10px;
    line-height: 1.35;
}
.lease-finance { margin-top: 10px; overflow: hidden; }
.lease-finance h3,
.lease-clauses h3 {
    margin: 0;
    padding: 7px 10px;
    background: #101846;
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
}
.lease-finance table { width: 100%; border-collapse: collapse; }
.lease-finance th,
.lease-finance td {
    padding: 7px 10px;
    border-top: 1px solid #dbe3ed;
    font-size: 10.5px;
    line-height: 1.3;
    text-align: left;
    vertical-align: top;
}
.lease-finance th {
    width: 38%;
    color: #101846;
    background: #f8fafc;
}
.lease-finance td { color: #27364b; }
.lease-clauses { margin-top: 10px; }
.lease-clauses ol {
    margin: 0;
    padding: 8px 12px 8px 27px;
}
.lease-clauses li {
    margin: 0 0 6px;
    color: #27364b;
    font-size: 10.2px;
    line-height: 1.45;
}
.lease-clauses li:last-child { margin-bottom: 0; }
.lease-clauses strong { color: #101846; }
.lease-observations {
    margin-top: 10px;
    padding: 8px 10px;
    background: #fffdf0;
    border-left: 4px solid #ffd500;
}
.lease-observations p {
    margin: 0;
    color: #4c5b6f;
    font-size: 10.2px;
    line-height: 1.42;
}
.lease-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 2px solid #101846;
}
.lease-footer > p {
    margin: 0;
    color: #4c5b6f;
    font-size: 8px;
    text-align: center;
}
.lease-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    margin-top: 12px;
}
.lease-signatures > div {
    display: grid;
    gap: 5px;
    color: #5b687a;
    font-size: 8px;
    text-align: center;
}
.lease-signatures i {
    display: block;
    height: 27px;
    border-bottom: 1px solid #7b8798;
}
.lease-signatures strong {
    color: #17233a;
    font-size: 8px;
    line-height: 1.3;
}

@media (max-width: 560px) {
    .lease-contract-document {
        min-height: 0;
        padding: 18px;
        border-radius: 0;
    }
    .lease-header,
    .lease-parties,
    .lease-property-box { grid-template-columns: 1fr; }
    .lease-title { text-align: left; }
    .lease-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lease-summary-grid > div:nth-child(2n),
    .lease-property-box > div { border-right: 0; }
    .lease-property-box > div { border-bottom: 1px solid #dbe3ed; }
    .lease-property-box > div:last-child { border-bottom: 0; }
}

@media print {
    body:not(.print-landscape) .content > .lease-contract-document {
        display: block !important;
    }
    .lease-contract-document {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 10mm 11mm !important;
        border: 1px solid #d8e0eb !important;
        border-radius: 6px !important;
        box-shadow: none !important;
        page-break-after: avoid !important;
        break-after: avoid-page !important;
    }
}

/* Catalogue activités, atelier et location de salle. */
.service-catalog-panel {
    overflow: hidden;
    border-color: #d7e0eb;
}

.service-catalog-head {
    align-items: flex-end;
    gap: 24px;
}

.section-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #0f766e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.service-search-control {
    width: min(330px, 100%);
    flex: 0 0 auto;
}

.service-add-form {
    display: grid;
    grid-template-columns: 150px minmax(220px, 1.6fr) minmax(150px, 1fr) 160px 120px 150px auto auto;
    gap: 10px;
    align-items: end;
    margin: 18px 0 14px;
    padding: 14px;
    border: 1px solid #dce4ee;
    background: #f7f9fc;
}

.service-add-form label {
    min-width: 0;
    color: #42526b;
    font-size: 12px;
    font-weight: 700;
}

.service-add-form input,
.service-add-form select {
    margin-top: 5px;
    min-width: 0;
}

.service-add-form button {
    min-height: 40px;
}

.service-pricing-note {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 12px;
    color: #52627a;
    font-size: 12px;
}

.service-pricing-note strong {
    color: #152341;
}

.service-tariff-table-wrap {
    max-width: 100%;
    border: 1px solid #dce4ee;
    background: #fff;
}

.service-tariff-table {
    width: max-content;
    min-width: 2530px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.service-tariff-table th,
.service-tariff-table td {
    padding: 7px 6px;
    border-right: 1px solid #e4e9f0;
    border-bottom: 1px solid #e4e9f0;
    white-space: nowrap;
    vertical-align: middle;
}

.service-tariff-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    height: 38px;
    color: #fff;
    background: #152341;
    font-size: 10px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
}

.service-tariff-table tbody tr:hover td {
    background: #f2f8f7;
}

.service-tariff-table th:nth-child(1),
.service-tariff-table td:nth-child(1) { width: 145px; min-width: 145px; }
.service-tariff-table th:nth-child(2),
.service-tariff-table td:nth-child(2) { width: 240px; min-width: 240px; }
.service-tariff-table th:nth-child(3),
.service-tariff-table td:nth-child(3) { width: 145px; min-width: 145px; }
.service-tariff-table th:nth-child(4),
.service-tariff-table td:nth-child(4) { width: 150px; min-width: 150px; }
.service-tariff-table th:nth-child(5),
.service-tariff-table td:nth-child(5) { width: 100px; min-width: 100px; }
.service-tariff-table th:nth-child(6),
.service-tariff-table td:nth-child(6) { width: 118px; min-width: 118px; }
.service-tariff-table th:nth-child(n+7):nth-child(-n+18),
.service-tariff-table td:nth-child(n+7):nth-child(-n+18) { width: 104px; min-width: 104px; }
.service-tariff-table th:nth-last-child(2),
.service-tariff-table td:nth-last-child(2) { width: 62px; min-width: 62px; text-align: center; }
.service-tariff-table th:last-child,
.service-tariff-table td:last-child { width: 112px; min-width: 112px; }

.service-tariff-table input,
.service-tariff-table select {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 5px 7px;
    font-size: 11px;
}

.service-tariff-table .service-tier-input,
.service-tariff-table .tariff-money-input {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.service-row-actions {
    flex-wrap: nowrap;
}

.hotel-supplement-lines-table {
    min-width: 1260px;
}

.hotel-supplement-lines-table th:nth-child(1),
.hotel-supplement-lines-table td:nth-child(1) { width: 310px; min-width: 310px; }
.hotel-supplement-lines-table th:nth-child(2),
.hotel-supplement-lines-table td:nth-child(2),
.hotel-supplement-lines-table th:nth-child(3),
.hotel-supplement-lines-table td:nth-child(3) { width: 132px; min-width: 132px; }
.hotel-supplement-lines-table th:nth-child(4),
.hotel-supplement-lines-table td:nth-child(4) { width: 88px; min-width: 88px; }
.hotel-supplement-lines-table th:nth-child(5),
.hotel-supplement-lines-table td:nth-child(5) { width: 92px; min-width: 92px; }
.hotel-supplement-lines-table th:nth-child(6),
.hotel-supplement-lines-table td:nth-child(6) { width: 96px; min-width: 96px; }
.hotel-supplement-lines-table th:nth-child(7),
.hotel-supplement-lines-table td:nth-child(7) { width: 132px; min-width: 132px; }
.hotel-supplement-lines-table th:nth-child(8),
.hotel-supplement-lines-table td:nth-child(8) { width: 145px; min-width: 145px; }
.hotel-supplement-lines-table th:nth-child(9),
.hotel-supplement-lines-table td:nth-child(9) { width: 56px; min-width: 56px; text-align: center; }

.service-unit-label {
    display: block;
    color: #42526b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.service-line-total {
    color: #152341;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.service-entry-hint {
    margin: 9px 0 0;
    color: #607089;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .service-add-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-catalog-head {
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    .service-catalog-head,
    .service-pricing-note {
        align-items: stretch;
        flex-direction: column;
    }

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

/* Saisie activités en cartes compactes sur téléphone. */
@media (max-width: 760px) {
    .hotel-entry-layout,
    .hotel-reservation-form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .hotel-reservation-form > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .hotel-room-lines-panel .table-wrap {
        max-width: 100%;
        overflow-x: auto;
    }

    .hotel-supplement-lines-panel,
    .hotel-supplement-lines-panel .entry-block-title,
    .hotel-supplement-lines-wrap,
    .hotel-supplement-lines-table,
    .hotel-supplement-lines-table tbody,
    .hotel-supplement-lines-table .reservation-supplement-line {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .hotel-supplement-lines-panel .room-lines-title {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px 10px;
        align-items: start;
    }

    .hotel-supplement-lines-panel .room-lines-title > button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .hotel-supplement-lines-wrap {
        overflow: visible;
    }

    .hotel-supplement-lines-table,
    .hotel-supplement-lines-table tbody {
        display: block;
    }

    .hotel-supplement-lines-table thead {
        display: none;
    }

    .hotel-supplement-lines-table .reservation-supplement-line {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 10px;
        padding: 12px;
        border: 1px solid #dce4ee;
        background: #fff;
    }

    .hotel-supplement-lines-table .reservation-supplement-line td {
        display: block;
        width: auto;
        min-width: 0;
        padding: 0;
        border: 0;
        text-align: left;
    }

    .hotel-supplement-lines-table .reservation-supplement-line td:first-child,
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(8) {
        grid-column: 1 / -1;
    }

    .hotel-supplement-lines-table .reservation-supplement-line td::before {
        display: block;
        margin-bottom: 4px;
        color: #66758d;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(1)::before { content: "Prestation"; }
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(2)::before { content: "Du"; }
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(3)::before { content: "Au"; }
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(4)::before { content: "Unité"; }
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(5)::before { content: "Pax / Qté"; }
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(6)::before { content: "Tarif"; }
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(7)::before { content: "PU"; }
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(8)::before { content: "Montant"; }

    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(8) {
        padding: 9px 10px;
        background: #f2f7f6;
        text-align: right;
    }

    .hotel-supplement-lines-table .reservation-supplement-line td:last-child {
        align-self: end;
        text-align: right;
    }

    .hotel-supplement-lines-table input,
    .hotel-supplement-lines-table select,
    .hotel-supplement-lines-table .table-combo {
        width: 100%;
        min-width: 0;
    }
}

/* Modification d'une reservation par reference complete. */
.reservation-edit-group-summary {
    display: grid;
    grid-template-columns: minmax(160px, 1.4fr) repeat(2, minmax(130px, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: -2px 0 2px;
    border: 1px solid #cfe0df;
    background: #cfe0df;
}

.reservation-edit-group-summary > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 10px 13px;
    background: #f3faf8;
}

.reservation-edit-group-summary span {
    color: #5d6c80;
    font-size: 11px;
    font-weight: 750;
}

.reservation-edit-group-summary strong {
    color: #0f766e;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .reservation-edit-group-summary {
        grid-template-columns: 1fr;
    }
}

/* PAX par chambre et tableau rapport compact. */
.hotel-reservation-form {
    grid-template-columns: minmax(0, 1fr);
}

.hotel-reservation-form > .entry-block {
    min-width: 0;
}

.hotel-room-lines-wrap,
.hotel-supplement-lines-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}

#reservation-total-pax[readonly] {
    background: #eef6f5;
    color: #0f766e;
    font-weight: 850;
    text-align: center;
    font-variant-numeric: tabular-nums;
    cursor: default;
}

.hotel-room-lines-table {
    width: 100%;
    min-width: 990px;
    table-layout: fixed;
}

.hotel-room-lines-table th,
.hotel-room-lines-table td {
    padding: 5px;
}

.hotel-room-lines-table th:nth-child(1),
.hotel-room-lines-table td:nth-child(1) { width: 155px; }
.hotel-room-lines-table th:nth-child(2),
.hotel-room-lines-table td:nth-child(2),
.hotel-room-lines-table th:nth-child(3),
.hotel-room-lines-table td:nth-child(3) { width: 118px; }
.hotel-room-lines-table th:nth-child(4),
.hotel-room-lines-table td:nth-child(4) { width: 110px; }
.hotel-room-lines-table th:nth-child(5),
.hotel-room-lines-table td:nth-child(5) { width: 105px; }
.hotel-room-lines-table th:nth-child(6),
.hotel-room-lines-table td:nth-child(6) { width: 55px; text-align: center; }
.hotel-room-lines-table th:nth-child(7),
.hotel-room-lines-table td:nth-child(7) { width: 85px; }
.hotel-room-lines-table th:nth-child(8),
.hotel-room-lines-table td:nth-child(8) { width: 64px; }
.hotel-room-lines-table th:nth-child(9),
.hotel-room-lines-table td:nth-child(9) { width: 122px; }
.hotel-room-lines-table th:nth-child(10),
.hotel-room-lines-table td:nth-child(10) { width: 44px; text-align: center; }

.hotel-room-lines-table input,
.hotel-room-lines-table select {
    min-width: 0;
    min-height: 32px;
    padding: 5px 6px;
    font-size: 12px;
}

.hotel-room-lines-table .room-pax-input {
    width: 100%;
    padding-inline: 3px;
    text-align: center;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.rapport-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
    font-size: 11px;
}

.rapport-table th,
.rapport-table td {
    height: 19px;
    padding: 2px 3px;
}

.rapport-table th:nth-child(2),
.rapport-table td:nth-child(2),
.rapport-table th:nth-child(3),
.rapport-table td:nth-child(3),
.rapport-table th:nth-child(7),
.rapport-table td:nth-child(7),
.rapport-table th:nth-child(9),
.rapport-table td:nth-child(9),
.rapport-table th:nth-child(10),
.rapport-table td:nth-child(10),
.rapport-table th:nth-child(11),
.rapport-table td:nth-child(11) {
    width: 1%;
}

.rapport-table .rapport-number {
    text-align: center !important;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rapport-table tbody tr.rapport-reservation-row td {
    border-bottom: 1px solid #7f8a99;
}

@media (max-width: 1180px) {
    .hotel-room-lines-table {
        min-width: 895px;
    }

    .hotel-room-lines-table th,
    .hotel-room-lines-table td {
        padding: 4px;
    }

    .hotel-room-lines-table input,
    .hotel-room-lines-table select {
        padding: 4px;
        font-size: 11px;
    }

    .hotel-room-lines-table th:nth-child(1),
    .hotel-room-lines-table td:nth-child(1) { width: 140px; }
    .hotel-room-lines-table th:nth-child(2),
    .hotel-room-lines-table td:nth-child(2),
    .hotel-room-lines-table th:nth-child(3),
    .hotel-room-lines-table td:nth-child(3) { width: 110px; }
    .hotel-room-lines-table th:nth-child(4),
    .hotel-room-lines-table td:nth-child(4) { width: 100px; }
    .hotel-room-lines-table th:nth-child(5),
    .hotel-room-lines-table td:nth-child(5) { width: 95px; }
    .hotel-room-lines-table th:nth-child(6),
    .hotel-room-lines-table td:nth-child(6) { width: 50px; }
    .hotel-room-lines-table th:nth-child(7),
    .hotel-room-lines-table td:nth-child(7) { width: 80px; }
    .hotel-room-lines-table th:nth-child(8),
    .hotel-room-lines-table td:nth-child(8) { width: 58px; }
    .hotel-room-lines-table th:nth-child(9),
    .hotel-room-lines-table td:nth-child(9) { width: 112px; }
    .hotel-room-lines-table th:nth-child(10),
    .hotel-room-lines-table td:nth-child(10) { width: 40px; }

    .rapport-table {
        font-size: 9px;
    }

    .rapport-table thead th,
    .rapport-note {
        font-size: 8px;
    }

    .rapport-company {
        font-size: 8px;
    }

    .rapport-table th,
    .rapport-table td {
        padding-inline: 1px;
    }
}

/* Barre compacte des indicateurs du rapport. */
.rapport-head {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    width: 100%;
    margin: 0 0 12px;
}

.rapport-kpis {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
    max-width: 100%;
    overflow-x: auto;
    padding: 1px;
}

.rapport-date-form {
    flex: 0 0 138px;
    min-width: 138px;
    margin: 0;
}

.rapport-date-form label {
    display: block;
    height: 100%;
}

.rapport-date-form input[type="date"] {
    width: 100%;
    height: 100%;
    min-height: 62px;
    padding: 10px 11px;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.rapport-date-form input[type="date"]:focus {
    border-color: #0f766e;
    outline: 2px solid rgba(15, 118, 110, 0.16);
    outline-offset: 1px;
}

.rapport-kpis > span {
    flex: 0 0 112px;
    min-width: 112px;
    min-height: 62px;
    box-sizing: border-box;
    align-content: center;
}

.rapport-kpis > span:last-child {
    flex-basis: 164px;
    min-width: 164px;
}

.rapport-kpis strong {
    white-space: nowrap;
}

@media (max-width: 760px) {
    .rapport-head {
        flex-direction: row;
        align-items: stretch;
    }

    .rapport-kpis {
        justify-content: flex-start;
        width: 100%;
    }

    .rapport-kpis > span {
        flex: 0 0 104px;
        min-width: 104px;
    }

    .rapport-kpis > span:last-child {
        flex-basis: 164px;
        min-width: 164px;
    }
}

/* Paiement et observations du rapport quotidien. */
.rapport-table {
    font-size: 10.5px;
}

.rapport-table thead th {
    font-size: 9.5px;
}

.rapport-table th:nth-child(11),
.rapport-table td:nth-child(11),
.rapport-table th:nth-child(12),
.rapport-table td:nth-child(12) {
    width: 1%;
}

.rapport-payment-cell {
    text-align: center;
    white-space: nowrap;
}

.rapport-payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 2px 5px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.rapport-payment-badge.is-paid {
    border-color: #86efac;
    background: #dcfce7;
    color: #15803d;
}

.rapport-payment-badge.is-partial {
    border-color: #fdba74;
    background: #fff7ed;
    color: #c2410c;
}

.rapport-payment-badge.is-unpaid {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #dc2626;
}

.rapport-payment-badge.is-unbilled {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.rapport-payment-badge.is-offered {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.rapport-note.leaving {
    color: orangered !important;
}

.rapport-note.staying {
    color: #0066cc !important;
}

.rapport-note.no-show {
    color: #7e22ce !important;
}

@media (max-width: 1180px) {
    .rapport-table {
        font-size: 8.5px;
    }

    .rapport-table thead th,
    .rapport-note,
    .rapport-payment-badge {
        font-size: 7.5px;
    }

    .rapport-company {
        font-size: 7.5px;
    }

    .rapport-payment-badge {
        min-height: 16px;
        padding-inline: 3px;
    }
}

/* Actions de paiement du rapport. */
.rapport-individual {
    color: #7e22ce !important;
    font-weight: 900;
}

.rapport-payment-form {
    display: inline;
    margin: 0;
}

a.rapport-payment-badge {
    text-decoration: none;
}

button.rapport-payment-badge {
    font-family: inherit;
    appearance: none;
    cursor: pointer;
}

.rapport-payment-badge.is-clickable {
    cursor: pointer;
    transition: filter 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.rapport-payment-badge.is-clickable:hover {
    filter: brightness(0.96);
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.16);
    transform: translateY(-1px);
}

.rapport-payment-badge.is-clickable:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

/* Listes ComboBox au premier plan. */
body > .combo-results.combo-results-portal {
    position: fixed;
    z-index: 2000;
    min-width: 0;
    max-width: calc(100vw - 16px);
    overscroll-behavior: contain;
}


/* Global search and primary authentication */
.app-header .topbar-main {
    gap: 16px;
}

.global-search {
    position: relative;
    z-index: 130;
    flex: 0 1 240px;
    min-width: 190px;
}

.global-search input {
    height: 42px;
    padding: 0 38px 0 39px;
    border-color: #cfd8e5;
    border-radius: 7px;
    background: #f8fafc;
    color: #152238;
    font-size: 14px;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.03);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.global-search input::placeholder {
    color: #77839a;
}

.global-search input:focus {
    outline: none;
    border-color: #0f766e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.global-search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    width: 14px;
    height: 14px;
    border: 2px solid #5d6b82;
    border-radius: 50%;
    pointer-events: none;
    transform: translateY(-58%);
}

.global-search-icon::after {
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 2px;
    border-radius: 2px;
    background: #5d6b82;
    content: "";
    transform: rotate(45deg);
    transform-origin: left center;
}

.global-search-clear {
    position: absolute;
    top: 50%;
    right: 7px;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
}

.global-search-clear.is-visible {
    display: inline-flex;
}

.global-search-clear:hover,
.global-search-clear:focus-visible {
    background: #e8edf4;
    color: #16243a;
}

.global-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: max(100%, 470px);
    max-height: min(520px, calc(100vh - 110px));
    overflow-y: auto;
    padding: 7px;
    border: 1px solid #d6deea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(20, 34, 58, 0.18);
}

.global-search-result {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #172033;
    text-decoration: none;
}

.global-search-result:hover,
.global-search-result.is-active {
    border-color: #cce5e1;
    background: #eef8f6;
}

.global-search-result-type {
    align-self: start;
    margin-top: 2px;
    color: #0f766e;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.global-search-result-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.global-search-result-copy strong,
.global-search-result-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-search-result-copy strong {
    font-size: 13px;
    font-weight: 800;
}

.global-search-result-copy small {
    color: #667085;
    font-size: 11px;
}

.global-search-message {
    padding: 17px 14px;
    color: #667085;
    font-size: 13px;
    text-align: center;
}

.dashboard-invoice-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: #b9d9e8;
    background: #eef8fc;
    color: #155b75;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-invoice-button:hover,
.dashboard-invoice-button:focus-visible {
    border-color: #78b5cf;
    background: #dff2fa;
    color: #0f4960;
}

.header-account {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border-left: 1px solid #dce3ec;
}

.header-account-name {
    display: grid;
    gap: 1px;
    max-width: 132px;
    overflow: hidden;
    color: #344054;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account-name small {
    overflow: hidden;
    color: #667085;
    font-size: 9px;
    font-weight: 650;
    text-overflow: ellipsis;
}

input[readonly][name="responsable"],
input[readonly][name="responsable_global"] {
    border-color: #c7d9d6;
    background: #f1f7f6;
    color: #164e49;
    font-weight: 800;
    cursor: not-allowed;
}

.logout-form {
    margin: 0;
}

.header-logout {
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid #d7dee8;
    border-radius: 6px;
    background: #ffffff;
    color: #475467;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.header-logout:hover,
.header-logout:focus-visible {
    border-color: #efb5ae;
    background: #fff3f1;
    color: #a93c31;
}

@media (max-width: 1320px) {
    .app-header .primary-nav a,
    .app-header .primary-nav-link {
        padding-right: 11px;
        padding-left: 11px;
    }

    .header-account-name {
        display: none;
    }
}

@media (max-width: 1400px) {
    .app-header .topbar-main,
    .app-header.is-scrolled .topbar-main {
        display: grid;
        grid-template-columns: auto minmax(230px, 1fr) auto;
        align-items: center;
        gap: 9px 14px;
        padding: 10px 22px 8px;
    }

    .app-header .brand-link {
        grid-column: 1;
        grid-row: 1;
    }

    .global-search {
        grid-column: 2;
        grid-row: 1;
        width: min(100%, 240px);
        min-width: 0;
        justify-self: start;
    }

    .header-account {
        grid-column: 3;
        grid-row: 1;
    }

    .app-header .primary-nav {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 680px) {
    .app-header .topbar-main,
    .app-header.is-scrolled .topbar-main {
        grid-template-columns: minmax(0, 1fr) auto;
        padding-right: 14px;
        padding-left: 14px;
    }

    .app-header .brand-link {
        grid-column: 1;
        grid-row: 1;
    }

    .header-account {
        grid-column: 2;
        grid-row: 1;
        padding-left: 8px;
    }

    .global-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .app-header .primary-nav {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .global-search-results {
        width: 100%;
        max-height: 58vh;
    }

    .global-search-result {
        grid-template-columns: 82px minmax(0, 1fr);
    }
}

/* Vue commandes: liste de suivi et détail lisible sur écran tactile. */
.orders-page-head { align-items: flex-end; margin-bottom: 14px; }
.orders-page-head h1 { margin-bottom: 4px; }
.orders-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.orders-modern { display: grid; grid-template-columns: minmax(310px, 390px) minmax(0, 1fr); gap: 16px; max-width: 1600px; margin: 0 auto 24px; }
.orders-modern-list, .orders-modern-detail { min-width: 0; border: 1px solid #d7e2eb; border-radius: 14px; background: #f7fafc; box-shadow: 0 8px 24px rgba(24, 46, 73, .08); }
.orders-modern-list { max-height: calc(100vh - 190px); overflow: auto; padding: 14px; }
.orders-list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #63768b; }
.orders-list-head > div { display: flex; align-items: baseline; gap: 6px; }
.orders-list-head strong { color: #172f4d; font-size: 24px; }
.orders-list-head span { font-size: 12px; font-weight: 800; }
.orders-live-dot { color: #087a70 !important; }
.orders-live-dot::before { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #14a36c; content: ''; }
.orders-search { display: block; margin-bottom: 10px; }
.orders-search input { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #c7d8e5; border-radius: 9px; background: #fff; color: #172f4d; font-weight: 700; }
.orders-modern-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.orders-modern-filters button { min-height: 34px; padding: 6px 7px; border: 1px solid #c4d6e3; border-radius: 8px; background: transparent; color: #4c6278; font-size: 12px; font-weight: 800; cursor: pointer; }
.orders-modern-filters button.is-active { border-color: #087a70; background: #087a70; color: #fff; }
.orders-bulk-form { margin: 0 0 10px; }
.orders-bulk-form button { min-height: 30px; border: 0; border-radius: 7px; padding: 6px 9px; font-size: 11px; font-weight: 800; cursor: pointer; }
.orders-modern-cards { display: grid; gap: 8px; }
.order-summary-card { display: flex; width: 100%; align-items: center; gap: 9px; padding: 11px; border: 1px solid #d5e0e9; border-left: 4px solid #9bb3c7; border-radius: 10px; background: #fff; color: #172f4d; text-align: left; cursor: pointer; transition: .16s ease; }
.order-summary-card:hover, .order-summary-card.is-selected { border-color: #087a70; background: #e9f7f4; box-shadow: 0 5px 14px rgba(8, 122, 112, .14); }
.order-summary-card input { flex: 0 0 auto; accent-color: #087a70; }
.order-summary-card.status-a_preparer { border-left-color: #e7a72b; }
.order-summary-card.status-en_preparation { border-left-color: #087a70; }
.order-summary-card.status-livree { border-left-color: #19a66d; }
.order-summary-card.status-annulee { border-left-color: #c54d59; opacity: .72; }
.order-card-main { min-width: 0; display: grid; gap: 3px; flex: 1; }
.order-card-main strong, .order-card-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card-main strong { font-size: 14px; }
.order-card-main small { color: #526981; font-size: 12px; }
.order-card-meta { color: #73869a; font-size: 11px; font-weight: 700; }
.order-card-side { display: grid; justify-items: end; gap: 4px; flex: 0 0 auto; }
.order-card-side b { color: #087a70; font-size: 13px; white-space: nowrap; }
.order-card-side em { color: #6a7e91; font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.orders-modern-empty, .orders-detail-empty { padding: 30px 16px; border: 1px dashed #bdd0df; border-radius: 10px; color: #687d90; text-align: center; }
.orders-modern-detail { overflow: hidden; background: #eef4f7; }
.order-detail-panel { min-width: 0; }
.order-detail-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 26px; background: #102e49; color: #fff; }
.order-detail-hero h2 { margin: 4px 0 3px; color: #fff; font-size: clamp(20px, 2vw, 30px); }
.order-detail-hero p { margin: 0; color: #c8d9e8; font-size: 13px; }
.order-detail-hero > strong { color: #f6c55c; font-size: clamp(20px, 2vw, 28px); white-space: nowrap; }
.order-detail-status { display: inline-block; border-radius: 999px; padding: 4px 9px; background: #e7a72b; color: #182e49; font-size: 11px; font-weight: 900; }
.status-en_preparation .order-detail-status { background: #51c5b0; }
.status-livree .order-detail-status { background: #5bd18d; }
.status-annulee .order-detail-status { background: #f29ba4; }
.order-detail-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 13px 26px; border-bottom: 1px solid #d5e2e9; background: #fff; }
.order-detail-meta span { display: grid; gap: 2px; color: #526a80; font-size: 12px; }
.order-detail-meta b { color: #8495a5; font-size: 10px; text-transform: uppercase; }
.order-detail-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 13px 26px 0; background: #fff; }
.order-detail-toolbar form { margin: 0; }
.order-detail-items { display: grid; gap: 8px; padding: 14px 26px 18px; background: #fff; }
.order-detail-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e0e8ee; }
.order-detail-item:last-child { border-bottom: 0; }
.order-detail-item.is-cancelled { opacity: .56; }
.order-item-copy { min-width: 0; display: grid; gap: 3px; }
.order-item-copy strong { overflow: hidden; color: #172f4d; text-overflow: ellipsis; white-space: nowrap; }
.order-item-copy span { color: #74879a; font-size: 11px; }
.order-item-qty { display: inline-flex; align-items: center; gap: 8px; }
.order-item-qty form { margin: 0; }
.order-item-qty button { width: 29px; height: 29px; border: 1px solid #bfd0dc; border-radius: 7px; background: #fff; color: #087a70; font-size: 18px; font-weight: 800; cursor: pointer; }
.order-item-qty b { min-width: 18px; color: #172f4d; text-align: center; }
.order-item-price { min-width: 95px; color: #172f4d; text-align: right; white-space: nowrap; }
.order-item-actions { display: flex; justify-content: flex-end; gap: 6px; }
.icon-action { display: inline-flex; align-items: center; min-height: 29px; border: 1px solid #bfd0dc; border-radius: 7px; padding: 5px 8px; background: #fff; color: #3b5870; font-size: 11px; font-weight: 800; text-decoration: none; }
.icon-action:hover { border-color: #087a70; color: #087a70; }
.danger-button { color: #b13e4b !important; }
.order-detail-footer { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 17px 26px; border-top: 1px solid #d5e2e9; background: #f7fafc; color: #62778c; font-weight: 800; }
.order-detail-footer strong { color: #087a70; font-size: 22px; }
@media (max-width: 900px) { .orders-modern { grid-template-columns: 1fr; } .orders-modern-list { max-height: 43vh; } .orders-modern-detail { min-height: 340px; } }
@media (max-width: 600px) { .orders-page-head { align-items: flex-start; } .orders-head-actions { width: 100%; } .orders-head-actions > * { flex: 1; text-align: center; } .order-detail-hero { padding: 18px; } .order-detail-meta, .order-detail-toolbar, .order-detail-items { padding-left: 18px; padding-right: 18px; } .order-detail-item { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; } .order-item-price { min-width: 0; } .order-item-actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* Login: compact, high-clarity entry screen for the operational application. */
.auth-page {
    background: #f2f5f8;
    color: #17243a;
}
.auth-shell {
    padding: 32px 18px;
}
.auth-card {
    width: min(444px, 100%);
    padding: 32px 34px 26px;
    border-color: #d8e2eb;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(20, 36, 58, .12);
}
.auth-brand {
    min-height: 64px;
    padding-bottom: 16px;
}
.auth-brand img {
    width: 176px;
    height: 54px;
}
.auth-heading {
    gap: 4px;
    padding: 19px 0 18px;
}
.auth-heading h1 {
    font-size: 28px;
    line-height: 1.12;
}
.auth-heading p { color: #61718a; }
.auth-form { gap: 14px; }
.auth-form label { gap: 7px; color: #273b55; }
.auth-form input {
    height: 46px;
    border-color: #cbd8e5;
    background: #f8fbff;
    color: #17243a;
    font-weight: 700;
}
.auth-form input:focus {
    background: #ffffff;
    border-color: #087a70;
    box-shadow: 0 0 0 3px rgba(8, 122, 112, .14);
}
.auth-password-control {
    display: block;
    width: 100%;
}
.auth-password-control input { padding-right: 48px !important; }
.auth-password-control .password-eye {
    right: 7px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
}
.auth-submit {
    min-height: 47px;
    margin-top: 6px;
    background: #087a70;
    color: #ffffff;
    font-weight: 800;
}
.auth-submit:hover,
.auth-submit:focus-visible {
    background: #066960;
    color: #ffffff;
}
.auth-footnote {
    margin-top: 19px;
    color: #718197;
}
@media (max-width: 520px) {
    .auth-shell { padding: 18px 12px; }
    .auth-card { padding: 26px 22px 22px; }
    .auth-brand { min-height: 54px; }
    .auth-brand img { width: 152px; height: 46px; }
    .auth-heading h1 { font-size: 26px; }
}

.auth-page {
    min-height: 100vh;
    background: #eef2f6;
}

.auth-shell {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px 18px;
    overflow: hidden;
}

.auth-shell::before,
.auth-shell::after {
    position: absolute;
    left: 0;
    width: 100%;
    content: "";
}

.auth-shell::before {
    top: 0;
    height: 8px;
    background: #11183f;
}

.auth-shell::after {
    top: 8px;
    width: 32%;
    height: 4px;
    background: #ffcf18;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    padding: 34px 36px 27px;
    border: 1px solid #dbe2ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(27, 39, 60, 0.14);
}

.auth-brand {
    display: flex;
    align-items: center;
    min-height: 62px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e6ebf2;
}

.auth-brand img {
    display: block;
    width: 190px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}

.auth-heading {
    display: grid;
    gap: 5px;
    padding: 24px 0 21px;
}

.auth-heading > span {
    color: #0f766e;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-heading h1 {
    color: #172033;
    font-size: 27px;
    line-height: 1.15;
}

.auth-heading p {
    color: #667085;
    font-size: 13px;
}

.auth-error {
    margin-bottom: 17px;
    padding: 10px 12px;
    border: 1px solid #f1b8af;
    border-radius: 6px;
    background: #fff2f0;
    color: #a23d33;
    font-size: 12px;
    font-weight: 700;
}

.auth-form {
    display: grid;
    gap: 15px;
}

.auth-form label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.auth-form input {
    height: 45px;
    border-color: #cfd8e5;
    border-radius: 6px;
    font-size: 14px;
}

.auth-form input:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.auth-submit {
    min-height: 46px;
    margin-top: 4px;
    border-radius: 6px;
    background: #0f766e;
    font-size: 14px;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    background: #0b625c;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.2);
}

.auth-footnote {
    margin-top: 22px;
    color: #8791a3;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 520px) {
    .auth-shell {
        padding: 18px 12px;
    }

    .auth-card {
        padding: 27px 22px 23px;
    }

    .auth-brand img {
        width: 165px;
        height: 50px;
    }
}
.global-search input::-webkit-search-cancel-button {
    display: none;
    appearance: none;
}



/* Saisie hotel: etablissement par ligne et identification des chambres partenaires. */
.hotel-room-lines-table {
    min-width: 1120px;
}
.hotel-room-lines-table th:nth-child(1),
.hotel-room-lines-table td:nth-child(1) { width: 130px; }
.hotel-room-lines-table th:nth-child(2),
.hotel-room-lines-table td:nth-child(2) { width: 145px; }
.hotel-room-lines-table th:nth-child(3),
.hotel-room-lines-table td:nth-child(3),
.hotel-room-lines-table th:nth-child(4),
.hotel-room-lines-table td:nth-child(4) { width: 112px; }
.hotel-room-lines-table th:nth-child(5),
.hotel-room-lines-table td:nth-child(5) { width: 105px; }
.hotel-room-lines-table th:nth-child(6),
.hotel-room-lines-table td:nth-child(6) { width: 100px; }
.hotel-room-lines-table th:nth-child(7),
.hotel-room-lines-table td:nth-child(7) { width: 52px; text-align: center; }
.hotel-room-lines-table th:nth-child(8),
.hotel-room-lines-table td:nth-child(8) { width: 82px; }
.hotel-room-lines-table th:nth-child(9),
.hotel-room-lines-table td:nth-child(9) { width: 62px; }
.hotel-room-lines-table th:nth-child(10),
.hotel-room-lines-table td:nth-child(10) { width: 116px; }
.hotel-room-lines-table th:nth-child(11),
.hotel-room-lines-table td:nth-child(11) { width: 44px; text-align: center; }

.lodging-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #cbd8e5;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}
.lodging-badge.is-local {
    border-color: #b9e6d7;
    background: #ecfdf5;
    color: #047857;
}
.lodging-badge.is-partner {
    border-color: #f2d189;
    background: #fffbeb;
    color: #9a5b07;
}


@media print {
    .lease-header {
        grid-template-columns: minmax(0, 1fr) minmax(250px, .95fr) !important;
    }
    .lease-title {
        text-align: right !important;
    }
    .lease-parties {
        grid-template-columns: 1fr 1fr !important;
    }
    .lease-summary-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
    .lease-property-box {
        grid-template-columns: 1.25fr 1fr .85fr !important;
    }
    .lease-summary-grid > div,
    .lease-property-box > div {
        border-right: 1px solid #dbe3ed !important;
        border-bottom: 0 !important;
    }
    .lease-summary-grid > div:last-child,
    .lease-property-box > div:last-child {
        border-right: 0 !important;
    }
}


/* Sound's Travel commission */
.sound-commission-panel { border-top: 3px solid #0f766e; }
.sound-commission-wrap { border: 1px solid #dce4ee; background: #fff; }
.sound-commission-table { width: 100%; min-width: 1320px; border-collapse: collapse; table-layout: auto; }
.sound-commission-table th.right, .sound-commission-table td.right, .sound-commission-table .amount-cell { min-width: 122px; }
.sound-commission-table th, .sound-commission-table td { padding: 8px 7px; border-bottom: 1px solid #e3e9f1; font-size: 12px; white-space: nowrap; }
.sound-commission-table thead th { background: #101846; color: #fff; font-size: 10px; text-transform: uppercase; }
.sound-commission-table tbody tr:nth-child(even) td { background: #f8fafc; }
.sound-commission-table tfoot th, .sound-commission-table tfoot td { background: #fff4c2; color: #101846; font-weight: 900; }
.sound-commission-table th:first-child, .sound-commission-table td:first-child { width: 170px; text-align: left; }
.sound-commission-table .strong { font-weight: 900; }
.sound-commission-table .commission-diff { color: #0f766e; font-weight: 900; }


.product-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d7e0ec;
}
.product-thumb-placeholder {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 800;
}
.product-photo-preview img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #d7e0ec;
}
.resto-product-gallery {
    border: 1px solid #d7e0ec;
    border-radius: 12px;
    background: #f8fafc;
    padding: 14px;
    display: grid;
    gap: 12px;
}
.resto-product-gallery-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}
.resto-product-gallery-head h3 {
    margin: 2px 0 0;
    font-size: 18px;
}
.resto-product-gallery-head input {
    max-width: 360px;
}
.resto-product-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}
.resto-product-card {
    border: 1px solid #d7e0ec;
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    display: grid;
    gap: 6px;
    text-align: left;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.resto-product-card:hover {
    transform: translateY(-1px);
    border-color: #0f766e;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}
.resto-product-card-media {
    display: block;
    aspect-ratio: 1.25 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef7f5, #f8fafc);
}
.resto-product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.resto-product-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #0f766e;
    font-size: 30px;
    font-weight: 900;
}
.resto-product-card strong {
    min-height: 34px;
    font-size: 13px;
    line-height: 1.25;
    color: #102033;
}
.resto-product-card small {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}
.resto-product-card b {
    color: #0f766e;
    font-size: 13px;
    white-space: nowrap;
}
@media (max-width: 760px) {
    .resto-product-gallery-head {
        align-items: stretch;
        flex-direction: column;
    }
    .resto-product-gallery-head input {
        max-width: none;
    }
    .resto-product-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 320px;
    }
}


/* SAM-style restaurant ordering catalogue */
.sam-order-catalog {
    background: #fff;
    border-color: #dde6f0;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}
.sam-catalog-head {
    align-items: center;
    padding: 2px 2px 0;
}
.sam-catalog-head input {
    border-radius: 14px;
    min-height: 44px;
    font-weight: 700;
}
.sam-category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 6px;
    scrollbar-width: thin;
}
.sam-category-tab {
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #64748b;
    padding: 9px 16px;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}
.sam-category-tab.active {
    background: #050505;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
}
.sam-product-list.resto-product-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-height: 470px;
    overflow: auto;
    padding-right: 0;
    border-top: 1px solid #eef2f7;
}
.sam-product-row.resto-product-card {
    border: 0;
    border-bottom: 1px solid #edf2f7;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    padding: 13px 6px;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}
.sam-product-row.resto-product-card:hover {
    transform: none;
    border-color: #edf2f7;
    background: #f8fbfb;
    box-shadow: none;
}
.sam-product-row .resto-product-card-media {
    width: 74px;
    height: 66px;
    aspect-ratio: auto;
    border-radius: 10px;
    background: #eef7f5;
}
.sam-product-row .sam-product-info {
    min-width: 0;
    display: grid;
    gap: 5px;
}
.sam-product-row strong {
    min-height: 0;
    color: #101827;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sam-product-row small {
    color: #8a95a6;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    max-width: 460px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sam-product-row b {
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
}
.sam-empty-products {
    padding: 22px;
    text-align: center;
    color: #64748b;
    font-weight: 800;
}
.sam-product-detail[hidden] {
    display: none !important;
}
.sam-product-detail {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, .38);
    display: grid;
    place-items: center;
    padding: 18px;
}
.sam-detail-card {
    width: min(520px, 100%);
    max-height: min(92vh, 850px);
    overflow: auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
    position: relative;
}
.sam-detail-back {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #111827;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
}
.sam-detail-media {
    height: 210px;
    background: #eef2f7;
    overflow: hidden;
}
.sam-detail-media img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 8px;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
    background: #eef2f7;
}
.sam-detail-media .resto-product-card-placeholder {
    border-radius: 0;
    font-size: 74px;
}
.sam-detail-body {
    padding: 16px;
    display: grid;
    gap: 14px;
}
.sam-detail-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}
.sam-detail-title-row h3 {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.15;
    color: #101827;
}
.sam-detail-title-row p {
    margin: 0;
    color: #7b8798;
    font-weight: 700;
    line-height: 1.35;
}
.sam-detail-title-row strong {
    font-size: 22px;
    color: #111827;
    white-space: nowrap;
}
.sam-detail-qty {
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    border: 1px solid #d7e0ec;
    border-radius: 14px;
    overflow: hidden;
    max-width: 190px;
}
.sam-detail-qty button,
.sam-detail-qty input {
    border: 0;
    height: 44px;
    text-align: center;
    background: #fff;
    font-weight: 900;
    font-size: 18px;
}
.sam-detail-qty button {
    background: #eff6fb;
    cursor: pointer;
}
.sam-option-group {
    border-top: 1px solid #edf2f7;
    display: grid;
    gap: 0;
}
.sam-option-group b {
    padding: 13px 0 6px;
    font-size: 15px;
    color: #111827;
}
.sam-option-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 46px;
    margin: 0;
    border-bottom: 1px solid #edf2f7;
    color: #4b5563;
    font-size: 16px;
    font-weight: 700;
}
.sam-option-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #0f766e;
}
.sam-detail-note {
    display: grid;
    gap: 6px;
    color: #475569;
    font-weight: 800;
}
.sam-detail-note input {
    min-height: 44px;
    border-radius: 12px;
}
.sam-add-to-cart {
    border: 0;
    border-radius: 999px;
    min-height: 54px;
    background: #050505;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(15, 23, 42, .22);
}
@media (max-width: 760px) {
    .sam-order-catalog {
        border-radius: 16px;
        padding: 10px;
    }
    .sam-product-list.resto-product-card-grid {
        grid-template-columns: 1fr;
        max-height: 430px;
    }
    .sam-product-row.resto-product-card {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 11px 2px;
    }
    .sam-product-row .resto-product-card-media {
        width: 64px;
        height: 58px;
    }
    .sam-product-row strong,
    .sam-product-row b {
        font-size: 14px;
    }
    .sam-product-row small {
        font-size: 12px;
    }
    .sam-detail-media {
        height: 180px;
    }
}


/* Restaurant POS - catalogue visuel et panier */
body.sam-modal-open {
    overflow: hidden;
}
.server-order-layout-single {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
}
.resto-premium-form {
    max-width: none !important;
    padding: 18px !important;
    background: #f4f7fb !important;
    border: 1px solid #dbe4ef !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08) !important;
}
.resto-premium-form .resto-customer-section {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #dce5ef;
    border-radius: 8px;
}
.resto-pos-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 430px);
    gap: 16px;
    align-items: start;
}
.resto-pos-legacy-fields {
    display: none !important;
}
.resto-pos-workspace .sam-order-catalog {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    box-shadow: none;
}
.resto-pos-workspace .sam-catalog-head {
    display: grid;
    grid-template-columns: auto minmax(260px, 420px);
    gap: 18px;
    align-items: end;
    margin-bottom: 14px;
}
.resto-pos-workspace .sam-catalog-head h3,
.resto-cart-heading h3 {
    margin: 2px 0 0;
    color: #101827;
    font-size: 22px;
    line-height: 1.15;
}
.sam-catalog-search {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin: 0 !important;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid #cfd9e6;
    border-radius: 8px;
    background: #f8fafc;
    color: #758397;
}
.sam-catalog-search input {
    min-width: 0;
    min-height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px;
}
.resto-pos-workspace .sam-category-tabs {
    gap: 6px;
    padding: 0 0 14px;
    border-bottom: 1px solid #e5ebf2;
}
.resto-pos-workspace .sam-category-tab {
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #536176;
    font-size: 13px;
    font-weight: 800;
}
.resto-pos-workspace .sam-category-tab:hover {
    color: #0f766e;
    background: #edf9f7;
}
.resto-pos-workspace .sam-category-tab.active {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
    box-shadow: 0 6px 14px rgba(15, 118, 110, .22);
}
.resto-pos-workspace .sam-product-list.resto-product-card-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    max-height: 690px;
    overflow: auto;
    padding: 14px 4px 4px 0;
    border: 0;
    align-content: start;
}
.resto-pos-workspace .sam-product-row.resto-product-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 132px auto auto;
    gap: 0 !important;
    min-width: 0;
    padding: 0 0 11px !important;
    overflow: hidden;
    text-align: left;
    background: #fff;
    border: 1px solid #e0e7ef !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .055) !important;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.resto-pos-workspace .sam-product-row.resto-product-card:hover {
    transform: translateY(-2px) !important;
    border-color: #8dcac4 !important;
    background: #fff !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .11) !important;
}
.resto-pos-workspace .sam-product-row .resto-product-card-media {
    width: 100% !important;
    height: 132px !important;
    border-radius: 0 !important;
    background: #eaf2f6;
    overflow: hidden;
}
.resto-pos-workspace .sam-product-row .resto-product-card-media img,
.resto-cart-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.resto-pos-workspace .sam-product-row .sam-product-info {
    padding: 10px 10px 4px;
    gap: 3px;
}
.resto-pos-workspace .sam-product-row .sam-product-info strong {
    font-size: 14px;
    line-height: 1.25;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.resto-pos-workspace .sam-product-row .sam-product-info small {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sam-product-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 10px 0;
}
.resto-pos-workspace .sam-product-row .sam-product-card-foot b {
    color: #ef6c00;
    font-size: 14px;
}
.sam-product-card-foot i {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #0f766e;
    color: #fff;
    font-size: 19px;
    font-style: normal;
    font-weight: 800;
}
.resto-cart-panel {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 12px;
    min-width: 0;
    margin: 0 !important;
    padding: 16px !important;
    background: #fff;
    border: 1px solid #dce5ef !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}
.resto-cart-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.resto-cart-count {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #17233f;
    color: #fff;
    font-size: 14px;
}
.resto-order-mode {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 8px;
    background: #eef2f7;
}
.resto-order-mode button {
    min-height: 38px;
    padding: 6px 4px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #66758a;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}
.resto-order-mode button.is-active {
    background: #ef6c00;
    color: #fff;
    box-shadow: 0 5px 12px rgba(239, 108, 0, .24);
}
.resto-pos-service-meta {
    display: grid !important;
    grid-template-columns: minmax(125px, .8fr) minmax(0, 1.2fr) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}
.resto-pos-service-meta label {
    gap: 4px;
    margin: 0;
    font-size: 11px;
    color: #64748b;
}
.resto-pos-service-meta input {
    min-height: 40px !important;
    padding: 8px 9px !important;
    font-size: 13px !important;
}
.resto-cart-panel .extra-order-lines-wrap {
    max-height: 390px;
    overflow: auto !important;
    margin: 0 !important;
    padding: 0 3px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
}
.resto-cart-panel .extra-order-lines-table,
.resto-cart-panel .extra-order-lines-table tbody {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
}
.resto-cart-panel .extra-order-lines-table thead {
    display: none !important;
}
.resto-cart-panel .extra-order-lines-table tr {
    display: grid !important;
    grid-template-columns: 102px minmax(100px, 1fr) 36px !important;
    gap: 7px !important;
    align-items: end;
    width: 100%;
    margin: 0 !important;
    padding: 11px 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #e7edf4 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.resto-cart-panel .extra-order-lines-table td {
    display: block !important;
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
.resto-cart-panel .extra-order-lines-table td::before {
    display: block !important;
    margin: 0 0 3px;
    color: #718096;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.resto-cart-panel .extra-order-lines-table td:nth-child(1) {
    grid-column: 1 / -1;
}
.resto-cart-panel .extra-order-lines-table td:nth-child(1)::before,
.resto-cart-panel .extra-order-lines-table td:nth-child(5)::before {
    display: none !important;
}
.resto-cart-panel .extra-order-lines-table td:nth-child(2)::before { content: 'Quantite'; }
.resto-cart-panel .extra-order-lines-table td:nth-child(3)::before { content: 'Prix unitaire'; }
.resto-cart-panel .extra-order-lines-table td:nth-child(4) {
    grid-column: 1 / span 2;
}
.resto-cart-panel .extra-order-lines-table td:nth-child(4)::before { content: 'Facturation'; }
.resto-cart-panel .extra-order-lines-table td:nth-child(5) {
    grid-column: 3;
    grid-row: 2 / span 2;
    align-self: center;
}
.resto-cart-product {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
}
.resto-cart-product-media {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 7px;
    background: #e8f4f2;
    color: #0f766e;
    font-size: 20px;
    font-weight: 900;
}
.resto-cart-product-media .resto-product-card-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
    font-size: 20px;
}
.resto-cart-panel .order-product-combo input[data-line-role="product-search"] {
    min-height: 38px !important;
    padding: 7px 30px 7px 9px !important;
    border-color: #d5deea !important;
    font-size: 12px !important;
    font-weight: 800;
}
.resto-cart-line-options {
    display: block;
    margin-top: 3px;
    color: #0f766e;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
}
.resto-cart-panel .quantity-stepper {
    display: grid;
    grid-template-columns: 30px 40px 30px;
    width: 100px;
    border: 1px solid #d5deea;
    border-radius: 7px;
    overflow: hidden;
}
.resto-cart-panel .quantity-stepper button,
.resto-cart-panel .quantity-stepper input {
    width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-align: center;
    font-size: 13px !important;
    font-weight: 900;
}
.resto-cart-panel .quantity-stepper button {
    background: #edf4f8;
    color: #173552;
}
.resto-cart-panel .extra-order-lines-table input[data-line-name="prix_unitaire"],
.resto-cart-panel .extra-order-lines-table select[data-line-name="billable"] {
    width: 100% !important;
    min-height: 36px !important;
    padding: 6px 7px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    white-space: nowrap;
}
.resto-cart-panel .extra-order-lines-table [data-line-remove] {
    display: grid !important;
    place-items: center;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border-radius: 7px !important;
    font-size: 18px !important;
}
.resto-cart-add-manual {
    min-height: 38px;
    border: 1px dashed #8bb9b4;
    border-radius: 7px;
    background: #f2fbf9;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}
.resto-cart-panel .resto-order-summary {
    display: flex !important;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin: 0 !important;
    padding: 13px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid #dce4ed !important;
    background: transparent !important;
}
.resto-cart-panel .resto-order-summary span {
    display: grid;
    gap: 2px;
}
.resto-cart-panel .resto-order-summary small {
    color: #718096;
    font-size: 10px;
    font-weight: 800;
}
.resto-cart-panel .resto-order-summary strong {
    color: #18233d;
    font-size: 14px;
    white-space: nowrap;
}
.resto-cart-panel .resto-cart-total {
    text-align: right;
}
.resto-cart-panel .resto-cart-total strong {
    color: #ef6c00;
    font-size: 22px;
}
.resto-cart-actions {
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin: 0 !important;
}
.resto-cart-actions #order-submit-button {
    min-height: 48px;
    border-radius: 7px;
    background: #0f766e;
    box-shadow: 0 8px 18px rgba(15, 118, 110, .2);
    font-size: 14px;
    font-weight: 900;
}
.sam-product-detail {
    backdrop-filter: blur(3px);
}
.sam-detail-card {
    width: min(620px, 100%) !important;
    border-radius: 8px !important;
}
.sam-detail-back {
    top: 14px;
    right: 14px;
    left: auto !important;
    width: 38px;
    height: 38px;
    border-radius: 7px !important;
    color: #17233f;
    font-size: 25px;
}
.sam-detail-media {
    height: 245px !important;
}
.sam-detail-body {
    padding: 18px 20px 20px !important;
    gap: 13px !important;
}
.sam-detail-qty-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #e8edf3;
    border-bottom: 1px solid #e8edf3;
}
.sam-option-group[hidden] {
    display: none !important;
}
.sam-option-group b {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sam-option-group b small {
    color: #8491a3;
    font-size: 10px;
    font-weight: 700;
}
.sam-option-group label {
    min-height: 42px !important;
    padding: 0 3px;
}
.sam-option-group input[type="radio"],
.sam-option-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #0f766e;
}
.sam-add-to-cart {
    border-radius: 7px !important;
    background: #0f766e !important;
}
@media (max-width: 1240px) {
    .resto-pos-workspace {
        grid-template-columns: minmax(0, 1fr) minmax(350px, 390px);
    }
    .resto-pos-workspace .sam-product-list.resto-product-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 980px) {
    .resto-premium-form {
        padding: 12px !important;
    }
    .resto-pos-workspace {
        grid-template-columns: minmax(0, 1fr);
    }
    .resto-cart-panel {
        position: static;
    }
    .resto-pos-workspace .sam-product-list.resto-product-card-grid {
        max-height: 560px;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .resto-cart-panel .extra-order-lines-wrap {
        max-height: none;
    }
}
@media (max-width: 760px) {
    .resto-form-title,
    .resto-premium-form .resto-section-heading {
        align-items: flex-start;
    }
    .resto-premium-form .resto-customer-section {
        padding: 12px;
    }
    .resto-pos-workspace .sam-catalog-head {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .resto-pos-workspace .sam-product-list.resto-product-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .sam-detail-card {
        max-height: 95vh !important;
    }
}
@media (max-width: 520px) {
    .resto-premium-form {
        padding: 8px !important;
        border: 0 !important;
        background: #f4f7fb !important;
    }
    .resto-pos-workspace .sam-order-catalog,
    .resto-cart-panel {
        padding: 12px !important;
    }
    .resto-pos-workspace .sam-product-list.resto-product-card-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        max-height: 520px;
    }
    .resto-pos-workspace .sam-product-row.resto-product-card {
        grid-template-columns: 82px minmax(0, 1fr) auto !important;
        grid-template-rows: 72px !important;
        align-items: center;
        padding: 8px 0 !important;
        border-width: 0 0 1px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .resto-pos-workspace .sam-product-row .resto-product-card-media {
        width: 82px !important;
        height: 72px !important;
        border-radius: 7px !important;
    }
    .resto-pos-workspace .sam-product-row .sam-product-info {
        padding: 5px 9px;
    }
    .sam-product-card-foot {
        display: grid;
        justify-items: end;
        padding: 0 2px;
    }
    .sam-product-card-foot i {
        width: 25px;
        height: 25px;
    }
    .resto-pos-service-meta {
        grid-template-columns: 1fr !important;
    }
    .resto-cart-panel .extra-order-lines-table tr {
        grid-template-columns: 100px minmax(90px, 1fr) 34px !important;
    }
    .sam-product-detail {
        align-items: end;
        padding: 0 !important;
    }
    .sam-detail-card {
        width: 100% !important;
        max-height: 96vh !important;
        border-radius: 8px 8px 0 0 !important;
    }
    .sam-detail-media {
        height: 190px !important;
    }
    .sam-detail-body {
        padding: 14px !important;
    }
    .sam-detail-title-row h3,
    .sam-detail-title-row strong {
        font-size: 18px !important;
    }
}

.resto-pos-workspace .sam-product-list.resto-product-card-grid {
    grid-auto-rows: auto !important;
    align-items: start !important;
}

.resto-pos-workspace .sam-product-list.resto-product-card-grid {
    grid-auto-rows: 225px !important;
}
.resto-pos-workspace .sam-product-row.resto-product-card {
    height: 225px !important;
    min-height: 225px !important;
}
@media (max-width: 520px) {
    .resto-pos-workspace .sam-product-list.resto-product-card-grid {
        grid-auto-rows: 89px !important;
    }
    .resto-pos-workspace .sam-product-row.resto-product-card {
        height: 89px !important;
        min-height: 89px !important;
    }
}


/* Restaurant POS - ajout direct, options et photos */
.resto-pos-workspace .sam-product-list.resto-product-card-grid {
    grid-auto-rows: 248px !important;
}
.resto-pos-workspace .sam-product-row.resto-product-card {
    height: 248px !important;
    min-height: 248px !important;
    cursor: pointer;
}
.resto-pos-workspace .sam-product-row .resto-product-card-media {
    position: relative;
}
.sam-product-photo-action {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 7px;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .2);
    transition: transform .15s ease, background .15s ease;
}
.sam-product-photo-action:hover {
    transform: scale(1.08);
    background: #0f766e;
}
.sam-product-options {
    justify-self: start;
    margin-top: 3px;
    padding: 3px 7px;
    border: 1px solid #b8d8d4;
    border-radius: 5px;
    color: #0f766e;
    background: #f1faf8;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
}
.sam-product-options:hover {
    border-color: #0f766e;
    background: #dff4f0;
}
.resto-cart-feedback {
    padding: 8px 10px;
    border-left: 3px solid #10b981;
    border-radius: 5px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
    font-weight: 800;
    animation: restoFeedbackIn .18s ease-out;
}
.resto-cart-feedback[hidden],
.resto-photo-upload-status[hidden] {
    display: none !important;
}
.resto-photo-upload-status {
    position: fixed;
    top: 92px;
    left: 50%;
    z-index: 2600;
    transform: translateX(-50%);
    max-width: min(420px, calc(100vw - 28px));
    padding: 11px 16px;
    border-radius: 7px;
    background: #0f766e;
    color: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .22);
    font-size: 13px;
    font-weight: 900;
}
.resto-photo-upload-status.is-error {
    background: #b42318;
}
.resto-cart-panel .extra-order-lines-table tr.is-just-added {
    animation: restoCartPulse .62s ease;
}
@keyframes restoCartPulse {
    0% { background: #dff7f2 !important; transform: translateX(4px); }
    100% { background: #fff !important; transform: translateX(0); }
}
@keyframes restoFeedbackIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 520px) {
    .resto-pos-workspace .sam-product-list.resto-product-card-grid {
        grid-auto-rows: 89px !important;
    }
    .resto-pos-workspace .sam-product-row.resto-product-card {
        height: 89px !important;
        min-height: 89px !important;
    }
    .sam-product-options {
        display: inline-block;
        margin-top: 1px;
        padding: 2px 5px;
        font-size: 8px;
    }
    .sam-product-photo-action {
        top: 4px;
        right: 4px;
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
}


/* Restaurant POS - panier serveur simplifie v6 */
.resto-cart-empty {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 92px;
    padding: 18px;
    border: 1px dashed #c8d6e5;
    border-radius: 7px;
    background: #f8fafc;
    color: #8190a3;
    text-align: center;
}
.resto-cart-empty[hidden] {
    display: none !important;
}
.resto-cart-empty strong {
    color: #34445a;
    font-size: 14px;
}
.resto-cart-empty span {
    font-size: 11px;
    font-weight: 700;
}
.resto-cart-panel .extra-order-lines-table tr {
    grid-template-columns: 104px minmax(0, 1fr) 34px !important;
    align-items: center !important;
    padding: 10px 0 !important;
}
.resto-cart-panel .resto-cart-product-cell {
    grid-column: 1 / -1 !important;
}
.resto-cart-product {
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
}
.resto-cart-line-total {
    min-width: max-content;
    color: #17233f;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}
.resto-cart-line-details {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin: 5px 0 0 57px;
    padding: 3px 8px;
    border: 0;
    border-radius: 5px;
    background: #eef5f6;
    color: #0f766e;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}
.resto-cart-line-details:hover,
.resto-cart-line-details[aria-expanded="true"] {
    background: #dff3f0;
}
.resto-cart-panel .resto-cart-quantity-cell {
    grid-column: 1 !important;
    grid-row: 2 !important;
}
.resto-cart-panel .resto-cart-price-cell,
.resto-cart-panel .resto-cart-billing-cell {
    display: none !important;
}
.resto-cart-panel .extra-order-line.is-details-open .resto-cart-price-cell,
.resto-cart-panel .extra-order-line.is-details-open .resto-cart-billing-cell {
    display: block !important;
}
.resto-cart-panel .extra-order-line.is-details-open .resto-cart-price-cell {
    grid-column: 1 !important;
    grid-row: 3 !important;
}
.resto-cart-panel .extra-order-line.is-details-open .resto-cart-billing-cell {
    grid-column: 2 !important;
    grid-row: 3 !important;
}
.resto-cart-panel .resto-cart-remove-cell {
    grid-column: 3 !important;
    grid-row: 2 !important;
    align-self: center !important;
}
.resto-cart-panel .resto-cart-price-cell::before {
    content: 'Prix unitaire' !important;
}
.resto-cart-panel .resto-cart-billing-cell::before {
    content: 'Facturation' !important;
}
.resto-cart-panel .extra-order-line:not(.is-details-open) .resto-cart-line-details::after {
    content: ' · PU et facturation';
    color: #7c8a9c;
    font-weight: 700;
}
.resto-cart-panel .resto-cart-add-manual {
    min-height: 34px;
    background: transparent;
    border-style: solid;
    color: #496579;
}
@media (max-width: 520px) {
    .resto-pos-service-meta {
        grid-template-columns: 128px minmax(0, 1fr) !important;
    }
    .resto-cart-panel .extra-order-lines-table tr {
        grid-template-columns: 104px minmax(0, 1fr) 34px !important;
    }
    .resto-cart-product {
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
        gap: 8px;
    }
    .resto-cart-product-media {
        width: 44px;
        height: 44px;
    }
    .resto-cart-line-total {
        font-size: 12px;
    }
    .resto-cart-line-details {
        margin-left: 52px;
    }
    .resto-cart-panel .order-product-combo input[data-line-role="product-search"] {
        min-height: 35px !important;
    }
}

.resto-cart-panel .extra-order-lines-table td.resto-cart-price-cell,
.resto-cart-panel .extra-order-lines-table td.resto-cart-billing-cell {
    display: none !important;
}
.resto-cart-panel .extra-order-lines-table tr.extra-order-line.is-details-open td.resto-cart-price-cell,
.resto-cart-panel .extra-order-lines-table tr.extra-order-line.is-details-open td.resto-cart-billing-cell {
    display: block !important;
}
.resto-cart-panel .extra-order-lines-table td.resto-cart-remove-cell {
    grid-column: 3 !important;
    grid-row: 2 !important;
    align-self: center !important;
}

.resto-cart-panel .extra-order-lines-table td.resto-cart-product-cell {
    position: relative;
    overflow: visible;
}
.resto-cart-panel .resto-cart-line-details {
    position: absolute;
    right: 42px;
    bottom: -43px;
    z-index: 2;
    min-height: 32px;
    margin: 0;
}


/* Restaurant POS - panier pur et ordre de service v9 */
.resto-cart-panel .extra-order-lines-table tr.extra-order-line {
    grid-template-columns: minmax(0, 1fr) 88px 32px !important;
    gap: 8px !important;
    align-items: center !important;
    min-height: 74px;
    padding: 10px 0 !important;
}
.resto-cart-panel .extra-order-lines-table td.resto-cart-product-cell {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: static;
    overflow: visible;
}
.resto-cart-panel .resto-cart-product {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    align-items: center;
}
.resto-cart-panel .resto-cart-product-media {
    display: none !important;
}
.resto-cart-panel .order-product-combo input[data-line-role="product-search"] {
    min-height: 26px !important;
    height: 26px !important;
    padding: 0 22px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #17233f;
    font-size: 13px !important;
    font-weight: 900;
}
.resto-cart-panel .extra-order-line.has-product [data-line-clear-product] {
    display: none !important;
}
.resto-cart-line-total {
    color: #ef6c00;
    font-size: 12px;
}
.resto-cart-line-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 25px;
    margin-top: 4px;
}
.resto-cart-panel .resto-cart-line-details {
    position: static !important;
    display: grid;
    place-items: center;
    width: 27px;
    min-width: 27px;
    height: 25px;
    min-height: 25px;
    margin: 0 !important;
    padding: 0;
    border: 1px solid #d6e0ea;
    border-radius: 5px;
    background: #fff;
    color: #65758a;
    font-size: 17px;
    line-height: 1;
}
.resto-cart-panel .extra-order-line:not(.is-details-open) .resto-cart-line-details::after {
    content: none !important;
}
.resto-cart-option-button {
    min-height: 25px;
    padding: 3px 8px;
    border: 1px solid #b9d7d3;
    border-radius: 5px;
    background: #eef9f7;
    color: #0f766e;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}
.resto-cart-option-button:disabled {
    display: none;
}
.resto-cart-panel .extra-order-lines-table td.resto-cart-quantity-cell {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: grid !important;
    gap: 4px;
    justify-items: center;
}
.resto-cart-panel .extra-order-lines-table td.resto-cart-quantity-cell::before,
.resto-cart-panel .extra-order-lines-table td.resto-cart-remove-cell::before {
    display: none !important;
}
.resto-cart-panel .quantity-stepper {
    grid-template-columns: 26px 34px 26px !important;
    width: 86px !important;
    border-radius: 6px;
}
.resto-cart-panel .quantity-stepper button,
.resto-cart-panel .quantity-stepper input {
    height: 32px !important;
    min-height: 32px !important;
}
.resto-cart-reorder {
    display: flex;
    gap: 4px;
    justify-content: center;
}
.resto-cart-reorder button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 24px;
    padding: 0;
    border: 1px solid #d7e0e9;
    border-radius: 5px;
    background: #fff;
    color: #4c6077;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}
.resto-cart-reorder button:disabled {
    opacity: .28;
    cursor: default;
}
.resto-cart-panel .extra-order-lines-table td.resto-cart-remove-cell {
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: center !important;
}
.resto-cart-panel .extra-order-lines-table tr.extra-order-line.is-details-open td.resto-cart-price-cell {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: block !important;
}
.resto-cart-panel .extra-order-lines-table tr.extra-order-line.is-details-open td.resto-cart-billing-cell {
    grid-column: 2 / span 2 !important;
    grid-row: 2 !important;
    display: block !important;
}
.resto-cart-panel .extra-order-line.is-child-priority {
    padding-left: 8px !important;
    border-left: 3px solid #ef6c00 !important;
    background: #fffaf4 !important;
}
.resto-cart-panel .extra-order-line.is-child-priority .resto-cart-line-options {
    color: #c45100;
}
.sam-child-priority {
    padding: 4px 0;
}
.sam-child-priority label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 8px 10px;
    border: 1px solid #ffd1a6;
    border-radius: 7px;
    background: #fff8f0;
    color: #8a3b00;
}
.sam-child-priority label span {
    display: grid;
    gap: 2px;
}
.sam-child-priority label small {
    color: #9b6a45;
    font-size: 10px;
}
.sam-child-priority input {
    width: 21px;
    height: 21px;
    accent-color: #ef6c00;
}
@media (max-width: 520px) {
    .resto-cart-panel .extra-order-lines-table tr.extra-order-line {
        grid-template-columns: minmax(0, 1fr) 84px 32px !important;
        gap: 6px !important;
    }
    .resto-cart-panel .quantity-stepper {
        grid-template-columns: 25px 32px 25px !important;
        width: 82px !important;
    }
    .resto-cart-line-total {
        font-size: 11px;
    }
}


/* Restaurant POS - fiche de preparation et recapitulatif v10 */
.resto-cart-panel .extra-order-line.has-product .resto-cart-product-cell {
    cursor: pointer;
}
.resto-cart-panel .extra-order-line.has-product .resto-cart-product-cell:hover .order-product-combo input {
    color: #0f766e;
}
.sam-detail-body .sam-option-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 4px 0 8px;
}
.sam-detail-body .sam-option-group > b {
    grid-column: 1 / -1;
    min-height: 32px;
    padding-bottom: 6px;
    border-bottom: 1px solid #dce4ec;
    color: #17233f;
    font-size: 13px;
    text-transform: uppercase;
}
.sam-detail-body .sam-option-group label {
    position: relative;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 8px !important;
    border: 1px solid #d9e2eb;
    border-radius: 7px;
    background: #fff;
    color: #526377;
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}
.sam-detail-body .sam-option-group label:hover {
    border-color: #78bdb5;
    background: #f2faf9;
}
.sam-detail-body .sam-option-group label:has(input:checked) {
    border-color: #0f766e;
    background: #0f766e;
    color: #fff;
    box-shadow: 0 5px 12px rgba(15, 118, 110, .18);
}
.sam-detail-body .sam-option-group label input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
}
.sam-detail-body .sam-detail-note {
    gap: 6px;
    color: #526377;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.sam-detail-body .sam-detail-note input {
    min-height: 42px;
    text-transform: none;
    font-weight: 600;
}
.resto-order-review[hidden] {
    display: none !important;
}
.resto-order-review {
    position: fixed;
    inset: 0;
    z-index: 2800;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(4px);
}
body.resto-review-open {
    overflow: hidden;
}
.resto-review-card {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    width: min(760px, 100%);
    max-height: min(880px, 94vh);
    overflow: hidden;
    border: 1px solid #dbe4ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .28);
}
.resto-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #e4eaf0;
}
.resto-review-head h3 {
    margin: 3px 0 0;
    color: #17233f;
    font-size: 22px;
}
.resto-review-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d8e1ea;
    border-radius: 7px;
    background: #fff;
    color: #5f6f82;
    font-size: 23px;
}
.resto-review-meta {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 1px;
    background: #dfe7ef;
    border-bottom: 1px solid #dfe7ef;
}
.resto-review-meta span {
    display: grid;
    align-content: center;
    min-width: 0;
    min-height: 66px;
    padding: 10px 12px;
    background: #f7f9fc;
}
.resto-review-meta small {
    color: #7a899b;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}
.resto-review-meta strong,
.resto-review-meta em {
    overflow: hidden;
    color: #17233f;
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.resto-review-meta em {
    color: #0f766e;
    font-size: 10px;
    font-weight: 800;
}
.resto-review-lines {
    overflow: auto;
    padding: 4px 20px;
}
.resto-review-line {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    min-height: 68px;
    padding: 10px 0;
    border-bottom: 1px solid #e5ebf1;
}
.resto-review-line.is-child {
    margin-inline: -8px;
    padding-inline: 8px;
    border-left: 3px solid #ef6c00;
    background: #fff8ef;
}
.resto-review-order {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #17233f;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}
.resto-review-line div {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.resto-review-line div > strong {
    color: #17233f;
    font-size: 14px;
}
.resto-review-line div > small {
    color: #0f766e;
    font-size: 11px;
    font-weight: 800;
}
.resto-review-line div > b {
    width: max-content;
    padding: 3px 6px;
    border-radius: 4px;
    background: #ffedd5;
    color: #c45100;
    font-size: 9px;
}
.resto-review-line-total {
    color: #ef6c00;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}
.resto-review-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding: 14px 20px;
    border-top: 1px solid #dfe7ef;
    color: #66758a;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.resto-review-total strong {
    color: #ef6c00;
    font-size: 23px;
    white-space: nowrap;
}
.resto-review-actions {
    display: grid;
    grid-template-columns: auto auto minmax(180px, 1fr);
    gap: 8px;
    padding: 14px 20px 18px;
    background: #f7f9fc;
}
.resto-review-actions button {
    min-height: 44px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 900;
}
.resto-review-print {
    border: 1px solid #f3b36f;
    background: #fff7ed;
    color: #c45100;
}
#resto-review-confirm {
    border: 1px solid #0f766e;
    background: #0f766e;
    color: #fff;
}
@media (max-width: 620px) {
    .sam-detail-body .sam-option-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .resto-order-review {
        align-items: end;
        padding: 0;
    }
    .resto-review-card {
        width: 100%;
        max-height: 96vh;
        border-radius: 8px 8px 0 0;
    }
    .resto-review-head {
        padding: 14px;
    }
    .resto-review-head h3 {
        font-size: 18px;
    }
    .resto-review-meta {
        grid-template-columns: 1fr 1fr;
    }
    .resto-review-meta span {
        min-height: 54px;
        padding: 8px 10px;
    }
    .resto-review-lines {
        padding-inline: 12px;
    }
    .resto-review-line {
        grid-template-columns: 28px minmax(0, 1fr);
    }
    .resto-review-line-total {
        grid-column: 2;
    }
    .resto-review-actions {
        grid-template-columns: 1fr 1fr;
        padding: 10px 12px 14px;
    }
    #resto-review-confirm {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}


/* Restaurant POS - poignee glisser-deposer v11 */
.resto-cart-drag-handle {
    display: grid;
    place-items: center;
    width: 28px;
    min-width: 28px;
    height: 25px;
    min-height: 25px;
    padding: 0;
    border: 1px solid #d6e0ea;
    border-radius: 5px;
    background: #fff;
    color: #526377;
    font-size: 13px;
    letter-spacing: -4px;
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.resto-cart-drag-handle:active {
    cursor: grabbing;
}
.resto-cart-panel .extra-order-line.is-dragging {
    opacity: .62;
    border: 1px dashed #0f766e !important;
    background: #eef9f7 !important;
    box-shadow: 0 10px 24px rgba(15, 118, 110, .16) !important;
}

/* Operational accountability and reporting controls */
.operation-responsible-field {
    display: grid;
    grid-template-columns: auto minmax(190px, 260px);
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0 0 16px auto;
    color: #52627a;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.operation-responsible-field input {
    min-height: 38px;
    text-transform: none;
}

.dashboard-breakdown-heading,
.sound-commission-actions,
.sound-commission-month-form {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dashboard-breakdown-heading {
    justify-content: space-between;
    margin-bottom: 5px;
}

.dashboard-breakdown-heading h3 {
    margin: 0;
}

.dashboard-inline-filter {
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid #d5ddea;
    border-radius: 6px;
    background: #fff;
    color: #42526b;
    font-size: 10px;
    font-weight: 800;
}

.dashboard-inline-filter:hover,
.dashboard-inline-filter.is-open {
    border-color: #0f8076;
    background: #edf9f7;
    color: #0d665f;
}

.dashboard-unclassified-list {
    display: grid;
    gap: 5px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid #e2e8f0;
}

.dashboard-unclassified-list[hidden] {
    display: none;
}

.dashboard-unclassified-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 5px;
    background: #f7f9fc;
    color: #26364d;
    font-size: 11px;
    text-decoration: none;
}

.dashboard-unclassified-list a:hover {
    background: #edf9f7;
    color: #0f766e;
}

.dashboard-unclassified-list a span {
    display: grid;
    min-width: 0;
}

.dashboard-unclassified-list a small {
    color: #667085;
    white-space: nowrap;
}

.dashboard-payment-actions {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.sound-commission-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sound-commission-month-form label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #52627a;
    font-size: 11px;
    font-weight: 800;
}

.sound-commission-month-form input[type="month"],
.sound-commission-month-form input[type="date"],
.sound-commission-month-form select {
    width: 150px;
    min-height: 36px;
}

.confirmation-signatures > div > small {
    display: block;
    margin-top: 2px;
    color: #52627a;
    font-size: 9px;
    font-weight: 650;
}

@media (max-width: 760px) {
    .operation-responsible-field {
        grid-template-columns: 1fr;
        width: 100%;
        margin-left: 0;
    }

    .sound-commission-actions,
    .sound-commission-month-form {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .sound-commission-month-form label,
    .sound-commission-month-form input[type="month"],
    .sound-commission-month-form input[type="date"],
.sound-commission-month-form select {
        width: 100%;
    }
}

.reservation-responsible {
    display: block;
    margin-top: 3px;
    color: #667085;
    font-size: 9px;
    font-weight: 650;
    white-space: nowrap;
}


/* Administration securisee des acces Direction */
.credential-admin-panel {
    border-top: 3px solid #0f766e;
}

.credential-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.credential-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #d6e0e9;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.credential-card.is-protected {
    background: #f8fafc;
}

.credential-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e4e9f0;
}

.credential-card-head h3 {
    margin: 4px 0 5px;
    color: #10233e;
    font-size: 19px;
    line-height: 1.2;
}

.credential-card-head code {
    color: #526178;
    font-size: 12px;
}

.credential-role {
    color: #0f766e;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.credential-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 14px;
    margin-top: 16px;
}

.credential-form label {
    min-width: 0;
}

.credential-form label > span {
    display: block;
    margin-bottom: 6px;
    color: #44536a;
    font-size: 11px;
    font-weight: 800;
}

.credential-form label > span small {
    color: #7a8799;
    font-weight: 650;
}

.credential-form input:not([type="checkbox"]) {
    width: 100%;
    min-width: 0;
    height: 41px;
}

.credential-form-footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 3px;
}

.credential-password-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.credential-password-toggle input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.credential-password-toggle span {
    margin: 0 !important;
    font-size: 11px !important;
}

.credential-policy {
    grid-column: 1 / -1;
    margin: -3px 0 0;
    color: #6d7888;
    font-size: 10px;
}

.credential-protected-note {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    padding: 13px 14px;
    border-left: 3px solid #94a3b8;
    background: #eef2f6;
    color: #536174;
    font-size: 12px;
}

@media (max-width: 980px) {
    .credential-admin-grid {
        grid-template-columns: 1fr;
    }
}

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

    .credential-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .credential-form-footer button {
        width: 100%;
    }
}


/* Gestion complete des utilisateurs */
.password-control { position: relative; min-width: 0; }
.password-control input { width: 100%; padding-right: 42px !important; }
.password-eye { position: absolute; top: 50%; right: 5px; display: inline-grid; place-items: center; width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #68768a; box-shadow: none; transform: translateY(-50%); }
.password-eye:hover, .password-eye:focus-visible { background: #e8f3f2; color: #0f766e; box-shadow: none; transform: translateY(-50%); }
.password-eye-icon { position: relative; display: block; width: 17px; height: 11px; border: 1.8px solid currentColor; border-radius: 50% / 60%; }
.password-eye-icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transform: translate(-50%, -50%); }
.password-eye.is-visible .password-eye-icon::before { content: ''; position: absolute; z-index: 1; top: 4px; left: -3px; width: 21px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(-38deg); }
.user-create-panel { border-top: 3px solid #d6a21d; }
.user-create-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.user-create-form label > span, .user-access-form label > span { display: block; margin-bottom: 6px; color: #44536a; font-size: 11px; font-weight: 800; }
.user-create-form input, .user-create-form select, .user-access-form input { width: 100%; min-width: 0; height: 41px; }
.user-create-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 3px; color: #667085; font-size: 11px; }
.credential-form-footer .credential-policy { margin: 0; }
.user-row-actions { flex-wrap: nowrap; }
.user-access-button { border-color: #acd8d2; background: #eff9f7; color: #0f6b63; }
.user-access-dialog { width: min(620px, calc(100vw - 28px)); max-height: calc(100vh - 36px); padding: 0; border: 1px solid #cbd7e3; border-radius: 8px; background: #ffffff; color: #152238; box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26); }
.user-access-dialog::backdrop { background: rgba(15, 23, 42, 0.48); backdrop-filter: blur(2px); }
.user-access-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px 15px; border-bottom: 1px solid #e0e7ef; }
.user-access-dialog-head h2 { margin: 4px 0 0; font-size: 21px; }
.user-dialog-close { display: inline-grid; place-items: center; width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; border: 1px solid #d8e0e9; border-radius: 6px; background: #ffffff; color: #526076; font-size: 20px; box-shadow: none; }
.user-access-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px 22px 22px; }
.user-access-form > label:first-of-type, .user-access-form .credential-policy, .user-dialog-actions { grid-column: 1 / -1; }
.user-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
@media (max-width: 900px) { .user-create-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .user-create-form, .user-access-form { grid-template-columns: 1fr; } .user-create-footer { align-items: stretch; flex-direction: column; } .user-create-footer button, .user-dialog-actions button { flex: 1; } }


/* Retour options produit et en-tete repliable */
.sam-detail-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(132px, .42fr) minmax(190px, 1fr);
    gap: 10px;
    padding-top: 10px;
    background: #ffffff;
}
.sam-detail-actions .sam-add-to-cart,
.sam-detail-cancel {
    width: 100%;
    min-height: 50px;
    margin: 0;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 850;
}
.sam-detail-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    box-shadow: none;
    cursor: pointer;
}
.sam-detail-cancel::before {
    width: 8px;
    height: 8px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
}
.sam-detail-cancel:hover,
.sam-detail-cancel:focus-visible {
    border-color: #0f766e;
    background: #f0fdfa;
    color: #0f766e;
}
.header-menu-toggle {
    display: inline-grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid #cfd8e5;
    border-radius: 7px;
    background: #ffffff;
    color: #344054;
    box-shadow: none;
    cursor: pointer;
}
.header-menu-toggle:hover,
.header-menu-toggle:focus-visible {
    border-color: #6fb7ae;
    background: #edf9f7;
    color: #0f766e;
}
.header-menu-toggle-icon {
    display: grid;
    gap: 4px;
    width: 18px;
}
.header-menu-toggle-icon i {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}
#site-topbar.is-collapsed .brand-link,
#site-topbar.is-collapsed .global-search,
#site-topbar.is-collapsed .primary-nav,
#site-topbar.is-collapsed .secondary-nav,
#site-topbar.is-collapsed .header-account-name,
#site-topbar.is-collapsed .logout-form {
    display: none !important;
}
#site-topbar.is-collapsed,
#site-topbar.is-collapsed.is-scrolled {
    min-height: 0;
    border-bottom-color: #c6d0dd;
    box-shadow: 0 8px 22px rgba(31, 41, 51, .12);
}
#site-topbar.is-collapsed .topbar-main,
#site-topbar.is-collapsed.is-scrolled .topbar-main {
    display: flex !important;
    justify-content: flex-end;
    min-height: 48px;
    padding: 5px 16px !important;
}
#site-topbar.is-collapsed .header-account {
    display: flex !important;
    grid-column: auto;
    grid-row: auto;
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
}
#site-topbar.is-collapsed .header-menu-toggle-icon i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#site-topbar.is-collapsed .header-menu-toggle-icon i:nth-child(2) {
    opacity: 0;
}
#site-topbar.is-collapsed .header-menu-toggle-icon i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
@media (max-width: 440px) {
    .sam-detail-actions {
        grid-template-columns: 1fr;
    }
}


.invoice-scope-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0 10px;
    padding: 12px 14px;
    border: 1px solid #d9e4ee;
    border-radius: 8px;
    background: #ffffff;
}

.invoice-language-picker {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 10px;
}

.invoice-language-picker .contract-settings-form {
    grid-template-columns: minmax(150px, 180px) auto;
    justify-content: end;
}

.invoice-language-picker .form-button-slot {
    min-width: 100px;
}

.invoice-scope-picker > div {
    display: grid;
    gap: 3px;
    min-width: 152px;
}

.invoice-scope-picker > div span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.invoice-scope-picker > div strong {
    color: var(--primary);
    font-size: 15px;
}

.invoice-scope-tabs {
    display: flex;
    align-items: stretch;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.invoice-scope-tab {
    display: grid;
    gap: 2px;
    min-width: 108px;
    padding: 8px 10px;
    border: 1px solid #d8e2ed;
    border-radius: 6px;
    color: #35516f;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.invoice-scope-tab small {
    color: #6a7e92;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.invoice-scope-tab:hover {
    border-color: #148178;
    color: #0d7068;
    background: #f0fbf8;
    box-shadow: 0 3px 10px rgba(13, 112, 104, 0.10);
}

.invoice-scope-tab.is-active {
    border-color: #117c74;
    color: #ffffff;
    background: #117c74;
}

.invoice-scope-tab.is-active small {
    color: #d9fffa;
}

.invoice-scope-tab.is-disabled {
    opacity: .52;
    cursor: not-allowed;
    background: #f4f6f8;
}

@media (max-width: 780px) {
    .invoice-language-picker { justify-content: stretch; }
    .invoice-language-picker .contract-settings-form { width: 100%; grid-template-columns: 1fr; }

    .invoice-scope-picker {
        align-items: stretch;
        flex-direction: column;
    }

    .invoice-scope-tabs {
        justify-content: flex-start;
    }

    .invoice-scope-tab {
        min-width: 102px;
    }
}


.invoice-scope-choice {
    position: relative;
    cursor: pointer;
}

.invoice-scope-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.invoice-scope-choice span {
    white-space: nowrap;
}

.invoice-scope-apply {
    align-self: stretch;
    min-height: 39px;
    white-space: nowrap;
}


.user-page-checklist {
    display: grid;
    grid-template-columns: repeat(3, minmax(145px, 1fr));
    gap: 9px;
    margin: 16px 0 18px;
}

.user-page-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #d9e4ee;
    border-radius: 6px;
    color: #28435d;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.user-page-option:has(input:checked) {
    border-color: #168177;
    color: #0d665f;
    background: #eefbf8;
}

.user-page-option input {
    width: 16px;
    height: 16px;
    accent-color: #118178;
}

@media (max-width: 760px) {
    .user-page-checklist {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }
}

@media (max-width: 460px) {
    .user-page-checklist {
        grid-template-columns: 1fr;
    }
}

/* Gestion fine des droits : chaque autorisation reste une ligne cliquable et alignée. */
#user-pages-dialog {
    width: min(860px, calc(100vw - 28px));
    height: min(760px, calc(100dvh - 28px));
    max-height: min(760px, calc(100vh - 28px));
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #cddcea;
    border-radius: 10px;
    box-shadow: 0 22px 56px rgba(15, 39, 68, 0.24);
}

#user-pages-dialog form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

#user-pages-dialog .dialog-head {
    flex: 0 0 auto;
    padding-inline: 22px;
}

#user-pages-dialog .dialog-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 4px 22px 22px;
}

#user-pages-dialog .dialog-footer {
    flex: 0 0 auto;
    margin: 0;
    padding: 14px 22px 16px;
    border-top: 1px solid #dbe4ed;
    background: #ffffff;
}

#user-pages-dialog .user-page-checklist {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100%;
    margin: 16px 0 4px !important;
}

#user-pages-dialog .user-page-option {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    min-width: 0;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #d3e0eb !important;
    border-radius: 7px !important;
    background: #f8fafc !important;
    box-sizing: border-box;
    line-height: 1.2;
}

#user-pages-dialog .user-page-option span {
    order: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#user-pages-dialog .user-page-option input[type="checkbox"] {
    order: 2;
    flex: 0 0 17px;
    width: 17px !important;
    height: 17px !important;
    margin: 0 0 0 10px !important;
}

#user-pages-dialog .user-page-option:has(input:checked) {
    border-color: #149080 !important;
    background: #edf9f6 !important;
    box-shadow: inset 0 0 0 1px rgba(20, 144, 128, 0.12);
}

@media (max-width: 700px) {
    #user-pages-dialog {
        width: calc(100vw - 16px);
        height: calc(100dvh - 16px);
        max-height: calc(100vh - 16px);
    }

    #user-pages-dialog .dialog-head,
    #user-pages-dialog .dialog-footer {
        padding-inline: 16px;
    }

    #user-pages-dialog .dialog-body {
        padding-inline: 16px;
    }

    #user-pages-dialog .user-page-checklist {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 460px) {
    #user-pages-dialog .user-page-checklist {
        grid-template-columns: 1fr !important;
    }
}

.audit-heading { align-items: center; }
.audit-count { flex: 0 0 auto; padding: 10px 14px; border: 1px solid #bfe6de; border-radius: 7px; background: #effbf8; color: #0f766e; font-weight: 800; white-space: nowrap; }
.audit-filter-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.audit-filter-form label { display: grid; gap: 6px; min-width: 170px; color: #48627d; font-size: 12px; font-weight: 800; }
.audit-filter-form label:first-of-type { min-width: min(330px, 100%); flex: 1 1 270px; }
.audit-filter-form input, .audit-filter-form select { height: 40px; min-width: 0; }
.audit-table { width: 100%; min-width: 920px; border-collapse: collapse; }
.audit-table th { padding: 11px 12px; background: #15264c; color: #fff; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0; white-space: nowrap; }
.audit-table td { padding: 10px 12px; border-bottom: 1px solid #e2eaf1; color: #263e58; vertical-align: middle; line-height: 1.35; }
.audit-table tbody tr:hover { background: #f5fafb; }
.audit-table small { display: block; margin-top: 2px; color: #718397; font-size: 11px; font-weight: 600; }
.audit-date, .audit-reference { white-space: nowrap; }
.audit-action { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.audit-action-creation { color: #0e766d; background: #e8faf5; }
.audit-action-modification { color: #2366a2; background: #edf5ff; }
.audit-action-annulation { color: #a54c00; background: #fff3e4; }
.audit-action-suppression { color: #ad2841; background: #fff0f2; }
.audit-journal-link { align-self: center; white-space: nowrap; }
@media (max-width: 700px) { .audit-count { width: 100%; text-align: center; } .audit-filter-form > * { flex: 1 1 100%; } .audit-filter-form .button { text-align: center; } }

/* Saisie hôtel : dimensions adaptées au contenu, sans champs inutilement étirés. */
.hotel-entry-layout {
    padding-inline: 4px;
}

.hotel-reservation-form {
    width: min(1080px, 100%);
    gap: 14px;
}

.hotel-reservation-form .entry-block {
    padding: 13px 14px;
}

.hotel-reservation-form .billing-entry-grid {
    grid-template-columns: minmax(280px, 1.55fr) minmax(132px, 0.62fr) minmax(235px, 1.08fr);
    max-width: 930px;
}

.hotel-reservation-form .client-entry-block > .entry-grid:not(.billing-entry-grid):not(.compact-entry-grid) {
    grid-template-columns: 175px 255px minmax(280px, 1fr);
    max-width: 930px;
}

.hotel-reservation-form .client-entry-block .compact-entry-grid {
    grid-template-columns: repeat(3, 150px);
    max-width: 490px;
}

.hotel-reservation-form .reservation-choice-sections {
    grid-template-columns: minmax(205px, max-content) minmax(185px, max-content) minmax(230px, 280px);
    justify-content: start;
    gap: 10px;
    margin-top: 10px;
}

.hotel-reservation-form .choice-pill-group {
    min-height: 58px;
    padding: 8px 10px;
    gap: 8px;
}

.hotel-reservation-form .stay-grid {
    grid-template-columns: 170px 170px 120px;
    max-width: 500px;
}

.hotel-reservation-form .stay-entry-block .compact-entry-grid {
    grid-template-columns: minmax(260px, 330px) 150px;
    max-width: 500px;
}

.hotel-reservation-form .observation-entry-block > label {
    max-width: 760px;
}

@media (max-width: 920px) {
    .hotel-reservation-form {
        width: 100%;
    }

    .hotel-reservation-form .billing-entry-grid,
    .hotel-reservation-form .client-entry-block > .entry-grid:not(.billing-entry-grid):not(.compact-entry-grid),
    .hotel-reservation-form .stay-grid,
    .hotel-reservation-form .stay-entry-block .compact-entry-grid,
    .hotel-reservation-form .client-entry-block .compact-entry-grid {
        max-width: none;
    }

    .hotel-reservation-form .billing-entry-grid {
        grid-template-columns: minmax(245px, 1.35fr) 135px minmax(220px, 1fr);
    }

    .hotel-reservation-form .client-entry-block > .entry-grid:not(.billing-entry-grid):not(.compact-entry-grid) {
        grid-template-columns: 155px minmax(210px, 1fr) minmax(230px, 1.2fr);
    }

    .hotel-reservation-form .reservation-choice-sections {
        grid-template-columns: 1fr 1fr;
    }

    .hotel-reservation-form .nationality-combo {
        grid-column: 1 / -1;
        max-width: 350px;
    }
}

@media (max-width: 680px) {
    .hotel-entry-layout {
        padding-inline: 0;
    }

    .hotel-reservation-form .billing-entry-grid,
    .hotel-reservation-form .client-entry-block > .entry-grid:not(.billing-entry-grid):not(.compact-entry-grid),
    .hotel-reservation-form .client-entry-block .compact-entry-grid,
    .hotel-reservation-form .reservation-choice-sections,
    .hotel-reservation-form .stay-grid,
    .hotel-reservation-form .stay-entry-block .compact-entry-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .hotel-reservation-form .nationality-combo {
        grid-column: auto;
        max-width: none;
    }
}

/* Sur les écrans de travail, les lignes deviennent des fiches lisibles avant tout risque de défilement horizontal. */
@media (max-width: 1500px) {
    .hotel-room-lines-wrap,
    .hotel-supplement-lines-wrap {
        overflow: visible !important;
    }

    .hotel-room-lines-table,
    .hotel-supplement-lines-table {
        display: block;
        min-width: 0 !important;
        width: 100% !important;
        table-layout: auto;
    }

    .hotel-room-lines-table thead,
    .hotel-supplement-lines-table thead {
        display: none;
    }

    .hotel-room-lines-table tbody,
    .hotel-supplement-lines-table tbody {
        display: grid;
        gap: 10px;
    }

    .hotel-room-lines-table .reservation-room-line,
    .hotel-supplement-lines-table .reservation-supplement-line {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
        padding: 11px;
        border: 1px solid #d7e4ef;
        border-radius: 8px;
        background: #fff;
    }

    .hotel-room-lines-table .reservation-room-line td,
    .hotel-supplement-lines-table .reservation-supplement-line td {
        display: grid;
        gap: 4px;
        width: auto !important;
        min-width: 0;
        padding: 0 !important;
        border: 0 !important;
        text-align: left !important;
    }

    .hotel-room-lines-table .reservation-room-line td::before,
    .hotel-supplement-lines-table .reservation-supplement-line td::before {
        color: #60758c;
        font-size: 10px;
        font-weight: 850;
        line-height: 1;
        text-transform: uppercase;
    }

    .hotel-room-lines-table .reservation-room-line td:nth-child(1)::before { content: 'Hébergement'; }
    .hotel-room-lines-table .reservation-room-line td:nth-child(2)::before { content: 'Nom chambre'; }
    .hotel-room-lines-table .reservation-room-line td:nth-child(3)::before { content: 'Arrivée'; }
    .hotel-room-lines-table .reservation-room-line td:nth-child(4)::before { content: 'Départ'; }
    .hotel-room-lines-table .reservation-room-line td:nth-child(5)::before { content: 'Type'; }
    .hotel-room-lines-table .reservation-room-line td:nth-child(6)::before { content: 'Configuration'; }
    .hotel-room-lines-table .reservation-room-line td:nth-child(7)::before { content: 'Pax'; }
    .hotel-room-lines-table .reservation-room-line td:nth-child(8)::before { content: 'Mode'; }
    .hotel-room-lines-table .reservation-room-line td:nth-child(9)::before { content: 'Tarif'; }
    .hotel-room-lines-table .reservation-room-line td:nth-child(10)::before { content: 'PU / forfait'; }
    .hotel-room-lines-table .reservation-room-line td:nth-child(11)::before { content: 'Action'; }

    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(1)::before { content: 'Prestation'; }
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(2)::before { content: 'Du'; }
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(3)::before { content: 'Au'; }
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(4)::before { content: 'Unité'; }
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(5)::before { content: 'Mode'; }
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(6)::before { content: 'Pax / Qté'; }
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(7)::before { content: 'Tarif'; }
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(8)::before { content: 'PU'; }
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(9)::before { content: 'Montant'; }
    .hotel-supplement-lines-table .reservation-supplement-line td:nth-child(10)::before { content: 'Action'; }

    .hotel-room-lines-table .reservation-room-line td:last-child,
    .hotel-supplement-lines-table .reservation-supplement-line td:last-child {
        align-self: end;
        justify-self: end;
    }

    .hotel-room-lines-table .combo-results,
    .hotel-supplement-lines-table .combo-results {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 560px) {
    .hotel-room-lines-table .reservation-room-line,
    .hotel-supplement-lines-table .reservation-supplement-line {
        grid-template-columns: 1fr;
    }

    .hotel-room-lines-table .reservation-room-line td:last-child,
    .hotel-supplement-lines-table .reservation-supplement-line td:last-child {
        justify-self: start;
    }
}

/* Saisie hôtel : chaque section reste contenue dans la largeur de l'écran. */
.hotel-entry-layout,
.hotel-reservation-form,
.hotel-reservation-form > *,
.hotel-reservation-form .entry-block,
.hotel-reservation-form .entry-grid,
.hotel-reservation-form .entry-grid > *,
.hotel-reservation-form .combo-field,
.hotel-reservation-form .table-wrap {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.hotel-reservation-form {
    margin-inline: auto;
}

.hotel-reservation-form .entry-block-title,
.hotel-reservation-form .room-lines-title {
    min-width: 0;
}

.hotel-reservation-form .entry-block-title p,
.hotel-reservation-form .room-lines-title p,
.hotel-reservation-form .service-entry-hint {
    overflow-wrap: anywhere;
}

.hotel-reservation-form .entry-block-title > div,
.hotel-reservation-form .room-lines-title > div {
    min-width: 0;
}

.hotel-reservation-form .room-lines-title > button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.hotel-reservation-form .combo-field input,
.hotel-reservation-form .entry-grid input,
.hotel-reservation-form .entry-grid select,
.hotel-reservation-form .entry-grid textarea {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1140px) {
    .hotel-reservation-form {
        width: calc(100% - 20px);
    }
}

@media (max-width: 840px) {
    .hotel-reservation-form {
        width: calc(100% - 16px);
    }

    .hotel-reservation-form .entry-block {
        padding: 12px;
    }

    .hotel-reservation-form .entry-block-title,
    .hotel-reservation-form .room-lines-title {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .hotel-reservation-form .room-lines-title > button {
        margin-left: 44px;
    }
}

@media (max-width: 520px) {
    .hotel-reservation-form {
        width: 100%;
        border-inline: 0;
        border-radius: 0;
        padding: 10px;
    }

    .hotel-reservation-form .entry-block {
        padding: 11px;
        border-radius: 7px;
    }

    .hotel-reservation-form .room-lines-title > button {
        width: calc(100% - 44px);
        margin-left: 44px;
    }

    .hotel-reservation-form .form-title-row {
        gap: 8px;
        flex-wrap: wrap;
    }
}


/* Saisie hotel : ligne chambre compacte sans défilement sur écran de travail. */
@media (min-width: 761px) {
  .hotel-room-lines-wrap { overflow: visible !important; }
  .hotel-room-lines-table { display: table !important; width: 100% !important; min-width: 0 !important; table-layout: fixed !important; }
  .hotel-room-lines-table thead { display: table-header-group !important; }
  .hotel-room-lines-table tbody { display: table-row-group !important; }
  .hotel-room-lines-table .reservation-room-line { display: table-row !important; background: #fff; border: 0; }
  .hotel-room-lines-table .reservation-room-line td { display: table-cell !important; min-width: 0 !important; padding: 5px 4px !important; vertical-align: middle; }
  .hotel-room-lines-table .reservation-room-line td::before { content: none !important; }
  .hotel-room-lines-table th { padding: 7px 4px !important; font-size: 10px; white-space: nowrap; }
  .hotel-room-lines-table th:nth-child(1), .hotel-room-lines-table td:nth-child(1) { width: 10%; }
  .hotel-room-lines-table th:nth-child(2), .hotel-room-lines-table td:nth-child(2) { width: 16%; }
  .hotel-room-lines-table th:nth-child(3), .hotel-room-lines-table td:nth-child(3), .hotel-room-lines-table th:nth-child(4), .hotel-room-lines-table td:nth-child(4) { width: 10%; }
  .hotel-room-lines-table th:nth-child(5), .hotel-room-lines-table td:nth-child(5), .hotel-room-lines-table th:nth-child(6), .hotel-room-lines-table td:nth-child(6) { width: 10%; }
  .hotel-room-lines-table th:nth-child(7), .hotel-room-lines-table td:nth-child(7) { width: 5%; }
  .hotel-room-lines-table th:nth-child(8), .hotel-room-lines-table td:nth-child(8) { width: 8%; }
  .hotel-room-lines-table th:nth-child(9), .hotel-room-lines-table td:nth-child(9) { width: 7%; }
  .hotel-room-lines-table th:nth-child(10), .hotel-room-lines-table td:nth-child(10) { width: 11%; }
  .hotel-room-lines-table th:nth-child(11), .hotel-room-lines-table td:nth-child(11) { width: 3%; }
  .hotel-room-lines-table input, .hotel-room-lines-table select { width: 100%; min-width: 0 !important; height: 33px; padding: 5px 6px; font-size: 12px; }
  .hotel-room-lines-table td:nth-child(7) input { text-align: center; font-weight: 750; }
  .hotel-room-lines-table td:nth-child(10) input { text-align: right; font-variant-numeric: tabular-nums; }
  .hotel-room-lines-table .combo-results { min-width: min(300px, 38vw); }
  .hotel-room-lines-table .line-remove { width: 30px; min-width: 30px; height: 30px; padding: 0; }
}

@media (min-width: 761px) {
  .hotel-room-lines-table { border-collapse: collapse !important; border-spacing: 0 !important; }
  .hotel-room-lines-wrap { overflow-x: clip !important; }
}


/* Suivi piscine */
.pool-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 18px}.pool-status-card{min-height:116px;padding:18px 20px;border:1px solid #d7e2ee;border-radius:8px;background:#fff;box-shadow:0 7px 20px rgba(17,35,70,.05);display:flex;flex-direction:column;gap:6px}.pool-status-card strong{font-size:20px;color:#102246}.pool-status-card small{color:#536885;line-height:1.38}.pool-kicker{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#627695}.pool-status-card.pool-ok{border-left:5px solid #0f9c78}.pool-status-card.pool-watch{border-left:5px solid #e69524}.pool-status-card.pool-alert{border-left:5px solid #d44848}.pool-form-panel{border-top:4px solid #167c81}.pool-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px 15px}.pool-treatment-form label{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:12px;color:#31476b}.pool-task-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.pool-check{padding:13px 14px;border:1px solid #d7e2ee;border-radius:7px;background:#f7fbfb;flex-direction:row!important;align-items:flex-start;cursor:pointer}.pool-check input{width:17px;height:17px;margin:2px 2px 0 0;accent-color:#0d8078}.pool-check span{display:flex;flex-direction:column;gap:3px}.pool-check small{font-weight:500;color:#5f718a;line-height:1.3}.pool-notes{margin-top:2px}.pool-notes textarea{resize:vertical;min-height:78px}.pool-history-table{width:100%;border-collapse:collapse;table-layout:fixed}.pool-history-table th{background:#102246;color:#fff;text-align:left;padding:11px 10px;font-size:11px;text-transform:uppercase;letter-spacing:.03em}.pool-history-table td{padding:10px;border-bottom:1px solid #e0e7f0;vertical-align:top;font-size:13px;color:#243a5c}.pool-history-table th:nth-child(1){width:10%}.pool-history-table th:nth-child(2){width:16%}.pool-history-table th:nth-child(3){width:24%}.pool-history-table th:nth-child(4){width:12%}.pool-history-table th:nth-child(5){width:23%}.pool-history-table th:nth-child(6){width:11%}.pool-history-table th:nth-child(7){width:12%}.pool-date{font-weight:800;white-space:nowrap}.pool-metrics{white-space:nowrap;font-variant-numeric:tabular-nums}.pool-metrics small{color:#657896}.pool-observation{line-height:1.35}.pool-action-tag{display:inline-block;margin:0 5px 4px 0;padding:4px 7px;border-radius:4px;background:#dff4ee;color:#08745f;font-size:11px;font-weight:800}.pool-row-actions{display:flex;gap:6px;white-space:nowrap}.pool-row-actions form{margin:0}.small-action{display:inline-flex;align-items:center;min-height:30px;padding:5px 8px;border:1px solid #a9d6d3;border-radius:5px;background:#effbf9;color:#08766f;font:inherit;font-size:12px;font-weight:750;text-decoration:none;cursor:pointer}.danger-action{border-color:#f1b9bf;background:#fff4f5;color:#c13347}.empty-row{text-align:center;padding:28px!important;color:#657896!important}@media(max-width:940px){.pool-status-grid{grid-template-columns:1fr}.pool-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pool-history-wrap{overflow-x:auto}.pool-history-table{min-width:900px}}@media(max-width:560px){.pool-form-grid,.pool-task-row{grid-template-columns:1fr}.pool-status-card{min-height:auto}.pool-page-head h1{font-size:26px}}
.pool-reminder-dialog{position:fixed;inset:0;margin:auto;width:min(440px,calc(100vw - 32px));border:0;border-radius:10px;padding:0;background:#fff;box-shadow:0 24px 70px rgba(8,26,52,.28);z-index:10050}.pool-reminder-dialog::backdrop{background:rgba(10,27,48,.46)}.pool-reminder-dialog>div{padding:25px;border-top:5px solid #d44848}.pool-reminder-dialog h2{margin:7px 0 8px;color:#102246;font-size:23px}.pool-reminder-dialog p{margin:0 0 18px;line-height:1.5;color:#526985}.pool-reminder-close{width:100%;background:#157c76}.pool-task-row{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:940px){.pool-task-row{grid-template-columns:1fr}}


/* Activités & services : même ligne compacte que les chambres. */
@media (min-width: 761px) {
  .hotel-supplement-lines-wrap { overflow: visible !important; }
  .hotel-supplement-lines-table { display:table !important; width:100% !important; min-width:0 !important; table-layout:fixed !important; }
  .hotel-supplement-lines-table thead { display:table-header-group !important; }
  .hotel-supplement-lines-table tbody { display:table-row-group !important; }
  .hotel-supplement-lines-table .reservation-supplement-line { display:table-row !important; background:#fff; border:0; }
  .hotel-supplement-lines-table .reservation-supplement-line td { display:table-cell !important; min-width:0!important; padding:5px 4px!important; vertical-align:middle; }
  .hotel-supplement-lines-table .reservation-supplement-line td::before { content:none!important; }
  .hotel-supplement-lines-table th { padding:7px 4px!important; font-size:10px; white-space:nowrap; }
  .hotel-supplement-lines-table th:nth-child(1),.hotel-supplement-lines-table td:nth-child(1){width:22%!important;min-width:0!important}
  .hotel-supplement-lines-table th:nth-child(2),.hotel-supplement-lines-table td:nth-child(2),.hotel-supplement-lines-table th:nth-child(3),.hotel-supplement-lines-table td:nth-child(3){width:11%!important;min-width:0!important}
  .hotel-supplement-lines-table th:nth-child(4),.hotel-supplement-lines-table td:nth-child(4){width:7%!important;min-width:0!important}
  .hotel-supplement-lines-table th:nth-child(5),.hotel-supplement-lines-table td:nth-child(5){width:9%!important;min-width:0!important}
  .hotel-supplement-lines-table th:nth-child(6),.hotel-supplement-lines-table td:nth-child(6){width:9%!important;min-width:0!important;text-align:center}
  .hotel-supplement-lines-table th:nth-child(7),.hotel-supplement-lines-table td:nth-child(7){width:8%!important;min-width:0!important}
  .hotel-supplement-lines-table th:nth-child(8),.hotel-supplement-lines-table td:nth-child(8){width:11%!important;min-width:0!important}
  .hotel-supplement-lines-table th:nth-child(9),.hotel-supplement-lines-table td:nth-child(9){width:10%!important;min-width:0!important}
  .hotel-supplement-lines-table th:nth-child(10),.hotel-supplement-lines-table td:nth-child(10){width:3%!important;min-width:0!important}
  .hotel-supplement-lines-table input,.hotel-supplement-lines-table select{width:100%;min-width:0!important;height:33px;padding:5px 6px;font-size:12px}
  .hotel-supplement-lines-table td:nth-child(6) input{font-weight:800;text-align:center;font-variant-numeric:tabular-nums}
  .hotel-supplement-lines-table td:nth-child(8) input,.hotel-supplement-lines-table .service-line-total{font-variant-numeric:tabular-nums;white-space:nowrap}
  .hotel-supplement-lines-table .line-remove,.hotel-supplement-lines-table [data-supplement-line-remove]{min-width:54px;height:30px;padding:0 7px;font-size:11px;white-space:nowrap}
}

.pax-field-hint{display:block;margin-top:5px;color:#62738b;font-size:10px;font-weight:600;line-height:1.25}.stay-grid label:has(#reservation-total-pax){min-width:0}.stay-grid #reservation-total-pax{font-weight:850;text-align:center;font-variant-numeric:tabular-nums}.stay-grid #reservation-total-pax:not([readonly]){border-color:#0d8078;background:#f3fbf9;box-shadow:0 0 0 3px rgba(13,128,120,.08)}


/* Facture regroupée */
.invoice-consolidation{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 0 14px;padding:13px 16px;border:1px solid #bbded8;background:#effaf8;color:#15514f}.invoice-consolidation>div{display:grid;gap:3px}.invoice-consolidation strong{font-size:15px}.invoice-consolidation span{font-size:12px;color:#53716f}.invoice-consolidation-document{width:min(210mm,100%);min-height:260mm;margin:18px auto;padding:13mm;border:1px solid #dbe3ed;background:#fff;box-sizing:border-box;color:#152341}.consolidation-banner{display:grid;grid-template-columns:108px 1fr auto;align-items:center;gap:18px;padding:12px 16px;background:#111b48;color:#fff;border-bottom:5px solid #ffdb00}.consolidation-banner img{width:92px;max-height:52px;object-fit:contain;background:transparent;border-radius:0;padding:0}.consolidation-banner h1{margin:0;font-size:25px;letter-spacing:0}.consolidation-banner p{margin:4px 0 0;font-size:12px}.consolidation-banner>strong{font-size:13px;white-space:nowrap}.consolidation-party-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.consolidation-party-grid>div{min-height:105px;padding:13px 15px;border:1px solid #d4dfeb;border-top:4px solid #16255a}.consolidation-party-grid>div:last-child{border-top-color:#f0c900}.consolidation-party-grid span,.consolidation-title-row span{display:block;color:#5c6f8b;font-size:10px;font-weight:850;letter-spacing:.04em}.consolidation-party-grid strong{display:block;margin:4px 0 6px;font-size:16px}.consolidation-party-grid p{margin:0;color:#536885;font-size:12px;line-height:1.45}.consolidation-title-row{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:10px 0}.consolidation-title-row strong{font-size:15px}.consolidation-title-row p{margin:0;color:#64748b;font-size:11px}.consolidation-table{width:100%;border-collapse:collapse}.consolidation-table th{padding:9px 8px;background:#16255a;color:#fff;font-size:10px;text-transform:uppercase;text-align:left}.consolidation-table td{padding:9px 8px;border-bottom:1px solid #dce4ee;font-size:12px}.consolidation-table .right{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.consolidation-totals{width:min(410px,100%);margin:18px 0 0 auto;border:1px solid #cdd9e7}.consolidation-totals>div{display:flex;justify-content:space-between;gap:14px;padding:7px 10px;border-bottom:1px solid #e0e7ef;font-size:12px}.consolidation-totals>div:last-child{border-bottom:0}.consolidation-totals .grand{background:#fff5bb;font-size:15px;font-weight:850}.consolidation-totals .due{background:#f3f8fb;font-size:14px;font-weight:850}.consolidation-note{margin-top:22px;color:#60718b;font-size:11px}.consolidation-actions{display:flex;justify-content:center;margin:0 0 22px}@media(max-width:700px){.invoice-consolidation,.consolidation-title-row{align-items:stretch;flex-direction:column}.consolidation-party-grid{grid-template-columns:1fr}.consolidation-banner{grid-template-columns:72px 1fr}.consolidation-banner>strong{grid-column:1/-1}.consolidation-banner h1{font-size:20px}.invoice-consolidation-document{padding:14px}.consolidation-table{font-size:11px}.consolidation-table th,.consolidation-table td{padding:7px 5px}}@media print{.invoice-consolidation-document{margin:0;border:0;box-shadow:none;width:210mm;min-height:297mm}.invoice-consolidation-document .consolidation-banner{print-color-adjust:exact;-webkit-print-color-adjust:exact}.consolidation-table th,.consolidation-totals .grand,.consolidation-totals .due{print-color-adjust:exact;-webkit-print-color-adjust:exact}}


/* Génération d'une facture groupée depuis plusieurs références */
.invoice-group-generator{display:grid;grid-template-columns:minmax(250px,1fr) minmax(420px,1.25fr);align-items:end;gap:22px;margin-bottom:18px;border-left:4px solid #0d8379}.invoice-group-generator-copy{display:grid;gap:3px}.invoice-group-generator-copy span{color:#0d8379;font-size:12px;font-weight:800;text-transform:uppercase}.invoice-group-generator-copy strong{color:var(--ink);font-size:18px}.invoice-group-generator-copy p{margin:0;color:var(--muted);font-size:13px}.invoice-group-ref-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;align-items:end}.invoice-group-ref-form label{grid-column:1/-1;color:#526681;font-size:12px;font-weight:800}.invoice-group-ref-form input{min-width:0;height:42px}.invoice-group-ref-form > button{height:42px;white-space:nowrap}@media(max-width:860px){.invoice-group-generator{grid-template-columns:1fr}.invoice-group-ref-form{max-width:none}}@media(max-width:540px){.invoice-group-ref-form{grid-template-columns:1fr}.invoice-group-ref-form button{width:100%}}


/* Contraste de l'échéance : libellé sur bleu, date sur repère jaune */
.invoice-identity-line > span:last-child {
    color: #ffffff !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16) !important;
}
.invoice-identity-line > span:last-child strong {
    display: inline-block;
    margin-left: 3px;
    padding: 2px 6px;
    color: #111b48 !important;
    background: var(--invoice-yellow);
    text-shadow: none !important;
}


/* Logo facture agrandi */
.invoice-header-row { grid-template-columns: 174px minmax(130px, 1fr) auto; min-height: 100px; }
.invoice-logo { width: 158px; height: 54px; }
.consolidation-banner { grid-template-columns: 120px 1fr auto; }
.consolidation-banner img { width: 106px; max-height: 60px; }
@media print {
    .invoice-header-row { grid-template-columns: 160px minmax(220px, 1fr) 135px !important; min-height: 90px; }
    .invoice-logo { width: 148px; height: 50px; }
}
@media (max-width: 860px) {
    .invoice-header-row { grid-template-columns: 1fr; }
}


/* Commandes de signature facture */
.invoice-format-actions .invoice-authentication-toggle{border-color:#0d8379;color:#076c64;background:#effaf8}.invoice-format-actions .invoice-authentication-toggle:hover,.invoice-format-actions .invoice-authentication-toggle.is-active{border-color:#0b746b;color:#fff;background:#0d8379}.invoice-format-actions .invoice-authentication-images-toggle{border-color:#bac8dc;color:#334b6d;background:#f8fbff}.invoice-format-actions .invoice-authentication-images-toggle:hover,.invoice-format-actions .invoice-authentication-images-toggle.is-active{border-color:#7086a5;color:#182f52;background:#e8f0fa}

/* Commission Sound's Travel : tableau compact à l'écran et à l'impression */
.sound-commission-table { min-width: 960px; table-layout: fixed; }
.sound-commission-table th, .sound-commission-table td { padding: 7px 5px; overflow: hidden; text-overflow: ellipsis; }
.sound-commission-table th:first-child, .sound-commission-table td:first-child { width: 132px; }
.sound-commission-table th:nth-last-child(6), .sound-commission-table td:nth-last-child(6) { width: 62px; }
.sound-commission-table th:nth-last-child(5), .sound-commission-table td:nth-last-child(5),
.sound-commission-table th:nth-last-child(3), .sound-commission-table td:nth-last-child(3) { width: 92px; }
.sound-commission-table th:nth-last-child(4), .sound-commission-table td:nth-last-child(4),
.sound-commission-table th:nth-last-child(2), .sound-commission-table td:nth-last-child(2),
.sound-commission-table th:last-child, .sound-commission-table td:last-child { width: 108px; }

@media print {
    @page { size: A4 landscape; margin: 8mm; }
    .sound-commission-table { min-width: 0; table-layout: fixed; }
    .sound-commission-table th, .sound-commission-table td { padding: 4px 3px; font-size: 8px; }
    .sound-commission-table th:first-child, .sound-commission-table td:first-child { width: 112px; }
    .sound-commission-table th:nth-last-child(6), .sound-commission-table td:nth-last-child(6) { width: 48px; }
    .sound-commission-table th:nth-last-child(5), .sound-commission-table td:nth-last-child(5),
    .sound-commission-table th:nth-last-child(3), .sound-commission-table td:nth-last-child(3) { width: 74px; }
    .sound-commission-table th:nth-last-child(4), .sound-commission-table td:nth-last-child(4),
    .sound-commission-table th:nth-last-child(2), .sound-commission-table td:nth-last-child(2),
    .sound-commission-table th:last-child, .sound-commission-table td:last-child { width: 86px; }
}
/* Caisse et relèves */
.cash-session-banner, .cash-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.cash-session-banner { grid-template-columns:2fr 1fr auto; padding:16px 18px; border:1px solid #bfe8e1; border-left:4px solid #0f8076; background:#f3fbfa; }
.cash-session-banner span, .cash-kpis span { display:block; color:#60708a; font-size:11px; font-weight:800; text-transform:uppercase; }
.cash-session-banner strong, .cash-kpis strong { display:block; margin-top:5px; color:#101846; font-size:20px; }
.cash-session-banner small, .cash-kpis small { display:block; margin-top:4px; color:#667085; font-size:11px; }
.cash-session-action { display:flex; align-items:center; justify-content:flex-end; }
.cash-session-action button { min-height:40px; white-space:nowrap; }
.cash-kpis article { padding:15px 17px; border:1px solid #dce4ee; border-radius:8px; background:#fff; }
.cash-kpis article.alert { border-color:#f3bd57; background:#fff9e9; }
.cash-movement-form { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; align-items:end; }

.cash-movement-title { align-items:center; }
.cash-movement-batch-form { display:grid; gap:8px; }
.cash-movement-head, .cash-movement-row { display:grid; grid-template-columns:108px 112px minmax(130px,1.25fr) minmax(112px,1fr) minmax(92px,.8fr) 84px 84px 94px minmax(110px,1fr) 64px; gap:7px; min-width:0; }
.cash-movement-head { padding:0 4px; color:#52627a; font-size:10px; font-weight:850; text-transform:uppercase; }
.cash-movement-row { align-items:center; padding:8px; border:1px solid #dce5ee; border-radius:7px; background:#fbfdff; }
.cash-movement-row:focus-within { border-color:#0f8076; box-shadow:0 0 0 3px rgba(15,128,118,.08); }
.cash-movement-row input, .cash-movement-row select { min-width:0; height:37px; margin:0; }
.cash-row-actions { display:flex; align-items:center; justify-content:flex-end; gap:5px; }
.cash-row-actions label { display:inline-flex; align-items:center; gap:3px; color:#52627a; font-size:11px; font-weight:750; white-space:nowrap; }
.cash-row-actions .icon-button { width:34px; min-width:34px; height:34px; padding:0; color:#b42318; border-color:#f2c3c0; background:#fff5f4; }
.cash-batch-actions { display:flex; justify-content:space-between; align-items:center; gap:10px; padding-top:3px; }
.cash-batch-actions button { min-height:39px; }

.cash-totals-footer th, .cash-totals-footer td { padding:9px 8px !important; font-weight:900; white-space:nowrap; }
.cash-totals-footer .cash-total-fund { background:#eef4ff; color:#1e4d8f; }
.cash-totals-footer .cash-total-entry { background:#e8f8ee; color:#087443; }
.cash-totals-footer .cash-total-exit { background:#fff2e1; color:#a54d07; }
.cash-totals-footer .cash-total-final { background:#e8f0fb; color:#1e3a8a; }
.cash-statement-summary { width:100%; margin:0; border-collapse:collapse; table-layout:fixed; border:1px solid #d8e0eb; border-top:0; }
.cash-statement-summary td { width:25%; padding:10px 12px; border:0; border-left:1px solid #d8e0eb; vertical-align:middle; font-size:11px; font-weight:900; text-transform:uppercase; }
.cash-statement-summary td:first-child { border-left:0; }
.cash-statement-summary span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cash-statement-summary strong { display:block; margin-top:4px; white-space:nowrap; font-size:15px; font-variant-numeric:tabular-nums; }
.cash-statement-summary .cash-total-fund { background:#eef4ff; color:#1e4d8f; }
.cash-statement-summary .cash-total-entry { background:#e8f8ee; color:#087443; }
.cash-statement-summary .cash-total-exit { background:#fff2e1; color:#a54d07; }
.cash-statement-summary .cash-total-final { background:#e8f0fb; color:#1e3a8a; }

@media (max-width:1180px) { .cash-movement-head { display:none; } .cash-movement-row { grid-template-columns:repeat(2,minmax(0,1fr)); } .cash-row-actions { justify-content:flex-start; } }
@media (max-width:640px) { .cash-movement-row { grid-template-columns:1fr; } .cash-batch-actions { align-items:stretch; flex-direction:column; } .cash-batch-actions button { width:100%; } }

.cash-movement-form label { min-width:0; }
.cash-movement-form .cash-note { grid-column:span 2; }
.cash-movement-form .cash-charge-check { display:flex; min-height:38px; align-items:center; gap:7px; font-weight:700; }
.cash-movement-form button { min-height:38px; }
.cash-table td small { display:block; margin-top:3px; color:#667085; font-size:10px; }
.cash-nature { display:inline-flex; padding:4px 7px; border-radius:999px; background:#eef2f7; color:#46536b; font-size:10px; font-weight:800; white-space:nowrap; }
.cash-nature.entree, .cash-nature.retour_monnaie { background:#e8f8ee; color:#087443; }
.cash-nature.achat, .cash-nature.avance_salaire, .cash-nature.sortie { background:#fff2e1; color:#a54d07; }
.cash-pending { color:#b54708; font-weight:900; }
.cash-close-panel { border-top:3px solid #d04b47; }
@media (max-width:980px) { .cash-movement-form { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) { .cash-session-banner, .cash-kpis, .cash-movement-form { grid-template-columns:1fr; } .cash-movement-form .cash-note { grid-column:span 1; } .cash-statement-summary td { padding:8px 6px; font-size:9px; } .cash-statement-summary strong { font-size:11px; } }

.cash-print-heading { align-items:center; }
.cash-document-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.cash-document-actions .ghost-button { min-height:38px; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
@media print {
    @page cash-movement-page { size:A4 landscape; margin:10mm; }
    body.page-caisse { page:cash-movement-page; width:297mm !important; min-height:210mm !important; margin:0 !important; padding:0 !important; background:#fff !important; }
    body.page-caisse:not(.print-landscape) .content > #cash-movement-printable { display:block !important; }
    body.page-caisse * { visibility:hidden !important; }
    body.page-caisse #cash-movement-printable,
    body.page-caisse #cash-movement-printable * { visibility:visible !important; }
    body.page-caisse #cash-movement-printable { position:absolute; inset:0 auto auto 0; width:100%; margin:0; border:0; box-shadow:none; background:#fff; }
    body.page-caisse #cash-movement-printable .no-print { display:none !important; }
    body.page-caisse #cash-movement-printable .table-wrap { overflow:visible !important; }
    body.page-caisse #cash-movement-printable .erp-data-table { width:100% !important; min-width:0 !important; table-layout:fixed; font-size:9px; }
    body.page-caisse #cash-movement-printable .erp-data-table th,
    body.page-caisse #cash-movement-printable .erp-data-table td { padding:5px 4px; }
    body.page-caisse #cash-movement-printable .cash-nature { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
    body.page-caisse #cash-movement-printable .cash-nature.entree,
    body.page-caisse #cash-movement-printable .cash-nature.retour_monnaie { background:#e8f8ee !important; color:#087443 !important; border:1px solid #b9e6c9; }
    body.page-caisse #cash-movement-printable .cash-nature.achat,
    body.page-caisse #cash-movement-printable .cash-nature.avance_salaire,
    body.page-caisse #cash-movement-printable .cash-nature.sortie { background:#fff2e1 !important; color:#a54d07 !important; border:1px solid #f3c890; }
    body.page-caisse #cash-movement-printable .cash-totals-footer .cash-total-fund { background:#eef4ff !important; color:#1e4d8f !important; }
    body.page-caisse #cash-movement-printable .cash-totals-footer .cash-total-entry { background:#e8f8ee !important; color:#087443 !important; }
    body.page-caisse #cash-movement-printable .cash-totals-footer .cash-total-exit { background:#fff2e1 !important; color:#a54d07 !important; }
    body.page-caisse #cash-movement-printable .cash-totals-footer .cash-total-final { background:#e8f0fb !important; color:#1e3a8a !important; }
}

/* Application shell: professional collapsible left navigation. */
:root {
    --app-sidebar-width: 258px;
    --app-header-height: 72px;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 220;
    display: flex;
    flex-direction: column;
    width: var(--app-sidebar-width);
    min-width: var(--app-sidebar-width);
    background: #ffffff;
    border-right: 1px solid #d9e1eb;
    box-shadow: 10px 0 30px rgba(24, 39, 65, 0.06);
    transform: translateX(0);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.sidebar-brand-row {
    display: flex;
    flex: 0 0 var(--app-header-height);
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 17px;
    border-bottom: 1px solid #e5eaf1;
}

.app-sidebar .sidebar-brand {
    display: inline-flex;
    min-width: 0;
    padding: 0;
}

.app-sidebar .brand-logo {
    width: 174px;
    height: 50px;
    object-fit: contain;
    object-position: left center;
}

.sidebar-close {
    display: none;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 1px solid #d7dfea;
    border-radius: 6px;
    background: #ffffff;
    color: #475467;
    font-size: 23px;
    line-height: 1;
}

.sidebar-close:hover,
.sidebar-close:focus-visible {
    border-color: #8cc7bf;
    background: #edf9f7;
    color: #0f766e;
}

.header-fullscreen-toggle {
    display: inline-grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid #cfd8e5;
    border-radius: 7px;
    background: #ffffff;
    color: #344054;
    cursor: pointer;
}

.header-fullscreen-toggle span {
    font-size: 21px;
    line-height: 1;
}

.header-fullscreen-toggle:hover,
.header-fullscreen-toggle:focus-visible,
.header-fullscreen-toggle.is-active {
    border-color: #6fb7ae;
    background: #edf9f7;
    color: #0f766e;
}

.header-install-app {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #0f8076;
    border-radius: 7px;
    background: #0f8076;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.header-install-app:hover,
.header-install-app:focus-visible {
    background: #0a665f;
    border-color: #0a665f;
}

@media (display-mode: standalone) {
    body {
        min-height: 100dvh;
    }

    .app-header.topbar,
    .app-header.topbar.is-scrolled {
        padding-top: env(safe-area-inset-top) !important;
    }
}

.sidebar-navigation {
    display: grid;
    align-content: start;
    gap: 5px;
    min-height: 0;
    padding: 15px 11px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c7d1df transparent;
}

.sidebar-primary-link,
.sidebar-group-toggle {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 43px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #344054;
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.sidebar-primary-link::before,
.sidebar-group-toggle::before {
    width: 3px;
    height: 18px;
    margin-right: 10px;
    border-radius: 2px;
    background: #c8d1dd;
    content: "";
    transition: height 150ms ease, background 150ms ease;
}

.sidebar-primary-link:hover,
.sidebar-group-toggle:hover,
.sidebar-group-toggle:focus-visible {
    border-color: #d7e8e5;
    background: #f3faf8;
    color: #0e6d65;
}

.sidebar-primary-link.active,
.sidebar-group.is-active > .sidebar-group-toggle {
    border-color: #c7e6e0;
    background: #eaf7f4;
    color: #0d665f;
}

.sidebar-primary-link.active::before,
.sidebar-group.is-active > .sidebar-group-toggle::before {
    height: 24px;
    background: #0f8076;
}

.sidebar-group {
    display: grid;
    min-width: 0;
}

.sidebar-group-toggle {
    cursor: pointer;
}

.sidebar-group-toggle > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-group-toggle > i {
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.65;
    transform: rotate(45deg) translate(-2px, 2px);
    transition: transform 160ms ease;
}

.sidebar-group.is-open > .sidebar-group-toggle > i {
    transform: rotate(225deg) translate(-1px, 1px);
}

.sidebar-subnav {
    display: grid;
    max-height: 0;
    margin: 0 7px 0 19px;
    padding: 0 0 0 13px;
    overflow: hidden;
    border-left: 1px solid transparent;
    opacity: 0;
    transition: max-height 220ms ease, margin 180ms ease, padding 180ms ease, opacity 150ms ease, border-color 150ms ease;
}

.sidebar-group.is-open > .sidebar-subnav {
    max-height: 620px;
    margin-top: 4px;
    margin-bottom: 6px;
    padding-top: 3px;
    padding-bottom: 3px;
    border-left-color: #d8e2ec;
    opacity: 1;
}

.sidebar-subnav a {
    position: relative;
    display: block;
    min-width: 0;
    padding: 8px 9px 8px 14px;
    border-radius: 5px;
    color: #58667a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 140ms ease, background 140ms ease;
}

.sidebar-subnav a::before {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #aab5c4;
    content: "";
    transform: translateY(-50%);
}

.sidebar-subnav a:hover,
.sidebar-subnav a:focus-visible {
    background: #f1f5f9;
    color: #25354d;
}

.sidebar-subnav a.active {
    background: #10213f;
    color: #ffffff;
}

.sidebar-subnav a.active::before {
    background: #ffd51f;
}

.sidebar-scrim {
    display: none;
}

.app-header.topbar,
.app-header.topbar.is-scrolled {
    margin-left: var(--app-sidebar-width);
    padding: 0;
    transition: margin-left 200ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.app-header .topbar-main,
.app-header.is-scrolled .topbar-main {
    display: flex !important;
    min-height: var(--app-header-height);
    padding: 10px 22px !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 14px;
}

.app-header .primary-nav,
.app-header .secondary-nav,
.header-account > #header-menu-toggle {
    display: none !important;
}

.app-header .brand-link {
    display: none;
    min-width: 0;
}

.sidebar-menu-toggle {
    display: inline-grid !important;
    flex: 0 0 40px;
}

.app-header .global-search {
    flex: 0 1 330px;
    width: min(330px, 38vw);
    min-width: 210px;
}

.app-header .header-account {
    margin-left: auto;
}

.content {
    margin-left: var(--app-sidebar-width);
    transition: margin-left 200ms ease;
}

body.sidebar-collapsed .app-sidebar {
    transform: translateX(-102%);
    box-shadow: none;
}

body.sidebar-collapsed .app-header.topbar,
body.sidebar-collapsed .content {
    margin-left: 0;
}

body.sidebar-collapsed .app-header .brand-link {
    display: inline-flex;
}

body.sidebar-collapsed .app-header .brand-logo {
    width: 116px;
    height: 42px;
}

/* Persistent workspace navigation for quick multi-page work. */
.workspace-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin-left: var(--app-sidebar-width);
    padding: 6px 18px;
    overflow: hidden;
    background: #edf2f7;
    border-bottom: 1px solid #d8e1eb;
    transition: margin-left 200ms ease;
}

body.sidebar-collapsed .workspace-tabs { margin-left: 0; }

.workspace-back,
.workspace-tab-close {
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #52657b;
    cursor: pointer;
}

.workspace-back {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 1px solid #cad6e2;
    border-radius: 6px;
    background: #ffffff;
    font-size: 25px;
    line-height: 1;
}

.workspace-back:hover { background: #dff4f1; color: #0f766e; }
.workspace-tab-list { display: flex; min-width: 0; gap: 5px; overflow-x: auto; scrollbar-width: thin; }
.workspace-tab { display: flex; flex: 0 0 auto; align-items: center; max-width: 220px; border: 1px solid #d5dee8; border-radius: 6px; background: #ffffff; }
.workspace-tab.is-active { border-color: #0f766e; background: #e9f8f5; box-shadow: inset 0 -2px 0 #0f766e; }
.workspace-tab a { min-width: 0; padding: 7px 8px 7px 10px; overflow: hidden; color: #334155; font-size: 12px; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.workspace-tab-close { flex: 0 0 27px; width: 27px; height: 27px; border-radius: 4px; font-size: 19px; line-height: 1; }
.workspace-tab-close:hover { background: #fee2e2; color: #b42318; }

/* Wide operational workspaces must use the screen, not a narrow reading column. */
body.page-planning_chambres .content { padding-inline: 14px; }
body.page-planning_chambres .planning-panel { width: 100%; }
body.page-planning_chambres .planning-grid-wrap { min-height: calc(100vh - 220px); max-height: calc(100vh - 170px); }
body.page-commande_resto .content { padding-inline: clamp(12px, 2vw, 30px); }
body.page-commande_resto .server-order-layout-single { max-width: none; }
body.page-commande_resto .resto-pos-workspace { grid-template-columns: minmax(0, 1fr) minmax(430px, 36vw); }
body.page-commande_resto .resto-cart-panel { height: calc(100vh - 175px); max-height: none; }

/* Invoice selection and grouped billing. */
.invoice-group-ref-form { align-items: start; }
.invoice-group-picker { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: min(620px, 100%); padding: 6px; border: 1px solid #b8c8d8; border-radius: 7px; background: #ffffff; }
.invoice-group-picker:focus-within { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .13); }
.invoice-group-picker > input { flex: 1 1 220px; min-width: 180px; border: 0; outline: 0; box-shadow: none; }
.invoice-group-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.invoice-group-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 4px 7px 4px 9px; border: 1px solid #9ed6cc; border-radius: 5px; background: #e8f7f4; color: #135f56; font-size: 11px; }
.invoice-group-chip span { font-size: 17px; line-height: 1; }
.invoice-group-picker .combo-results { top: calc(100% + 5px); left: 0; right: 0; z-index: 35; }

@media (max-width: 1024px) {
    .workspace-tabs, body.sidebar-collapsed .workspace-tabs { margin-left: 0; }
    body.page-commande_resto .resto-pos-workspace { grid-template-columns: minmax(0, 1fr) minmax(350px, 40vw); }
}

@media (max-width: 760px) {
    .workspace-tabs { padding-inline: 10px; }
    .workspace-tab { max-width: 160px; }
    body.page-planning_chambres .content { padding-inline: 8px; }
    body.page-planning_chambres .planning-grid-wrap { min-height: calc(100vh - 195px); }
    body.page-commande_resto .resto-pos-workspace { grid-template-columns: 1fr; }
    body.page-commande_resto .resto-cart-panel { height: auto; }
    .invoice-group-picker { min-width: 100%; }
}

@media (max-width: 1024px) {
    .app-sidebar {
        width: min(292px, 86vw);
        min-width: min(292px, 86vw);
        box-shadow: 18px 0 48px rgba(20, 34, 58, 0.2);
        transform: translateX(-102%);
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-close {
        display: inline-grid;
        place-items: center;
    }

    .sidebar-scrim {
        position: fixed;
        inset: 0;
        z-index: 210;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: rgba(15, 29, 49, 0.38);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    body.sidebar-open .sidebar-scrim {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .app-header.topbar,
    .app-header.topbar.is-scrolled,
    .content,
    body.sidebar-collapsed .app-header.topbar,
    body.sidebar-collapsed .content {
        margin-left: 0;
    }

    .app-header .brand-link,
    body.sidebar-collapsed .app-header .brand-link {
        display: inline-flex;
    }

    .app-header .brand-logo,
    .app-header.is-scrolled .brand-logo,
    body.sidebar-collapsed .app-header .brand-logo {
        width: 112px;
        height: 40px;
    }
}

@media (max-width: 720px) {
    .app-header .topbar-main,
    .app-header.is-scrolled .topbar-main {
        flex-wrap: wrap;
        gap: 8px 10px;
        padding: 8px 12px !important;
    }

    .sidebar-menu-toggle {
        order: 1;
    }

    .app-header .brand-link {
        order: 2;
    }

    .app-header .header-account {
        order: 3;
    }

    .app-header .global-search {
        order: 4;
        flex: 1 0 100%;
        width: 100%;
        min-width: 0;
    }

    .global-search-results {
        width: 100%;
    }

    .content,
    .app-header + .content {
        padding: 18px 14px;
    }
}

@media (max-width: 470px) {
    .app-header .brand-logo,
    .app-header.is-scrolled .brand-logo,
    body.sidebar-collapsed .app-header .brand-logo {
        width: 96px;
        height: 36px;
    }

    .header-account-name {
        display: none;
    }

    .header-account {
        padding-left: 8px;
    }
}

@media print {
    .app-sidebar,
    .sidebar-scrim {
        display: none !important;
    }

    .app-header.topbar,
    .content,
    body.sidebar-collapsed .app-header.topbar,
    body.sidebar-collapsed .content {
        margin-left: 0 !important;
    }
}

.cash-correction-note { margin:0 0 10px; padding:9px 11px; border:1px solid #f3c890; border-left:3px solid #d97706; border-radius:6px; background:#fff9ed; color:#92400e; font-size:12px; font-weight:700; }

.cash-date-edit { display:flex; align-items:end; gap:10px; flex-wrap:wrap; margin:0 0 12px; padding:11px; border:1px solid #f3c890; border-radius:7px; background:#fff9ed; color:#713f12; }
.cash-date-edit strong { flex:1 1 220px; padding-bottom:9px; }
.cash-date-edit label { min-width:185px; }
.cash-date-edit button, .cash-date-edit .ghost-button { min-height:38px; }
.cash-edit-date-link { white-space:nowrap; font-size:11px; }
@media (max-width:640px) { .cash-date-edit { align-items:stretch; flex-direction:column; } .cash-date-edit label { min-width:0; } }

.cash-select-col { width:34px; text-align:center; }
.cash-select-col input { width:16px; height:16px; accent-color:#0f8076; }
.cash-delete-save { min-height:38px; white-space:nowrap; }

.cash-movement-row input::placeholder { color:#8a98ab; opacity:1; transition:opacity 120ms ease; }
.cash-movement-row input:not(:placeholder-shown)::placeholder { opacity:0; }


/* Dashboard - refined operational layout */
.dashboard-shell { gap:20px; }
.dashboard-head { padding:2px 0 4px; border-bottom:1px solid #e7edf3; }
.dashboard-heading-copy { gap:4px; }
.dashboard-heading-copy h1 { font-size:28px; }
.dashboard-heading-copy p { max-width:620px; margin:0; }
.dashboard-unpaid-toggle { min-width:122px; border-color:#dbe5ee; }
.dashboard-hero { gap:14px; }
.dashboard-card { min-height:156px; padding:19px 20px 18px; border-color:#dfe7ef; box-shadow:0 8px 24px rgba(15,23,42,.055); }
.dashboard-card::after { content:""; position:absolute; inset:auto 0 0; height:3px; background:#0f766e; }
.dashboard-card.blue::after { background:#2563eb; }
.dashboard-card.gold::after { background:#c47a12; }
.dashboard-card-topline { position:relative; min-height:36px; padding-right:110px; }
.dashboard-card-icon-wrap { position:absolute; top:-15px; right:-13px; width:125px; height:125px; opacity:.2; filter:saturate(.85); }
.dashboard-card-icon { width:90px; height:90px; }
.dashboard-card strong { position:relative; z-index:1; max-width:calc(100% - 8px); font-size:29px; letter-spacing:0; }
.dashboard-card small { position:relative; z-index:1; }
.dashboard-main-grid { grid-template-columns:minmax(0,1.5fr) minmax(360px,.8fr); gap:16px; }
.dashboard-panel { padding:18px 19px; border-color:#dfe7ef; box-shadow:0 8px 24px rgba(15,23,42,.045); }
.dashboard-panel-title { align-items:center; min-height:46px; margin-bottom:13px; padding-bottom:12px; border-bottom:1px solid #edf1f5; }
.dashboard-panel-title.compact { margin-bottom:10px; }
.dashboard-panel-title h2 { font-size:18px; }
.dashboard-panel-title p { margin:0; }
.dashboard-mini-icon-wrap { width:64px; height:64px; opacity:.9; }
.dashboard-mini-icon { width:46px; height:46px; }
.dashboard-revenue-table, .dashboard-unpaid-table { width:100%; }
.dashboard-revenue-table th, .dashboard-revenue-table td, .dashboard-unpaid-table th, .dashboard-unpaid-table td { padding:10px 9px; }
.dashboard-revenue-table th:first-child, .dashboard-revenue-table td:first-child { padding-left:0; }
.dashboard-revenue-table th:last-child, .dashboard-revenue-table td:last-child { padding-right:0; }
.dashboard-total-row td { background:#f1fbf9; }
.occupancy-panel { border-top:3px solid #0f766e; }
.occupancy-content { gap:14px; }
.occupancy-gauge { margin-top:0; box-shadow:inset 0 0 0 1px rgba(15,118,110,.1), 0 10px 25px rgba(15,118,110,.08); }
.occupancy-gauge > div { box-shadow:0 5px 18px rgba(15,23,42,.07); }
.occupancy-gauge strong { font-size:36px; }
.occupancy-bars { border-color:#dce6ee; background:#f8fafc; }
.occupancy-bar span { background:linear-gradient(180deg,#0f8a7d,#76cfc3); box-shadow:none; }
.occupancy-bar:hover span { background:linear-gradient(180deg,#0b7269,#3eb6a8); }
.stay-panel { border-top:3px solid #2563eb; }
.stay-metrics { gap:10px; }
.stay-metrics div { min-height:94px; padding:13px; background:#f8fafc; }
.stay-metrics strong { font-size:29px; }
.passage-panel { border-top:3px solid #b45309; }
@media (max-width:1180px) {
    .dashboard-main-grid { grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr); }
    .dashboard-card strong { font-size:25px; }
}
@media (max-width:980px) {
    .dashboard-main-grid { grid-template-columns:1fr; }
    .occupancy-panel, .revenue-panel, .stay-panel, .unpaid-panel { grid-column:auto; grid-row:auto; }
    .occupancy-content { grid-template-columns:minmax(190px,.75fr) minmax(280px,1fr); align-items:center; }
}
@media (max-width:700px) {
    .dashboard-hero, .occupancy-content, .stay-metrics { grid-template-columns:1fr; }
    .dashboard-card-icon-wrap { opacity:.14; }
    .dashboard-card strong { font-size:27px; }
    .dashboard-panel { padding:15px; }
}


/* Restaurant POS: tablet-first service workspace */
.server-order-layout-single { max-width:1440px; margin:0 auto; }
.resto-premium-form { gap:14px; padding:16px; background:#f6f8fb; border-color:#d9e2eb; box-shadow:none; }
.resto-form-title { padding:2px 2px 12px; }
.resto-customer-section { padding:12px; border:1px solid #dce5ee; border-radius:8px; background:#fff; }
.resto-pos-workspace { grid-template-columns:minmax(0,1fr) minmax(360px,410px); gap:14px; align-items:stretch; }
.resto-pos-workspace .sam-order-catalog { display:grid; grid-template-rows:auto auto minmax(0,1fr); min-height:620px; padding:14px; background:#fff; }
.resto-pos-workspace .sam-catalog-head { grid-template-columns:minmax(0,1fr) minmax(220px,360px); gap:12px; margin-bottom:12px; }
.resto-pos-workspace .sam-catalog-head h3, .resto-cart-heading h3 { font-size:19px; }
.resto-pos-workspace .sam-category-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; overflow:visible; padding:0 0 12px; border:0; }
.resto-pos-workspace .sam-category-tab { display:flex; min-height:58px; align-items:flex-start; justify-content:flex-end; flex-direction:column; padding:9px 10px; border-color:#e4eaf1; border-radius:7px; background:#f8fafc; color:#334155; font-size:12px; text-align:left; }
.resto-pos-workspace .sam-category-tab:nth-child(6n+1) { background:#f97355; border-color:#f97355; color:#fff; }
.resto-pos-workspace .sam-category-tab:nth-child(6n+2) { background:#ffad46; border-color:#ffad46; color:#fff; }
.resto-pos-workspace .sam-category-tab:nth-child(6n+3) { background:#9d174d; border-color:#9d174d; color:#fff; }
.resto-pos-workspace .sam-category-tab:nth-child(6n+4) { background:#0f9f46; border-color:#0f9f46; color:#fff; }
.resto-pos-workspace .sam-category-tab:nth-child(6n+5) { background:#2587e7; border-color:#2587e7; color:#fff; }
.resto-pos-workspace .sam-category-tab:nth-child(6n+6) { background:#c832a3; border-color:#c832a3; color:#fff; }
.resto-pos-workspace .sam-category-tab.active { outline:3px solid rgba(15,23,42,.16); outline-offset:1px; box-shadow:none; }
.resto-pos-workspace .sam-product-list.resto-product-card-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:9px !important; max-height:none; padding:0 2px 2px 0; }
.resto-pos-workspace .sam-product-row.resto-product-card { grid-template-rows:112px auto auto; padding-bottom:9px !important; }
.resto-pos-workspace .sam-product-row .resto-product-card-media { height:112px !important; }
.resto-pos-workspace .sam-product-row .sam-product-info { padding:8px 8px 3px; }
.resto-pos-workspace .sam-product-row .sam-product-info strong { font-size:13px; }
.resto-pos-workspace .sam-product-row .sam-product-info small { font-size:10px; }
.sam-product-card-foot { padding:4px 8px 0; }
.resto-cart-panel { top:76px; height:calc(100vh - 112px); max-height:760px; grid-template-rows:auto auto auto minmax(0,1fr) auto auto; padding:14px !important; }
.resto-cart-heading { padding-bottom:8px; border-bottom:1px solid #e6edf3; }
.resto-cart-count { width:31px; height:31px; font-size:12px; background:#0f766e; }
.resto-order-mode { padding:3px; }
.resto-order-mode button { min-height:36px; font-size:10px; }
.resto-cart-panel .extra-order-lines-wrap { max-height:none; height:auto; }
.resto-cart-panel .extra-order-lines-table tr { grid-template-columns:96px minmax(90px,1fr) 34px !important; padding:9px 0 !important; }
.resto-cart-product-media { width:42px; height:42px; }
.resto-cart-panel .quantity-stepper { transform:scale(.92); transform-origin:left center; }
.resto-cart-panel .resto-order-summary { padding-top:10px !important; }
.resto-cart-panel .resto-cart-total strong { font-size:24px; }
.resto-cart-actions #order-submit-button { min-height:52px; background:#0f766e; }
@media (max-width:1120px) {
    .server-order-layout-single { grid-template-columns:minmax(0,1fr); }
    .resto-pos-workspace { grid-template-columns:minmax(0,1fr) minmax(318px,370px); }
    .resto-pos-workspace .sam-product-list.resto-product-card-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
}
@media (max-width:840px) {
    .resto-premium-form { padding:12px; }
    .resto-pos-workspace { grid-template-columns:1fr; }
    .resto-pos-workspace .sam-order-catalog { min-height:0; }
    .resto-pos-workspace .sam-product-list.resto-product-card-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; max-height:440px; overflow:auto; }
    .resto-cart-panel { position:static; height:auto; max-height:none; }
    .resto-cart-panel .extra-order-lines-wrap { max-height:360px; }
}
@media (max-width:600px) {
    .resto-order-head { display:none; }
    .resto-premium-form { padding:8px; gap:10px; border:0; background:#f4f7fa; }
    .resto-form-title { display:none; }
    .resto-customer-section { padding:10px; }
    .resto-section-heading { gap:8px; }
    .resto-section-heading h3 { font-size:15px; }
    .resto-section-heading p { display:none; }
    .customer-mode-switch { width:100%; }
    .customer-mode-button { flex:1; min-height:38px; font-size:11px; }
    .resto-pos-workspace .sam-order-catalog { padding:10px; }
    .resto-pos-workspace .sam-catalog-head { grid-template-columns:1fr; }
    .resto-pos-workspace .sam-catalog-head h3 { display:none; }
    .sam-catalog-search { min-height:42px; }
    .resto-pos-workspace .sam-category-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
    .resto-pos-workspace .sam-category-tab { min-height:48px; padding:7px 8px; font-size:11px; }
    .resto-pos-workspace .sam-product-list.resto-product-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; max-height:420px; }
    .resto-pos-workspace .sam-product-row.resto-product-card { grid-template-rows:104px auto auto; }
    .resto-pos-workspace .sam-product-row .resto-product-card-media { height:104px !important; }
    .resto-cart-panel { padding:12px !important; }
    .resto-pos-service-meta { grid-template-columns:1fr 1fr !important; }
    .resto-cart-actions { position:sticky; bottom:0; padding:8px 0 0; background:#fff; }
}


/* Kitchen display: live preparation board */
.kitchen-screen {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2px 0 28px;
}
.kitchen-screen-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    background: #10213f;
    border: 1px solid #172e56;
    border-radius: 8px;
    color: #fff;
}
.kitchen-eyebrow { margin: 0 0 5px; color: #f7cf30; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.kitchen-screen-head h1 { margin: 0; color: #fff; font-size: 28px; line-height: 1.12; }
.kitchen-screen-head p:not(.kitchen-eyebrow) { margin: 7px 0 0; color: #d5e1f2; font-size: 14px; }
.kitchen-screen-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.kitchen-live-indicator { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; color: #d9f7ee; font-weight: 800; font-size: 13px; white-space: nowrap; }
.kitchen-live-indicator i { width: 9px; height: 9px; border-radius: 50%; background: #39ca96; box-shadow: 0 0 0 4px rgba(57,202,150,.18); }
.kitchen-audio-toggle, .kitchen-audio-test { min-height: 38px; padding: 0 13px; border: 1px solid #7b9bc0; border-radius: 6px; background: rgba(255,255,255,.08); color: #fff; font-weight: 800; cursor: pointer; }
.kitchen-audio-toggle:hover, .kitchen-audio-toggle:focus-visible, .kitchen-audio-test:hover, .kitchen-audio-test:focus-visible { background: rgba(255,255,255,.18); }
.kitchen-audio-test { border-color: #f3cb38; color: #fff4bd; }
.kitchen-audio-status { color: #d7e5f5; font-size: 12px; font-weight: 700; white-space: nowrap; }
.kitchen-volume-control { display: inline-grid; grid-template-columns: auto 88px auto; align-items: center; gap: 7px; min-height: 38px; color: #d7e5f5; font-size: 12px; font-weight: 800; white-space: nowrap; }
.kitchen-volume-control input { width: 88px; accent-color: #f3cb38; cursor: pointer; }
.kitchen-volume-control output { min-width: 32px; color: #fff; font-variant-numeric: tabular-nums; }

.kitchen-audio-toggle.is-muted { color: #c8d3e2; border-color: #6b7e99; }
.kitchen-screen-head .ghost-button { color: #fff; border-color: #7b9bc0; background: rgba(255,255,255,.08); }
.kitchen-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 14px 0; overflow: hidden; border: 1px solid #d9e3ee; border-radius: 7px; background: #d9e3ee; }
.kitchen-summary span { min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px; background: #fff; color: #52647c; font-size: 14px; font-weight: 700; }
.kitchen-summary strong { color: #10213f; font-size: 24px; }
.kitchen-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.kitchen-lane { min-height: 440px; padding: 14px; background: #f4f7fb; border: 1px solid #d8e2ef; border-radius: 8px; }
.kitchen-lane > header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 13px; padding: 0 2px; }
.kitchen-lane h2 { margin: 0; color: #1a304f; font-size: 18px; }
.kitchen-lane > header span { min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #e27a22; color: #fff; font-size: 13px; font-weight: 800; }
.kitchen-lane.is-preparing-lane > header span { background: #128478; }
.kitchen-ticket-list { display: grid; gap: 12px; }
.kitchen-ticket { padding: 15px; border: 1px solid #d6e1ed; border-left: 5px solid #e27a22; border-radius: 7px; background: #fff; box-shadow: 0 2px 8px rgba(18,36,66,.06); }
.kitchen-ticket.is-preparing { border-left-color: #128478; }
.kitchen-ticket-topline, .kitchen-ticket-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kitchen-ticket-topline { margin-bottom: 11px; color: #60738e; font-size: 12px; font-weight: 700; }
.kitchen-ticket-status { color: #9b4707; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.kitchen-ticket.is-preparing .kitchen-ticket-status { color: #047268; }
.kitchen-ticket-main { display: flex; align-items: flex-start; gap: 12px; }
.kitchen-ticket-quantity { flex: 0 0 44px; display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border-radius: 6px; background: #fff0df; color: #a84806; font-size: 21px; }
.kitchen-ticket.is-preparing .kitchen-ticket-quantity { background: #dff6ef; color: #077269; }
.kitchen-ticket h2 { margin: 1px 0 4px; color: #11294a; font-size: 20px; line-height: 1.18; }
.kitchen-ticket-main p { margin: 0; color: #687a90; font-size: 13px; }
.kitchen-ticket-items { display: grid; gap: 5px; margin: 13px 0 0 56px; padding: 10px 0 0; border-top: 1px solid #e5ebf2; list-style: none; color: #263c5b; font-size: 15px; }
.kitchen-ticket-items li { display: flex; gap: 7px; align-items: baseline; }
.kitchen-ticket-items strong { min-width: 30px; color: #0d7169; }
.kitchen-ticket-footer { margin-top: 15px; padding-top: 12px; border-top: 1px solid #e5ebf2; color: #50627a; font-size: 12px; }
.kitchen-ticket-footer strong { color: #1d3555; }
.kitchen-action-button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 5px; background: #137f76; color: #fff; font-weight: 800; cursor: pointer; white-space: nowrap; }
.kitchen-action-button:hover, .kitchen-action-button:focus-visible { background: #0e6861; }
.kitchen-action-button.is-deliver { background: #1b5c9f; }
.kitchen-action-button.is-deliver:hover, .kitchen-action-button.is-deliver:focus-visible { background: #144a81; }
.kitchen-empty { padding: 24px 16px; border: 1px dashed #c5d3e2; border-radius: 6px; background: rgba(255,255,255,.7); color: #657890; text-align: center; font-size: 14px; }
@media (max-width: 760px) {
    .kitchen-screen-head { flex-direction: column; padding: 17px; gap: 16px; }
    .kitchen-screen-head h1 { font-size: 24px; }
    .kitchen-screen-tools { justify-content: flex-start; }
    .kitchen-summary { grid-template-columns: 1fr; }
    .kitchen-summary span { min-height: 48px; justify-content: flex-start; padding-left: 16px; }
    .kitchen-board { grid-template-columns: 1fr; }
    .kitchen-lane { min-height: 0; padding: 11px; }
    .kitchen-ticket h2 { font-size: 18px; }
}
@media print {
    .kitchen-screen-tools, .topbar, .assistant-launcher, .assistant-panel { display: none !important; }
    .kitchen-screen-head { color: #10213f; background: #fff; border-color: #10213f; }
    .kitchen-screen-head h1, .kitchen-screen-head p:not(.kitchen-eyebrow) { color: #10213f; }
    .kitchen-board { grid-template-columns: 1fr 1fr; }
    .kitchen-ticket { break-inside: avoid; box-shadow: none; }
}


/* Restaurant follow-up and reception invoice requests */
.kitchen-order-status { display:inline-flex; align-items:center; min-height:25px; padding:0 8px; border-radius:999px; font-size:12px; font-weight:800; white-space:nowrap; background:#fff0df; color:#9b4707; }
.kitchen-order-status.en_preparation { background:#def5ee; color:#08736a; }
.kitchen-order-status.livree { background:#e4eefb; color:#215b98; }
.invoice-request-notice { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin:0 0 14px; padding:12px 14px; border:1px solid #f2c957; border-left:5px solid #e5a415; border-radius:7px; background:#fff9e7; color:#43310a; }
.invoice-request-notice strong { margin-right:5px; }
.invoice-request-notice a { padding:5px 8px; border-radius:4px; background:#fff; color:#0d5f7b; font-size:13px; font-weight:700; text-decoration:none; }
.invoice-request-notice a:hover { text-decoration:underline; }

.invoice-request-popup { position:fixed; right:22px; bottom:22px; z-index:1200; width:min(410px,calc(100vw - 28px)); display:grid; grid-template-columns:42px 1fr; gap:12px; padding:16px; border:1px solid #e4b82e; border-left:5px solid #e5a415; border-radius:8px; background:#fffdf5; box-shadow:0 18px 48px rgba(20,38,66,.25); color:#172b49; }
.invoice-request-popup[hidden] { display:none !important; }
.invoice-request-popup p { margin:5px 0 2px; font-weight:800; }
.invoice-request-popup small { display:block; margin-bottom:10px; color:#65758b; }
.invoice-request-icon { width:42px; height:42px; display:flex; align-items:center; justify-content:center; border-radius:6px; background:#10213f; color:#f4cc31; font-size:20px; font-weight:900; }
.invoice-request-close { position:absolute; top:7px; right:8px; width:30px; height:30px; border:0; background:transparent; color:#50627a; font-size:22px; cursor:pointer; }
.invoice-request-popup-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.invoice-request-sound-button { border-color:#cf9f12; background:#fff4c2; color:#684b00; }

.invoice-request-complete-button {
    border-color: #0f8077;
    background: #0f8077;
    color: #fff;
    cursor: pointer;
}
.invoice-request-complete-button:hover { background: #09675f; }
.invoice-request-complete-button:disabled { cursor: wait; opacity: .65; }

/* Long portrait invoices may continue on a second A4 page. */
@media print {
    html:not(.print-landscape),
    body:not(.print-landscape) {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    body:not(.print-landscape) .app-shell,
    body:not(.print-landscape) main,
    body:not(.print-landscape) .content {
        height: auto !important;
        min-height: 297mm !important;
        max-height: none !important;
        overflow: visible !important;
    }
    body:not(.print-landscape) .invoice-document {
        height: auto !important;
        min-height: 297mm !important;
        max-height: none !important;
        overflow: visible !important;
        break-inside: auto !important;
        page-break-inside: auto !important;
    }
    body:not(.print-landscape) .invoice-document table {
        break-inside: auto !important;
        page-break-inside: auto !important;
    }
    body:not(.print-landscape) .invoice-document thead {
        display: table-header-group !important;
    }
    body:not(.print-landscape) .invoice-document tr {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
}

/* Daily room report: on-screen actions and A4 landscape document. */
.rapport-document-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.rapport-document-actions .ghost-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.rapport-print-header {
    display: none;
}

@media print {
    @page rapport-landscape-page {
        size: A4 landscape;
        margin: 8mm;
    }

    html:has(body.page-rapport),
    body.page-rapport {
        width: 281mm !important;
        min-width: 281mm !important;
        max-width: 281mm !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body.page-rapport {
        page: rapport-landscape-page;
    }
    body.page-rapport .app-sidebar,
    body.page-rapport .sidebar-scrim,
    body.page-rapport .topbar,
    body.page-rapport .no-print,
    body.page-rapport .assistant-launcher,
    body.page-rapport .assistant-panel,
    body.page-rapport .content > :not(.rapport-print-document) {
        display: none !important;
    }
    html body.page-rapport .app-shell,
    html body.page-rapport main,
    html body.page-rapport .content {
        display: block !important;
        width: 281mm !important;
        min-width: 281mm !important;
        max-width: 281mm !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }
    html body.page-rapport .content > .rapport-print-document {
        display: block !important;
        width: 281mm !important;
        max-width: 281mm !important;
        margin: 0 !important;
    }
    body.page-rapport .rapport-panel {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    body.page-rapport .rapport-panel > .section-title-row {
        display: none !important;
    }
    body.page-rapport .rapport-print-header {
        display: flex !important;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;
        margin: 0 0 8px;
        padding: 0 0 7px;
        border-bottom: 3px solid #101846;
        background: #fff !important;
        color: #101846 !important;
    }
    body.page-rapport .rapport-print-header > div:first-child > span {
        color: #0f7f75;
        font-size: 9px;
        font-weight: 900;
        text-transform: uppercase;
    }
    body.page-rapport .rapport-print-header h1 {
        margin: 2px 0;
        color: #101846;
        font-size: 18px;
        line-height: 1.1;
    }
    body.page-rapport .rapport-print-header p {
        margin: 0;
        color: #52627a;
        font-size: 9px;
    }
    body.page-rapport .rapport-print-summary {
        display: flex;
        align-items: stretch;
        border: 1px solid #d8e0eb;
    }
    body.page-rapport .rapport-print-summary span {
        display: grid;
        min-width: 72px;
        gap: 1px;
        padding: 5px 7px;
        border-left: 1px solid #d8e0eb;
        color: #617087;
        font-size: 7px;
        font-weight: 800;
        text-transform: uppercase;
    }
    body.page-rapport .rapport-print-summary span:first-child {
        border-left: 0;
    }
    body.page-rapport .rapport-print-summary strong {
        color: #101846;
        font-size: 11px;
        white-space: nowrap;
    }
    body.page-rapport .rapport-table-wrap {
        width: 100% !important;
        overflow: visible !important;
        border: 0 !important;
    }
    body.page-rapport .rapport-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }
    body.page-rapport .rapport-table th,
    body.page-rapport .rapport-table td {
        padding: 4px 3px !important;
        border: 1px solid #b8c4d3 !important;
        font-size: 7.5px !important;
        line-height: 1.12 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }
    body.page-rapport .rapport-table th:nth-child(1), body.page-rapport .rapport-table td:nth-child(1) { width: 11% !important; }
    body.page-rapport .rapport-table th:nth-child(2), body.page-rapport .rapport-table td:nth-child(2) { width: 7% !important; }
    body.page-rapport .rapport-table th:nth-child(3), body.page-rapport .rapport-table td:nth-child(3) { width: 7% !important; }
    body.page-rapport .rapport-table th:nth-child(4), body.page-rapport .rapport-table td:nth-child(4) { width: 9% !important; }
    body.page-rapport .rapport-table th:nth-child(5), body.page-rapport .rapport-table td:nth-child(5) { width: 14% !important; }
    body.page-rapport .rapport-table th:nth-child(6), body.page-rapport .rapport-table td:nth-child(6) { width: 11% !important; }
    body.page-rapport .rapport-table th:nth-child(7), body.page-rapport .rapport-table td:nth-child(7) { width: 4% !important; }
    body.page-rapport .rapport-table th:nth-child(8), body.page-rapport .rapport-table td:nth-child(8) { width: 12% !important; }
    body.page-rapport .rapport-table th:nth-child(9), body.page-rapport .rapport-table td:nth-child(9) { width: 4% !important; }
    body.page-rapport .rapport-table th:nth-child(10), body.page-rapport .rapport-table td:nth-child(10) { width: 9% !important; }
    body.page-rapport .rapport-table th:nth-child(11), body.page-rapport .rapport-table td:nth-child(11) { width: 6% !important; }
    body.page-rapport .rapport-table th:nth-child(12), body.page-rapport .rapport-table td:nth-child(12) { width: 6% !important; }
    body.page-rapport .rapport-table thead {
        display: table-header-group;
    }
    body.page-rapport .rapport-table thead th {
        background: #101846 !important;
        color: #fff !important;
        font-size: 7px !important;
    }
    body.page-rapport .rapport-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    body.page-rapport .rapport-table .money-cell,
    body.page-rapport .rapport-table .rapport-number {
        white-space: nowrap !important;
    }
    body.page-rapport .rapport-payment-badge,
    body.page-rapport .rapport-note {
        min-height: 0 !important;
        padding: 2px 4px !important;
        font-size: 6.5px !important;
        white-space: nowrap !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body.page-rapport .rapport-free-cell .rapport-quick-add {
        display: none !important;
    }
    body.page-rapport .rapport-free-cell::after {
        content: 'LIBRE';
        color: #075f35;
        font-size: 7px;
        font-weight: 900;
    }
    body.page-rapport .rapport-table tbody tr.is-free td {
        background: #00b852 !important;
        color: #062b18 !important;
    }
    body.page-rapport .rapport-table tbody tr.is-occupied td {
        background: #fff !important;
    }
    body.page-rapport .rapport-table thead th:first-child,
    body.page-rapport .rapport-table tbody td:first-child,
    body.page-rapport .rapport-table tbody tr.is-free td:first-child,
    body.page-rapport .rapport-table tbody tr.is-occupied td:first-child {
        position: static !important;
        left: auto !important;
        z-index: auto !important;
        background: #000 !important;
        color: #fff !important;
    }
    body.page-rapport .rapport-table tfoot th {
        background: #fff3b8 !important;
        color: #101846 !important;
        font-weight: 900;
    }
}

/* Exploitation hotel */
.operations-page {
    --ops-navy: #13213b;
    --ops-teal: #0d7f78;
    --ops-ink: #17233a;
    --ops-muted: #66738a;
    --ops-line: #d8e0eb;
    --ops-soft: #f4f7fa;
    color: var(--ops-ink);
    max-width: 1540px;
    margin: 0 auto;
}
.operations-head { align-items: flex-end; padding-bottom: 18px; border-bottom: 1px solid var(--ops-line); }
.operations-head h1 { margin: 2px 0 4px; font-size: 30px; letter-spacing: 0; }
.operations-head p { margin: 0; }
.operations-eyebrow { color: var(--ops-teal); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.operations-head-status { display: flex; align-items: center; gap: 10px; }
.operations-head-status span, .operations-head-status strong { padding: 8px 12px; border: 1px solid var(--ops-line); border-radius: 6px; background: #fff; font-size: 13px; }
.operations-head-status strong { background: var(--ops-navy); border-color: var(--ops-navy); color: #fff; }
.operations-tabs { display: flex; gap: 4px; margin: 18px 0; padding: 4px; overflow-x: auto; border: 1px solid var(--ops-line); border-radius: 7px; background: #fff; }
.operations-tabs a { flex: 0 0 auto; padding: 9px 14px; border-radius: 5px; color: #42516a; font-size: 13px; font-weight: 700; text-decoration: none; }
.operations-tabs a:hover { background: #edf5f4; color: var(--ops-teal); }
.operations-tabs a.active { background: var(--ops-teal); color: #fff; }
.operations-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 16px 18px; }
.operations-toolbar h2, .operations-section-title h2 { margin: 2px 0 0; font-size: 19px; }
.operations-toolbar p { margin: 4px 0 0; color: var(--ops-muted); font-size: 13px; }
.operations-date-filter, .stay-search-form { display: flex; align-items: flex-end; gap: 8px; }
.operations-date-filter label, .stay-search-form label { display: grid; gap: 5px; color: #4b5970; font-size: 12px; font-weight: 700; }
.operations-date-filter input, .stay-search-form input { min-height: 38px; }
.stay-search-form input { width: min(330px, 42vw); }
.housekeeping-grid { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; }
.housekeeping-card { display: grid; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--ops-line); border-left-width: 4px; border-radius: 7px; background: #fff; box-shadow: 0 3px 12px rgba(27, 45, 71, .055); }
.housekeeping-card.status-sale { border-left-color: #dc3545; }
.housekeeping-card.status-a_nettoyer { border-left-color: #f08c2e; }
.housekeeping-card.status-controlee { border-left-color: #4169b2; }
.housekeeping-card.status-prete { border-left-color: #168a5b; }
.housekeeping-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.housekeeping-card-head > div { min-width: 0; }
.housekeeping-card-head strong { display: block; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.housekeeping-card-head div span { color: var(--ops-muted); font-size: 11px; }
.housekeeping-guest { min-height: 17px; margin: 0; overflow: hidden; color: #3c4b63; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.housekeeping-card label { display: grid; gap: 4px; color: #56637a; font-size: 11px; font-weight: 700; }
.housekeeping-card input, .housekeeping-card select { width: 100%; min-width: 0; min-height: 35px; padding: 6px 8px; font-size: 13px; }
.housekeeping-card button { width: 100%; min-height: 36px; }
.operations-badge { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; padding: 4px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 800; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.operations-badge.sale, .operations-badge.annule, .operations-badge.en_retard { border-color: #f4b8bf; background: #fff0f1; color: #b52334; }
.operations-badge.a_nettoyer, .operations-badge.en_attente, .operations-badge.ecart { border-color: #ffd2a4; background: #fff5e8; color: #a85200; }
.operations-badge.controlee, .operations-badge.en_cours, .operations-badge.partiel { border-color: #bad0f4; background: #edf4ff; color: #285493; }
.operations-badge.prete, .operations-badge.resolue, .operations-badge.paye, .operations-badge.rapproche { border-color: #aee3c7; background: #eaf9f1; color: #087044; }
.operations-badge.ouverte, .operations-badge.planifie, .operations-badge.reserve, .operations-badge.occupe, .operations-badge.termine, .operations-badge.non_show, .operations-badge.a_rapprocher { border-color: #d3dbea; background: #f4f6fa; color: #4e5d75; }
.housekeeping-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; overflow: hidden; border: 1px solid var(--ops-line); border-radius: 7px; background: #fff; }
.housekeeping-summary span { padding: 11px 14px; border-right: 1px solid var(--ops-line); color: #5d687b; font-size: 12px; text-align: center; }
.housekeeping-summary span:last-child { border-right: 0; }
.housekeeping-summary strong { display: block; color: var(--ops-ink); font-size: 19px; }
.operations-split { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; margin-bottom: 14px; }
.operations-split > * { min-width: 0; }
.operations-form { padding: 18px; }
.operations-section-title span { color: var(--ops-teal); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.operations-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin: 15px 0; }
.operations-form-grid label { display: grid; gap: 5px; min-width: 0; color: #4c5b73; font-size: 11px; font-weight: 700; }
.operations-form-grid input, .operations-form-grid select, .operations-form-grid textarea { width: 100%; min-width: 0; }
.operations-form-grid .span-2 { grid-column: span 2; }
.operations-insight { display: flex; flex-direction: column; justify-content: center; padding: 22px; border-top: 4px solid var(--ops-teal); }
.operations-insight > span { color: var(--ops-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.operations-insight > strong { margin-top: 5px; color: var(--ops-navy); font-size: 42px; line-height: 1; }
.operations-insight p { margin: 4px 0 22px; color: var(--ops-muted); font-size: 12px; }
.operations-insight div { display: grid; gap: 3px; padding-top: 14px; border-top: 1px solid var(--ops-line); }
.operations-insight small { color: var(--ops-muted); }
.operations-list-panel, .operations-table-panel { margin-top: 14px; padding: 18px; }
.maintenance-list { margin-top: 14px; border-top: 1px solid var(--ops-line); }
.maintenance-ticket { position: relative; border-bottom: 1px solid var(--ops-line); }
.maintenance-ticket summary { display: grid; grid-template-columns: 110px minmax(220px, 1.5fr) minmax(130px, .8fr) 110px 110px; align-items: center; gap: 12px; min-height: 54px; padding: 8px 4px; cursor: pointer; list-style: none; }
.maintenance-ticket summary::-webkit-details-marker { display: none; }
.maintenance-ticket summary strong { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.maintenance-ticket summary > span:not(.maintenance-ref):not(.operations-badge) { overflow: hidden; color: var(--ops-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.maintenance-ref { color: var(--ops-teal); font-size: 11px; font-weight: 800; }
.maintenance-edit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; padding: 14px; background: var(--ops-soft); }
.maintenance-edit-grid label { display: grid; gap: 4px; min-width: 0; font-size: 11px; font-weight: 700; }
.maintenance-edit-grid input, .maintenance-edit-grid select, .maintenance-edit-grid textarea { width: 100%; min-width: 0; }
.maintenance-edit-grid .span-2 { grid-column: span 2; }
.maintenance-delete { position: absolute; right: 15px; bottom: 22px; }
.stay-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.stay-summary-grid article { min-width: 0; padding: 15px; border: 1px solid var(--ops-line); border-top: 3px solid var(--ops-teal); border-radius: 6px; background: #fff; }
.stay-summary-grid span, .stay-summary-grid small { display: block; color: var(--ops-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.stay-summary-grid strong { display: block; margin: 5px 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.stay-contact-strip { display: flex; align-items: center; gap: 18px; padding: 12px 16px; overflow-x: auto; color: #4d5b71; font-size: 12px; }
.stay-contact-strip span { white-space: nowrap; }
.stay-contact-strip a { margin-left: auto; white-space: nowrap; }
.table-wrap { width: 100%; overflow-x: auto; }
.operations-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.operations-table th { padding: 9px 8px; border-bottom: 2px solid var(--ops-navy); color: #526078; font-size: 10px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.operations-table td { padding: 9px 8px; border-bottom: 1px solid #e3e8f0; vertical-align: middle; }
.operations-table tbody tr:hover { background: #f7fafb; }
.operations-table .num { text-align: center; }
.operations-table .money-cell { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; white-space: nowrap; }
.stay-timeline { margin-top: 14px; }
.stay-timeline article { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--ops-line); }
.stay-timeline time { color: var(--ops-muted); font-size: 11px; }
.stay-timeline p { margin: 3px 0; font-size: 12px; }
.stay-timeline small { color: var(--ops-muted); }
.payment-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.payment-entry-grid .operations-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-intro { margin: 6px 0 12px; color: var(--ops-muted); font-size: 12px; }
.payment-method { display: inline-flex; padding: 4px 7px; border-radius: 4px; background: #eef2f7; color: #394962; font-size: 10px; font-weight: 800; white-space: nowrap; }
.payment-method.method-espece { background: #e8f7ee; color: #087044; }
.payment-method.method-mobile_money { background: #fff0df; color: #ad5600; }
.payment-method.method-carte_bancaire { background: #e8f6f6; color: #0b6f70; }
.payment-method.method-banque { background: #e9f1ff; color: #285493; }
.payment-method.method-cheque { background: #f2ecff; color: #65419c; }
.payment-form.is-preselected { border-color: #7bc8bd; box-shadow: 0 0 0 3px rgba(13, 128, 116, .08); }
.payment-form label small { display: block; margin-top: 4px; color: var(--ops-muted); font-size: 10px; font-weight: 500; }
.invoice-payment-methods { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.invoice-payment-methods .payment-method { padding: 3px 5px; font-size: 9px; }
.invoice-payment-button { border-color: #8bcfc7; background: #eefaf8; color: #076f68; text-decoration: none; }
.invoice-payment-button:hover { border-color: #0d8074; background: #dff5f1; color: #075d57; }
.reconcile-actions { display: flex; gap: 4px; }
.row-muted { opacity: .55; }
.reconciliation-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.reconciliation-kpis article { padding: 15px; border: 1px solid var(--ops-line); border-radius: 6px; background: #fff; }
.reconciliation-kpis span { display: block; margin-bottom: 5px; color: var(--ops-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.reconciliation-kpis strong { font-size: 17px; white-space: nowrap; }
.backup-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 24px; border-left: 5px solid var(--ops-teal); }
.backup-hero h2 { margin: 3px 0 7px; }
.backup-hero p { max-width: 760px; color: var(--ops-muted); }
.backup-hero ul { display: flex; flex-wrap: wrap; gap: 18px; margin: 15px 0 0; padding: 0; list-style: none; font-size: 12px; font-weight: 700; }
.backup-hero li::before { content: "✓"; margin-right: 6px; color: var(--ops-teal); }
.backup-primary { min-height: 44px; white-space: nowrap; }
.backup-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); margin-top: 14px; }
.backup-list { margin-top: 12px; }
.backup-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ops-line); }
.backup-list strong, .backup-list span { display: block; overflow-wrap: anywhere; }
.backup-list div span { margin-top: 3px; color: var(--ops-muted); font-size: 11px; }
.restore-form { align-self: start; }
.restore-form > label { display: grid; gap: 6px; margin: 16px 0; color: #4c5b73; font-size: 11px; font-weight: 700; }
.restore-safety { margin-bottom: 16px; padding: 12px; border-left: 3px solid #e1a318; background: #fff8e2; }
.restore-safety p { margin: 4px 0 0; color: #6b5b2e; font-size: 11px; }
.empty-state { padding: 22px; color: var(--ops-muted); text-align: center; }
@media (max-width: 1180px) {
    .housekeeping-grid { grid-template-columns: repeat(3, minmax(210px, 1fr)); }
    .operations-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .maintenance-ticket summary { grid-template-columns: 100px minmax(180px, 1fr) 130px 100px; }
    .maintenance-ticket summary > b { display: none; }
    .reconciliation-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
    .operations-head { align-items: flex-start; }
    .operations-head-status { display: none; }
    .operations-toolbar { align-items: stretch; flex-direction: column; }
    .operations-date-filter, .stay-search-form { width: 100%; }
    .stay-search-form label { flex: 1; }
    .stay-search-form input { width: 100%; }
    .housekeeping-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .housekeeping-summary { grid-template-columns: repeat(2, 1fr); }
    .housekeeping-summary span:nth-child(2) { border-right: 0; }
    .housekeeping-summary span:nth-child(-n+2) { border-bottom: 1px solid var(--ops-line); }
    .operations-split, .payment-entry-grid, .backup-grid { grid-template-columns: 1fr; }
    .operations-insight { display: grid; grid-template-columns: 1fr auto; }
    .stay-summary-grid { grid-template-columns: repeat(2, 1fr); }
    .maintenance-ticket summary { grid-template-columns: 92px minmax(0, 1fr) auto; }
    .maintenance-ticket summary > span:not(.maintenance-ref):not(.operations-badge), .maintenance-ticket summary > b { display: none; }
    .maintenance-edit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reconciliation-kpis { grid-template-columns: repeat(2, 1fr); }
    .backup-hero { align-items: stretch; flex-direction: column; }
}
@media (max-width: 520px) {
    .operations-head h1 { font-size: 25px; }
    .operations-tabs { margin: 12px 0; }
    .housekeeping-grid { grid-template-columns: 1fr; }
    .housekeeping-card { padding: 12px; }
    .operations-date-filter { display: grid; grid-template-columns: 1fr auto; }
    .operations-form-grid, .payment-entry-grid .operations-form-grid, .maintenance-edit-grid { grid-template-columns: 1fr; }
    .operations-form-grid .span-2, .maintenance-edit-grid .span-2 { grid-column: span 1; }
    .stay-summary-grid { grid-template-columns: 1fr; }
    .stay-contact-strip { align-items: flex-start; flex-direction: column; gap: 7px; }
    .stay-contact-strip a { margin-left: 0; }
    .stay-timeline article { grid-template-columns: 1fr; gap: 3px; }
    .reconciliation-kpis { grid-template-columns: 1fr; }
}


/* Exploitation hotel - premium operational refinement */
.operations-page {
    --ops-navy: #10213d;
    --ops-teal: #087f78;
    --ops-teal-dark: #076963;
    --ops-amber: #d99a16;
    --ops-ink: #15233a;
    --ops-muted: #647087;
    --ops-line: #d9e1ec;
    --ops-line-strong: #c7d2e1;
    --ops-soft: #f5f7fa;
    width: 100%;
    max-width: 1580px;
    padding: 4px 2px 28px;
    color: var(--ops-ink);
    font-variant-numeric: tabular-nums;
}
.operations-page .operations-head {
    position: relative;
    align-items: center;
    min-height: 104px;
    margin: 0;
    padding: 20px 24px;
    overflow: hidden;
    border: 1px solid var(--ops-line);
    border-left: 5px solid var(--ops-teal);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 33, 61, .06);
}
.operations-page .operations-head::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 170px;
    height: 4px;
    background: var(--ops-amber);
    content: '';
}
.operations-head > div:first-child { min-width: 0; }
.operations-head .operations-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    color: var(--ops-teal-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
}
.operations-head .operations-eyebrow::before {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--ops-amber);
    content: '';
}
.operations-page .operations-head h1 {
    margin: 0 0 3px;
    color: var(--ops-navy);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
}
.operations-page .operations-head h1 + p {
    max-width: 760px;
    color: var(--ops-muted);
    font-size: 13px;
    line-height: 1.45;
}
.operations-page .operations-head-status { flex: 0 0 auto; gap: 8px; }
.operations-page .operations-head-status span,
.operations-page .operations-head-status strong {
    min-height: 38px;
    padding: 10px 13px;
    border-color: var(--ops-line-strong);
    border-radius: 6px;
    box-shadow: none;
    font-size: 12px;
}
.operations-page .operations-head-status span { background: var(--ops-soft); color: #48566e; }
.operations-page .operations-head-status strong { background: var(--ops-navy); color: #fff; }
.operations-page .operations-tabs {
    position: sticky;
    top: 72px;
    z-index: 20;
    gap: 2px;
    margin: 14px 0 16px;
    padding: 5px;
    border-color: var(--ops-line-strong);
    border-radius: 8px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 6px 18px rgba(16, 33, 61, .07);
    scrollbar-width: thin;
}
.operations-page .operations-tabs a {
    min-height: 38px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #4c5a70;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.operations-page .operations-tabs a:hover {
    border-color: #cde4e2;
    background: #eff8f7;
    color: var(--ops-teal-dark);
}
.operations-page .operations-tabs a.active {
    border-color: var(--ops-teal);
    background: var(--ops-teal);
    color: #fff;
    box-shadow: 0 4px 12px rgba(8, 127, 120, .18);
}
.operations-page .panel {
    border-color: var(--ops-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(16, 33, 61, .045);
}
.operations-page .operations-toolbar {
    align-items: center;
    min-height: 78px;
    margin-bottom: 14px;
    padding: 15px 18px;
    border-left: 4px solid var(--ops-navy);
}
.operations-page .operations-toolbar > div:first-child { min-width: 0; }
.operations-page .operations-toolbar h2,
.operations-page .operations-section-title h2 {
    margin: 2px 0 0;
    color: var(--ops-navy);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}
.operations-page .operations-toolbar p {
    max-width: 760px;
    margin-top: 4px;
    color: var(--ops-muted);
    line-height: 1.35;
}
.operations-page .operations-date-filter,
.operations-page .stay-search-form { flex: 0 0 auto; align-items: flex-end; gap: 7px; }
.operations-page .operations-date-filter label,
.operations-page .stay-search-form label,
.operations-page .operations-form-grid label,
.operations-page .maintenance-edit-grid label,
.operations-page .restore-form > label {
    color: #4a5870;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}
.operations-page input,
.operations-page select,
.operations-page textarea {
    min-height: 38px;
    border-color: var(--ops-line-strong);
    border-radius: 6px;
    color: var(--ops-ink);
    font-size: 13px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.operations-page textarea { min-height: 76px; resize: vertical; }
.operations-page input:hover,
.operations-page select:hover,
.operations-page textarea:hover { border-color: #9fb0c6; }
.operations-page input:focus,
.operations-page select:focus,
.operations-page textarea:focus {
    border-color: var(--ops-teal);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(8, 127, 120, .11);
}
.operations-page button,
.operations-page .button {
    min-height: 38px;
    border-radius: 6px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 800;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.operations-page button:hover,
.operations-page .button:hover { transform: translateY(-1px); }
.operations-page button:active,
.operations-page .button:active { transform: translateY(0); }
.operations-page .housekeeping-grid {
    grid-template-columns: repeat(4, minmax(215px, 1fr));
    gap: 11px;
}
.operations-page .housekeeping-card {
    position: relative;
    gap: 9px;
    min-height: 244px;
    padding: 14px 14px 13px;
    overflow: hidden;
    border: 1px solid var(--ops-line);
    border-left: 1px solid var(--ops-line);
    border-radius: 8px;
    box-shadow: 0 5px 16px rgba(16, 33, 61, .055);
}
.operations-page .housekeeping-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: #8894a7;
    content: '';
}
.operations-page .housekeeping-card.status-sale::before { background: #c93d4f; }
.operations-page .housekeeping-card.status-a_nettoyer::before { background: #e48224; }
.operations-page .housekeeping-card.status-controlee::before { background: #3f68ad; }
.operations-page .housekeeping-card.status-prete::before { background: #16835a; }
.operations-page .housekeeping-card.status-sale { background: #fffdfd; }
.operations-page .housekeeping-card.status-a_nettoyer { background: #fffdfa; }
.operations-page .housekeeping-card.status-controlee { background: #fcfdff; }
.operations-page .housekeeping-card.status-prete { background: #fbfefc; }
.operations-page .housekeeping-card-head { padding-top: 3px; }
.operations-page .housekeeping-card-head strong {
    color: var(--ops-navy);
    font-size: 15px;
    font-weight: 850;
}
.operations-page .housekeeping-card-head div span,
.operations-page .housekeeping-guest { font-size: 11px; }
.operations-page .housekeeping-guest {
    padding: 7px 8px;
    border-radius: 5px;
    background: var(--ops-soft);
    color: #46546a;
}
.operations-page .housekeeping-card input,
.operations-page .housekeeping-card select { min-height: 34px; }
.operations-page .housekeeping-card button { margin-top: auto; }
.operations-page .operations-badge {
    min-height: 22px;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 9px;
    letter-spacing: 0;
}
.operations-page .housekeeping-summary {
    gap: 0;
    margin-top: 12px;
    border-color: var(--ops-line-strong);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(16, 33, 61, .04);
}
.operations-page .housekeeping-summary span {
    min-height: 66px;
    padding: 11px 14px;
    background: #fff;
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
}
.operations-page .housekeeping-summary strong {
    margin-bottom: 2px;
    font-size: 21px;
    line-height: 1;
}
.operations-page .operations-split {
    grid-template-columns: minmax(0, 1.45fr) minmax(245px, .55fr);
    gap: 14px;
}
.operations-page .operations-form,
.operations-page .operations-list-panel,
.operations-page .operations-table-panel { padding: 17px; }
.operations-page .operations-section-title {
    padding-bottom: 11px;
    border-bottom: 1px solid var(--ops-line);
}
.operations-page .operations-section-title span { color: var(--ops-teal-dark); font-size: 9px; }
.operations-page .operations-form-grid { gap: 10px 11px; margin: 13px 0 14px; }
.operations-page .operations-insight {
    justify-content: flex-start;
    min-height: 100%;
    padding: 21px;
    border-top: 0;
    border-left: 4px solid var(--ops-teal);
    background: #edf3f8;
}
.operations-page .operations-insight > strong { margin-top: 10px; font-size: 38px; }
.operations-page .operations-insight p { margin-bottom: 18px; }
.operations-page .operations-insight div { margin-top: auto; }
.operations-page .maintenance-list { margin-top: 10px; }
.operations-page .maintenance-ticket { background: #fff; transition: background-color .15s ease; }
.operations-page .maintenance-ticket:hover { background: #fafbfd; }
.operations-page .maintenance-ticket[open] { background: var(--ops-soft); }
.operations-page .maintenance-ticket summary { min-height: 50px; padding: 7px 8px; }
.operations-page .maintenance-ticket summary strong { color: var(--ops-navy); }
.operations-page .maintenance-edit-grid {
    margin: 0 8px 12px;
    padding: 13px;
    border: 1px solid var(--ops-line);
    border-radius: 6px;
    background: #fff;
}
.operations-page .stay-summary-grid { gap: 9px; }
.operations-page .stay-summary-grid article {
    min-height: 82px;
    padding: 13px 14px;
    border-top-width: 1px;
    border-left: 4px solid var(--ops-teal);
    border-radius: 7px;
    box-shadow: 0 3px 12px rgba(16, 33, 61, .04);
}
.operations-page .stay-summary-grid strong { color: var(--ops-navy); }
.operations-page .stay-contact-strip {
    min-height: 48px;
    border-left: 4px solid var(--ops-amber);
    background: #fff;
}
.operations-page .table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--ops-line);
    border-radius: 7px;
    background: #fff;
    scrollbar-width: thin;
}
.operations-page .operations-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 11px;
}
.operations-page .operations-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 38px;
    padding: 8px 9px;
    border-bottom: 1px solid #294264;
    background: var(--ops-navy);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0;
}
.operations-page .operations-table td {
    height: 42px;
    padding: 7px 9px;
    border-bottom-color: #e4e9f1;
    color: #26354d;
    line-height: 1.3;
}
.operations-page .operations-table tbody tr:nth-child(even) { background: #f8fafc; }
.operations-page .operations-table tbody tr:hover { background: #edf6f5; }
.operations-page .operations-table tbody tr:last-child td { border-bottom: 0; }
.operations-page .operations-table .money-cell { color: var(--ops-navy); }
.operations-page .stay-timeline {
    position: relative;
    margin-left: 7px;
    padding-left: 18px;
    border-left: 2px solid #d8e5e4;
}
.operations-page .stay-timeline article {
    position: relative;
    grid-template-columns: 118px minmax(0, 1fr);
    padding: 10px 0 12px;
    border-bottom-style: dashed;
}
.operations-page .payment-entry-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}
.operations-page .payment-entry-grid > .panel { min-height: 100%; }
.operations-page .panel-intro { min-height: 33px; }
.operations-page .reconciliation-kpis {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 9px;
}
.operations-page .reconciliation-kpis article {
    min-height: 78px;
    padding: 13px 14px;
    border-left: 4px solid var(--ops-teal);
    border-radius: 7px;
    box-shadow: 0 3px 12px rgba(16, 33, 61, .04);
}
.operations-page .reconciliation-kpis article:nth-child(2) { border-left-color: var(--ops-amber); }
.operations-page .reconciliation-kpis article:nth-child(3) { border-left-color: #3f68ad; }
.operations-page .reconciliation-kpis article:nth-child(4) { border-left-color: #7553a8; }
.operations-page .reconciliation-kpis article:nth-child(5) { border-left-color: #647087; }
.operations-page .reconciliation-kpis strong { color: var(--ops-navy); font-size: 16px; }
.operations-page .reconcile-actions button {
    min-width: 42px;
    min-height: 30px;
    padding: 6px 8px;
    font-size: 10px;
}
.operations-page .backup-hero {
    position: relative;
    min-height: 152px;
    padding: 22px 24px;
    overflow: hidden;
    background: #fff;
}
.operations-page .backup-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 150px;
    height: 4px;
    background: var(--ops-amber);
    content: '';
}
.operations-page .backup-hero p { margin: 5px 0; line-height: 1.5; }
.operations-page .backup-hero ul { color: #43516a; }
.operations-page .backup-list article { min-height: 51px; }
.operations-page .restore-safety {
    border-left-color: var(--ops-amber);
    border-radius: 0 6px 6px 0;
}
@media (max-width: 1320px) {
    .operations-page .housekeeping-grid { grid-template-columns: repeat(3, minmax(205px, 1fr)); }
    .operations-page .reconciliation-kpis { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
}
@media (max-width: 980px) {
    .operations-page .operations-head { min-height: 96px; padding: 17px 19px; }
    .operations-page .operations-head-status { display: none; }
    .operations-page .operations-tabs { position: static; }
    .operations-page .operations-toolbar { align-items: stretch; flex-direction: column; }
    .operations-page .operations-date-filter,
    .operations-page .stay-search-form { width: 100%; }
    .operations-page .operations-date-filter label,
    .operations-page .stay-search-form label { flex: 1; }
    .operations-page .stay-search-form input { width: 100%; }
    .operations-page .operations-split,
    .operations-page .payment-entry-grid,
    .operations-page .backup-grid { grid-template-columns: 1fr; }
    .operations-page .reconciliation-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .operations-page .operations-head { min-height: 86px; border-left-width: 4px; }
    .operations-page .operations-head h1 { font-size: 24px; }
    .operations-page .operations-head h1 + p { font-size: 12px; }
    .operations-page .operations-tabs { margin: 10px 0 12px; }
    .operations-page .operations-tabs a { min-height: 36px; padding: 9px 12px; }
    .operations-page .housekeeping-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .operations-page .operations-form-grid,
    .operations-page .maintenance-edit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .operations-page .stay-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .operations-page .maintenance-delete { position: static; margin: 0 13px 13px; }
    .operations-page .backup-hero { align-items: stretch; flex-direction: column; }
}
@media (max-width: 520px) {
    .operations-page .operations-head { padding: 15px; }
    .operations-page .operations-head h1 { font-size: 22px; }
    .operations-page .operations-tabs { border-right: 0; border-left: 0; border-radius: 0; }
    .operations-page .operations-toolbar,
    .operations-page .operations-form,
    .operations-page .operations-list-panel,
    .operations-page .operations-table-panel { padding: 13px; }
    .operations-page .operations-date-filter,
    .operations-page .stay-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .operations-page .housekeeping-grid,
    .operations-page .operations-form-grid,
    .operations-page .payment-entry-grid .operations-form-grid,
    .operations-page .maintenance-edit-grid,
    .operations-page .stay-summary-grid,
    .operations-page .reconciliation-kpis { grid-template-columns: 1fr; }
    .operations-page .housekeeping-summary { grid-template-columns: repeat(2, 1fr); }
    .operations-page .operations-form-grid .span-2,
    .operations-page .maintenance-edit-grid .span-2 { grid-column: span 1; }
    .operations-page .stay-contact-strip { align-items: flex-start; flex-direction: column; }
    .operations-page .stay-contact-strip a { margin-left: 0; }
    .operations-page .stay-timeline article { grid-template-columns: 1fr; gap: 3px; }
}
/* Facturation: compact A4 document and content-sized columns (2026-08-13). */
#invoice-document.invoice-document {
    width: min(calc(100% - 40px), 758px);
    max-width: 758px;
    margin: 24px auto;
    padding: 16px;
    box-sizing: border-box;
    border: 1.5px solid #b8c5d8;
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
    font-size: 10.8px;
    line-height: 1.2;
}

#invoice-document .invoice-header-row {
    margin: -16px -16px 10px;
    padding: 12px 16px 13px;
    min-height: 84px;
}

#invoice-document .invoice-party-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 8px;
    margin-bottom: 7px;
}

#invoice-document .invoice-party-card {
    padding: 7px 10px;
    border-color: #c7d1e1;
    border-left-width: 4px;
    border-radius: 5px;
}

#invoice-document .invoice-party-card h3,
#invoice-document .invoice-party-card.client-card h3 {
    margin: 0 0 4px;
    font-size: 12.4px;
    line-height: 1.08;
}

#invoice-document .invoice-party-card p {
    margin: 2px 0 0;
    font-size: 9.6px;
    line-height: 1.18;
}

#invoice-document .invoice-party-card.client-card .invoice-client-subtitle {
    margin: -1px 0 4px;
}

#invoice-document .invoice-party-card.client-card .invoice-client-subtitle,
#invoice-document .invoice-party-card.client-card .invoice-client-subtitle strong {
    font-size: 10.6px;
    line-height: 1.12;
}

#invoice-document .invoice-stay-band {
    gap: 6px !important;
    margin-bottom: 7px !important;
    padding: 6px 8px !important;
    border-color: #c7d1e1 !important;
    border-radius: 5px !important;
}

.invoice-document .invoice-stay-band.invoice-stay-band--six {
    grid-template-columns: minmax(105px, 1.15fr) repeat(2, minmax(92px, 0.95fr)) repeat(3, minmax(58px, 0.58fr)) !important;
}

#invoice-document .invoice-stay-band span {
    font-size: 8.8px !important;
}

#invoice-document .invoice-stay-band strong {
    font-size: 9.8px !important;
    line-height: 1.1 !important;
}

#invoice-document .invoice-table {
    border: 1.5px solid #263252;
    font-size: 9.8px;
}

#invoice-document .invoice-table th,
#invoice-document .invoice-table td {
    padding: 3px 6px;
    line-height: 1.14;
    border-right: 1px solid #c7d1e1;
    border-bottom: 1px solid #c7d1e1;
}

#invoice-document .invoice-table th:last-child,
#invoice-document .invoice-table td:last-child {
    border-right: 0;
}

#invoice-document .invoice-table thead th {
    padding: 5px 6px;
    font-size: 9.5px;
}

#invoice-document .invoice-table tbody td:first-child,
#invoice-document .invoice-table thead th:first-child {
    width: 60%;
}

#invoice-document .invoice-table tbody td:nth-child(2),
#invoice-document .invoice-table thead th:nth-child(2) {
    width: 8%;
    text-align: center;
}

#invoice-document .invoice-table tbody td:nth-child(3),
#invoice-document .invoice-table thead th:nth-child(3) {
    width: 15%;
}

#invoice-document .invoice-table tbody td:nth-child(4),
#invoice-document .invoice-table thead th:nth-child(4) {
    width: 17%;
}

#invoice-document .invoice-table tbody td:nth-child(2).right,
#invoice-document .invoice-table thead th:nth-child(2).right {
    text-align: center;
}

#invoice-document .invoice-table tfoot th {
    padding: 3px 6px;
    font-size: 9.9px;
    line-height: 1.14;
}

#invoice-document .invoice-table tfoot .grand-total th {
    font-size: 10.5px;
}

#invoice-document .invoice-closing {
    gap: 6px;
    margin: 8px -16px -16px;
    padding: 8px 16px 27px;
}

#invoice-document .invoice-amount-words {
    gap: 2px;
    padding: 6px 8px;
    border-color: #c7d1e1;
    border-radius: 5px;
}

#invoice-document .invoice-amount-words span,
#invoice-document .invoice-payment-grid span {
    font-size: 8.8px;
}

#invoice-document .invoice-amount-words strong {
    font-size: 10.6px;
}

#invoice-document .invoice-payment-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.18fr) minmax(132px, 0.6fr);
    gap: 7px;
}

#invoice-document .invoice-payment-grid > div {
    padding: 6px 8px;
    border-color: #c7d1e1;
    border-radius: 5px;
}

#invoice-document .invoice-payment-grid p {
    margin-top: 3px;
    font-size: 9.2px;
    line-height: 1.18;
}

@media (max-width: 860px) {
    #invoice-document.invoice-document {
        width: calc(100% - 16px);
        margin: 12px auto;
    }
}

@media print {
    html body:not(.print-landscape) #invoice-document.invoice-document {
        width: 194mm !important;
        min-width: 194mm !important;
        max-width: 194mm !important;
        min-height: 281mm !important;
        margin: 8mm auto !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        border: 1px solid #aebbd0 !important;
        border-radius: 4px !important;
    }

    body:not(.print-landscape) #invoice-document .invoice-header-row {
        margin: -15px -15px 9px !important;
        padding: 11px 15px 12px !important;
    }

    body:not(.print-landscape) #invoice-document .invoice-closing {
        margin: 7px -15px -15px !important;
        padding: 7px 15px 26px !important;
    }
}


/* Agenda reminders */
.header-agenda-link {
    position: relative;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d2dce8;
    border-radius: 6px;
    background: #fff;
    color: #31445e;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.header-agenda-link:hover,
.header-agenda-link.active {
    border-color: #0f8077;
    color: #0b6f68;
    background: #edf8f6;
}
.header-agenda-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 10px;
    background: #d94f47;
    color: #fff;
    padding: 0 4px;
    font-size: 9px;
    line-height: 1;
}
.task-reminder-popup {
    position: fixed;
    z-index: 4600;
    top: 84px;
    right: 18px;
    width: min(390px, calc(100vw - 28px));
    border: 1px solid #cddae7;
    border-left: 5px solid #0f8077;
    border-radius: 7px;
    background: #fff;
    color: #15263d;
    box-shadow: 0 18px 48px rgba(19, 35, 58, .24);
    padding: 17px 18px 15px;
    animation: taskReminderIn .24s ease-out;
}
.task-reminder-popup[hidden] {
    display: none !important;
}
.task-reminder-popup[data-priority="haute"] { border-left-color: #d98218; }
.task-reminder-popup[data-priority="urgente"] { border-left-color: #d84e47; }
.task-reminder-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #65758a;
    font-size: 21px;
    cursor: pointer;
}
.task-reminder-label {
    display: inline-flex;
    min-height: 21px;
    align-items: center;
    border-radius: 3px;
    background: #e5f5f2;
    color: #087169;
    padding: 3px 7px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}
.task-reminder-popup h2 {
    margin: 10px 32px 0 0;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: 0;
}
.task-reminder-popup p {
    margin: 7px 0 0;
    color: #4f6076;
    font-size: 13px;
    line-height: 1.4;
}
.task-reminder-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}
.task-reminder-meta {
    color: #52647b;
    font-size: 11px;
    font-weight: 750;
}
.task-reminder-extra {
    color: #b44a43;
    font-size: 10px;
    font-weight: 850;
}
.task-reminder-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 7px;
    margin-top: 14px;
}
.task-reminder-actions button,
.task-reminder-actions a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd7e4;
    border-radius: 5px;
    background: #fff;
    color: #3f5067;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.task-reminder-actions .task-reminder-done {
    border-color: #0f8077;
    background: #0f8077;
    color: #fff;
}
.task-reminder-enable-sound {
    width: 100%;
    min-height: 32px;
    margin-top: 8px;
    border: 1px solid #e1a442;
    border-radius: 5px;
    background: #fff7e8;
    color: #885006;
    font-weight: 800;
    cursor: pointer;
}
@keyframes taskReminderIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
    .header-agenda-link { padding-inline: 9px; }
    .header-agenda-link > span:first-child { display: none; }
    .task-reminder-popup {
        top: auto;
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
    }
    .task-reminder-actions { grid-template-columns: 1fr 1fr; }
    .task-reminder-actions a { grid-column: 1 / -1; }
}


/* Cash customer change and responsive reservations - 2026-08-18 */
.cash-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cash-kpis .cash-change-kpi.alert {
    border-color: #ef9a92;
    background: #fff4f2;
}
.cash-kpis .cash-change-kpi.alert strong {
    color: #b42318;
}
.cash-entry-guide {
    padding: 9px 12px;
    border: 1px solid #bfe4de;
    border-left: 4px solid #0f8076;
    border-radius: 6px;
    background: #f2fbf9;
    color: #315d59;
    font-size: 11px;
    line-height: 1.35;
}
.cash-movement-row {
    position: relative;
    transition: padding-bottom 160ms ease, border-color 160ms ease;
}
.cash-movement-row.has-change-alert {
    padding-bottom: 34px;
    border-color: #efb361;
}
.cash-change-preview {
    position: absolute;
    right: 78px;
    bottom: 5px;
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 8px;
    border: 1px solid #f0bd75;
    border-radius: 999px;
    background: #fff7e8;
    color: #a44b08;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}
.cash-change-preview[hidden] {
    display: none;
}
.cash-table {
    min-width: 1180px;
}
.cash-change-due {
    background: #fff1f0 !important;
    color: #b42318;
    font-weight: 900;
}
.cash-table-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.cash-change-settle {
    min-height: 27px;
    padding: 5px 8px;
    border: 1px solid #a8dfc0;
    border-radius: 5px;
    background: #ecf9f1;
    color: #087443;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}
@media (max-width: 1180px) {
    .cash-change-preview {
        position: static;
        grid-column: 1 / -1;
        justify-self: start;
    }
    .cash-movement-row.has-change-alert {
        padding-bottom: 8px;
    }
}
@media (max-width: 980px) {
    .cash-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .cash-kpis {
        grid-template-columns: 1fr;
    }
}
@media print {
    body.page-caisse #cash-movement-printable .cash-change-due {
        background: #fff1f0 !important;
        color: #b42318 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

body.page-reservations .reservations-table-wrap {
    overflow-x: hidden;
}
body.page-reservations .reservations-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 11px;
}
body.page-reservations .reservations-table th,
body.page-reservations .reservations-table td {
    padding: 5px 4px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.page-reservations .reservations-table th:nth-child(1),
body.page-reservations .reservations-table td:nth-child(1) { width: 28px; }
body.page-reservations .reservations-table th:nth-child(2),
body.page-reservations .reservations-table td:nth-child(2) { width: 62px; }
body.page-reservations .reservations-table th:nth-child(3),
body.page-reservations .reservations-table td:nth-child(3) { width: 11%; max-width: none; }
body.page-reservations .reservations-table th:nth-child(4),
body.page-reservations .reservations-table td:nth-child(4) { width: 9%; max-width: none; }
body.page-reservations .reservations-table th:nth-child(5),
body.page-reservations .reservations-table td:nth-child(5) { width: 8%; max-width: none; }
body.page-reservations .reservations-table th:nth-child(6),
body.page-reservations .reservations-table td:nth-child(6) { width: 7%; max-width: none; }
body.page-reservations .reservations-table th:nth-child(7),
body.page-reservations .reservations-table td:nth-child(7) { width: 8%; max-width: none; }
body.page-reservations .reservations-table th:nth-child(8),
body.page-reservations .reservations-table td:nth-child(8),
body.page-reservations .reservations-table th:nth-child(9),
body.page-reservations .reservations-table td:nth-child(9) { width: 74px; }
body.page-reservations .reservations-table th:nth-child(10),
body.page-reservations .reservations-table td:nth-child(10) { width: 44px; text-align: center; }
body.page-reservations .reservations-table th:nth-child(11),
body.page-reservations .reservations-table td:nth-child(11) { width: 86px; }
body.page-reservations .reservations-table th:nth-child(12),
body.page-reservations .reservations-table td:nth-child(12) { width: 94px; }
body.page-reservations .reservations-table th:nth-child(13),
body.page-reservations .reservations-table td:nth-child(13) { width: 72px; }
body.page-reservations .reservations-table th:last-child,
body.page-reservations .reservations-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 3;
    width: 202px;
    overflow: visible;
    background: #fff;
    box-shadow: -7px 0 12px rgba(15, 23, 42, .07);
}
body.page-reservations .reservations-table thead th:last-child {
    z-index: 5;
    background: #f8fafc;
}
body.page-reservations .reservations-table tr.reservation-not-invoiced td:last-child {
    background: #fff7e8;
}
body.page-reservations .reservations-table tr.reservation-not-invoiced:hover td:last-child {
    background: #ffefd4;
}
body.page-reservations .reservations-table .inline-actions {
    gap: 3px;
    flex-wrap: nowrap;
}
body.page-reservations .reservations-table .small-button {
    min-height: 24px;
    padding: 4px 5px;
    border-radius: 5px;
    font-size: 9px;
}

/* Reservations groupees - synthese premium */
body.page-reservations .reservations-panel {
    background: linear-gradient(145deg, #fffdf7 0%, #ffffff 42%, #f5fbfa 100%);
    border-color: #efd79a;
    box-shadow: 0 18px 42px rgba(71, 52, 14, .10), inset 0 1px 0 #fff;
}
.reservation-group-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    padding: 9px 12px;
    border: 1px solid #e8d29b;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff9e8, #fff);
}
.reservation-group-toolbar > div { display: flex; align-items: baseline; gap: 8px; }
.reservation-group-toolbar strong { color: #17324d; font-size: 13px; }
.reservation-group-toolbar small { color: #7a6a44; font-size: 10px; }
.reservation-group-toolbar button { display: inline-flex; align-items: center; gap: 6px; }
.reservation-group-toolbar button svg { width: 14px; height: 14px; }
.reservation-group-toolbar button:disabled { opacity: .45; cursor: not-allowed; }
.reservation-groups { display: grid; gap: 7px; }
.reservation-group-card {
    overflow: hidden;
    border: 1px solid #d6e1e7;
    border-left: 4px solid #0e8a7c;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(15, 58, 75, .07), inset 0 1px 0 #fff;
    transition: transform .16s ease, box-shadow .16s ease;
}
.reservation-group-card.is-pending { border-left-color: #f2a900; background: linear-gradient(90deg, #fff9ea 0, #fff 17%); }
.reservation-group-card:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(15, 58, 75, .12); }
.reservation-group-summary {
    display: grid;
    grid-template-columns: 28px minmax(108px,.7fr) minmax(160px,1.35fr) minmax(170px,1.15fr) minmax(150px,1fr) minmax(105px,.65fr) minmax(92px,.55fr) 72px;
    align-items: center;
    min-height: 58px;
    gap: 8px;
    padding: 6px 9px;
}
.reservation-group-summary svg { width: 17px; height: 17px; flex: 0 0 auto; }
.reservation-group-check { display: grid; place-items: center; cursor: pointer; }
.reservation-group-check input { width: 17px; height: 17px; accent-color: #0e8a7c; }
.reservation-group-toggle {
    display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0; padding: 4px 0;
    border: 0; background: transparent; color: #10233f; text-align: left; box-shadow: none;
}
.reservation-group-toggle > svg { color: #b77a00; transition: transform .18s ease; }
.reservation-group-toggle[aria-expanded="true"] > svg { transform: rotate(90deg); }
.reservation-group-toggle:hover,
.reservation-group-toggle:focus,
.reservation-group-toggle:active,
.reservation-group-toggle[aria-expanded="true"] { background: transparent; color: #10233f; box-shadow: none; }
.reservation-group-toggle span, .reservation-group-party, .reservation-group-stay span, .reservation-group-rooms span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.reservation-group-summary strong, .reservation-group-summary small, .reservation-group-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reservation-group-toggle strong { font-size: 13px; font-weight: 950; }
.reservation-group-toggle small, .reservation-group-party span, .reservation-group-stay small, .reservation-group-rooms small { color: #718096; font-size: 9px; }
.reservation-group-party strong, .reservation-group-stay strong, .reservation-group-rooms strong { color: #17324d; font-size: 11px; }
.reservation-group-stay, .reservation-group-rooms { display: flex; align-items: center; gap: 7px; min-width: 0; }
.reservation-group-stay > svg { color: #087f73; }
.reservation-group-rooms > svg { color: #ca8500; }
.reservation-group-total { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.reservation-group-total small { color: #7a6a44; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.reservation-group-total strong { color: #0c665e; font-size: 13px; font-variant-numeric: tabular-nums; }
.reservation-group-invoice {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 29px; padding: 5px 7px;
    border: 1px solid; border-radius: 6px; font-size: 9px; font-weight: 900; text-decoration: none;
}
.reservation-group-invoice svg { width: 13px; height: 13px; }
.reservation-group-invoice.is-due { color: #a75a00; border-color: #f2c36b; background: #fff3d7; }
.reservation-group-invoice.is-partial { color: #7854b8; border-color: #cbb6ef; background: #f5efff; }
.reservation-group-invoice.is-done { color: #08785d; border-color: #9edbc9; background: #e9fbf4; }
.reservation-group-actions { display: flex; justify-content: flex-end; gap: 5px; }
.reservation-group-actions form { margin: 0; }
.reservation-icon-action, .reservation-detail-row a {
    display: inline-grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 1px solid #a8d7d1;
    border-radius: 6px; background: linear-gradient(145deg,#f1fffc,#dff6f2); color: #087f73; box-shadow: 0 3px 7px rgba(8,127,115,.12);
}
button.reservation-icon-action { cursor: pointer; }
.reservation-icon-action svg, .reservation-detail-row a svg { width: 15px; height: 15px; }
.reservation-icon-action.is-danger { color: #c53b43; border-color: #efb9bd; background: linear-gradient(145deg,#fff7f7,#ffe5e7); }
.reservation-group-details { border-top: 1px solid #dce8ec; background: #f8fbfc; }
.reservation-detail-head, .reservation-detail-row { display: grid; grid-template-columns: 1.5fr 1.1fr .75fr .75fr 42px; align-items: center; gap: 10px; padding: 7px 12px 7px 45px; }
.reservation-detail-head { color: #68788b; background: #edf4f5; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.reservation-detail-row { min-height: 45px; border-top: 1px solid #e2eaee; color: #17324d; font-size: 10px; }
.reservation-detail-row > div { min-width: 0; }
.reservation-detail-row strong, .reservation-detail-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reservation-detail-row small { margin-top: 2px; color: #718096; font-size: 9px; }
.reservation-detail-row a { width: 28px; height: 28px; }
.reservation-groups-empty { padding: 30px; border: 1px dashed #cfdae0; border-radius: 8px; color: #718096; text-align: center; }

@media (max-width: 1100px) {
    .reservation-group-summary { grid-template-columns: 28px 110px minmax(150px,1.3fr) minmax(155px,1fr) minmax(105px,.75fr) 90px 70px; }
    .reservation-group-rooms { display: none; }
}
@media (max-width: 760px) {
    body.page-reservations .reservations-panel { padding: 8px; }
    .reservation-group-toolbar { align-items: stretch; }
    .reservation-group-toolbar > div { flex-direction: column; gap: 0; }
    .reservation-group-toolbar button span { display: none; }
    .reservation-group-toolbar button { width: 36px; height: 36px; justify-content: center; padding: 0; }
    .reservation-group-summary { grid-template-columns: 24px 66px minmax(82px,1fr) 54px 29px 58px; gap: 4px; min-height: 54px; padding: 5px 6px; }
    .reservation-group-stay { display: none; }
    .reservation-group-invoice span { display: none; }
    .reservation-group-invoice { width: 31px; padding: 0; }
    .reservation-group-actions { gap: 3px; }
    .reservation-group-actions .reservation-icon-action { width: 29px; height: 29px; }
    .reservation-group-total strong { font-size: 10px; }
    .reservation-group-party strong { font-size: 10px; }
    .reservation-group-party span { font-size: 8px; }
    .reservation-group-toggle strong { font-size: 11px; }
    .reservation-detail-head { display: none; }
    .reservation-detail-row { grid-template-columns: minmax(105px,1.4fr) minmax(85px,1fr) 75px 30px; gap: 5px; padding: 6px 7px 6px 34px; }
    .reservation-detail-row > div:nth-child(3) { display: none; }
    .reservation-detail-row strong { font-size: 9px; }
}
@media (max-width: 1180px) {
    body.page-reservations .reservations-table th:nth-child(6),
    body.page-reservations .reservations-table td:nth-child(6),
    body.page-reservations .reservations-table th:nth-child(7),
    body.page-reservations .reservations-table td:nth-child(7) {
        display: none;
    }
    body.page-reservations .reservations-table th:last-child,
    body.page-reservations .reservations-table td:last-child {
        width: 190px;
    }
}
@media (max-width: 980px) {
    body.page-reservations .reservations-table th:nth-child(3),
    body.page-reservations .reservations-table td:nth-child(3),
    body.page-reservations .reservations-table th:nth-child(11),
    body.page-reservations .reservations-table td:nth-child(11) {
        display: none;
    }
    body.page-reservations .reservations-table th:last-child,
    body.page-reservations .reservations-table td:last-child {
        width: 180px;
    }
}


/* Persistent customer change alerts - 2026-08-18 */
.cash-customer-alerts {
    overflow: hidden;
    border: 1px solid #efb2ab;
    border-left: 5px solid #c62f28;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(180, 35, 24, .08);
}
.cash-customer-alert-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 15px;
    background: #fff4f2;
}
.cash-customer-alert-heading span {
    color: #b42318;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}
.cash-customer-alert-heading h2 {
    margin: 2px 0;
    font-size: 16px;
}
.cash-customer-alert-heading p {
    margin: 0;
    color: #72514e;
    font-size: 11px;
}
.cash-customer-alert-heading > strong {
    color: #b42318;
    font-size: 20px;
    white-space: nowrap;
}
.cash-customer-alert-list {
    display: grid;
    gap: 0;
}
.cash-customer-alert-item {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 10px 15px;
    border-top: 1px solid #f0d5d2;
}
.cash-customer-alert-item > div > strong,
.cash-customer-alert-item > div > span {
    display: block;
}
.cash-customer-alert-item > div > span {
    margin-top: 2px;
    color: #667085;
    font-size: 10px;
}
.cash-customer-alert-item dl {
    display: flex;
    gap: 18px;
    margin: 0;
}
.cash-customer-alert-item dl div {
    min-width: 82px;
    text-align: right;
}
.cash-customer-alert-item dt {
    color: #667085;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}
.cash-customer-alert-item dd {
    margin: 2px 0 0;
    font-weight: 900;
    white-space: nowrap;
}
.cash-customer-alert-item dl div:last-child dd {
    color: #b42318;
}
.cash-customer-alert-item form {
    margin: 0;
}
.cash-customer-alert-item button {
    min-height: 31px;
    padding: 6px 10px;
    border: 1px solid #d65b52;
    border-radius: 5px;
    background: #fff;
    color: #a5221c;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}
.cash-customer-alert-item button:hover {
    background: #b42318;
    color: #fff;
}
@media (max-width: 760px) {
    .cash-customer-alert-item {
        grid-template-columns: 1fr;
        gap: 9px;
    }
    .cash-customer-alert-item dl {
        justify-content: space-between;
    }
    .cash-customer-alert-item dl div {
        min-width: 0;
        text-align: left;
    }
    .cash-customer-alert-item button {
        width: 100%;
    }
}
@media print {
    body.page-caisse .cash-customer-alerts {
        display: none !important;
    }
}


/* Print pagination hardening: cash report and portrait invoice - 2026-08-18 */
@media print {
    @page cash-movement-page {
        size: A4 landscape;
        margin: 7mm;
    }

    html:has(body.page-caisse),
    body.page-caisse {
        width: 283mm !important;
        min-width: 283mm !important;
        max-width: 283mm !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }
    body.page-caisse {
        page: cash-movement-page;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body.page-caisse * {
        visibility: visible !important;
    }
    body.page-caisse > :not(main.content):not(script),
    body.page-caisse main.content > :not(#cash-movement-printable),
    body.page-caisse #cash-movement-printable .no-print {
        display: none !important;
    }
    body.page-caisse main.content {
        display: block !important;
        width: 283mm !important;
        min-width: 283mm !important;
        max-width: 283mm !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    body.page-caisse #cash-movement-printable {
        position: static !important;
        inset: auto !important;
        display: block !important;
        width: 283mm !important;
        min-width: 283mm !important;
        max-width: 283mm !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        break-after: auto !important;
        page-break-after: auto !important;
    }
    body.page-caisse #cash-movement-printable .cash-print-heading {
        margin: 0 0 5mm !important;
        padding: 0 0 3mm !important;
        border-bottom: 2px solid #101846;
    }
    body.page-caisse #cash-movement-printable .cash-print-heading h2 {
        margin: 0 0 1mm !important;
        font-size: 17px !important;
        line-height: 1.1 !important;
    }
    body.page-caisse #cash-movement-printable .cash-print-heading p {
        margin: 0 !important;
        font-size: 9px !important;
        line-height: 1.25 !important;
    }
    body.page-caisse #cash-movement-printable .table-wrap {
        width: 100% !important;
        overflow: visible !important;
    }
    body.page-caisse #cash-movement-printable .cash-table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        font-size: 8px !important;
    }
    body.page-caisse #cash-movement-printable .cash-table thead {
        display: table-header-group !important;
    }
    body.page-caisse #cash-movement-printable .cash-table tfoot {
        display: table-footer-group !important;
    }
    body.page-caisse #cash-movement-printable .cash-table tr {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
    body.page-caisse #cash-movement-printable .cash-table th,
    body.page-caisse #cash-movement-printable .cash-table td {
        min-width: 0 !important;
        height: auto !important;
        padding: 3px 3px !important;
        overflow: hidden !important;
        vertical-align: top !important;
        line-height: 1.16 !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }
    body.page-caisse #cash-movement-printable .cash-table th {
        font-size: 7.2px !important;
    }
    body.page-caisse #cash-movement-printable .cash-table td.right,
    body.page-caisse #cash-movement-printable .cash-table .money-nowrap {
        overflow: visible !important;
        overflow-wrap: normal !important;
        white-space: nowrap !important;
        font-variant-numeric: tabular-nums;
    }
    /* The print grid is controlled by columns, so browser table sizing cannot widen a field. */
    body.page-caisse #cash-movement-printable .cash-table th:nth-child(n),
    body.page-caisse #cash-movement-printable .cash-table td:nth-child(n) {
        width: auto !important;
    }
    body.page-caisse #cash-movement-printable .cash-table col.no-print {
        display: none !important;
    }
    body.page-caisse #cash-movement-printable .cash-table col.cash-print-date { width: 8% !important; }
    body.page-caisse #cash-movement-printable .cash-table col.cash-print-type { width: 9% !important; }
    body.page-caisse #cash-movement-printable .cash-table col.cash-print-designation { width: 28% !important; }
    body.page-caisse #cash-movement-printable .cash-table col.cash-print-beneficiary { width: 7% !important; }
    body.page-caisse #cash-movement-printable .cash-table col.cash-print-amount { width: 11% !important; }
    body.page-caisse #cash-movement-printable .cash-table col.cash-print-handed { width: 9% !important; }
    body.page-caisse #cash-movement-printable .cash-table col.cash-print-change { width: 6% !important; }
    body.page-caisse #cash-movement-printable .cash-table col.cash-print-collect { width: 7% !important; }
    body.page-caisse #cash-movement-printable .cash-table col.cash-print-refund { width: 7% !important; }
    body.page-caisse #cash-movement-printable .cash-table col.cash-print-responsible { width: 8% !important; }
    body.page-caisse #cash-movement-printable .cash-table th:nth-child(2),
    body.page-caisse #cash-movement-printable .cash-table td:nth-child(2) { width: 8% !important; }
    body.page-caisse #cash-movement-printable .cash-table th:nth-child(3),
    body.page-caisse #cash-movement-printable .cash-table td:nth-child(3) { width: 9% !important; }
    body.page-caisse #cash-movement-printable .cash-table th:nth-child(4),
    body.page-caisse #cash-movement-printable .cash-table td:nth-child(4) { width: 18% !important; }
    body.page-caisse #cash-movement-printable .cash-table th:nth-child(5),
    body.page-caisse #cash-movement-printable .cash-table td:nth-child(5) { width: 11% !important; }
    body.page-caisse #cash-movement-printable .cash-table th:nth-child(6),
    body.page-caisse #cash-movement-printable .cash-table td:nth-child(6),
    body.page-caisse #cash-movement-printable .cash-table th:nth-child(7),
    body.page-caisse #cash-movement-printable .cash-table td:nth-child(7),
    body.page-caisse #cash-movement-printable .cash-table th:nth-child(8),
    body.page-caisse #cash-movement-printable .cash-table td:nth-child(8) { width: 8% !important; }
    body.page-caisse #cash-movement-printable .cash-table th:nth-child(9),
    body.page-caisse #cash-movement-printable .cash-table td:nth-child(9),
    body.page-caisse #cash-movement-printable .cash-table th:nth-child(10),
    body.page-caisse #cash-movement-printable .cash-table td:nth-child(10),
    body.page-caisse #cash-movement-printable .cash-table th:nth-child(11),
    body.page-caisse #cash-movement-printable .cash-table td:nth-child(11) { width: 7% !important; }
    body.page-caisse #cash-movement-printable .cash-table td small {
        margin-top: 1px !important;
        font-size: 7px !important;
        line-height: 1.12 !important;
    }
    body.page-caisse #cash-movement-printable .cash-statement-summary {
        display: table !important;
        table-layout: fixed !important;
        width: 100% !important;
        margin: 0 !important;
        border-color: #d8e0eb !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    body.page-caisse #cash-movement-printable .cash-statement-summary td {
        display: table-cell !important;
        width: 25% !important;
        padding: 7px 6px !important;
        border-color: #d8e0eb !important;
        font-size: 8px !important;
        vertical-align: middle !important;
    }
    body.page-caisse #cash-movement-printable .cash-statement-summary span {
        display: block !important;
        white-space: nowrap !important;
    }
    body.page-caisse #cash-movement-printable .cash-statement-summary strong {
        display: block !important;
        margin-top: 3px !important;
        font-size: 9px !important;
    }
    body.page-caisse #cash-movement-printable .cash-statement-summary .cash-total-fund { background: #eef4ff !important; color: #1e4d8f !important; }
    body.page-caisse #cash-movement-printable .cash-statement-summary .cash-total-entry { background: #e8f8ee !important; color: #087443 !important; }
    body.page-caisse #cash-movement-printable .cash-statement-summary .cash-total-exit { background: #fff2e1 !important; color: #a54d07 !important; }
    body.page-caisse #cash-movement-printable .cash-statement-summary .cash-total-final { background: #e8f0fb !important; color: #1e3a8a !important; }
    body.page-caisse #cash-movement-printable .cash-nature {
        max-width: 100% !important;
        padding: 2px 4px !important;
        border-radius: 3px !important;
        font-size: 7px !important;
        white-space: normal !important;
    }

    @page invoice-portrait-page {
        size: A4 portrait;
        margin: 0;
    }
    html:has(body.page-facturation:not(.print-landscape)),
    body.page-facturation:not(.print-landscape) {
        width: 210mm !important;
        min-width: 210mm !important;
        max-width: 210mm !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }
    body.page-facturation:not(.print-landscape) {
        page: invoice-portrait-page;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body.page-facturation:not(.print-landscape) > :not(main.content):not(script),
    body.page-facturation:not(.print-landscape) main.content > :not(#invoice-document),
    body.page-facturation:not(.print-landscape) #invoice-document .no-print {
        display: none !important;
    }
    body.page-facturation:not(.print-landscape) main.content {
        display: block !important;
        width: 210mm !important;
        min-width: 210mm !important;
        max-width: 210mm !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }
    body.page-facturation:not(.print-landscape) #invoice-document.invoice-document {
        display: block !important;
        width: 194mm !important;
        min-width: 194mm !important;
        max-width: 194mm !important;
        height: auto !important;
        min-height: 285mm !important;
        max-height: none !important;
        margin: 6mm 8mm 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        break-inside: auto !important;
        page-break-inside: auto !important;
        break-after: auto !important;
        page-break-after: auto !important;
    }
    body.page-facturation:not(.print-landscape) #invoice-document table {
        break-inside: auto !important;
        page-break-inside: auto !important;
    }
    body.page-facturation:not(.print-landscape) #invoice-document thead {
        display: table-header-group !important;
    }
    body.page-facturation:not(.print-landscape) #invoice-document tr {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
    body.page-facturation:not(.print-landscape) #invoice-document > :last-child {
        margin-bottom: 0 !important;
        break-after: auto !important;
        page-break-after: auto !important;
    }
}


/* Cash handover change tracking - 2026-08-18 */
.cash-handover-alerts .cash-customer-alert-heading {
    background: linear-gradient(135deg, #7c2d12, #c2410c);
}
.cash-handover-alert-item {
    border-left-color: #ea580c;
}
.cash-close-form {
    display: grid;
    grid-template-columns: minmax(145px, .75fr) minmax(180px, .9fr) minmax(220px, 1.4fr) minmax(230px, 1.25fr) auto;
    align-items: end;
    gap: 10px;
}
.cash-close-form label {
    min-width: 0;
}
.cash-close-form input {
    width: 100%;
}
.cash-handover-preview {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid #d7e0ea;
    border-radius: 7px;
    background: #f7f9fc;
    color: #53627a;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
}
.cash-handover-preview.is-due,
.cash-handover-due {
    background: #fff4e8;
    color: #a94300;
}
.cash-handover-preview.is-short {
    background: #fff0f0;
    color: #b42318;
}
.cash-handover-preview.is-balanced {
    background: #eaf8ef;
    color: #087443;
}
.cash-handover-due strong,
.cash-handover-due small,
.cash-handover-settled,
.cash-history-table td small {
    display: block;
    white-space: nowrap;
}
.cash-handover-settled {
    color: #087443;
    font-weight: 800;
}
.cash-history-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.cash-history-actions form {
    margin: 0;
}
@media (max-width: 1050px) {
    .cash-close-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cash-close-form .cash-handover-preview {
        grid-column: 1 / -1;
    }
}
@media (max-width: 680px) {
    .cash-close-form {
        grid-template-columns: 1fr;
    }
    .cash-close-form .cash-handover-preview {
        grid-column: auto;
    }
}
.dashboard-briefing { margin: 0 0 20px; padding: 20px; border: 1px solid #dce7e8; border-radius: 14px; background: linear-gradient(135deg, #f7fbfb 0%, #ffffff 58%, #f7faff 100%); box-shadow: 0 10px 28px rgba(15, 55, 65, .06); }
.dashboard-briefing-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid #e3ecee; }
.dashboard-briefing-head h2 { margin: 3px 0 4px; color: #172b4d; font-size: 23px; }
.dashboard-briefing-head p { margin: 0; color: #64748b; font-size: 13px; }
.dashboard-briefing-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dashboard-live-dot { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: #e6f8f1; color: #087f5b; font-size: 12px; font-weight: 800; }
.dashboard-live-dot i { width: 7px; height: 7px; border-radius: 50%; background: #12b886; }
.dashboard-briefing-link, .briefing-more { color: #0f766e; font-weight: 800; text-decoration: none; }
.dashboard-briefing-link { padding: 8px 10px; border: 1px solid #cde1e0; border-radius: 7px; background: #fff; font-size: 12px; }
.dashboard-briefing-link:hover, .briefing-more:hover { text-decoration: underline; }
.dashboard-briefing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 16px; }
.dashboard-briefing-card { min-width: 0; padding: 15px; border: 1px solid #dce5eb; border-radius: 10px; background: #fff; box-shadow: 0 5px 14px rgba(15, 23, 42, .045); }
.dashboard-briefing-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 47px; }
.dashboard-briefing-card-head h3 { margin: 3px 0 0; color: #172b4d; font-size: 16px; line-height: 1.2; }
.briefing-label { color: #0f766e; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-briefing-card-head > strong { color: #172b4d; font-size: 26px; line-height: 1; white-space: nowrap; }
.dashboard-briefing-card-head > strong small { color: #8a99a8; font-size: 13px; }
.briefing-list { display: grid; gap: 1px; margin: 9px 0 10px; min-height: 122px; align-content: start; }
.briefing-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 8px 0; border-bottom: 1px solid #edf2f4; color: #26364b; text-decoration: none; }
.briefing-list a:hover { color: #0f766e; }
.briefing-list a > span { display: grid; min-width: 0; }
.briefing-list b, .briefing-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.briefing-list b { font-size: 12px; }
.briefing-list small { margin-top: 2px; color: #718096; font-size: 11px; }
.briefing-list em { flex: 0 0 auto; color: #64748b; font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.briefing-movements .is-arrival { border-left: 3px solid #16a085; padding-left: 7px; }
.briefing-movements .is-departure { border-left: 3px solid #e29a28; padding-left: 7px; }
.briefing-empty { margin: 12px 0; color: #8a99a8; font-size: 12px; }
.briefing-more { display: inline-block; font-size: 11px; }
.briefing-cash-total { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 9px 0 4px; }
.briefing-cash-total span { padding: 8px; border-radius: 7px; background: #f5f8fa; color: #64748b; font-size: 10px; font-weight: 800; }
.briefing-cash-total b { display: block; margin-top: 3px; color: #087f5b; font-size: 12px; }
.briefing-cash-total span:last-child b, .briefing-cash-list .cash-out { color: #c2413b; }
.briefing-alert-list { display: grid; gap: 7px; min-height: 158px; margin: 9px 0 10px; align-content: start; }
.briefing-alert-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 7px; color: #475569; font-size: 12px; font-weight: 700; text-decoration: none; }
.briefing-alert-list a b { min-width: 24px; padding: 3px 6px; border-radius: 999px; text-align: center; }
.briefing-alert-list .has-alert { background: #fff4e8; color: #9a4b0b; }
.briefing-alert-list .has-alert b { background: #f59e0b; color: #fff; }
.briefing-alert-list .is-clear { background: #eefaf5; color: #18794e; }
.briefing-alert-list .is-clear b { background: #d4f3e4; color: #18794e; }
@media (max-width: 1200px) { .dashboard-briefing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dashboard-briefing { padding: 14px; border-radius: 10px; } .dashboard-briefing-head { align-items: flex-start; flex-direction: column; } .dashboard-briefing-actions { justify-content: flex-start; } .dashboard-briefing-grid { grid-template-columns: 1fr; } .dashboard-briefing-card-head > strong { font-size: 23px; } }
/* Suivi des commandes serveur : lecture instantanée et tactile */
.server-order-tracker {
    margin: 0 0 18px;
    padding: 20px;
    border: 1px solid #d8e4ed;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f8fa 100%);
    box-shadow: 0 10px 28px rgba(28, 52, 77, .08);
}
.server-order-tracker-head,
.server-order-card-topline,
.server-order-card-title,
.server-order-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.server-order-tracker-head { margin-bottom: 16px; }
.server-order-tracker-head h2 { margin: 0; color: #172943; font-size: clamp(20px, 2vw, 28px); }
.server-order-tracker-head p:not(.section-kicker) { margin: 4px 0 0; color: #607289; font-size: 13px; }
.server-order-tracker .section-kicker { margin: 0 0 5px; color: #087a70; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.server-order-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.server-order-filter { min-height: 66px; padding: 10px 12px; border: 1px solid #d3e0e9; border-radius: 9px; background: #fff; color: #52647a; text-align: left; cursor: pointer; transition: .18s ease; }
.server-order-filter strong, .server-order-filter span { display: block; }
.server-order-filter strong { color: #182e49; font-size: 22px; line-height: 1; }
.server-order-filter span { margin-top: 5px; font-size: 11px; font-weight: 800; }
.server-order-filter:hover, .server-order-filter.is-active { border-color: #087a70; background: #e5f6f2; color: #075f58; box-shadow: 0 5px 14px rgba(8, 122, 112, .12); }
.server-order-filter.is-active strong { color: #087a70; }
.server-order-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.server-order-card { min-width: 0; padding: 15px; border: 1px solid #cfdae4; border-left: 5px solid #7890a7; border-radius: 10px; background: #fff; box-shadow: 0 5px 15px rgba(28, 52, 77, .07); }
.server-order-card.status-a_preparer { border-left-color: #e28b1b; background: #fffaf1; }
.server-order-card.status-en_preparation { border-left-color: #087a70; background: #f2fbf9; }
.server-order-card.status-livree { border-left-color: #3479bb; background: #f3f8ff; }
.server-order-status { display: inline-flex; align-items: center; gap: 6px; color: #66778a; font-size: 11px; font-weight: 900; }
.server-order-status i { width: 8px; height: 8px; border-radius: 50%; background: #7890a7; }
.status-a_preparer .server-order-status { color: #9a5b05; }
.status-a_preparer .server-order-status i { background: #e28b1b; }
.status-en_preparation .server-order-status { color: #087a70; }
.status-en_preparation .server-order-status i { background: #087a70; }
.status-livree .server-order-status { color: #28649c; }
.status-livree .server-order-status i { background: #3479bb; }
.server-order-card time { color: #738399; font-size: 12px; font-weight: 800; }
.server-order-card-title { align-items: flex-start; margin-top: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(166, 184, 199, .45); }
.server-order-card-title h3 { overflow: hidden; margin: 0; color: #182e49; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.server-order-card-title p { margin: 4px 0 0; color: #6c7f91; font-size: 12px; font-weight: 700; }
.server-order-card-title > strong { flex: 0 0 auto; color: #087a70; font-size: 15px; white-space: nowrap; }
.server-order-items { display: grid; gap: 5px; min-height: 50px; margin: 11px 0; padding: 0; color: #344b63; font-size: 13px; list-style: none; }
.server-order-items li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-order-items b { display: inline-block; min-width: 24px; color: #087a70; }
.server-order-card-actions { justify-content: flex-start; padding-top: 10px; border-top: 1px solid rgba(166, 184, 199, .45); }
.server-order-card-actions .small-button { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.server-order-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 34px 16px; border: 1px dashed #b9cad7; border-radius: 10px; background: rgba(255,255,255,.7); color: #65788d; text-align: center; }
.server-order-empty strong { color: #1d3551; font-size: 17px; }
.server-order-empty span { font-size: 13px; }
@media (max-width: 1050px) { .server-order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
    .server-order-tracker { padding: 13px; border-radius: 9px; }
    .server-order-tracker-head { align-items: flex-start; }
    .server-order-tracker-head h2 { font-size: 21px; }
    .server-order-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .server-order-grid { grid-template-columns: 1fr; }
    .server-order-card-title h3 { font-size: 15px; }
}

/* Priorite finale : densite et finition de la page Reservations */
body.page-reservations .reservations-panel { padding: 8px; border-color: #e4c66e; border-radius: 8px; background: rgba(255,255,255,.84); }
body.page-reservations .reservation-pending-strip { min-height: 34px; margin-bottom: 6px; padding: 5px 8px; border-color: #e5c36a; border-radius: 6px; background: linear-gradient(110deg,#fff9e6,#fffdf7); }
body.page-reservations .reservation-pending-strip > span { font-size: 9px; }
body.page-reservations .reservation-pending-strip a,
body.page-reservations .reservation-pending-strip em { min-height: 22px; padding: 3px 7px; font-size: 9px; }
body.page-reservations .reservation-group-toolbar { min-height: 32px; margin: 0 0 6px; padding: 4px 8px; border-radius: 6px; background: linear-gradient(135deg,#fff8df,#fff); }
body.page-reservations .reservation-groups { gap: 4px; }
body.page-reservations .reservation-group-card { border-color: #e3d3a7; border-left-width: 3px; border-radius: 6px; box-shadow: 0 3px 8px rgba(64,46,11,.07), inset 0 1px 0 #fff; }
body.page-reservations .reservation-group-card.is-pending { border-left-color: #d99a00; background: linear-gradient(92deg,#fff5ce 0,#fffdf8 14%,#fff 45%); }
body.page-reservations .reservation-group-card:hover { transform: translateY(-1px); border-color: #d5b352; box-shadow: 0 7px 15px rgba(92,62,5,.13), inset 0 1px 0 #fff; }
body.page-reservations .reservation-group-summary { grid-template-columns: 24px minmax(102px,.68fr) minmax(145px,1.3fr) minmax(150px,1.05fr) minmax(130px,.9fr) minmax(100px,.62fr) minmax(88px,.52fr) 66px; min-height: 44px; gap: 6px; padding: 3px 7px; }
body.page-reservations .reservation-group-summary svg { width: 15px; height: 15px; }
body.page-reservations .reservation-group-check input { width: 15px; height: 15px; }
body.page-reservations .reservation-group-toggle { gap: 5px; padding: 2px 0; }
body.page-reservations .reservation-group-toggle strong { font-size: 11px; }
body.page-reservations .reservation-group-party strong,
body.page-reservations .reservation-group-stay strong,
body.page-reservations .reservation-group-rooms strong { font-size: 10px; }
body.page-reservations .reservation-group-toggle small,
body.page-reservations .reservation-group-party span,
body.page-reservations .reservation-group-stay small,
body.page-reservations .reservation-group-rooms small { font-size: 8px; }
body.page-reservations .reservation-group-total strong { color: #8b5d00; font-size: 11px; }
body.page-reservations .reservation-group-invoice { min-height: 25px; padding: 3px 5px; border-radius: 5px; font-size: 8px; }
body.page-reservations .reservation-icon-action,
body.page-reservations .reservation-detail-row a { width: 27px; height: 27px; border-radius: 5px; }
body.page-reservations .reservation-icon-action svg,
body.page-reservations .reservation-detail-row a svg { width: 13px; height: 13px; }
body.page-reservations .reservation-detail-head,
body.page-reservations .reservation-detail-row { padding-top: 5px; padding-bottom: 5px; }
body.page-reservations .reservation-detail-row { min-height: 38px; }
@media (max-width: 1100px) {
    body.page-reservations .reservation-group-summary { grid-template-columns: 24px 96px minmax(135px,1.25fr) minmax(140px,1fr) minmax(95px,.72fr) 82px 62px; }
}
@media (max-width: 760px) {
    body.page-reservations .reservations-panel { padding: 5px; }
    body.page-reservations .reservation-pending-strip,
    body.page-reservations .reservation-group-toolbar { margin-bottom: 4px; }
    body.page-reservations .reservation-groups { gap: 3px; }
    body.page-reservations .reservation-group-summary { grid-template-columns: 20px 62px minmax(76px,1fr) 50px 27px 56px; min-height: 42px; gap: 3px; padding: 2px 4px; }
    body.page-reservations .reservation-group-invoice { width: 27px; min-height: 27px; }
    body.page-reservations .reservation-group-actions .reservation-icon-action { width: 27px; height: 27px; }
}
@media (max-width: 430px) {
    body.page-reservations .reservation-group-summary { grid-template-columns: 19px 58px minmax(66px,1fr) 46px 26px 54px; }
    body.page-reservations .reservation-group-toggle small { display: none; }
}

/* Caisse: saisie claire, retours traçables et tableau compact. */
@media screen {
    body.page-caisse { background:linear-gradient(145deg,#edf4f4 0%,#f8faf9 42%,#fffaf0 100%); }
    body.page-caisse .page-head { margin-bottom:12px; }
    body.page-caisse .page-head h1 { color:#112c35; }
    body.page-caisse .panel { border:1px solid #d9e5e3; border-radius:8px; background:#fff; box-shadow:0 6px 18px rgba(12,58,61,.06),inset 0 1px 0 #fff; }
    body.page-caisse .section-gap { margin-top:12px; }
    body.page-caisse .cash-session-banner { align-items:center; padding:12px 16px; border:1px solid #b6d9cf; border-left:4px solid #c99a32; border-radius:7px; background:linear-gradient(110deg,#f8fffc,#fffdf5); box-shadow:0 5px 14px rgba(19,63,61,.07); }
    body.page-caisse .cash-session-banner strong { margin-top:3px; font-size:17px; }
    body.page-caisse .cash-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
    body.page-caisse .cash-kpis article { padding:11px 13px; border-color:#dce7e5; border-radius:7px; background:linear-gradient(150deg,#fff,#f6faf9); box-shadow:0 3px 9px rgba(14,54,58,.04); }
    body.page-caisse .cash-kpis article.alert { border-color:#e9bc62; background:linear-gradient(150deg,#fffdf7,#fff5dd); }
    body.page-caisse .cash-kpis strong { margin-top:4px; font-size:18px; }
    body.page-caisse .cash-kpis small { line-height:1.25; }
    body.page-caisse .cash-movement-panel { padding:13px 15px; }
    body.page-caisse .cash-movement-title { margin-bottom:8px; }
    body.page-caisse .cash-movement-title h2,
    body.page-caisse .cash-print-heading h2 { font-size:17px; }
    body.page-caisse .cash-entry-guide { padding:7px 10px; font-size:11px; }
    body.page-caisse .cash-movement-head { display:none; }
    body.page-caisse .cash-movement-row { position:relative; display:grid; grid-template-columns:145px 135px minmax(170px,1.4fr) minmax(155px,1fr) minmax(130px,.9fr); gap:7px 9px; min-width:0; padding:10px; border:1px solid #d6e3e1; border-left:3px solid #0b8174; border-radius:6px; background:linear-gradient(125deg,#f9fdfc,#fff); }
    body.page-caisse .cash-movement-row.has-change-alert { padding-bottom:10px; border-color:#dca846; }
    body.page-caisse .cash-movement-row > label { display:grid; gap:3px; min-width:0; color:#344e55; font-size:10px; font-weight:750; }
    body.page-caisse .cash-movement-row > label span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    body.page-caisse .cash-movement-row input,
    body.page-caisse .cash-movement-row select { width:100%; height:34px; padding:6px 8px; border-color:#cfdbda; border-radius:5px; background:#fff; font-size:12px; }
    body.page-caisse .cash-movement-row input[readonly] { background:#edf2f1; }
    body.page-caisse .cash-row-actions { align-self:end; justify-content:space-between; min-height:34px; }
    body.page-caisse .cash-row-actions label { font-size:10px; }
    body.page-caisse .cash-row-actions .icon-button { width:34px; height:34px; min-height:34px; border-color:#efc5c1; background:#fff4f2; color:#a32d27; }
    body.page-caisse .cash-change-preview { position:static; grid-column:1/-1; justify-self:start; min-height:22px; margin-top:0; border-radius:4px; }
    body.page-caisse .cash-batch-actions { margin-top:3px; }
    body.page-caisse .cash-batch-actions button,
    body.page-caisse .cash-document-actions .ghost-button,
    body.page-caisse .cash-document-actions button { min-height:34px; padding:6px 10px; font-size:11px; }
    body.page-caisse .cash-edit-form { margin:0 0 12px; padding:12px; border:1px solid #d5b96c; border-radius:7px; background:linear-gradient(135deg,#fffdf5,#f6fbfa); box-shadow:0 6px 15px rgba(93,70,17,.08); }
    body.page-caisse .cash-edit-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:9px; }
    body.page-caisse .cash-edit-heading span { color:#916d23; font-size:10px; font-weight:850; text-transform:uppercase; }
    body.page-caisse .cash-edit-heading h3 { margin:2px 0 0; color:#193840; font-size:15px; }
    body.page-caisse .cash-edit-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; }
    body.page-caisse .cash-edit-grid label { display:grid; gap:3px; min-width:0; color:#344e55; font-size:10px; font-weight:750; }
    body.page-caisse .cash-edit-grid input,
    body.page-caisse .cash-edit-grid select { min-width:0; width:100%; height:35px; margin:0; padding:6px 8px; font-size:12px; }
    body.page-caisse .cash-edit-grid .cash-edit-wide { grid-column:span 2; }
    body.page-caisse .cash-edit-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; }
    body.page-caisse .cash-edit-charge { display:inline-flex; align-items:center; gap:7px; color:#284950; font-size:11px; font-weight:750; }
    body.page-caisse .cash-edit-charge input[type="checkbox"] { width:16px !important; height:16px !important; flex:0 0 16px; margin:0; }
    body.page-caisse .cash-edit-footer button { min-height:35px; }
    body.page-caisse .cash-printable { padding:12px 14px; }
    body.page-caisse .cash-print-heading { align-items:center; gap:12px; margin-bottom:8px; }
    body.page-caisse .cash-document-actions { gap:5px; }
    body.page-caisse .cash-document-actions .cash-delete-save { border:1px solid #dfaaa3; background:#fff3f1 !important; color:#9c3027 !important; }
    body.page-caisse .cash-printable .table-wrap,
    body.page-caisse .cash-history-panel .table-wrap { overflow-x:auto; }
    body.page-caisse .cash-table { width:100%; min-width:1430px; table-layout:fixed; border-collapse:separate; border-spacing:0; }
    body.page-caisse .cash-table col:nth-child(1) { width:32px; }
    body.page-caisse .cash-table col:nth-child(2) { width:96px; }
    body.page-caisse .cash-table col:nth-child(3) { width:104px; }
    body.page-caisse .cash-table col:nth-child(4) { width:190px; }
    body.page-caisse .cash-table col:nth-child(5) { width:160px; }
    body.page-caisse .cash-table col:nth-child(6),
    body.page-caisse .cash-table col:nth-child(7),
    body.page-caisse .cash-table col:nth-child(8),
    body.page-caisse .cash-table col:nth-child(9),
    body.page-caisse .cash-table col:nth-child(10) { width:100px; }
    body.page-caisse .cash-table col:nth-child(11) { width:100px; }
    body.page-caisse .cash-table col:nth-child(12) { width:230px; }
    body.page-caisse .cash-table th { padding:7px 6px; background:#e8f2ef; color:#274149; font-size:10px; line-height:1.15; white-space:normal; }
    body.page-caisse .cash-table td { padding:6px; border-bottom:1px solid #e4eeeb; color:#253d45; font-size:11px; line-height:1.2; vertical-align:middle; }
    body.page-caisse .cash-table tbody tr:hover td { background:#f8fbf7; }
    body.page-caisse .cash-table td small { display:block; max-width:100%; overflow:hidden; margin-top:2px; color:#71817f; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
    body.page-caisse .cash-table .cash-designation-cell strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    body.page-caisse .cash-table .cash-nature { max-width:100%; padding:3px 5px; border-radius:4px; font-size:9px; }
    body.page-caisse .cash-table td.cash-table-actions { display:table-cell; position:sticky; right:0; z-index:1; padding:4px 6px; background:#fff; box-shadow:-5px 0 8px rgba(21,57,59,.05); white-space:normal; }
    body.page-caisse .cash-table th:last-child { position:sticky; right:0; z-index:2; box-shadow:-5px 0 8px rgba(21,57,59,.05); }
    body.page-caisse .cash-action-group { display:flex; flex-wrap:wrap; align-items:center; gap:4px; }
    body.page-caisse .cash-action-group .ghost-button,
    body.page-caisse .cash-action-group button { display:inline-flex; align-items:center; justify-content:center; min-height:27px; margin:0; padding:4px 6px; border-radius:4px; font-size:9px; font-weight:800; text-decoration:none; }
    body.page-caisse .cash-return-button { border:1px solid #8bc9b7; background:#e8f7f1; color:#126953; }
    body.page-caisse .cash-cancel-purchase { border:1px solid #e4bd78; background:#fff7e9; color:#85550b; }
    body.page-caisse .cash-statement-summary { border-top:1px solid #d8e0eb; }
    body.page-caisse .cash-statement-summary td { padding:8px 10px; }
    body.page-caisse .cash-statement-summary strong { font-size:13px; }
    body.page-caisse .cash-history-panel .cash-history-table { min-width:1120px; }
    body.page-caisse .cash-history-actions { display:table-cell; }
}
@media screen and (max-width:1050px) {
    body.page-caisse .cash-movement-row { grid-template-columns:repeat(3,minmax(0,1fr)); }
    body.page-caisse .cash-edit-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media screen and (max-width:700px) {
    body.page-caisse .cash-session-banner { grid-template-columns:1fr; gap:8px; }
    body.page-caisse .cash-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
    body.page-caisse .cash-movement-row,
    body.page-caisse .cash-edit-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    body.page-caisse .cash-edit-grid .cash-edit-wide { grid-column:span 2; }
    body.page-caisse .cash-print-heading { align-items:flex-start; flex-direction:column; }
}
@media screen and (max-width:420px) {
    body.page-caisse .cash-movement-row { grid-template-columns:1fr; }
    body.page-caisse .cash-edit-footer { align-items:stretch; flex-direction:column; }
}
