.input-error {
    border: 2px solid red;
}

.position-relative {
    position: relative;
}

.percentage-label {
    position: absolute;
    right: 10px; /* Ajusta esto según sea necesario para alinear con el padding de tu input */
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Esto asegura que el porcentaje no interfiera con el clic en el input */
}

/* Estilos para el fondo de la página */

/* Opcional: Capa oscura para mejorar el contraste */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Color oscuro con transparencia */
    z-index: -1;
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    body {
        background-size: contain; /* Evita que la imagen se corte en móviles */
    }
}


/* Inbox */
.inbox {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.inbox-header {
    background: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
}

.search-box {
    padding: 8px;
    width: 50%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Lista de correos */
.email-list {
    flex: 1;
    overflow-y: auto;
}

.email-item {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    transition: 0.3s;
    background: white;
}

.email-item:hover {
    background: #f1f1f1;
}

.email-item .email-sender {
    font-weight: bold;
}

.email-item .email-date {
    color: gray;
}

/* Vista previa */
.email-preview {
    width: 40%;
    background: white;
    padding: 20px;
    border-left: 1px solid #ddd;
    display: none;
    flex-direction: column;
}

.email-preview h3 {
    margin-bottom: 10px;
}

.email-preview .email-content {
    margin-top: 10px;
    font-size: 14px;
    color: #444;
}

.email-preview .close-preview {
    background: red;
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
}

/* 🔹 Estilos para el Popup de Redacción */
.compose-mail-popup {
    position: fixed;
    bottom: -300px; /* Oculto por defecto */
    right: 20px;
    width: 400px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    transition: bottom 0.3s ease-in-out;
    display: none; /* Oculto al inicio */
}

.compose-mail-popup.show {
    display: block;
    bottom: 20px; /* Se muestra arriba de la pantalla */
}

.compose-mail-content {
    display: flex;
    flex-direction: column;
}

.compose-mail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    margin-bottom: 10px;
}

.close-compose {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

#mailTo, #mailSubject, #mailBody {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#mailBody {
    height: 100px;
}

.btn-success {
    background: #28a745;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.input-error {
    border: 2px solid red;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.input-error {
    border: 1px solid red !important;
    background-color: #ffe6e6;
}

.select-error select {
    border: 1px solid red !important;
    background-color: #ffe6e6;
}

.col-lg-2_4 {
    flex: 0 0 20%; /* Cada columna ocupa el 20% del ancho */
    max-width: 20%;
}

.email-table {
    width: 100%;
    border-collapse: collapse; /* Une los bordes */
}

.email-table tr {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

input[readonly] {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

/*.ck.ck-word-count {*/
/*    display: none !important;*/
/*}*/

