.charge-preview { white-space: pre-line; line-height: 1.9; }
.discount-help { display: block; font-size: 10px; line-height: 1.7; color: #889078; margin-top: 7px; font-weight: 400; }
.guest-discount { line-height: 1.8; color: #9b7e43; }
@media screen {
    html { scrollbar-gutter: stable; }
    .workspace, main, .panel, .page-heading>div, .quick-actions>button>span, .report-source { min-width: 0; }
    .sidebar { overflow-y: auto; overscroll-behavior: contain; }
    .sidebar>.brand, .sidebar>.property, .sidebar>.nav-label, .sidebar>nav, .sidebar-bottom { flex-shrink: 0; }
    .topbar { position: relative; }
    .page-heading { flex-wrap: wrap; }
    .page-heading>div:first-of-type { flex: 1 1 260px; }
    .page-heading h1, .page-heading p, .panel-heading h2, .panel-heading p { overflow-wrap: anywhere; }
    .heading-actions { max-width: 100%; }
    .btn { min-height: 42px; max-width: 100%; white-space: normal; text-align: center; }
    .panel-heading { flex-wrap: wrap; }
    .panel-heading>div { min-width: 0; }
    .stat-value { white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
    .stat-foot { white-space: normal; line-height: 1.7; }
    .source-total strong, .source-list strong, .guest-summary strong { overflow-wrap: anywhere; }
    .source-list>div { gap: 12px; align-items: flex-start; }
    .source-list>div>span { min-width: 0; }
    .source-list strong { text-align: right; }
    .source-list i { flex-shrink: 0; margin-top: 4px; }
    .room-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); }
    .room-card h3, .room-rate, .room-guest { overflow-wrap: anywhere; }
    .room-guest { white-space: normal; }
    .room-actions { flex-wrap: wrap; gap: 10px; }
    .period-row { flex-wrap: wrap; }
    .period-tabs { max-width: 100%; }
    .period-tabs a { min-height: 36px; display: grid; place-items: center; text-align: center; }
    .date-filter { max-width: 100%; }
    .date-filter input[type=date] { min-width: 0; }
    .search { max-width: 100%; }
    .search input { width: 100%; min-width: 0; }
    .table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
    #guest-table { min-width: 860px; }
    #transaction-table { min-width: 650px; }
    .transaction-name { overflow-wrap: anywhere; }
    .table-wrap:focus-visible { outline: 2px solid #b48d48; outline-offset: -3px; }
    .report-page .department-summary>div { min-width: 0; }
    .page-footer { flex-wrap: wrap; gap: 12px; line-height: 1.8; }
    dialog { max-height: calc(100dvh - 32px); max-width: calc(100vw - 24px); overscroll-behavior: contain; scroll-padding: 20px; }
    dialog form { min-width: 0; }
    dialog input, dialog select, .login-form input { max-width: 100%; min-width: 0; }
    .dialog-heading>div { min-width: 0; }
    .dialog-heading h2 { overflow-wrap: anywhere; }
    .close-btn { flex-shrink: 0; min-width: 38px; min-height: 38px; }
    .login-shell { min-width: 0; }
    .login-form, .login-story { min-width: 0; }
    .login-form h2, .login-form p { overflow-wrap: anywhere; }
}
.mobile-navigation { display: none; }
@media screen and (min-width:721px) and (max-height:800px) {
    .sidebar-tip { display: none; }
    .sidebar-bottom { padding-top: 20px; }
    .sidebar .brand { margin-bottom: 22px; }
    .property { margin-bottom: 22px; }
}
@media screen and (max-width:1100px) and (min-width:721px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-value { font-size: 27px; }
    .stat-foot { font-size: 10px; }
    .report-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guest-summary { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
}
@media screen and (max-width:720px) {
    .sidebar { display: none; }
    .workspace { margin-left: 0; width: 100%; }
    main { padding: 22px 16px 0; }
    .topbar { gap: 12px; padding: 10px 16px; min-height: 68px; height: auto; z-index: 30; }
    .topbar>div:first-of-type { min-width: 0; flex: 1; font-size: 11px; }
    .topbar .breadcrumb, .topbar .slash, .topbar .live { display: none; }
    .mobile-navigation { display: block; flex-shrink: 0; }
    .mobile-navigation summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-height: 44px; border: 1px solid #dfd5bd; border-radius: 6px; font-size: 12px; font-weight: 600; color: #52643d; cursor: pointer; list-style: none; background: #faf6ec; }
    .mobile-navigation summary::-webkit-details-marker { display: none; }
    .mobile-navigation summary:focus-visible { outline: 3px solid #b48d48; outline-offset: 3px; }
    .mobile-navigation[open] summary { background: #ead8ac; }
    .mobile-menu-panel { position: absolute; top: calc(100% - 1px); left: 12px; right: 12px; padding: 14px; max-height: calc(100dvh - 90px); overflow-y: auto; background: #20392c; color: #e1ddc9; border: 1px solid #b89b6066; border-radius: 8px; box-shadow: 0 18px 40px #132a2933; }
    .mobile-menu-panel>strong { display: block; font-size: 9px; letter-spacing: 1px; color: #d6be89; padding: 10px 12px 16px; }
    .mobile-menu-panel .nav-link { min-height: 46px; justify-content: flex-start; font-size: 13px; gap: 12px; }
    .mobile-menu-panel .nav-link>span { display: inline; }
    .mobile-menu-panel form { margin-top: 10px; padding: 12px 5px 0; border-top: 1px solid #d6be8933; }
    .mobile-menu-panel form button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; min-height: 44px; background: transparent; color: #d8cfb7; border: 0; text-align: left; }
    .page-heading { padding: 22px 20px; align-items: stretch; }
    .page-heading>div:first-of-type { flex-basis: auto; }
    .page-heading h1 { font-size: clamp(29px, 7vw, 36px); }
    .heading-actions { width: 100%; }
    .heading-actions .btn { min-height: 44px; font-size: 12px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .stat { padding: 17px 14px; }
    .stat-value { font-size: clamp(20px, 4.9vw, 29px); }
    .stat-top { font-size: 11px; align-items: flex-start; }
    .stat-foot { font-size: 10px; }
    .stat-top>span:first-child { min-width: 0; }
    .period-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
    .period-tabs a { min-height: 40px; font-size: 11px; padding: 7px; }
    .date-filter { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 42px; gap: 8px; padding: 8px; width: 100%; }
    .date-filter>svg, .date-filter>label, .date-filter>input[type=hidden] { display: none; }
    .date-filter input[type=date] { width: 100%; min-height: 40px; font-size: 12px; padding: 5px 1px; }
    .date-filter .icon-btn { min-width: 40px; min-height: 40px; margin: 0; background: #f1ead9; }
    .search { width: 100%; min-height: 44px; }
    .search input { font-size: 16px; }
    .panel-heading { gap: 16px; }
    .panel-heading h2, .section-heading h2 { font-size: 16px; }
    .panel-heading p, .section-heading p { font-size: 11px; line-height: 1.7; }
    .quick-actions>button { min-height: 76px; }
    .quick-actions strong { font-size: 13px; }
    .quick-actions small { font-size: 11px; }
    .report-export-bar { padding: 18px; }
    .report-export-bar>.btn { width: 100%; min-height: 46px; }
    .report-source-downloads>.btn { min-height: 44px; font-size: 11px; }
    .report-source-downloads>.text-btn { min-height: 40px; }
    .report-downloads>.btn { min-height: 44px; flex: 1 1 150px; }
    .report-downloads>.text-btn { min-height: 44px; }
    .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .room-card { padding: 17px; }
    .room-card h3 { font-size: 27px; }
    .room-card h3>span { font-size: 11px; }
    .room-rate { font-size: 17px; }
    .room-guest { font-size: 11px; }
    .room-actions .text-btn { min-height: 40px; font-size: 11px; }
    .room-card .badge { font-size: 9px; }
    .guest-summary>div { flex-wrap: wrap; gap: 10px; }
    .guest-summary strong { font-size: 24px; }
    .guest-summary span { font-size: 12px; }
    .section-heading { gap: 12px; flex-wrap: wrap; }
    .room-summary { font-size: 12px; }
    dialog { padding: 22px; width: 490px; margin: auto; }
    dialog input, dialog select, .login-form input { font-size: 16px; min-height: 46px; }
    dialog label, .login-form label { font-size: 12px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .dialog-heading h2 { font-size: 27px; }
    dialog .btn { min-height: 46px; font-size: 13px; }
    .form-help, .charge-preview { font-size: 11px; overflow-wrap: anywhere; }
    .alert { align-items: flex-start; flex-wrap: wrap; }
    .login-body { padding: 16px; min-height: 100dvh; }
    .login-shell { width: 100%; }
    .login-form { padding: 30px 24px; }
    .login-form .btn { min-height: 46px; }
    .page-footer { font-size: 10px; }
}
@media screen and (max-width:480px) {
    .date-filter { grid-template-columns: auto minmax(0, 1fr) 42px; gap: 8px; }
    .date-filter>label { display: block; position: static; clip: auto; width: auto; height: auto; overflow: visible; font-size: 11px; }
    .date-filter>label[for=from] { grid-column: 1; grid-row: 1; }
    .date-filter>label[for=to] { grid-column: 1; grid-row: 2; }
    .date-filter #from { grid-column: 2; grid-row: 1; }
    .date-filter #to { grid-column: 2; grid-row: 2; }
    .date-filter input[type=date] { font-size: 16px; min-height: 44px; }
    .date-filter>span { display: none; }
    .date-filter .icon-btn { grid-column: 3; grid-row: 1 / 3; align-self: stretch; }
}
@media screen and (max-width:380px) {
    main { padding-left: 12px; padding-right: 12px; }
    .stats, .room-grid, .report-sources { grid-template-columns: minmax(0, 1fr); }
    .stat-value { font-size: 29px; }
    .stat-top { font-size: 12px; }
    .report-page .department-summary { grid-template-columns: minmax(0, 1fr); }
    .login-body { padding: 10px; }
    .login-story { padding: 23px; }
    .login-story .royal-name { font-size: 18px; }
    .login-story .royal-crest { width: 34px; }
    .login-form { padding: 27px 20px; }
}
@media print { .mobile-navigation { display: none; } }
