/* Layout fixes shared by day/night themes and all text sizes. */
body.compact-review #modal:not(.hidden){display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important}
body.compact-review #modal>.modal-head{position:relative!important;top:auto!important;flex:0 0 auto;background:var(--panel);margin:0;z-index:2}
body.compact-review #modal>.modal-body{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;max-height:none!important;height:auto!important;overscroll-behavior:contain;padding-bottom:24px!important}
body.compact-review #modal .notification-card-v86{display:block!important;height:auto!important;min-height:0!important;overflow:visible!important;background:var(--panel)!important;color:var(--ink)!important;border:1px solid var(--line);border-left:4px solid var(--srt93-accent);border-radius:10px;margin-bottom:8px}
body.compact-review #modal .notification-card-v86[data-notice-priority=urgent]{border-left-color:#b33449}
body.compact-review #modal .notification-card-v86 .notice-open{display:grid!important;grid-template-columns:30px minmax(0,1fr) 14px!important;align-items:start!important;gap:8px!important;height:auto!important;min-height:44px!important;max-height:none!important;overflow:visible!important;width:100%;padding:12px!important;background:transparent!important;color:var(--ink)!important;text-align:left;border:0;white-space:normal}
body.compact-review #modal .notice-open span,body.compact-review #modal .notice-open strong,body.compact-review #modal .notice-open small{position:static!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;background:transparent!important;color:inherit!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.4!important;padding:0!important;margin:0!important}
body.compact-review #modal .notice-open>span:nth-child(2){display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0;width:auto!important;justify-self:stretch!important}
body.compact-review #modal .notice-open .notification-symbol{font-size:20px!important;text-align:center}
body.compact-review #modal .notification-card-v86>.button{display:block;height:auto!important;white-space:normal!important;margin:0 12px 10px 50px!important;width:calc(100% - 62px)!important}
body.compact-review #modal :is(.srt93-tabs){display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:0;padding-bottom:3px}
body.compact-review #modal .srt93-tabs>button{flex:0 0 auto;white-space:nowrap;min-height:44px}
#compact-review .cr-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:0;scrollbar-width:thin}
#compact-review .cr-tabs>button{flex:0 0 auto;white-space:nowrap;min-height:44px}
body.compact-review .inv-diagram{max-width:260px;margin:8px auto;max-height:430px;overflow:auto;border:1px solid var(--line);border-radius:10px}
body.compact-review .inv-diagram.is-expanded{max-width:620px;max-height:none;overflow:visible}
body.compact-review .inv-diagram:not(.is-expanded) .srt93-reference-map{max-width:165px}
body.compact-review .inv-diagram:not(.is-expanded) .srt93-map{max-width:250px;margin:8px auto}
body.compact-review .inv-diagram.is-expanded .srt93-reference-map{max-width:330px}
body.compact-review .inv-diagram.is-expanded .srt93-map{max-width:360px}
body.compact-review .inv-diagram .srt93-reference summary{white-space:normal}
body.compact-review .global-search{padding:0!important}
body.compact-review .global-search-input{display:flex!important;gap:8px;padding:8px!important;width:100%;box-sizing:border-box;min-width:0}
body.compact-review .global-search-input input{min-width:0!important;width:100%!important;font-size:16px!important;font-weight:400!important}
body.compact-review .global-search-help{font-size:12px!important;margin:8px 0 12px!important}
body.compact-review .global-search .simple-menu-icon{flex:0 0 34px;width:34px;height:34px;min-height:34px}
body.compact-review .global-search .simple-menu-card{padding:10px;gap:10px;min-height:54px}
body.compact-review .inv-profile{display:grid;grid-template-columns:auto 1fr;gap:12px;margin:0}
body.compact-review .inv-profile dt{color:var(--muted)}
body.compact-review .inv-profile dd{margin:0;overflow-wrap:anywhere}
body.compact-review :is(.inv-toolbar,.inv-line-fields){display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}
body.compact-review .inv-toolbar h2{flex:1;margin:0;font-size:18px}
body.compact-review .inv-toolbar .button{width:auto;min-height:44px}
body.compact-review .inv-shift{border:1px solid var(--line);border-radius:10px;padding:12px;margin:10px 0;background:var(--panel);overflow-wrap:anywhere}
body.compact-review .inv-shift p{margin:7px 0;line-height:1.4}
body.compact-review .inv-shift small{color:var(--muted)}
body.compact-review .inv-check{display:flex!important;align-items:flex-start;gap:9px!important;min-height:44px;line-height:1.4;padding:8px 0;font-weight:500!important}
body.compact-review .inv-check input[type=checkbox]{flex:0 0 20px;width:20px!important;height:20px!important;min-height:20px!important;margin:0;accent-color:var(--srt93-accent)}
body.compact-review .inv-line-fields>.field{flex:1 1 110px;width:auto!important;min-width:0}
body.compact-review .inv-total{font-size:15px;font-weight:600;line-height:1.6;padding:12px;background:var(--surface-soft);color:var(--ink);border-radius:8px;margin:12px 0}
body.compact-review #srt-invoices .field{display:grid;gap:6px;font-size:13px;margin:10px 0}
body.compact-review #srt-invoices select{width:100%;background:var(--panel);color:var(--ink);padding:10px;border:1px solid var(--line);border-radius:8px;min-height:44px;font-size:16px}
body.compact-review .inv-report-tools{border:1px solid var(--line);border-radius:8px;padding:8px 10px;margin:10px 0}
body.compact-review :is(.inv-report-tools,.inv-report-advanced,.inv-paper-filters)>summary{min-height:44px;cursor:pointer;padding:10px 0;font-size:13px;font-weight:600}
body.compact-review .inv-report-tools :is(.report-export-actions,.filter-row){display:flex;flex-wrap:wrap;gap:8px;padding:6px 0}
body.compact-review .inv-report-tools .button{width:auto!important;flex:1 1 120px;min-height:44px;margin:0}
body.compact-review .financial-filter-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important}
body.compact-review .financial-filter-grid>.inv-report-advanced,body.compact-review .financial-filter-grid>.report-search-action{grid-column:1/-1}
body.compact-review .inv-report-advanced .field{margin:8px 0}
body.compact-review .financial-filter-grid input,body.compact-review .financial-filter-grid select{min-width:0!important;width:100%!important;box-sizing:border-box;font-size:16px}
body.compact-review .profit-loss-panel{padding:12px!important}
body.compact-review .profit-loss-metrics{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:12px 0!important}
body.compact-review .profit-loss-metrics .metric-card{min-height:0!important;padding:10px!important}
body.compact-review .profit-loss-metrics .metric-card strong{font-size:20px!important;overflow-wrap:anywhere}
