/* V23.1 compact work overview: preserve readable content without filler space. */
.v23-dashboard {
  --dash-ink: #142d44;
  --dash-muted: #62768b;
  --dash-line: #e1e9ef;
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  color: var(--dash-ink);
}
.v23-dash-date { color: #62768b; font-size: .875rem; white-space: nowrap; margin-right: 8px; }
.v23-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.v23-dashboard .teal, .v23-work-queue .teal { --tone: #087b70; --tint: #e8f6f2; }
.v23-dashboard .blue, .v23-work-queue .blue { --tone: #2860b4; --tint: #edf3ff; }
.v23-dashboard .amber, .v23-work-queue .amber { --tone: #a6630a; --tint: #fff4df; }
.v23-dashboard .violet, .v23-work-queue .violet { --tone: #7551ad; --tint: #f3edfc; }
.v23-dashboard .rose, .v23-work-queue .rose { --tone: #bd4259; --tint: #fff0f2; }
.v23-dashboard .v23-kpi {
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  gap: 3px; min-width: 0; min-height: 0; padding: 10px 14px;
  text-align: left; background: #fff; border: 1px solid var(--dash-line);
  border-radius: 14px; box-shadow: 0 3px 10px #17304b04;
  color: var(--dash-ink); cursor: pointer; overflow: hidden;
}
.v23-dashboard .v23-kpi::before { content: ''; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; background: var(--tone); border-radius: 0 3px 3px 0; }
.v23-dashboard .v23-kpi:hover { border-color: var(--tone); box-shadow: 0 5px 16px #17304b0a; }
.v23-kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--dash-muted); font-size: .875rem; font-weight: 550; }
.v23-kpi-icon { display: flex; align-items: center; justify-content: center; background: var(--tint); color: var(--tone); border-radius: 7px; width: 24px; height: 24px; flex-shrink: 0; }
.v23-kpi-icon svg { width: 17px; height: 17px; }
.v23-kpi strong { font-size: clamp(1.25rem,1.75vw,1.5rem); line-height: 1.15; letter-spacing: -.6px; font-variant-numeric: tabular-nums; color: var(--tone); white-space: nowrap; }
.v23-kpi small { color: var(--dash-muted); font-size: .8125rem; line-height: 1.3; }
.v23-kpi-unit { font-size: .875rem; color: var(--dash-muted); letter-spacing: 0; font-weight: 500; }
.v23-quickbar { display: flex; align-items: center; gap: 8px; }
.v23-quick-items { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; flex: 1; min-width: 0; }
.v23-dashboard .v23-quick-button { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 10px; background: #fff; border: 1px solid var(--dash-line); border-radius: 9px; min-height: 0; color: var(--dash-ink); cursor: pointer; text-align: left; }
.v23-quick-button > span { display: flex; align-items: center; justify-content: center; color: var(--tone); background: var(--tint); width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; }
.v23-quick-button svg { width: 17px; height: 17px; }
.v23-quick-button b { font-size: .875rem; line-height: 1.25; font-weight: 600; }
.v23-dashboard .v23-quick-button:hover { border-color: var(--tone); background: var(--tint); }
.v23-dashboard .btn.v23-more-button { flex-shrink: 0; background: transparent; border-color: transparent; font-size: .875rem; color: #35536f; padding: 6px 8px; }
.v23-dash-columns { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,1fr); align-items: start; gap: 12px; }
.v23-dash-panel { min-width: 0; background: #fff; border: 1px solid var(--dash-line); border-radius: 14px; overflow: hidden; box-shadow: 0 3px 10px #17304b03; }
.v23-dash-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; min-height: 0; border-bottom: 1px solid #edf1f5; }
.v23-dash-panel > header h2 { margin: 0; color: var(--dash-ink); font-size: 1rem; line-height: 1.3; font-weight: 650; letter-spacing: -.15px; }
.v23-dashboard .v23-dash-panel > header .btn, .v23-dashboard .v23-dash-panel > header a { padding: 0; min-height: 24px; margin: 0; font-size: .8125rem; font-weight: 550; color: #28736d; border: 0; background: transparent; box-shadow: none; text-decoration: none; }
.v23-dash-panel > header a:hover, .v23-dash-panel > header button:hover { text-decoration: underline; }
.v23-due-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 8px 14px; min-height: 0; }
.v23-due-row + .v23-due-row { border-top: 1px solid #edf1f5; }
.v23-due-date { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 36px; border-radius: 7px; color: #315d98; background: #edf3ff; }
.v23-due-date.is-overdue { color: #b34e38; background: #fff1eb; }
.v23-due-date b { font-size: 1rem; line-height: 1.1; }
.v23-due-date small { font-size: .75rem; line-height: 1.2; }
.v23-due-customer { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v23-due-customer .gw-text-link { text-align: left; color: var(--dash-ink); font-size: .875rem; font-weight: 600; max-width: 100%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.v23-due-customer small { color: var(--dash-muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v23-due-value { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.v23-due-value strong { font-size: .875rem; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.v23-due-value .gw-chip { font-size: .8125rem; line-height: 1.25; padding: 2px 5px; }
.v23-dashboard .btn.v23-collect { padding: 6px 9px; font-size: .8125rem; border-radius: 7px; border: 1px solid #d9eae5; background: #f2faf7; color: #087b70; white-space: nowrap; }
.v23-dashboard .btn.v23-collect:hover { background: #087b70; border-color: #087b70; color: #fff; }
.v23-work-queue { display: grid; grid-template-columns: 1fr; padding: 0 14px; }
.v23-work-queue a { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 0; padding: 7px 0; color: var(--dash-ink); text-decoration: none; border-bottom: 1px solid #edf1f5; }
.v23-work-queue a:last-child { border-bottom: 0; }
.v23-work-queue a:hover { color: var(--tone); }
.v23-work-queue a > span:not(.v23-queue-icon) { font-size: .875rem; font-weight: 500; }
.v23-queue-icon { display: flex; align-items: center; justify-content: center; width: 27px; height: 27px; color: var(--tone); background: var(--tint); border-radius: 7px; }
.v23-queue-icon svg { width: 16px; height: 16px; }
.v23-work-queue strong { min-width: 29px; padding: 3px 7px; border-radius: 7px; text-align: center; font-size: .875rem; color: var(--tone); background: var(--tint); }
.v23-dash-empty { min-height: 0; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; color: var(--dash-muted); text-align: left; padding: 18px 14px; font-size: .875rem; }
.v23-dash-empty svg { width: 22px; height: 22px; color: #8ca6b3; }
.v23-dash-empty b { font-size: .875rem; font-weight: 500; }
.v23-recent-list { list-style: none; padding: 0; margin: 0; }
.v23-recent-list li + li { border-top: 1px solid #edf1f5; }
.v23-dashboard .v23-recent-row { width: 100%; display: grid; grid-template-columns: 34px minmax(0,1fr) auto minmax(145px,auto); gap: 12px; align-items: center; padding: 8px 14px; background: #fff; color: var(--dash-ink); border: 0; text-align: left; cursor: pointer; }
.v23-dashboard .v23-recent-row:hover { background: #f7fafc; }
.v23-recent-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: #f0f4fa; color: #3b668d; border-radius: 9px; }
.v23-recent-icon.positive { color: #087b70; background: #e8f6f2; }
.v23-recent-icon.outgoing { color: #a6630a; background: #fff4df; }
.v23-recent-icon svg { width: 17px; height: 17px; }
.v23-recent-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v23-recent-main b { font-size: .875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v23-recent-main small, .v23-recent-row time { font-size: .8125rem; color: var(--dash-muted); }
.v23-recent-main small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v23-recent-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .9375rem; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.v23-recent-amount .gw-chip { font-weight: 500; font-size: .8125rem; padding: 2px 6px; }
.v23-operation-menu { display: grid; gap: 16px; }
.v23-operation-menu h3 { margin: 0 0 8px; color: #62768b; font-size: .875rem; font-weight: 600; }
.v23-operation-menu .gw-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; gap: 8px; }
.v23-operation-menu .gw-action { min-height: 0; padding: 7px 10px; border-radius: 9px; }
.v23-operation-menu .gw-action b { font-size: .875rem; }
.v23-operation-menu .gw-plus { display: none; }
.v23-extra-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.v23-extra-shortcuts .btn { font-size: .875rem; }
.v23-follow-menu { position: relative; }
.v23-follow-menu summary { cursor: pointer; list-style: none; padding: 7px 10px; font-size: .875rem; font-weight: 550; border: 1px solid #dbe4eb; border-radius: 8px; background: #fff; color: #31506a; }
.v23-follow-menu summary::-webkit-details-marker { display: none; }
.v23-follow-menu[open] summary { border-color: #0b8b80; }
.v23-follow-menu > div { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; display: grid; gap: 4px; min-width: 190px; padding: 7px; border: 1px solid #dbe4eb; border-radius: 10px; background: #fff; box-shadow: 0 12px 32px #1530471a; }
.v23-follow-menu > div .btn { justify-content: flex-start; background: #fff; border: 0; white-space: nowrap; }
.v23-follow-menu > div .btn:hover { background: #edf7f4; }
.gw-filterbar.v23-agenda-tabs { gap: 8px; margin: 0 0 10px; padding: 5px 7px; }
.v23-agenda-tabs .gw-switch .btn { min-height: 32px; padding: 5px 10px; }
.v23-agenda-tabs label { margin: 0; }
.gw-filterbar.v23-agenda-tabs select { min-height: 32px; padding: 5px 8px; }
.v23-agenda-tabs .gw-switch { display: flex; flex-wrap: wrap; gap: 4px; }
.v23-agenda-tabs .gw-switch .btn { font-size: .875rem; white-space: nowrap; }
@media (max-width: 1150px) {
  .v23-kpis { gap: 10px; }
  .v23-dashboard .v23-kpi { padding: 10px 12px; }
  .v23-kpi-label { font-size: .875rem; }
  .v23-kpi-icon { width: 24px; height: 24px; }
  .v23-quickbar { gap: 5px; }
  .v23-quick-items { gap: 8px; }
  .v23-dashboard .v23-quick-button { padding: 6px 8px; gap: 7px; }
  .v23-quick-button b { font-size: .875rem; }
  .v23-dash-columns { grid-template-columns: minmax(0,1.45fr) minmax(240px,1fr); gap: 12px; }
  .v23-due-row { grid-template-columns: 34px minmax(0,1fr) auto; gap: 7px; padding: 8px 12px; }
  .v23-due-row .v23-collect { grid-column: 2; justify-self: start; margin-top: -3px; padding: 3px 7px; }
  .v23-due-value { grid-column: 3; grid-row: 1 / span 2; }
  .v23-due-date { grid-row: 1 / span 2; }
  .v23-dash-panel > header { padding: 8px 12px; }
}
@media (max-width: 900px) {
  .v23-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v23-dashboard .v23-kpi { min-height: 0; }
  .v23-kpi strong { font-size: 1.5rem; }
  .v23-dash-columns { grid-template-columns: minmax(0,1fr); }
  .v23-work-queue { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
  .v23-work-queue a:nth-last-child(2) { border-bottom: 0; }
  .v23-due-row { grid-template-columns: 40px minmax(0,1fr) auto auto; }
  .v23-due-row .v23-collect { grid-column: auto; grid-row: auto; margin: 0; padding: 7px 9px; }
  .v23-due-value, .v23-due-date { grid-column: auto; grid-row: auto; }
  .v23-dashboard .v23-quick-button { flex-direction: row; justify-content: flex-start; align-items: center; padding: 7px 9px; }
  .v23-quickbar { flex-wrap: wrap; }
  .v23-quick-items { flex-basis: calc(100% - 120px); }
  .v23-recent-row time { display: none; }
  .v23-dashboard .v23-recent-row { grid-template-columns: 34px minmax(0,1fr) auto; }
}
@media (max-width: 600px) {
  .v23-dashboard { gap: 10px; }
  .v23-dash-date { font-size: .8125rem; }
  .v23-kpis { gap: 9px; }
  .v23-dashboard .v23-kpi { padding: 10px; border-radius: 11px; }
  .v23-kpi-label { font-size: .875rem; gap: 3px; }
  .v23-kpi strong { font-size: clamp(1.125rem,5vw,1.5rem); }
  .v23-kpi small { font-size: .75rem; }
  .v23-kpi-icon { width: 24px; height: 24px; }
  .v23-kpi-icon svg { width: 14px; height: 14px; }
  .v23-quickbar { gap: 4px; }
  .v23-quick-items { grid-template-columns: repeat(2,minmax(0,1fr)); flex-basis: 100%; }
  .v23-dashboard .v23-quick-button { flex-direction: row; justify-content: flex-start; align-items: center; min-height: 44px; }
  .v23-quick-button b { font-size: .875rem; }
  .v23-dashboard .btn.v23-more-button { margin-left: auto; min-height: 33px; padding: 4px 2px; }
  .v23-dash-panel { border-radius: 12px; }
  .v23-dash-panel > header h2 { font-size: .9375rem; }
  .v23-due-row { grid-template-columns: 34px minmax(0,1fr) auto; gap: 7px; padding: 9px 11px; }
  .v23-due-row .v23-collect { grid-column: 2; justify-self: start; padding: 4px 8px; }
  .v23-due-value { grid-column: 3; grid-row: 1 / span 2; }
  .v23-due-date { grid-row: 1 / span 2; }
  .v23-due-customer .gw-text-link, .v23-due-value strong { font-size: .875rem; }
  .v23-work-queue { grid-template-columns: 1fr; }
  .v23-work-queue a:nth-last-child(2) { border-bottom: 1px solid #edf1f5; }
  .v23-dashboard .v23-recent-row { gap: 9px; padding: 9px 11px; grid-template-columns: minmax(0,1fr) auto; }
  .v23-recent-icon { display: none; }
  .v23-recent-main b, .v23-recent-amount { font-size: .875rem; }
  .v23-recent-main small { font-size: .75rem; }
  .v23-recent-amount .gw-chip { font-size: .8125rem; }
  .v23-operation-menu .gw-actions { grid-template-columns: 1fr; }
  .v23-agenda-tabs { align-items: flex-start; }
  .v23-agenda-tabs .gw-switch { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v23-agenda-tabs .gw-switch .btn { min-height: 38px; padding: 6px 7px; font-size: .875rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .v23-kpi, .v23-quick-button, .v23-recent-row { transition: background .16s ease,border-color .16s ease,box-shadow .16s ease; }
}
