/* =====================================================
   R0-FIG-1 — Room 0 hotel + Fakturering glance
   body.shell-room0 only. Paint from *_STAMP.
   Do not restyle #invoice-helper-view.
   ===================================================== */

body.shell-room0 {
    --r0-rail: #5aa3be;
    --r0-rail-deep: #3e8aa6;
    --r0-stage: #9fd4ea;
    --r0-card: #b7e3f4;
    --r0-card-line: rgba(15, 70, 95, 0.12);
    --r0-ink: #0f2740;
    --r0-muted: #3d5a6e;
    --r0-cta: #0f8a7a;
    --r0-cta-hover: #0c7367;
    --r0-pill: #e8f7fc;
    --r0-white: #ffffff;
    --r0-desk-w: 1440px;
    --r0-desk-h: 900px;
    --r0-rail-w: 220px;
}

body.shell-room0 .matrix-bg {
    background: var(--r0-stage);
}

body.shell-room0 .crt {
    position: relative;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    gap: 0;
    overflow: hidden;
}

body.hotel-desk .crt {
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none;
    flex-direction: row !important;
    transform: none !important;
}

body.hotel-desk .r0-rail {
    position: relative;
    transform: none !important;
    width: var(--r0-rail-w);
    flex-shrink: 0;
}

body.hotel-desk .r0-rail-door {
    display: none !important;
}

body.hotel-phone .crt {
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none;
    flex-direction: row !important;
    transform: none !important;
}

body.hotel-phone .r0-water {
    padding: 14px 14px 12px;
}

/* ── Left rail ── */
body.shell-room0 .r0-rail {
    position: relative;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: var(--r0-rail-w);
    flex-shrink: 0;
    background: linear-gradient(180deg, #6eb6ce 0%, #4e97b2 100%);
    color: var(--r0-white);
    padding: 18px 14px 16px;
    box-shadow: 4px 0 0 rgba(15, 40, 55, 0.08);
}

body.hotel-phone .r0-rail {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 60;
}

body.hotel-phone.r0-rail-open .r0-rail {
    transform: translateX(0);
}

body.shell-room0 .r0-rail-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 16px;
    width: 100%;
    overflow: hidden;
}

/* aquakleenfinal.png is 400×200; visible oval is 282×82 (~70% of file width).
   Scale the file so the oval almost fills the rail inner width; clip empty pad. */
body.shell-room0 .r0-rail-logo {
    display: block;
    width: 142%;
    max-width: none;
    height: auto;
    max-height: none;
    object-fit: contain;
}

body.shell-room0 .r0-rail #module-tabs,
body.shell-room0 .r0-rail .nav-secondary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
    min-height: 0;
    flex: 1;
}

body.shell-room0 .r0-rail .nav-tabs-cluster {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.shell-room0 .r0-rail .nav-secondary-side {
    display: none !important;
}

body.shell-room0 .r0-rail .module-tab,
body.shell-room0 .r0-rail .nav-secondary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 999px;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    padding: 9px 14px;
    box-shadow: none;
}

body.shell-room0 .r0-rail .module-tab .module-tab-label {
    color: inherit;
}

body.shell-room0 .r0-rail .module-tab:hover,
body.shell-room0 .r0-rail .module-tab:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    color: #0f172a;
}

body.shell-room0 .r0-rail .module-tab.active {
    background: rgba(255, 255, 255, 0.28);
    color: #0f172a;
    box-shadow: none;
    border: none;
}

body.shell-room0 .r0-rail .module-tab.module-locked,
body.shell-room0 .r0-rail .module-tab.module-locked:hover,
body.shell-room0 .r0-rail .module-tab.module-locked:focus-visible {
    opacity: 1;
    filter: none;
    color: #64748b !important;
    background: transparent;
    cursor: default;
}

body.shell-room0 .r0-rail .module-tab .module-light {
    width: 7px;
    height: 7px;
}

body.shell-room0 .r0-rail-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    padding: 8px 0 0;
}

body.shell-room0 .r0-settings-gear {
    border: none;
    background: transparent;
    color: var(--r0-white);
    font-size: 1.15rem;
    line-height: 1;
    padding: 4px 0;
    cursor: pointer;
}

body.shell-room0 .r0-powered-by {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 0;
    margin-left: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
    text-decoration: none;
    cursor: default;
}

body.shell-room0 .r0-powered-by-text {
    white-space: nowrap;
    color: #b7f5c8;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

body.shell-room0 .r0-powered-by-name {
    white-space: nowrap;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

body.shell-room0 .r0-powered-by.is-operator {
    cursor: pointer;
}

body.shell-room0 .r0-powered-by.is-operator:hover .r0-powered-by-text,
body.shell-room0 .r0-powered-by.is-operator:hover .r0-powered-by-name,
body.shell-room0 .r0-powered-by.is-operator:focus-visible .r0-powered-by-text,
body.shell-room0 .r0-powered-by.is-operator:focus-visible .r0-powered-by-name {
    text-decoration: underline;
}

body.shell-room0 .r0-powered-by.is-footer,
body.shell-room0 .r0-powered-by[aria-disabled="true"] {
    cursor: default;
    pointer-events: none;
}

/* ── Stage ── */
body.shell-room0 .r0-stage {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: block;
    padding: 22px 28px 20px;
    background: var(--r0-stage);
}

body.shell-room0,
body.shell-room0.intel-edit-open {
    overflow: hidden !important;
}

body.shell-room0 .r0-stage > .module-view,
body.shell-room0 .r0-stage > .content,
body.shell-room0 .r0-water > .module-view,
body.shell-room0 .r0-water > .content {
    flex: none;
    min-width: 0;
    height: auto;
    overflow: visible;
    padding: 0;
    margin: 0;
}

/* Water card: one glass, one overlay scroll. Nested table bars die. */
body.shell-room0 .r0-water {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 40, 55, 0.35) transparent;
    scrollbar-gutter: auto;
    background: var(--r0-stage);
    border-radius: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 18px 40px rgba(15, 40, 55, 0.12);
}

body.shell-room0 .r0-water::-webkit-scrollbar {
    width: 8px;
}

body.shell-room0 .r0-water::-webkit-scrollbar-track {
    background: transparent;
}

body.shell-room0 .r0-water::-webkit-scrollbar-thumb {
    background: rgba(15, 40, 55, 0.28);
    border-radius: 999px;
}

body.shell-room0 .r0-water .table-wrap,
body.shell-room0 .r0-water .corp-table-wrap,
body.shell-room0 .r0-water .table-scroll,
body.shell-room0 #intelligence-view,
body.shell-room0 #fakturering-view,
body.shell-room0 #inv-panel-list,
body.shell-room0 #inv-panel-list .table-wrap {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

body.shell-room0 #intelligence-view #client-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
}

body.shell-room0 #intelligence-view #client-table col.col-w-actions,
body.shell-room0 #intelligence-view #client-table th.col-actions,
body.shell-room0 #intelligence-view #client-table td.col-actions {
    width: 176px;
    min-width: 176px;
    max-width: 176px;
    overflow: visible;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Intelligence list clothes in Water — not the New Client form */
body.shell-room0 #intelligence-view .search-bar {
    background: rgba(255, 255, 255, 0.45);
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
}

body.shell-room0 #intelligence-view .search-bar input {
    background: transparent;
    border: none;
    color: var(--r0-ink);
    border-radius: 999px;
}

body.shell-room0 #intelligence-view .period-filters {
    background: rgba(255, 255, 255, 0.45);
    border: none;
    border-radius: 18px;
}

body.shell-room0 #intelligence-view .table-wrap,
body.shell-room0 #intelligence-view .corp-table-wrap {
    background: var(--r0-card);
    border: none;
    border-radius: 18px;
    box-shadow: none;
}

body.shell-room0 #intelligence-view #client-table th {
    background: transparent;
    color: var(--r0-muted);
    letter-spacing: 0.04em;
}

body.shell-room0 #intelligence-view #client-table td {
    padding: 12px 14px;
}

body.shell-room0 #intelligence-view .intel-row-edit-btn,
body.shell-room0 #intelligence-view .intel-row-delete-btn,
body.shell-room0 #intelligence-view #client-new-btn {
    text-transform: none;
    letter-spacing: 0;
    border-radius: 999px;
    padding: 4px 12px;
}

body.shell-room0 #intelligence-view .intel-row-delete-btn {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #b91c1c;
}

body.shell-room0 .room0-module-teaser {
    margin: 0 0 10px;
}

/* Hotel clothes on the stage — kindergarten views stay as-is inside */
body.shell-room0 .r0-stage .status.top-clear {
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--r0-muted);
}

/* Do not restyle Helper internals */
body.shell-room0 #invoice-helper-view {
    background: transparent;
}

/* ── Fakturering list ── */
body.shell-room0 #fakturering-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: visible;
}

body.shell-room0.r0-inv-editor-open #fakturering-view {
    overflow: visible;
}

body.shell-room0 .r0-inv-head {
    margin: 2px 0 0;
}

body.shell-room0 .r0-inv-head h1 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--r0-ink);
    letter-spacing: 0;
}

body.shell-room0 .r0-inv-head p {
    margin: 4px 0 0;
    font-size: 0.92rem;
    color: var(--r0-muted);
}

body.shell-room0 #fakturering-view #inv-status {
    text-align: left;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.8rem;
    color: var(--r0-muted);
}

body.shell-room0 #inv-subnav.r0-inv-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.28);
    border: none;
    border-radius: 999px;
    box-shadow: none;
}

body.shell-room0 #inv-subnav.r0-inv-pills .page-btn {
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--r0-ink);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    padding: 7px 16px;
}

body.shell-room0 #inv-subnav.r0-inv-pills .page-btn.active {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--r0-ink);
}

body.shell-room0 #inv-subnav.r0-inv-pills .page-btn[data-inv-panel="new"] {
    background: rgba(255, 255, 255, 0.45);
}

body.shell-room0 #inv-panel-settings #inv-indstil-title {
    margin: 0 0 10px;
}

body.shell-room0 #inv-indstil-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

body.shell-room0 .r0-inv-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

body.shell-room0 .r0-inv-filters select,
body.shell-room0 .r0-inv-filters input {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    color: var(--r0-ink);
    padding: 7px 14px;
    font-size: 0.82rem;
}

body.shell-room0 #fakturering-view .inv-disclaimer {
    margin: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.22);
    border: none;
    box-shadow: none;
    font-size: 0.75rem;
}

body.shell-room0 #inv-panel-list {
    margin: 0;
    flex: 1;
    min-height: 0;
}

body.shell-room0 #inv-panel-list .table-wrap {
    background: var(--r0-card);
    border: none;
    border-radius: 18px;
    box-shadow: none;
    overflow: hidden;
    min-height: 280px;
}

body.shell-room0 #inv-table {
    width: 100%;
    border-collapse: collapse;
}

body.shell-room0 #inv-table thead th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--r0-muted);
    padding: 14px 16px 10px;
    border: none;
    background: transparent;
}

body.shell-room0 #inv-table tbody td {
    padding: 14px 16px;
    border-top: 1px solid var(--r0-card-line);
    color: var(--r0-ink);
    font-size: 0.92rem;
    background: transparent;
}

body.shell-room0 #inv-table .inv-open-btn {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--r0-ink);
    text-transform: none;
    letter-spacing: 0;
    padding: 4px 12px;
    font-size: 0.78rem;
}

body.shell-room0 .inv-status-pill {
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: none;
}

body.shell-room0 .inv-status-draft,
body.shell-room0 .inv-status-ready {
    background: #5b6470;
    color: #fff;
    border: none;
}

body.shell-room0 .inv-status-issued {
    background: #f59e0b;
    color: #fff;
    border: none;
}

body.shell-room0 .inv-status-sent,
body.shell-room0 .inv-status-reminded {
    background: #fb7185;
    color: #fff;
    border: none;
}

body.shell-room0 .inv-status-paid {
    background: #22c55e;
    color: #fff;
    border: none;
}

body.shell-room0 #inv-panel-settings {
    margin: 0;
}

body.shell-room0 #inv-panel-settings .inv-form {
    max-width: none;
    background: var(--r0-white);
    border-radius: 16px;
}

/* ── Editor overlay (1224×900 island) ── */
body.shell-room0 .r0-inv-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: var(--r0-rail-w);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(12, 32, 44, 0.18);
}

body.hotel-phone .r0-inv-overlay {
    left: 0;
}

body.shell-room0 .r0-inv-overlay[hidden] {
    display: none !important;
}

body.shell-room0.r0-inv-editor-open #fakturering-view > :not(.r0-inv-overlay) {
    filter: blur(10px);
    pointer-events: none;
}

body.shell-room0 #inv-panel-editor.r0-inv-modal {
    display: flex;
    flex-direction: column;
    width: 1224px;
    max-width: 100%;
    height: 900px;
    max-height: calc(100vh - 24px);
    margin: 0;
    background: var(--r0-white);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 40, 55, 0.22);
    overflow: hidden;
    border: none;
}

body.shell-room0 .r0-inv-modal-top,
body.shell-room0 .r0-inv-modal-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--r0-white);
}

body.shell-room0 .r0-inv-modal-top {
    border-bottom: 1px solid #eef2f6;
}

body.shell-room0 .r0-inv-modal-actions {
    border-top: 1px solid #eef2f6;
    justify-content: flex-end;
}

body.shell-room0 .r0-inv-modal-top .inv-h2 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0;
}

body.shell-room0 #inv-ordre-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: #d1fae5;
    color: #047857;
    font-size: 0.75rem;
    font-weight: 600;
}

body.shell-room0 #inv-ordre-chip[hidden] {
    display: none !important;
}

body.shell-room0 .r0-inv-modal-alert {
    display: inline;
    flex: 1 1 auto;
    margin-left: 8px;
    margin-right: 8px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #f97316;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    max-width: none;
    white-space: normal;
    overflow: visible;
    line-height: 1.25;
}

body.shell-room0 .r0-inv-modal-alert[hidden] {
    display: none !important;
}

body.shell-room0 #inv-delete-draft {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #ef4444;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}

body.shell-room0 .r0-inv-modal-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    padding: 16px 20px 20px;
    background: #f4f6f8;
}

body.shell-room0 .r0-inv-card {
    background: var(--r0-white);
    border-radius: 12px;
    padding: 16px 18px 18px;
    margin-bottom: 14px;
    border: 1px solid #eef2f6;
}

body.shell-room0 .r0-inv-card > .inv-h3,
body.shell-room0 .r0-inv-card > h3 {
    margin: 0 0 12px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--r0-ink);
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 8px;
}

body.shell-room0 .r0-inv-card .panel-grid {
    gap: 12px 16px;
}

body.shell-room0 .r0-inv-modal .form-field label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.75rem;
    color: var(--r0-muted);
}

body.shell-room0 .r0-inv-modal .form-field input,
body.shell-room0 .r0-inv-modal .form-field select,
body.shell-room0 .r0-inv-modal .form-field textarea {
    background: var(--r0-white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--r0-ink);
}

body.shell-room0 #inv-number-display {
    background: #f1f5f9;
}

body.shell-room0 .r0-fra-card {
    background: var(--r0-white);
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid #eef2f6;
    align-self: start;
    position: sticky;
    top: 0;
}

body.shell-room0 .r0-fra-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--r0-muted);
}

body.shell-room0 #inv-fra-name {
    margin: 4px 0 12px;
    font-weight: 700;
    color: var(--r0-ink);
}

body.shell-room0 .r0-fra-card .inv-totals {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 16px;
    padding-top: 8px;
    border-top: 1px solid #eef2f6;
}

body.shell-room0 .r0-fra-card .inv-totals span {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--r0-muted);
}

body.shell-room0 .r0-fra-card .inv-totals .r0-fra-total {
    font-size: 1.05rem;
    color: var(--r0-ink);
    font-weight: 700;
}

body.shell-room0 .r0-fra-pay {
    border-top: 1px solid #eef2f6;
    padding-top: 12px;
    font-size: 0.8rem;
    color: var(--r0-muted);
}

body.shell-room0 .r0-fra-pay h3 {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: var(--r0-ink);
    text-transform: none;
    letter-spacing: 0;
}

body.shell-room0 .r0-fra-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 4px 0;
}

body.shell-room0 .r0-inv-modal-actions .page-btn {
    text-transform: none;
    letter-spacing: 0;
    border-radius: 8px;
}

body.shell-room0 #inv-cancel {
    margin-right: auto;
}

body.shell-room0 #inv-save-draft {
    background: transparent;
    color: var(--r0-cta);
    border: 1px solid var(--r0-cta);
}

body.shell-room0 #inv-issue {
    background: var(--r0-cta);
    border-color: var(--r0-cta);
    color: #fff;
}

body.shell-room0 #inv-issue:hover,
body.shell-room0 #inv-issue:focus-visible {
    background: var(--r0-cta-hover);
}

body.shell-room0 .r0-inv-modal .inv-lines-table {
    width: 100%;
}

body.shell-room0 .r0-inv-modal .inv-post-box,
body.shell-room0 .r0-inv-modal .inv-audit-box {
    max-width: none;
    margin: 0 0 14px;
    background: var(--r0-white);
    border-radius: 12px;
}

body.shell-room0 .r0-inv-modal .inv-locked-banner {
    margin: 0 0 12px;
}

body.shell-room0 .r0-inv-modal .inv-editor-toolbar {
    display: none;
}

/* Fallback: if overlay class missing, old editor still unhides as a panel */
body.shell-room0 #inv-panel-editor:not(.r0-inv-modal) {
    background: var(--r0-white);
}

body.hotel-phone .r0-inv-modal-body {
    grid-template-columns: 1fr;
}

body.hotel-phone .r0-fra-card {
    position: static;
}

body.hotel-phone #inv-panel-editor.r0-inv-modal {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
}

body.shell-room0 .r0-hotel-picker {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 45;
    border: 1px solid rgba(15, 40, 55, 0.2);
    background: rgba(255, 255, 255, 0.72);
    color: var(--r0-ink);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 999px;
    padding: 5px 12px;
    cursor: pointer;
}

body.shell-room0 .r0-rail-door {
    display: none;
}

body.hotel-phone .r0-rail-door {
    display: block;
    position: absolute;
    left: 0;
    top: 38%;
    width: 16px;
    height: 64px;
    z-index: 55;
    border: none;
    padding: 0;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(180deg, #6eb6ce 0%, #4e97b2 100%);
    box-shadow: 2px 0 8px rgba(15, 40, 55, 0.18);
    cursor: pointer;
}

body.hotel-phone.r0-rail-open .r0-rail-door {
    display: none;
}

/* Phone sip: fewer Intelligence columns so we can see the Water */
body.hotel-phone #intelligence-view #client-table col.col-w-phone,
body.hotel-phone #intelligence-view #client-table col.col-w-web,
body.hotel-phone #intelligence-view #client-table col.col-w-actions,
body.hotel-phone #intelligence-view #client-table .col-phone,
body.hotel-phone #intelligence-view #client-table .col-web,
body.hotel-phone #intelligence-view #client-table .col-actions {
    display: none;
}

/* Phone sip: Fakturering list — hide Dato + I alt, keep Åbn */
body.hotel-phone #inv-table th:nth-child(3),
body.hotel-phone #inv-table td:nth-child(3),
body.hotel-phone #inv-table th:nth-child(4),
body.hotel-phone #inv-table td:nth-child(4) {
    display: none;
}

body.hotel-phone #inv-table {
    table-layout: fixed;
}

body.hotel-phone #inv-table th:nth-child(1),
body.hotel-phone #inv-table td:nth-child(1) {
    width: 18%;
}

body.hotel-phone #inv-table th:nth-child(2),
body.hotel-phone #inv-table td:nth-child(2) {
    width: 32%;
}

/* =====================================================
   R0-PHONE-ORDRE-1 — hotel-phone Fakturering overlay
   One overlay · Ny ordre · Åbn Ordre · Åbn Faktura.
   Desk hotel table stays. Do not dump style.css CRT.
   ===================================================== */

body.hotel-phone #inv-editor-overlay.r0-inv-overlay {
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overscroll-behavior-x: none;
}

body.hotel-phone #inv-panel-editor.r0-inv-modal {
    overflow-x: hidden;
    overflow-y: hidden;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.hotel-phone #inv-panel-editor .r0-inv-modal-top,
body.hotel-phone #inv-panel-editor .r0-inv-modal-actions,
body.hotel-phone #inv-panel-editor .r0-inv-card,
body.hotel-phone #inv-panel-editor .r0-inv-main,
body.hotel-phone #inv-panel-editor .r0-fra-card,
body.hotel-phone #inv-panel-editor .inv-lines-table,
body.hotel-phone #inv-panel-editor .table-scroll,
body.hotel-phone #inv-panel-editor input,
body.hotel-phone #inv-panel-editor select,
body.hotel-phone #inv-panel-editor textarea,
body.hotel-phone #inv-panel-editor button {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.hotel-phone #inv-panel-editor .r0-inv-modal-body {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-x: none;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.hotel-phone #inv-panel-editor .table-scroll {
    overflow-x: hidden;
    overflow-y: visible;
    height: auto;
    max-height: none;
}

body.hotel-phone #inv-panel-editor .r0-inv-modal-top {
    flex-wrap: wrap;
}

body.hotel-phone #inv-panel-editor #inv-delete-draft {
    margin-left: 0;
}

/* 2 · Linjer = stacked cards. Same <tr> / classes. Desk table stays. */
body.hotel-phone #inv-panel-editor .inv-lines-table thead {
    display: none;
}

body.hotel-phone #inv-panel-editor .inv-lines-table,
body.hotel-phone #inv-panel-editor .inv-lines-table tbody {
    display: block;
    width: 100%;
}

body.hotel-phone #inv-panel-editor .inv-lines-table tbody tr[data-line-i] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 10px;
    width: 100%;
    margin: 0 0 10px;
    padding: 10px 12px;
    background: var(--r0-white);
    border: 1px solid #eef2f6;
    border-radius: 10px;
}

body.hotel-phone #inv-panel-editor .inv-lines-table td,
body.hotel-phone #inv-panel-editor .inv-lines-table td.inv-line-desc-cell {
    display: block;
    width: auto;
    min-width: 0 !important;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
}

body.hotel-phone #inv-panel-editor .inv-lines-table td:nth-child(1),
body.hotel-phone #inv-panel-editor .inv-lines-table td:nth-child(6),
body.hotel-phone #inv-panel-editor .inv-lines-table td:nth-child(7) {
    grid-column: 1 / -1;
}

body.hotel-phone #inv-panel-editor .inv-lines-table td:nth-child(7) {
    display: flex;
    justify-content: flex-end;
}

body.hotel-phone #inv-panel-editor .inv-lines-table td:nth-child(7):empty {
    display: none;
}

body.hotel-phone #inv-panel-editor .inv-lines-table tbody tr:not([data-line-i]) {
    display: block;
    width: 100%;
    margin: 0 0 10px;
}

body.hotel-phone #inv-panel-editor .inv-lines-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--r0-muted);
    margin-bottom: 2px;
}

body.hotel-phone #inv-panel-editor .inv-lines-table td[data-label=""]::before {
    content: none;
    display: none;
}

body.hotel-phone #inv-panel-editor .inv-lines-table input,
body.hotel-phone #inv-panel-editor .inv-lines-table select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

body.hotel-phone #inv-panel-editor .inv-line-del {
    min-width: 44px;
    width: auto;
}

/* 3 · Udsted = full-width Next on unissued. Four wrap under. Issued strip untouched. */
body.hotel-phone #inv-panel-editor .r0-inv-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
}

body.hotel-phone #inv-panel-editor #inv-cancel {
    margin-right: 0;
}

body.hotel-phone #inv-panel-editor #inv-issue:not([hidden]) {
    order: -1;
    flex: 1 1 100%;
    width: 100%;
}

body.hotel-phone #inv-panel-editor .r0-inv-modal-actions .page-btn:not(#inv-issue) {
    flex: 1 1 calc(50% - 8px);
}

/* 4 · One column · compact one-line wells. FRA already static — leave it. */
body.hotel-phone #inv-panel-editor .panel-grid {
    grid-template-columns: 1fr;
}

body.hotel-phone #inv-panel-editor .form-field input,
body.hotel-phone #inv-panel-editor .form-field select {
    width: 100%;
    padding: 6px 10px;
    min-height: 0;
}

body.hotel-phone #inv-panel-editor .form-field textarea {
    width: 100%;
    padding: 6px 10px;
}

/* =====================================================
   R0-PHONE-LISTS-1 — hotel-phone Fakturalog + Körjournal
   Inherit size law. Hide extra cols. Desk tables stay.
   Do not dump style.css CRT. Do not recut Ordre overlay.
   ===================================================== */

body.hotel-phone #fieldlog-view,
body.hotel-phone #korjournal-view {
    overflow-x: hidden;
    overflow-y: visible;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overscroll-behavior-x: none;
}

body.hotel-phone #fl-table-wrap,
body.hotel-phone #kj-table-wrap,
body.hotel-phone #fl-table-scroll,
body.hotel-phone #kj-table-scroll {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    max-width: 100%;
    min-width: 0;
    max-height: none;
    height: auto;
    box-sizing: border-box;
}

body.hotel-phone #fl-entry-table,
body.hotel-phone #kj-trip-table {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
    box-sizing: border-box;
}

body.hotel-phone #fl-entry-table th,
body.hotel-phone #fl-entry-table td,
body.hotel-phone #kj-trip-table th,
body.hotel-phone #kj-trip-table td {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* Fakturalog: keep 1 DATUM · 2 KUND · 4 RESULTAT · 6 BELOPP */
body.hotel-phone #fl-entry-table th:nth-child(3),
body.hotel-phone #fl-entry-table td:nth-child(3),
body.hotel-phone #fl-entry-table th:nth-child(5),
body.hotel-phone #fl-entry-table td:nth-child(5),
body.hotel-phone #fl-entry-table th:nth-child(7),
body.hotel-phone #fl-entry-table td:nth-child(7) {
    display: none;
}

body.hotel-phone #fl-entry-table th:nth-child(1),
body.hotel-phone #fl-entry-table td:nth-child(1) {
    width: 22%;
}

body.hotel-phone #fl-entry-table th:nth-child(2),
body.hotel-phone #fl-entry-table td:nth-child(2) {
    width: 38%;
}

body.hotel-phone #fl-entry-table th:nth-child(4),
body.hotel-phone #fl-entry-table td:nth-child(4) {
    width: 22%;
}

body.hotel-phone #fl-entry-table th:nth-child(6),
body.hotel-phone #fl-entry-table td:nth-child(6) {
    width: 18%;
}

/* Körjournal: keep 1 DATUM · 2 KM · 3 SYFTE */
body.hotel-phone #kj-trip-table th:nth-child(4),
body.hotel-phone #kj-trip-table td:nth-child(4),
body.hotel-phone #kj-trip-table th:nth-child(5),
body.hotel-phone #kj-trip-table td:nth-child(5),
body.hotel-phone #kj-trip-table th:nth-child(6),
body.hotel-phone #kj-trip-table td:nth-child(6),
body.hotel-phone #kj-trip-table th:nth-child(7),
body.hotel-phone #kj-trip-table td:nth-child(7),
body.hotel-phone #kj-trip-table th:nth-child(8),
body.hotel-phone #kj-trip-table td:nth-child(8) {
    display: none;
}

body.hotel-phone #kj-trip-table th:nth-child(1),
body.hotel-phone #kj-trip-table td:nth-child(1) {
    width: 28%;
}

body.hotel-phone #kj-trip-table th:nth-child(2),
body.hotel-phone #kj-trip-table td:nth-child(2) {
    width: 18%;
}

body.hotel-phone #kj-trip-table th:nth-child(3),
body.hotel-phone #kj-trip-table td:nth-child(3) {
    width: 54%;
    white-space: normal;
}

body.hotel-phone #fl-controls .kj-controls-row,
body.hotel-phone #kj-controls .kj-controls-row,
body.hotel-phone #kj-vehicle-plate-row,
body.hotel-phone #kj-vehicle-plate-row .kj-form-inline,
body.hotel-phone #kj-pagination,
body.hotel-phone #kj-footer,
body.hotel-phone #fl-footer {
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.hotel-phone #fl-controls,
body.hotel-phone #kj-controls,
body.hotel-phone #kj-vehicle-plate-row {
    max-width: 100%;
    min-width: 0;
}

body.hotel-phone #fl-controls .page-btn,
body.hotel-phone #kj-controls .page-btn,
body.hotel-phone #kj-pagination .page-btn {
    min-width: 0;
    max-width: 100%;
}

body.hotel-phone #kj-vehicle-plate-row .form-field,
body.hotel-phone #fl-controls .kj-control-group,
body.hotel-phone #kj-controls .kj-control-group {
    min-width: 0;
    max-width: 100%;
}

body.hotel-phone #fl-controls .kj-control-group input,
body.hotel-phone #kj-controls .kj-control-group input,
body.hotel-phone #kj-controls .kj-control-group select,
body.hotel-phone #kj-vehicle-plate-row input {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.hotel-phone #kj-pagination {
    width: 100%;
}

body.hotel-phone #kj-pagination .page-size-control {
    margin-left: 0;
}

/* R0-FORS-2 — Status + Betalning two badges, same cell. Do not revert hide-cols. */
body.shell-room0 .fl-cell-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

body.shell-room0 .status-badge,
body.shell-room0 .payment-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    max-width: 100%;
}

body.shell-room0 .status-badge.att-bokfora,
body.shell-room0 .payment-badge.obetald {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}

body.shell-room0 .status-badge.klar-for-bokforing,
body.shell-room0 .payment-badge.betald {
    background: rgba(15, 138, 122, 0.14);
    color: #0c7367;
}

body.shell-room0 .status-badge.bokford {
    background: rgba(32, 96, 152, 0.12);
    color: #1e4e7a;
}

body.shell-room0 .status-badge.arkiverad {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

body.shell-room0 .payment-badge.delvis-betald {
    background: rgba(234, 88, 12, 0.12);
    color: #c2410c;
}

body.hotel-phone #fl-entry-table td.fl-status-cell {
    white-space: normal;
}

/* R0-FORS-4 — Belopp DKK + SEK pipe. Tight LOGGAR. Do not dump .stats CRT. */
body.shell-room0 #fl-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

body.shell-room0 #fl-stats .fl-stat-belopp {
    flex: 1 1 160px;
}

body.shell-room0 #fl-stats .fl-stat-count {
    flex: 0 0 auto;
    width: max-content;
}

/* R0-FORS-5 — Bokförd blank Verifikation gym. Do not recut global .client-panel. */
body.shell-room0 #fl-verifikation-panel {
    position: fixed;
    top: 16px;
    right: 16px;
    width: min(440px, calc(100vw - 32px));
    height: calc((100vh - 40px) / 2);
    z-index: 111;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

body.shell-room0 #fl-verifikation-panel[hidden] {
    display: none !important;
}

body.shell-room0:not(.hotel-phone) #fl-entry-panel.fl-half {
    top: calc(16px + (100vh - 40px) / 2 + 8px) !important;
    height: calc((100vh - 40px) / 2) !important;
}

body.hotel-phone #fl-verifikation-panel {
    display: none !important;
}

/* R0-FORS-6 — selection furniture. Gym height stays. Inner scroll if needed. */
body.shell-room0 #fl-verifikation-panel .panel-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 14px 14px;
}

body.shell-room0 .fl-bok-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 12px;
}

body.shell-room0 .fl-bok-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border: 1px solid rgba(15, 40, 55, 0.14);
    border-radius: 8px;
    background: #fff;
    color: var(--r0-ink);
    font-family: inherit;
    cursor: pointer;
}

body.shell-room0 .fl-bok-name {
    font-size: 0.82rem;
    font-weight: 700;
}

body.shell-room0 .fl-bok-status {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--r0-muted);
    white-space: nowrap;
}

body.shell-room0 .fl-bok-row.is-muted {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f4f6f8;
}

body.shell-room0 .fl-bok-row.is-live.is-selected {
    border-color: var(--r0-cta);
    box-shadow: inset 0 0 0 1px var(--r0-cta);
    background: #e8f7f4;
}

body.shell-room0 .fl-bok-copy {
    margin: 0 0 10px;
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--r0-muted);
}

body.shell-room0 .fl-lock-btn {
    width: 100%;
    margin: 4px 0 8px;
}

body.shell-room0 .fl-lock-proof {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 12px;
    padding: 8px 0;
}

body.shell-room0 .fl-lock-num {
    font-size: 1rem;
    font-weight: 700;
    color: var(--r0-ink);
}

body.shell-room0 .fl-lock-num:empty {
    display: none;
}

/* R0-FORS-7 — SpeedLedger center face. Desk only. Do not steal the gym. */
body.shell-room0 #fl-speedledger-panel,
body.shell-room0 #fl-bokio-panel {
    position: fixed;
    top: 8vh;
    left: calc(50% - 120px);
    transform: translateX(-50%);
    width: min(520px, calc(100vw - 500px));
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 48px);
    z-index: 112;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

body.shell-room0 #fl-speedledger-panel[hidden],
body.shell-room0 #fl-bokio-panel[hidden] {
    display: none !important;
}

body.shell-room0 #fl-speedledger-panel .panel-body,
body.shell-room0 #fl-bokio-panel .panel-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px 16px;
}

body.shell-room0 .fl-sl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    margin: 0 0 14px;
}

body.shell-room0 #fl-speedledger-panel .fl-sl-input,
body.shell-room0 #fl-bokio-panel .fl-sl-input {
    width: 100%;
    background: #fff;
    color: var(--r0-ink);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    box-sizing: border-box;
}

body.shell-room0 #fl-speedledger-panel .fl-sl-underlag,
body.shell-room0 #fl-bokio-panel .fl-sl-underlag {
    display: block;
    width: 100%;
    min-height: 160px;
    background: #0b1220;
    color: #e2e8f0;
    border: none;
    border-radius: 8px;
    padding: 12px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

body.hotel-phone #fl-speedledger-panel,
body.hotel-phone #fl-bokio-panel {
    display: none !important;
}

/* R0-FORS-13 — Kundenavn Intelligence search. Overlay only. Size law. */
body.shell-room0 .r0-intel-cust-wrap {
    position: relative;
}

body.shell-room0 #inv-cust-suggest {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

body.shell-room0 #inv-cust-suggest .address-suggestion {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
}

body.shell-room0 #inv-cust-suggest .address-suggestion:hover,
body.shell-room0 #inv-cust-suggest .address-suggestion:focus {
    background: #f1f5f9;
}

body.shell-room0 .r0-intel-cust-new {
    margin-top: 6px;
}

body.hotel-phone #inv-panel-editor #inv-cust-suggest {
    max-width: 100%;
}

/* R0-FAKT-PEEK-1 — tap Kunde on hotel-phone list · view-only paper */
body.shell-room0:not(.hotel-phone) #inv-peek-overlay {
    display: none !important;
}

body.hotel-phone #inv-table .inv-peek-kunde {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 600;
    color: var(--r0-ink);
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.hotel-phone #inv-peek-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    margin: 0;
    padding: 0;
    background: rgba(12, 32, 44, 0.28);
    overflow-x: hidden;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overscroll-behavior-x: none;
}

body.hotel-phone #inv-peek-overlay[hidden] {
    display: none !important;
}

body.hotel-phone #inv-peek-paper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-x: none;
    background: var(--r0-white);
    color: var(--r0-ink);
    box-sizing: border-box;
    padding: 12px 14px 28px;
}

body.hotel-phone .r0-inv-peek-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 12px;
}

body.hotel-phone .r0-inv-peek-top .inv-h2 {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.hotel-phone #inv-peek-close {
    flex: 0 0 auto;
    min-width: 44px;
}

body.hotel-phone .r0-inv-peek-kund {
    margin: 0 0 12px;
    font-size: 15px;
    overflow-wrap: anywhere;
}

body.hotel-phone .r0-inv-peek-lines {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

body.hotel-phone .r0-inv-peek-lines th,
body.hotel-phone .r0-inv-peek-lines td {
    padding: 8px 4px;
    border-bottom: 1px solid rgba(15, 70, 95, 0.12);
    text-align: left;
    overflow-wrap: anywhere;
    font-size: 13px;
}

body.hotel-phone .r0-inv-peek-lines th {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--r0-muted);
}

body.hotel-phone .r0-inv-peek-lines .num {
    text-align: right;
    white-space: nowrap;
}

body.hotel-phone .r0-inv-peek-lines th:nth-child(1),
body.hotel-phone .r0-inv-peek-lines td:nth-child(1) {
    width: 52%;
}

body.hotel-phone .r0-inv-peek-lines th:nth-child(2),
body.hotel-phone .r0-inv-peek-lines td:nth-child(2) {
    width: 16%;
}

body.hotel-phone .r0-inv-peek-total {
    margin: 16px 0 0;
    text-align: right;
    font-size: 16px;
}

/* R0-FORS-11 — Lås Ja/Nej. Desk ritual. */
body.shell-room0 #fl-koppla-modal {
    z-index: 130;
}

body.shell-room0 .fl-koppla-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
}

body.shell-room0 .fl-koppla-chip {
    border: 1px solid rgba(15, 40, 55, 0.2);
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

body.shell-room0 .fl-koppla-chip.is-selected {
    border-color: var(--r0-cta);
    box-shadow: inset 0 0 0 1px var(--r0-cta);
    background: #e8f7f4;
}

/* R0-KJ-MANUAL-1 — Syfte wrap + Anteckningar tappable. Do not recut nth-child hide. */
#kj-trip-table td.kj-syfte-cell {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.hotel-phone #kj-trip-table td.kj-syfte-cell {
    overflow: visible;
    white-space: normal;
}

body.hotel-phone #trip-panel {
    pointer-events: auto;
}

body.hotel-phone #trip-panel .panel-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}

body.hotel-phone #trip-panel #trip-notes,
body.hotel-phone #trip-panel #trip-syfte,
body.hotel-phone #trip-panel #trip-purpose {
    pointer-events: auto;
    position: relative;
    z-index: 2;
    touch-action: manipulation;
}

/* R0-INTEL-GLASS-1 — hotel-phone white edit card. No pan. Stays put. Desk untouched. */
body.hotel-phone #intel-row-edit-modal {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px;
}

body.hotel-phone #intel-row-edit-modal .intel-row-edit-modal {
    width: min(520px, 100%);
    max-width: 100%;
    max-height: calc(100dvh - 16px);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    box-sizing: border-box;
}

body.hotel-phone #intel-row-edit-modal .panel-grid {
    grid-template-columns: 1fr;
}

body.hotel-phone #intel-row-edit-modal input,
body.hotel-phone #intel-row-edit-modal textarea,
body.hotel-phone #intel-row-edit-modal select {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* R0-PHONE-16PX-1 — Safari focus-zoom dies. Real pinch stays. Desk unchanged. */
body.hotel-phone input,
body.hotel-phone select,
body.hotel-phone textarea {
    font-size: 16px;
}
