/* Designers: reports, dashboards, forms. The dashboard grid is the
   page's identity: a 12-column board of quiet tiles, one figure each. */
.dz-new, .dz-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin-bottom: 14px; }
.dz-row .field { margin: 0; }
.dz-grow { flex: 1 1 220px; }
.dz-check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.dz-inline { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.dz-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.dz-builder .panel { margin-bottom: 14px; }
.dz-share summary, .dz-history summary, .dz-builder details > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; }
.dz-share__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.dz-fields { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; }
.dz-field { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.dz-field legend { font-weight: 650; font-size: 13px; padding: 0 4px; }
.dz-field details summary { padding: 6px 0; font-weight: 500; font-size: 13px; color: var(--ink-2); }
.dz-json { width: 100%; }
.dz-h3 { font-size: 14px; margin: 8px 0; }
.dz-fill .is-hidden { display: none; }
.dz-period { margin: 0 0 12px; }
.dz-result td { font-variant-numeric: tabular-nums; }
.dz-subtotal td { font-weight: 600; background: var(--surface-2, #f5f6f8); }
.dz-total td { font-weight: 700; }
.dz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.dz-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: inherit; background: var(--surface, #fff); }
.dz-card:hover, .dz-card:focus-visible { border-color: var(--border-strong); }
.dz-card__area { font-size: 12px; color: var(--ink-2); }

.dz-grid { --row: 64px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: var(--row); gap: 12px; margin-bottom: 20px; }
.dz-tile { position: relative; grid-column: calc(var(--x) + 1) / span var(--w); grid-row: calc(var(--y) + 1) / span var(--h);
  display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface, #fff); overflow: hidden; }
.dz-tile__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dz-tile__body { flex: 1; padding: 8px 14px 12px; overflow: auto; min-height: 0; }
.dz-kpi { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.dz-kpi__value { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dz-kpi__value small { font-size: .5em; margin-inline-start: 4px; color: var(--ink-2); }
.dz-kpi__label { font-size: 13px; color: var(--ink-2); }
.dz-kpi__target { font-size: 12px; color: var(--ink-3, #9aa0a6); }
.dz-unavailable, .dz-note { font-size: 13px; color: var(--ink-2); }
.dz-mini { font-size: 12px; }
.dz-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dz-bars li { display: grid; grid-template-columns: minmax(70px, 35%) 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.dz-bars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-bars__track { height: 10px; border-radius: 99px; background: var(--surface-2, #eef0f3); overflow: hidden; }
.dz-bars__fill { display: block; height: 100%; width: calc(var(--pct) * 1%); background: #10233f; border-radius: 99px; }
.dz-bars--line .dz-bars__fill { background: #3a6ea5; }
.dz-bars--donut .dz-bars__fill { background: #c78a14; }
.dz-bars__value { font-variant-numeric: tabular-nums; }
.dz-grid--edit .dz-tile { outline: 1px dashed var(--border-strong); }
.dz-tile__handle { cursor: grab; padding: 0 4px; user-select: none; }
.dz-tile__resize { position: absolute; inset-inline-end: 2px; bottom: 2px; width: 14px; height: 14px; cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, var(--ink-3, #9aa0a6) 50%); border-start-start-radius: 0; border-start-end-radius: 0; border-end-end-radius: 10px; border-end-start-radius: 0; }
.dz-tile__remove { position: absolute; top: 6px; inset-inline-end: 28px; border: 0; background: none; font-size: 18px; color: var(--ink-2); cursor: pointer; }
.dz-tile.is-dragging { opacity: .6; }
.dz-save-state { min-height: 1.2em; font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) {
  .dz-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .dz-tile { grid-column: 1 / -1; grid-row: auto; min-height: calc(var(--h) * 56px); }
  .dz-tile__resize, .dz-tile__handle { display: none; }
}
