/* ============================================================
   stylesGenerales1.css  –  VERSIÓN MODIFICADA
   Cambios aplicados:
   · Sección CAMPOS DE TEXTO CORTO: label normal #B2B2B2,
     label focused #000000, línea normal 1px #B2B2B2,
     línea focused 2px #19AFE1, línea error 2px #D03438
   · Sección NUEVOS CSS FECHAS agregada al final
   ============================================================ */

.label-protegido::before {
  content: attr(data-label);
  content: "Nacionalidad (" !important;
  user-select: none !important;
  pointer-events: none !important;
}

.label-protegido .color-required::before {
  content: "*";
}

.label-protegido[style] {
  all: revert !important;
  content: "Nacionalidad (" !important;
}

@import url("https://fonts.googleapis.com/icon?family=Material+Icons");

/* =======================
   VARIABLES GLOBALES
======================= */
:root {
  --sat-color-focus: #19afe1;
  --sat-color-active: #146498;
  --sat-color-base: #19324b;
  --sat-color-correct: #81ab1f;
  --sat-color-error: #d03438;
  --sat-color-warning: #fac83c;
  --sat-color-inactive: #dcdcdc;
  --sat-color-white: #ffffff;
  --sat-color-black: #000000;
  --sat-radius-button: 3.1416rem;
  --sat-space-base: 1rem;
}

/* =======================
   BASE
======================= */
html,
body {
  height: 100%;
  background-color: #eee;
  margin: 0;
}

* {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
}

/* =======================
   COLORES DE TEXTO
======================= */
.color-blue-sat {
  color: var(--sat-color-base) !important;
}

.color-blue-active-sat {
  color: var(--sat-color-active) !important;
}

.color-blue-focus-sat {
  color: var(--sat-color-focus) !important;
}

.color-gray-sat {
  color: var(--sat-color-inactive) !important;
}

.color-success-sat {
  color: var(--sat-color-correct) !important;
}

.color-red-sat {
  color: var(--sat-color-error) !important;
}

.color-yellow-sat {
  color: var(--sat-color-warning) !important;
}

.color-white-sat {
  color: var(--sat-color-white) !important;
}

.color-black-sat {
  color: var(--sat-color-black) !important;
}

/* =======================
   FONDOS
======================= */
.bg-blue-sat {
  background-color: var(--sat-color-base) !important;
  color: var(--sat-color-white) !important;
}

.bg-blue-active-sat {
  background-color: var(--sat-color-active) !important;
  color: var(--sat-color-white) !important;
}

.bg-blue-focus-sat {
  background-color: var(--sat-color-focus) !important;
  color: var(--sat-color-white) !important;
}

.bg-gray-sat {
  background-color: var(--sat-color-inactive) !important;
  color: var(--sat-color-white) !important;
}

.bg-success-sat {
  background-color: var(--sat-color-correct) !important;
  color: var(--sat-color-white) !important;
}

.bg-success-sat:disabled {
  background-color: var(--sat-color-white) !important;
  color: #b2b2b2 !important;
  cursor: not-allowed;
}

.bg-red-sat {
  background-color: var(--sat-color-error) !important;
  color: var(--sat-color-white) !important;
}

.bg-yellow-sat {
  background-color: var(--sat-color-warning) !important;
  color: var(--sat-color-white) !important;
}

.bg-white-sat {
  background-color: var(--sat-color-white) !important;
  color: var(--sat-color-black) !important;
}

.bg-black-sat {
  background-color: var(--sat-color-black) !important;
  color: var(--sat-color-white) !important;
}

/* =======================
   BOTONES
======================= */
.btn-blue-sat {
  background-color: var(--sat-color-base) !important;
  color: #fff !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16) !important;
  transition: background-color 0.3s ease;
}

.btn-blue-sat:hover:not(:active) {
  background-color: var(--sat-color-white) !important;
  color: var(--sat-color-base) !important;
  border: 2px solid var(--sat-color-base);
}

.btn-blue-sat:active {
  background-color: var(--sat-color-active) !important;
  color: var(--sat-color-white) !important;
  border: 2px solid var(--sat-color-white) !important;
}

.btn-blue-sat:disabled {
  background-color: var(--sat-color-white) !important;
  color: #b2b2b2 !important;
  cursor: not-allowed;
}

.btn-blue-active-sat {
  background-color: var(--sat-color-active) !important;
  color: var(--sat-color-white) !important;
}

.btn-blue-focus-sat {
  background-color: var(--sat-color-focus) !important;
  color: var(--sat-color-white) !important;
}

.btn-red-sat {
  background-color: var(--sat-color-error) !important;
  color: #fff !important;
}

.btn-success-sat {
  background-color: var(--sat-color-correct) !important;
  color: #fff !important;
}

.btn-success-sat:disabled {
  background-color: var(--sat-color-white) !important;
  color: #b2b2b2 !important;
  cursor: not-allowed;
}

.btn-yellow-sat {
  background-color: var(--sat-color-warning) !important;
  color: #fff !important;
}

.btn.btn-blue-sat,
.btn.btn-blue-active-sat,
.btn.btn-blue-focus-sat,
.btn.btn-red-sat,
.btn.btn-success-sat,
.btn.btn-yellow-sat,
button.btn.btn-blue-sat,
button.btn.btn-blue-active-sat,
button.btn.btn-blue-focus-sat,
button.btn.btn-red-sat,
button.btn.btn-success-sat,
button.btn.btn-yellow-sat,
.mat-raised-button.btn.btn-blue-sat,
.mat-raised-button.btn.btn-blue-active-sat,
.mat-raised-button.btn.btn-blue-focus-sat,
.mat-button.btn.btn-blue-sat,
.mat-button.btn.btn-blue-active-sat,
.mat-button.btn.btn-blue-focus-sat,
.mat-raised-button.btn-blue-sat,
.mat-raised-button.btn-blue-active-sat,
.mat-raised-button.btn-blue-focus-sat,
.mat-button.btn-blue-sat,
.mat-button.btn-blue-active-sat,
.mat-button.btn-blue-focus-sat {
  border-radius: 50px !important;
  -webkit-border-radius: 50px !important;
  -moz-border-radius: 50px !important;
  -ms-border-radius: 50px !important;
  -o-border-radius: 50px !important;
}

.btn-blue-sat .mat-button-wrapper,
.btn-blue-active-sat .mat-button-wrapper,
.btn-blue-focus-sat .mat-button-wrapper,
.btn-red-sat .mat-button-wrapper,
.btn-success-sat .mat-button-wrapper,
.btn-yellow-sat .mat-button-wrapper,
.btn-blue-sat .mat-button-ripple,
.btn-blue-active-sat .mat-button-ripple,
.btn-blue-focus-sat .mat-button-ripple,
.btn-red-sat .mat-button-ripple,
.btn-success-sat .mat-button-ripple,
.btn-yellow-sat .mat-button-ripple,
.btn-blue-sat .mat-button-focus-overlay,
.btn-blue-active-sat .mat-button-focus-overlay,
.btn-blue-focus-sat .mat-button-focus-overlay,
.btn-red-sat .mat-button-focus-overlay,
.btn-success-sat .mat-button-focus-overlay,
.btn-yellow-sat .mat-button-focus-overlay,
.btn.btn-blue-sat .mat-button-wrapper,
.btn.btn-blue-active-sat .mat-button-wrapper,
.btn.btn-blue-focus-sat .mat-button-wrapper,
.btn.btn-red-sat .mat-button-wrapper,
.btn.btn-success-sat .mat-button-wrapper,
.btn.btn-yellow-sat .mat-button-wrapper {
  border-radius: 50px !important;
  -webkit-border-radius: 50px !important;
  -moz-border-radius: 50px !important;
}

.btn-blue-sat::before,
.btn-blue-sat::after,
.btn-blue-active-sat::before,
.btn-blue-active-sat::after,
.btn-blue-focus-sat::before,
.btn-blue-focus-sat::after,
.btn-red-sat::before,
.btn-red-sat::after,
.btn-success-sat::before,
.btn-success-sat::after,
.btn-yellow-sat::before,
.btn-yellow-sat::after,
.btn.btn-blue-sat::before,
.btn.btn-blue-sat::after,
.btn.btn-blue-active-sat::before,
.btn.btn-blue-active-sat::after,
.btn.btn-blue-focus-sat::before,
.btn.btn-blue-focus-sat::after {
  border-radius: 50px !important;
  -webkit-border-radius: 50px !important;
  -moz-border-radius: 50px !important;
}

.mat-button.btn,
.mat-raised-button.btn,
.mat-raised-button.btn:not([class*="mat-elevation-z"]) {
  border-radius: inherit !important;
}

.btn-blue-sat:hover,
.btn-blue-sat:focus,
.btn-blue-sat:active,
.btn-blue-sat:disabled,
.btn.btn-blue-sat:hover,
.btn.btn-blue-sat:focus,
.btn.btn-blue-sat:active,
.btn.btn-blue-sat:disabled {
  border-radius: 50px !important;
}

/* =======================
   FIN BOTONES
======================= */

/* =======================
   FORMULARIOS
======================= */
.mat-form-field {
  width: 100%;
}

/* =======================
   TABLAS
======================= */
.header-table,
.regional-header,
.footer-title {
  background-color: #193248 !important;
  color: #ffffff !important;
  text-transform: uppercase;
  font-size: 1.143rem;
  font-weight: 600;
}

.cell-table {
  text-align: left !important;
  font-size: 0.952rem;
}

.table-container {
  position: relative;
  max-height: 400px;
  overflow: auto;
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.table-responsive .mat-table {
  width: 100%;
  border-collapse: collapse;
}

.table-responsive .mat-row,
.table-responsive .mat-header-row {
  display: table-row;
}

.table-responsive .mat-cell,
.table-responsive .mat-header-cell {
  padding: 0 5px;
  white-space: nowrap;
  vertical-align: middle;
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-family: Arial, Helvetica, sans-serif;
}

.responsive-table thead tr {
  background-color: #193248;
}

.responsive-table th {
  color: #ffffff;
  padding: 10px;
  text-align: left;
  border: 1px solid #193248;
  font-weight: 600;
}

.responsive-table td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ffffff;
  background-color: #ffffff;
  color: #333333;
}

.responsive-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

@media (max-width: 768px) {
  .responsive-table thead {
    display: none;
  }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table tr {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background-color: #ffffff;
  }

  .responsive-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border: none;
    border-bottom: 1px solid #f0f0f0;
  }

  .responsive-table td:last-child {
    border-bottom: none;
  }

  .responsive-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 45%;
    font-weight: bold;
    text-align: left;
    color: #193248;
  }
}

.sortable-header {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.sortable-header:hover {
  opacity: 0.85;
}

.sort-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 4px;
}

.sort-icon .mat-icon,
.sort-icon mat-icon {
  font-size: 18px !important;
  width: 18px !important;
  height: 18px !important;
  line-height: 18px !important;
  vertical-align: middle;
}

.sort-inactive {
  color: rgba(255, 255, 255, 0.5) !important;
}

.sort-active {
  color: #FFFFFF !important;
}

.sort-icons {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 0;
}

.sort-btn {
  font-size: 18px !important;
  width: 18px !important;
  height: 12px !important;
  line-height: 12px !important;
  overflow: hidden !important;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4) !important;
  transition: color 0.2s ease;
}

.sort-btn:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.sort-btn.sort-active {
  color: #FFFFFF !important;
}

/* =======================
   LAYOUT
======================= */
.title-header-av {
  color: #146498;
  font-size: 2.66rem !important;
  font-family: "Arial Black", Arial, sans-serif;
  margin: 30px;
  font-weight: 900 !important;
}

.container-av {
  margin: 30px;
}

.margen-base {
  margin-bottom: var(--sat-space-base);
}

.card-component {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16) !important;
  border-radius: 20px !important;
  padding: 40px !important;
  margin: 30px !important;
  background-color: #fff !important;
}

.button-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--sat-space-base) 0;
}

.input-section {
  flex: 0 1 48%;
  max-width: 48%;
  min-width: 300px;
}

/* =======================
   ALERTAS
======================= */
.alerta-importante {
  border-radius: 10px !important;
  padding: 20px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.alerta-titulo {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--sat-color-base);
}

.alerta-cuerpo {
  font-size: 12pt;
  color: var(--sat-color-black);
}

.btn-continuar,
.btn-cancelar {
  background: none;
  border: none;
  cursor: pointer;
}

.btn-continuar {
  color: var(--sat-color-base);
  font-weight: bold;
}

.btn-cancelar {
  color: #00a8e8;
}

/* =======================
   ANGULAR MATERIAL – CHECKBOX
======================= */
.mat-checkbox-input:focus+.mat-checkbox-frame {
  border-color: #19afe1 !important;
  border-width: 2px !important;
}

.mat-checkbox-checked.mat-accent .mat-checkbox-background {
  background-color: #19afe1 !important;
}

.mat-checkbox-disabled .mat-checkbox-frame {
  border-color: #ccc !important;
}

.mat-checkbox-disabled .mat-checkbox-background {
  background-color: #e0e0e0 !important;
}

/* =======================
   ESTILOS DE ERROR GLOBAL
======================= */
mat-error.mat-error,
.mat-form-field .mat-error,
.mat-form-field-subscript-wrapper .mat-error {
  color: #d03438 !important;
  font-size: 10pt !important;
  font-family: Arial, sans-serif !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  padding-left: 22px !important;
  min-height: 18px !important;
  margin-top: 4px !important;
  background: transparent !important;
  overflow: visible !important;
}

mat-error.mat-error::before,
.mat-form-field .mat-error::before,
.mat-form-field-subscript-wrapper .mat-error::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 16px !important;
  height: 14px !important;
  background: #d03438 !important;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%) !important;
  display: block !important;
}

mat-error.mat-error::after,
.mat-form-field .mat-error::after,
.mat-form-field-subscript-wrapper .mat-error::after {
  content: "!" !important;
  position: absolute !important;
  left: 6px !important;
  top: calc(50% - 3px) !important;
  color: white !important;
  font-size: 9px !important;
  font-weight: bold !important;
  z-index: 1 !important;
  background: transparent !important;
  display: block !important;
}

.mat-form-field-subscript-wrapper {
  overflow: visible !important;
}

/* =======================
   ENCABEZADO
======================= */
.header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 10px 15px;
  border-radius: 8px;
  gap: 20px;
  flex-wrap: nowrap;
}

.header-logo img {
  width: 220px;
  height: auto;
}

.header-info {
  flex: 1;
  text-align: center;
}

.header-info h2 {
  margin: 0;
  font-size: 32px;
  font-weight: bold;
  color: #000;
}

.header-info span {
  font-weight: normal;
  color: #000;
}

.card-icon-box {
  background: #0c4da2;
  padding: 10px;
  color: white;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.material-icons {
  font-size: 30px;
}

@media (max-width: 768px) {
  .header-line {
    flex-direction: column;
    text-align: center;
  }

  .header-info {
    order: 2;
  }

  .header-logo {
    order: 1;
  }
}

.dialog-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.dialog-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 16px;
}

.alert {
  background-color: #fac83c;
}

.error {
  background-color: #d03438;
}

.info {
  background-color: #146498;
}

.success {
  background-color: #81ab1f;
}

.dialog-title {
  font-size: 14pt;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
}

.dialog-message {
  font-size: 12pt;
  margin: 16px 0;
}

.mat-icon-24-sat {
  font-size: 24px !important;
  width: 24px !important;
  height: 24px !important;
  line-height: 24px !important;
}

/* =======================
   PDF
======================= */
.pdf-mode,
.pdf-mode * {
  box-shadow: none !important;
  filter: none !important;
}

.pdf-mode {
  background: #fff !important;
}

.pdf-page {
  width: 816px;
  min-height: 1056px;
  margin: 0 auto;
  padding: 40px;
  padding-bottom: 120px;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

.pdf-page,
.pdf-page * {
  box-shadow: none !important;
}

.pdf-page img,
.pdf-page table,
.pdf-page .row,
.pdf-page .no-break {
  break-inside: avoid;
  page-break-inside: avoid;
}

.pdf-page * {
  max-width: 100% !important;
  box-sizing: border-box;
}

/* ============================================================
   CAMPOS DE TEXTO CORTO  –  MODIFICADO según requerimiento 2A
   · Label normal:   Arial 14pt  color #B2B2B2  (era #000000)
   · Label focused:  color #000000  (regla nueva)
   · Línea normal:   1px  #B2B2B2
   · Línea focused:  2px  #19AFE1
   · Línea error:    2px  #D03438  (sin cambio de grosor)
   · Texto input:    Arial 12pt  #000000
   · Placeholder:    #B2B2B2
   · Asterisco req:  #D03438
   · Deshabilitado:  todo #B2B2B2
============================================================ */

.mat-form-field,
.mat-mdc-form-field {
  width: 100%;
  font-family: Arial, sans-serif !important;
}

/* ── Etiqueta estado normal: gris #B2B2B2, 14pt ── */
.mat-form-field-label,
.mat-mdc-form-field .mat-mdc-floating-label {
  font-family: Arial, sans-serif !important;
  font-size: 14pt !important;
  color: #B2B2B2 !important;
  font-weight: normal !important;
}

/* ── Etiqueta estado focused: negro #000000 ── */
.mat-form-field.mat-focused .mat-form-field-label,
.mat-mdc-form-field.mat-focused .mat-mdc-floating-label {
  color: #000000 !important;
}

/* ── Texto ingresado: negro #000000, 12pt ── */
.mat-input-element,
.mat-mdc-input-element {
  font-family: Arial, sans-serif !important;
  font-size: 12pt !important;
  color: #000000 !important;
  font-weight: normal !important;
}

/* ── Línea inferior estado normal: 1px #B2B2B2 ── */
.mat-form-field-underline,
.mat-mdc-text-field-wrapper .mat-mdc-form-field-focus-overlay {
  background-color: #B2B2B2 !important;
  height: 1px !important;
}

.mat-form-field-appearance-legacy .mat-form-field-underline {
  background-color: #B2B2B2 !important;
  height: 1px !important;
}

/* ── Estado seleccionado/focused – texto ── */
.mat-form-field.mat-focused .mat-input-element,
.mat-mdc-form-field.mat-focused .mat-mdc-input-element {
  color: #000000 !important;
}

/* ── Estado seleccionado/focused – línea 2px #19AFE1 ── */
.mat-form-field.mat-focused .mat-form-field-underline,
.mat-form-field.mat-focused .mat-form-field-ripple,
.mat-mdc-form-field.mat-focused .mat-mdc-line-ripple {
  background-color: #19AFE1 !important;
  height: 2px !important;
}

.mat-form-field-appearance-legacy.mat-focused .mat-form-field-underline {
  background-color: #19AFE1 !important;
  height: 2px !important;
}

.mat-form-field-ripple {
  background-color: #19AFE1 !important;
  height: 2px !important;
}

/* ── Estado ingreso de texto ── */
.mat-input-element:focus,
.mat-mdc-input-element:focus {
  color: #000000 !important;
  outline: none !important;
}

.mat-input-element:focus~.mat-form-field-underline,
.mat-input-element:focus~.mat-form-field-ripple {
  background-color: #19AFE1 !important;
  height: 2px !important;
}

/* ── Estado texto ingresado ── */
.mat-input-element:not(:placeholder-shown),
.mat-mdc-input-element:not(:placeholder-shown) {
  color: #000000 !important;
}

.mat-input-element:not(:placeholder-shown)~.mat-form-field-underline {
  background-color: #B2B2B2 !important;
  height: 1px !important;
}

/* ── Estado alerta/error – texto ── */
.mat-form-field.mat-form-field-invalid .mat-input-element,
.mat-mdc-form-field.mat-form-field-invalid .mat-mdc-input-element {
  color: #000000 !important;
}

/* ── Estado alerta/error – línea 2px #D03438 ── */
.mat-form-field.mat-form-field-invalid .mat-form-field-underline,
.mat-form-field.mat-form-field-invalid .mat-form-field-ripple,
.mat-mdc-form-field.mat-form-field-invalid .mat-mdc-line-ripple {
  background-color: #D03438 !important;
  height: 2px !important;
}

/* ── Mensaje de error con triángulo ── */
.mat-error {
  color: #D03438 !important;
  font-size: 10pt !important;
  font-family: Arial, sans-serif !important;
  display: flex !important;
  align-items: center !important;
  position: relative;
  padding-left: 22px;
  min-height: 18px;
  margin-top: 4px;
  background: transparent !important;
}

.mat-error::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 14px;
  background: #D03438;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.mat-error::after {
  content: "!" !important;
  position: absolute !important;
  left: 6px !important;
  top: calc(50% - 3px) !important;
  color: white !important;
  font-size: 9px !important;
  font-weight: bold !important;
  z-index: 1 !important;
}

/* ── Estado deshabilitado ── */
.mat-form-field.mat-form-field-disabled .mat-input-element,
.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-input-element {
  color: #B2B2B2 !important;
}

.mat-form-field.mat-form-field-disabled .mat-form-field-label,
.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-floating-label {
  color: #B2B2B2 !important;
}

.mat-form-field.mat-form-field-disabled .mat-form-field-underline,
.mat-mdc-form-field.mat-form-field-disabled .mat-mdc-line-ripple {
  background-color: #B2B2B2 !important;
  height: 1px !important;
}

/* ── Asterisco requerido ── */
.mat-form-field-required-marker,
.mat-mdc-form-field-required-marker {
  color: #D03438 !important;
  font-weight: bold !important;
}

/* ── Placeholder ── */
.mat-input-element::placeholder,
.mat-mdc-input-element::placeholder {
  color: #B2B2B2 !important;
  font-family: Arial, sans-serif !important;
  font-size: 12pt !important;
  opacity: 1 !important;
}

.mat-form-field-appearance-legacy .mat-form-field-label {
  transition: none !important;
}

.mat-form-field-wrapper {
  padding-bottom: 1.25em !important;
}

.mat-form-field-subscript-wrapper {
  margin-top: 0.5em !important;
}

.mat-form-field-underline {
  height: 1px !important;
}

.mat-form-field.mat-focused .mat-form-field-ripple,
.mat-form-field.mat-focused .mat-form-field-underline {
  height: 2px !important;
}

.mat-form-field.mat-form-field-invalid .mat-form-field-underline {
  height: 2px !important;
}

/* ── Variables CSS para campos ── */
:root {
  --sat-input-normal-line: #B2B2B2;
  --sat-input-focus-line: #19AFE1;
  --sat-input-text: #000000;
  --sat-input-label: #B2B2B2;
  --sat-input-error: #D03438;
}

.mat-form-field-underline {
  background-color: var(--sat-input-normal-line) !important;
}

.mat-form-field.mat-focused .mat-form-field-ripple {
  background-color: var(--sat-input-focus-line) !important;
}

.mat-input-element {
  color: var(--sat-input-text) !important;
}

.mat-form-field-label {
  color: var(--sat-input-label) !important;
}

.mat-error {
  color: var(--sat-input-error) !important;
}

@media (max-width: 768px) {

  .mat-form-field-label,
  .mat-mdc-form-field .mat-mdc-floating-label {
    font-size: 13pt !important;
  }

  .mat-input-element,
  .mat-mdc-input-element {
    font-size: 11pt !important;
  }

  .mat-error {
    font-size: 9pt !important;
  }
}

/* FIN CAMPOS DE TEXTO SAT */

/* ============================================================
   CORRECCIÓN FONDO GRIS – mat-form-field-custom
   El tema Material Dashboard aplica fondo gris al wrapper.
   Se fuerza transparente + línea SAT correcta.
============================================================ */

/* Quitar fondo gris del wrapper y flex */
.mat-form-field-custom .mat-form-field-wrapper,
.mat-form-field-custom .mat-form-field-flex,
.mat-form-field-custom .mat-form-field-infix,
.mat-form-field-custom.mat-form-field-appearance-legacy .mat-form-field-wrapper,
.mat-form-field-custom.mat-form-field-appearance-legacy .mat-form-field-flex,
.mat-form-field-custom.mat-form-field-appearance-legacy .mat-form-field-infix {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Línea inferior estado normal: 1px #B2B2B2 */
.mat-form-field-custom .mat-form-field-underline,
.mat-form-field-custom.mat-form-field-appearance-legacy .mat-form-field-underline {
  background-color: #B2B2B2 !important;
  height: 1px !important;
  bottom: 0 !important;
}

/* Línea inferior estado focused: 2px #19AFE1 */
.mat-form-field-custom.mat-focused .mat-form-field-underline,
.mat-form-field-custom.mat-focused .mat-form-field-ripple,
.mat-form-field-custom.mat-form-field-appearance-legacy.mat-focused .mat-form-field-underline {
  background-color: #19AFE1 !important;
  height: 2px !important;
}

.mat-form-field-custom .mat-form-field-ripple {
  background-color: #19AFE1 !important;
}

/* Línea inferior estado error: 2px #D03438 */
.mat-form-field-custom.mat-form-field-invalid .mat-form-field-underline,
.mat-form-field-custom.mat-form-field-invalid .mat-form-field-ripple {
  background-color: #D03438 !important;
  height: 2px !important;
}

/* Label: Arial 14pt #B2B2B2 normal, #000000 focused */
.mat-form-field-custom .mat-form-field-label {
  font-family: Arial, sans-serif !important;
  font-size: 14pt !important;
  color: #B2B2B2 !important;
  font-weight: normal !important;
}

.mat-form-field-custom.mat-focused .mat-form-field-label {
  color: #000000 !important;
}

.mat-form-field-custom.mat-form-field-invalid .mat-form-field-label {
  color: #000000 !important;
}

/* Texto del input: Arial 12pt #000000 */
.mat-form-field-custom input.mat-input-element {
  font-family: Arial, sans-serif !important;
  font-size: 12pt !important;
  color: #000000 !important;
  background: transparent !important;
  caret-color: #19AFE1 !important;
}

/* Placeholder: #B2B2B2 */
.mat-form-field-custom input.mat-input-element::placeholder {
  color: #B2B2B2 !important;
  font-family: Arial, sans-serif !important;
  font-size: 12pt !important;
}

/* Asterisco requerido: #D03438 */
.mat-form-field-custom .mat-form-field-required-marker {
  color: #D03438 !important;
}

/* Estado deshabilitado: todo #B2B2B2 */
.mat-form-field-custom.mat-form-field-disabled .mat-form-field-label,
.mat-form-field-custom.mat-form-field-disabled input.mat-input-element {
  color: #B2B2B2 !important;
}

.mat-form-field-custom.mat-form-field-disabled .mat-form-field-underline {
  background-color: #B2B2B2 !important;
  height: 1px !important;
}

/* Quitar padding extra del wrapper legacy */
.mat-form-field-custom.mat-form-field-appearance-legacy .mat-form-field-wrapper {
  padding-bottom: 1.25em !important;
}

/* ============================================================
   FIN CORRECCIÓN FONDO GRIS
============================================================ */

/* ===================== MENU DE UBICACION ==================== */
.menu-ubicacion {
  font-family: Arial, sans-serif;
  font-size: 12pt;
  font-weight: normal;
  color: #000000;
}

.breadcrumb-btn {
  font-family: Arial, sans-serif !important;
  font-size: 12pt !important;
  font-weight: normal !important;
  color: #000000 !important;
  padding: 0 !important;
  min-width: auto !important;
  text-transform: none !important;
  line-height: normal !important;
}

.breadcrumb-btn:hover {
  text-decoration: underline;
  background: transparent !important;
}

.separador {
  margin: 0 4px;
  color: #000000;
}

.actual {
  font-family: Arial, sans-serif;
  font-size: 12pt;
  font-weight: normal;
  color: #000000;
}

/* ========= MENU VISOR ========== */
.image-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background-color: #19324b;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.toolbar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toolbar-btn i {
  color: #ffffff;
  font-size: 22px;
}

.toolbar-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.global-tooltip {
  position: fixed;
  background: #0f2235;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 99999;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============= PANTALLA DE ACCESO RESTRINGIDO ==================*/
.acceso-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("https://cdn.desa.sat.gob.gt/resources/img/Fondo%20Sistema.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: rgba(0, 40, 80, 0.65);
}

.contenido {
  position: relative;
  z-index: 2;
  padding: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.card-restringido {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  color: #ffffff;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: fadeIn 0.8s ease;
}

.icono {
  font-size: 70px;
  margin-bottom: 15px;
  color: #ffffff;
}

.icono mat-icon {
  font-size: 70px;
}

@media (max-width: 768px) {
  .card-restringido {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .icono mat-icon {
    font-size: 60px;
  }
}

/* BARRA DE PROCESO */
/* ============================================================
   BARRA DE PROCESO – Clases propias (.procesos-*)
============================================================ */
.procesos-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
}

.procesos-line {
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #dcdcdc;
  border-radius: 4px;
  z-index: 1;
}

.procesos-line-fill {
  position: absolute;
  top: 12px;
  left: 0;
  height: 4px;
  background: #19afe1;
  border-radius: 4px;
  z-index: 2;
  transition: width 0.4s ease;
}

.procesos-step {
  position: relative;
  text-align: center;
  z-index: 3;
  width: 100%;
}

.procesos-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dcdcdc;
  color: #b2b2b2;
  line-height: 24px;
  margin: 0 auto;
  font-weight: bold;
  font-family: Arial;
}

.procesos-title {
  margin-top: 8px;
  font-size: 16px;
  font-family: Arial;
  color: #b2b2b2;
}

.active .procesos-circle {
  background: #ffffff;
  border: 2px solid #19afe1;
  color: #19afe1;
}

.active .procesos-title {
  color: #000000;
}

.completed .procesos-circle {
  background: #19afe1;
  color: #ffffff;
}

.completed .procesos-title {
  color: #000000;
}

/* ============================================================
   BARRA DE PROCESO – Angular Material Stepper (mat-stepper)
   Compatible con Angular Material 15.x
   Selectores prefijados con .mat-horizontal-stepper-header-container
   para no afectar otros sistemas que usen este S3.
============================================================ */

/* Línea conectora entre pasos (gris base) */
.mat-horizontal-stepper-header-container .mat-stepper-horizontal-line {
  border-top-width: 4px !important;
  border-top-style: solid !important;
  border-top-color: #dcdcdc !important;
  flex: auto !important;
  min-width: 20px !important;
  margin: 0 -4px !important;
}

/* Contenedor principal del stepper */
.mat-horizontal-stepper-header-container {
  background: transparent !important;
  padding: 16px 0 !important;
}

/* Header de cada paso */
.mat-horizontal-stepper-header-container .mat-step-header {
  padding: 0 8px !important;
  overflow: visible !important;
  background: transparent !important;
}

/* Quitar fondo hover/focus */
.mat-horizontal-stepper-header-container .mat-step-header:hover,
.mat-horizontal-stepper-header-container .mat-step-header:focus {
  background: transparent !important;
}

/* Círculo de cada paso (estado inactivo) */
.mat-horizontal-stepper-header-container .mat-step-icon {
  width: 24px !important;
  height: 24px !important;
  background-color: #dcdcdc !important;
  color: #b2b2b2 !important;
  font-family: Arial, sans-serif !important;
  font-weight: bold !important;
}

/* Círculo del paso activo */
.mat-horizontal-stepper-header-container .mat-step-icon-selected {
  background-color: #ffffff !important;
  border: 2px solid #19afe1 !important;
  color: #19afe1 !important;
}

/* Círculo del paso completado */
.mat-horizontal-stepper-header-container .mat-step-icon-state-done,
.mat-horizontal-stepper-header-container .mat-step-icon-state-edit {
  background-color: #19afe1 !important;
  color: #ffffff !important;
}

/* Título de cada paso (inactivo) */
.mat-horizontal-stepper-header-container .mat-step-label {
  font-family: Arial, sans-serif !important;
  font-size: 16px !important;
  color: #b2b2b2 !important;
}

/* Título del paso activo y seleccionado */
.mat-horizontal-stepper-header-container .mat-step-label-active,
.mat-horizontal-stepper-header-container .mat-step-label-selected {
  color: #000000 !important;
}

/* ============================================
   PAGINACION
============================================ */
.paginacion-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  gap: 4px;
  flex-wrap: wrap;
}

.paginacion-btn {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid transparent;
  background-color: #ffffff;
  color: #000000;
  font-size: 16px;
  font-family: Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.paginacion-btn:hover:not(:disabled):not(.seleccionado) {
  background-color: #f5f5f5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.paginacion-btn:active:not(:disabled) {
  transform: translateY(0);
}

.paginacion-btn:disabled {
  color: #cccccc;
  cursor: not-allowed;
  box-shadow: none;
}

.paginacion-nav-btn {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  color: #666666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.paginacion-nav-btn:hover:not(:disabled) {
  background-color: #f5f5f5;
  border-color: #19afe1;
  color: #19afe1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.paginacion-nav-btn:active:not(:disabled) {
  transform: translateY(0);
}

.paginacion-nav-btn:disabled {
  color: #cccccc;
  border-color: #f0f0f0;
  background-color: #fafafa;
  cursor: not-allowed;
  box-shadow: none;
}

.paginacion-btn.enfocado {
  border: 2px solid #19afe1;
  color: #19afe1;
  background-color: #ffffff;
}

.paginacion-btn.seleccionado {
  background-color: #19afe1;
  color: #ffffff;
  font-weight: 600;
  border-color: #19afe1;
  box-shadow: 0 2px 6px rgba(25, 175, 225, 0.3);
}

.paginacion-btn.seleccionado:hover {
  background-color: #1599c7;
  border-color: #1599c7;
  box-shadow: 0 3px 8px rgba(25, 175, 225, 0.4);
}

.paginacion-dots {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999999;
  font-size: 20px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
}

.paginacion-icon {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 768px) {
  .paginacion-container {
    gap: 2px;
    padding: 15px 0;
  }

  .paginacion-btn,
  .paginacion-nav-btn {
    min-width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .paginacion-icon {
    font-size: 18px;
  }

  .paginacion-dots {
    min-width: 30px;
    height: 36px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .paginacion-container {
    gap: 2px;
    padding: 10px 0;
  }

  .paginacion-btn,
  .paginacion-nav-btn {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .paginacion-icon {
    font-size: 16px;
  }

  .paginacion-dots {
    min-width: 24px;
    height: 32px;
    font-size: 14px;
  }
}

/* =======================
   ERROR DISPLAY
======================= */
.error-msg {
  color: red;
  display: inline-block;
  position: absolute;
  font-size: 75%;
  margin-top: 2.604167em;
  top: calc(100% - 1.72916667em);
}

.fix-error-icon {
  top: 27px;
}

/* ============================================
   LOADING SAT
============================================ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease-in;
}

.loading-container-sat {
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: relative;
}

.loading-spinner-wrapper {
  width: 122px;
  height: 122px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.loading-spinner-sat {
  width: 122px;
  height: 122px;
  object-fit: contain;
}

.loading-text-sat {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
  color: #000000;
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .loading-container-sat {
    width: 180px;
    height: 180px;
    padding: 15px;
  }

  .loading-spinner-wrapper,
  .loading-spinner-sat {
    width: 110px;
    height: 110px;
  }

  .loading-text-sat {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .loading-container-sat {
    width: 160px;
    height: 160px;
    padding: 12px;
  }

  .loading-spinner-wrapper,
  .loading-spinner-sat {
    width: 100px;
    height: 100px;
  }

  .loading-text-sat {
    font-size: 10px;
  }
}

/* =======================CALENDARIO SAT======================= */
.date-input-container {
  margin: 20px;
}

.date-input-container label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  font-family: Arial;
}

.input-wrapper {
  position: relative;
  display: inline-block;
}

.input-wrapper.underline input {
  width: 200px;
  padding: 10px 40px 10px 15px;
  border: none;
  border-bottom: 2px solid #19AFE1;
  border-radius: 0;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  font-family: Arial;
  background: transparent;
}

.input-wrapper.rounded input {
  width: 200px;
  padding: 10px 40px 10px 15px;
  border: 2px solid #19AFE1;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  font-family: Arial;
  background: transparent;
}

.input-wrapper input::placeholder {
  color: #B2B2B2;
}

.calendar-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #19AFE1;
}

.calendar {
  position: absolute;
  width: 243px;
  background: #FFFFFF;
  border: 1px solid #19AFE1;
  border-radius: 10px;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.16);
  padding: 12px;
  font-family: Arial, sans-serif;
  margin-top: 5px;
  z-index: 1000;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.selectors {
  display: flex;
  gap: 5px;
  align-items: center;
}

select {
  border: none;
  font-size: 12px;
  cursor: pointer;
  color: #000000;
  font-family: Arial;
  outline: none;
  background: transparent;
  padding: 2px;
}

.close {
  color: #B2B2B2;
  cursor: pointer;
  font-size: 16px;
  font-weight: normal;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #145FAA;
  margin-bottom: 8px;
  font-family: Arial, sans-serif;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 4px;
}

.day {
  width: 28px;
  height: 28px;
  line-height: 28px;
  margin: auto;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  color: #000000;
  font-family: Arial;
  font-weight: normal;
}

.day:hover:not(.prev) {
  background: #eaf7fd;
}

.prev {
  color: #B2B2B2;
  cursor: default;
}

.today {
  background: #19AFE1;
  color: #FFFFFF;
  font-weight: normal;
  border: none;
}

.selected {
  background: #19AFE1;
  color: #FFFFFF;
  font-weight: normal;
}

/* ============================================
   DESPLEGABLE PARA REPORTES Y CONSULTAS
============================================ */
.select-reporte .mat-mdc-text-field-wrapper {
  background-color: #FFFFFF !important;
  border: 1px solid #B2B2B2 !important;
  border-radius: 20px !important;
  padding: 0 0.75em !important;
}

.select-reporte .mat-mdc-text-field-wrapper.mdc-text-field--filled:not(.mdc-text-field--disabled) {
  background-color: #FFFFFF !important;
}

.select-reporte .mat-mdc-text-field-wrapper.mdc-text-field--filled {
  background-color: #FFFFFF !important;
}

.select-reporte .mdc-line-ripple,
.select-reporte .mdc-line-ripple::before,
.select-reporte .mdc-line-ripple::after {
  display: none !important;
}

.select-reporte .mat-mdc-floating-label,
.select-reporte .mdc-floating-label {
  color: #B2B2B2 !important;
  font-family: Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: normal !important;
}

.select-reporte .mat-mdc-select-value {
  color: #000000 !important;
}

.select-reporte .mat-mdc-select-value-text {
  color: #000000 !important;
  font-family: Arial, sans-serif !important;
  font-size: 12pt !important;
}

.select-reporte .mat-mdc-select-trigger {
  color: #000000 !important;
}

.select-reporte .mat-mdc-select-arrow {
  color: #19AFE1 !important;
}

.select-reporte .mat-mdc-select-arrow svg {
  fill: #19AFE1 !important;
}

.select-reporte .mat-mdc-select-placeholder {
  color: #B2B2B2 !important;
  font-family: Arial, sans-serif !important;
  font-size: 14px !important;
}

.select-reporte.mat-focused .mat-mdc-text-field-wrapper {
  border: 1px solid #19AFE1 !important;
  box-shadow: 0 0 3px rgba(25, 175, 225, 0.88) !important;
  background-color: #FFFFFF !important;
}

.select-reporte.mat-focused .mat-mdc-floating-label,
.select-reporte.mat-focused .mdc-floating-label {
  color: #B2B2B2 !important;
}

.select-reporte.mat-focused .mat-mdc-select-arrow {
  color: #19AFE1 !important;
}

.select-reporte.mat-focused .mat-mdc-select-arrow svg {
  fill: #19AFE1 !important;
}

.select-reporte .mdc-floating-label--float-above {
  color: #B2B2B2 !important;
}

.select-reporte.mat-form-field-disabled .mat-mdc-text-field-wrapper {
  background-color: #FFFFFF !important;
  border-color: #B2B2B2 !important;
}

.select-reporte.mat-form-field-disabled .mat-mdc-floating-label {
  color: #B2B2B2 !important;
}

.select-reporte.mat-form-field-disabled .mat-mdc-select-value-text {
  color: #B2B2B2 !important;
}

.select-reporte.mat-form-field-disabled .mat-mdc-select-arrow {
  color: #B2B2B2 !important;
}

.select-reporte-panel.mat-mdc-select-panel {
  background: #FFFFFF !important;
  border: 1px solid #19AFE1 !important;
  border-radius: 4px !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16) !important;
  padding: 0 !important;
}

.select-reporte-panel .mat-mdc-option {
  font-family: Arial, sans-serif !important;
  font-size: 12pt !important;
  color: #000000 !important;
  min-height: 48px !important;
  background-color: #FFFFFF !important;
}

.select-reporte-panel .mat-mdc-option .mdc-list-item__primary-text {
  color: #000000 !important;
  font-family: Arial, sans-serif !important;
  font-size: 12pt !important;
}

.select-reporte-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled) {
  background-color: rgba(25, 175, 225, 0.30) !important;
}

.select-reporte-panel .mat-mdc-option.mat-mdc-option-active {
  background-color: rgba(25, 175, 225, 0.30) !important;
}

.select-reporte-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) {
  background-color: rgba(25, 175, 225, 0.30) !important;
  color: #000000 !important;
}

.select-reporte-panel .mat-mdc-option.mdc-list-item--selected .mdc-list-item__primary-text {
  color: #000000 !important;
}

.select-reporte {
  width: 100%;
}

.select-reporte .mat-mdc-form-field-subscript-wrapper {
  display: none !important;
}

.select-reporte .mat-mdc-form-field-infix {
  padding-top: 20px !important;
  padding-bottom: 4px !important;
}

.select-reporte .mdc-notched-outline {
  display: none !important;
}

.select-reporte .mat-form-field-flex {
  background-color: #FFFFFF !important;
  border: 1px solid #B2B2B2 !important;
  border-radius: 20px !important;
}

.select-reporte .mat-form-field-underline {
  display: none !important;
}

.select-reporte .mat-select-value {
  color: #000000 !important;
}

.select-reporte .mat-select-arrow {
  color: #19AFE1 !important;
}

.select-reporte-panel.mat-select-panel {
  background: #FFFFFF !important;
  border: 1px solid #19AFE1 !important;
  border-radius: 4px !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16) !important;
  clip-path: none !important;
}

.select-reporte-panel .mat-option {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  font-size: 12pt !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.select-reporte-panel .mat-option:hover {
  background-color: rgba(25, 175, 225, 0.30) !important;
  color: #000000 !important;
}

.select-reporte-panel .mat-option.mat-selected {
  background-color: rgba(25, 175, 225, 0.30) !important;
  color: #000000 !important;
  box-shadow: none !important;
}

/* ============ VERSION FOOTER =========== */
.version-footer {
  position: fixed;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 12px;
  border-top-left-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  z-index: 9999;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: -2px -2px 10px rgba(0, 0, 0, 0.3);
}

.version-footer:hover {
  background: rgba(0, 0, 0, 0.85);
}

.version-footer.expanded {
  padding: 12px 16px;
}

.version-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.version-compact .version-label {
  color: #aaa;
  font-weight: 300;
}

.version-compact .version-number {
  color: #4CAF50;
  font-weight: bold;
  font-size: 12px;
}

.version-compact .version-icon {
  color: #888;
  font-size: 10px;
  transition: transform 0.3s ease;
}

.version-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideDown 0.3s ease;
}

.version-details .detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.version-details .detail-row .detail-label {
  color: #aaa;
  font-weight: 300;
}

.version-details .detail-row .detail-value {
  color: #fff;
  font-weight: 500;
}

.version-details .detail-row .detail-value.prod {
  color: #4CAF50;
}

.version-details .copy-button {
  margin-top: 8px;
  width: 100%;
  padding: 4px 8px;
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid #4CAF50;
  color: #4CAF50;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  transition: all 0.2s ease;
}

.version-details .copy-button:hover {
  background: rgba(76, 175, 80, 0.3);
  transform: translateY(-1px);
}

.version-details .copy-button:active {
  transform: translateY(0);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .version-footer {
    font-size: 10px;
    padding: 4px 8px;
  }

  .version-compact .version-number {
    font-size: 11px;
  }
}

/* ============================================
   CAPTCHA DIALOG
============================================ */
.captcha-dialog {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 40px;
  text-align: center;
}

.captcha-header {
  margin-bottom: 24px;
}

.captcha-logo {
  height: auto;
}

.captcha-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.captcha-instructions {
  color: #555;
  margin: 0 0 8px;
}

.captcha-widget {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
}

.captcha-footer {
  margin-top: 24px;
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
}

.captcha-footer p {
  margin: 0;
  color: #666;
}

/* Buzon SAT */
.buzon-mensaje-contenido {
  padding: 24px 32px !important;
}

.buzon-mensaje-contenido table {
  margin: 0 auto;
  padding: 16px;
}

.buzon-mensaje-contenido td {
  padding: 8px 16px;
}

.buzon-mensaje-contenido p {
  padding: 0 16px;
  text-align: justify;
}

/* ============================================================
   NUEVOS CSS FECHAS  –  datecuadrado / dateredondo / sat-calendar
============================================================ */

/* ── DATECUADRADO – campo con línea inferior ── */
.datecuadrado-field {
  position: relative;
  width: 100%;
}

.sat-date-label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 14pt;
  font-weight: normal;
  color: #000000;
  text-align: left;
  margin-bottom: 8px;
}

.datecuadrado-input-wrapper {
  display: flex;
  align-items: center;
  border: none;
  border-bottom: 2px solid #19AFE1;
  background: transparent;
  padding: 6px 0;
}

.datecuadrado-input-wrapper.datecuadrado-error {
  border-bottom-color: #f44336;
}

.datecuadrado-input {
  flex: 1;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  font-family: Arial, sans-serif;
  font-size: 14pt;
  color: #000000;
  padding: 4px 0;
}

.datecuadrado-input::placeholder {
  color: #B2B2B2;
  font-size: 14pt;
}

.datecuadrado-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: #19AFE1;
  flex-shrink: 0;
}

.datecuadrado-error-msg {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #f44336;
  margin-top: 4px;
}

/* ── DATEREDONDO – campo con borde pill ── */
.dateredondo-field {
  position: relative;
  width: 100%;
}

.dateredondo-label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 14pt;
  font-weight: normal;
  color: #000000;
  text-align: center;
  margin-bottom: 8px;
}

.dateredondo-input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #19AFE1;
  border-radius: 50px;
  background: #FFFFFF;
  padding: 10px 16px;
}

.dateredondo-input-wrapper.dateredondo-error {
  border-color: #f44336;
}

.dateredondo-input {
  flex: 1;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  font-family: Arial, sans-serif;
  font-size: 14pt;
  color: #000000;
  text-align: left;
  min-width: 0;
}

.dateredondo-input::placeholder {
  color: #B2B2B2;
  font-size: 14pt;
}

.dateredondo-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding-left: 10px;
  color: #19AFE1;
  flex-shrink: 0;
}

.dateredondo-error-msg {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #f44336;
  margin-top: 4px;
  padding-left: 16px;
}

/* ── alias retrocompatibilidad sat-date-* → datecuadrado ── */
.sat-date-field {
  position: relative;
  width: 100%;
}

.sat-date-input-wrapper {
  display: flex;
  align-items: center;
  border: none;
  border-bottom: 2px solid #19AFE1;
  background: transparent;
  padding: 6px 0;
}

.sat-date-input {
  flex: 1;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  font-family: Arial, sans-serif;
  font-size: 14pt;
  color: #000000;
  padding: 4px 0;
}

.sat-date-input::placeholder {
  color: #B2B2B2;
  font-size: 14pt;
}

.sat-calendar-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: #19AFE1;
  flex-shrink: 0;
}

.sat-date-error-msg {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #f44336;
  margin-top: 4px;
}

.sat-date-error {
  border-bottom-color: #f44336 !important;
}

/* ── CALENDARIO SAT ── */
.sat-calendar {
  position: absolute;
  z-index: 1000;
  width: 243px;
  background: #FFFFFF;
  border: 1px solid #19AFE1;
  border-radius: 10px;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
  padding: 10px;
  margin-top: 4px;
  font-family: Arial, sans-serif;
}

.sat-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sat-cal-header .sat-cal-selectors {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.sat-cal-header .sat-cal-selectors select {
  border: none;
  outline: none;
  background: transparent;
  font-family: Arial, sans-serif;
  font-size: 12pt;
  color: #000000;
  cursor: pointer;
  appearance: auto;
}

.sat-cal-header .sat-cal-close {
  cursor: pointer;
  color: #B2B2B2;
  font-size: 12px;
  line-height: 1;
  padding: 2px 4px;
}

.sat-cal-header .sat-cal-close:hover {
  color: #888;
}

.sat-cal-nav {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 20px;
  color: #19AFE1;
  padding: 0 4px;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.15s;
}

.sat-cal-nav:hover {
  background: rgba(25, 175, 225, 0.15);
}

.sat-cal-nav:disabled {
  color: #B2B2B2;
  cursor: default;
}

.sat-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 4px;
}

.sat-cal-weekdays div {
  font-family: Arial, sans-serif;
  font-size: 12pt;
  font-weight: 500;
  color: #145FAA;
  padding: 2px 0;
}

.sat-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.sat-cal-day {
  text-align: center;
  padding: 4px 2px;
  font-family: Arial, sans-serif;
  font-size: 12pt;
  color: #000000;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1.6;
}

.sat-cal-day.sat-cal-prev {
  color: #B2B2B2;
  cursor: default;
}

.sat-cal-day.sat-cal-today {
  border: 1px solid #19AFE1;
  color: #19AFE1;
  font-weight: 600;
}

.sat-cal-day.sat-cal-selected {
  background: #19AFE1;
  color: #FFFFFF !important;
  border-radius: 50%;
}

.sat-cal-day:not(.sat-cal-prev):hover {
  background: rgba(25, 175, 225, 0.15);
  border-radius: 50%;
}

/* ── Estilos movidos desde style="" en HTML ── */
.nit-spacing {
  margin-right: 10px;
}

.foto-contribuyente {
  height: 100px;
}

.titulo-seccion {
  font-weight: bold;
}

.carne-tributario {
  width: 8cm;
  height: auto;
}

.logo-carne {
  width: 3cm;
}

/* ============ FIN NUEVOS CSS FECHAS ============ */