/* Sistema único de mensajes de Geslidia (ver js/mensajes.js) */

.msg-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 100000;
    background: rgba(38, 51, 42, .55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.msg-box {
    width: 420px;
    max-width: 92%;
    background: #fbfcfa;
    color: #26332a;
    border: 1px solid #e4e6df;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    overflow: hidden;
}

.msg-title {
    background: #354832;
    color: #f8f8f3;
    font-weight: bold;
    padding: 10px 16px;
}

.msg-body,
.msg-toast {
    white-space: pre-line;
    word-wrap: break-word;
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 24px 24px;
    padding: 18px 16px 18px 28px;
    padding-left: 54px;
    line-height: 1.4;
}

.msg-campo {
    padding: 0 16px 14px 54px;
}

.msg-campo label {
    display: inline-block;
    margin-right: 8px;
}

.msg-campo input {
    width: 60%;
    padding: 4px 8px;
    border: 1px solid #83916f;
    border-radius: 4px;
}

.msg-buttons {
    text-align: right;
    padding: 10px 16px 14px;
    background: #f7f5ef;
    border-top: 1px solid #e4e6df;
}

.msg-buttons button {
    min-width: 90px;
    margin-left: 8px;
    padding: 6px 14px;
    border: 1px solid #354832;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    background: #354832;
    color: #f8f8f3;
}

.msg-buttons button:hover,
.msg-buttons button:focus {
    background: #405640;
    outline: none;
}

.msg-buttons button.msg-cancel {
    background: #9a4a3f;
    border-color: #9a4a3f;
    color: #fff;
}

.msg-buttons button.msg-cancel:hover,
.msg-buttons button.msg-cancel:focus {
    background: #833d34;
    border-color: #833d34;
}

/* Toasts */
#msg-toasts {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100001;
    width: 340px;
    max-width: 92%;
}

.msg-toast {
    margin-bottom: 10px;
    border: 1px solid #e4e6df;
    border-left: 5px solid #354832;
    border-radius: 4px;
    background-color: #fbfcfa;
    color: #26332a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    cursor: pointer;
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Tipos: el color corporativo se mantiene; el tipo se distingue por icono y borde */
.msg-info    { background-image: url('../images/info.png'); }
.msg-exito   { background-image: url('../images/exito.png'); }
.msg-aviso   { background-image: url('../images/alerta.png'); }
.msg-error   { background-image: url('../images/error.png'); }
.msg-confirmar { background-image: url('../images/alerta.png'); }

.msg-toast.msg-info  { border-left-color: #52633b; background-color: #edf0e8; }
.msg-toast.msg-exito { border-left-color: #405640; background-color: #edf0e8; }
.msg-toast.msg-aviso { border-left-color: #c0ae85; background-color: #f7f5ef; }
.msg-toast.msg-error { border-left-color: #9b2c2c; background-color: #fbf1ef; }
