#demandActions{display:grid;grid-template-columns:repeat(2,max-content);gap:9px 10px;align-items:start}
#demandActions #exportExcel{grid-column:1;grid-row:1}
#demandActions #newTask{grid-column:2;grid-row:1}
#demandActions #viewActiveDemands{grid-column:2;grid-row:2;justify-content:center}
#activeDemandsView{margin-bottom:24px;overflow:hidden;background:var(--surface,var(--white));color:var(--ink)}
#activeDemandsView .ad-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:24px;border-bottom:1px solid var(--line)}
#activeDemandsView h2{margin:0;font-size:21px;line-height:1.4}
#activeDemandsView .ad-caption{margin:5px 0 0;font-size:13px;color:var(--muted);line-height:1.6}
#activeDemandsView .ad-tools{display:flex;gap:8px;flex:none}
#activeDemandsView .ad-filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(4,minmax(140px,1fr));gap:12px;padding:20px 24px;background:var(--surface-raised,var(--bg));border-bottom:1px solid var(--line)}
#activeDemandsView .ad-filter{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;color:var(--muted)}
#activeDemandsView .control{width:100%;min-width:0;font-size:13px;min-height:40px;color:var(--ink);background:var(--surface-inset,var(--white));border:1px solid var(--line)}
#activeDemandsView .ad-summary{display:flex;align-items:center;gap:10px 20px;flex-wrap:wrap;padding:15px 24px;font-size:13px;color:var(--muted);border-bottom:1px solid var(--line)}
#activeDemandsView .ad-summary strong{color:var(--ink);font-size:17px;margin-right:4px;font-variant-numeric:tabular-nums}
#activeDemandsView .ad-summary .ad-reset{margin-left:auto;background:none;border:0;color:var(--green);font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
#activeDemandsView .ad-error{padding:13px 24px;color:var(--red);font-size:13px;border-bottom:1px solid var(--line);margin:0}
#activeDemandsView .ad-table-wrap{overflow:auto;max-height:65vh;scrollbar-width:thin}
#activeDemandsView table{display:table;width:100%;min-width:1120px;table-layout:fixed;border-collapse:collapse;text-align:left}
#activeDemandsView colgroup{display:table-column-group}#activeDemandsView thead{display:table-header-group}#activeDemandsView tbody{display:table-row-group}#activeDemandsView tr{display:table-row}#activeDemandsView th,#activeDemandsView td{display:table-cell}
#activeDemandsView th{position:sticky;top:0;z-index:1;background:var(--surface-raised,var(--bg));font-size:12px;color:var(--muted);font-weight:600}
#activeDemandsView th,#activeDemandsView td{padding:16px 14px;vertical-align:top;border-bottom:1px solid var(--line);line-height:1.6;overflow-wrap:anywhere}
#activeDemandsView td{font-size:13px}
#activeDemandsView td strong{font-weight:650}
#activeDemandsView td small{display:block;margin-top:3px;color:var(--muted);font-size:11px;line-height:1.5}
#activeDemandsView .ad-task-title{font-size:14px;line-height:1.5}
#activeDemandsView .ad-description{margin-top:6px;color:var(--muted);font-size:12px;white-space:pre-wrap}
#activeDemandsView .ad-description summary{cursor:pointer;color:var(--green);font-size:12px}
#activeDemandsView .ad-description p{margin:7px 0 0}
#activeDemandsView .ad-status{display:inline-block;border-radius:6px;padding:4px 8px;background:var(--mint);font-size:12px;line-height:1.4;color:var(--green);font-weight:600}
#activeDemandsView .ad-status.late{color:var(--red);background:color-mix(in srgb,var(--red) 12%,transparent)}
#activeDemandsView .ad-status.scheduled{color:var(--muted);background:var(--surface-raised,var(--bg))}
#activeDemandsView .ad-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:16px 24px;font-size:12px;color:var(--muted)}
#activeDemandsView .ad-pages{display:flex;align-items:center;gap:12px}
#activeDemandsView .ad-empty{text-align:center;padding:44px 20px;color:var(--muted)}
#activeDemandsView .ad-empty strong{display:block;color:var(--ink);font-size:16px;margin-bottom:4px}
@media(max-width:1250px){#activeDemandsView .ad-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#activeDemandsView .ad-filter:first-child{grid-column:1/-1}}
@media(max-width:650px){#demandActions{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}#demandActions .btn{font-size:12px;padding:9px;min-width:0}#activeDemandsView .ad-head{align-items:flex-start;flex-direction:column;padding:18px}#activeDemandsView .ad-filters{padding:16px;gap:10px}#activeDemandsView .ad-summary,#activeDemandsView .ad-footer{padding:16px}#activeDemandsView .ad-tools{width:100%;justify-content:flex-end}}
