/* Daily Feedback — operational workspace, not a landing page. */

.gm-df-page {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 0 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  overflow-x: clip;
}

.gm-df-hero,
.gm-df-toolbar,
.gm-df-section,
.gm-df-group,
.gm-df-kpis-wrap {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  border-radius: 1rem;
  min-width: 0;
  box-shadow: var(--shadow-sm, 0 8px 24px rgba(11, 37, 89, .06));
}

.gm-df-hero {
  overflow: hidden;
}

.gm-df-hero-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
}

@media (min-width: 1024px) {
  .gm-df-hero-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.gm-df-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: hsl(var(--primary));
}

.gm-df-hero-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gm-df-hero h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .gm-df-hero h1 { font-size: 1.45rem; }
}

.gm-df-hero-copy p {
  margin: 4px 0 0;
  max-width: 40rem;
  font-size: 13px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  line-height: 1.45;
}

.gm-df-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0 16px 14px;
  font-size: 12px;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.gm-df-review,
.gm-df-chip,
.gm-df-meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  background: hsl(var(--background));
  max-width: 100%;
  min-width: 0;
}

.gm-df-review.is-reviewed,
.gm-df-review.is-approved {
  background: hsl(152 60% 94%);
  color: hsl(152 70% 24%);
  border-color: hsl(152 50% 72%);
}
.gm-df-review.is-in_review,
.gm-df-review.is-updated {
  background: hsl(32 96% 92%);
  color: hsl(20 80% 28%);
  border-color: hsl(32 90% 72%);
}
.gm-df-review.is-returned {
  background: hsl(0 86% 94%);
  color: hsl(0 70% 32%);
  border-color: hsl(0 80% 76%);
}
.gm-df-review.is-draft {
  background: hsl(214 90% 94%);
  color: hsl(221 70% 36%);
  border-color: hsl(214 80% 76%);
}

.gm-df-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  position: relative;
}

.gm-df-toolbar {
  padding: 12px;
}

.gm-df-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.gm-df-seg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / .35);
}

.gm-df-seg-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: hsl(var(--muted-foreground));
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.gm-df-seg-btn:hover {
  background: hsl(var(--background) / .8);
  color: hsl(var(--foreground));
}

.gm-df-seg-btn.is-on {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.gm-df-input {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  min-width: 0;
  max-width: 100%;
  height: 40px;
}

.gm-df-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 4px 0;
  align-items: center;
}

.gm-df-chip.is-reset,
.gm-df-textbtn {
  border: 0;
  cursor: pointer;
  background: transparent;
  color: hsl(var(--primary));
  font-weight: 600;
  font-size: 12px;
}

.gm-df-kpis-wrap { overflow: hidden; }

.gm-df-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.gm-df-kpi {
  text-align: start;
  border: 0;
  border-inline-end: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  background: transparent;
  border-radius: 0;
  padding: 14px 14px 14px 16px;
  min-width: 0;
  min-height: 108px;
  height: 100%;
  cursor: pointer;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  border-inline-start: 3px solid hsl(var(--primary) / .45);
}

.gm-df-kpi[data-key="total"] { border-inline-start-color: hsl(221 70% 42%); }
.gm-df-kpi[data-key="confirmed"],
.gm-df-kpi[data-key="confirmationRate"] { border-inline-start-color: hsl(152 60% 32%); }
.gm-df-kpi[data-key="fulfilled"],
.gm-df-kpi[data-key="fulfillmentRate"] { border-inline-start-color: hsl(199 70% 36%); }
.gm-df-kpi[data-key="delivered"],
.gm-df-kpi[data-key="deliveryRate"] { border-inline-start-color: hsl(162 55% 32%); }
.gm-df-kpi[data-key="returned"],
.gm-df-kpi[data-key="refused"],
.gm-df-kpi[data-key="cancelled"],
.gm-df-kpi[data-key="noAnswer"] { border-inline-start-color: hsl(12 70% 42%); }
.gm-df-kpi[data-key="totalValue"],
.gm-df-kpi[data-key="confirmedSales"],
.gm-df-kpi[data-key="deliveredRevenue"],
.gm-df-kpi[data-key="aov"],
.gm-df-kpi[data-key="upsellValue"] { border-inline-start-color: hsl(38 80% 38%); }

.gm-df-kpi:hover { background: hsl(var(--muted) / .22); }

.gm-df-kpi.is-loading {
  background: hsl(var(--muted) / .45);
  cursor: default;
  min-height: 108px;
}

.gm-df-kpi-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.gm-df-kpi-value {
  display: block;
  margin-top: auto;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.gm-df-kpi-delta {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  font-variant-numeric: tabular-nums;
}

.gm-df-kpi-delta.is-up { color: hsl(152 70% 28%); }
.gm-df-kpi-delta.is-down { color: hsl(350 70% 38%); }

.gm-df-section { padding: 16px; }

.gm-df-section h2,
.gm-df-group-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.gm-df-lede,
.gm-df-note,
.gm-df-empty,
.gm-df-error {
  font-size: 13px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin: 0 0 12px;
  line-height: 1.45;
}

.gm-df-error { color: hsl(350 70% 38%); }

.gm-df-section-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 12px;
}

.gm-df-section-head h2 { margin: 0; }

.gm-df-group {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
  background: hsl(var(--muted) / .12);
}

.gm-df-group-head { min-width: 0; }
.gm-df-group-title { margin: 0; }
.gm-df-group .gm-df-section {
  box-shadow: none;
}

.gm-df-funnel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  overscroll-behavior-x: contain;
}

.gm-df-funnel-step {
  flex: 0 0 148px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  border-radius: 12px;
  padding: 10px 12px;
  text-align: start;
  cursor: pointer;
  min-width: 0;
}

.gm-df-funnel-step:hover { border-color: hsl(var(--primary) / .55); }

.gm-df-funnel-step span {
  font-size: 11px;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.gm-df-funnel-step strong {
  display: block;
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.gm-df-funnel-step small {
  display: block;
  color: hsl(var(--muted-foreground));
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.gm-df-grid-2 { display: grid; gap: 12px; }

.gm-df-finance,
.gm-df-leader,
.gm-df-targets,
.gm-df-summary {
  display: grid;
  gap: 0;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  overflow: hidden;
}

.gm-df-fin-row,
.gm-df-leader > div,
.gm-df-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}

.gm-df-fin-row:last-child,
.gm-df-leader > div:last-child,
.gm-df-summary > div:last-child { border-bottom: 0; }

.gm-df-fin-row b,
.gm-df-leader b,
.gm-df-summary b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.gm-df-table-wrap { overflow-x: auto; max-width: 100%; }

.gm-df-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.gm-df-table th,
.gm-df-table td {
  padding: 10px 12px;
  border-bottom: 1px solid hsl(var(--border));
  white-space: nowrap;
  text-align: start;
}

.gm-df-table th {
  font-size: 11px;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.gm-df-table td {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.gm-df-table [dir="auto"] { unicode-bidi: isolate; }

.gm-df-link {
  border: 0;
  background: none;
  color: hsl(var(--primary));
  font-weight: 600;
  cursor: pointer;
  padding: 0 6px 0 0;
}

.gm-df-agent-cards { display: none; gap: 8px; }

.gm-df-agent-card {
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 12px;
  text-align: start;
  background: hsl(var(--card));
  display: grid;
  gap: 4px;
}

.gm-df-agent-card b { font-weight: 700; }

.gm-df-follow { display: grid; gap: 8px; }

.gm-df-follow-row,
.gm-df-note-card,
.gm-df-alert {
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 6px;
  background: hsl(var(--background));
}

.gm-df-follow-row.is-high,
.gm-df-alert.is-critical {
  border-color: hsl(350 70% 70% / .55);
  background: hsl(350 80% 96%);
}

.gm-df-alert.is-medium {
  border-color: hsl(32 90% 70% / .55);
  background: hsl(32 96% 95%);
}

.gm-df-alert.is-low {
  border-color: hsl(214 80% 76% / .7);
  background: hsl(214 90% 97%);
}

.dark .gm-df-follow-row.is-high,
.dark .gm-df-alert.is-critical { background: hsl(350 40% 16%); }
.dark .gm-df-alert.is-medium { background: hsl(32 30% 16%); }
.dark .gm-df-alert.is-low { background: hsl(214 30% 16%); }

.gm-df-follow-row b,
.gm-df-alert b {
  color: hsl(var(--foreground));
  font-weight: 700;
}

.gm-df-follow-actions,
.gm-df-inline-actions,
.gm-df-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gm-df-follow-actions button,
.gm-df-btn {
  border: 0;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.gm-df-btn-ghost,
.gm-df-alert-actions button {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.gm-df-charts { display: grid; gap: 14px; }

.gm-df-chart-block { min-width: 0; }

.gm-df-chart-block h2 { margin-bottom: 4px; }

.gm-df-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 88px;
}

.gm-df-spark span {
  flex: 1;
  min-width: 4px;
  background: hsl(var(--primary) / .85);
  border-radius: 3px 3px 0 0;
}

.gm-df-spark.is-empty,
.gm-df-muted {
  display: grid;
  place-items: center;
  min-height: 72px;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  font-weight: 500;
}

.gm-df-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.gm-df-target {
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 12px;
  background: hsl(var(--background));
}

.gm-df-target.is-green { background: hsl(152 50% 95%); }
.gm-df-target.is-yellow { background: hsl(42 90% 94%); }
.gm-df-target.is-red { background: hsl(350 80% 96%); }

.gm-df-target b {
  display: block;
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.gm-df-notes { display: grid; gap: 8px; }

.gm-df-modal,
.gm-df-sheet,
.gm-df-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 18, 38, .45);
  display: grid;
  place-items: end center;
}

.gm-df-modal { place-items: center; }

.gm-df-modal-card,
.gm-df-sheet > .gm-df-sheet-body,
.gm-df-drawer-card {
  background: hsl(var(--card));
  width: min(520px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 10px;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm, 0 8px 24px rgba(11, 37, 89, .18));
}

.gm-df-sheet {
  width: 100%;
  border-radius: 16px 16px 0 0;
  place-self: end;
  background: hsl(var(--card));
  padding: 16px;
  display: grid;
  gap: 10px;
  max-height: 88vh;
  overflow: auto;
}

.gm-df-drawer { place-items: stretch end; }

.gm-df-drawer-card {
  height: 100%;
  width: min(440px, 100%);
  border-radius: 0;
}

.gm-df-sheet-head,
.gm-df-drawer-card header,
.gm-df-modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.gm-df-more { display: none; }

.gm-df-desktop-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.gm-df-more-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 180px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: hsl(var(--card));
  box-shadow: var(--shadow-sm, 0 8px 24px rgba(11, 37, 89, .12));
}

.gm-df-search {
  width: min(240px, 100%);
}

.gm-df-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid hsl(var(--border));
}

.gm-df-status.is-on { color: hsl(152 70% 24%); background: hsl(152 60% 94%); }
.gm-df-status.is-risk { color: hsl(32 80% 28%); background: hsl(32 96% 92%); }
.gm-df-status.is-below { color: hsl(350 70% 32%); background: hsl(350 80% 95%); }
.gm-df-status.is-idle { color: hsl(var(--muted-foreground)); }

.gm-df-collapse {
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  color: hsl(var(--primary));
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}

@media (max-width: 767px) {
  .gm-df-filters-desktop { display: none; }
  .gm-df-more { display: inline-flex; }
  .gm-df-desktop-actions { display: none; }
  .gm-df-desktop-table { display: none; }
  .gm-df-agent-cards { display: grid; }
  .gm-df-follow-table { display: none; }
  .gm-df-funnel { flex-direction: column; }
  .gm-df-funnel-step { flex-basis: auto; width: 100%; }
  .gm-df-hero-actions { justify-content: stretch; }
  .gm-df-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 30;
    display: flex;
    gap: 8px;
    padding: 10px 0 4px;
    background: hsl(var(--background));
    border-top: 1px solid hsl(var(--border));
  }
}

@media (min-width: 768px) {
  .gm-df-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gm-df-kpi:nth-child(3n) { border-inline-end: 0; }
  .gm-df-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-df-leader,
  .gm-df-targets,
  .gm-df-summary { grid-template-columns: 1fr; }
  .gm-df-follow-cards { display: none; }
  .gm-df-sticky-actions { display: none; }
}

@media (min-width: 1024px) {
  .gm-df-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gm-df-kpi:nth-child(3n) { border-inline-end: 1px solid hsl(var(--border)); }
  .gm-df-kpi:nth-child(4n) { border-inline-end: 0; }
  .gm-df-grid-2 { grid-template-columns: 1.1fr .9fr; }
  .gm-df-leader,
  .gm-df-targets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-df-leader > div,
  .gm-df-targets > .gm-df-target { border-inline-end: 1px solid hsl(var(--border)); }
}

@media (min-width: 1440px) {
  .gm-df-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gm-df-kpi:nth-child(4n) { border-inline-end: 1px solid hsl(var(--border)); }
  .gm-df-kpi:nth-child(5n) { border-inline-end: 0; }
}

@media (min-width: 1920px) {
  .gm-df-page { max-width: 1920px; }
}

@media (max-width: 429px) {
  .gm-df-kpi { min-height: 104px; padding: 12px; }
  .gm-df-kpi-value { font-size: 1.25rem; }
  .gm-df-hero h1 { font-size: 1.15rem; }
}

.gm-df-col-sec { display: none; }

@media (min-width: 1440px) {
  .gm-df-col-sec { display: table-cell; }
}

html[dir="rtl"] .gm-df-table th,
html[dir="rtl"] .gm-df-table td { text-align: start; }

.gm-df-order-id,
.gm-df-tracking {
  direction: ltr;
  unicode-bidi: isolate;
}

@media print {
  .gm-df-hero-actions,
  .gm-df-toolbar,
  .gm-df-more-menu { display: none !important; }
}
