@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    font-family: Inter, Arial, sans-serif;
    color: #f9fafb;
    background: #181818;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --canvas: #181818;
    --panel: #141924;
    --muted-panel: #474747;
    --line: rgba(173, 186, 209, .32);
    --muted: #b4b4b4;
    --text: #f9fafb;
    --green: #33b273;
    --blue: #6bb8f0;
}

* { box-sizing: border-box; }
html, body { min-width: 0; min-height: 100%; margin: 0; }
body { background: var(--canvas); }
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.desktop-shell { min-height: 100vh; display: grid; grid-template-columns: 256px minmax(0, 1fr); background: var(--canvas); color: var(--text); }
.side-nav { position: sticky; top: 0; height: 100vh; min-height: 0; background: #101317; padding: 16px 16px 18px; overflow: hidden; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.06); }
.brand {
    position: relative;
    min-height: 89px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 20px;
    border-radius: 10px 10px 0 0;
    color: #f9fafb;
    text-decoration: none;
}
.brand::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6bb8f04d 35%, #ffffff14 80%, transparent);
}
.brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border: 1px solid #6bb8f045;
    border-radius: 13px;
    background: linear-gradient(145deg, #243c4d, #15222d);
    color: #8dd2ff;
    box-shadow: inset 0 1px 0 #ffffff0d, 0 4px 14px #0003;
}
.brand-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.brand-name { font-size: 29px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.brand-accent { color: var(--blue); }
.brand-tagline { color: #a7b4c4; font-size: 11px; font-weight: 500; line-height: 1.5; }
.brand:hover .brand-mark { border-color: #6bb8f08c; background: #243c4d; }
.brand:hover .brand-name { color: #fff; }
.brand:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.side-nav .tenant-navigation { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.navigation-caption, .navigation-section-label { padding: 0 12px; color: #78869a; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.navigation-caption { margin: 7px 0 8px; }
.navigation-section-label { margin: 15px 0 8px; }
.tenant-navigation nav { min-height: 0; flex: 1; display: flex; flex-direction: column; gap: 0; padding: 16px 0 12px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #414953 #101317; }
.tenant-navigation nav > a, .admin-menu > summary { position: relative; min-height: 64px; padding: 16px 0; display: flex; align-items: center; gap: 8px; border-right: 1px solid transparent; color: #f9fafb; text-decoration: none; font-size: 16px; font-weight: 600; line-height: 1.35; transition: background .16s ease; }
.tenant-navigation nav > a.active { border-right-color: #fff; background: rgba(255,255,255,.035); }
.tenant-navigation nav > a:hover, .admin-menu > summary:hover, .authorization-menu > summary:hover, .authorization-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.tenant-navigation nav > a:focus-visible, .admin-menu > summary:focus-visible, .authorization-menu > summary:focus-visible, .authorization-menu a:focus-visible { outline: 2px solid #6bb8f0; outline-offset: -2px; }
.tenant-navigation .nav-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; }
.tenant-navigation .nav-icon img { display: block; }
.admin-menu > summary { cursor: pointer; list-style: none; color: #e0e5ed; }
.admin-menu { flex: 0 0 auto; padding-top: 5px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-menu > summary::-webkit-details-marker, .authorization-menu > summary::-webkit-details-marker { display: none; }
.admin-menu > summary::after, .authorization-menu > summary::after { content: ''; width: 7px; height: 7px; margin: -3px 3px 0 auto; border-right: 1.5px solid #8e9bad; border-bottom: 1.5px solid #8e9bad; transform: rotate(45deg); transition: transform .16s ease; }
.admin-menu[open] > summary::after, .authorization-menu[open] > summary::after { margin-top: 4px; transform: rotate(225deg); }
.authorization-menu { margin: 2px 0 4px 16px; padding-left: 12px; border-left: 1px solid rgba(173,186,209,.2); }
.authorization-menu > summary { min-height: 36px; padding: 0 10px; display: flex; align-items: center; cursor: pointer; list-style: none; color: #8491a3; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.authorization-menu > summary::after { width: 6px; height: 6px; }
.authorization-menu a { min-height: 35px; display: flex; align-items: center; padding: 0 10px; border-radius: 7px; color: #aeb8c8; text-decoration: none; font-size: 12px; }
.authorization-menu a.active { color: #d7f6cf; background: rgba(203,244,192,.09); }

.desktop-main { min-width: 0; min-height: 100vh; background: #181818; display: flex; flex-direction: column; }
.topbar { min-height: 64px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-navigation { display: none; }
.crumb { color: #f9fafb; font-size: 13px; }
.crumb span { color: #aeb5c1; padding: 0 8px; }
.user-area { display: flex; align-items: center; gap: 14px; font-size: 12px; }
.user-area a { color: #f9fafb; text-decoration: none; }
.user-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #141924; }
.desktop-content { width: 100%; flex: 1; padding: 18px 16px; overflow: auto; }
.app-footer { display: none; }
.bottom-nav { display: none; }
.order-sidebar { background: var(--panel); min-height: 100vh; padding: 84px 16px 14px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.order-sidebar-heading { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.order-sidebar-heading small { font-size: 12px; color: #aeb5c1; }
.order-lines { display: grid; gap: 0; }
.order-line { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: start; padding: 13px 8px; border-top: 1px solid rgba(255,255,255,.35); }
.order-quantity { font-size: 14px; }
.order-line strong { display: block; font-size: 14px; }
.order-line small { display: block; color: #aeb5c1; font-size: 11px; margin-top: 5px; }
.order-price { font-size: 14px; white-space: nowrap; }
.quantity-control { display: flex; align-items: center; gap: 3px; margin-top: 7px; color: #fff; font-size: 12px; }
.quantity-control button { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.quantity-control img { display: block; }
.order-summary { margin-top: auto; border-radius: 14px; background: #fff; color: #141a24; padding: 16px; box-shadow: 0 -2px 6px #0002; }
.order-summary h3 { font-size: 14px; margin: 0 0 12px; }
.summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12px; }
.summary-row .paid { color: #167946; }
.summary-row .remaining { color: #bb302a; }
.pay-button { width: 100%; min-height: 40px; margin-top: 12px; border: 1px solid #141a24; border-radius: 7px; background: #fff; color: #141a24; font-weight: 600; cursor: pointer; }

.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 4px 0 20px; }
.page-heading h1 { margin: 0 0 5px; font-size: 26px; font-weight: 500; }
.page-heading p { margin: 0; color: #d3d5d8; font-size: 14px; }
.eyebrow { color: #c8d1df; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.primary-button { min-height: 38px; padding: 9px 14px; border: 0; border-radius: 6px; background: #2563d9; color: #fff; text-decoration: none; font-size: 12px; font-weight: 600; cursor: pointer; }
.module-tabs { display: flex; gap: 4px; padding: 4px; width: max-content; border-radius: 8px; background: #141924; margin-bottom: 14px; }
.module-tabs button { border: 0; border-radius: 5px; padding: 8px 14px; background: transparent; color: #cdd1d8; font-size: 12px; cursor: pointer; }
.module-tabs button.active { background: #d8f0ce; color: #141924; font-weight: 600; }
.table-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin: 12px 0 10px; }
.search-bar { width: 295px; height: 42px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: #181818; padding: 0 14px; }
.search-bar input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #f9fafb; font-size: 13px; }
.search-bar input::placeholder { color: #c7c7c7; }
.search-icon { width: 17px; height: 17px; border: 2px solid #d3d5d8; border-radius: 50%; position: relative; flex: 0 0 auto; }
.search-icon::after { content: ''; position: absolute; width: 7px; height: 2px; right: -5px; bottom: -2px; background: #d3d5d8; transform: rotate(48deg); }
.filter-wrap { width: 295px; position: relative; z-index: 4; }
.filter-trigger { width: 100%; min-height: 42px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; background: #181818; color: #f9fafb; font-size: 13px; font-weight: 700; cursor: pointer; }
.filter-chevron { display: block; transition: transform .15s ease; transform: rotate(90deg); }
.filter-chevron.open { transform: rotate(-90deg); }
.filter-options { position: absolute; top: 47px; inset-inline: 0; padding: 6px; border-radius: 8px; background: #141414; box-shadow: 0 4px 12px #0006; }
.filter-options button { width: 100%; height: 38px; padding: 0 10px; display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: 6px; background: transparent; color: #d1d2d4; text-align: left; font-size: 13px; cursor: pointer; }
.filter-options button:hover { background: rgba(255,255,255,.06); }
.filter-options button.selected { background: rgba(255,255,255,.08); color: #cbf4c0; font-weight: 600; }
.filter-check { display: block; }
.table-board { min-height: 540px; border-radius: 10px; padding: 14px; background: #141924 url('/images/floor-plan-background.png') center / cover; display: grid; grid-template-columns: repeat(6, minmax(88px, 1fr)); align-content: start; gap: 6px; }
.table-board.map-view { grid-template-columns: repeat(4, minmax(90px, 160px)); grid-template-rows: repeat(4, 90px); justify-content: space-between; align-content: center; padding-inline: 8%; }
.table-board.map-view .table-tile:nth-child(3n) { margin-top: 60px; }
.table-tile { min-height: 90px; padding: 9px 11px; display: flex; flex-direction: column; justify-content: space-between; border: 2px solid #141924; border-radius: 5px; color: #0a121f; cursor: pointer; }
.table-tile:hover { outline: 2px solid #6bb8f0; }
.table-tile.empty { background: #d9dde0; }
.table-tile.reserved { background: #f2e4d5; }
.table-tile.occupied { background: #ffeded; border-style: dashed; border-color: #e04038; }
.table-tile.paid { background: #dcefcf; }
.table-tile strong { font-size: 34px; line-height: 1; }
.table-tile small { font-size: 12px; font-weight: 600; }
.table-tile .paid-euro { align-self: flex-end; color: #5d9b18; font-size: 22px; margin-top: -25px; }

.reservation-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; margin: 12px 0; }
.reservation-stat { min-height: 64px; background: #d0d0d0; color: #141924; padding: 8px 10px; }
.reservation-stat strong { display: block; font-size: 23px; }
.reservation-stat span { font-size: 13px; }
.timeline-controls { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 6px; }
.timeline-switch { display: flex; gap: 3px; padding: 3px; background: #141924; border-radius: 6px; }
.timeline-switch button { border: 0; background: transparent; color: #f9fafb; padding: 8px 12px; font-size: 12px; }
.timeline-switch button.active { color: #141924; background: #cbf4c0; border-radius: 4px; font-weight: 700; }
.timeline { overflow: auto; border-radius: 9px; background: #141924; }
.timeline-grid { min-width: 850px; display: grid; grid-template-columns: 120px repeat(8, minmax(70px, 1fr)); }
.timeline-cell { height: 54px; border-right: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); padding: 7px 8px; font-size: 11px; }
.timeline-cell.time { height: 34px; padding-top: 9px; text-align: center; font-weight: 700; }
.timeline-cell.table-label { font-weight: 700; }
.reservation-block { height: 38px; margin: 0 1px; padding: 4px 7px; border-radius: 4px; background: #6bb8f0; color: #101b29; font-size: 10px; }
.reservation-block strong,.reservation-block small { display: block; }

.orders-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); align-items: start; gap: 12px; }
.orders-card { --surface-muted: #e0e3e8; padding: 9px 11px; border-radius: 8px; background: #555; box-shadow: 0 4px 10px #0005; }
.orders-card > button { width: 100%; padding: 2px 0 8px; display: flex; justify-content: space-between; align-items: center; border: 0; background: none; text-align: left; font-size: 16px; font-weight: 700; cursor: pointer; }
.orders-card-section { border-top: 1px solid rgba(255,255,255,.32); padding: 8px 0 5px; }
.orders-card-section header { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.orders-card-section header .status { margin-left: auto; padding: 4px 9px; border-radius: 6px; background: #b4b4b4; color: #262626; font-size: 10px; font-weight: 500; }
.orders-card-section header .status.ready { background: #33b273; color: #082621; }
.order-details { margin-top: 4px; padding: 6px 8px; background: #353535; font-size: 12px; }
.order-details .item { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; padding: 3px 0; }
.order-details small { color: #c5c5c5; font-style: italic; }
.orders-card-footer { display: flex; align-items: center; justify-content: space-between; margin: 8px 0; color: #e0e3e8; font-size: 12px; }
.orders-card-footer strong { color: #ffc1b5; font-size: 17px; }
.orders-card-actions { display: grid; grid-template-columns: 48px 1fr; gap: 8px; }
.orders-card-actions button { min-height: 38px; border: 1px solid #ddd; border-radius: 7px; background: transparent; color: #fff; cursor: pointer; }
.orders-card-actions img { display: block; }

.permissions-table { display: grid; grid-template-columns: 175px repeat(6, minmax(80px,1fr)); min-width: 760px; border-radius: 8px; overflow: hidden; background: #141924; }
.permission-cell { min-height: 50px; display: grid; place-items: center; padding: 7px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); font-size: 13px; }
.permission-cell.heading { min-height: 38px; font-weight: 600; }
.permission-cell.row-name { justify-items: start; font-weight: 600; }
.permission-cell input { width: 18px; height: 18px; accent-color: #6bb8f0; cursor: pointer; }
.permissions-wrap { overflow: auto; }
.search-roles { width: 300px; margin: 10px 0 18px; }
.module-placeholder,.login-card { background: #fff; color: #141924; border-radius: 10px; padding: 28px; }
.module-heading { margin: 0 0 22px; }
.module-heading h1 { margin: 4px 0; font-size: 26px; font-weight: 500; }
.module-heading p { margin: 0; color: #d3d5d8; font-size: 12px; }
.text-link { display: inline-block; margin-top: 12px; color: #2563d9; font-size: 12px; }

.settings-description { margin: 0 0 20px; color: #576780; font-size: 12px; }
.setting-group { margin: 14px 0; }
.setting-group label { display: block; margin-bottom: 7px; color: #69778e; font-size: 11px; font-weight: 600; }
.setting-input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #bfcee5; border-radius: 7px; background: #f7faff; color: #141a24; }
.choice-grid { display: grid; gap: 10px; }
.choice-grid.two { grid-template-columns: repeat(2,1fr); }
.choice-grid.four { grid-template-columns: repeat(4,1fr); }
.choice-grid button { min-height: 36px; border: 1px solid #bfcee5; border-radius: 6px; background: #f7faff; color: #141a24; font-size: 11px; font-weight: 600; cursor: pointer; }
.choice-grid button.active { border-color: #2563d9; background: #2563d9; color: #fff; }
.setting-check { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.setting-check input { accent-color: #2563d9; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.dialog-actions button { min-width: 110px; min-height: 38px; border: 1px solid #bfcee5; border-radius: 6px; background: #f7faff; color: #141a24; font-size: 12px; font-weight: 600; cursor: pointer; }
.dialog-actions button.save { min-width: 140px; border-color: #2563d9; background: #2563d9; color: #fff; }


@media (max-width: 1450px) {
    .desktop-shell { grid-template-columns: 256px minmax(0,1fr); }
    .table-board { grid-template-columns: repeat(4, minmax(80px,1fr)); }
    .order-sidebar { padding-inline: 12px; }
    .orders-grid { grid-template-columns: repeat(2,minmax(210px,1fr)); }
}

@media (max-width: 1100px) {
    html, body { min-width: 0; }
    .desktop-shell { grid-template-columns: 256px minmax(0,1fr); }
    .order-sidebar { grid-column: 2; min-height: 0; padding: 20px; overflow: visible; }
}

@media (max-width: 900px) {
    .desktop-shell { display: block; }
    .side-nav { display: none; }
    .desktop-main { min-height: 100dvh; padding-bottom: 70px; }
    .topbar { position: sticky; top: 0; z-index: 10; gap: 12px; background: #181818; }
    .mobile-navigation { display: block; flex: 0 0 auto; }
    .mobile-navigation > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; }
    .mobile-navigation > summary::-webkit-details-marker { display: none; }
    .mobile-navigation > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
    .mobile-navigation > summary span:first-child { font-size: 20px; line-height: 1; }
    .mobile-menu-panel { position: absolute; top: 64px; left: 12px; width: min(320px, calc(100vw - 24px)); max-height: calc(100dvh - 138px); padding: 8px 12px 16px; overflow-x: hidden; overflow-y: auto; border: 1px solid var(--line); border-radius: 0 0 12px 12px; background: #101317; box-shadow: 0 16px 32px #0008; }
    .mobile-menu-panel .tenant-navigation nav { overflow: visible; }
    .mobile-menu-panel .navigation-caption { margin-top: 4px; }
    .mobile-menu-panel .tenant-navigation nav > a { min-height: 48px; }
    .mobile-menu-panel .admin-menu { border-top: 1px solid var(--line); }
    .order-sidebar { min-height: 0; padding: 20px; padding-bottom: 90px; }
    .bottom-nav { position: fixed; z-index: 9; right: 0; bottom: 0; left: 0; height: 66px; display: flex; justify-content: space-around; padding: 6px 8px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #141924; }
    .bottom-nav a { display: flex; min-width: 54px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; }
    .bottom-nav a.active { color: var(--blue); }
    .bottom-nav small { font-size: 9px; }
    .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .orders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .timeline-controls { flex-wrap: wrap; gap: 10px; }
    .timeline-controls .table-tools { margin: 0; }
    .floorplan-toolbar { flex-wrap: wrap; }
}

.workspace-indicator { color: #b4b4b4; }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 32px; }
.overview-card { min-height: 126px; padding: 18px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); text-decoration: none; }
.overview-card span, .overview-card small { color: var(--muted); font-size: 12px; }
.overview-card strong { font-size: 25px; }
.overview-card:hover, .shortcut-card:hover { border-color: var(--blue); }
.overview-shortcuts h2 { margin: 0 0 14px; font-size: 18px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shortcut-card { min-height: 82px; padding: 14px; display: grid; grid-template-columns: 34px 1fr 16px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); text-decoration: none; }
.shortcut-card > span { color: var(--blue); font-size: 20px; text-align: center; }
.shortcut-card strong, .shortcut-card small { display: block; }
.shortcut-card strong { font-size: 13px; }
.shortcut-card small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.shortcut-card > b { color: var(--muted); }
.floorplan-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.floorplan-actions { display: flex; gap: 8px; }
.secondary-button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: transparent; cursor: pointer; }
.floorplan-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.floorplan-legend span { display: flex; align-items: center; gap: 6px; }
.floorplan-legend i { width: 8px; height: 8px; border-radius: 50%; }
.floorplan-legend .empty { background: #66c47d; }
.floorplan-legend .occupied { background: #f17b70; }
.floorplan-legend .reserved { background: #ecc45b; }
.floorplan-legend .paid { background: #6bb8f0; }
.module-placeholder { margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); }
.module-placeholder h2 { margin-top: 0; }
.module-placeholder p { color: var(--muted); }

@media (max-width: 700px) {
    html, body { min-width: 0; }
    .desktop-content { padding: 18px 14px; }
    .overview-grid { grid-template-columns: 1fr; gap: 8px; margin: 18px 0 24px; }
    .overview-card { min-height: 90px; }
    .shortcut-grid { grid-template-columns: 1fr; }
    .floorplan-toolbar { align-items: flex-start; flex-direction: column; }
    .floorplan-actions { width: 100%; }
}

@media (max-width: 600px) {
    .topbar { min-height: 56px; padding: 0 14px; }
    .topbar .user-area { display: none; }
    .mobile-menu-panel { top: 56px; max-height: calc(100dvh - 130px); }
    .page-heading { align-items: flex-start; flex-wrap: wrap; }
    .page-heading > .primary-button { width: 100%; text-align: center; }
    .page-heading h1 { font-size: 23px; }
    .table-tools, .floorplan-toolbar, .timeline-controls .table-tools { width: 100%; }
    .table-tools { justify-content: stretch; }
    .search-bar, .filter-wrap, .search-roles { width: 100%; max-width: 100%; }
    .floorplan-toolbar .table-tools { margin: 0; }
    .floorplan-actions { flex-wrap: wrap; }
    .floorplan-actions > * { flex: 1 1 140px; text-align: center; }
    .table-board, .table-board.map-view { min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 8px; padding: 10px; align-content: start; justify-content: stretch; }
    .table-board.map-view .table-tile:nth-child(3n) { margin-top: 0; }
    .table-tile { min-width: 0; }
    .reservation-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .timeline-switch { max-width: 100%; overflow-x: auto; }
    .orders-grid { grid-template-columns: minmax(0, 1fr); }
    .orders-card, .order-line, .order-line > div { min-width: 0; }
    .order-line strong, .order-line small { overflow-wrap: anywhere; }
    .choice-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dialog-actions { flex-wrap: wrap; }
    .dialog-actions button, .dialog-actions button.save { flex: 1 1 130px; min-width: 0; }
}

/* Shared application feedback and keyboard access. */
.skip-navigation { position: fixed; top: -100px; left: 16px; z-index: 1000; padding: 12px 18px; background: #fff; color: #141924; border-radius: 6px; }
.skip-navigation:focus { top: 12px; }
.preview-notice { padding: 11px 20px; border-bottom: 1px solid #aab79a33; background: #cbe4a90c; color: #cdd7c0; font-size: 12px; line-height: 1.7; }
.preview-notice a { text-underline-offset: 3px; margin-left: 8px; }
.crumb a { text-decoration: none; }
.desktop-main:focus { outline: none; }
.desktop-content { max-width: 1600px; margin-inline: auto; padding: 26px 28px; }
.overview-shortcuts { margin-top: 28px; }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; }
.text-link { color: #8ac8ff; }
@media (max-width: 900px) {
    .mobile-menu-panel .tenant-navigation nav { padding-top: 4px; }
    .mobile-menu-panel .tenant-navigation nav > a { padding-block: 10px; }
    .desktop-content { padding: 20px 16px; }
    .preview-notice { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (max-height: 850px) and (min-width: 901px) {
    .tenant-navigation nav > a, .admin-menu > summary { min-height: 48px; padding-block: 8px; font-size: 14px; }
}
