/* ============================================================================
   PLANIORA v3.9.0 — FASE 5: PRODUCTIVIDAD EN 3 CLICS Y PLANIFICADOR SEMANAL
   100 % modular: NO modifica styles.css ni CSS de Fases 1, 2, 3 y 4.
   ============================================================================ */

/* --- 1. TARJETA EXPRESS EN DASHBOARD --- */
.f5-dash-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #073B43 0%, #087E83 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(7, 59, 67, 0.18);
}

.f5-dash-bar h3 {
  margin: 4px 0 2px;
  font-size: 16px;
  color: #FFFFFF;
}

.f5-dash-bar p {
  margin: 0;
  font-size: 12.5px;
  color: #E2E8F0;
}

.f5-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.f5-btn-gold {
  background: #27D7C4 !important;
  color: #06292F !important;
  border-color: #27D7C4 !important;
  font-weight: 800 !important;
}

.f5-btn-gold:hover {
  background: #5EEAD4 !important;
}

/* --- 2. MODAL MODO EXPRESS (3 CLICS) --- */
#modal-f5-express .modal-card {
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
}

.f5-step-block {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border, #CBD5E1);
  background: var(--surface-2, #F8FAFC);
  margin-bottom: 10px;
}

.f5-step-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 800;
  color: #073B43;
  margin: 0 0 8px 0;
}

[data-theme="dark"] .f5-step-title {
  color: #5EEAD4;
}

.f5-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #087E83;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
  flex-shrink: 0;
}

/* --- 3. VISTA PLANIFICADOR SEMANAL (#view-semanal) --- */
.f5-week-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.f5-hours-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(8, 126, 131, 0.09);
  border: 1px solid rgba(8, 126, 131, 0.28);
  font-size: 12px;
  margin-bottom: 12px;
}

.f5-hours-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #073B43;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 11.5px;
}

.f5-week-table-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
}

.f5-week-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  min-width: 780px;
}

.f5-week-tbl th,
.f5-week-tbl td {
  border: 1px solid var(--border, #CBD5E1);
  padding: 6px;
  vertical-align: top;
}

.f5-week-tbl th {
  background: #073B43;
  color: #FFFFFF;
  text-align: center;
  font-weight: 700;
}

.f5-week-tbl th small {
  display: block;
  font-weight: 500;
  font-size: 10px;
  color: #CCFBF1;
  margin-top: 2px;
}

.f5-week-tbl td.f5-blk-col {
  width: 118px;
  background: var(--surface-2, #F8FAFC);
  font-weight: 700;
  color: var(--fg, #0F172A);
}

.f5-week-tbl tr.f5-recreo-row td {
  background: #FEF3C7;
  color: #78350F;
  text-align: center;
  font-weight: 800;
  font-size: 11px;
  padding: 5px;
  letter-spacing: 0.4px;
}

.f5-cell-sel {
  width: 100%;
  min-height: 32px !important;
  padding: 4px 5px !important;
  font-size: 11px !important;
  border-radius: 7px !important;
  margin-bottom: 4px;
}

.f5-cell-note {
  width: 100%;
  min-height: 28px !important;
  padding: 3px 6px !important;
  font-size: 10.5px !important;
  border-radius: 6px !important;
}

.f5-cell-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 4px;
}

.f5-hrs-sel {
  width: auto !important;
  min-height: 24px !important;
  padding: 1px 4px !important;
  font-size: 10px !important;
  border-radius: 6px !important;
}

.f5-open-ses-btn {
  padding: 2px 7px !important;
  min-height: 24px !important;
  font-size: 10px !important;
  border-radius: 6px !important;
  background: rgba(8, 126, 131, 0.14) !important;
  color: #073B43 !important;
  border: 1px solid rgba(8, 126, 131, 0.35) !important;
  font-weight: 700 !important;
  cursor: pointer;
}

[data-theme="dark"] .f5-open-ses-btn {
  color: #5EEAD4 !important;
}

.f5-cell-assigned {
  background: rgba(8, 126, 131, 0.06);
}

.f5-cell-toe {
  background: rgba(245, 158, 11, 0.09);
}

.f5-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.f5-chk-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border, #CBD5E1);
  background: var(--surface-2, #F8FAFC);
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.f5-chk-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: #059669;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .f5-week-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .f5-checklist-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .f5-week-controls {
    grid-template-columns: 1fr;
  }
}

@media print {
  .f5-dash-bar,
  .f5-week-controls,
  .f5-hours-strip,
  .f5-week-table-wrap,
  #f5-checklist-card,
  #modal-f5-express {
    display: none !important;
  }
}
