.fnmt-box {
    margin-top: 28px !important;
    padding: 24px !important;
    background: #f5f5f5 !important;
    border: 1px solid #e2e2e2 !important;
    box-sizing: border-box !important;
}

.fnmt-title {
    margin: 0 0 8px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #222 !important;
    line-height: 1.3 !important;
}

.fnmt-desc {
    margin: 0 0 20px 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #555 !important;
}

#LoginFnmt.fnmt-boton {
    display: block !important;
    position: relative !important;
    min-height: 92px !important;
    padding: 26px 58px 22px 104px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 1px solid #222 !important;
    color: #222 !important;
    text-decoration: none !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

#LoginFnmt.fnmt-boton:before {
    content: "🔐" !important;
    position: absolute !important;
    left: 24px !important;
    top: 50% !important;
    width: 56px !important;
    height: 56px !important;
    margin-top: -28px !important;
    border-radius: 50% !important;
    background: #eeeeee !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 32px !important;
    line-height: 56px !important;
    text-align: center !important;
}

#LoginFnmt.fnmt-boton:after {
    content: "›" !important;
    position: absolute !important;
    right: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 34px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    color: #222 !important;
}

#LoginFnmt.fnmt-boton:hover {
    background: #222 !important;
    color: #fff !important;
    text-decoration: none !important;
}

#LoginFnmt.fnmt-boton:hover:before {
    background: #fff !important;
}

#LoginFnmt.fnmt-boton:hover:after {
    color: #fff !important;
}

.fnmt-box {
    max-width: 390px;
    background: #f4f4f4;
    padding: 28px 24px;
    border: 1px solid #e2e2e2;
}

.fnmt-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.fnmt-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.fnmt-boton {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #888;
    background: #fff;
    padding: 18px 20px;
    color: #222;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 16px;
}

.fnmt-boton:hover {
    background: #fafafa;
    color: #222;
    text-decoration: none;
}

.fnmt-boton-icono {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: #eceaf4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.fnmt-boton-texto {
    flex: 1;
    font-size: 17px;
    line-height: 1.25;
}

.fnmt-boton-flecha {
    font-size: 28px;
    font-weight: 400;
}

.fnmt-help {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}

.fnmt-help {
    margin-top: 14px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #777 !important;
}

/* Notificaciones */

.estado-notificacion {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.estado-no-leida {
    background-color: #fff3cd;
    color: #856404;
}

.estado-notificada {
    background-color: #d4edda;
    color: #155724;
}

.estado-rechazada {
    background-color: #f8d7da;
    color: #721c24;
}

.estado-desconocido {
    background-color: #e2e3e5;
    color: #383d41;
}

.notificacion-recepcion {
    max-width: 1100px;
    margin: 0 auto;
}

.notificacion-ruta {
    font-size: 14px;
    margin-bottom: 15px;
    color: #6c757d;
}

.notificacion-ruta a {
    color: #337ab7;
    text-decoration: underline;
}

.notificacion-recepcion h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #2f3b46;
}

.notificacion-detalle-tabla {
    width: 75%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.notificacion-detalle-tabla th,
.notificacion-detalle-tabla td {
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 15px;
    text-align: left;
}

.notificacion-detalle-tabla th {
    width: 260px;
    color: #222;
    font-weight: 600;
}

.aviso-legal-notificacion {
    background: #eef5f8;
    border-left: 4px solid #6f9fb5;
    border-top: 1px solid #d6e6ec;
    border-right: 1px solid #d6e6ec;
    border-bottom: 1px solid #d6e6ec;
    padding: 14px 16px;
    margin: 20px 0;
}

.aviso-legal-notificacion strong {
    display: block;
    margin-bottom: 8px;
    color: #222;
}

.aviso-legal-notificacion p {
    margin: 0;
    line-height: 1.5;
    color: #333;
}

.confirmacion-recepcion {
    margin: 25px 0;
}

.confirmacion-recepcion input[type='checkbox'] {
    margin-right: 8px;
}

.btn-recibir-notificacion {
    background: #333;
    color: #fff;
    border: 0;
    padding: 12px 22px;
    cursor: pointer;
}

.btn-recibir-notificacion:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.aviso-notificacion-no-disponible {
    background: #f4f4f4;
    border-left: 4px solid #555;
    padding: 16px 18px;
    margin: 20px 0;
}

.aviso-notificacion-no-disponible strong {
    display: block;
    margin-bottom: 8px;
    color: #222;
}

.aviso-notificacion-no-disponible p {
    margin: 6px 0;
}

.aviso-notificacion-bloqueada {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fdecea;
    border-left: 5px solid #b42318;
    border-top: 1px solid #f5c2c0;
    border-right: 1px solid #f5c2c0;
    border-bottom: 1px solid #f5c2c0;
    padding: 16px 18px;
    margin: 20px 0;
    color: #5f1711;
}

.aviso-notificacion-icono {
    font-size: 24px;
    line-height: 1;
    margin-top: 2px;
}

.aviso-notificacion-contenido strong {
    display: block;
    margin-bottom: 8px;
    color: #5f1711;
}

.aviso-notificacion-contenido p {
    margin: 6px 0;
}

.aviso-notificacion-contenido a {
    color: #8f1d14;
    font-weight: 600;
    text-decoration: underline;
}

.notificaciones-cabecera {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.btn-cambiar-medio {
    background: #333;
    color: #fff;
    border: 0;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
}

.btn-cambiar-medio:hover {
    background: #111;
}

.modal-medio-notif {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.45);
}

.modal-medio-contenido {
    background: #fff;
    margin: 8% auto;
    width: 90%;
    max-width: 560px;
    border: 1px solid #ddd;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.modal-medio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-medio-header h3 {
    margin: 0;
    font-size: 20px;
    color: #222;
}

.modal-medio-cerrar {
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #555;
}

.modal-medio-body {
    padding: 20px 22px;
}

.opcion-medio-notif {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid #ddd;
    padding: 14px 16px;
    margin-top: 12px;
    cursor: pointer;
    background: #fafafa;
}

.opcion-medio-notif:hover {
    background: #f2f2f2;
}

.opcion-medio-notif input {
    margin-top: 4px;
}

.opcion-medio-notif strong {
    display: block;
    color: #222;
    margin-bottom: 3px;
}

.opcion-medio-notif small {
    display: block;
    color: #666;
    line-height: 1.4;
}

.modal-medio-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid #e5e5e5;
}

.btn-modal-secundario {
    background: #f1f1f1;
    color: #222;
    border: 1px solid #ccc;
    padding: 9px 14px;
    cursor: pointer;
}

.btn-modal-principal {
    background: #333;
    color: #fff;
    border: 0;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
}

.modal-medio-aviso {
    background: #eef5f8;
    border-left: 4px solid #6f9fb5;
    padding: 12px 14px;
    margin-bottom: 18px;
    color: #333;
    line-height: 1.4;
}

.modal-medio-aviso strong {
    color: #222;
}

.modal-medio-mensaje {
    padding: 11px 14px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.modal-medio-ok {
    background: #e9f7ef;
    border-left: 4px solid #2e7d32;
    color: #1b5e20;
}

.modal-medio-error {
    background: #fdecea;
    border-left: 4px solid #b42318;
    color: #5f1711;
}