/* Übersicht v0.20.2 – zehn gleich breite Kennzahlen ohne horizontalen Laufbalken. */
#page-dashboard .v20-dashboard-metrics{
  grid-template-columns:repeat(10,minmax(0,1fr))!important;
  gap:8px!important;
  max-width:1810px;
  overflow:visible!important;
  padding-bottom:0!important;
  align-items:stretch;
}
#page-dashboard .v20-dashboard-metrics .v12-metric{
  min-width:0;
  min-height:122px;
  width:auto;
  padding:14px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
}
#page-dashboard .v20-dashboard-metrics .label{font-size:11px;font-weight:800;line-height:1.22;min-height:27px;color:#5f6771}
#page-dashboard .v20-dashboard-metrics .num{font-size:25px;line-height:1;margin-top:8px}
#page-dashboard .v20-dashboard-metrics .sub{font-size:10px;line-height:1.28;margin-top:auto;padding-top:8px}
#page-dashboard .v20-dashboard-metrics .warn{box-shadow:inset 0 4px #d79b36,var(--shadow-card)}
#page-dashboard .v20-dashboard-metrics .danger{box-shadow:inset 0 4px #c83b3b,var(--shadow-card)}

.v20-dashboard-main{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,.65fr);gap:16px;margin-top:16px;align-items:start}
.v20-dashboard-main>.card{min-width:0;overflow:hidden}
.v20-dashboard-section-title{gap:16px}
.v20-dashboard-section-title>div:first-child{min-width:0}
.v20-dashboard-sort{display:flex;align-items:center;gap:8px;color:var(--color-text-muted);font-size:11px;font-weight:800;white-space:nowrap}
.v20-dashboard-sort select{min-width:190px;border:1px solid var(--color-border);border-radius:var(--radius-control);background:var(--color-surface);padding:8px 30px 8px 10px;color:var(--color-text);font-weight:700}
.v20-dashboard-case-table{min-width:820px}
.v20-dashboard-case-table td:nth-child(1){max-width:250px}
.v20-dashboard-case-table td:nth-child(2){min-width:190px}
.v20-dashboard-case-table td:nth-child(3){min-width:185px}
.v20-dashboard-case-table td:nth-child(4){min-width:135px}
.v20-dashboard-case-table .badge{opacity:1!important;filter:none!important;isolation:isolate}
.v20-dashboard-last small{display:block;color:var(--color-text-muted);font-size:10px;margin-top:3px}

.v20-important-count{min-width:30px;height:30px;padding:0 9px;border-radius:999px;background:#f1f3f5;color:#4b5560;display:grid;place-items:center;font-size:12px;font-weight:900}
.v20-important-count.has-items{background:#ffe4ce;color:#9b4100}
#dashImportant{max-height:552px;overflow-y:auto;overflow-x:hidden}
.v20-important-item{position:relative;padding:14px 16px;border-bottom:1px solid var(--color-border);cursor:pointer;background:#fff}
.v20-important-item:hover{background:#fff8f2}
.v20-important-item.important{box-shadow:inset 4px 0 #d88924}
.v20-important-item.urgent{box-shadow:inset 4px 0 #c83b3b;background:#fff7f6}
.v20-important-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.v20-important-priority{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;background:#fff0d8;color:#8b5800}
.v20-important-item.urgent .v20-important-priority{background:#c83b3b;color:#fff}
.v20-important-item h3{font-size:13px;margin:0 0 5px;line-height:1.3}
.v20-important-item p{font-size:12px;line-height:1.42;color:#343b43;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.v20-important-meta{display:flex;flex-wrap:wrap;gap:5px 9px;margin-top:8px;color:var(--color-text-muted);font-size:10px}
.v20-important-actions{display:flex;justify-content:flex-end;margin-top:9px}
.v20-important-actions .btn{padding:5px 8px;font-size:10px}
.v20-important-empty{padding:34px 22px;text-align:center;color:var(--color-text-muted)}
.v20-important-empty strong{display:block;color:var(--color-text);font-size:14px;margin-bottom:5px}
.v20-important-empty span{font-size:11px;line-height:1.4}

html[data-zaphi-theme="dark"] .v20-important-item{background:#202a33;color:#edf2f6;border-color:#3b4651}
html[data-zaphi-theme="dark"] .v20-important-item:hover{background:#2b3945}
html[data-zaphi-theme="dark"] .v20-important-item.urgent{background:#352629}
html[data-zaphi-theme="dark"] .v20-important-item.urgent:hover{background:#493036}
html[data-zaphi-theme="dark"] .v20-important-item h3{color:#edf2f6}
html[data-zaphi-theme="dark"] .v20-important-item p{color:#d8e2ea}
html[data-zaphi-theme="dark"] .v20-important-item :is(.v20-important-meta,.muted){color:#b9c6d1}
html[data-zaphi-theme="dark"] .v20-important-item .v20-important-priority{background:#49351a;color:#ffda91}
html[data-zaphi-theme="dark"] .v20-important-item.urgent .v20-important-priority{background:#ad3e48;color:#fff}

@media(max-width:1479px){
  #page-dashboard .v20-dashboard-metrics{grid-template-columns:repeat(5,minmax(0,1fr))!important;max-width:900px}
}
@media(max-width:1200px){
  .v20-dashboard-main{grid-template-columns:1fr}
  #dashImportant{max-height:420px}
}
@media(max-width:900px){
  #page-dashboard .v20-dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:none}
  .v20-dashboard-section-title{align-items:flex-start;flex-direction:column}
  .v20-dashboard-sort{width:100%;justify-content:space-between}
  .v20-dashboard-sort select{min-width:0;flex:1}
}
@media(max-width:520px){
  #page-dashboard .v20-dashboard-metrics{grid-template-columns:1fr!important}
}
