.weekly-report-card { max-width: 1380px; margin: 0 auto 28px; padding: 26px 30px; display: flex; align-items: center; gap: 26px; border: 1px solid #665744; border-radius: 5px; background: linear-gradient(110deg,#cfb99812,transparent 60%),#111113; }
.weekly-report-emblem { width: 62px; height: 70px; flex: 0 0 62px; display: flex; align-items: end; justify-content: center; gap: 5px; padding: 14px 10px; border: 1px solid #cfb99855; border-radius: 3px; transform: rotate(-5deg); background: #cfb99809; }
.weekly-report-emblem span { width: 7px; height: 40%; background: var(--bronze); }
.weekly-report-emblem span:nth-child(2) { height: 65%; opacity: .5; }
.weekly-report-emblem span:nth-child(3) { height: 52%; opacity: .7; }
.weekly-report-emblem span:nth-child(4) { height: 100%; }
.weekly-report-card-copy { flex: 1; min-width: 0; }
.weekly-report-card .eyebrow { margin: 0 0 6px; }
.weekly-report-card h2 { font-size: 32px; margin: 0; }
#weeklyReportCardDate { color: var(--bronze); font-size: 12px; margin: 7px 0 0; }
#weeklyReportPreview p { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 10px 0 0; }
.weekly-report-card > button { flex-shrink: 0; display: flex; gap: 20px; align-items: center; min-height: 46px; }
.weekly-report-card > button span { font-size: 22px; }
dialog.weekly-report-dialog { width: min(1180px,calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #505052; border-radius: 7px; background: #101012; color: var(--text); overflow: auto; overscroll-behavior: contain; }
.weekly-report-dialog::backdrop { background: #000c; backdrop-filter: blur(6px); }
.weekly-report-toolbar { position: sticky; top: 0; z-index: 2; padding: 20px 28px 16px; background: #18181bf5; border-bottom: 1px solid #48433d; backdrop-filter: blur(12px); }
.weekly-report-toolbar-top,.weekly-report-toolbar-actions,.weekly-report-period-controls,.weekly-report-week-picker,.weekly-report-period-shortcuts { display: flex; gap: 9px; align-items: center; }
.weekly-report-toolbar-top { justify-content: space-between; gap: 18px; }
.weekly-report-toolbar h2 { font-size: 27px; margin: 0; }
.weekly-report-toolbar .eyebrow { margin: 0 0 3px; font-size: 9px; }
.weekly-report-toolbar button { min-height: 40px; font-size: 11px; }
.weekly-report-toolbar .close-btn { width: 40px; height: 40px; font-size: 22px; flex-shrink: 0; }
.weekly-report-period-controls { flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; }
.weekly-report-week-picker { gap: 6px; }
.weekly-report-week-picker > button { padding: 8px 12px; font-size: 17px; }
.weekly-report-week-label { margin: 0; position: relative; }
.weekly-report-week-label > span { position: absolute; left: 11px; top: 5px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .8px; pointer-events: none; }
.weekly-report-week-label input { width: 178px; height: 44px; margin: 0; padding: 17px 9px 5px; font-size: 12px; color-scheme: dark; }
.weekly-report-period-shortcuts button { padding: 10px 12px; }
#weeklyReportStatus { margin-left: auto; color: var(--muted); font-size: 10px; }
.weekly-report-content { padding: 0 32px 26px; }
.weekly-report-content :is(h1,h2,h3,p) { margin-top: 0; }
.weekly-report-content h2 { font: 600 29px/1.1 'Barlow Condensed',sans-serif; color: var(--text); }
.weekly-report-content .eyebrow { margin-bottom: 9px; font-size: 9px; letter-spacing: 1.5px; }
.report-cover { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 35px; padding: 39px 0 33px; border-bottom: 1px solid #635541; }
.report-cover::before { content: ''; position: absolute; z-index: -1; inset: 0 28% 0 10%; background: url('assets/kollektivet-logo-transparent.png') center / 300px auto no-repeat; opacity: .04; pointer-events: none; }
.report-cover h1 { margin: 0; font: 600 clamp(64px,7.6vw,106px)/1 'Barlow Condensed',sans-serif; letter-spacing: -2px; }
.report-cover h1 span { color: var(--bronze); }
.report-cover h1 i { color: #655744; font-style: normal; }
.report-cover .report-cover-date { margin: 14px 0 0; font-size: 13px; color: #c2c0bc; }
.report-cover-note { padding-left: 26px; border-left: 1px solid #3d3933; }
.report-state { display: inline-block; padding: 6px 9px; color: var(--bronze); border: 1px solid #5f503e; border-radius: 2px; background: #cfb9980b; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.report-cover-note p { margin: 14px 0 12px; color: #e0ddda; font-size: 13px; line-height: 1.9; }
.report-cover-note > small { color: var(--muted); font-size: 10px; line-height: 1.7; display: block; }
.report-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(215px,100%),1fr)); gap: 12px; margin: 25px 0; }
.report-metric { min-width: 0; padding: 21px 18px; border: 1px solid #363638; border-radius: 3px; background: linear-gradient(135deg,#ffffff04,transparent 80%),#18181b; }
.report-metric > small { display: block; color: #c5beb3; text-transform: uppercase; letter-spacing: .7px; font-size: 9px; line-height: 1.6; }
.report-metric > strong { display: block; margin: 13px 0 7px; font: 600 clamp(27px,3vw,36px)/1.1 'Barlow Condensed',sans-serif; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.report-metric > p { margin: 0 0 18px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.report-change { display: block; padding-top: 12px; border-top: 1px solid #363638; font-size: 10px; line-height: 1.6; color: var(--bronze); }
.report-change.muted { color: var(--muted); }
.report-editorial-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 24px; margin: 28px 0 35px; }
.report-editorial-grid > :only-child { grid-column: 1 / -1; }
.report-chart-panel { min-width: 0; padding: 25px 24px 18px; border: 1px solid #363638; border-radius: 3px; background: #151517; }
.report-panel-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.report-panel-heading h2 { margin-bottom: 0; }
.report-chart-legend { display: flex; gap: 12px; font-size: 9px; color: var(--muted); }
.report-chart-legend span::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--bronze); margin-right: 5px; }
.report-chart-legend span:nth-child(2)::before { background: #66636d; }
.report-cash-totals { display: flex; flex-wrap: wrap; gap: 15px 35px; margin: 26px 0 22px; }
.report-cash-totals span,.report-run header > div:last-child span { display: block; min-width: 0; }
.report-cash-totals small,.report-run header > div:last-child small { display: block; font-size: 9px; color: var(--muted); margin-bottom: 5px; }
.report-cash-totals strong { font: 600 28px/1.1 'Barlow Condensed',sans-serif; font-variant-numeric: tabular-nums; }
.report-chart { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; }
.report-chart-day { padding: 5px 4px 8px; background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 3px; min-width: 0; }
.report-chart-day:hover,.report-chart-day[aria-pressed='true'] { border-color: #776349; background: #cfb9980b; }
.report-chart-day > span:last-child { display: block; margin-top: 9px; font-size: 10px; }
.report-bars { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 130px; border-bottom: 1px solid #48413a; background: repeating-linear-gradient(to top,transparent 0,transparent 31px,#ffffff06 31px,#ffffff06 32px); }
.report-bars i { display: block; height: var(--bar-height); width: min(17px,40%); background: linear-gradient(to top,#a68d69,#ddc9a8); border-radius: 2px 2px 0 0; }
.report-bars i + i { background: #66636d; }
.report-chart-hint { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.report-highlights { min-width: 0; padding: 24px 4px 0; }
.report-highlights h2 { margin-bottom: 20px; }
.report-highlights ul { list-style: none; padding: 0; margin: 0; }
.report-highlights li { padding: 15px 0; border-top: 1px solid #363638; }
.report-highlights li > small { display: block; color: var(--bronze); font-size: 9px; text-transform: uppercase; letter-spacing: .7px; }
.report-highlights li > strong { display: block; font: 600 23px/1.25 'Barlow Condensed',sans-serif; margin: 7px 0; overflow-wrap: anywhere; }
.report-highlights li p { color: var(--muted); font-size: 10px; line-height: 1.7; margin: 0; }
.report-detail-heading { margin: 0 0 22px; }
.report-detail-heading h2 { margin-bottom: 9px; }
.report-detail-heading > p:last-child { color: var(--muted); font-size: 11px; }
.report-section { margin: 0 0 9px; background: #18181a; border: 1px solid #38383a; border-radius: 3px; scroll-margin-top: 175px; }
.report-section > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 15px; padding: 19px 21px; min-height: 60px; }
.report-section > summary::-webkit-details-marker { display: none; }
.report-section > summary:hover { background: #cfb99807; }
.report-section > summary > span { flex: 1; font-size: 13px; font-weight: 600; }
.report-section > summary > small { font-size: 10px; color: var(--muted); text-align: right; }
.report-section > summary > b { color: var(--bronze); font: 400 23px/1 Inter,sans-serif; }
.report-section[open] > summary { border-bottom: 1px solid #38383a; }
.report-section[open] > summary > b { font-size: 0; }
.report-section[open] > summary > b::after { content: '−'; font-size: 23px; }
.report-section-content { padding: 5px 21px 18px; }
.report-entry { display: grid; grid-template-columns: 78px minmax(0,1fr) minmax(95px,auto); align-items: center; gap: 20px; padding: 19px 0; border-bottom: 1px solid #333336; }
.report-entry time { font-size: 10px; color: var(--muted); }
.report-entry strong { display: block; font-size: 12px; line-height: 1.6; }
.report-entry small { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.report-entry > b { text-align: right; color: var(--bronze); font-size: 12px; font-variant-numeric: tabular-nums; }
.report-entry :is(strong,small,b),.report-run-weapons { overflow-wrap: anywhere; }
.report-filter { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; font-size: 10px; color: var(--muted); }
.report-filter button { font-size: 10px; }
.report-source-link { margin-top: 18px; background: transparent; border: 0; color: var(--bronze); padding: 9px 0; min-height: 40px; font-size: 11px; text-align: left; }
.report-source-link:hover { color: #f0dfc6; text-decoration: underline; }
.report-run { padding: 22px 0; border-bottom: 1px solid #363638; }
.report-run > header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; }
.report-run time { font-size: 10px; color: var(--muted); }
.report-run h3 { margin: 6px 0 0; font: 600 25px/1.25 'Barlow Condensed',sans-serif; overflow-wrap: anywhere; }
.report-run header > div:last-child { display: flex; flex-wrap: wrap; gap: 18px; }
.report-run header > div:last-child strong { font-size: 12px; color: var(--bronze); }
.report-participants { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 0; }
.report-participants > span { padding: 8px 10px; border: 1px solid #414143; background: #ffffff03; font-size: 10px; }
.report-participants small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.report-participants .caught { border-color: #77533f; }
.report-participants .caught small { color: #dfa881; }
.report-run-weapons { font-size: 10px; color: var(--muted); margin: 12px 0 0; line-height: 1.8; }
.report-coverage,.report-empty { margin: 18px 0 8px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.report-basis { margin-top: 25px; color: var(--muted); font-size: 10px; line-height: 1.9; }
.report-basis summary { cursor: pointer; padding: 10px 0; color: #ccc4b7; }
.report-basis ul { padding-left: 18px; }
.report-basis li { margin: 8px 0; }
.report-basis .report-data-note { color: var(--bronze); }
.report-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 21px; border-top: 1px solid #635541; color: #b5a388; font-size: 8px; letter-spacing: 1px; }
.report-loading { min-height: 320px; padding: 90px 15px; text-align: center; }
.report-loading h2 { margin: 0 0 15px; }
.report-loading p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.report-loading > span { display: inline-block; width: 22px; height: 22px; margin-bottom: 22px; border: 2px solid #49413a; border-top-color: var(--bronze); border-radius: 50%; animation: report-spin .8s linear infinite; }
@keyframes report-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .report-loading > span { animation: none; } }
@media (max-width:900px) {
  .weekly-report-card { padding: 22px; gap: 19px; }
  .weekly-report-emblem { display: none; }
  .weekly-report-content { padding: 0 24px 24px; }
  .report-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-editorial-grid { gap: 20px; }
  .report-chart-panel { padding: 22px 16px 15px; }
  .report-cover { gap: 22px; }
  #weeklyReportStatus { flex-basis: 100%; margin: 0; }
}
@media (max-width:600px) {
  .weekly-report-card { display: block; padding: 22px; }
  .weekly-report-card > button { margin-top: 18px; width: 100%; justify-content: space-between; }
  dialog.weekly-report-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 4px; }
  .weekly-report-toolbar { position: static; padding: 16px; }
  .weekly-report-toolbar-top { align-items: flex-start; }
  .weekly-report-toolbar-actions { flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 170px; }
  .weekly-report-toolbar-actions > button { padding: 9px; }
  #weeklyReportRefresh { order: 1; }
  .weekly-report-toolbar h2 { font-size: 24px; }
  .weekly-report-period-controls { gap: 10px; margin-top: 16px; }
  .weekly-report-week-picker { width: 100%; }
  .weekly-report-week-label { flex: 1; min-width: 0; }
  .weekly-report-week-label input { width: 100%; }
  .weekly-report-content { padding: 0 16px 20px; }
  .report-cover { grid-template-columns: minmax(0,1fr); gap: 22px; padding: 27px 0; }
  .report-cover h1 { font-size: 78px; }
  .report-cover-note { padding: 0; border: 0; }
  .report-cover-note p { font-size: 12px; }
  .report-cover::before { inset: 0; background-position: right top; background-size: 230px auto; }
  .report-metrics { gap: 8px; margin: 18px 0; }
  .report-metric { padding: 16px 12px; }
  .report-metric > small { font-size: 8px; min-height: 25px; }
  .report-metric > strong { font-size: 28px; }
  .report-metric > p { font-size: 9px; min-height: 30px; margin-bottom: 9px; }
  .report-change { font-size: 9px; }
  .report-editorial-grid { grid-template-columns: minmax(0,1fr); margin: 22px 0 30px; }
  .report-highlights { padding: 8px 0 0; }
  .report-section > summary { padding: 17px 13px; gap: 10px; }
  .report-section { scroll-margin-top: 16px; }
  .report-section > summary > span { font-size: 12px; }
  .report-section > summary > small { font-size: 9px; max-width: 100px; }
  .report-section-content { padding: 3px 13px 12px; }
  .report-entry { grid-template-columns: minmax(0,1fr) minmax(75px,auto); gap: 7px 12px; }
  .report-entry time { grid-column: 1 / -1; font-size: 9px; }
  .report-entry > b { max-width: 110px; font-size: 11px; }
  .report-entry strong { font-size: 11px; }
  .report-entry small { font-size: 9px; }
  .report-run h3 { font-size: 23px; }
}
@media print {
  @page { size: A4; margin: 13mm; }
  body.printing-weekly-report { --text: #191919; --muted: #555; --bronze: #765b34; margin: 0 !important; background: white !important; color: #191919 !important; height: auto !important; overflow: visible !important; }
  body.printing-weekly-report::before,body.printing-weekly-report::after,body.printing-weekly-report > :not(#weeklyReportDialog) { display: none !important; }
  body.printing-weekly-report #weeklyReportDialog { display: block !important; position: static !important; inset: auto !important; width: 100% !important; max-width: none !important; height: auto !important; max-height: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; overflow: visible !important; box-shadow: none !important; background: white !important; }
  .printing-weekly-report #weeklyReportDialog::backdrop { display: none; background: transparent; }
  .printing-weekly-report .weekly-report-toolbar,.printing-weekly-report .report-source-link,.printing-weekly-report .report-chart-hint,.printing-weekly-report #reportAllDays,.printing-weekly-report .report-section summary > b { display: none !important; }
  .printing-weekly-report .weekly-report-content { padding: 0; }
  .printing-weekly-report .weekly-report-content * { color: #222 !important; border-color: #ccc !important; text-shadow: none !important; box-shadow: none !important; }
  .printing-weekly-report .report-cover { padding: 10px 0 25px; grid-template-columns: 1fr 1fr; }
  .printing-weekly-report .report-cover::before { display: none; }
  .printing-weekly-report .report-cover h1 { font-size: 70px; }
  .printing-weekly-report .report-cover-note { padding-left: 20px; border-left: 1px solid; }
  .printing-weekly-report :is(.report-metric,.report-chart-panel,.report-section,.report-state,.report-participants span,.report-chart-day) { background: #fff !important; }
  .printing-weekly-report .report-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
  .printing-weekly-report .report-metric { padding: 13px 10px; }
  .printing-weekly-report .report-metric > strong { font-size: 26px; }
  .printing-weekly-report .report-editorial-grid { grid-template-columns: 1.35fr 1fr; }
  .printing-weekly-report .report-bars i { background: #9b7f55 !important; print-color-adjust: exact; }
  .printing-weekly-report .report-bars i + i { background: #777 !important; }
  .printing-weekly-report .report-entry { grid-template-columns: 65px minmax(0,1fr) minmax(90px,auto); }
  .printing-weekly-report .report-entry time { grid-column: auto; }
  .printing-weekly-report :is(.report-cover,.report-metrics,.report-chart-panel,.report-highlights li,.report-entry,.report-run,.report-footer) { break-inside: avoid; }
  .printing-weekly-report .report-section > summary,.printing-weekly-report .report-detail-heading { break-after: avoid; }
  .printing-weekly-report .report-section { border-left: 0; border-right: 0; }
  .printing-weekly-report .report-section-content { padding: 5px 0 15px; }
}
