.reports-hero { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:28px; margin-bottom:22px; border:1px solid #cbded8; border-radius:18px; background:linear-gradient(115deg,#e4f1e9,#f6f8ed); }
.reports-hero h3 { font-size:clamp(22px,3vw,32px); margin:8px 0; letter-spacing:-.6px; }
.reports-hero p { color:var(--muted); margin:8px 0 0; line-height:1.5; }
.reports-kicker { font-size:11px; letter-spacing:1.6px; font-weight:700; color:var(--primary); text-transform:uppercase; }
.reports-seal { display:grid; place-items:center; width:68px; height:80px; background:#fff9; border:1px solid #c5d9d0; border-radius:12px; color:var(--primary); font-weight:800; letter-spacing:2px; flex-shrink:0; }
.reports-toolbar { display:flex; justify-content:flex-start; align-items:end; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.reports-toolbar label { max-width:240px; display:grid; gap:7px; font-size:13px; color:var(--muted); }
.reports-toolbar select { box-sizing:border-box; min-width:0; max-width:100%; min-height:44px; width:100%; border:1px solid var(--line); border-radius:10px; background:white; padding:9px 12px; color:var(--text); font:inherit; }
#reportsRefresh { margin-left:auto; }
.reports-layout { display:grid; grid-template-columns:minmax(270px, .85fr) minmax(0,1.6fr); gap:20px; align-items:start; }
.reports-list { display:grid; gap:10px; }
.report-card { display:flex; width:100%; text-align:left; gap:14px; align-items:center; padding:18px; background:#fff; border:1px solid var(--line); border-radius:13px; color:var(--text); cursor:pointer; }
.report-card:hover { border-color:var(--primary); background:#f4faf7; }
.report-card[aria-pressed="true"] { border-color:var(--primary); box-shadow:inset 3px 0 var(--primary); background:#edf6f1; }
.report-card strong { display:block; font-size:15px; margin-bottom:7px; }
.report-card small { color:var(--muted); line-height:1.5; display:block; }
.report-file-icon { background:#eaf3ed; border:1px solid #d5e4da; border-radius:8px; padding:15px 8px; color:var(--primary); font-size:11px; font-weight:800; }
.report-preview { background:white; border:1px solid var(--line); border-radius:15px; overflow:hidden; position:sticky; top:20px; }
.report-preview-header { padding:20px; border-bottom:1px solid var(--line); }
.report-preview-header h3 { margin:0 0 12px; font-size:18px; }
.report-actions { display:flex; gap:8px; flex-wrap:wrap; }
.report-actions button { min-height:42px; }
.report-frame { width:100%; height:68vh; min-height:420px; border:0; display:block; background:#f2f4f2; }
.report-placeholder { padding:60px 25px; text-align:center; color:var(--muted); line-height:1.7; }
.reports-feedback { color:var(--muted); margin:12px 0; line-height:1.5; }
.reports-feedback[data-error="true"] { color:var(--danger); }
.reports-access-label { display:flex; align-items:center; gap:10px; padding:12px 0; font-size:14px; }
.reports-access-label input { width:20px; height:20px; accent-color:var(--primary); }
#reportsMore { margin-top:14px; width:100%; }
#reportsView [hidden] { display:none !important; }
.reports-hero { position:relative; overflow:hidden; background:linear-gradient(112deg,#123e3b 0%,#1d5951 65%,#30685b 100%); border:0; color:#fff; padding:30px 36px; box-shadow:0 12px 32px #153b3510; }
.reports-hero::after { content:""; position:absolute; height:340px; width:340px; border:1px solid #ffffff0c; border-radius:50%; right:-140px; top:-110px; pointer-events:none; }
.reports-hero .reports-kicker { color:#bddace; display:flex; align-items:center; gap:8px; }
.reports-live-dot { width:6px; height:6px; background:#b8d7a1; border-radius:50%; }
.reports-hero h3 { margin:15px 0 10px; font-size:clamp(22px,2.5vw,32px); color:#fff; font-weight:650; }
.reports-hero p { color:#c2d7d1; font-size:13px; max-width:550px; }
.reports-latest-button { display:inline-flex; align-items:center; gap:22px; min-height:42px; padding:9px 15px; margin-top:20px; border:1px solid #d4e4d740; border-radius:8px; background:#eef3dd; color:#163e35; font-size:13px; font-weight:650; cursor:pointer; }
.reports-latest-button:hover { background:#fff; }
.reports-hero-aside { display:grid; justify-items:center; gap:16px; margin:0 20px 0 30px; flex-shrink:0; }
.reports-document-art { width:116px; padding:15px 13px 10px; border-radius:6px; background:#f6f7eb; color:#23473e; transform:rotate(7deg); box-shadow:-10px 8px 0 #ffffff12,0 10px 22px #0002; }
.reports-document-art>span { display:block; font-size:7px; font-weight:800; letter-spacing:1px; margin-bottom:10px; }
.reports-document-art b { display:block; font-size:14px; line-height:1.3; }
.reports-document-art i { display:block; height:3px; background:#d5dfd1; margin-top:6px; }
.reports-document-art i:nth-of-type(2) { width:80%; }
.reports-document-art em { display:block; text-align:right; font-size:9px; font-style:normal; margin-top:9px; }
.reports-time { color:#cee0d4; font-size:9px; font-weight:650; letter-spacing:1.5px; }
.reports-section-heading { display:flex; justify-content:space-between; align-items:end; margin:28px 0 18px; gap:12px; }
.reports-section-heading .reports-kicker { font-size:10px; letter-spacing:1px; color:var(--muted); }
.reports-section-heading h3 { margin:7px 0 0; font-size:22px; letter-spacing:-.4px; }
#reportsCount { vertical-align:middle; margin-left:6px; font-size:12px; font-weight:600; background:#e3ece5; color:var(--primary); border-radius:7px; padding:4px 8px; }
#reportsCount:empty { display:none; }
.reports-archive-note { font-size:12px; color:var(--muted); }
.reports-toolbar { padding:16px 18px; background:#fff; border:1px solid var(--line); border-radius:12px; margin-bottom:10px; }
.reports-toolbar label { min-width:210px; }
.reports-toolbar button { min-height:44px; font-size:13px; }
.reports-feedback { font-size:12px; }
.reports-layout { grid-template-columns:minmax(280px,.75fr) minmax(0,1.6fr); gap:18px; }
.report-card { padding:17px 15px; gap:13px; transition:background .15s,border-color .15s; }
.report-card-copy { min-width:0; flex:1; }
.report-card strong { font-size:14px; font-weight:650; }
.report-card small { font-size:11px; }
.report-card-arrow { font-size:18px; color:#8caaa0; }
.report-date-tile { display:grid; justify-items:center; min-width:46px; padding:9px 5px; border-radius:8px; background:#edf2ed; color:#426357; flex-shrink:0; }
.report-date-tile b { font-size:21px; font-weight:650; line-height:1; }
.report-date-tile span { font-size:9px; text-transform:uppercase; margin-top:5px; letter-spacing:.7px; }
.report-card[aria-pressed="true"] .report-date-tile { background:#1b5c50; color:#fff; }
.report-preview-header { display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px; align-items:center; padding:18px 20px; }
.report-preview-header .reports-kicker { font-size:9px; letter-spacing:1px; color:var(--muted); }
.report-preview-header h3 { font-size:16px; margin:7px 0 0; }
.report-actions { gap:7px; }
.report-actions button { padding:9px 12px; min-height:38px; font-size:12px; }
.report-frame { height:620px; background:#e7ece8; }
.report-placeholder { min-height:440px; display:flex; flex-direction:column; align-items:center; justify-content:center; background:radial-gradient(ellipse at center,#edf3eb,#fff 75%); }
.report-empty-icon { font-size:38px; color:#799c88; margin-bottom:16px; }
.report-placeholder strong { font-size:18px; color:#315449; }
.report-placeholder p { font-size:14px; }
.report-placeholder small { font-size:11px; }
#reportsView button:focus-visible { outline:3px solid #ba994a; outline-offset:3px; }
@media(max-width:900px) {
  .reports-layout { grid-template-columns:1fr; }
  .reports-hero { padding:22px 18px; gap:12px; }
  .reports-seal { width:48px; height:60px; font-size:12px; }
  .report-preview { position:static; }
  .report-frame { height:60vh; min-height:320px; }
  .report-card { min-height:88px; }
  .reports-toolbar { display:grid; grid-template-columns:1fr 1fr; }
  .reports-toolbar label { max-width:none; grid-column:1/-1; }
  #reportsRefresh { margin-left:0; }
  .reports-hero { padding:24px 20px; align-items:flex-start; }
  .reports-hero h3 { font-size:23px; }
  .reports-hero-copy { min-width:0; }
  .reports-hero-aside { display:none; }
  .reports-latest-button { width:auto; font-size:12px; gap:12px; }
  .reports-section-heading { margin-top:25px; }
  .reports-section-heading h3 { font-size:20px; }
  .reports-archive-note { display:none; }
  .reports-toolbar { padding:14px; gap:10px; }
  .reports-toolbar label { min-width:0; }
  .reports-toolbar select { font-size:16px; }
  #reportsView .report-preview { display:none; }
  .report-preview-header { padding:17px; }
  .report-actions { width:100%; }
  .report-actions button { flex:1; width:auto; min-height:42px; }
  .report-frame { height:440px; }
  .report-placeholder { min-height:260px; padding:30px 16px; }
}
@media(prefers-reduced-motion:reduce) { .report-card { transition:none; } }

/* The top-layer dialog keeps both app bars out of the PDF and preserves archive scroll. */
#reportMobileDialog { box-sizing:border-box; padding:0; margin:0; border:0; border-radius:0; width:100%; max-width:100%; height:100vh; height:100dvh; max-height:100dvh; background:var(--bg); color:var(--text); overflow:hidden; }
#reportMobileDialog[open] { display:flex; flex-direction:column; }
#reportMobileDialog::backdrop { background:#123e3b70; }
.report-mobile-bar { flex:none; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:calc(10px + env(safe-area-inset-top)) 16px 10px; background:#153f39; color:#fff; }
#reportMobileBack { display:flex; align-items:center; gap:8px; min-height:44px; border:0; border-radius:8px; padding:6px 4px; background:transparent; color:#fff; font:600 15px "Segoe UI",sans-serif; cursor:pointer; }
#reportMobileBack span { font-size:30px; line-height:1; font-weight:400; }
.report-mobile-format { padding:5px 8px; border:1px solid #ffffff38; border-radius:6px; color:#cfdfd5; font-size:11px; letter-spacing:1px; }
#reportMobileContent { flex:1; min-height:0; display:flex; padding-bottom:env(safe-area-inset-bottom); }
#reportMobileDialog .report-preview { display:flex; flex-direction:column; width:100%; min-width:0; min-height:0; position:static; border:0; border-radius:0; }
#reportMobileDialog #reportViewer { display:flex; flex-direction:column; min-height:0; flex:1; }
#reportMobileDialog .report-preview-header { padding:14px 16px; gap:12px; flex:none; }
#reportMobileDialog .report-preview-header h3 { font-size:17px; }
#reportMobileDialog .report-actions { display:grid; grid-template-columns:1fr 1fr; width:100%; }
#reportMobileDialog .report-actions button { width:100%; min-width:0; min-height:44px; }
#reportMobileDialog .report-frame { flex:1; height:0; min-height:0; width:100%; }
#reportMobileDialog #reportViewerStatus:empty { display:none; }
#reportMobileDialog [hidden] { display:none!important; }
#reportMobileBack:focus-visible { outline:2px solid #e6dda0; outline-offset:3px; }

/* Mobile document controls stay within comfortable reach, clear of device edges. */
#reportMobileDialog { background:#edf2ef; }
#reportMobileContent { padding:0; }
#reportMobileDialog .report-preview { background:#edf2ef; }
#reportMobileDialog .report-preview-header { padding:calc(24px + env(safe-area-inset-top)) 20px 18px; gap:16px; background:#fff; border-bottom:1px solid #dce6df; }
#reportMobileDialog .report-preview-header .reports-kicker { color:#688177; letter-spacing:1.4px; font-size:10px; }
#reportMobileDialog .report-preview-header h3 { margin-top:8px; color:#183e35; font-size:20px; line-height:1.3; font-weight:650; letter-spacing:-.4px; }
#reportMobileDialog .report-actions { gap:10px; }
#reportMobileDialog .report-actions button { min-height:46px; border-radius:14px; font-size:13px; font-weight:600; box-shadow:none; }
#reportMobileDialog #reportOpen { background:#fff; color:#315d50; border:1px solid #d7e3dc; }
#reportMobileDialog #reportDownload { background:#eaf2ed; color:#245545; border:1px solid #eaf2ed; }
#reportMobileDialog #reportViewerStatus:not(:empty) { padding:10px 20px; margin:0; color:#60776d; font-size:12px; background:#f5f8f6; }
.report-mobile-bar { padding:14px max(20px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); background:#fff; border-top:1px solid #dce6df; box-shadow:0 -6px 24px #193e3508; justify-content:center; }
#reportMobileBack { justify-content:center; gap:12px; width:100%; max-width:440px; min-height:54px; padding:14px 20px; border:1px solid #235c4f; border-radius:18px; background:#1d5548; color:#fff; font:600 15px "Segoe UI",sans-serif; box-shadow:0 4px 12px #1d55481a; transition:background .15s,transform .15s; -webkit-tap-highlight-color:transparent; }
#reportMobileBack span { font:inherit; }
#reportMobileBack svg { width:21px; height:21px; flex:none; }
#reportMobileBack:hover { background:#164637; }
#reportMobileBack:active { transform:scale(.98); }
#reportMobileBack:focus-visible { outline:3px solid #b99c54; outline-offset:3px; }
@media(prefers-reduced-motion:reduce) { #reportMobileBack { transition:none; } }
/* Return action replaces Open in the mobile document header. */
#reportMobileBack { display:none; }
#reportMobileDialog #reportOpen { display:none; }
#reportMobileDialog #reportMobileBack { display:flex; width:100%; min-width:0; min-height:48px; padding:10px 8px; border-radius:14px; gap:7px; font-size:13px; box-shadow:none; }
#reportMobileBack svg { width:18px; height:18px; }
#reportMobileDialog .report-actions button { min-height:48px; }
#reportMobileContent { padding-bottom:env(safe-area-inset-bottom); }
