/*
 * PETROMOVIL CCTV NOC
 * Corporate branding layer
 *
 * Official logo colors:
 * Blue: #003880
 * Red : #EC1C24
 *
 * Existing internal imca-* class names are retained
 * intentionally for application compatibility.
 */

:root{
    --petromovil-blue:#003880;
    --petromovil-blue-dark:#00275a;
    --petromovil-red:#EC1C24;
    --petromovil-white:#ffffff;

    --imca-yellow:#EC1C24 !important;
    --imca-yellow-2:#EC1C24 !important;
    --imca-red:#EC1C24 !important;

    --imca-header:#003880 !important;
    --imca-border-hover:
        rgba(236,28,36,.62) !important;
}

/* Corporate header */

header{
    background:
        linear-gradient(
            105deg,
            #003880 0%,
            #00275a 72%,
            #07111f 100%
        ) !important;

    border-bottom:
        2px solid #EC1C24 !important;

    box-shadow:
        0 10px 30px
        rgba(0,0,0,.30) !important;
}


/* Official SVG logo */

.logo img,
.logo-wrap img,
.brand img{
    width:auto !important;
    max-width:220px;
    object-fit:contain;
    filter:none !important;
}


/* Navigation */

header a.imca-nav-link.imca-active{
    background:
        linear-gradient(
            135deg,
            #EC1C24,
            #b80e16
        ) !important;

    border-color:
        #EC1C24 !important;

    color:
        #ffffff !important;
}


header a.imca-nav-link.imca-nav-primary{
    background:
        linear-gradient(
            135deg,
            #003880,
            #0055a8
        ) !important;

    border-color:
        rgba(255,255,255,.20) !important;

    color:
        #ffffff !important;
}


header a.imca-nav-link:hover{
    border-color:
        rgba(236,28,36,.75) !important;
}


/* Buttons */

button[type="submit"],
input[type="submit"],
.btn-primary{
    background:
        linear-gradient(
            135deg,
            #003880,
            #0057ad
        ) !important;

    border-color:
        #003880 !important;

    color:
        #ffffff !important;
}


button[type="submit"]:hover,
input[type="submit"]:hover,
.btn-primary:hover{
    background:
        linear-gradient(
            135deg,
            #EC1C24,
            #b80e16
        ) !important;

    border-color:
        #EC1C24 !important;
}


/* Titles and accent */

.logo-title,
.imca-page-title h1,
.imca-page-title h2{
    letter-spacing:
        .01em;
}


.title span{
    color:
        #EC1C24 !important;
}


/* Inputs */

input:focus,
select:focus,
textarea:focus{
    outline:
        none !important;

    border-color:
        #EC1C24 !important;

    box-shadow:
        0 0 0 3px
        rgba(236,28,36,.12) !important;
}


/* CamHi fixed client fields */

.petromovil-fixed-field{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:3px;

    min-height:42px;

    padding:
        8px 12px;

    border:
        1px solid
        rgba(0,56,128,.60);

    border-left:
        4px solid #EC1C24;

    border-radius:
        8px;

    background:
        rgba(0,56,128,.14);

    color:
        #ffffff;

    font-weight:
        800;
}


.petromovil-fixed-field small{
    color:
        rgba(255,255,255,.62);

    font-size:
        11px;

    font-weight:
        600;
}


/* Tables */

thead th{
    border-bottom-color:
        rgba(236,28,36,.45) !important;
}


/* Selection/accent */

::selection{
    background:
        #EC1C24;

    color:
        #ffffff;
}


/* Petromovil scrollbar accent */

::-webkit-scrollbar-thumb{
    background:
        rgba(0,56,128,.80);
}


::-webkit-scrollbar-thumb:hover{
    background:
        #EC1C24;
}


/* Login / logo polish */

.logo img{
    transition:
        transform .22s ease,
        filter .22s ease;
}


.logo img:hover{
    transform:
        scale(1.015);
}


/* Keep operational status semantics */

.status-online,
.online,
.ok{
    /* Operational green remains semantic, not branding. */
}


/* Mobile */

@media (max-width:768px){

    .logo img,
    .logo-wrap img,
    .brand img{
        max-width:175px;
    }

    .petromovil-fixed-field{
        min-height:40px;
    }
}
