/* Report workspaces use the shared Falke Glass shell, tokens and controls. */
:is(.glass-reports, .glass-report-config, .glass-report-editor) .reports-page-stack,
.glass-report-config .reports-config-form { display: grid; gap: 22px; min-width: 0; }
:is(.glass-reports, .glass-report-config, .glass-report-editor) .reports-eyebrow { margin: 0 0 6px; color: var(--falke-muted); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
:is(.glass-reports, .glass-report-config, .glass-report-editor) .reports-note { margin: 7px 0 0; color: var(--falke-muted); font-size: 13px; line-height: 1.55; }
:is(.glass-reports, .glass-report-config, .glass-report-editor) h2 { color: var(--falke-ink); font-family: var(--falke-font-ui); font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
:is(.glass-reports, .glass-report-config, .glass-report-editor) h3 { color: var(--falke-ink); font-size: 15px; font-weight: 600; line-height: 1.4; }
:is(.glass-reports, .glass-report-config, .glass-report-editor) .admin-card { min-width: 0; background: var(--falke-surface); }
:is(.glass-reports, .glass-report-config, .glass-report-editor) .admin-section-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
:is(.glass-reports, .glass-report-config, .glass-report-editor) .admin-section-heading > div { flex: 1; min-width: 0; }
:is(.glass-reports, .glass-report-config, .glass-report-editor) .admin-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
:is(.glass-reports, .glass-report-config, .glass-report-editor) .admin-actions form { margin: 0; }
:is(.glass-reports, .glass-report-config, .glass-report-editor) .admin-field,
.glass-report-config .section-card .field { display: grid; align-content: start; gap: 7px; min-width: 0; }
:is(.glass-reports, .glass-report-config, .glass-report-editor) .admin-field label,
.glass-report-config .section-card .field label { color: var(--falke-ink); font-size: 13px; font-weight: 600; }
:is(.glass-reports, .glass-report-config, .glass-report-editor) :is(.admin-field, .section-card .field) :is(input:not([type=hidden]), select, textarea),
.glass-report-editor .reports-edit-form textarea { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--falke-control-border); border-radius: var(--falke-radius-control); background: var(--falke-surface); color: var(--falke-ink); font-family: var(--falke-font-ui); font-size: 15px; line-height: 1.5; }
:is(.glass-report-config, .glass-report-editor) textarea { resize: vertical; }
:is(.glass-reports, .glass-report-config, .glass-report-editor) .reports-errors { margin: 0; padding-left: 20px; }
:is(.glass-reports, .glass-report-editor) .reports-status { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 5px 10px; border: 1px solid var(--falke-border); border-radius: var(--falke-radius-pill); font-size: 12px; font-weight: 600; line-height: 1.35; }
:is(.glass-reports, .glass-report-editor) .reports-status.is-published { color: var(--falke-success); background: var(--falke-success-bg); border-color: var(--falke-success); }
:is(.glass-reports, .glass-report-editor) .reports-status.is-internal { color: var(--falke-muted); background: var(--falke-soft); }
.glass-reports .reports-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.glass-reports .reports-summary .admin-stat { display: grid; gap: 8px; min-width: 0; padding: 18px 20px; border: 1px solid var(--falke-border); border-radius: var(--falke-radius-card); background: var(--falke-surface); }
.glass-reports .reports-summary .admin-stat > span { color: var(--falke-muted); font-size: 13px; line-height: 1.4; }
.glass-reports .reports-summary .admin-stat > strong { color: var(--falke-ink); font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.glass-reports .reports-workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .85fr); gap: 20px; align-items: start; min-width: 0; }
.glass-reports .reports-history { padding: 22px 0 0; overflow: hidden; }
.glass-reports .reports-history > .admin-section-heading { margin: 0; padding: 0 22px 20px; }
.glass-reports .reports-table-wrap { overflow-x: auto; border: 0; border-top: 1px solid var(--falke-border); border-radius: 0; }
.glass-reports .reports-table { width: 100%; border-collapse: collapse; background: var(--falke-surface); color: var(--falke-ink); font-size: 13px; }
.glass-reports .reports-table th { padding: 12px 18px; background: var(--falke-soft); color: var(--falke-muted); font-size: 11px; font-weight: 600; text-align: left; }
.glass-reports .reports-table td { padding: 18px; border-top: 1px solid var(--falke-border); vertical-align: top; }
.glass-reports .reports-table td:first-child { width: 43%; }
.glass-reports .reports-table td:nth-child(2) { width: 27%; }
.glass-reports .reports-table tbody tr:hover { background: color-mix(in srgb, var(--falke-soft) 30%, var(--falke-surface)); }
.glass-reports .reports-title { display: inline-block; color: var(--falke-ink); font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.glass-reports .reports-title:hover { color: var(--falke-orange-deep); text-decoration: underline; }
.glass-reports .reports-cell-detail { display: block; margin-top: 6px; color: var(--falke-muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.glass-reports .reports-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.glass-reports .reports-row-actions form { margin: 0; }
.glass-reports .reports-row-actions .button { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.glass-reports .reports-create { padding: 22px; scroll-margin-top: 22px; }
.glass-reports .reports-form { display: grid; gap: 18px; }
.glass-reports .reports-date-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.glass-reports .reports-date-grid input { padding-inline: 9px; font-size: 14px; }
.glass-reports .reports-template-summary { padding-top: 18px; border-top: 1px solid var(--falke-border); }
.glass-reports .reports-template-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; }
.glass-reports .reports-template-heading a { color: var(--falke-orange-deep); font-size: 12px; }
.glass-reports .reports-template-summary dl { display: grid; gap: 12px; margin: 16px 0 0; }
.glass-reports .reports-template-summary dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
.glass-reports .reports-template-summary dt { color: var(--falke-muted); font-size: 12px; }
.glass-reports .reports-template-summary dd { margin: 0; color: var(--falke-ink); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.glass-reports .reports-model { margin: 0; font-size: 11px; }
.glass-reports .reports-generation-note { margin-bottom: 18px; font-size: 12px; }
.glass-reports .reports-empty { display: grid; justify-items: start; gap: 12px; padding: 30px 24px; border-top: 1px solid var(--falke-border); }
.glass-reports .reports-empty p { max-width: 440px; color: var(--falke-muted); font-size: 14px; line-height: 1.6; }
.glass-reports .reports-empty-symbol { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--falke-brand-border); border-radius: 12px; color: var(--falke-orange-deep); background: var(--falke-brand-soft); font-size: 22px; }
.glass-reports .reports-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.glass-report-config .reports-config-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.glass-report-config .reports-style-guide { display: grid; gap: 20px; }
.glass-report-config .reports-style-guide .admin-section-heading { margin-bottom: 0; }
.glass-report-config #report_reference_text { min-height: 360px; }
.glass-report-config .section-list { display: grid; gap: 14px; }
.glass-report-config .section-list > .note { margin: 0; padding: 22px; border: 1px dashed var(--falke-control-border); border-radius: 12px; color: var(--falke-muted); font-size: 13px; }
.glass-report-config .section-card { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--falke-border); border-radius: 14px; background: var(--falke-surface); }
.glass-report-config .section-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .65fr); gap: 14px; }
.glass-report-config .section-card textarea { min-height: 116px; }
.glass-report-config .section-card .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.glass-report-config .mini-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 11px; border: 1px solid var(--falke-control-border); border-radius: 10px; background: var(--falke-surface); color: var(--falke-ink); font: inherit; font-size: 12px; cursor: pointer; }
.glass-report-config .mini-button:disabled { opacity: .5; cursor: not-allowed; }
.glass-report-config .mini-button:hover:not(:disabled) { border-color: var(--falke-orange-deep); color: var(--falke-orange-deep); }
.glass-report-config .reports-savebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 8px; }
.glass-report-config .reports-savebar > p { margin: 0; }
.glass-report-editor .reports-document-summary { display: grid; gap: 22px; }
.glass-report-editor .reports-document-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.glass-report-editor .reports-document-title h2 { font-size: 23px; overflow-wrap: anywhere; }
.glass-report-editor .reports-document-title > div { min-width: 0; }
.glass-report-editor .reports-document-title .reports-status { flex-shrink: 0; }
.glass-report-editor .reports-document-meta { display: flex; flex-wrap: wrap; gap: 16px 30px; margin: 0; padding-top: 18px; border-top: 1px solid var(--falke-border); }
.glass-report-editor .reports-document-meta > div { display: grid; gap: 5px; }
.glass-report-editor .reports-document-meta dt { color: var(--falke-muted); font-size: 11px; }
.glass-report-editor .reports-document-meta dd { margin: 0; color: var(--falke-ink); font-size: 13px; overflow-wrap: anywhere; }
.glass-report-editor .reports-editor-workspace { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 20px; align-items: start; }
.glass-report-editor .reports-edit-form { display: grid; gap: 16px; }
.glass-report-editor .reports-edit-form textarea { min-height: 580px; line-height: 1.75; padding: 18px; }
.glass-report-editor .reports-editor-save { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.glass-report-editor .reports-editor-save > p { flex: 1; min-width: 160px; margin: 0; font-size: 12px; }
.glass-report-editor .reports-draft-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--falke-muted); font-size: 14px; line-height: 1.75; }
.glass-report-editor .reports-publication { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.glass-report-editor .reports-publication > div:first-child { flex: 1; min-width: 220px; }
.glass-report-editor .reports-publication h2 { font-size: 17px; }
:is(.glass-reports, .glass-report-config, .glass-report-editor) :is(button, a, input, select, textarea):focus-visible { outline: 3px solid var(--falke-focus); outline-offset: 3px; }
@media (max-width: 1200px) {
  .glass-reports .reports-workspace { grid-template-columns: minmax(0, 1fr); }
  .glass-reports .reports-create .reports-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .glass-reports .reports-create .reports-form > :is(.reports-template-summary, .admin-actions, .reports-model) { grid-column: 1 / -1; }
  .glass-report-config .reports-config-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .glass-report-config .section-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .glass-report-config .reports-config-grid,
  .glass-report-editor .reports-editor-workspace { grid-template-columns: minmax(0, 1fr); }
  .glass-report-config #report_reference_text { min-height: 240px; }
  .glass-report-config .section-grid { grid-template-columns: minmax(0, 1fr) minmax(160px, .6fr); }
  .glass-report-editor .reports-edit-form textarea { min-height: 460px; }
  .glass-report-editor .reports-document-title { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  :is(.glass-reports, .glass-report-config, .glass-report-editor) .reports-page-stack,
  .glass-report-config .reports-config-form { gap: 16px; }
  .glass-reports .reports-summary { gap: 8px; }
  .glass-reports .reports-summary .admin-stat { padding: 12px 10px; border-radius: 14px; }
  .glass-reports .reports-summary .admin-stat > span { font-size: 11px; }
  .glass-reports .reports-summary .admin-stat > strong { font-size: 25px; }
  .glass-reports .reports-history { padding-top: 18px; }
  .glass-reports .reports-history > .admin-section-heading { padding: 0 16px 16px; }
  .glass-reports .reports-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .glass-reports .reports-table :is(tbody, tr, td) { display: block; width: 100%; }
  .glass-reports .reports-table tr { padding: 16px; border-bottom: 1px solid var(--falke-border); }
  .glass-reports .reports-table tr:last-child { border-bottom: 0; }
  .glass-reports .reports-table td { padding: 0; border: 0; }
  .glass-reports .reports-table td:first-child,
  .glass-reports .reports-table td:nth-child(2) { width: 100%; }
  .glass-reports .reports-table td + td { margin-top: 14px; }
  .glass-reports .reports-row-actions .button { min-height: 44px; }
  .glass-reports .reports-create { padding: 18px; }
  .glass-reports .reports-create .reports-form { grid-template-columns: minmax(0, 1fr); }
  .glass-report-config .section-grid { grid-template-columns: minmax(0, 1fr); }
  .glass-report-config .section-card { padding: 14px; }
  .glass-report-config .mini-button { min-height: 44px; }
  .glass-report-config .reports-savebar .admin-actions { width: 100%; }
  .glass-report-editor .reports-document-meta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .glass-report-editor .reports-edit-form textarea { min-height: 380px; padding: 14px; font-size: 16px; }
  .glass-report-editor .reports-publication > div:first-child { min-width: 0; flex-basis: 100%; }
  :is(.glass-reports, .glass-report-config, .glass-report-editor) .button { white-space: normal; text-align: center; }
}
@media (max-width: 380px) {
  .glass-reports .reports-date-grid { grid-template-columns: minmax(0, 1fr); }
  .glass-reports .reports-summary { grid-template-columns: minmax(0, 1fr); }
  .glass-reports .reports-summary .admin-stat { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
}
@media (pointer: coarse) {
  .glass-reports .reports-row-actions .button,
  .glass-report-config .mini-button { min-height: 44px; }
}

@media (max-width:640px) {
  :is(.glass-reports, .glass-report-config, .glass-report-editor) :is(.admin-field, .section-card .field) :is(input:not([type=hidden]), select, textarea),
  .glass-reports .reports-date-grid input { font-size:16px; }
}
