Files
wyndham-Condon/styles.css
2026-08-03 16:43:57 +08:00

617 lines
50 KiB
CSS

:root {
color-scheme: light;
--ink: #172033;
--body: #3f4858;
--muted: #697386;
--faint: #697386;
--line: #e1e5eb;
--line-strong: #cbd1db;
--canvas: #f5f6f8;
--surface: #ffffff;
--surface-soft: #f8f9fb;
--nav: #142033;
--nav-muted: #aeb8ca;
--primary: #2454d3;
--primary-hover: #1d47ba;
--primary-soft: #eef3ff;
--error: #b42318;
--error-soft: #fff3f1;
--shadow: 0 18px 60px rgba(17, 24, 39, 0.14);
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--sidebar-width: 122px;
--mobile-sidebar-width: 244px;
font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid rgba(36, 84, 211, .25); outline-offset: 2px; }
.login-screen { position: relative; isolation: isolate; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; background: var(--canvas); }
.login-screen::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -2; width: 46%; background: var(--nav); }
.login-screen::after { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: 46%; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 92%); }
.login-header, .login-layout, .login-footer { width: min(100% - 48px, 1180px); margin-inline: auto; }
.login-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.login-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.login-brand-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.login-brand-mark svg { width: 22px; height: 22px; }
.login-brand > span:last-child { display: grid; gap: 1px; }
.login-brand strong { font-size: 16px; font-weight: 680; letter-spacing: -.015em; }
.login-brand small { color: #aeb8ca; font-size: 10px; font-weight: 620; letter-spacing: .08em; text-transform: uppercase; }
.login-language-switch { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.88); box-shadow: 0 8px 24px rgba(17,24,39,.06); }
.login-language-option { min-width: 54px; height: 34px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 680; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.login-language-option:hover { color: var(--ink); background: var(--surface-soft); }
.login-language-option.active { color: var(--primary); background: #fff; box-shadow: 0 1px 5px rgba(17,24,39,.12); }
.login-language-option:focus-visible { outline-offset: 1px; }
.login-layout { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1fr) 440px; align-items: center; gap: clamp(72px, 10vw, 160px); padding: 48px 0 72px; }
.login-intro { max-width: 470px; color: #fff; }
.login-kicker { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #aebbd1; font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.login-intro h1 { max-width: 440px; margin: 24px 0 18px; font-size: clamp(38px, 4vw, 56px); line-height: 1.04; letter-spacing: -.052em; font-weight: 610; }
.login-intro p { max-width: 410px; margin: 0; color: #b7c1d0; font-size: 15px; line-height: 1.65; }
.login-system-status { display: flex; align-items: center; gap: 9px; margin-top: 34px; color: #d6dce6; font-size: 11px; }
.login-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #80a3ff; box-shadow: 0 0 0 5px rgba(126,160,255,.13); }
.login-card { width: 100%; padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 26px 80px rgba(17,24,39,.15); }
.login-card-heading h2 { margin: 8px 0 8px; font-size: 29px; line-height: 1.15; letter-spacing: -.035em; font-weight: 630; }
.login-card-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.login-checking { min-height: 216px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 12px; }
.login-spinner { width: 17px; height: 17px; border: 2px solid #dce2eb; border-top-color: var(--primary); border-radius: 50%; animation: loginSpin .8s linear infinite; }
@keyframes loginSpin { to { transform: rotate(360deg); } }
.login-form { display: grid; gap: 17px; margin-top: 28px; }
.login-field { gap: 8px; }
.login-field label { color: var(--body); font-size: 11px; font-weight: 670; }
.login-input-wrap { position: relative; }
.login-input-wrap > svg { position: absolute; top: 50%; left: 14px; z-index: 1; width: 17px; height: 17px; color: #788397; transform: translateY(-50%); pointer-events: none; }
.login-field .login-input-wrap input { height: 50px; padding: 0 44px 0 42px; border-color: var(--line-strong); font-size: 14px; }
.login-field .login-input-wrap input:hover { border-color: #adb6c5; }
.login-field .login-input-wrap input:focus { border-color: #6f91e7; box-shadow: 0 0 0 4px rgba(36,84,211,.1); }
.password-toggle { position: absolute; top: 5px; right: 5px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); transition: color .18s ease, background .18s ease; }
.password-toggle:hover { color: var(--ink); background: var(--surface-soft); }
.password-toggle svg { width: 18px; height: 18px; }
.login-error { padding: 10px 12px; border: 1px solid #f1c3be; border-radius: 8px; background: var(--error-soft); color: var(--error); font-size: 11px; }
.login-submit { width: 100%; min-height: 50px; margin-top: 1px; }
.login-submit svg { margin-left: auto; }
.login-session-note { display: flex; align-items: center; gap: 9px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.login-session-note svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--primary); }
.login-footer { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.login-footer span:first-child { color: rgba(255,255,255,.62); }
.app-shell { min-height: 100dvh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; width: var(--sidebar-width); height: 100dvh; z-index: 30; display: flex; flex-direction: column; padding: 18px 10px 14px; background: var(--nav); color: #fff; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 2px 0 24px; letter-spacing: -.01em; text-align: center; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: var(--nav); }
.brand-mark svg { width: 20px; height: 20px; }
.brand strong { font-size: 15px; font-weight: 650; line-height: 1.1; }
.nav-list { display: grid; gap: 8px; }
.nav-item { width: 100%; min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 9px 6px; border: 0; border-radius: 10px; color: var(--nav-muted); background: transparent; font-size: 11px; font-weight: 570; line-height: 1.2; text-align: center; transition: color .18s ease, background .18s ease; }
.nav-item span { max-width: 100%; white-space: normal; }
.nav-item svg { width: 20px; height: 20px; flex: 0 0 auto; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 3px 0 0 #7ea0ff; }
.sidebar-bottom { min-height: 126px; margin-top: auto; padding: 0 2px 88px; }
.sidebar-session { position: relative; margin-top: auto; padding: 0 2px 124px; }
.language-dock { position: fixed; left: 10px; bottom: 16px; z-index: 90; width: calc(var(--sidebar-width) - 20px); pointer-events: none; }
.language-switch { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); height: 108px; padding: 3px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(6,13,24,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 24px rgba(4,10,20,.16); pointer-events: auto; }
.language-switch::before { content: ""; position: absolute; top: 3px; left: 3px; right: 3px; z-index: 0; height: calc(33.3333% - 3px); border: 1px solid rgba(255,255,255,.55); border-radius: 9px; background: #f4f7fb; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 3px 10px rgba(3,8,18,.22); transition: transform .18s cubic-bezier(.2,.8,.2,1); }
[data-locale="zh"] .language-switch::before { transform: translateY(100%); }
[data-locale="th"] .language-switch::before { transform: translateY(200%); }
.language-option { position: relative; z-index: 1; min-width: 0; min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 6px; border: 0; border-radius: 9px; background: transparent; color: #b8c2d1; cursor: pointer; touch-action: manipulation; transition: color .15s ease, transform .12s ease; }
.language-code { color: #92a7db; font-size: 8px; font-weight: 760; letter-spacing: .08em; transition: color .15s ease; }
.language-name { overflow: hidden; font-size: 12px; font-weight: 650; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.language-option:hover:not(.active) { color: #f4f7fb; }
.language-option:hover:not(.active) .language-code { color: #b8c9f2; }
.language-option.active { color: var(--nav); }
.language-option.active .language-code { color: var(--primary); }
.language-option:active { transform: scale(.98); }
.language-option:focus-visible { outline: 2px solid #8ba7ef; outline-offset: -1px; }
.sidebar-footer { padding: 0 2px; overflow-wrap: anywhere; color: #8995a8; font-size: 9px; line-height: 1.4; text-align: center; }
.main-column { position: relative; min-width: 0; }
.topbar { position: absolute; inset: 0 0 auto; z-index: 20; height: 0; display: flex; align-items: flex-start; justify-content: flex-start; padding: 0; border: 0; background: transparent; pointer-events: none; }
.mobile-menu { display: none !important; }
.session-logout { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--body); font-size: 11px; font-weight: 620; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.session-logout:hover { border-color: #adb6c5; background: var(--surface-soft); color: var(--ink); }
.session-logout:disabled { cursor: wait; opacity: .6; }
.session-logout svg { width: 16px; height: 16px; }
.sidebar-logout { width: 100%; min-height: 40px; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #dce4f2; }
.sidebar-logout:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.12); color: #fff; }
.session-error { position: absolute; top: calc(100% + 10px); right: 0; width: max-content; max-width: min(320px, calc(100vw - 28px)); padding: 9px 11px; border: 1px solid #f1c3be; border-radius: 8px; background: var(--error-soft); box-shadow: 0 10px 28px rgba(17,24,39,.12); color: var(--error); font-size: 10px; }
.sidebar-session .session-error { top: auto; right: auto; bottom: calc(100% + 10px); left: 2px; }
.content { width: 100%; max-width: none; margin: 0; padding: 18px 32px 64px; }
.connection-banner { min-height: 48px; display: flex; align-items: center; gap: 11px; margin: -10px 0 24px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.78); }
.connection-banner > div { min-width: 0; display: grid; gap: 1px; }
.connection-banner strong { font-size: 12px; font-weight: 650; }
.connection-banner span:not(.connection-dot) { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.connection-banner .text-button { margin-left: auto; padding: 7px 8px; }
.connection-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #7b8799; box-shadow: 0 0 0 4px rgba(123,135,153,.12); }
.connection-banner[data-state="loading"] .connection-dot { background: #d19213; box-shadow: 0 0 0 4px rgba(209,146,19,.14); animation: connectionPulse 1.2s ease-in-out infinite; }
.connection-banner[data-state="ready"] .connection-dot { background: #15803d; box-shadow: 0 0 0 4px rgba(21,128,61,.12); }
.connection-banner[data-state="error"] { border-color: #f1c3be; background: var(--error-soft); }
.connection-banner[data-state="error"] .connection-dot { background: var(--error); box-shadow: 0 0 0 4px rgba(180,35,24,.12); }
@keyframes connectionPulse { 50% { opacity: .45; } }
.page { display: none; }
.page.active { display: block; animation: pageIn .22s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading.compact { margin-bottom: 24px; }
.page-heading.compact h1 { margin-top: 0; }
.eyebrow { display: block; color: #68748a; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.page-heading h1 { margin: 7px 0 6px; font-size: clamp(27px, 2.4vw, 36px); line-height: 1.15; letter-spacing: -.035em; font-weight: 620; }
.page-heading p, .drawer-header p { margin: 0; color: var(--muted); }
.primary-button, .secondary-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border-radius: 9px; font-weight: 600; transition: background .18s ease, border-color .18s ease, color .18s ease; white-space: nowrap; }
.primary-button { border: 1px solid var(--primary); background: var(--primary); color: #fff; }
.primary-button:hover { border-color: var(--primary-hover); background: var(--primary-hover); }
.primary-button:disabled { cursor: not-allowed; border-color: #b9c3d8; background: #b9c3d8; }
.secondary-button { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.secondary-button:hover { border-color: #9da7b8; background: var(--surface-soft); }
.primary-button:active:not(:disabled), .secondary-button:active, .icon-button:active, .row-action:active { transform: translateY(1px); }
.primary-button svg, .secondary-button svg { width: 17px; height: 17px; }
.text-button { display: inline-flex; align-items: center; gap: 4px; padding: 7px 0; border: 0; background: transparent; color: var(--primary); font-size: 12px; font-weight: 600; }
.text-button:hover { color: var(--primary-hover); }
.text-button svg { width: 14px; height: 14px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.icon-button:hover { background: var(--surface-soft); }
.icon-button svg { width: 19px; height: 19px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.dashboard-title-card { min-height: 158px; display: flex; flex-direction: column; justify-content: center; padding: 22px; overflow: hidden; border: 1px solid var(--nav); border-radius: var(--radius-md); background: var(--nav); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.dashboard-title-card .eyebrow { color: #aebbd1; }
.dashboard-title-card h1 { margin: 8px 0 0; color: #fff; font-size: clamp(31px, 3vw, 43px); line-height: 1; letter-spacing: -.052em; font-weight: 650; }
.metric-card { position: relative; min-height: 158px; display: flex; flex-direction: column; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.metric-icon { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface-soft); }
.metric-icon svg { width: 17px; height: 17px; }
.metric-card > span { color: var(--muted); font-size: 12px; font-weight: 550; }
.metric-card > strong { margin-top: auto; font-size: 30px; line-height: 1; letter-spacing: -.04em; font-weight: 620; font-variant-numeric: tabular-nums; }
.metric-card > small { margin-top: 8px; color: var(--faint); font-size: 11px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(310px,.8fr); gap: 16px; margin-bottom: 16px; }
.activity-panel, .room-mix-panel { min-height: 330px; padding: 22px; }
.room-mix-panel { display: flex; flex-direction: column; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel-heading h2 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 620; letter-spacing: -.012em; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.chart-summary { margin-top: 28px; display: flex; align-items: baseline; gap: 8px; }
.chart-summary strong { font-size: 30px; letter-spacing: -.04em; font-weight: 620; }
.chart-summary span { color: var(--muted); font-size: 12px; }
.bar-chart { height: 175px; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: clamp(5px, 1vw, 11px); margin-top: 14px; padding-top: 12px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, #f1f3f6 40px); }
.bar-item { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bar-item span { width: 100%; max-width: 24px; height: var(--height); min-height: 2px; border-radius: 5px 5px 0 0; background: #bac5d7; transition: height .25s ease, background .18s ease; }
.bar-item.current span { background: var(--primary); }
.bar-item.future span { background: #e8ebf0; }
.bar-item small { position: relative; top: 25px; color: var(--faint); font-size: 10px; }
.room-mix-legend { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 20px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.room-mix-legend-item { min-width: 0; display: flex; align-items: center; gap: 9px; }
.room-mix-legend-item > span:last-child { min-width: 0; display: grid; gap: 2px; }
.room-mix-legend-item strong { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.room-mix-legend-item small { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.room-mix-swatch { width: 9px; height: 9px; flex: 0 0 auto; }
.room-mix-swatch-source { border-radius: 2px; background: var(--nav); }
.room-mix-swatch-used { border-radius: 50%; background: var(--primary); }
.room-mix-chart { display: grid; gap: 14px; }
.room-mix-row { display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: start; gap: 10px; }
.room-mix-type { padding-top: 3px; color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.room-mix-series-stack { min-width: 0; display: grid; gap: 6px; }
.room-mix-series { min-width: 0; display: grid; grid-template-columns: 7px minmax(0,1fr) 68px; align-items: center; gap: 8px; }
.room-mix-series::before { content: ""; width: 6px; height: 6px; }
.room-mix-series-source::before { border-radius: 1px; background: var(--nav); }
.room-mix-series-used::before { border-radius: 50%; background: var(--primary); }
.room-mix-track { height: 8px; overflow: hidden; border-radius: 999px; background: #edf0f4; }
.room-mix-fill { display: block; width: var(--share); height: 100%; transition: width .25s ease; }
.room-mix-fill.has-value { min-width: 4px; }
.room-mix-fill-source { border-radius: 2px; background: var(--nav); }
.room-mix-fill-used { border-radius: 999px; background: var(--primary); }
.room-mix-value { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; color: var(--ink); font-size: 10px; font-variant-numeric: tabular-nums; }
.room-mix-value strong { font-size: 11px; font-weight: 650; }
.room-mix-value small { color: var(--muted); font-size: 9px; }
.room-mix-note { margin: auto 0 0; padding-top: 14px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.owner-workspace-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.owner-workspace-header .primary-button { margin-bottom: 8px; }
.owner-workspace-header .open-stay-drawer {
min-height: 30px;
gap: 5px;
padding: 0 8px;
border-radius: 6px;
font-size: 11px;
}
.owner-workspace-header .open-stay-drawer svg { width: 13px; height: 13px; }
.owner-workspace-tabs { min-width: 0; display: flex; align-items: flex-end; gap: 32px; margin: 0; }
.owner-workspace-tab { position: relative; min-height: 54px; display: inline-flex; align-items: center; gap: 9px; padding: 0 4px 2px; border: 0; background: transparent; color: var(--muted); font-size: 15px; font-weight: 650; }
.owner-workspace-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.owner-workspace-tab:hover { color: var(--ink); }
.owner-workspace-tab.active { color: var(--ink); }
.owner-workspace-tab.active::after { background: var(--primary); }
.owner-workspace-tab > span:last-child { min-width: 26px; color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }
.owner-workspace-tab.active > span:last-child { color: var(--primary); }
.owner-workspace-tab .tab-label { min-width: 0; color: inherit; font-size: inherit; text-align: left; }
.content:has(.page[data-page-content="owners"].active) { padding-bottom: 18px; }
.page[data-page-content="owners"].active { min-height: calc(100dvh - 36px); display: flex; flex-direction: column; }
.owner-workspace-header { flex: 0 0 auto; }
.owner-workspace-view { display: none; }
.owner-workspace-view.active { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; }
.table-panel { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; overflow: hidden; }
.table-panel > .panel-heading { padding: 20px 22px 16px; }
.table-wrap { width: 100%; overflow-x: auto; }
.owners-panel > .toolbar, .usage-panel > .toolbar { flex: 0 0 auto; }
.owners-panel .table-wrap, .usage-panel .table-wrap { min-height: 0; flex: 1 1 auto; max-height: none; overflow: auto; }
.owners-panel thead, .usage-panel thead { position: sticky; top: 0; z-index: 2; }
.owner-table { min-width: 960px; table-layout: fixed; }
.owner-table th { height: 48px; line-height: 1.2; white-space: normal; }
.owner-table th:nth-child(1) { width: 6%; }
.owner-table th:nth-child(2) { width: 18%; }
.owner-table th:nth-child(3) { width: 10%; }
.owner-table th:nth-child(4) { width: 11%; }
.owner-table th:nth-child(5) { width: 11%; }
.owner-table th:nth-child(6) { width: 12%; }
.owner-table th:nth-child(7) { width: 14%; }
.owner-table th:nth-child(8) { width: 14%; }
.owner-table th:nth-child(9) { width: 4%; }
.owner-table td:nth-child(2) { line-height: 1.35; white-space: normal; }
.usage-table { min-width: 1100px; table-layout: fixed; }
.usage-table th { height: 48px; line-height: 1.2; white-space: normal; }
.usage-table th,
.usage-table td { padding-right: 12px; padding-left: 12px; }
.usage-table th:nth-child(1),
.usage-table td:nth-child(1) { width: 9%; }
.usage-table th:nth-child(2),
.usage-table td:nth-child(2) { width: 18%; }
.usage-table th:nth-child(3),
.usage-table td:nth-child(3),
.usage-table th:nth-child(4),
.usage-table td:nth-child(4) { width: 8.5%; }
.usage-table th:nth-child(5),
.usage-table td:nth-child(5),
.usage-table th:nth-child(6),
.usage-table td:nth-child(6) { width: 5%; }
.usage-table th:nth-child(7),
.usage-table td:nth-child(7) { width: 9%; text-align: center; }
.usage-table th:nth-child(8),
.usage-table td:nth-child(8) { width: 21%; }
.usage-table th:nth-child(9),
.usage-table td:nth-child(9) { width: 8%; }
.usage-table th:nth-child(10),
.usage-table td:nth-child(10) { width: 8%; }
.usage-table td:nth-child(2), .usage-table td:nth-child(9) { white-space: normal; }
.history-room-type {
display: inline-block;
max-width: 100%;
color: var(--ink);
font-weight: 650;
line-height: 1.25;
overflow-wrap: break-word;
text-align: left;
white-space: normal;
}
.record-remark { display: -webkit-box; overflow: hidden; color: var(--muted); line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
table { width: 100%; border-collapse: collapse; }
th { height: 41px; padding: 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { height: 64px; padding: 9px 16px; border-bottom: 1px solid #edf0f3; color: var(--body); font-size: 13px; vertical-align: middle; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: #fafbfd; }
td strong, .owner-name { color: var(--ink); font-weight: 610; }
.table-subline { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .015em; }
.neutral-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--body); font-size: 11px; font-weight: 650; }
.align-right { text-align: right; }
.row-action { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.row-action:hover { background: #eef1f5; color: var(--ink); }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.delete-usage-action { width: 28px; height: 28px; margin-left: 3px; color: var(--faint); opacity: .52; }
.delete-usage-action:hover { background: transparent; color: var(--error); opacity: 1; }
.delete-usage-action:focus-visible { opacity: 1; }
.delete-usage-action:disabled { cursor: wait; opacity: .45; }
.row-action svg { width: 16px; height: 16px; }
.clickable-row { cursor: pointer; }
.toolbar { min-height: 67px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.input-with-icon { width: min(390px, 45vw); height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.input-with-icon:focus-within { border-color: #8ba7ef; }
.input-with-icon svg { width: 17px; height: 17px; color: var(--muted); }
.input-with-icon input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); }
.toolbar select { height: 40px; min-width: 165px; padding: 0 32px 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--body); }
.toolbar-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.table-pagination { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 14px; min-height: 58px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.pagination-status { min-width: 180px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }
.pagination-pages { display: flex; align-items: center; justify-content: center; gap: 3px; }
.pagination-number { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.pagination-number:hover { border-color: #b7c7ed; background: var(--primary-soft); color: var(--primary); }
.pagination-number[aria-current="page"] { border-color: #b6c7ef; background: var(--primary-soft); color: var(--primary); font-weight: 720; }
.table-empty { min-height: 160px; display: grid; align-content: center; justify-items: center; gap: 5px; color: var(--muted); text-align: center; }
.table-empty strong { color: var(--ink); font-size: 13px; }
.table-empty span { font-size: 11px; }
/* Layer scale: navigation 30, scrims 70, drawers 80, toast 100, confirmation 110. */
.drawer-scrim, .mobile-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(10,16,26,.42); backdrop-filter: blur(2px); }
.confirm-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(17,24,39,.34); backdrop-filter: blur(3px); }
.confirm-dialog { position: fixed; top: 50%; left: 50%; z-index: 111; width: min(440px, calc(100vw - 32px)); padding: 24px; border: 1px solid rgba(36,84,211,.2); border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(17,24,39,.22), inset 0 1px 0 rgba(255,255,255,.8); opacity: 0; visibility: hidden; transform: translate(-50%, -48%) scale(.985); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.confirm-dialog.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.confirm-dialog-header { display: flex; align-items: flex-start; gap: 12px; }
.confirm-dialog-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--error-soft); color: var(--error); }
.confirm-dialog-icon svg { width: 18px; height: 18px; }
.confirm-dialog .eyebrow { color: var(--error); letter-spacing: .12em; }
.confirm-dialog h2 { margin: 4px 0 0; color: var(--ink); font-size: 19px; line-height: 1.2; letter-spacing: -.025em; font-weight: 650; }
.confirm-dialog-message { margin: 18px 0 0; color: var(--body); font-size: 13px; line-height: 1.58; }
.confirm-dialog-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--muted); font-size: 10px; }
.confirm-dialog-summary strong { color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.confirm-dialog-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.confirm-dialog-footer .primary-button, .confirm-dialog-footer .secondary-button { min-height: 40px; }
.confirm-danger-button { border-color: var(--error); background: var(--error); }
.confirm-danger-button:hover { border-color: #961d14; background: #961d14; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(560px, 100vw); display: flex; flex-direction: column; border-left: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); transform: translateX(102%); visibility: hidden; transition: transform .24s ease, visibility .24s ease; }
.wide-drawer { width: min(1440px, 100vw); }
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer-header { min-height: 104px; display: flex; justify-content: space-between; gap: 16px; padding: 24px 25px 20px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 6px 0 4px; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; font-weight: 620; }
.drawer-header p { font-size: 12px; }
.drawer form { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 25px 30px; }
.drawer-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 25px; border-top: 1px solid var(--line); background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.field { display: grid; gap: 7px; }
.full-field { grid-column: 1 / -1; }
.field label { color: var(--body); font-size: 11px; font-weight: 650; }
.field label .label-text { color: inherit; }
.field label .required-mark { color: var(--primary); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease; }
.field input, .field select { height: 44px; padding: 0 11px; }
.field textarea { min-height: 78px; resize: vertical; padding: 10px 11px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: #6f91e7; box-shadow: 0 0 0 3px rgba(36,84,211,.1); }
.field input[readonly] { color: var(--muted); background: var(--surface-soft); cursor: default; }
.field select:disabled { opacity: 1; color: var(--ink); background: var(--surface-soft); cursor: not-allowed; }
.field small { color: var(--muted); font-size: 10px; }
.account-context { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 11px 0 20px; }
.context-empty { grid-column: 1 / -1; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 9px; color: var(--muted); text-align: center; }
.context-item { padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.context-item span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.context-item strong { display: block; margin-top: 5px; overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.calculation-card { margin-top: 22px; padding: 17px; border: 1px solid #d6dce6; border-radius: 10px; background: #f8f9fb; }
.calculation-title, .calculation-line, .balance-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.calculation-title { padding-bottom: 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 650; }
.rule-source { padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--body); font-size: 9px; }
.calculation-line { padding: 15px 0; }
.calculation-line span { color: var(--muted); font-size: 12px; }
.calculation-line strong { color: var(--ink); font-size: 19px; letter-spacing: -.02em; }
.balance-line { padding-top: 13px; border-top: 1px solid var(--line); }
.balance-line > span { display: grid; gap: 3px; color: var(--muted); font-size: 10px; }
.balance-line > span:last-child { text-align: right; }
.balance-line > span > span { display: block; }
.balance-line b { color: var(--ink); font-size: 13px; }
.balance-line svg { width: 17px; height: 17px; color: var(--faint); }
.form-error { margin-top: 12px; padding: 11px 12px; border: 1px solid #f1c3be; border-radius: 8px; background: var(--error-soft); color: var(--error); font-size: 11px; }
.stay-drawer .drawer-header, .stay-drawer .drawer-footer { padding-left: max(25px, calc((100% - 1040px) / 2)); padding-right: max(25px, calc((100% - 1040px) / 2)); }
.stay-drawer .drawer-body > * { width: min(100%, 1040px); margin-left: auto; margin-right: auto; }
.detail-drawer { z-index: 81; }
.detail-balance { display: grid; grid-template-columns: .75fr 1.25fr; margin-bottom: 22px; overflow: hidden; border-radius: 12px; background: var(--nav); color: #fff; }
.detail-balance-main { padding: 22px; }
.detail-balance-main > span { color: #aebbd1; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.detail-balance-main > strong { display: block; margin-top: 8px; font-size: 38px; line-height: 1; letter-spacing: -.04em; font-weight: 590; }
.detail-balance-main > small { display: block; margin-top: 7px; color: #aebbd1; font-size: 10px; }
.detail-summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-left: 1px solid rgba(255,255,255,.13); }
.detail-summary-grid > div { min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 18px 12px; border-left: 1px solid rgba(255,255,255,.1); }
.detail-summary-grid > div:first-child { border-left: 0; }
.detail-summary-grid span { color: #aebbd1; font-size: 9px; line-height: 1.35; }
.detail-summary-grid strong { font-size: 19px; font-weight: 580; font-variant-numeric: tabular-nums; }
.detail-section-heading { min-height: 28px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.detail-section-heading h3 { margin: 0; font-size: 13px; }
.detail-section-heading > span { color: var(--muted); font-size: 10px; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.detail-grid > div { min-height: 72px; padding: 13px; background: #fff; }
.detail-grid span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.detail-grid strong { display: block; margin-top: 6px; font-size: 12px; }
.detail-section { min-width: 0; }
.detail-history-wrap { margin-top: 10px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.detail-history-table { min-width: 1120px; table-layout: fixed; }
.detail-history-table th { height: 42px; border-top: 0; padding: 0 10px; white-space: nowrap; line-height: 1.2; }
.detail-history-table th:nth-child(1), .detail-history-table td:nth-child(1) { width: 12%; }
.detail-history-table th:nth-child(2), .detail-history-table td:nth-child(2),
.detail-history-table th:nth-child(3), .detail-history-table td:nth-child(3) { width: 10%; }
.detail-history-table th:nth-child(4), .detail-history-table td:nth-child(4),
.detail-history-table th:nth-child(5), .detail-history-table td:nth-child(5) { width: 7%; }
.detail-history-table th:nth-child(6), .detail-history-table td:nth-child(6) { width: 16.5%; }
.detail-history-table th:nth-child(7), .detail-history-table td:nth-child(7) { width: 10%; }
.detail-history-table td { height: 58px; padding: 9px 10px; font-size: 11px; }
.detail-history-table th:nth-child(8), .detail-history-table td:nth-child(8) { width: 23%; white-space: normal; }
.detail-history-table th:nth-child(9), .detail-history-table td:nth-child(9) { width: 4.5%; }
.detail-history-actions { padding-right: 6px !important; text-align: right; }
.detail-history-remark { display: block; color: var(--body); line-height: 1.4; overflow-wrap: anywhere; }
.detail-empty { min-height: 120px; display: grid; align-content: center; justify-items: center; gap: 4px; margin-top: 10px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); text-align: center; }
.detail-empty strong { color: var(--ink); font-size: 12px; }
.detail-empty span { font-size: 10px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; min-width: 310px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; box-shadow: 0 14px 38px rgba(17,24,39,.16); animation: toastIn .2s ease both; }
.toast > svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ink); color: #fff; }
.toast > div { display: grid; }
.toast strong { font-size: 12px; }
.toast span { margin-top: 2px; color: var(--muted); font-size: 10px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1120px) {
.metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.dashboard-title-card { min-height: 135px; }
.metric-card { min-height: 135px; }
.dashboard-grid { grid-template-columns: 1fr; }
.room-mix-panel { min-height: auto; }
}
@media (max-width: 900px) {
.app-shell { display: block; }
.sidebar { position: fixed; left: 0; width: var(--mobile-sidebar-width); padding: 22px 16px 18px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 16px 0 42px rgba(0,0,0,.16); }
.brand { flex-direction: row; gap: 12px; padding: 2px 8px 26px; text-align: left; }
.brand-mark { width: 36px; height: 36px; }
.brand-mark svg { width: 22px; height: 22px; }
.brand strong { font-size: 17px; }
.nav-list { gap: 6px; }
.nav-item { min-height: 44px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 12px; font-size: 14px; line-height: 1.45; text-align: left; }
.nav-item svg { width: 18px; height: 18px; }
.sidebar-bottom { min-height: 81px; padding: 56px 0 0; }
.sidebar-session { padding: 0 0 60px; }
.sidebar-logout { justify-content: flex-start; min-height: 44px; padding: 0 12px; }
.sidebar-footer { padding: 12px 10px 0; font-size: 11px; line-height: 1.45; text-align: left; }
.sidebar.open { transform: translateX(0); }
.language-dock { left: 16px; bottom: 45px; width: calc(var(--mobile-sidebar-width) - 32px); opacity: 0; visibility: hidden; transform: translateX(-120%); transition: opacity .16s ease, transform .2s ease, visibility .2s ease; }
.language-switch { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; height: 44px; }
.language-switch::before { top: 3px; right: auto; bottom: 3px; left: 3px; width: calc(33.3333% - 3px); height: auto; }
[data-locale="zh"] .language-switch::before { transform: translateX(100%); }
[data-locale="th"] .language-switch::before { transform: translateX(200%); }
.language-option { min-height: 36px; gap: 6px; padding: 0 8px; }
.language-code { font-size: 9px; }
.sidebar.open + .language-dock, body:has(.drawer.open) .language-dock { opacity: 1; visibility: visible; transform: translateX(0); }
body:has(.drawer.open) .language-dock { bottom: 13px; width: min(192px, calc(100vw - 32px)); }
body:has(.drawer.open) .language-switch { background: var(--nav); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 20px rgba(4,10,20,.2); }
body:has(.drawer.open) .language-option { gap: 4px; padding: 0 4px; }
body:has(.drawer.open) .language-code { font-size: 8px; }
body:has(.drawer.open) .language-name { font-size: 11px; }
body:has(#stayDrawer.open) .language-dock { width: min(124px, calc(100vw - 32px)); }
body:has(#stayDrawer.open) .language-option { gap: 0; padding: 0 5px; }
body:has(#stayDrawer.open) .language-name { display: none; }
body:has(#stayDrawer.open) .language-code { display: inline; }
.mobile-scrim { z-index: 25; }
.mobile-menu { position: absolute; top: 14px; left: 20px; display: grid !important; flex: 0 0 auto; pointer-events: auto; }
.content:has(.page[data-page-content="owners"].active) { padding-bottom: 18px; }
.page[data-page-content="owners"].active { min-height: calc(100dvh - 86px); }
.content { padding: 68px 20px 52px; }
}
@media (max-width: 820px) {
.login-screen { overflow: auto; }
.login-screen::before, .login-screen::after { width: 100%; height: 340px; bottom: auto; }
.login-header, .login-layout, .login-footer { width: min(100% - 36px, 560px); }
.login-header { min-height: 82px; }
.login-language-switch { border-color: rgba(255,255,255,.16); background: rgba(6,13,24,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.login-language-option { color: #b8c2d1; }
.login-language-option:hover { color: #fff; background: rgba(255,255,255,.06); }
.login-language-option.active { color: var(--nav); background: #f4f7fb; }
.login-layout { min-height: auto; display: block; padding: 40px 0 48px; }
.login-intro { max-width: 500px; margin-bottom: 38px; }
.login-intro h1 { max-width: 500px; margin: 18px 0 12px; font-size: clamp(32px, 8vw, 44px); }
.login-intro p { font-size: 13px; }
.login-system-status { display: none; }
.login-card { max-width: 500px; margin-inline: auto; }
.login-footer { color: var(--muted); }
.login-footer span:first-child { color: var(--body); }
}
@media (max-width: 680px) {
.mobile-menu { top: 14px; left: 14px; }
.content:has(.page[data-page-content="owners"].active) { padding-bottom: 14px; }
.page[data-page-content="owners"].active { min-height: calc(100dvh - 82px); }
.content { padding: 68px 14px 44px; }
.connection-banner { align-items: flex-start; margin-top: -14px; }
.connection-banner span:not(.connection-dot) { white-space: normal; }
.page-heading { align-items: flex-start; }
.page-heading h1 { font-size: 28px; }
.page-heading p { max-width: 270px; }
.page-heading .primary-button, .page-heading .secondary-button { width: 44px; padding: 0; font-size: 0; flex: 0 0 auto; }
.page-heading .primary-button svg, .page-heading .secondary-button svg { width: 18px; height: 18px; }
.owner-workspace-header { align-items: stretch; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.owner-workspace-tabs { gap: 20px; overflow-x: auto; }
.owner-workspace-tab { min-height: 48px; flex: 0 0 auto; font-size: 14px; }
.owner-workspace-header .primary-button { align-self: flex-end; margin-bottom: 0; }
.metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.metric-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.dashboard-title-card { min-height: 128px; padding: 16px; }
.dashboard-title-card h1 { font-size: 32px; }
.metric-card { min-height: 128px; padding: 16px; }
.metric-card > strong { font-size: 25px; }
.metric-icon { top: 14px; right: 14px; width: 30px; height: 30px; }
.activity-panel, .room-mix-panel { padding: 18px; }
.activity-panel { min-height: 310px; }
.bar-chart { gap: 4px; }
.bar-item small { font-size: 8px; }
.panel-heading .text-button { font-size: 0; }
.panel-heading .text-button svg { width: 18px; height: 18px; }
.toolbar { flex-wrap: wrap; }
.input-with-icon { width: 100%; }
.toolbar select { flex: 1; min-width: 150px; }
.toolbar-count { margin-left: 0; }
.table-wrap { padding: 0 12px 12px; }
.owners-panel .table-wrap, .usage-panel .table-wrap { max-height: none; }
.table-pagination { flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.pagination-status { min-width: 0; font-size: 10px; }
.pagination-pages { flex-basis: 100%; margin-top: 2px; }
.owner-table, .usage-table, .detail-history-table { min-width: 0; table-layout: auto; }
.owner-workspace-view .usage-table th,
.owner-workspace-view .usage-table td { width: 100%; }
.usage-table th:nth-child(2), .usage-table td:nth-child(2) { width: 100%; }
.usage-table .history-room-type,
.detail-history-table .history-room-type {
width: 68%;
max-width: 68%;
flex: 0 0 68%;
overflow-wrap: break-word;
}
table, tbody, tr, td { display: block; width: 100%; }
thead { display: none; }
tbody { display: grid; gap: 10px; }
tbody tr { position: relative; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
td { height: auto; min-height: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 5px 0; border: 0; white-space: normal; text-align: right; }
td::before { content: attr(data-label); color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-align: left; }
td.owner-cell { align-items: flex-start; }
td:last-child:not([data-label]) { position: absolute; top: 7px; right: 7px; width: 32px; }
.usage-table td.usage-row-actions { width: 68px; }
.empty-table-row { padding: 0; }
.empty-table-row td { display: block; padding: 0; text-align: center; }
.empty-table-row td::before { display: none; }
.usage-table td:nth-child(7) { text-align: right; }
.align-right { text-align: right; }
.drawer { width: 100vw; }
.drawer-header { padding: 20px 18px 16px; }
.drawer-body { padding: 18px 18px 26px; }
.drawer-footer { padding: 13px 18px; }
.stay-drawer .drawer-header { padding: 20px 18px 16px; }
.stay-drawer .drawer-footer { padding: 13px 18px; }
.form-grid { grid-template-columns: 1fr; }
.account-context { grid-template-columns: repeat(2,1fr); }
.detail-balance { grid-template-columns: 1fr; }
.detail-summary-grid { border-top: 1px solid rgba(255,255,255,.13); border-left: 0; }
.detail-grid { grid-template-columns: repeat(2, 1fr); }
.detail-history-wrap { overflow: visible; border: 0; }
.balance-line { align-items: flex-start; }
.confirm-dialog { width: calc(100vw - 28px); padding: 20px; border-radius: 14px; }
.confirm-dialog-footer { flex-direction: column-reverse; }
.confirm-dialog-footer .primary-button, .confirm-dialog-footer .secondary-button { width: 100%; }
.toast { left: 14px; right: 14px; bottom: 14px; min-width: 0; }
}
@media (max-width: 480px) {
.login-header, .login-layout, .login-footer { width: min(100% - 28px, 440px); }
.login-header { min-height: 74px; }
.login-brand small { display: none; }
.login-language-option { min-width: 48px; padding: 0 8px; }
.login-layout { padding-top: 28px; }
.login-intro { margin-bottom: 28px; }
.login-intro h1 { font-size: 31px; }
.login-intro p { display: none; }
.login-card { padding: 26px 22px; border-radius: 15px; }
.login-card-heading h2 { font-size: 25px; }
.login-footer { min-height: 58px; }
.login-footer span:last-child { display: none; }
}
@media (max-width: 410px) {
.metric-grid { grid-template-columns: 1fr; }
.metric-grid > :last-child:nth-child(odd) { grid-column: auto; }
.dashboard-title-card { min-height: 118px; }
.metric-card { min-height: 118px; }
.room-mix-legend { grid-template-columns: 1fr; gap: 9px; }
.room-mix-series { grid-template-columns: 7px minmax(0,1fr) 62px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}