/* ==========================================================================
   INFOBAE EN VIVO — PLATAFORMA COMERCIAL & AD-OPS (SHADCN/UI & SWISS SYSTEM)
   ========================================================================== */

:root {
  --bg-canvas: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-header: #0F172A;

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;

  --brand-orange: #EA580C;
  --brand-orange-hover: #C2410C;
  --brand-orange-soft: #FFF7ED;
  --brand-orange-border: #FDBA74;

  --emerald-bg: #ECFDF5;
  --emerald-text: #047857;
  --emerald-border: #A7F3D0;

  --amber-bg: #FFFBEB;
  --amber-text: #B45309;
  --amber-border: #FDE68A;

  --rose-bg: #FEF2F2;
  --rose-text: #BE123C;
  --rose-border: #FECDD3;

  --blue-bg: #EFF6FF;
  --blue-text: #1D4ED8;
  --blue-border: #BFDBFE;

  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-dropdown: 0 12px 28px -6px rgba(15, 23, 42, 0.14), 0 4px 10px -4px rgba(15, 23, 42, 0.06);
  --shadow-focus: 0 0 0 2px rgba(15, 23, 42, 0.12);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   1. HEADER PRINCIPAL (LIMPIO, COMPACTO Y SIN DESBORDE HORIZONTAL)
   ========================================================================== */
.top-header {
  background: var(--bg-header);
  color: #F8FAFC;
  width: 100%;
  max-width: 100%;
  min-height: 56px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #1E293B;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow-x: clip;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 2px 0;
}

.brand-logo-img {
  height: 17px;
  width: auto;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.16);
}

.login-brand-logo {
  height: 22px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.brand-mark {
  background: var(--brand-orange);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-title {
  font-weight: 600;
  font-size: 12px;
  color: #94A3B8;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

@media (max-width: 1620px) {
  .brand-title,
  .brand-divider {
    display: none;
  }
}

/* Navegación Principal */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 9px;
  flex: 0 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  background: transparent;
  border: none;
  color: #CBD5E1;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.nav-tab.active {
  color: #FFFFFF;
  background: var(--brand-orange);
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
}

.nav-tab-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.85;
}

/* Selector de Usuario (SSO / RLS) */
.security-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
}

.role-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1E293B;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}

.role-switcher-label {
  font-size: 11px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.role-select {
  background: transparent;
  color: #F8FAFC;
  border: none;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  width: 165px;
  max-width: 165px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-select option {
  background: #0F172A;
  color: #F8FAFC;
}

@media (max-width: 1380px) {
  .top-header {
    padding: 6px 12px;
    gap: 8px;
  }
  .brand-logo-img {
    height: 15px;
  }
  .nav-tab {
    padding: 5px 8px;
    font-size: 11.5px;
  }
  .role-select {
    width: 135px;
    max-width: 135px;
  }
}

@media (max-width: 1180px) {
  #activeUserRoleBadge {
    display: none;
  }
  .role-select {
    width: 115px;
    max-width: 115px;
  }
}

/* ==========================================================================
   2. CONTENEDOR GENERAL
   ========================================================================== */
.main-workspace {
  flex: 1;
  max-width: 1760px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 14px 18px 32px;
  overflow-x: clip;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ==========================================================================
   3. BARRA SUPERIOR DE OPORTUNIDAD SALESFORCE + DRAWER DESPLEGABLE
   ========================================================================== */
.sf-context-bar-wrapper {
  position: relative;
  margin-bottom: 20px;
  z-index: 40;
}

.sf-context-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}

.sf-context-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-opp-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid #0F172A;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-opp-switcher:hover {
  background: #1E293B;
  border-color: #1E293B;
}

.opp-count-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
}

.sf-active-pill-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.sf-active-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sf-active-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.sf-active-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.sf-active-val.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-orange);
}

.sf-divider {
  width: 1px;
  height: 26px;
  background: var(--border-subtle);
}

/* Cajón flotante para cambiar de Oportunidad */
.sf-opp-drawer {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  padding: 18px 20px;
  z-index: 60;
}

.sf-opp-drawer.open {
  display: block;
}

.sf-opp-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.sf-opp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
}

.sf-opp-card {
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sf-opp-card:hover {
  border-color: var(--border-strong);
  background: #F8FAFC;
}

.sf-opp-card.selected {
  border-color: #0F172A;
  background: #F8FAFC;
  box-shadow: inset 3px 0 0 var(--brand-orange);
}

.sf-opp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sf-opp-id {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-orange);
}

.sf-opp-client {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-primary);
}

.sf-opp-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   4. GRILLA PRINCIPAL DE 2 COLUMNAS CON AIRE VISUAL (56% / 44%)
   ========================================================================== */
.workbench-2col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1180px) {
  .workbench-2col {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 20px;
}

.panel-card:last-child {
  margin-bottom: 0;
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #FFFFFF;
}

.panel-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0;
}

.panel-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.panel-title-accent {
  display: none;
}

.panel-body {
  padding: 20px;
}

/* Secciones dentro de las tarjetas */
.step-section {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.step-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.step-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.step-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.step-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Tarjetas de selección (Formatos y Programas) estilo shadcn Radio/Check Card */
.check-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.check-card-grid.programs-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
  .check-card-grid,
  .check-card-grid.programs-grid {
    grid-template-columns: 1fr;
  }
}

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.check-card.check-card-master {
  grid-column: 1 / -1;
  background: #F8FAFC;
  border: 1px solid var(--border-strong);
  padding: 12px 14px;
}

.check-card:hover {
  border-color: var(--border-strong);
  background: #F8FAFC;
}

.check-card input[type="checkbox"] {
  accent-color: #0F172A;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.check-card:has(input:checked) {
  background: #F8FAFC;
  border-color: #0F172A;
  box-shadow: 0 0 0 1px #0F172A;
}

.check-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* SUB-OPCIONES DESPLEGABLES DE ENTREVISTA / PISO */
.entrevista-suboptions-box {
  margin-top: 10px;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.entrevista-suboptions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.entrevista-suboptions-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.entrevista-suboptions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

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

.check-card.check-card-sub {
  padding: 10px 12px;
  background: #FFFFFF;
  border-color: var(--border-subtle);
}

.check-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.check-card:has(input:checked) .check-card-title {
  color: #0F172A;
}

.check-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* Controles de Formulario */
.form-grid-3 {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1.15fr;
  gap: 16px;
  align-items: end;
}

@media (max-width: 780px) {
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-primary);
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-height: 42px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-focus);
}

.form-input.mono {
  font-family: var(--font-mono);
  font-weight: 600;
}

.form-textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 150px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
}

.form-textarea-lg {
  min-height: 155px;
}

.form-textarea-xl {
  min-height: 185px;
}

/* Campo de Segundos con unidad lateral limpia (sin superposición) */
.seconds-field-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.seconds-field-group .form-input {
  flex: 1;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.seconds-unit-addon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #F1F5F9;
  border: 1px solid var(--border-strong);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  user-select: none;
}

/* ==========================================================================
   5. SUBIDA DE MATERIALES (DRAG & DROP + LINKS)
   ========================================================================== */
.materials-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.tech-specs-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.tech-specs-bar svg {
  flex-shrink: 0;
  color: var(--text-primary);
}

.tech-specs-bar strong {
  color: var(--text-primary);
  font-weight: 600;
}

.tech-specs-bar code.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 1px 5px;
  color: #0F172A;
}

.asset-validation-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 3px solid #DC2626;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: #0F172A;
  line-height: 1.45;
}

.asset-validation-notice svg {
  flex-shrink: 0;
  color: #DC2626;
}

.materials-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .materials-split {
    grid-template-columns: 1fr;
  }
}

.upload-dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--brand-orange);
  background: var(--brand-orange-soft);
}

.upload-dropzone-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.upload-dropzone-title span {
  color: var(--brand-orange);
  text-decoration: underline;
}

.upload-dropzone-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.link-attach-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.link-input-row {
  display: flex;
  gap: 8px;
}

.link-input-row .form-input {
  flex: 1;
}

/* Lista de Materiales Adjuntos */
.attached-assets-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.asset-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  box-shadow: var(--shadow-sm);
}

.asset-kind-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.asset-kind-tag.VIDEO {
  background: var(--rose-bg);
  color: var(--rose-text);
  border: 1px solid var(--rose-border);
}

.asset-kind-tag.IMAGE {
  background: var(--blue-bg);
  color: var(--blue-text);
  border: 1px solid var(--blue-border);
}

.asset-kind-tag.LINK {
  background: var(--emerald-bg);
  color: var(--emerald-text);
  border: 1px solid var(--emerald-border);
}

.asset-kind-tag.DOC {
  background: var(--amber-bg);
  color: var(--amber-text);
  border: 1px solid var(--amber-border);
}

.asset-name {
  font-weight: 700;
  color: var(--text-primary);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.asset-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.asset-remove-btn:hover {
  color: var(--rose-text);
}

/* ==========================================================================
   6. GUION DE PNT CONDICIONAL
   ========================================================================== */
.conditional-pnt-box {
  display: none;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 18px;
}

.conditional-pnt-box.visible {
  display: block;
}

.pnt-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.pnt-box-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   7. COLUMNA DERECHA: CALENDARIO MULTI-MES AMPLIO + RESUMEN DE ENVÍO
   ========================================================================== */
.calendar-widget {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.calendar-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cal-month-nav {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
}

.cal-nav-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 30px;
  height: 30px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.cal-nav-btn:hover {
  background: #F1F5F9;
  border-color: var(--border-strong);
}

.cal-month-select {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 4px 12px;
  cursor: pointer;
  outline: none;
  text-align: center;
}

.calendar-quick-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.btn-cal-quick {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cal-quick:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: #F1F5F9;
}

/* Barra de Progreso de Cupo en Calendario */
.cal-quota-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.cal-quota-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-quota-track {
  flex: 1;
  max-width: 130px;
  height: 6px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

.cal-quota-fill {
  height: 100%;
  background: #0F172A;
  border-radius: 999px;
  transition: width 0.2s ease;
}

/* Grilla de 7 Columnas de Días */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 6px;
  text-align: center;
}

.calendar-weekdays span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 3px 0;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cal-day-btn {
  height: 38px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.cal-day-btn:hover:not(.empty) {
  border-color: var(--border-strong);
  background: #F1F5F9;
}

.cal-day-btn.weekend {
  background: #F8FAFC;
  color: var(--text-muted);
}

.cal-day-btn.selected {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  font-weight: 600;
}

.cal-day-btn.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.cal-selected-months-summary {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Ficha Resumen de Orden antes de Enviar */
.order-brief-summary {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brief-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12.5px;
}

.brief-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.brief-label {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.brief-val {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

/* ==========================================================================
   8. BOTONES, TABLAS Y ETIQUETAS (TABS 2, 3, 4)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-orange);
  color: #FFFFFF;
  border-color: var(--brand-orange);
}

.btn-primary:hover {
  background: var(--brand-orange-hover);
  border-color: var(--brand-orange-hover);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: var(--border-strong);
}

.btn-full {
  width: 100%;
  padding: 11px 18px;
  font-size: 13.5px;
}

.table-scroll {
  overflow-x: auto;
  max-height: 540px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  background: #F8FAFC;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11.5px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 5;
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tr:hover td {
  background-color: #F8FAFC;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
}

.badge-emerald {
  background: var(--emerald-bg);
  color: var(--emerald-text);
  border: 1px solid var(--emerald-border);
}

.badge-amber {
  background: var(--amber-bg);
  color: var(--amber-text);
  border: 1px solid var(--amber-border);
}

.badge-rose {
  background: var(--rose-bg);
  color: var(--rose-text);
  border: 1px solid var(--rose-border);
}

.badge-blue {
  background: var(--blue-bg);
  color: var(--blue-text);
  border: 1px solid var(--blue-border);
}

.badge-neutral {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.grid-2col-balanced {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: start;
}

.kpi-strip-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-mini-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.kpi-mini-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.yt-thumb-box {
  background: #0B0F17;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid #1E293B;
  margin-top: 12px;
}

.yt-thumb-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.yt-thumb-meta {
  padding: 10px 14px;
  color: #E2E8F0;
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-block {
  background: #0F172A;
  color: #E2E8F0;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  line-height: 1.6;
}

/* ==========================================================================
   9. PANORAMA DEL DÍA IN-HOUSE (ESTILO PLANILLA INTELIGENTE / EXCEL)
   ========================================================================== */
.sheet-panorama-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.sheet-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.sheet-day-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-day-step {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.btn-day-step:hover {
  background: #F8FAFC;
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.sheet-day-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 3px 10px;
}

.sheet-day-prefix {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.sheet-day-select {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  padding: 3px 4px;
}

.sheet-filters-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.sheet-filter-input {
  min-width: 240px;
  height: 34px;
  padding: 5px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  background: #FFFFFF;
  color: var(--text-primary);
  outline: none;
}

.sheet-filter-input:focus,
.sheet-filter-select:focus {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-focus);
}

.sheet-filter-select {
  height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  background: #FFFFFF;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
}

.btn-sheet-action {
  height: 34px;
  padding: 0 11px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-sheet-action:hover {
  background: #F1F5F9;
  color: var(--text-primary);
}

.btn-sheet-primary {
  height: 34px;
  padding: 0 13px;
  border-radius: 6px;
  border: 1px solid var(--brand-orange);
  background: var(--brand-orange);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease;
}

.btn-sheet-primary:hover {
  background: var(--brand-orange-hover);
}

/* TIRA DE PÍLDORAS DE PROGRAMAS EN 1 CLIC */
.sheet-program-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.sheet-prog-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sheet-prog-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: #F8FAFC;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
}

.sheet-prog-filter .prog-count {
  background: rgba(15, 23, 42, 0.1);
  padding: 1px 6px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.sheet-prog-filter.prog-pill-07 {
  background: #E8F1FA;
  color: #1E3A8A;
  border-color: #93C5FD;
}
.sheet-prog-filter.prog-pill-09 {
  background: #FEF9E7;
  color: #92400E;
  border-color: #FCD34D;
}
.sheet-prog-filter.prog-pill-12 {
  background: #F3F4F6;
  color: #1F2937;
  border-color: #CBD5E1;
}
.sheet-prog-filter.prog-pill-15 {
  background: #FFF1E6;
  color: #9A3412;
  border-color: #FDBA74;
}
.sheet-prog-filter.prog-pill-18 {
  background: #F5EBF0;
  color: #6B21A8;
  border-color: #D8B4FE;
}

.sheet-prog-filter.active {
  box-shadow: 0 0 0 2px #0F172A;
  font-weight: 800;
  transform: translateY(-1px);
}

.sheet-status-indicators {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sheet-stat-chip {
  font-size: 12px;
  color: var(--text-secondary);
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: 6px;
}

/* TABLA ESTILO GOOGLE SHEET / EXCEL PANORÁMICO */
.sheet-table-container {
  width: 100%;
  overflow-x: auto;
  max-height: 74vh;
  overflow-y: auto;
  background: #FFFFFF;
}

.excel-panorama-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  table-layout: auto;
}

.excel-panorama-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #D9EAD3;
  color: #0F172A;
  font-weight: 800;
  font-size: 12px;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid #93C47D;
  border-right: 1px solid #B6D7A8;
  white-space: nowrap;
  line-height: 1.25;
}

.excel-panorama-table thead th .th-sub {
  font-weight: 600;
  font-size: 10.5px;
  color: #1E3A2F;
}

.excel-panorama-table tbody tr {
  border-bottom: 1px solid #E2E8F0;
  transition: background-color 0.08s ease;
}

.excel-panorama-table tbody tr:hover {
  background-color: #F8FAFC;
}

.excel-panorama-table tbody tr.program-group-start td {
  border-top: 2px solid #94A3B8;
}

.excel-panorama-table tbody td {
  padding: 4px 6px;
  border-right: 1px solid #EDF2F7;
  vertical-align: middle;
  white-space: nowrap;
  height: 32px;
}

.excel-panorama-table .col-row-num {
  width: 32px;
  text-align: center;
  background: #F8FAFC;
  color: #64748B;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  user-select: none;
}

.excel-panorama-table .col-fecha {
  width: 148px;
}

.excel-panorama-table .col-programa {
  width: 198px;
}

.excel-panorama-table .col-tipo {
  width: 154px;
}

.excel-panorama-table .col-anuncio {
  width: 185px;
}

.excel-panorama-table .col-segundos {
  width: 54px;
  max-width: 56px;
  text-align: center;
  padding-left: 2px;
  padding-right: 2px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.excel-panorama-table .col-ubicacion {
  width: 108px;
}

.excel-panorama-table .col-orden {
  width: 60px;
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
}

.excel-panorama-table .col-link {
  min-width: 230px;
}

/* FECHA DISPLAY + PICKER EN CELDA */
.sheet-date-cell {
  display: flex;
  align-items: center;
   justify-content: space-between;
  gap: 6px;
}

.sheet-date-text {
  font-size: 12px;
  color: #1E293B;
}

.sheet-date-input-mini {
  width: 22px;
  height: 22px;
  opacity: 0.45;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font-size: 11px;
}

.sheet-date-input-mini:hover {
  opacity: 1;
}

/* PÍLDORAS INTERACTIVAS DE LA PLANILLA (IDÉNTICAS AL EXCEL PERO EDITABLES) */
.sheet-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
  background-image: none !important;
  white-space: nowrap;
}

.pill-ciclo {
  background: #F4CCCC;
  color: #991B1B;
}

.sheet-pill-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 2px 18px 2px 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  outline: none;
  width: 100%;
  max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  transition: filter 0.12s ease, box-shadow 0.12s ease;
}

.col-programa .sheet-pill-select {
  width: 194px;
}

.col-tipo .sheet-pill-select {
  width: 150px;
}

.col-ubicacion .sheet-pill-select {
  width: 104px;
}

.sheet-pill-select:hover {
  filter: brightness(0.96);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
}

/* COLORES DE PROGRAMA (EXACTOS A LA CAPTURA DE GOOGLE SHEET) */
.pill-prog-07 {
  background-color: #CFE2F3;
  color: #1D4ED8;
}
.pill-prog-09 {
  background-color: #FFF2CC;
  color: #B45309;
}
.pill-prog-12 {
  background-color: #E5E7EB;
  color: #374151;
}
.pill-prog-15 {
  background-color: #FCE5CD;
  color: #C2410C;
}
.pill-prog-18 {
  background-color: #EAD1DC;
  color: #6B21A8;
}

/* COLORES DE TIPO DE ANUNCIO (EXACTOS A LA CAPTURA DE GOOGLE SHEET) */
.pill-tipo-zocalo {
  background-color: #9FC5E8;
  color: #082F49;
}
.pill-tipo-video {
  background-color: #D9EAD3;
  color: #14532D;
}
.pill-tipo-pnt {
  background-color: #CC0000;
  color: #FFFFFF;
}
.pill-tipo-entrevista {
  background-color: #1155CC;
  color: #FFFFFF;
}
.pill-tipo-auspicio {
  background-color: #8E7CC3;
  color: #FFFFFF;
}
.sheet-pill-select.pill-tipo-pnt,
.sheet-pill-select.pill-tipo-entrevista,
.sheet-pill-select.pill-tipo-auspicio {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* COLORES DE UBICACIÓN / TANDA (EXACTOS A LA CAPTURA DE GOOGLE SHEET) */
.pill-tanda-na {
  background-color: #666666;
  color: #FFFFFF;
}
.pill-tanda-1 {
  background-color: #D9D2E9;
  color: #3B0764;
}
.pill-tanda-2 {
  background-color: #FFF2CC;
  color: #78350F;
}
.pill-tanda-3 {
  background-color: #F4CCCC;
  color: #7F1D1D;
}
.pill-tanda-4 {
  background-color: #D9EAD3;
  color: #14532D;
}
.pill-tanda-5 {
  background-color: #E5E7EB;
  color: #1F2937;
}
.pill-tanda-6 {
  background-color: #CC0000;
  color: #FFFFFF;
}
.pill-tanda-7 {
  background-color: #783F04;
  color: #FFFFFF;
}
.pill-tanda-8 {
  background-color: #134F5C;
  color: #FFFFFF;
}
.pill-tanda-9 {
  background-color: #351C75;
  color: #FFFFFF;
}
.pill-tanda-final {
  background-color: #E2E8F0;
  color: #1E293B;
}
.sheet-pill-select.pill-tanda-na,
.sheet-pill-select.pill-tanda-6,
.sheet-pill-select.pill-tanda-7,
.sheet-pill-select.pill-tanda-8,
.sheet-pill-select.pill-tanda-9 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* CELDA DE ANUNCIO + BOTÓN DE FICHA / GUION */
.sheet-anuncio-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sheet-anuncio-input {
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
  padding: 2px 4px;
  border-radius: 4px;
  min-width: 105px;
  width: 100%;
  flex: 1;
}

.sheet-anuncio-input:hover,
.sheet-anuncio-input:focus {
  border-color: #CBD5E1;
  background: #FFFFFF;
  outline: none;
}

.btn-sheet-guion {
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #475569;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.75;
  transition: all 0.12s ease;
}

.btn-sheet-guion:hover {
  opacity: 1;
  background: var(--brand-orange-soft);
  border-color: var(--brand-orange);
  color: #9A3412;
}

/* CELDA DE SEGUNDOS Y ORDEN DE APARICIÓN */
.sheet-sec-input {
  width: 46px;
  text-align: center;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
  padding: 2px 3px;
  border-radius: 4px;
}

.sheet-sec-input:hover,
.sheet-sec-input:focus {
  border-color: #CBD5E1;
  background: #FFFFFF;
  outline: none;
}

.sheet-orden-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
}

.sheet-orden-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  min-width: 16px;
  text-align: right;
}

.sheet-orden-arrows {
  display: inline-flex;
  gap: 2px;
  opacity: 0.25;
  transition: opacity 0.12s ease;
}

.excel-panorama-table tbody tr:hover .sheet-orden-arrows {
  opacity: 1;
}

.btn-orden-move {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  border-radius: 3px;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
}

.btn-orden-move:hover {
  background: var(--brand-orange-soft);
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

/* CELDA DE LINK YOUTUBE LIVE */
.sheet-link-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sheet-yt-anchor {
  color: #1155CC;
  text-decoration: underline;
  font-family: var(--font-sans);
  font-size: 11.5px;
  max-width: 235px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-link-quick-input {
  width: 100%;
  min-width: 170px;
  max-width: 235px;
  flex: 1;
  height: 24px;
  padding: 2px 8px;
  border: 1px dashed #CBD5E1;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #334155;
  background: #FAFAFA;
}

.sheet-link-quick-input:focus {
  border-style: solid;
  border-color: var(--brand-orange);
  background: #FFFFFF;
  outline: none;
}

.btn-sheet-del-row {
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: #94A3B8;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  margin-left: auto;
}

.btn-sheet-del-row:hover {
  background: #FEE2E2;
  color: #DC2626;
}

/* INSPECTOR Y BARRA NUEVA FILA */
.inhouse-order-inspector {
  margin: 12px 16px;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.inhouse-inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.inhouse-inspector-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inhouse-inspector-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.inhouse-inspector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inhouse-inspector-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.inhouse-inspector-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.inhouse-inspector-content {
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.5;
  white-space: pre-wrap;
}

.new-slot-bar {
  margin: 12px 16px;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.new-slot-bar-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.new-slot-bar-controls {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr 1fr 0.6fr 0.9fr auto auto;
  gap: 8px;
  align-items: center;
}

@media (max-width: 1150px) {
  .new-slot-bar-controls {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.auto-duration-badge {
  font-size: 11px;
  color: var(--brand-orange);
  font-weight: 600;
}

/* ==========================================================================
   10. POP-UP MODAL DE COMPROBANTE DE EMISIÓN Y AJUSTE (TAB 03)
   ========================================================================== */
#certificationsFullTable tbody tr {
  cursor: pointer;
}

#certificationsFullTable tbody tr:hover {
  background-color: #F8FAFC;
}

.cert-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cert-modal-card {
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
}

.cert-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
}

.cert-modal-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-top: 4px;
}

.btn-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-modal-close:hover {
  background: #F1F5F9;
  color: var(--text-primary);
}

.cert-modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cert-adjust-box {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.cert-adjust-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cert-adjust-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
  align-items: end;
}

@media (max-width: 760px) {
  .cert-adjust-grid {
    grid-template-columns: 1fr;
  }
}

.cert-sec-adjust-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cert-sec-input {
  width: 108px;
  text-align: center;
  font-weight: 600;
}

.yt-embed-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 52%;
  background: #000000;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.yt-embed-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.btn-sec-nudge {
  height: 36px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-sec-nudge:hover {
  background: #F1F5F9;
  border-color: var(--border-strong);
}

.cert-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.cert-Cascade-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.cert-modal-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ==========================================================================
   13. PANTALLA DE LOGIN CORPORATIVO (@INFOBAE.COM) & HEADER LOGOUT
   ========================================================================== */
.login-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #FFFFFF;
  display: block;
  padding: 0;
  overflow-y: auto;
}

.login-split-shell {
  width: 100%;
  min-height: 100vh;
  background: #FFFFFF;
  display: grid;
  grid-template-columns: 2fr minmax(380px, 1fr);
}

.login-visual-pane {
  position: relative;
  background: #0F172A;
  overflow: hidden;
  min-height: 100vh;
}

.login-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.login-form-pane {
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  min-height: 100vh;
}

.login-form-box {
  width: 100%;
  max-width: 360px;
}

@media (max-width: 860px) {
  .login-split-shell {
    grid-template-columns: 1fr;
  }
  .login-visual-pane {
    display: none;
  }
  .login-form-pane {
    padding: 36px 24px;
  }
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.login-brand-header {
  margin-bottom: 28px;
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin: 24px 0 6px 0;
}

.login-subtitle {
  font-size: 13.5px;
  line-height: 1.45;
  color: #64748B;
  margin: 0;
}

.login-error-banner {
  margin-bottom: 16px;
  padding: 11px 13px;
  background: var(--rose-bg);
  border: 1px solid var(--rose-border);
  border-radius: 8px;
  color: var(--rose-text);
  font-size: 12.5px;
  font-weight: 600;
}

.login-form-group {
  margin-bottom: 16px;
}

.login-form-group .form-input {
  height: 42px;
  border-radius: 8px;
  font-size: 13.5px;
  border-color: #E2E8F0;
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-form-group .form-input:focus {
  border-color: #0F172A;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.login-input-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.login-submit-btn {
  height: 42px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.login-quick-profiles {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.login-quick-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.login-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

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

.login-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #F8FAFC;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
}

.login-quick-btn:hover {
  background: var(--brand-orange-soft);
  border-color: var(--brand-orange);
}

.login-quick-btn.suspended {
  opacity: 0.65;
  background: #FFF1F2;
  border-color: #FECDD3;
}

.login-quick-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.login-quick-meta {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.btn-header-logout {
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-header-logout:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #FFFFFF;
}

/* ==========================================================================
   14. REPOSITORIO DE DESCARGA DE MATERIALES PARA PRODUCTORES & STREAMING
   ========================================================================== */
.producer-materials-hub {
  padding: 16px 18px;
  background: #F8FAFC;
  border-bottom: 2px solid var(--brand-orange);
}

.producer-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.producer-hub-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.producer-hub-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.producer-materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
}

.producer-material-card {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.producer-mat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.producer-mat-brand {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.producer-mat-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* GRILLA DE CRONOGRAMA DE MATERIALES PARA PRODUCTORES EXTERNOS (100% ANCHO SIN OVERFLOW) */
#producersScheduleTable {
  width: 100%;
  table-layout: fixed;
}

#producersScheduleTable .col-row-num {
  width: 34px;
}

#producersScheduleTable .col-prod-prog {
  width: 132px;
}

#producersScheduleTable .col-prod-brand {
  width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#producersScheduleTable .col-prod-tipo {
  width: 136px;
}

#producersScheduleTable .col-prod-ubic {
  width: 156px;
}

#producersScheduleTable .col-prod-script {
  width: auto;
  white-space: normal;
  line-height: 1.35;
}

#producersScheduleTable .col-prod-files {
  width: 256px;
}

.prod-script-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.prod-script-text {
  font-size: 12px;
  color: #1E293B;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.producer-mat-files {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.producer-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 8px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 11px;
}

.producer-file-name {
  font-weight: 600;
  color: #0F172A;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 142px;
}

.btn-download-asset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid var(--brand-orange);
  background: var(--brand-orange);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.12s ease;
}

.btn-download-asset:hover {
  filter: brightness(0.92);
}

/* ==========================================================================
   15. PORTAL /ACCESOS — SHADCN/UI & SWISS MINIMALIST DESIGN SYSTEM
   ========================================================================== */
#tab-seguridad {
  font-family: 'Inter', var(--font-sans);
  max-width: 1440px;
  margin: 0 auto;
}

.shadcn-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid #E2E8F0;
  flex-wrap: wrap;
}

.shadcn-page-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #0F172A;
  margin: 0 0 4px 0;
}

.shadcn-page-description {
  font-size: 13.5px;
  color: #64748B;
  margin: 0;
}

.shadcn-shield-control {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.shadcn-shield-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shadcn-shield-status-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.shadcn-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10B981;
  flex-shrink: 0;
}

.shadcn-status-dot.is-locked {
  background: #EA580C;
}

.shadcn-shield-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #0F172A;
}

.shadcn-shield-sub {
  font-size: 11.5px;
  color: #64748B;
}

/* Segmented Tabs List (shadcn/ui TabsList) */
.shadcn-tabs-bar {
  margin-bottom: 16px;
}

.shadcn-tabs-list {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  flex-wrap: wrap;
}

.admin-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748B;
  font-family: 'Inter', var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-subtab-btn:hover {
  color: #0F172A;
}

.admin-subtab-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-subtab-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: #E2E8F0;
  color: #475569;
}

.admin-subtab-btn.active .admin-subtab-pill {
  background: #F1F5F9;
  color: #0F172A;
}

.admin-subtab-panel {
  display: none;
}

.admin-subtab-panel.active {
  display: block;
}

/* shadcn/ui Card */
.shadcn-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.shadcn-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #E2E8F0;
}

.shadcn-card-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #0F172A;
  margin: 0 0 3px 0;
}

.shadcn-card-desc {
  font-size: 12.5px;
  color: #64748B;
  margin: 0;
}

.shadcn-card-content {
  padding: 20px;
}

/* shadcn/ui User Creation Toolbar */
.shadcn-user-toolbar {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.9fr 1.3fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px 20px;
  background: #FAFAFA;
  border-bottom: 1px solid #E2E8F0;
}

@media (max-width: 960px) {
  .shadcn-user-toolbar {
    grid-template-columns: 1fr;
  }
}

/* shadcn/ui Inputs, Selects & Buttons */
.shadcn-input,
.shadcn-select {
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #0F172A;
  font-family: 'Inter', var(--font-sans);
  font-size: 12.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.shadcn-input.mono {
  font-family: var(--font-mono);
  font-size: 12px;
}

.shadcn-input:focus,
.shadcn-select:focus {
  outline: none;
  border-color: #94A3B8;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.06);
}

.shadcn-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #0F172A;
  margin-bottom: 6px;
}

.shadcn-hint {
  display: block;
  font-size: 11.5px;
  color: #64748B;
  margin-top: 5px;
}

.shadcn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 6px;
  font-family: 'Inter', var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.shadcn-btn-primary {
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid #0F172A;
}

.shadcn-btn-primary:hover {
  background: #1E293B;
}

.shadcn-btn-outline {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #E2E8F0;
}

.shadcn-btn-outline:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.shadcn-btn-ghost-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
}

.shadcn-btn-ghost-danger:hover {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

/* shadcn/ui Table */
.shadcn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.shadcn-table thead th {
  background: #F8FAFC;
  color: #64748B;
  font-weight: 500;
  font-size: 11.5px;
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid #E2E8F0;
  white-space: nowrap;
}

.shadcn-table tbody tr {
  border-bottom: 1px solid #F1F5F9;
  transition: background-color 0.12s ease;
}

.shadcn-table tbody tr:last-child {
  border-bottom: none;
}

.shadcn-table tbody tr:hover {
  background: #F8FAFC;
}

.shadcn-table td {
  padding: 11px 16px;
  color: #1E293B;
  vertical-align: middle;
}

.shadcn-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}

.shadcn-badge-muted {
  background: #F1F5F9;
  color: #475569;
  border-color: #E2E8F0;
}

.shadcn-badge-success {
  background: #F0FDF4;
  color: #15803D;
  border-color: #BBF7D0;
}

.shadcn-badge-danger {
  background: #FEF2F2;
  color: #B91C1C;
  border-color: #FECACA;
}

.admin-pass-input {
  width: 124px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #E2E8F0;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: #0F172A;
  background: #F8FAFC;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.admin-pass-input:focus {
  border-color: #64748B;
  background: #FFFFFF;
  outline: none;
}

.admin-role-select {
  height: 28px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  font-family: 'Inter', var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: #0F172A;
  cursor: pointer;
}

.admin-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.email-preview-card {
  background: #F8FAFC;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-primary);
}

.email-header-row {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.email-body-section {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
}

/* ============================================================================
   PANEL DE LINKS DE YOUTUBE DEL DÍA & PREVISUALIZADOR DE MATERIALES (SHADCN)
   ============================================================================ */

.yt-streams-config-bar {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.yt-streams-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #F1F5F9;
  flex-wrap: wrap;
}

.yt-streams-config-title {
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
}

.yt-streams-config-desc {
  font-size: 12px;
  color: #64748B;
  margin: 0;
}

.yt-streams-config-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yt-streams-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1100px) {
  .yt-streams-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.yt-stream-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.inhouse-save-feedback {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #15803D;
  font-size: 11.5px;
  font-weight: 600;
}

.asset-preview-modal-card {
  max-width: 820px;
  width: 94vw;
}

.asset-preview-stage {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: 8px;
  min-height: 360px;
  max-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.asset-preview-stage img,
.asset-preview-stage video {
  max-width: 100%;
  max-height: 60vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.asset-preview-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 12px;
  color: #334155;
}

.btn-preview-asset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  font-family: 'Inter', var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-preview-asset:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

.order-compliance-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.order-compliance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.order-compliance-title {
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
}

.order-compliance-bar-track {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.order-compliance-bar-fill {
  height: 100%;
  background: #0F172A;
  border-radius: 999px;
  transition: width 0.2s ease;
}

.order-compliance-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #E2E8F0;
}

.comp-metric-label {
  display: block;
  font-size: 11px;
  color: #64748B;
  margin-bottom: 2px;
}

.comp-metric-val {
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
}

.is-hidden {
  display: none !important;
}

/* ============================================================================
   VALIDACIÓN DE SESIÓN / LOADER Y CICLO DE VIDA COMERCIAL (SHADCN/UI)
   ============================================================================ */

@keyframes adopsSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.session-validating-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.session-validating-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 28px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.06);
}

.session-spinner-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.session-spinner-svg {
  color: #EA580C;
  animation: adopsSpin 0.85s linear infinite;
  flex-shrink: 0;
}

.session-validating-title {
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.session-validating-sub {
  font-size: 12.5px;
  color: #64748B;
  margin: 0;
}

.comercial-lifecycle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.comercial-lifecycle-hint {
  font-size: 12px;
  color: #64748B;
}

.sf-product-inline-select {
  height: 28px;
  padding: 0 8px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  background: #F8FAFC;
  color: #0F172A;
  font-size: 11.5px;
  font-weight: 600;
  max-width: 340px;
  cursor: pointer;
}

.sf-product-inline-select:focus {
  outline: none;
  border-color: #0F172A;
  background: #FFFFFF;
}

.running-edit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.running-edit-banner-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #0F172A;
}

.running-edit-banner-left strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 2px;
}

.running-edit-banner-left span {
  display: block;
  font-size: 12px;
  color: #475569;
}

.running-edit-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-day-btn.disabled-past {
  opacity: 0.36;
  background: #F1F5F9 !important;
  color: #94A3B8 !important;
  border-color: #E2E8F0 !important;
  cursor: not-allowed !important;
  text-decoration: line-through;
}

.cal-day-btn.disabled-past.selected {
  opacity: 0.65;
  background: #E2E8F0 !important;
  color: #475569 !important;
  border-color: #94A3B8 !important;
  text-decoration: none;
}

.cal-day-btn.quota-reached:not(.selected) {
  opacity: 0.42;
  background: #F8FAFC !important;
  color: #94A3B8 !important;
  border-color: #E2E8F0 !important;
  cursor: not-allowed !important;
}

/* ============================================================================
   AJUSTE DE TAMAÑOS EN TABLAS DE LÍNEAS CORRIENDO Y FINALIZADAS + POPUP EDICIÓN
   ============================================================================ */

#runningLinesTable,
#finishedLinesTable {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

#runningLinesTable th,
#runningLinesTable td,
#finishedLinesTable th,
#finishedLinesTable td {
  padding: 10px 10px;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.38;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#runningLinesTable th:nth-child(1),
#runningLinesTable td:nth-child(1),
#finishedLinesTable th:nth-child(1),
#finishedLinesTable td:nth-child(1) {
  width: 12%;
  white-space: nowrap;
  font-size: 11.5px;
}

#runningLinesTable th:nth-child(2),
#runningLinesTable td:nth-child(2),
#finishedLinesTable th:nth-child(2),
#finishedLinesTable td:nth-child(2) {
  width: 16%;
}

#runningLinesTable th:nth-child(3),
#runningLinesTable td:nth-child(3),
#finishedLinesTable th:nth-child(3),
#finishedLinesTable td:nth-child(3) {
  width: 21%;
  font-size: 11px;
  line-height: 1.35;
}

#runningLinesTable th:nth-child(4),
#runningLinesTable td:nth-child(4),
#finishedLinesTable th:nth-child(4),
#finishedLinesTable td:nth-child(4) {
  width: 12%;
}

#runningLinesTable th:nth-child(5),
#runningLinesTable td:nth-child(5),
#finishedLinesTable th:nth-child(5),
#finishedLinesTable td:nth-child(5) {
  width: 12%;
  font-size: 11.5px;
}

#runningLinesTable th:nth-child(6),
#runningLinesTable td:nth-child(6),
#finishedLinesTable th:nth-child(6),
#finishedLinesTable td:nth-child(6) {
  width: 13%;
  font-size: 11px;
  word-break: break-word;
}

#runningLinesTable th:nth-child(7),
#runningLinesTable td:nth-child(7),
#finishedLinesTable th:nth-child(7),
#finishedLinesTable td:nth-child(7) {
  width: 14%;
  text-align: right;
}

#runningLinesTable .admin-actions-cell,
#finishedLinesTable .admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

#runningLinesTable .shadcn-btn-sm,
#finishedLinesTable .shadcn-btn-sm {
  height: 27px;
  padding: 0 9px;
  font-size: 11.5px;
}

.running-order-edit-modal-card {
  max-width: 1220px;
  width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.running-order-edit-modal-body {
  overflow-y: auto;
  padding: 16px 18px;
  background: #F8FAFC;
  flex: 1 1 auto;
}

.running-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.running-modal-sub {
  font-size: 11.5px;
  color: #64748B;
  margin-left: 4px;
}

/* ============================================================================
   ESTADO "AVISO NO ENCONTRADO" (Auditoría Visual Storyboard L2 / Pendiente de Reprogramación)
   ============================================================================ */

.sheet-not-found-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sheet-not-found-badge,
.shadcn-badge-danger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #991B1B;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  white-space: nowrap;
}

.cert-not-found-meta {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11.5px;
  font-weight: 500;
  color: #991B1B;
}

.row-aviso-no-encontrado td {
  background-color: #FFFAFA;
}

.row-aviso-reprogramado td {
  background-color: #F8FAFC;
}

.cert-replanned-meta {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11.5px;
  font-weight: 500;
  color: #475569;
}

.cert-not-found-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 12px;
  line-height: 1.45;
}

.cert-not-found-banner svg {
  color: #991B1B;
  flex-shrink: 0;
  margin-top: 2px;
}

.cert-not-found-banner strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #991B1B;
  margin-bottom: 2px;
}

/* ============================================================================
   PANEL DE PROGRESO Y ESTADO DE VALIDACIÓN DE STORYBOARDS POR PROGRAMA
   ============================================================================ */

.sb-validation-progress-panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.sb-val-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sb-val-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-val-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #0F172A;
  margin: 0;
}

.sb-val-subtitle {
  font-size: 12.5px;
  color: #64748B;
  margin: 2px 0 0 0;
}

.sb-val-bar-track {
  width: 100%;
  height: 6px;
  background: #F1F5F9;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}

.sb-val-bar-fill {
  height: 100%;
  background: #0F172A;
  border-radius: 6px;
  transition: width 0.35s ease;
}

.sb-val-programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.sb-val-prog-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sb-val-prog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sb-val-prog-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #0F172A;
}

.sb-val-prog-desc {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.4;
}

@keyframes sbSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sb-spin-icon {
  animation: sbSpin 1.1s linear infinite;
}

/* ============================================================================
   MODO COMPACTO DE ALTA DENSIDAD PARA /CERTIFICACIONES (100% ZOOM SIN RECORTE)
   ============================================================================ */

#tab-certificaciones .sheet-top-bar {
  padding: 8px 12px;
  gap: 8px;
}

#tab-certificaciones .sheet-day-select-wrap {
  height: 30px;
  padding: 0 8px;
}

#tab-certificaciones .btn-day-step {
  width: 28px;
  height: 30px;
}

#tab-certificaciones .sheet-filter-select,
#tab-certificaciones .sheet-filter-input {
  height: 30px;
  font-size: 11.5px;
  padding: 0 8px;
}

#tab-certificaciones .sheet-filter-input {
  min-width: 155px;
}

#tab-certificaciones .btn-sheet-action,
#tab-certificaciones .btn-sheet-primary {
  height: 30px;
  padding: 0 9px;
  font-size: 11.5px;
}

#tab-certificaciones .panel-header {
  padding: 8px 14px;
}

#tab-certificaciones .panel-title {
  font-size: 14px;
}

#tab-certificaciones .panel-subtitle {
  font-size: 11.5px;
  margin-top: 1px;
}

#tab-certificaciones .sb-validation-progress-panel {
  padding: 9px 12px;
  margin-bottom: 8px;
}

#tab-certificaciones .sb-val-head {
  margin-bottom: 6px;
}

#tab-certificaciones .sb-val-title {
  font-size: 13px;
}

#tab-certificaciones .sb-val-subtitle {
  font-size: 11.5px;
}

#tab-certificaciones .sb-val-bar-track {
  height: 5px;
  margin-bottom: 8px;
}

#tab-certificaciones .sb-val-programs-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

#tab-certificaciones .sb-val-prog-card {
  padding: 6px 9px;
  gap: 2px;
}

#tab-certificaciones .sb-val-prog-name {
  font-size: 11.5px;
}

#tab-certificaciones .sb-val-prog-desc {
  font-size: 10.5px;
  line-height: 1.3;
}

#tab-certificaciones .sheet-table-container {
  max-height: calc(100vh - 158px);
}

#certificationsFullTable {
  width: 100%;
  font-size: 11.5px;
}

#certificationsFullTable thead th {
  padding: 6px 7px;
  font-size: 11px;
}

#certificationsFullTable tbody td {
  padding: 3px 6px;
  height: 26px;
  font-size: 11.5px;
}

#certificationsFullTable .col-row-num {
  width: 32px;
  min-width: 32px;
  padding: 3px 4px;
}

#certificationsFullTable .col-cert-fecha,
#certificationsFullTable .col-cert-date {
  width: 88px;
  max-width: 94px;
}

#certificationsFullTable .col-cert-brand {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#certificationsFullTable .col-cert-fmt {
  max-width: 165px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#certificationsFullTable .col-cert-stream {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #475569;
  font-size: 11px;
}

#certificationsFullTable .col-cert-time,
#certificationsFullTable .col-cert-tc {
  font-size: 11px;
  white-space: nowrap;
}

#certificationsFullTable .col-cert-link {
  max-width: 195px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#certificationsFullTable .sheet-pill-badge {
  font-size: 10.5px;
  padding: 2px 6px;
}

#certificationsFullTable .btn-sheet-guion {
  padding: 2px 7px;
  font-size: 11px;
}

/* ============================================================================
   MODO COMPACTO DE ALTA DENSIDAD PARA /PRODUCTORES (100% ZOOM SIN RECORTE)
   ============================================================================ */

#tab-productores .sheet-top-bar {
  padding: 8px 12px;
  gap: 8px;
}

#tab-productores .sheet-day-select-wrap {
  height: 30px;
  padding: 0 8px;
}

#tab-productores .btn-day-step {
  width: 28px;
  height: 30px;
}

#tab-productores .sheet-filter-select,
#tab-productores .sheet-filter-input {
  height: 30px;
  font-size: 11.5px;
  padding: 0 8px;
}

#tab-productores .sheet-program-strip {
  padding: 6px 12px;
}

#tab-productores .sheet-prog-filter {
  height: 26px;
  padding: 0 9px;
  font-size: 11px;
}

#tab-productores .panel-header {
  padding: 8px 14px;
}

#tab-productores .panel-title {
  font-size: 14px;
}

#tab-productores .panel-subtitle {
  font-size: 11.5px;
  margin-top: 1px;
}

#tab-productores .sheet-table-container {
  max-height: calc(100vh - 188px);
}

#producersScheduleTable {
  width: 100%;
  table-layout: fixed;
  font-size: 11.5px;
}

#producersScheduleTable thead th {
  padding: 6px 7px;
  font-size: 11px;
}

#producersScheduleTable tbody td {
  padding: 3px 6px;
  height: 26px;
  font-size: 11.5px;
  vertical-align: middle;
}

#producersScheduleTable .col-row-num {
  width: 32px;
  min-width: 32px;
  padding: 3px 4px;
}

#producersScheduleTable .col-prod-prog {
  width: 118px;
}

#producersScheduleTable .col-prod-brand {
  width: 142px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#producersScheduleTable .col-prod-tipo {
  width: 124px;
}

#producersScheduleTable .col-prod-ubic {
  width: 142px;
}

#producersScheduleTable .col-prod-script {
  width: auto;
  overflow: hidden;
}

#producersScheduleTable .col-prod-nas {
  width: 176px;
}

#producersScheduleTable .col-prod-files {
  width: 224px;
}

#producersScheduleTable .prod-nas-cell {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

#producersScheduleTable .prod-nas-badge {
  font-size: 10px;
  padding: 2px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#producersScheduleTable .prod-tanda-summary-row td {
  background: #F8FAFC !important;
  border-top: 1px solid #CBD5E1;
  border-bottom: 1px solid #E2E8F0;
  padding: 5px 10px !important;
}

#producersScheduleTable .prod-tanda-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#producersScheduleTable .prod-tanda-summary-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

#producersScheduleTable .prod-tanda-summary-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #0F172A;
}

#producersScheduleTable .sheet-pill-badge {
  font-size: 10.5px;
  padding: 2px 6px;
}

#producersScheduleTable .prod-script-cell {
  gap: 6px;
  min-width: 0;
}

#producersScheduleTable .prod-script-text {
  font-size: 11.5px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  flex: 1;
  min-width: 0;
}

#producersScheduleTable .btn-sheet-guion {
  padding: 2px 7px;
  font-size: 10.5px;
  flex-shrink: 0;
}

#producersScheduleTable .producer-file-row {
  padding: 2px 6px;
  gap: 4px;
  font-size: 10.5px;
  min-height: 22px;
}

#producersScheduleTable .producer-file-name {
  max-width: 105px;
  font-size: 10.5px;
}

#producersScheduleTable .btn-preview-asset {
  height: 20px;
  padding: 0 6px;
  font-size: 10.5px;
}

#producersScheduleTable .btn-download-asset {
  padding: 2px 7px;
  font-size: 10.5px;
}

/* ============================================================================
   MODO COMPACTO DE ALTA DENSIDAD PARA /INHOUSE (IGUAL A CERTIFICACIONES)
   ============================================================================ */

#tab-inhouse .sheet-top-bar {
  padding: 8px 12px;
  gap: 8px;
}

#tab-inhouse .sheet-day-select-wrap {
  height: 30px;
  padding: 0 8px;
}

#tab-inhouse .btn-day-step {
  width: 28px;
  height: 30px;
}

#tab-inhouse .sheet-filter-select,
#tab-inhouse .sheet-filter-input {
  height: 30px;
  font-size: 11.5px;
  padding: 0 8px;
}

#tab-inhouse .sheet-filter-input {
  min-width: 155px;
}

#tab-inhouse .btn-sheet-action,
#tab-inhouse .btn-sheet-primary {
  height: 30px;
  padding: 0 9px;
  font-size: 11.5px;
}

#tab-inhouse .sheet-program-strip {
  padding: 6px 12px;
}

#tab-inhouse .sheet-prog-filter {
  height: 26px;
  padding: 0 9px;
  font-size: 11px;
}

#tab-inhouse .sb-validation-progress-panel {
  padding: 9px 12px;
  margin-bottom: 8px;
}

#tab-inhouse .sb-val-head {
  margin-bottom: 6px;
}

#tab-inhouse .sb-val-title {
  font-size: 13px;
}

#tab-inhouse .sb-val-subtitle {
  font-size: 11.5px;
}

#tab-inhouse .sb-val-bar-track {
  height: 5px;
  margin-bottom: 8px;
}

#tab-inhouse .sb-val-programs-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

#tab-inhouse .sb-val-prog-card {
  padding: 6px 9px;
  gap: 2px;
}

#tab-inhouse .sb-val-prog-name {
  font-size: 11.5px;
}

#tab-inhouse .sb-val-prog-desc {
  font-size: 10.5px;
  line-height: 1.3;
}

#tab-inhouse .sheet-table-container {
  max-height: calc(100vh - 158px);
}

#operationalGridTable {
  width: 100%;
  font-size: 11.5px;
}

#operationalGridTable thead th {
  padding: 6px 7px;
  font-size: 11px;
}

#operationalGridTable thead th .th-sub {
  font-size: 10px;
}

#operationalGridTable tbody td {
  padding: 3px 6px;
  height: 26px;
  font-size: 11.5px;
}

#operationalGridTable .col-row-num {
  width: 32px;
  min-width: 32px;
  padding: 3px 4px;
}

#operationalGridTable .col-fecha {
  width: 108px;
  max-width: 114px;
}

#operationalGridTable .sheet-date-text {
  font-size: 11.5px;
}

#operationalGridTable .sheet-date-input-mini {
  width: 18px;
  height: 18px;
  font-size: 10px;
}

#operationalGridTable .col-programa {
  width: 138px;
}

#operationalGridTable .col-programa .sheet-pill-select {
  width: 132px;
}

#operationalGridTable .col-tipo {
  width: 146px;
}

#operationalGridTable .col-tipo .sheet-pill-select {
  width: 140px;
}

#operationalGridTable .col-anuncio {
  width: 195px;
}

#operationalGridTable .col-segundos {
  width: 48px;
  max-width: 50px;
}

#operationalGridTable .col-ubicacion {
  width: 104px;
}

#operationalGridTable .col-ubicacion .sheet-pill-select {
  width: 98px;
}

#operationalGridTable .col-orden {
  width: 54px;
}

#operationalGridTable .col-link {
  min-width: 200px;
}

#operationalGridTable .sheet-pill-select {
  font-size: 10.5px;
  padding: 1px 16px 1px 7px;
  line-height: 1.3;
}

#operationalGridTable .sheet-pill-badge {
  font-size: 10.5px;
  padding: 1px 8px;
  line-height: 1.3;
}

#operationalGridTable .sheet-anuncio-input {
  font-size: 11.5px;
  padding: 1px 4px;
}

#operationalGridTable .btn-sheet-guion {
  padding: 2px 7px;
  font-size: 10.5px;
}

#operationalGridTable .sheet-sec-input {
  width: 40px;
  font-size: 11px;
  padding: 1px 2px;
}

#operationalGridTable .sheet-orden-num {
  font-size: 11px;
}

#operationalGridTable .btn-orden-move {
  width: 16px;
  height: 16px;
}

#operationalGridTable .sheet-yt-anchor {
  font-size: 11px;
  max-width: 220px;
}

#operationalGridTable .sheet-link-quick-input {
  height: 21px;
  padding: 1px 6px;
  font-size: 10.5px;
}

#operationalGridTable .btn-sheet-del-row {
  width: 18px;
  height: 18px;
  font-size: 13px;
}

/* ============================================================================
   GOOGLE WORKSPACE SSO (@INFOBAE.COM) + PORTAL DE ACCESOS
   ============================================================================ */

.login-sso-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-google-sso {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 16px;
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.btn-google-sso:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
}

.btn-google-sso:active {
  transform: translateY(0.5px);
}

.google-gsi-container {
  display: flex;
  justify-content: center;
  min-height: 0;
}

.login-sso-policy-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #475569;
}

.login-sso-policy-note svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #0F172A;
}

.login-sso-policy-note code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #0F172A;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 14px;
  color: #64748B;
  font-size: 11.5px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

.sso-admin-config-panel {
  margin: 0 18px 14px;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
}

.sso-admin-config-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr auto;
  gap: 12px;
  align-items: end;
}

.sso-admin-uris-hint {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #E2E8F0;
  font-size: 11.5px;
  color: #475569;
}

.sso-admin-uris-hint code {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  color: #0F172A;
}

/* ==========================================================================
   PORTAL DE EDICIÓN Y RUTA NAS (/edicion) — COLA COMPARTIDA GRUPAL
   ========================================================================== */
.nav-pending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
}

.nas-pending-queue-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: 14px;
  padding: 16px 18px;
  background: #F8FAFC;
}

.nas-empty-queue-box {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
}

.nas-empty-queue-title {
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 2px;
}

.nas-empty-queue-sub {
  font-size: 12.5px;
  color: #64748B;
}

.nas-pending-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nas-pending-card.is-highlighted {
  border-color: #0F172A;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.nas-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.nas-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.nas-card-brand {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #0F172A;
}

.nas-card-camp {
  font-weight: 400;
  color: #64748B;
  font-size: 13px;
}

.nas-card-queued-meta {
  font-size: 11px;
  color: #64748B;
  white-space: nowrap;
}

.nas-card-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
}

.nas-meta-label {
  display: block;
  font-size: 11px;
  color: #64748B;
  margin-bottom: 2px;
}

.nas-meta-val {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
}

.nas-card-assets-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
}

.nas-card-assets-title {
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
}

.nas-card-notes {
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}

.nas-mandatory-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #E2E8F0;
}

.nas-mandatory-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.nas-mandatory-label {
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
}

.nas-mandatory-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nas-mandatory-input {
  flex: 1;
  min-width: 240px;
}

.nas-mandatory-input.input-error-border {
  border-color: #DC2626 !important;
  background: #FEF2F2;
}

.nas-confirm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nas-mandatory-error {
  font-size: 11.5px;
  font-weight: 500;
  color: #DC2626;
}

@media (max-width: 900px) {
  .nas-pending-queue-container {
    grid-template-columns: 1fr;
  }
  .nas-card-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CONTROL DE EDICIÓN DE LÍNEAS CORRIENDO E HISTORIAL DE CAMBIOS AUDITABLE
   ========================================================================== */
.running-edit-effective-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  flex-wrap: wrap;
}

.running-edit-effective-info {
  flex: 1;
  min-width: 280px;
}

.running-edit-effective-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.running-edit-effective-sub {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748B;
}

.running-edit-effective-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 7px 12px;
}

.running-effective-date-input {
  width: 150px;
  height: 32px;
  padding: 4px 8px;
  font-size: 12.5px;
}

.form-input.is-contract-locked {
  background: #F8FAFC !important;
  color: #475569 !important;
  border-color: #CBD5E1 !important;
  cursor: not-allowed;
}

.running-modal-history-panel {
  border-top: 1px solid #E2E8F0;
  background: #F8FAFC;
  padding: 14px 20px 18px;
}

.running-modal-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.running-modal-history-title-group {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #0F172A;
}

.running-modal-history-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.line-history-modal-card {
  width: min(860px, 95vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.line-history-modal-body {
  overflow-y: auto;
  padding: 18px 20px;
  background: #F8FAFC;
}

.line-history-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.line-history-timeline.compact {
  max-height: 240px;
  overflow-y: auto;
}

.line-history-entry {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.line-history-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.line-history-entry-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.line-history-entry-stamp {
  font-size: 11.5px;
  color: #64748B;
}

.line-history-entry-summary {
  font-size: 12.5px;
  font-weight: 500;
  color: #0F172A;
  line-height: 1.4;
}

.line-history-entry-actor {
  font-size: 11.5px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.line-history-diffs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid #F1F5F9;
  padding-top: 8px;
}

.line-history-diff-row {
  display: grid;
  grid-template-columns: 165px 1fr 16px 1fr;
  align-items: baseline;
  gap: 8px;
  font-size: 11.5px;
  padding: 4px 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
}

.line-history-diff-field {
  font-weight: 600;
  color: #334155;
}

.line-history-diff-before {
  color: #64748B;
  text-decoration: line-through;
  word-break: break-word;
}

.line-history-diff-arrow {
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.line-history-diff-after {
  color: #0F172A;
  font-weight: 500;
  word-break: break-word;
}

.line-history-empty {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  font-size: 12.5px;
  color: #64748B;
}

.line-edited-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 600;
  color: #0F172A;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  cursor: pointer;
}

.line-edited-meta-pill:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

.line-edited-subtext {
  font-size: 10.5px;
  color: #64748B;
  margin-top: 2px;
  line-height: 1.3;
}

@media (max-width: 720px) {
  .line-history-diff-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .line-history-diff-arrow {
    display: none;
  }
}

/* ============================================================================
   REPLANIFICACIÓN MANUAL DE ANUNCIOS NO EMITIDOS + SELECTOR VISUAL DE ENTREVISTA
   (shadcn/ui + Swiss Minimalist · Superficies neutras #FFFFFF / #F8FAFC)
   ============================================================================ */

.cert-adjust-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cert-adjust-header-row .cert-adjust-title {
  margin-bottom: 0;
}

.cert-adjust-tools-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shadcn-btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  gap: 6px;
}

.cert-replan-box,
.cert-interview-picker-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cert-section-title {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #0F172A;
  margin: 0;
}

.cert-section-subtitle {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 12.5px;
  font-weight: 400;
  color: #64748B;
  margin: 3px 0 0 0;
  line-height: 1.4;
}

.cert-replan-existing-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
}

.cert-replan-existing-text {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 12px;
  color: #0F172A;
  line-height: 1.4;
}

.cert-replan-grid {
  display: grid;
  grid-template-columns: 195px 140px 150px 1.15fr 1.15fr;
  gap: 10px;
  align-items: end;
}

@media (max-width: 980px) {
  .cert-replan-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .cert-replan-grid {
    grid-template-columns: 1fr;
  }
}

.cert-replan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid #E2E8F0;
  flex-wrap: wrap;
}

.cert-replan-hint {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 12px;
  color: #64748B;
  flex: 1 1 260px;
  line-height: 1.4;
}

.cert-sb-mode-tabs {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.cert-sb-mode-btn {
  border: none;
  background: transparent;
  color: #475569;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}

.cert-sb-mode-btn:hover {
  color: #0F172A;
  background: #F1F5F9;
}

.cert-sb-mode-btn.active {
  background: #0F172A;
  color: #FFFFFF;
  font-weight: 600;
}

.cert-interview-guest-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cert-sb-status-line {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 12px;
  color: #64748B;
}

.cert-sb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}

.cert-sb-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.cert-sb-card:hover {
  border-color: #94A3B8;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.cert-sb-card.is-selected {
  border-color: #0F172A;
  box-shadow: 0 0 0 1px #0F172A;
}

.cert-sb-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0F172A;
  overflow: hidden;
}

.cert-sb-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cert-sb-tc-pill {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(15, 23, 42, 0.86);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
}

.cert-sb-card-body {
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
}

.cert-sb-card-clock {
  font-size: 11px;
  font-weight: 600;
  color: #0F172A;
}

.cert-sb-card-label {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11.5px;
  color: #475569;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 29px;
}

.cert-sb-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 5px;
  border-top: 1px solid #F1F5F9;
}

.cert-sb-mini-btn {
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.cert-sb-mini-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
}

.cert-sb-mini-btn-primary {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}

.cert-sb-mini-btn-primary:hover {
  background: #1E293B;
  border-color: #1E293B;
  color: #FFFFFF;
}

.cert-action-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.btn-cert-replan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  font-weight: 500;
}

.btn-cert-replan:hover {
  background: #1E293B;
  color: #FFFFFF;
  border-color: #1E293B;
}

.btn-cert-replan-done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  color: #0F172A;
  border-color: #CBD5E1;
}

.btn-cert-replan-subtle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  color: #334155;
  border-color: #CBD5E1;
  font-weight: 500;
}

.btn-cert-replan-subtle:hover {
  background: #F8FAFC;
  color: #0F172A;
  border-color: #94A3B8;
}

.btn-cert-interview {
  border-color: #0F172A;
  color: #0F172A;
  font-weight: 600;
}

.cert-nf-badges-stack {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.cert-link-inline-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-replanned-status,
.badge-replanned-origin,
.badge-interview-pending {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 500;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  white-space: nowrap;
}

.badge-replanned-status.is-clickable,
.badge-replanned-origin.is-clickable {
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.badge-replanned-status.is-clickable:hover,
.badge-replanned-origin.is-clickable:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
}

.row-replan-highlight td {
  background-color: #F1F5F9 !important;
  transition: background-color 0.4s ease;
}

.row-replan-highlight td:first-child {
  box-shadow: inset 3px 0 0 #0F172A;
}

.form-grid-3.is-live-only-conductor {
  grid-template-columns: minmax(240px, 380px);
}

.cert-replan-grid.is-live-no-tanda {
  grid-template-columns: 195px 145px 160px 1fr;
}

.cert-include-replan-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.cert-include-replan-toggle:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

.cert-include-replan-toggle input[type="checkbox"] {
  width: 13.5px;
  height: 13.5px;
  margin: 0;
  accent-color: #0F172A;
  cursor: pointer;
}

.smtp-toggle-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 11px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 12.5px;
  font-weight: 500;
  color: #0F172A;
  cursor: pointer;
  line-height: 1.35;
}

.smtp-toggle-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #0F172A;
  cursor: pointer;
}

@media (max-width: 980px) {
  .form-grid-3.is-live-only-conductor,
  .cert-replan-grid.is-live-no-tanda {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .form-grid-3.is-live-only-conductor,
  .cert-replan-grid.is-live-no-tanda {
    grid-template-columns: 1fr;
  }
}








