/* === FIELDSET GENERAL REDONDEADO === */
/* Formato del field set*/
.fieldset-box {
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 12px;
    font-family: Raleway;
    margin-bottom: 16px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 8px;
}

.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-family: Roboto;
    cursor: pointer;
}

/* === FIELDSET GENERAL REDONDEADO === */
/* Estilo general para fieldsets para checkboxes que muestran/ocultan columnas */
.fieldset-config {
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-family: Raleway;
    background-color: #f9f9f9;
}

/* Leyenda destacada */
.fieldset-config legend {
    font-weight: bold;
    font-size: 13px;
    padding: 0 6px;
    color: #333;
}

/* Controles de columnas */
.config-columnas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    font-family: Roboto;
    margin-top: 8px;
}

.config-columnas label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.config-columnas label:hover {
    background-color: #eef;
}

/* Indicador visual */
/*
.status-dot {
  width: 6px;
  height: 6px;
  background-color: #4caf50;
  border-radius: 50%;
  display: inline-block;
}
*/



/* === FIELDSET FACTURA DIGITAL FECHA-HORA === */
/* Formato para el fieldset Fecha-Hora sea redondeado */
input[type="date"],
input[type="time"] {
    height: 24px;
    font-size: 11px;
    padding: 2px 6px;
    font-family: Roboto;
    border: 1px solid #aaaaaa;
    border-radius: 4px;
    box-sizing: border-box;
    min-width: 120px;
    max-width: 100%;
    background-color: #fff;
    appearance: none;
    /* elimina estilos nativos en algunos navegadores */
}

.fieldset-fecha-hora {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-family: Raleway;
    font-size: 12px;
}

.fieldset-fecha-hora label {
    margin-right: 4px;
}

.fieldset-box {
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 12px;
    font-family: Raleway;
}

/* === FIELDSET FACTURA DIGITAL EMISOR-RECEPTOR === */
/* CSS para formato de fieldset e Input de Emisor y Receptor */
.fieldset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}

.fieldset-box {
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 12px;
    font-family: Raleway;
}

.fieldset-box legend {
    font-weight: bold;
    font-size: 13px;
    padding: 0 6px;
}

.fieldset-box label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

.fieldset-box input[type="text"] {
    width: 100%;
    padding: 6px 8px;
    font-size: 11px;
    font-family: Roboto;
    border: 1px solid #aaaaaa;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Esto gestiona el Icono y el Formulario que se despliega del EMISOR y RECEPTOR*/

.input-with-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.detalle-formulario {
    display: none;
    margin-top: 8px;
    font-size: 11px;
    font-family: Roboto;
    border-top: 1px dashed #aaa;
    padding-top: 6px;
}

.detalle-formulario label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}