/* Compact document dashboards use the application's palette in every theme. */
.document-overview-toggle{white-space:nowrap}
.document-overview-page:not(.document-overview-show-list)>:not(.page-head):not(.document-overview){display:none!important}
.document-overview-show-list .document-overview{display:none}
.document-overview{direction:rtl;color:var(--ink);padding-bottom:24px}
.document-overview-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin:4px 0 18px;padding:18px 20px;border-inline-start:4px solid var(--brand);border-radius:12px;background:var(--surface);border-block:1px solid var(--line);border-inline-end:1px solid var(--line)}
.document-overview-intro h2{margin:0 0 6px;font-size:calc(21/14*var(--app-font-size));line-height:1.3;color:var(--ink)}
.document-overview-intro p{margin:0;color:var(--ink-soft);font-size:calc(12.5/14*var(--app-font-size));line-height:1.6}
.document-overview-source{display:inline-flex;align-items:center;gap:7px;flex:none;padding:7px 10px;border:1px solid var(--line);border-radius:99px;color:var(--ink-soft);font-size:calc(11/14*var(--app-font-size));white-space:nowrap}
.document-overview-source i{width:8px;height:8px;border-radius:50%;background:var(--brand)}
.document-overview-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:12px}
.document-overview-metric{min-width:0;display:flex;flex-direction:column;gap:7px;padding:16px 17px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.document-overview-metric.is-leading{border-color:var(--brand);background:var(--brand-tint)}
.document-overview-metric>span{color:var(--ink-soft);font-size:calc(12/14*var(--app-font-size));font-weight:700}
.document-overview-metric>strong{font-size:calc(24/14*var(--app-font-size));font-weight:850;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.document-overview-metric>small{color:var(--ink-faint);font-size:calc(10.5/14*var(--app-font-size));line-height:1.4}
.document-overview-panels{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(245px,1fr);gap:12px;margin-bottom:12px}
.document-overview-panel{min-width:0;padding:17px 18px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.document-overview-panel-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:15px}
.document-overview-panel-head h3{margin:0;font-size:calc(14/14*var(--app-font-size));font-weight:800;color:var(--ink)}
.document-overview-panel-head>span{font-size:calc(10.5/14*var(--app-font-size));color:var(--ink-faint);text-align:end}
.document-overview-chart{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;align-items:end;min-height:210px;padding:0 3px}
.document-overview-bar-group{min-width:0;height:202px;display:flex;flex-direction:column;align-items:center;gap:6px}
.document-overview-bar-value{font-size:calc(10/14*var(--app-font-size));font-weight:700;color:var(--ink-soft);direction:ltr;white-space:nowrap}
.document-overview-bar-track{height:148px;width:min(48px,100%);display:flex;align-items:flex-end;border-bottom:1px solid var(--line)}
.document-overview-bar{display:block;width:100%;min-height:0;background:var(--brand);border-radius:6px 6px 0 0}
.document-overview-month{font-size:calc(10.5/14*var(--app-font-size));color:var(--ink-faint);white-space:nowrap}
.document-overview-composition,.document-overview-recent ul{list-style:none;margin:0;padding:0}
.document-overview-composition{display:flex;flex-direction:column;gap:12px}
.document-overview-composition li{display:flex;flex-direction:column;gap:5px}
.document-overview-composition li span{display:flex;justify-content:space-between;gap:8px;font-size:calc(11.5/14*var(--app-font-size))}
.document-overview-composition li strong{font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.document-overview-composition li b{font-variant-numeric:tabular-nums}
.document-overview-composition li i{display:block;max-width:100%;height:6px;background:var(--brand);border-radius:99px}
.document-overview-recent ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}
.document-overview-recent li{min-width:0;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:9px 0;border-top:1px solid var(--line)}
.document-overview-recent-main,.document-overview-recent-meta{min-width:0;display:flex;flex-direction:column;gap:4px}
.document-overview-recent-main strong{font-size:calc(11.5/14*var(--app-font-size));font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.document-overview-recent-main small{font-size:calc(10.5/14*var(--app-font-size));color:var(--ink-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.document-overview-recent-meta{text-align:end;white-space:nowrap;font-size:calc(10.5/14*var(--app-font-size));font-variant-numeric:tabular-nums}
.document-overview-recent-meta time{color:var(--ink-faint)}
.document-overview-empty-inline{margin:8px 0;color:var(--ink-faint);font-size:calc(11.5/14*var(--app-font-size));line-height:1.6}
.document-overview-message{display:flex;min-height:260px;align-items:center;justify-content:center;flex-direction:column;gap:9px;text-align:center;padding:30px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.document-overview-message strong{font-size:calc(15/14*var(--app-font-size))}
.document-overview-message p{max-width:450px;margin:0;color:var(--ink-soft);font-size:calc(12/14*var(--app-font-size));line-height:1.6}
.document-overview-error strong{color:var(--danger)}
.document-overview-loader{width:26px;height:26px;border:3px solid var(--line);border-top-color:var(--brand);border-radius:50%;animation:document-overview-spin .8s linear infinite}
@keyframes document-overview-spin{to{transform:rotate(360deg)}}
@media (max-width:1050px){.document-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.document-overview-panels{grid-template-columns:1fr}}
@media (max-width:610px){body.ui-v19 .document-overview-page>.page-head>.v19-page-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;overflow:visible!important}body.ui-v19 .document-overview-page>.page-head>.v19-page-actions>button{min-width:0!important;flex:none!important;width:100%!important;min-height:36px!important;white-space:normal!important}}
@media (max-width:610px){.document-overview-page>.page-head{gap:8px!important;padding:10px 12px!important}.document-overview-page>.page-head>div:has(>button){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important;width:100%}.document-overview-page>.page-head button{min-width:0;min-height:36px!important;padding:7px 8px!important;font-size:calc(11.5/14*var(--app-font-size))!important;white-space:normal!important}.document-overview-intro{flex-direction:column}.document-overview-metrics{gap:8px}.document-overview-metric{padding:12px}.document-overview-metric>strong{font-size:calc(19/14*var(--app-font-size))}.document-overview-panel{padding:14px 11px}.document-overview-chart{gap:3px}.document-overview-recent ul{grid-template-columns:1fr}.document-overview-source{white-space:normal}}
@media (prefers-reduced-motion:reduce){.document-overview-loader{animation:none}}
