/* Executive overview only. No chat, account-management or role policy overrides. */
.workspace .product-dash.exec-dash { gap: 8px; padding-bottom: 4px; }
.exec-dash .exec-main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.exec-dash #exec-attention { padding: 10px 14px 8px; }
.exec-dash #exec-attention .block-heading h3 { font-size: 14px; }
@media (min-width: 1200px) {
  .exec-dash #exec-attention .exec-issues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
}
.exec-dash .exec-col { min-width: 0; gap: 8px; }
.exec-dash .dash-v2-kpi.exec-kpi { height: 72px; min-height: 72px; max-height: 72px; padding: 8px 12px; gap: 2px; background: var(--ux-surface); border: 1px solid var(--ux-border); border-radius: var(--ux-radius); box-shadow: none; }
.exec-dash .exec-kpi-label { font-size: 12px; font-weight: 500; color: var(--ux-text-2); }
.exec-dash .exec-kpi-label, .exec-dash .exec-kpi-sub { line-height: 15px; flex-shrink: 0; }
.exec-dash .exec-kpi-value { height: 26px; line-height: 26px; flex-shrink: 0; }
.exec-dash .exec-kpi-value strong { font-size: 20px; font-weight: 700; color: var(--ux-text); }
.exec-dash .exec-kpi-value strong.is-text { font-size: 16px; }
.exec-dash .exec-kpi.is-warn .exec-kpi-value strong { color: var(--ux-warn); }
.exec-dash .exec-kpi-sub { font-size: 11.5px; color: var(--ux-muted); }
.exec-dash .exec-kpi:focus-visible { outline: 2px solid var(--dash-focus); outline-offset: -2px; }
.product-dash.dash-v2.exec-dash .exec-card { padding: 8px 14px; min-width: 0; background: var(--ux-surface); border: 1px solid var(--ux-border); border-radius: var(--ux-radius); box-shadow: none; }
.exec-dash .exec-card .block-heading { min-height: 24px; margin-bottom: 4px; }
.exec-dash .block-heading h3 { font-size: 13.5px; font-weight: 700; color: var(--ux-text); min-width: 0; white-space: nowrap; }
.exec-dash .text-action { color: var(--ux-link); font-weight: 600; font-size: 12.5px; }
.exec-dash .exec-zdept { min-height: 36px; gap: 8px; }
.exec-dash .exec-zdept span { font-size: 12px; }
.exec-dash .exec-dept { min-height: 30px; }
.exec-dash .exec-dept-name { min-width: 0; }
.exec-dash .exec-source { font-size: 11px; flex-shrink: 0; }
.exec-dash .exec-bullets { gap: 3px; margin-top: 4px; }
.exec-dash .exec-bullets li { line-height: 17px; }
.exec-dash .exec-bullets li span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exec-dash .exec-note { font-size: 11px; line-height: 15px; margin-top: 4px; }
.exec-dash .exec-sec-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; min-height: 34px; gap: 10px; }
.exec-dash .exec-sec-row time { font-size: 12px; color: var(--dash-meta); }
.exec-dash .exec-issue { height: 44px; min-height: 44px; gap: 8px; }
.exec-dash .exec-issue-main { min-width: 0; }
.exec-dash .exec-issue-meta { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px; }
.exec-dash .exec-issue-meta b, .exec-dash .exec-issue-reason { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.exec-dash .exec-issue-side { flex-direction: column; align-items: flex-end; gap: 1px; }
.exec-dash .exec-issue-side .dash-chip { font-size: 10px; padding: 1px 5px; line-height: 13px; }
.exec-dept-more { font-size: 12px; color: var(--dash-meta); }
.exec-dept-more summary { padding: 6px 0; cursor: pointer; }
.exec-dept-extra { max-height: 160px; overflow-y: auto; }
.exec-dash button:focus-visible, .exec-dash summary:focus-visible { outline: 2px solid var(--dash-focus); outline-offset: -2px; }
@media (max-width: 1100px) {
  .exec-dash .exec-main { grid-template-columns: minmax(0, 1fr); }
  .exec-dash .exec-kpi-label, .exec-dash .exec-kpi-sub { white-space: normal; }
  .exec-dash .exec-kpi-value strong.is-text { font-size: 15px; }
  .exec-dash .dash-v2-strip.exec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #app-screen[data-view="overview"]:has(.exec-dash) { flex-direction: column; height: 100dvh; }
  #app-screen[data-view="overview"]:has(.exec-dash) > .sidebar { width: 100%; min-width: 0; height: auto; flex: none; border: 0; }
  #app-screen[data-view="overview"]:has(.exec-dash) .sidebar-hero { padding: 0; background: var(--bg-surface); }
  #app-screen[data-view="overview"]:has(.exec-dash) .sidebar-hero > :not(#shell-nav) { display: none; }
  #app-screen[data-view="overview"]:has(.exec-dash) #shell-nav { display: flex; flex-flow: row nowrap; align-items: center; justify-content: space-between; gap: 2px; height: 52px; padding: 0 8px; margin: 0; background: var(--ux-surface); border-bottom: 1px solid var(--ux-border); }
  #app-screen[data-view="overview"]:has(.exec-dash) #shell-nav button { width: 34px; height: 34px; padding: 7px; flex: 0 0 auto; display: grid; place-items: center; background: transparent; color: var(--ux-text-2); border: 0; border-radius: 10px; box-shadow: none; }
  #app-screen[data-view="overview"]:has(.exec-dash) #shell-nav button.active { background: var(--ux-sel); color: var(--ux-link); box-shadow: inset 3px 0 0 var(--ux-sel-bar); }
  #app-screen[data-view="overview"]:has(.exec-dash) #shell-nav button[data-view] span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  #app-screen[data-view="overview"]:has(.exec-dash) #shell-nav > .rail-z-btn { width: 30px; height: 30px; padding: 0; border-radius: 9px; background: var(--ux-primary); color: var(--ux-on-primary); font-weight: 700; }
  #app-screen[data-view="overview"]:has(.exec-dash) #rail-utils { display: contents; }
  #app-screen[data-view="overview"]:has(.exec-dash) .workspace { min-height: 0; padding: 8px 12px; }
  .product-dash.exec-dash > .page-head { margin: 0 -12px 8px; padding-left: 12px; padding-right: 12px; }
  .exec-dash .exec-card .block-heading { flex-wrap: wrap; overflow: visible; }
  .exec-dash .block-heading h3 { white-space: normal; }
  .exec-dash .exec-kpi-sub { font-size: 11px; }
  .exec-dash .exec-sec-row { grid-template-columns: minmax(0, 1fr) auto; }
  .exec-dash .exec-sec-row .dash-state-pill { grid-column: 1 / -1; justify-self: start; }
  .exec-dash .exec-zdept { align-items: flex-start; flex-direction: column; gap: 2px; padding: 6px 0; height: auto; min-height: 0; }
}

/* ===== UX S02 F1 — thanh lọc, Việc cần chú ý, Vận hành Zalo, bảng phòng ban (token --ux-*) ===== */
.exec-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; background: var(--ux-surface); border: 1px solid var(--ux-border); border-radius: var(--ux-radius); }
.exec-filter { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 4px 0 10px; border: 1px solid var(--ux-border-strong); border-radius: var(--ux-radius-sm); background: var(--ux-input); font-size: 12px; color: var(--ux-text-2); white-space: nowrap; }
.exec-filter select { height: 32px; min-width: 0; padding: 0 4px; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--ux-text); cursor: pointer; }
.exec-filter.is-pending { background: var(--ux-disabled-bg); border-style: dashed; border-color: var(--ux-border-strong); }
.exec-filter.is-pending select { appearance: none; -webkit-appearance: none; padding-right: 8px; color: var(--ux-text-2); cursor: not-allowed; opacity: 1; }
.exec-filter-status { display: flex; align-items: center; gap: 6px; margin: 0 0 0 auto; font-size: 12px; color: var(--ux-text-2); }
.exec-filter-inline { height: 30px; }
.exec-filter-inline select { height: 28px; }
/* B2 — bộ lọc toàn trang chạy thật (N1) */
.exec-filter-controls { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.exec-filter-controls .exec-filter select { max-width: 200px; text-overflow: ellipsis; }
.exec-filter.is-active { border-color: var(--ux-link); box-shadow: inset 0 0 0 1px var(--ux-link); }
.exec-filter.is-active > span { color: var(--ux-link); font-weight: 600; }
.exec-filter select:disabled { cursor: progress; color: var(--ux-text-2); }
.exec-filter select:focus-visible { outline: 2px solid var(--ux-link); outline-offset: 1px; border-radius: 4px; }
.exec-filter-status { flex-wrap: wrap; min-width: 0; row-gap: 4px; }
.exec-filter-label { font-weight: 600; color: var(--ux-text); }
.exec-filter-text { min-width: 0; overflow-wrap: anywhere; }
.exec-filter-status .text-action { margin-left: 4px; font-size: 12px; }
.exec-dash .dash-chip.is-filter { max-width: 220px; overflow: hidden; text-overflow: ellipsis; background: var(--ux-sel); color: var(--ux-text); border: 1px solid var(--ux-border-strong); }
.exec-filter-spinner { width: 12px; height: 12px; border: 2px solid var(--ux-border-strong); border-top-color: var(--ux-link); border-radius: 50%; animation: exec-spin .8s linear infinite; }
@keyframes exec-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .exec-filter-spinner { animation: none; } }
.exec-dash.is-filtering > :not(.page-head):not(.exec-filterbar) { opacity: .5; pointer-events: none; transition: opacity .15s; }
.exec-tag.is-muted { border-style: dashed; font-weight: 500; color: var(--ux-muted); }
/* B2: thẻ KPI căn trái (flex-start) làm dòng phụ rộng theo nội dung → giới hạn để "…" hoạt động (tên phòng dài). */
.exec-dash .exec-kpi-sub, .exec-dash .exec-kpi-label { max-width: 100%; min-width: 0; }
@media (max-width: 760px) {
  .exec-dash .exec-kpi-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.exec-dash #exec-attention .block-heading { overflow: visible; flex-wrap: wrap; row-gap: 4px; }
.exec-tag { padding: 1px 7px; border: 1px solid var(--ux-border-strong); border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--ux-text-2); white-space: nowrap; }
.exec-heading-fill { flex: 1 1 auto; }
.exec-dash .exec-card .exec-zlabel { margin: 8px 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ux-muted); }
.exec-dash .exec-acc { height: 36px; }
.exec-dash .exec-acc-go { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--ux-link); }
.exec-dash .exec-card .exec-zstable { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; font-size: 12px; color: var(--ux-text-2); }
.exec-dash .exec-dept, .exec-dept-head { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, .8fr)) 12px; align-items: center; gap: 8px; }
.exec-dept-head { padding: 0 2px 4px; font-size: 11.5px; font-weight: 600; color: var(--ux-muted); }
.exec-dept-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exec-dash .exec-dept-open { font-size: 12.5px; font-weight: 600; color: var(--ux-text); font-variant-numeric: tabular-nums; }
.exec-num { font-size: 12.5px; color: var(--ux-text-2); font-variant-numeric: tabular-nums; }
.exec-num.is-high { font-weight: 700; color: var(--ux-danger); }
.exec-num.is-warn { font-weight: 700; color: var(--ux-warn); }
@media (max-width: 760px) {
  .exec-filter-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  /* Nhãn nhỏ phía trên, giá trị rộng hết ô: đọc được tên phòng / tài khoản ở 390px. */
  .exec-filter-controls .exec-filter { flex-direction: column; align-items: stretch; gap: 0; height: auto; min-width: 0; padding: 4px 6px 2px 10px; }
  .exec-filter-controls .exec-filter > span { overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; line-height: 14px; }
  .exec-filter-controls .exec-filter select { width: 100%; max-width: none; height: 26px; padding: 0; }
  .exec-filter-status { margin: 0; }
  .exec-dash .exec-dept, .exec-dept-head { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .7fr)) 10px; gap: 6px; }
  .exec-dash .exec-acc-dept { display: none; }
}
