/* ══════════════════════════════════════════
   DO'S PENDIENTES — Custom styles
   Palette: teal #00a99d / #007f76 / #005f58
   ══════════════════════════════════════════ */

/* ── HEADER ── */
.do-header {
  background: linear-gradient(135deg, #005f58, #007f76, #00a99d);
  box-shadow: 0 4px 20px rgba(0,169,157,0.35);
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.do-header-left  { display: flex; align-items: center; gap: 14px; }
.do-brand        { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.do-header-tag   {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}
.do-header-date  { color: rgba(255,255,255,0.8); font-size: 12px; font-family: 'JetBrains Mono', monospace; }

/* ── TITLE BAND ── */
.do-titleband {
  background: #00a99d;
  border-bottom: 3px solid #007f76;
  padding: 13px 32px;
  text-align: center;
}
.do-titleband h1 {
  font-size: 15px; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 2px;
  margin: 0;
}

/* ── MAIN WRAP ── */
.do-main { padding: 24px 32px; background: #f0fafa; min-height: calc(100vh - 120px); }

/* ── FILTER CARD (MudPaper override) ── */
.do-filter-card {
  background: #fff !important;
  border: 1.5px solid #c2e8e6 !important;
  border-radius: 14px !important;
  padding: 20px 24px !important;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,169,157,0.07) !important;
}
.do-filter-label {
  display: block;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: #6ba3a0; margin-bottom: 4px;
}

/* ── TAB BUTTONS ── */
.do-tabs { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.do-tab-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 30px;
  border: 2px solid #c2e8e6;
  background: #fff;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  cursor: pointer; color: #2a5a57;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.do-tab-btn:hover { border-color: #4dc8c1; color: #007f76; }
.do-tab-active-p  {
  background: linear-gradient(135deg, #005f58, #00a99d);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 14px rgba(0,169,157,0.35);
}
.do-tab-active-f  {
  background: linear-gradient(135deg, #1e6b45, #2a9d6e);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 14px rgba(42,157,110,0.35);
}
.do-tab-active-d  {
  background: linear-gradient(135deg, #92400e, #d97706);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 14px rgba(217,119,6,0.35);
}

/* ── KPI GRID ── */
.do-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 20px;
}
.do-kpi-grid-wide { grid-template-columns: repeat(7, 1fr); }

.do-kpi-card {
  background: #fff;
  border: 1.5px solid #c2e8e6;
  border-radius: 14px;
  padding: 18px 20px;
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.do-kpi-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,169,157,0.15); }
.do-kpi-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  border-radius: 14px 14px 0 0;
}
.do-kpi-teal::before   { background: linear-gradient(90deg, #005f58, #00a99d); }
.do-kpi-green::before  { background: linear-gradient(90deg, #1a5e3f, #2a9d6e); }
.do-kpi-red::before    { background: linear-gradient(90deg, #922b21, #c0392b); }
.do-kpi-amber::before  { background: linear-gradient(90deg, #78350f, #d97706); }

.do-kpi-icon  { font-size: 22px; margin-bottom: 6px; line-height: 1; }
.do-kpi-val   { font-size: 32px; font-weight: 800; color: #005f58; line-height: 1; margin-bottom: 4px; }
.do-kpi-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #6ba3a0; }
.do-kpi-sub   { font-size: 11px; color: #2a5a57; margin-top: 3px; font-weight: 500; }

/* ── TABLE CARD ── */
.do-table-card {
  background: #fff;
  border: 1.5px solid #c2e8e6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,169,157,0.05);
  margin-bottom: 8px;
}
.do-table-header {
  padding: 11px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.do-table-header-p { background: #00a99d; }
.do-table-header-f { background: #2a9d6e; }
.do-table-header-d { background: #d97706; }
.do-table-title { font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.do-table-count { font-size: 11px; color: rgba(255,255,255,0.85); font-family: 'JetBrains Mono', monospace; }
.do-table-wrap  { overflow-x: auto; }

.do-table { width: 100%; border-collapse: collapse; }
.do-table thead tr { background: #e8f7f6; }
.do-table th {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: #007f76; padding: 10px 13px;
  white-space: nowrap;
  border-bottom: 2px solid #8dd4d0; text-align: left;
}
.do-table td {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; color: #0d3533;
  padding: 8px 13px;
  border-bottom: 1px solid rgba(194,232,230,0.5);
  white-space: nowrap;
}
.do-table tr:hover td { background: #e0f5f4; }
.do-table tr:last-child td { border-bottom: none; }
.do-row-num { color: #6ba3a0; font-size: 10px; }

/* ── DO CODE CHIP ── */
.do-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; color: #007f76;
  background: #e8f7f6; border: 1px solid #c2e8e6;
  border-radius: 5px; padding: 2px 8px;
  display: inline-block;
}

/* ── BADGES ── */
.do-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 2px 9px; border-radius: 20px;
}
.do-badge-cumple   { background: rgba(42,157,110,0.12); color: #1e7a56; border: 1px solid rgba(42,157,110,0.3); }
.do-badge-incumple { background: rgba(192,57,43,0.10);  color: #c0392b; border: 1px solid rgba(192,57,43,0.25); }
.do-badge-tramite  { background: rgba(8,145,178,0.10);  color: #0891b2; border: 1px solid rgba(8,145,178,0.25); }
.do-badge-facturado{ background: rgba(42,157,110,0.10); color: #2a9d6e; border: 1px solid rgba(42,157,110,0.25); }

/* ── VAR PILLS ── */
.do-var-pill { display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; }
.do-var-eta    { background: rgba(0,169,157,0.1);  color: #007f76; border: 1px solid rgba(0,169,157,0.2); }
.do-var-etd    { background: rgba(109,40,217,0.08); color: #5b21b6; border: 1px solid rgba(109,40,217,0.15); }
.do-var-retiro { background: rgba(217,119,6,0.08); color: #92400e; border: 1px solid rgba(217,119,6,0.2); }

/* ── CHART GRID ── */
.do-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.do-chart-card {
  background: #fff;
  border: 1.5px solid #c2e8e6;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 2px 12px rgba(0,169,157,0.05);
}
.do-chart-card-wide { grid-column: 1 / -1; }
.do-chart-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: #007f76; margin-bottom: 12px;
}
.do-chart-wrap { height: 200px; position: relative; }

/* ── SEMÁFORO ── */
.do-sem-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.do-sem-dot.do-sem-verde    { background: #2a9d6e; box-shadow: 0 0 0 3px rgba(42,157,110,0.18); }
.do-sem-dot.do-sem-amarillo { background: #d97706; box-shadow: 0 0 0 3px rgba(217,119,6,0.18); }
.do-sem-dot.do-sem-rojo     { background: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.18); }
.do-sem-txt { font-size: 11px; font-weight: 600; vertical-align: middle; }
.do-sem-txt.do-sem-verde    { color: #1e7a56; }
.do-sem-txt.do-sem-amarillo { color: #92400e; }
.do-sem-txt.do-sem-rojo     { color: #c0392b; }

/* ── NO DATA ── */
.do-nodata { text-align: center; padding: 40px; color: #6ba3a0; font-size: 13px; }

/* ── FOOTER ── */
.do-footer {
  border-top: 2px solid #c2e8e6;
  margin-top: 24px; padding: 14px 0;
  display: flex; justify-content: space-between;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; color: #6ba3a0;
}

/* ── MudBlazor overrides dentro del contexto do-filter-card ── */
.do-filter-card .mud-input-root { font-size: 13px !important; }
.do-filter-card .mud-select-input { font-size: 13px !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .do-kpi-grid-wide { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .do-kpi-grid, .do-kpi-grid-wide { grid-template-columns: 1fr 1fr; }
  .do-main { padding: 16px; }
}
@media (max-width: 600px) {
  .do-tabs { flex-direction: column; }
}
