
html, body {
    margin: 0;
    padding: 0;
}

/* Caja redonda general */
.ui-radiobutton-box {
    width: 1.46em;
    height: 1.46em;
    border: 2px solid #D92A22; /* borde rojo */
    border-radius: 50%; /* lo hace redondo */
    position: relative;
    background-color: #fff; /* no seleccionado */
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
}

/* Oculta el icono predeterminado de PrimeFaces */
.ui-radiobutton-icon {
    display: none;
}

/* Estilo cuando está seleccionado */
.ui-radiobutton-box.ui-state-active {
    background-color: #D92A22; /* fondo rojo */
}

/* Tick blanco centrado */
.ui-radiobutton-box.ui-state-active::after {
    content: '✔';
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9em; /* proporcional al diámetro */
    font-weight: bold;
}

/*index.xhtml*/
/* Contenedor flexible */
.login-grid {
    display: flex;
    justify-content: center;
    gap: 20px;          /* separación entre botones */
    flex-wrap: wrap;    /* permite que los botones bajen de línea en móvil */
    max-width: 800px;   /* ancho máximo en escritorio */
    margin: 0 auto;     /* centrado horizontal */
}

/* Botones grandes */
.login-button {
    text-align: center;
    flex: 1 1 300px;    /* crecen y encogen, ancho mínimo 300px */
    height: 150px;
    font-size: 1.5em;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 600px) {
    .login-button {
        flex: 1 1 100%;  /* ocupan todo el ancho del contenedor */
        height: 120px;
        font-size: 1.2em;
    }
}


/* Cabecera roja y layout flex */
.header {
    background-color: #c00; /* rojo */
    padding: 10px 20px;
    color: white;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Zona del logo */
.header-left .logo {
    height: 50px;
    width: auto;
}

/* Centrar el título */
.header-center h2 {
    margin: 0;
    font-size: 1.8em;
}

/* Zona del usuario a la derecha */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive: en pantallas pequeñas apilar */
@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .header-center h2 {
        font-size: 1.4em;
    }
}


/*Arregla el problema de conflictos con el color del dialogo*/
.ui-dialog {
    background-color: #fff !important;
    opacity: 1 !important; /* override any global opacity */
}

/*Cabecera dialogo*/
.ui-dialog .ui-dialog-title {
    font-size:20px;
    display: block;
    font-weight: bold;
}

/*Iconos*/

.ui-dialog-titlebar-close .ui-icon {
    font-family: 'PrimeIcons' !important;
    font-style: normal;
    font-weight: normal;
    text-indent: 0;
    margin-top: 0.7rem !important;
    margin-right: 0.5rem !important;
}

.ui-icon-closethick:before {
    content: "\e90b"; /* pi-times */
}

.ui-widget-overlay,
.ui-dialog-mask {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

.ui-inputnumber {
    display: contents; /* lets the inner input behave like it’s directly in the DOM */
}

.ui-inputnumber input {
    width: 100%; /* ensure it fills the container */
}


/*Dropdown*/

.ui-selectonemenu-items {
    background-color: #fff;
}
/* Target all selectOneMenu labels */
.ui-selectonemenu-label {
    padding: 0px !important;
}
/* Background for all dropdown items */
.ui-selectonemenu-items .ui-selectonemenu-item {
    background-color: #fff;
    color: #000;
}

/* Hover effect */
.ui-selectonemenu-items .ui-selectonemenu-item:hover {
    background-color: #e6e6e6;
    color: #000;
}

.ui-selectonemenu-panel .ui-selectonemenu-filter-container {
    background-color: #fff;
    color: #000;
}

/* Selected item */
.ui-selectonemenu-items .ui-state-highlight {
    background-color: #d9d9d9 !important;
    color: #000 !important;
}

.full-width{
    width:100% !important;
}


/*Datepicker*/


/* Previous month button */
.ui-datepicker-prev::before {
    content: "\e931";
    font-family: 'PrimeIcons';
    font-size: 16px;
    display: inline-block;
    line-height: 24px;
    color: #333;
}

.ui-datepicker-next::before {
    content: "\e932";
    font-family: 'PrimeIcons';
    font-size: 16px;
    display: inline-block;
    line-height: 24px;
    color: #333;
}

.ui-icon-triangle-1-s::before {
    content: "\e906";
    font-family: 'PrimeIcons' !important;
    font-size: 16px;
    display: inline-block;
    line-height: 24px;
    color: #333;
}

.ui-icon-calendar{
    content: "\e927";
    font-family: 'PrimeIcons' !important;
    font-size: 16px;
    display: inline-block;
    line-height: 24px;
    color: #333;
}

/* Disabled dates (unavailable) */
/*.ui-datepicker td.ui-state-disabled .ui-state-default {
    color: lightgray;
    background-color: #f5f5f5;
    pointer-events: none;
}*/

/* Enabled dates (available) */
/*.ui-datepicker td:not(.ui-state-disabled) .ui-state-default {
    color: black;
    background-color: white;
}*/
/*

.p-datepicker .ui-datepicker-trigger.ui-button-text{
    display:none;
}*/

.ui-datepicker{
    background:#FFF;
}



/*
----------------------------------------------
RESPONSIVE
----------------------------------------------
*/

.dialogBase {
    max-width: 97vw;
    max-height: 97vh;
    overflow-y: auto !important;
    box-sizing: border-box;
    border-radius: 8px;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.no-overflow{
    overflow: visible !important;
    max-height: none;
}


.dialogBase {
    max-width: 97vw;
    max-height: 97vh;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
}

.dialogBase .ui-dialog-titlebar {
    border-bottom: 1px solid #888;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.dialog-w10  {
    width: 10% !important;
}
.dialog-w20  {
    width: 20% !important;
}
.dialog-w30  {
    width: 30% !important;
}
.dialog-w40  {
    width: 40% !important;
}
.dialog-w50  {
    width: 50% !important;
}
.dialog-w60  {
    width: 60% !important;
}
.dialog-w70  {
    width: 70% !important;
}
.dialog-w80  {
    width: 80% !important;
}
.dialog-w90  {
    width: 90% !important;
}
.dialog-w100 {
    width: 100% !important;
}

/* Ajustes para distintos tamaños de pantallas */
@media (max-width: 600px) {
    .dialogBase.dialog-sm {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        width: 98% !important;
        max-width: 100% !important;
    }
}


@media (max-width: 800px) {
    .dialogBase.dialog-md {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        width: 98% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 1000px) {
    .dialogBase.dialog-xl {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        width: 98% !important;
        max-width: 100% !important;
    }
}

/* Ajustes para distintos tamaños de pantallas */
@media (max-width: 600px) {
    .dialogBase.dialog-sm {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        width: 98% !important;
        max-width: 100% !important;
    }
}



.panelResponsive {
    width: 50%;
    border-radius: 8px;
    padding:0;
    margin: 0 auto;
    border: 1px solid #888;
    overflow: hidden;
}

/*Para que el contenido ocupe toda la altura y ancho posible*/
.w100-content .ui-panel-content {
    height: 100% !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
}

.panelResponsive.w10 {
    width: 10%;
}
.panelResponsive.w20 {
    width: 20%;
}
.panelResponsive.w30 {
    width: 30%;
}
.panelResponsive.w40 {
    width: 40%;
}
.panelResponsive.w50 {
    width: 50%;
}
.panelResponsive.w60 {
    width: 60%;
}
.panelResponsive.w70 {
    width: 70%;
}
.panelResponsive.w80 {
    width: 80%;
}
.panelResponsive.w90 {
    width: 90%;
}
.panelResponsive.w100 {
    width: 100%;
}

.panelResponsive.h10 {
    height: 10vh;
}
.panelResponsive.h20 {
    height: 20vh;
}
.panelResponsive.h30 {
    height: 30vh;
}
.panelResponsive.h40 {
    height: 40vh;
}
.panelResponsive.h50 {
    height: 50vh;
}
.panelResponsive.h60 {
    height: 60vh;
}
.panelResponsive.h70 {
    height: 70vh;
}
.panelResponsive.h80 {
    height: 80vh;
}
.panelResponsive.h90 {
    height: 90vh;
}
.panelResponsive.h100 {
    height: 100vh;
}

/* Header styling */
.panelResponsive .ui-panel-titlebar {
    background-color: #f5f5f5;
    font-weight: bold;
    font-size: 1.25em !important;
    border-bottom: 1px solid #888;
}

/* Body styling */
.panelResponsive .ui-panel-content {
    background-color: #fff;
    font-family: 'Montserrat',"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #222;
}

/* Text inside panel */
.boldText {
    font-weight: bold;
    margin-bottom: 5px;
}

.boldLabel {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .panelResponsive {
        width: 100% !important;
        max-width: 98% !important;
    }
}



.labelColumn {
    font-weight: bold;
    text-align: left;
}

.valueColumn {
    text-align: left;
}

/* Width modifiers for labels */
.labelColumn.w10 {
    width: 10%;
}
.labelColumn.w20 {
    width: 20%;
}
.labelColumn.w30 {
    width: 30%;
}
.labelColumn.w40 {
    width: 40%;
}
.labelColumn.w50 {
    width: 50%;
}
.labelColumn.w60 {
    width: 60%;
}
.labelColumn.w70 {
    width: 70%;
}
.labelColumn.w80 {
    width: 80%;
}
.labelColumn.w90 {
    width: 90%;
}
.labelColumn.w100 {
    width: 100%;
}

.normal-label {
    font-weight: normal !important;
}

.bold-label {
    font-weight: bold !important;
}

/* Width modifiers for values */
.valueColumn.w10 {
    width: 10%;
}
.valueColumn.w20 {
    width: 20%;
}
.valueColumn.w30 {
    width: 30%;
}
.valueColumn.w40 {
    width: 40%;
}
.valueColumn.w50 {
    width: 50%;
}
.valueColumn.w60 {
    width: 60%;
}
.valueColumn.w70 {
    width: 70%;
}
.valueColumn.w80 {
    width: 80%;
}
.valueColumn.w90 {
    width: 90%;
}
.valueColumn.w100 {
    width: 100%;
}








.no-border {
    border: none !important;
    border-collapse: collapse;
}

.no-border td,
.no-border th {
    border: none !important;
}

.w10  {
    width: 10%;
}
.w20  {
    width: 20%;
}
.w30  {
    width: 30%;
}
.w40  {
    width: 40%;
}
.w50  {
    width: 50%;
}
.w60  {
    width: 60%;
}
.w70  {
    width: 70%;
}
.w80  {
    width: 80%;
}
.w90  {
    width: 90%;
}
.w100 {
    width: 100%;
}



.buttonGroup {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.buttonGroup.left {
    justify-content: flex-start;
}

.buttonGroup.center {
    justify-content: center;
}

.buttonGroup.right {
    justify-content: flex-end;
}

.confirm-dialog-warning{
    display: flex;
    align-items: flex-start;
    position: relative;
    top: -18px;
    gap: 14px;
}

.icon-span {
    position: relative;
    top: -25px;
    margin-left: 4px;
    margin-right:.5rem;
    height: 40px;
    max-width: 40px !important;
    display: inline-block;
    vertical-align: top;
    margin-right:0px;
}

.text-span {
    text-align: left;
    line-height: 1;
    max-width: 200px !important;
    display: inline-block;
    vertical-align: top;
}


.text-muted {
    color: #6c757d;
}
.small {
    font-size: 0.9em;
}
.info-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6c757d;
    font-size: 0.9em;
    text-align: center;
    justify-content: center;
    width: 100%;
}

.full-height-schedule {
    height: 100% !important;
}


/* Mensaje de información */
.ui-growl-info {
    background-color: #e6f7ff !important;
    border-left: 5px solid #007ad9 !important;
    color: #004085 !important;
}

/* Mensaje de advertencia */
.ui-growl-warn {
    background-color: #fff8e1 !important;
    border-left: 5px solid #ffb300 !important;
    color: #795548 !important;
}

/* Mensaje de error */
.ui-growl-error {
    background-color: #ffebee !important;
    border-left: 5px solid #d32f2f !important;
    color: #b71c1c !important;
}

/* Mensaje fatal */
.ui-growl-fatal {
    background-color: #fbe9e7 !important;
    border-left: 5px solid #c62828 !important;
    color: #6d0000 !important;
}

/* (Opcional) mejora general para todos los growl */
.ui-growl-item-container {
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    font-family: 'Segoe UI', sans-serif;
    padding: 0.75rem 1rem !important;
}

.table td,
.table th {
    text-align: center !important;
}

.header-spacer {
    height: 80px;
}

#menu_cabecera {
    position: sticky;
    top: 0;
    z-index: 1000;
}


.titulo-aplicacion {
    font-size: 2rem;
    font-weight: bold;
    white-space: nowrap; /* no se divide en pantallas grandes */
}

.subtitulo-aplicacion {
    font-size: 1.5rem;
    font-weight: normal;
    white-space: normal; /* sí permite wrap */
}

/* --- Pantallas pequeñas (móviles) --- */
@media (max-width: 600px) {
    .titulo-aplicacion {
        font-size: 1rem;
    }
    .subtitulo-aplicacion {
        font-size: 0.8rem;
    }
}

/* --- Pantallas medianas --- */
@media (max-width: 900px) {
    .titulo-aplicacion {
        font-size: 1.7rem;
    }
    .subtitulo-aplicacion {
        font-size: 1.2rem;
    }
}

.dialog-responsive-token {
    max-width:450px;
    width: 100% !important;
}

/* --- Schedule --- */

.fc-v-event { background-color:#2778C8 !important; }
.fc-today-button:disabled { opacity: 1 !important; }

/* Cierra los mensajes al pulsar sobre ellos */
.ui-growl-icon-close {
    width: 100%;
    height: 100%;
    background-image: none !important;
}