﻿:root {
    --sideW: 140px;
    --sideCollapsedW: 64px;
    --bg: #eef2f7;
    --card: #ffffff;
    --line: #e5e7eb;
    --text: #0f172a;
    --muted: #64748b;
    --blue1: #081426;
    --blue2: #0c1d36;
    --accent: #2f6fed;
    --shadow: 0 10px 24px rgba(15,23,42,.08);
    --mainPadX: 12px;
    --mainPadL: 10px;
    --mainPadT: 10px;
    --mainPadB: 12px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* =========================
   LAYOUT GENERAL
   ========================= */
.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.app-side {
    width: var(--sideW);
    min-width: var(--sideW);
    max-width: var(--sideW);
    background: linear-gradient(180deg, var(--blue1) 0%, var(--blue2) 100%);
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.06);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: width .22s ease, min-width .22s ease, max-width .22s ease, padding .22s ease;
    flex: 0 0 auto;
}

.app-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-top {
    flex: 0 0 auto;
    padding: var(--mainPadT) var(--mainPadX) 0 var(--mainPadL);
}

.app-content {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: 0 var(--mainPadX) var(--mainPadB) var(--mainPadL);
    overflow: auto;
}

/* =========================
   SIDEBAR
   ========================= */
.side-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 16px;
    background: rgba(255,255,255,.10);
    cursor: pointer;
    user-select: none;
    text-align: center;
    min-height: 92px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

    .brand-logo img {
        width: 34px;
        height: 34px;
        object-fit: contain;
    }

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    line-height: 1.05;
}

.brand-name {
    font-weight: 900;
    font-size: 11px;
    color: #fff;
    letter-spacing: .2px;
    text-align: center;
}

.brand-sub {
    font-size: 11px;
    color: rgba(255,255,255,.78);
    text-align: center;
    margin-top: 1px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.side-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    opacity: .95;
    text-align: center;
    transition: all .18s ease;
}

    .side-link:hover {
        background: rgba(255,255,255,.18);
        transform: translateY(-2px);
    }

    .side-link.active {
        background: rgba(255,255,255,.22);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
    }

.ico-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
    margin-bottom: 4px;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,.35));
    transition: transform .18s ease;
}



.side-link .txt {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
}

.side-foot {
    margin-top: auto;
}

/* =========================
   SIDEBAR COLAPSADO
   ========================= */
.app-side.is-collapsed {
    width: var(--sideCollapsedW) !important;
    min-width: var(--sideCollapsedW) !important;
    max-width: var(--sideCollapsedW) !important;
    padding: 10px 4px !important;
}

    .app-side.is-collapsed .brand-text,
    .app-side.is-collapsed .side-link .txt,
    .app-side.is-collapsed .side-foot {
        display: none !important;
    }

    .app-side.is-collapsed .side-brand {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .app-side.is-collapsed .side-link {
        padding: 14px 0;
    }

    .app-side.is-collapsed .ico-img {
        width: 34px;
        height: 34px;
    }

/* =========================
   TOPBAR
   ========================= */
.app-top,
.app-top-enterprise {
    position: relative;
    z-index: 300000;
    overflow: visible;
}

.app-top-enterprise {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px !important;
    border-radius: 6px;
    border: 1px solid rgba(47,78,134,.40);
    background: linear-gradient(90deg, #5679bd 0%, #4d72b8 50%, #456bb3 100%);
    box-shadow: 0 6px 16px rgba(15,23,42,.10);
    margin-bottom: 8px;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.top-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
    flex: 0 0 auto;
}

.top-title {
    color: #ffd24a;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
    text-shadow: 0 1px 2px rgba(0,0,0,.18);
}

.top-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    position: relative;
    z-index: 300010;
    overflow: visible;
}

.top-bell {
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #ffffff;
    transition: transform .18s ease, opacity .18s ease;
}

    .top-bell:hover {
        transform: scale(1.12);
        opacity: .85;
    }

.top-user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 300010;
}

.top-icon-trigger {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.45);
    background: rgba(255,255,255,.15);
    color: #ffffff;
    transition: transform .18s ease, background .18s ease;
}

    .top-icon-trigger:hover {
        transform: scale(1.15);
        background: rgba(255,255,255,.25);
    }

.user-pill,
.key-pill {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.user-pill,
.key-pill {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.key-pill {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M14.5 3a5.5 5.5 0 1 0 3.89 9.39l.86.86h1.75V15h1.75v1.75H24V21h-4.25v-1.75H18V17.5h-1.75l-1.97-1.97A5.5 5.5 0 0 0 14.5 3Zm0 2A3.5 3.5 0 1 1 11 8.5 3.5 3.5 0 0 1 14.5 5Z'/></svg>");
}

.user-pill {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z'/></svg>");
}

.top-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 14px;
    box-shadow: 0 18px 34px rgba(0,0,0,.18);
    padding: 8px;
    z-index: 300020 !important;
    display: none;
}

    .top-user-dropdown.show {
        display: block;
    }

.top-tools-dropdown {
    min-width: 260px;
    max-height: 520px;
    overflow-y: auto;
    padding-bottom: 8px;
}

#btnAboutPortal {
    border-top: 1px solid rgba(15,23,42,.08);
    margin-top: 6px;
    padding-top: 12px;
}

.top-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
}

    .top-user-item:hover {
        background: #f4f7fb;
        color: #0f172a;
    }

.top-user-btn {
    border: 0;
    background: transparent;
    text-align: left;
}

.top-user-sep {
    height: 1px;
    background: rgba(15,23,42,.08);
    margin: 6px 0;
}

/* =========================
   MONITOREO / Z-INDEX
   ========================= */
.moni,
.moni .monitor-page,
.moni .monitor-wrap,
.moni .monitor-map {
    position: relative;
    z-index: 1;
}

    .moni .leaflet-control-container,
    .moni .leaflet-top,
    .moni .leaflet-right,
    .moni .leaflet-left,
    .moni .leaflet-control {
        z-index: 1000 !important;
    }

/* =========================
   PANELES PREMIUM GLOBALES
   ========================= */
.panel-premium {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    isolation: isolate;
}

    .panel-premium > * {
        position: relative;
        z-index: 2;
    }

.panel-premium-h {
    min-height: 220px;
    background: linear-gradient(135deg, #0b57d0 0%, #156fe5 30%, #1d8feb 62%, #36b2ef 100%);
}

    .panel-premium-h::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 8% 14%, rgba(255,255,255,.18) 0 13%, transparent 14%), radial-gradient(circle at 94% 84%, rgba(255,255,255,.12) 0 10%, transparent 11%), radial-gradient(circle at 0% 100%, rgba(255,255,255,.08) 0 18%, transparent 19%);
        pointer-events: none;
    }

    .panel-premium-h::after {
        content: "";
        position: absolute;
        left: -10%;
        right: -10%;
        top: 28%;
        height: 54%;
        background: repeating-radial-gradient( ellipse at center, rgba(255,255,255,.11) 0px, rgba(255,255,255,.11) 1px, transparent 2px, transparent 7px );
        opacity: .25;
        transform: rotate(-4deg);
        pointer-events: none;
    }

    .panel-premium-h .curve {
        position: absolute;
        left: 10%;
        width: 78%;
        height: 120px;
        border-top: 1px solid rgba(255,255,255,.18);
        border-radius: 50%;
        transform: scaleY(1.8);
        pointer-events: none;
        z-index: 1;
    }

        .panel-premium-h .curve.c1 {
            top: 28%;
            opacity: .50;
        }

        .panel-premium-h .curve.c2 {
            top: 35%;
            opacity: .35;
        }

        .panel-premium-h .curve.c3 {
            top: 42%;
            opacity: .20;
        }

.panel-premium-v {
    min-height: 420px;
    background: linear-gradient(160deg, #0a4fc9 0%, #1568dd 32%, #1f88e7 64%, #43b4ef 100%);
}

    .panel-premium-v::before {
        content: "";
        position: absolute;
        width: 320px;
        height: 320px;
        top: -150px;
        left: -130px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 44%, transparent 70%);
        pointer-events: none;
    }

    .panel-premium-v::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.10) 48%, transparent 54%), linear-gradient(305deg, transparent 0 78%, rgba(255,255,255,.12) 84%, transparent 90%);
        opacity: .95;
        pointer-events: none;
    }

    .panel-premium-v .curve-v {
        position: absolute;
        left: -20%;
        width: 150%;
        height: 140px;
        border-top: 1px solid rgba(255,255,255,.16);
        border-radius: 50%;
        transform: scaleY(1.7) rotate(-6deg);
        pointer-events: none;
        z-index: 1;
    }

        .panel-premium-v .curve-v.v1 {
            top: 32%;
            opacity: .48;
        }

        .panel-premium-v .curve-v.v2 {
            top: 40%;
            opacity: .30;
        }

        .panel-premium-v .curve-v.v3 {
            top: 48%;
            opacity: .18;
        }

.panel-premium-body {
    padding: 28px 30px;
    color: #fff;
}

.panel-premium-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3px;
    margin-bottom: 14px;
}

.panel-premium-title {
    margin: 0 0 10px 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.4px;
}

.panel-premium-text {
    margin: 0;
    max-width: 760px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,.92);
}

.panel-premium-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.panel-btn-main,
.panel-btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    transition: .2s ease;
}

.panel-btn-main {
    background: #ffffff;
    color: #0b57d0;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

    .panel-btn-main:hover {
        transform: translateY(-1px);
        color: #0847ab;
    }

.panel-btn-soft {
    background: rgba(255,255,255,.10);
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
}

    .panel-btn-soft:hover {
        background: rgba(255,255,255,.16);
        color: #fff;
        transform: translateY(-1px);
    }

.panel-mini-glass {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    max-width: 420px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 991.98px) {
    .app-side {
        width: 86px;
        min-width: 86px;
        max-width: 86px;
        padding: 14px 6px;
    }

    .brand-text,
    .side-link .txt,
    .side-foot {
        display: none !important;
    }

    .side-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 16px 10px;
        border-radius: 16px;
        background: rgba(255,255,255,.10);
        cursor: pointer;
        user-select: none;
        text-align: center;
    }

    .side-link {
        padding: 14px 0;
    }

    .ico-img {
        width: 38px;
        height: 38px;
    }

    .top-title {
        max-width: 180px;
        font-size: 13px;
    }

    .panel-premium-body {
        padding: 24px 22px;
    }

    .panel-premium-v {
        min-height: 320px;
    }

    .panel-premium-h {
        min-height: 200px;
    }
}

@media (max-width: 575.98px) {
    .panel-premium-title {
        font-size: 24px;
    }

    .panel-premium-text {
        font-size: 14px;
    }

    .panel-premium-actions {
        flex-direction: column;
    }

    .panel-btn-main,
    .panel-btn-soft {
        width: 100%;
    }

    
}

.panel-premium-h,
.panel-premium-v {
    background-clip: padding-box;
}

/* =========================================================
   DASHBOARD - ESTRUCTURA Y TARJETAS
   ========================================================= */

.dash {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.dcard {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .dcard:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(15,23,42,.10);
    }

    .dcard .t {
        color: #64748b;
        font-weight: 800;
        font-size: 13px;
        margin-bottom: 6px;
    }

    .dcard .n {
        font-size: 34px;
        line-height: 1;
        font-weight: 900;
        color: #0f172a;
        margin-bottom: 6px;
    }

        .dcard .n.small {
            font-size: 18px;
            line-height: 1.2;
        }

    .dcard .s {
        color: #64748b;
        font-size: 13px;
        line-height: 1.35;
    }

    .dcard.blue {
        border-left: 5px solid #2f6fed;
    }

    .dcard.green {
        border-left: 5px solid #16a34a;
    }

    .dcard.orange {
        border-left: 5px solid #f59e0b;
    }

    .dcard.yellow {
        border-left: 5px solid #eab308;
    }

    .dcard.gray {
        border-left: 5px solid #94a3b8;
    }

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
    gap: 14px;
    align-items: start;
}

.dash-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
}

.ph {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 900;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .ph .link,
    .dcard .link {
        color: #2563eb;
        text-decoration: none;
        font-weight: 800;
    }

        .ph .link:hover,
        .dcard .link:hover {
            text-decoration: underline;
        }

.pc {
    padding: 14px;
    min-height: 220px;
}

.construction {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 18px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    line-height: 1.5;
}

/* el panel premium vertical debe verse realmente como columna lateral */
.dash-col .panel-premium-v {
    min-height: 420px;
}

/* =========================================================
   RESPONSIVE DASHBOARD
   ========================================================= */

@media (max-width: 1200px) {
    .dash-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }

    .dash-col .panel-premium-v {
        min-height: 320px;
    }
}

@media (max-width: 575.98px) {
    .dash-cards {
        grid-template-columns: 1fr;
    }

    .dcard .n {
        font-size: 28px;
    }

    .ph {
        flex-direction: column;
        align-items: flex-start;
    }
}

.login-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(rgba(4,10,18,.72), rgba(4,10,18,.72)), radial-gradient(circle at 20% 20%, rgba(60,255,120,.10), transparent 25%), radial-gradient(circle at 80% 30%, rgba(60,255,120,.10), transparent 22%), #050b14;
    color: #fff;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 460px;
}

.login-left {
    display: flex;
    align-items: center;
    padding: 40px 50px;
}

.login-brand-block {
    max-width: 520px;
}

.login-title-big {
    font-size: 58px;
    line-height: 1.02;
    font-weight: 900;
    margin: 0 0 18px 0;
    color: #f3f8f2;
    text-shadow: 0 0 10px rgba(120,255,120,.22);
}

.login-badge {
    display: inline-block;
    background: #4cc05f;
    color: #fff;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 700;
}

.login-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-card {
    width: 100%;
    max-width: 340px;
    background: rgba(255,255,255,.90);
    border-radius: 26px;
    padding: 26px 22px 22px 22px;
    box-shadow: 0 18px 50px rgba(0,0,0,.30);
}

.login-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.login-logo-img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-input {
    width: 100%;
    height: 46px;
    border: 0;
    outline: none;
    border-radius: 16px;
    background: #ece8b8;
    padding: 0 14px;
    font-size: 14px;
}

.login-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3b3b3b;
    font-size: 14px;
}

.login-btn {
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: #35b25e;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

    .login-btn:hover {
        background: #2d9c52;
    }

.text-danger {
    color: #c62828;
    font-size: 13px;
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-left {
        display: none;
    }

    .login-center {
        min-height: 100vh;
    }
}

/* ==========================================
   LOGIN
   ========================================== */

.login-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(rgba(6, 18, 35, 0.55), rgba(6, 18, 35, 0.75)), url('/img/login/fondologin.png') center center / cover no-repeat fixed;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 460px;
}

.login-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 70px;
}

.login-brand-block {
    max-width: 620px;
    color: #ffffff;
}

.login-title-big {
    margin: 0 0 18px 0;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.login-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
}

.login-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-card {
    width: 100%;
    max-width: 390px;
    padding: 34px 30px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.login-logo-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo-img {
    max-width: 210px;
    max-height: 90px;
    object-fit: contain;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #d6dbe3;
    background: #ffffff;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .login-input:focus {
        border-color: #0f6ecd;
        box-shadow: 0 0 0 4px rgba(15, 110, 205, 0.12);
    }

.login-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 14px;
    margin-top: 4px;
}

.login-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, #0f6ecd 0%, #0a4f97 100%);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

    .login-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(15, 110, 205, 0.28);
    }

    .login-btn:active {
        transform: translateY(0);
    }

.text-danger {
    color: #d92d20;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 920px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-left {
        min-height: 220px;
        padding: 40px 24px 10px 24px;
        align-items: end;
    }

    .login-title-big {
        font-size: 30px;
    }

    .login-center {
        padding: 24px;
        align-items: start;
    }

    .login-card {
        max-width: 100%;
    }
}




.top-notify-menu {
    position: relative;
}

.top-bell {
    position: relative;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 16px;
}

.top-bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bell-dropdown {
    width: 360px;
    right: 0;
    left: auto;
    padding: 0;
    overflow: hidden;
}

.top-bell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    font-weight: 700;
}

.top-bell-markall {
    border: none;
    background: none;
    color: #2563eb;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.top-bell-list {
    max-height: 360px;
    overflow-y: auto;
    background: #fff;
}

.top-bell-item {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
}

    .top-bell-item.unread {
        background: #eaf3ff;
        border-left: 4px solid #2563eb;
        padding-left: 10px;
    }

    .top-bell-item:not(.unread) {
        background: #ffffff;
        opacity: .72;
        border-left: 4px solid transparent;
    }

.top-bell-item-title {
    font-size: 13px;
    font-weight: 700;
}

.top-bell-item-msg {
    margin-top: 4px;
    font-size: 12px;
    color: #475569;
}

.top-bell-item-date {
    margin-top: 6px;
    font-size: 11px;
    color: #94a3b8;
}

.top-bell-empty {
    padding: 16px 12px;
    color: #64748b;
    font-size: 13px;
}

.top-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.top-user-name {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.25;
    display: inline-block;
    padding-bottom: 1px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-user-header {
    padding: 10px 12px 8px;
    font-weight: 800;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .top-user-name {
        display: none;
    }
}

.top-user-email {
    margin-top: 4px;
    font-weight: 600;
    font-size: 12px;
    color: #64748b;
    word-break: break-word;
}

body.modal-opened {
    overflow: hidden;
}

.about-portal-modal {
    position: fixed;
    inset: 0;
    z-index: 400000;
    display: none;
}

    .about-portal-modal.show {
        display: block;
    }

.about-portal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(4px);
}

.about-portal-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(92vw, 520px);
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
    border: 1px solid rgba(148, 163, 184, .22);
    overflow: hidden;
}

.about-portal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #eef2ff;
    color: #334155;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.about-portal-head {
    padding: 24px 24px 16px;
    background: linear-gradient(135deg, #1d4ed8 0%, #38bdf8 100%);
    color: #fff;
}

.about-portal-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.about-portal-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 900;
}

.about-portal-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: .95;
}

.about-portal-body {
    padding: 20px 24px 10px;
    display: grid;
    gap: 12px;
}

.about-info-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.about-info-label {
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.about-info-value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.about-info-link {
    font-size: 15px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    word-break: break-word;
}

    .about-info-link:hover {
        text-decoration: underline;
    }

.about-portal-foot {
    padding: 0 24px 24px;
    display: flex;
    justify-content: flex-end;
}

.about-portal-ok {
    border: 0;
    border-radius: 12px;
    padding: 11px 18px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .24);
}

    .about-portal-ok:hover {
        filter: brightness(.98);
    }

@media (max-width: 640px) {
    .about-portal-card {
        width: min(94vw, 520px);
    }

    .about-info-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .about-portal-title {
        font-size: 20px;
    }
}