/* SCOP — Operator Dashboard (no scroll, fluid fit viewport) */

#dashboard-workspace {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dashboard-workspace {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.dashboard-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(0.3rem, 0.75vh, 0.75rem);
  padding: clamp(0.45rem, 1vh, 1.25rem) clamp(0.55rem, 1.4vw, 1.75rem) clamp(0.35rem, 0.6vh, 0.75rem);
}

.dashboard-page-header {
  flex-shrink: 0;
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.dashboard-page-header-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  flex-shrink: 0;
}

.dashboard-page-heading {
  min-width: 0;
}

.dashboard-manage-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(32px, 4.5vh, 40px);
  height: clamp(32px, 4.5vh, 40px);
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: var(--color-surface);
  color: #6b7280;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.dashboard-manage-btn--labeled {
  width: auto;
  height: auto;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-size: clamp(0.6875rem, 1.1vh, 0.8125rem);
  font-weight: var(--font-weight-medium);
  color: #374151;
}

.dashboard-manage-btn-label {
  line-height: 1;
}

.dashboard-manage-btn:hover {
  border-color: #d1d5db;
  color: #374151;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.dashboard-manage-btn svg {
  width: clamp(16px, 2.2vh, 20px);
  height: clamp(16px, 2.2vh, 20px);
}

.dashboard-page-title {
  margin: 0;
  font-size: clamp(1rem, 2.2vh, 1.5rem);
  font-weight: var(--font-weight-semibold);
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.dashboard-page-subtitle {
  margin: 0.15rem 0 0;
  font-size: clamp(0.6875rem, 1.2vh, 0.875rem);
  color: #6b7280;
  line-height: 1.25;
}

/* KPI — dashboard içinde küçülür, 6 sütun korunur */
#dashboard-workspace .kpi-grid {
  flex-shrink: 0;
  margin: 0;
  gap: clamp(0.35rem, 0.7vw, 0.75rem);
}

#dashboard-workspace .kpi-grid--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

#dashboard-workspace .kpi-card {
  min-height: clamp(52px, 9.5vh, 96px);
  padding: clamp(0.4rem, 0.85vh, 0.875rem);
  padding-right: calc(clamp(0.4rem, 0.85vh, 0.875rem) + clamp(2.5rem, 5vh, 4.5rem) + 0.4rem);
  border-radius: clamp(8px, 1.2vh, 12px);
}

#dashboard-workspace .kpi-card-label {
  font-size: clamp(0.625rem, 1.1vh, 0.75rem);
}

#dashboard-workspace .kpi-card-value {
  font-size: clamp(0.95rem, 2vh, 1.5rem);
}

#dashboard-workspace .kpi-card-trend {
  font-size: clamp(0.625rem, 1vh, 0.75rem);
}

#dashboard-workspace .kpi-card-icon-wrap {
  top: clamp(0.4rem, 0.85vh, 0.875rem);
  right: clamp(0.4rem, 0.85vh, 0.875rem);
  bottom: clamp(0.4rem, 0.85vh, 0.875rem);
  border-radius: clamp(8px, 1.2vh, 12px);
}

/* 2 satır grid — birleşik 4×2 widget yerleşimi (display, .dash-grid sonrasında) */
.dash-grid-cell--span-2x1 {
  grid-column: span 2;
}

.dash-grid-cell--span-1x2 {
  grid-row: span 2;
}

.dash-grid-cell--span-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.dash-widget-resize-handles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.dash-widget-resize-handle {
  position: absolute;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.12s;
}

.dash-widget-wrap:hover .dash-widget-resize-handle,
.dash-widget-wrap.is-resizing .dash-widget-resize-handle {
  opacity: 1;
}

.dash-widget-resize-handle--e {
  top: 20%;
  right: -3px;
  width: 8px;
  height: 60%;
  cursor: ew-resize;
}

.dash-widget-resize-handle--s {
  left: 20%;
  bottom: -3px;
  width: 60%;
  height: 8px;
  cursor: ns-resize;
}

.dash-widget-resize-handle--se {
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  border-radius: 0 0 10px 0;
  background: linear-gradient(135deg, transparent 50%, rgba(37, 99, 235, 0.35) 50%);
}

.dash-grid-cell[data-dash-resize-preview="2x1"] {
  outline: 2px dashed #93c5fd;
  outline-offset: -2px;
}

.dash-grid-cell[data-dash-resize-preview="1x2"] {
  outline: 2px dashed #93c5fd;
  outline-offset: -2px;
}

.dash-grid-cell[data-dash-resize-preview="2x2"] {
  outline: 2px dashed #2563eb;
  outline-offset: -2px;
}

body.dash-widget-resizing {
  user-select: none;
  cursor: nwse-resize;
}

.dash-grid-cell--span-2x1 .dash-kanban-col-body .dash-kanban-card:nth-child(n + 3) {
  display: flex;
}

.dash-grid-cell--span-2x1 .dash-kanban-col-body .dash-kanban-card:nth-child(n + 4) {
  display: none;
}

.dash-grid-cell--span-2x2 .dash-kanban-col-body .dash-kanban-card:nth-child(n + 3) {
  display: flex;
}

.dash-grid-cell--span-2x2 .dash-kanban-col-body .dash-kanban-card:nth-child(n + 5) {
  display: none;
}

.dash-grid-cell--span-2x1 .dash-priority-item:nth-child(n + 4) {
  display: flex;
}

.dash-grid-cell--span-2x2 .dash-priority-item:nth-child(n + 4) {
  display: flex;
}

.dash-grid-cell--span-2x2 .dash-priority-item:nth-child(n + 6) {
  display: none;
}

.dash-grid {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 0.75vh, 0.875rem);
  overflow: hidden;
}

.dash-grid.dash-grid--unified {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  flex-direction: unset;
}

.dash-grid-row {
  min-height: 0;
  display: grid;
  gap: clamp(0.35rem, 0.75vh, 0.875rem);
  overflow: hidden;
}

/* 2 satır grid — 4+4 widget slotları */
.dash-grid-row--widgets {
  flex: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Eski sabit grid (geriye dönük) */
.dash-grid-row--top {
  flex: 1.05;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-grid-row--bottom {
  flex: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dash-grid-cell {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dash-grid-cell > .dash-card,
.dash-grid-cell > .dash-widget-wrap {
  flex: 1;
  min-height: 0;
}

.dash-widget-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.dash-widget-wrap > .dash-card {
  flex: 1;
  min-height: 0;
}

.dash-widget-drag-handle {
  position: absolute;
  top: clamp(0.35rem, 0.7vh, 0.5rem);
  right: clamp(0.35rem, 0.7vh, 0.5rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  color: #9ca3af;
  cursor: grab;
  user-select: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid transparent;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.dash-widget-drag-handle svg {
  width: 14px;
  height: 14px;
}

.dash-widget-drag-handle:hover {
  color: #6b7280;
  border-color: #e5e7eb;
  background: #fff;
}

.dash-widget-drag-handle:active {
  cursor: grabbing;
}

/* Başlık sağ aksiyonları sürükle tutamacının solunda kalır */
.dash-widget-wrap .dash-card-header {
  padding-right: 1.85rem;
}

.dash-widget-wrap .dash-card-header--split {
  gap: 0.5rem;
}

.dash-widget-wrap .dash-card-header--split .dash-card-title {
  min-width: 0;
  flex: 1;
}

.dash-widget-wrap .dash-card-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 1;
  min-width: 0;
  max-width: calc(100% - 1.85rem);
}

.dash-grid-cell.is-dragging {
  opacity: 0.55;
}

.dash-grid-cell.is-drop-target,
.dash-quick-slot.is-drop-target {
  outline: 2px dashed #93c5fd;
  outline-offset: 2px;
  border-radius: clamp(10px, 1.4vh, 14px);
}

.dash-grid-cell--empty {
  border: 1px dashed #e5e7eb;
  border-radius: clamp(10px, 1.4vh, 14px);
  background: rgba(249, 250, 251, 0.65);
  align-items: center;
  justify-content: center;
}

.dash-grid-cell--ghost {
  border: 1px dashed transparent;
  background: transparent;
  min-height: 0;
}

.dash-grid-cell--ghost.is-drop-target {
  border-color: #93c5fd;
  background: rgba(239, 246, 255, 0.45);
}

.dash-slot-add {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: clamp(0.6875rem, 1.1vh, 0.8125rem);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  padding: 0.75rem 1rem;
  transition: color 0.12s;
}

.dash-slot-add:hover {
  color: #2563eb;
}

/* Boş panel state */
.dash-empty-state {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vh, 2.5rem);
}

.dash-empty-state-inner {
  text-align: center;
  max-width: 28rem;
}

.dash-empty-state-title {
  margin: 0 0 0.5rem;
  font-size: clamp(0.95rem, 1.8vh, 1.25rem);
  font-weight: var(--font-weight-semibold);
  color: #111827;
}

.dash-empty-state-text {
  margin: 0 0 1rem;
  font-size: clamp(0.75rem, 1.2vh, 0.875rem);
  color: #6b7280;
  line-height: 1.45;
}

.dash-empty-state-cta {
  min-width: 9rem;
}

/* Widget rozetleri */
.dash-widget-mock-badge,
.dash-widget-live-badge {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: var(--font-weight-medium);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  line-height: 1.3;
}

.dash-widget-mock-badge {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.dash-widget-live-badge {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.dash-card {
  background: var(--color-surface);
  border: 1px solid #e8eaed;
  border-radius: clamp(10px, 1.4vh, 14px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: clamp(0.5rem, 1vh, 1rem) clamp(0.55rem, 1.1vh, 1.125rem);
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dash-card-header {
  flex-shrink: 0;
  margin-bottom: clamp(0.35rem, 0.7vh, 0.75rem);
}

.dash-card-header--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dash-card-title {
  margin: 0;
  font-size: clamp(0.75rem, 1.35vh, 0.9375rem);
  font-weight: var(--font-weight-semibold);
  color: #111827;
}

.dash-card-link {
  border: none;
  background: none;
  padding: 0;
  font-size: clamp(0.6875rem, 1.1vh, 0.8125rem);
  font-weight: var(--font-weight-medium);
  color: #2563eb;
  cursor: pointer;
  white-space: nowrap;
}

.dash-card-link:hover {
  text-decoration: underline;
}

.dash-card-link--muted {
  color: #9ca3af;
  cursor: default;
}

.dash-card-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: clamp(0.25rem, 0.5vh, 0.5rem);
}

.dash-card-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: none;
  padding: 0;
  font-size: clamp(0.6875rem, 1.1vh, 0.8125rem);
  font-weight: var(--font-weight-medium);
  color: #2563eb;
  cursor: pointer;
}

.dash-card-footer-link:hover:not(:disabled) {
  text-decoration: underline;
}

.dash-card-footer-link:disabled {
  color: #2563eb;
  opacity: 0.85;
  cursor: default;
}

.dash-card-footer-link-icon {
  display: inline-flex;
  width: 0.85em;
  height: 0.85em;
}

.dash-card-footer-link-icon svg {
  width: 100%;
  height: 100%;
}

.dash-card-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: none;
  padding: 0;
  font-size: clamp(0.6875rem, 1.1vh, 0.8125rem);
  font-weight: var(--font-weight-medium);
  color: #2563eb;
  cursor: pointer;
}

.dash-card-footer-link:hover:not(:disabled) {
  text-decoration: underline;
}

.dash-card-footer-link:disabled {
  color: #9ca3af;
  cursor: default;
}

.dash-card-footer-link-icon {
  display: inline-flex;
  width: 0.85em;
  height: 0.85em;
}

.dash-card-footer-link-icon svg {
  width: 100%;
  height: 100%;
}

.dash-empty {
  margin: 0;
  padding: 0.35rem 0;
  font-size: clamp(0.6875rem, 1.1vh, 0.8125rem);
  color: #9ca3af;
  list-style: none;
}

/* Priorities */
.dash-priority-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.3rem, 0.55vh, 0.5rem);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.dash-priority-item {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  padding: clamp(0.35rem, 0.65vh, 0.625rem) clamp(0.45rem, 0.8vh, 0.75rem);
  border-radius: clamp(6px, 1vh, 10px);
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.dash-priority-item:nth-child(n + 4) {
  display: none;
}

.dash-priority-badge {
  flex-shrink: 0;
  font-size: clamp(0.5625rem, 0.95vh, 0.625rem);
  font-weight: var(--font-weight-semibold);
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dash-priority-item--critical .dash-priority-badge {
  background: #fef2f2;
  color: #dc2626;
}

.dash-priority-item--urgent .dash-priority-badge {
  background: #fff7ed;
  color: #ea580c;
}

.dash-priority-item--important .dash-priority-badge {
  background: #fffbeb;
  color: #d97706;
}

.dash-priority-item--info .dash-priority-badge {
  background: #eff6ff;
  color: #2563eb;
}

.dash-priority-item--low .dash-priority-badge {
  background: #f3f4f6;
  color: #6b7280;
}

.dash-priority-title {
  margin: 0;
  font-size: clamp(0.6875rem, 1.15vh, 0.8125rem);
  font-weight: var(--font-weight-semibold);
  color: #111827;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-priority-detail {
  margin: 0.1rem 0 0;
  font-size: clamp(0.625rem, 1vh, 0.75rem);
  color: #6b7280;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Files table */
.dash-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.625rem, 1.1vh, 0.8125rem);
  table-layout: fixed;
}

.dash-table th {
  text-align: left;
  padding: clamp(0.25rem, 0.5vh, 0.5rem) clamp(0.3rem, 0.55vh, 0.625rem);
  color: #6b7280;
  font-weight: var(--font-weight-medium);
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
  font-size: clamp(0.625rem, 1vh, 0.75rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-table td {
  padding: clamp(0.3rem, 0.55vh, 0.625rem);
  border-bottom: 1px solid #f9fafb;
  color: #374151;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-table tbody tr:nth-child(n + 6) {
  display: none;
}

.dash-files-ref {
  font-weight: var(--font-weight-semibold);
  color: #2563eb;
}

.dash-files-deadline--urgent {
  color: #ea580c;
  font-weight: var(--font-weight-semibold);
}

.dash-file-status {
  display: inline-block;
  font-size: clamp(0.5625rem, 0.95vh, 0.6875rem);
  font-weight: var(--font-weight-semibold);
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  white-space: nowrap;
}

.dash-file-status--missing { background: #fef2f2; color: #dc2626; }
.dash-file-status--processing { background: #eff6ff; color: #2563eb; }
.dash-file-status--pending { background: #fff7ed; color: #ea580c; }
.dash-file-status--draft { background: #f3f4f6; color: #4b5563; }
.dash-file-status--done { background: #ecfdf5; color: #059669; }

.dash-priority-pill {
  display: inline-block;
  font-size: clamp(0.5625rem, 0.95vh, 0.6875rem);
  font-weight: var(--font-weight-semibold);
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  white-space: nowrap;
}

.dash-priority-pill--high { background: #fef2f2; color: #dc2626; }
.dash-priority-pill--medium { background: #fff7ed; color: #ea580c; }
.dash-priority-pill--low { background: #eff6ff; color: #2563eb; }

.dash-files-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: none;
  background: none;
  padding: 0;
  font-size: clamp(0.6875rem, 1.1vh, 0.8125rem);
  font-weight: var(--font-weight-medium);
  color: #2563eb;
  cursor: pointer;
}

.dash-files-view-all:hover { text-decoration: underline; }

.dash-files-view-all-icon {
  display: inline-flex;
  width: clamp(11px, 1.4vh, 14px);
  height: clamp(11px, 1.4vh, 14px);
}

.dash-files-view-all-icon svg { width: 100%; height: 100%; }

/* Kanban */
.dash-kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.3rem, 0.55vh, 0.625rem);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.dash-kanban-col {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dash-kanban-col-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 clamp(0.25rem, 0.45vh, 0.5rem);
  font-size: clamp(0.625rem, 1.05vh, 0.75rem);
  font-weight: var(--font-weight-semibold);
  color: #6b7280;
  flex-shrink: 0;
}

.dash-kanban-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: clamp(0.5625rem, 0.9vh, 0.6875rem);
  font-weight: var(--font-weight-semibold);
}

.dash-kanban-col-body {
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 0.45vh, 0.5rem);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.dash-kanban-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  padding: clamp(0.3rem, 0.55vh, 0.625rem) clamp(0.4rem, 0.7vh, 0.75rem);
  border-radius: clamp(6px, 1vh, 10px);
  border: 1px solid #f3f4f6;
  background: #fafafa;
  flex-shrink: 0;
}

.dash-kanban-col-body .dash-kanban-card:nth-child(n + 3) {
  display: none;
}

.dash-kanban-col--done .dash-kanban-card:nth-child(n + 3) {
  display: none;
}

.dash-kanban-card-main {
  min-width: 0;
  flex: 1;
}

.dash-kanban-priority {
  flex-shrink: 0;
  font-size: clamp(0.5625rem, 0.9vh, 0.625rem);
  font-weight: var(--font-weight-semibold);
  padding: 0.1rem 0.3rem;
  border-radius: 999px;
  white-space: nowrap;
}

.dash-kanban-priority--high { background: #fef2f2; color: #dc2626; }
.dash-kanban-priority--medium { background: #fff7ed; color: #ea580c; }
.dash-kanban-priority--low { background: #eff6ff; color: #2563eb; }

.dash-kanban-title {
  margin: 0;
  font-size: clamp(0.625rem, 1.05vh, 0.75rem);
  font-weight: var(--font-weight-semibold);
  color: #111827;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-kanban-ref {
  margin: 0.1rem 0 0;
  font-size: clamp(0.5625rem, 0.9vh, 0.6875rem);
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-kanban-card--done {
  background: #f9fafb;
  border-color: #f3f4f6;
}

.dash-kanban-check {
  flex-shrink: 0;
  width: clamp(16px, 2.2vh, 22px);
  height: clamp(16px, 2.2vh, 22px);
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-kanban-check svg {
  width: clamp(9px, 1.2vh, 12px);
  height: clamp(9px, 1.2vh, 12px);
}

.dash-kanban-add {
  border: none;
  background: none;
  padding: 0;
  font-size: clamp(0.6875rem, 1.1vh, 0.8125rem);
  font-weight: var(--font-weight-medium);
  color: #9ca3af;
  cursor: not-allowed;
}

/* ——— Görev panosu modalı (Jira tarzı) ——— */
.dash-kb-modal {
  width: min(1320px, 98vw);
  max-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
}

.dash-kb-body {
  overflow: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dash-kb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.dash-kb-date-range {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem;
}

.dash-kb-date-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.6875rem;
  color: #6b7280;
}

.dash-kb-input {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font-size: 0.8125rem;
  color: #111827;
  background: #fff;
  min-width: 0;
}

.dash-kb-input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.dash-kb-add-toggle {
  border: 1px dashed #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}

.dash-kb-add-toggle:hover {
  background: #dbeafe;
}

.dash-kb-add-form {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.85rem;
  background: #f9fafb;
}

.dash-kb-add-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.65rem;
  align-items: end;
}

.dash-kb-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.6875rem;
  color: #6b7280;
}

.dash-kb-field--wide {
  grid-column: 1 / -1;
}

.dash-kb-add-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.dash-kb-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  min-height: 420px;
}

.dash-kb-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.dash-kb-col--pending {
  background: #f8fafc;
}

.dash-kb-col--progress {
  background: #eff6ff;
  border-color: #dbeafe;
}

.dash-kb-col--done {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.dash-kb-col.is-drop-target {
  box-shadow: inset 0 0 0 2px #2563eb;
}

.dash-kb-col-head {
  padding: 0.65rem 0.75rem 0.45rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dash-kb-col-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-semibold);
  color: #374151;
}

.dash-kb-col-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #6b7280;
  font-size: 0.6875rem;
}

.dash-kb-col-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-kb-col-empty {
  margin: 0.5rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

.dash-kb-card {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dash-kb-card.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.dash-kb-card--done {
  background: #fafafa;
  border-color: #e5e7eb;
}

.dash-kb-drag {
  color: #d1d5db;
  font-size: 0.75rem;
  line-height: 1;
  padding-top: 0.1rem;
  user-select: none;
}

.dash-kb-card-main {
  flex: 1;
  min-width: 0;
}

.dash-kb-card-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  line-height: 1.3;
}

.dash-kb-card-ref {
  margin: 0.15rem 0 0;
  font-size: 0.6875rem;
  color: #9ca3af;
}

.dash-kb-card-due {
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  color: #6b7280;
}

.dash-kb-done-check {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-bold);
}

.dash-kb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dash-kb-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: none;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  color: #9ca3af;
  cursor: not-allowed;
}

body.dash-kb-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .dash-kb-board {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dash-kb-add-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .dash-kb-add-grid {
    grid-template-columns: 1fr;
  }

  .dash-kb-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Communications */
.dash-card--comms {
  padding-top: clamp(0.45rem, 0.75vh, 0.75rem);
  padding-bottom: clamp(0.35rem, 0.6vh, 0.625rem);
}

.dash-card--comms .dash-card-header {
  margin-bottom: clamp(0.2rem, 0.4vh, 0.4rem);
}

.dash-card--comms .dash-comm-list {
  flex: 0 0 auto;
  gap: 0;
}

.dash-card--comms .dash-card-footer {
  margin-top: auto;
  padding-top: clamp(0.35rem, 0.6vh, 0.5rem);
  border-top: 1px solid #f3f4f6;
}

.dash-comm-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.dash-comm-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.45rem 0.55rem;
  align-items: start;
  padding: clamp(0.4rem, 0.7vh, 0.6rem) 0;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.dash-comm-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dash-comm-icon {
  flex-shrink: 0;
  width: clamp(28px, 4.2vh, 34px);
  height: clamp(28px, 4.2vh, 34px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-comm-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.dash-comm-icon--portal svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dash-comm-body {
  min-width: 0;
}

.dash-comm-channel-label {
  margin: 0;
  font-size: clamp(0.625rem, 1.05vh, 0.75rem);
  font-weight: var(--font-weight-semibold);
  color: #111827;
  line-height: 1.2;
}

.dash-comm-company {
  margin: 0.08rem 0 0;
  font-size: clamp(0.625rem, 1.05vh, 0.75rem);
  font-weight: var(--font-weight-semibold);
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}

.dash-comm-preview {
  margin: 0.12rem 0 0;
  font-size: clamp(0.5625rem, 0.95vh, 0.6875rem);
  color: #6b7280;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-comm-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.dash-comm-time {
  font-size: clamp(0.5625rem, 0.95vh, 0.6875rem);
  color: #9ca3af;
  line-height: 1.2;
  white-space: nowrap;
}

.dash-comm-ref {
  font-size: clamp(0.5625rem, 0.9vh, 0.6875rem);
  font-weight: var(--font-weight-semibold);
  color: #2563eb;
  background: #eff6ff;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.3;
}

.dash-comm-item:nth-child(n + 4) {
  display: none;
}

/* Donut */
.dash-card--donut {
  padding-top: clamp(0.45rem, 0.75vh, 0.75rem);
  padding-bottom: clamp(0.35rem, 0.6vh, 0.625rem);
}

.dash-card--donut .dash-card-header {
  margin-bottom: clamp(0.2rem, 0.4vh, 0.4rem);
}

.dash-card--donut .dash-donut-layout {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.15rem, 0.35vh, 0.4rem) 0;
}

.dash-donut-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 0.65vh, 0.55rem);
  overflow: hidden;
}

.dash-donut-bars {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: clamp(0.25rem, 0.45vh, 0.4rem);
  padding-top: clamp(0.15rem, 0.3vh, 0.35rem);
}

.dash-donut-bar-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 2.2fr) auto;
  align-items: center;
  gap: 0.35rem 0.4rem;
}

.dash-donut-bar-swatch {
  width: clamp(6px, 0.9vh, 8px);
  height: clamp(6px, 0.9vh, 8px);
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-donut-bar-label {
  font-size: clamp(0.5625rem, 0.95vh, 0.6875rem);
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-donut-bar-track {
  height: clamp(5px, 0.85vh, 7px);
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
}

.dash-donut-bar-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
  transition: width 0.25s ease;
}

.dash-donut-bar-pct {
  font-size: clamp(0.5625rem, 0.9vh, 0.6875rem);
  font-weight: var(--font-weight-medium);
  color: #9ca3af;
  white-space: nowrap;
  min-width: 2.5rem;
  text-align: right;
}

.dash-card--donut .dash-card-footer {
  margin-top: auto;
  padding-top: clamp(0.35rem, 0.6vh, 0.5rem);
  border-top: 1px solid #f3f4f6;
}

.dash-card--world-clocks .dash-card-footer,
.dash-card--weather .dash-card-footer,
.dash-card--national-holidays .dash-card-footer {
  margin-top: auto;
  padding-top: clamp(0.35rem, 0.6vh, 0.5rem);
  border-top: 1px solid #f3f4f6;
}

.dash-donut-layout {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vh, 1rem);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.dash-card--donut .dash-donut-chart {
  width: clamp(92px, 15vh, 118px);
  height: clamp(92px, 15vh, 118px);
}

.dash-donut-chart {
  position: relative;
  width: clamp(72px, 12vh, 120px);
  height: clamp(72px, 12vh, 120px);
  flex-shrink: 0;
}

.dash-donut-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  mask: radial-gradient(circle at center, transparent 56%, #000 57%);
  -webkit-mask: radial-gradient(circle at center, transparent 56%, #000 57%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.dash-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.dash-donut-total {
  font-size: clamp(1rem, 2vh, 1.375rem);
  font-weight: var(--font-weight-semibold);
  color: #111827;
  line-height: 1;
}

.dash-donut-total-label {
  font-size: clamp(0.5625rem, 0.95vh, 0.6875rem);
  color: #9ca3af;
  margin: 0 0 0.12rem;
}

/* AI */
.dash-ai-list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 0.45vh, 0.5rem);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.dash-ai-card {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  padding: clamp(0.35rem, 0.6vh, 0.625rem);
  border-radius: clamp(6px, 1vh, 10px);
  font-size: clamp(0.625rem, 1.05vh, 0.75rem);
  line-height: 1.35;
  color: #374151;
  flex-shrink: 0;
}

.dash-ai-card-body {
  flex: 1;
  min-width: 0;
}

.dash-ai-link {
  display: inline-block;
  margin-top: 0.2rem;
  border: none;
  background: none;
  padding: 0;
  font-size: clamp(0.5625rem, 0.95vh, 0.6875rem);
  font-weight: var(--font-weight-medium);
  color: #2563eb;
  cursor: not-allowed;
  opacity: 0.9;
}

.dash-ai-card:nth-child(n + 4) {
  display: none;
}

.dash-ai-card p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dash-ai-card--warn { background: #fff7ed; border: 1px solid #ffedd5; }
.dash-ai-card--clock { background: #eff6ff; border: 1px solid #dbeafe; }
.dash-ai-card--spark { background: #f5f3ff; border: 1px solid #ede9fe; }

.dash-ai-icon {
  flex-shrink: 0;
  width: clamp(14px, 2vh, 18px);
  height: clamp(14px, 2vh, 18px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-ai-icon svg { width: 100%; height: 100%; }

/* Calendar — dikey timeline */
.dash-cal-timeline {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-left: 0.15rem;
}

.dash-cal-entry {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) auto;
  gap: 0.25rem 0.45rem;
  align-items: start;
  padding: clamp(0.2rem, 0.4vh, 0.35rem) 0 clamp(0.2rem, 0.4vh, 0.35rem) 0.65rem;
  position: relative;
  border-left: 2px solid #e5e7eb;
  flex-shrink: 0;
}

.dash-cal-entry::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: 2px solid #fff;
  box-sizing: border-box;
}

.dash-cal-entry:last-child {
  border-left-color: transparent;
}

.dash-cal-entry--critical::before { background: #ef4444; }
.dash-cal-entry--urgent::before { background: #f97316; }
.dash-cal-entry--important::before { background: #f59e0b; }
.dash-cal-entry--info::before { background: #3b82f6; }
.dash-cal-entry--planned::before { background: #9ca3af; }

.dash-cal-entry:nth-child(n + 6) {
  display: none;
}

.dash-cal-time {
  font-size: clamp(0.625rem, 1.05vh, 0.75rem);
  font-weight: var(--font-weight-semibold);
  color: #6b7280;
  line-height: 1.3;
}

.dash-cal-entry-body {
  min-width: 0;
}

.dash-cal-ref {
  margin: 0;
  font-size: clamp(0.625rem, 1.05vh, 0.75rem);
  font-weight: var(--font-weight-semibold);
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-cal-title {
  margin: 0;
  font-size: clamp(0.625rem, 1.05vh, 0.75rem);
  font-weight: var(--font-weight-medium);
  color: #4b5563;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-cal-ref + .dash-cal-title {
  margin-top: 0.05rem;
}

.dash-cal-sub {
  margin: 0.05rem 0 0;
  font-size: clamp(0.5625rem, 0.95vh, 0.6875rem);
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-cal-badge {
  flex-shrink: 0;
  font-size: clamp(0.5rem, 0.85vh, 0.625rem);
  font-weight: var(--font-weight-semibold);
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.3;
}

.dash-cal-badge--critical {
  color: #dc2626;
  background: #fef2f2;
}

.dash-cal-badge--urgent {
  color: #ea580c;
  background: #fff7ed;
}

.dash-cal-badge--important {
  color: #d97706;
  background: #fffbeb;
}

.dash-cal-badge--info {
  color: #2563eb;
  background: #eff6ff;
}

.dash-cal-badge--planned {
  color: #6b7280;
  background: #f3f4f6;
}

/* Quick actions — alt sabit, scroll yok */
.dash-quick-actions--sticky {
  flex-shrink: 0;
  margin-top: 0;
  padding: clamp(0.35rem, 0.65vh, 0.65rem) clamp(0.55rem, 1.4vw, 1.75rem) clamp(0.35rem, 0.6vh, 0.65rem);
  background: var(--color-workspace);
  border-top: 1px solid #e8eaed;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.05);
  z-index: 20;
}

.dash-quick-actions--filled {
  display: flex;
  flex-direction: column;
  gap: clamp(0.1rem, 0.2vh, 0.15rem);
  padding: clamp(0.3rem, 0.5vh, 0.45rem) clamp(0.55rem, 1.4vw, 1.75rem) clamp(0.4rem, 0.65vh, 0.55rem);
}

.dash-quick-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 0;
  line-height: 1;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dash-quick-toolbar-label {
  font-size: clamp(0.625rem, 1vh, 0.6875rem);
  font-weight: var(--font-weight-semibold);
  color: #9ca3af;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dash-quick-toolbar-btn {
  padding: 0.25rem 0.55rem !important;
  font-size: clamp(0.625rem, 1vh, 0.6875rem) !important;
  gap: 0.3rem !important;
}

.dash-quick-toolbar-btn svg {
  width: 12px !important;
  height: 12px !important;
}

.dash-quick-actions--filled .dash-quick-grid {
  gap: clamp(0.45rem, 0.8vh, 0.875rem);
}

.dash-quick-actions--filled .dash-quick-btn {
  min-height: clamp(76px, 12vh, 128px);
  grid-template-columns: minmax(0, 1fr) clamp(4rem, 11vw, 6.25rem);
}

.dash-quick-actions--filled .dash-quick-btn-content {
  padding: clamp(0.7rem, 1.1vh, 1.125rem) clamp(0.65rem, 1vh, 1rem);
  padding-top: calc(clamp(0.7rem, 1.1vh, 1.125rem) + 0.1rem);
}

.dash-quick-actions--filled .dash-quick-label {
  font-size: clamp(0.75rem, 1.25vh, 0.9375rem);
  line-height: 1.2;
}

.dash-quick-actions--filled .dash-quick-sub {
  font-size: clamp(0.6875rem, 1.05vh, 0.8125rem);
  line-height: 1.25;
}

.dash-quick-actions--filled .dash-quick-icon svg {
  width: clamp(26px, 4vh, 40px);
  height: clamp(26px, 4vh, 40px);
}

.dash-quick-actions--filled .dash-quick-drag-handle {
  top: 0.3rem;
  left: 0.35rem;
  right: auto;
}

.dash-quick-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: clamp(0.35rem, 0.65vh, 0.75rem);
  flex-shrink: 0;
}

.dash-quick-actions--empty .dash-quick-header {
  margin-bottom: 0;
}

.dash-quick-body {
  min-height: 0;
}

.dash-quick-actions--empty .dash-quick-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(88px, 12vh, 140px);
  padding: clamp(0.5rem, 1.2vh, 1rem) 0;
}

.dash-quick-empty-state {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-quick-empty-state-inner {
  text-align: center;
  max-width: 28rem;
}

.dash-quick-empty-state-title {
  margin: 0 0 0.5rem;
  font-size: clamp(0.875rem, 1.5vh, 1.0625rem);
  font-weight: var(--font-weight-semibold);
  color: #111827;
}

.dash-quick-empty-state-text {
  margin: 0 0 1rem;
  font-size: clamp(0.75rem, 1.2vh, 0.875rem);
  color: #6b7280;
  line-height: 1.45;
}

.dash-quick-actions--empty {
  display: flex;
  flex-direction: column;
  min-height: clamp(120px, 16vh, 180px);
}

.dash-quick-title {
  margin: 0;
  font-size: clamp(0.75rem, 1.3vh, 0.9375rem);
  font-weight: var(--font-weight-semibold);
  color: #374151;
}

.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.4rem, 0.75vh, 0.875rem);
}

.dash-quick-slot {
  min-width: 0;
}

.dash-quick-btn[draggable="true"] {
  cursor: grab;
}

.dash-quick-btn[draggable="true"]:active {
  cursor: grabbing;
}

.dash-quick-slot--draggable {
  cursor: grab;
}

.dash-quick-slot--draggable:active {
  cursor: grabbing;
}

.dash-quick-slot.is-dragging {
  opacity: 0.55;
}

.dash-quick-slot--empty {
  min-height: clamp(72px, 11vh, 120px);
  border: 1px dashed #e8eaed;
  border-radius: clamp(10px, 1.4vh, 14px);
  background: rgba(249, 250, 251, 0.45);
}

.dash-quick-actions--filled .dash-quick-slot--empty {
  min-height: clamp(76px, 12vh, 128px);
}

.dash-quick-slot--empty.is-drop-target {
  border-color: #93c5fd;
  background: rgba(239, 246, 255, 0.55);
}

.dash-quick-btn {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(3.5rem, 9vw, 5.5rem);
  align-items: stretch;
  width: 100%;
  min-height: clamp(72px, 11vh, 120px);
  padding: 0;
  border: 1px solid #e8eaed;
  border-radius: clamp(10px, 1.4vh, 14px);
  background: var(--color-surface);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dash-quick-btn-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.2rem, 0.35vh, 0.4rem);
  min-width: 0;
  padding: clamp(0.65rem, 1vh, 1.125rem) clamp(0.65rem, 1.1vh, 1.25rem);
  padding-top: calc(clamp(0.65rem, 1vh, 1.125rem) + 0.15rem);
}

.dash-quick-drag-handle {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: -0.08em;
  color: #c4c9d2;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  padding: 0.15rem;
}

.dash-quick-drag-handle:hover {
  color: #9ca3af;
}

.dash-quick-btn:not(:disabled):hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.dash-quick-btn:disabled,
.dash-quick-btn--soon {
  opacity: 0.72;
  cursor: not-allowed;
}

.dash-quick-btn--soon {
  border-style: dashed;
}

.dash-quick-icon {
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  border-radius: 0;
  border-top-right-radius: clamp(9px, 1.3vh, 13px);
  border-bottom-right-radius: clamp(9px, 1.3vh, 13px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-quick-icon svg {
  width: clamp(22px, 3.5vh, 36px);
  height: clamp(22px, 3.5vh, 36px);
}

.dash-quick-icon--blue { background: #eff6ff; color: #2563eb; }
.dash-quick-icon--purple { background: #f5f3ff; color: #7c3aed; }
.dash-quick-icon--green { background: #ecfdf5; color: #059669; }
.dash-quick-icon--amber { background: #fffbeb; color: #d97706; }
.dash-quick-icon--violet { background: #ede9fe; color: #6d28d9; }

.dash-quick-label {
  font-size: clamp(0.6875rem, 1.2vh, 0.875rem);
  font-weight: var(--font-weight-semibold);
  color: #111827;
  line-height: 1.2;
}

.dash-quick-sub {
  font-size: clamp(0.625rem, 1vh, 0.75rem);
  color: #9ca3af;
  line-height: 1.2;
}

/* Detaylı evrak raporu modal */
.doc-report-modal {
  width: min(920px, 92vw);
  max-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
}

.doc-report-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  overflow: hidden;
}

.doc-report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.doc-report-kpi {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #f3f4f6;
  background: #fafafa;
}

.doc-report-kpi-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.doc-report-kpi-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.doc-report-kpi-label {
  font-size: 0.6875rem;
  color: #6b7280;
  line-height: 1.2;
}

.doc-report-kpi-value {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  line-height: 1.1;
}

.doc-report-kpi-pct {
  font-size: 0.6875rem;
  color: #9ca3af;
}

.doc-report-donut-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.doc-report-donut-chart {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.doc-report-donut-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  mask: radial-gradient(circle at center, transparent 56%, #000 57%);
  -webkit-mask: radial-gradient(circle at center, transparent 56%, #000 57%);
}

.doc-report-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.doc-report-donut-total-label {
  font-size: 0.6875rem;
  color: #9ca3af;
  margin-bottom: 0.15rem;
}

.doc-report-donut-total {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  line-height: 1;
}

.doc-report-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

.doc-report-legend-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
}

.doc-report-legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.doc-report-legend-label {
  color: #374151;
}

.doc-report-legend-value {
  font-weight: var(--font-weight-semibold);
  color: #111827;
}

.doc-report-legend-pct {
  color: #9ca3af;
  min-width: 3rem;
  text-align: right;
}

.doc-report-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.doc-report-filter {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.doc-report-filter:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.doc-report-filter.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

.doc-report-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
}

.doc-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.doc-report-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9fafb;
  text-align: left;
  padding: 0.55rem 0.75rem;
  font-weight: var(--font-weight-semibold);
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.doc-report-table tbody td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  color: #111827;
}

.doc-report-table tbody tr:last-child td {
  border-bottom: none;
}

.doc-report-row {
  cursor: pointer;
  transition: background 0.12s;
}

.doc-report-row:hover,
.doc-report-row:focus-visible {
  background: #f8fafc;
  outline: none;
}

.doc-report-table thead th.doc-report-num-head,
.doc-report-num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.doc-report-num--missing {
  color: #dc2626;
  font-weight: var(--font-weight-semibold);
}

.doc-report-num--failed {
  color: #d97706;
  font-weight: var(--font-weight-semibold);
}

.doc-report-action {
  color: #2563eb;
  text-align: right;
  width: 1.5rem;
}

.doc-report-empty-row td {
  text-align: center;
  color: #9ca3af;
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .doc-report-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-report-donut-block {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Yükseklik / genişlik — daha fazla içerik göster */
@media (min-height: 860px) {
  .dash-priority-item:nth-child(n + 4) { display: flex; }
  .dash-priority-item:nth-child(n + 5) { display: none; }
  .dash-kanban-col-body .dash-kanban-card:nth-child(n + 3) { display: flex; }
  .dash-kanban-col-body .dash-kanban-card:nth-child(n + 4) { display: none; }
}

@media (min-height: 980px) {
  .dash-table tbody tr:nth-child(n + 6) { display: table-row; }
  .dash-table tbody tr:nth-child(n + 7) { display: none; }
  .dash-comm-item:nth-child(n + 4) { display: grid; }
  .dash-ai-card:nth-child(n + 4) { display: flex; }
  .dash-cal-entry:nth-child(n + 6) { display: grid; }
}

/* Dar ekran — sütunları koru, küçült */
@media (max-width: 1400px) {
  #dashboard-workspace .kpi-grid--six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  #dashboard-workspace .kpi-grid,
  #dashboard-workspace .kpi-grid--six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  #dashboard-workspace .kpi-grid--six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .dash-quick-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-height: 720px) {
  .dashboard-page-subtitle {
    display: none;
  }

  .dash-quick-actions--empty .dash-quick-btn,
  .dash-quick-actions:not(.dash-quick-actions--filled) .dash-quick-btn {
    min-height: clamp(56px, 8.5vh, 72px);
  }

  .dash-quick-actions--filled .dash-quick-btn {
    min-height: clamp(64px, 10vh, 96px);
    grid-template-columns: minmax(0, 1fr) clamp(3.25rem, 9vw, 5rem);
  }
}

@media (max-height: 640px) {
  .dash-table th:nth-child(3),
  .dash-table td:nth-child(3) {
    display: none;
  }
}

/* ——— İşlem hacmi widget ——— */
.dash-tv-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.35rem, 0.65vh, 0.75rem);
  flex: 1;
  min-height: 0;
}

.dash-tv-metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: clamp(0.35rem, 0.65vh, 0.5rem);
  border-radius: 8px;
  background: #f9fafb;
}

.dash-tv-metric-label {
  font-size: clamp(0.6rem, 1vh, 0.6875rem);
  color: #6b7280;
}

.dash-tv-metric-value {
  font-size: clamp(0.85rem, 1.6vh, 1.125rem);
  font-weight: var(--font-weight-semibold);
  color: #111827;
}

.dash-tv-metric-delta {
  font-size: clamp(0.6rem, 1vh, 0.6875rem);
  color: #6b7280;
}

.dash-tv-metric-delta--up {
  color: #059669;
}

/* ——— Dünya saatleri ——— */
.dash-clock-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 0.5vh, 0.5rem);
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.dash-clock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: clamp(0.3rem, 0.55vh, 0.45rem) 0;
  border-bottom: 1px solid #f3f4f6;
}

.dash-clock-row:last-child {
  border-bottom: none;
}

.dash-clock-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash-clock-country {
  font-size: clamp(0.6875rem, 1.15vh, 0.8125rem);
  font-weight: var(--font-weight-medium);
  color: #111827;
}

.dash-clock-city {
  font-size: clamp(0.6rem, 1vh, 0.6875rem);
  color: #9ca3af;
}

.dash-clock-time {
  font-size: clamp(0.8rem, 1.4vh, 1rem);
  font-weight: var(--font-weight-semibold);
  font-variant-numeric: tabular-nums;
  color: #2563eb;
}

/* ——— Hava durumu ——— */
.dash-weather-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 0.5vh, 0.5rem);
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.dash-weather-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.3rem, 0.55vh, 0.45rem) 0;
  border-bottom: 1px solid #f3f4f6;
}

.dash-weather-row:last-child {
  border-bottom: none;
}

.dash-weather-icon {
  font-size: clamp(1rem, 1.8vh, 1.25rem);
  line-height: 1;
  flex-shrink: 0;
}

.dash-weather-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dash-weather-country {
  font-size: clamp(0.6875rem, 1.15vh, 0.8125rem);
  font-weight: var(--font-weight-medium);
  color: #111827;
}

.dash-weather-cond {
  font-size: clamp(0.6rem, 1vh, 0.6875rem);
  color: #9ca3af;
}

.dash-weather-temp {
  font-size: clamp(0.8rem, 1.4vh, 1rem);
  font-weight: var(--font-weight-semibold);
  color: #111827;
}

/* ——— Ülke özel günleri ——— */
.dash-holiday-groups {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 0.65vh, 0.75rem);
}

.dash-holiday-group {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #f3f4f6;
}

.dash-holiday-group:last-child {
  border-bottom: none;
}

.dash-holiday-country {
  margin: 0 0 0.25rem;
  font-size: clamp(0.6875rem, 1.1vh, 0.8125rem);
  font-weight: var(--font-weight-semibold);
  color: #374151;
}

.dash-holiday-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dash-holiday-item {
  display: flex;
  gap: 0.5rem;
  font-size: clamp(0.625rem, 1vh, 0.75rem);
  padding: 0.15rem 0;
  color: #4b5563;
}

.dash-holiday-date {
  flex-shrink: 0;
  font-weight: var(--font-weight-medium);
  color: #2563eb;
  min-width: 2.75rem;
}

.dash-holiday-name {
  min-width: 0;
}

.dash-holiday-item--empty {
  color: #9ca3af;
  font-style: italic;
}

/* ——— En iyi müşteriler widget ——— */
.dash-top-customer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.dash-top-customer-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.dash-top-customer-row:last-child {
  border-bottom: none;
}

.dash-top-customer-rank {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  margin-top: 0.05rem;
}

.dash-top-customer-row:nth-child(1) .dash-top-customer-rank {
  background: #fef3c7;
  color: #92400e;
}

.dash-top-customer-row:nth-child(2) .dash-top-customer-rank {
  background: #f3f4f6;
  color: #374151;
}

.dash-top-customer-row:nth-child(3) .dash-top-customer-rank {
  background: #ffedd5;
  color: #9a3412;
}

.dash-top-customer-main {
  flex: 1;
  min-width: 0;
}

.dash-top-customer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.dash-top-customer-name {
  font-size: clamp(0.6875rem, 1.1vh, 0.8125rem);
  font-weight: var(--font-weight-medium);
  color: #111827;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-top-customer-amount {
  flex-shrink: 0;
  font-size: clamp(0.6875rem, 1.1vh, 0.8125rem);
  font-weight: var(--font-weight-semibold);
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.dash-top-customer-bar-track {
  height: 4px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
  margin-bottom: 0.2rem;
}

.dash-top-customer-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
}

.dash-top-customer-meta {
  font-size: 0.625rem;
  color: #9ca3af;
}

.dash-card--top-customers .dash-card-footer {
  margin-top: auto;
  padding-top: clamp(0.35rem, 0.6vh, 0.5rem);
  border-top: 1px solid #f3f4f6;
}

/* ——— Widget yönetim modalı ——— */
.dash-wm-modal {
  width: min(840px, 94vw);
  max-height: min(90vh, 760px);
  display: flex;
  flex-direction: column;
}

.dash-wm-header .new-case-modal-header-text {
  flex: 1;
  min-width: 0;
}

.dash-wm-segments {
  display: inline-flex;
  gap: 0.25rem;
  margin-top: 0.85rem;
  padding: 0.2rem;
  background: #f3f4f6;
  border-radius: 999px;
}

.dash-wm-segment {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  color: #6b7280;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
}

.dash-wm-segment.is-active {
  color: #1d4ed8;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.dash-wm-segment-count {
  font-size: 0.6875rem;
  color: #9ca3af;
  margin-left: 0.35rem;
}

.dash-wm-segment.is-active .dash-wm-segment-count {
  color: #60a5fa;
}

.dash-wm-body {
  overflow: auto;
  flex: 1;
  min-height: 0;
  padding-top: 0.25rem;
}

.dash-wm-toolbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.dash-wm-search {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.dash-wm-search:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.dash-wm-search-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.dash-wm-search-icon svg {
  width: 100%;
  height: 100%;
}

.dash-wm-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  color: #111827;
  outline: none;
}

.dash-wm-search-input::placeholder {
  color: #9ca3af;
}

.dash-wm-progress {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.dash-wm-progress-count {
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: #111827;
}

.dash-wm-progress-label {
  font-size: 0.75rem;
  color: #6b7280;
}

.dash-wm-progress-bar {
  width: 4.5rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.dash-wm-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.18s ease;
}

.dash-wm-lead {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.45;
}

.dash-wm-section + .dash-wm-section {
  margin-top: 1rem;
}

.dash-wm-section-title {
  margin: 0 0 0.55rem;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-wm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.dash-wm-card {
  position: relative;
  appearance: none;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem 0.85rem 0.75rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 7.25rem;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s, transform 0.12s;
}

.dash-wm-card:hover:not(.is-disabled) {
  border-color: #d1d5db;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.dash-wm-card.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.dash-wm-card.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.dash-wm-card.is-coming-soon:not(.is-disabled) {
  border-style: dashed;
}

.dash-wm-card.is-coming-soon.is-selected {
  border-style: solid;
}

.dash-wm-card-check {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.dash-wm-card-check svg {
  width: 0.75rem;
  height: 0.75rem;
}

.dash-wm-card.is-selected .dash-wm-card-check {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.dash-wm-card-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-wm-card-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.dash-wm-card-icon--blue {
  color: #2563eb;
  background: #eff6ff;
}

.dash-wm-card-icon--amber {
  color: #d97706;
  background: #fffbeb;
}

.dash-wm-card-icon--green {
  color: #059669;
  background: #ecfdf5;
}

.dash-wm-card-icon--violet {
  color: #7c3aed;
  background: #f5f3ff;
}

.dash-wm-card-icon--purple {
  color: #9333ea;
  background: #faf5ff;
}

.dash-wm-card-icon--sky {
  color: #0284c7;
  background: #f0f9ff;
}

.dash-wm-card-icon--rose {
  color: #e11d48;
  background: #fff1f2;
}

.dash-wm-card-title {
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  padding-right: 1.75rem;
  line-height: 1.3;
}

.dash-wm-card-desc {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

.dash-wm-card-meta {
  margin-top: auto;
  font-size: 0.6875rem;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.dash-wm-empty {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #9ca3af;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
}

.dash-wm-soon {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: var(--font-weight-medium);
  color: #92400e;
  background: #fffbeb;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.dash-wm-country-config {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid #dbeafe;
  width: 100%;
}

.dash-wm-country-empty {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.dash-wm-country-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.dash-wm-country-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.dash-wm-country-add-btn {
  width: 100%;
  font-size: 0.8125rem;
  padding: 0.4rem 0.75rem;
}

.dash-wm-country-add-btn {
  width: 100%;
  font-size: 0.8125rem;
  padding: 0.4rem 0.75rem;
}

.dash-wm-country-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dash-wm-country-chip {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 0.6875rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.dash-wm-country-chip.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.dash-wm-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dash-wm-footer-meta {
  font-size: 0.8125rem;
  color: #6b7280;
}

.dash-wm-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .dash-wm-grid {
    grid-template-columns: 1fr;
  }

  .dash-wm-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-wm-progress {
    justify-content: space-between;
    width: 100%;
  }

  .dash-wm-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-wm-footer-actions {
    justify-content: flex-end;
  }
}

body.dash-wm-open {
  overflow: hidden;
}

/* ——— Hızlı işlem yönetim modalı ——— */
.dash-qam-modal {
  width: min(560px, 92vw);
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
}

.dash-qam-body {
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.dash-qam-footer {
  flex-shrink: 0;
}

body.dash-qam-open {
  overflow: hidden;
}

/* ——— İşlem hacmi detay modalı ——— */
.dash-tv-modal {
  width: min(640px, 92vw);
  max-height: min(92vh, 780px);
  display: flex;
  flex-direction: column;
}

.dash-tv-modal-body {
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.dash-tv-modal-note {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.dash-tv-modal-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.dash-tv-kpi-blocks {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.dash-tv-kpi-block {
  margin: 0;
}

.dash-tv-kpi-block-title {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-tv-modal-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 0.6875rem;
  color: #6b7280;
}

.dash-tv-modal-kpi strong {
  font-size: 0.9375rem;
  color: #111827;
}

.dash-tv-charts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dash-tv-chart-section {
  margin: 0;
}

.dash-tv-chart-title {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-semibold);
  color: #374151;
}

.dash-tv-chart-desc {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  color: #9ca3af;
}

.dash-tv-chart-empty {
  margin: 0;
  padding: 1.25rem 0.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.dash-activity-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: var(--font-weight-medium);
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.dash-tv-line-wrap {
  position: relative;
  width: 100%;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  padding: 0.35rem 0.25rem 0.15rem;
}

.dash-tv-line-tooltip {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -100%);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.dash-tv-line-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: #111827;
  transform: translateX(-50%) rotate(45deg);
}

.dash-tv-line-tooltip[hidden] {
  display: none;
}

.dash-tv-line-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 140px;
}

.dash-tv-line-point {
  cursor: pointer;
}

.dash-tv-line-hit {
  fill: transparent;
  stroke: transparent;
}

.dash-tv-line-point:hover .dash-tv-line-dot {
  r: 4.5;
  stroke-width: 2.5;
}

.dash-tv-line-grid {
  stroke: #f3f4f6;
  stroke-width: 1;
}

.dash-tv-line-path {
  fill: none;
  stroke: #2563eb;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-tv-line-dot {
  fill: #fff;
  stroke: #2563eb;
  stroke-width: 2;
  transition: r 0.12s ease, stroke-width 0.12s ease;
}

.dash-tv-line-label {
  fill: #9ca3af;
  font-size: 10px;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

body.dash-tv-modal-open {
  overflow: hidden;
}

/* ——— Ülke seçim popup ——— */
.dash-country-picker-backdrop {
  z-index: 220;
}

.dash-country-picker-modal {
  width: min(480px, 92vw);
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
}

.dash-country-picker-body {
  overflow: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dash-country-picker-search-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-country-picker-search-label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  color: #374151;
}

.dash-country-picker-search {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #111827;
  background: #fff;
}

.dash-country-picker-search:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.dash-country-picker-results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.dash-country-picker-result {
  border-bottom: 1px solid #f3f4f6;
}

.dash-country-picker-result:last-child {
  border-bottom: none;
}

.dash-country-picker-result-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}

.dash-country-picker-result-btn:hover {
  background: #f9fafb;
}

.dash-country-picker-result-label {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: #111827;
}

.dash-country-picker-result-meta {
  font-size: 0.6875rem;
  color: #9ca3af;
}

.dash-country-picker-no-results,
.dash-country-picker-empty {
  margin: 0;
  font-size: 0.8125rem;
  color: #9ca3af;
  font-style: italic;
}

.dash-country-picker-selected-block {
  width: 100%;
  padding-top: 0;
  border-top: none;
}

.dash-country-picker-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.dash-country-picker-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  width: 100%;
}

.dash-country-picker-selected-label {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dash-country-picker-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dash-country-picker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.25rem 0.35rem 0.25rem 0.55rem;
  border-radius: 999px;
}

.dash-country-picker-badge-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #60a5fa;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
}

.dash-country-picker-badge-remove:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

body.dash-country-picker-open {
  overflow: hidden;
}

body.dash-country-picker-open.dash-wm-open {
  overflow: hidden;
}

/* Mobil — widget grid */
@media (max-width: 1100px) {
  .dash-grid.dash-grid--unified {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .dash-grid-cell--span-2x1,
  .dash-grid-cell--span-2x2 {
    grid-column: span 1;
    grid-row: span 1;
  }

  .dash-widget-resize-handles {
    display: none;
  }

  .dash-grid-row--widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dash-grid-row--widgets {
    grid-template-columns: 1fr;
  }

  .dash-tv-modal-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
