﻿:root {
    --sip-navy: #171166;
    --sip-indigo: #24137b;
    --sip-blue: #0662b8;
    --sip-sky: #0397d6;
    --sip-cyan: #00a8e8;
    --sip-bg: #eaf4fb;
    --sip-bg-soft: #f5fbff;
    --sip-border: #c9dfef;
    --sip-text: #102133;
}

body {
    background-color: var(--sip-bg) !important;
    color: var(--sip-text);
}

.sip-navbar {
    background: linear-gradient(90deg, var(--sip-navy) 0%, var(--sip-blue) 62%, var(--sip-sky) 100%) !important;
    border-bottom: 3px solid var(--sip-cyan);
    box-shadow: 0 8px 24px rgba(3, 151, 214, .18);
}

.sip-navbar .navbar-brand,
.sip-navbar .nav-link {
    color: #fff !important;
}

.sip-navbar .navbar-brand {
    font-weight: 700;
    letter-spacing: 0;
}

.sip-navbar .nav-link {
    border-radius: 6px;
    font-weight: 500;
    opacity: .9;
}

.sip-navbar .nav-link:hover,
.sip-navbar .nav-link:focus,
.sip-navbar .nav-link.show {
    background-color: rgba(255, 255, 255, .14);
    color: #fff !important;
    opacity: 1;
}

.sip-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, .45);
}

.sip-navbar .dropdown-menu {
    border: 1px solid rgba(3, 151, 214, .22);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(23, 17, 102, .16);
}

.sip-navbar .dropdown-item {
    color: #18304a;
}

.sip-navbar .dropdown-item:hover,
.sip-navbar .dropdown-item:focus {
    background-color: #e7f6ff;
    color: var(--sip-navy);
}

.card {
    border-color: var(--sip-border);
    box-shadow: 0 10px 28px rgba(23, 17, 102, .08);
}

.card-header.bg-dark,
.bg-dark {
    background: linear-gradient(90deg, var(--sip-navy) 0%, var(--sip-blue) 72%, var(--sip-sky) 100%) !important;
    border-bottom: 3px solid var(--sip-cyan);
}

.btn-primary {
    background-color: var(--sip-blue) !important;
    border-color: var(--sip-blue) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--sip-navy) !important;
    border-color: var(--sip-navy) !important;
}

a {
    color: var(--sip-blue);
}

/* SIP load overlay (replaces DevExtreme LoadPanel) */
.sip-load-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sip-load-box {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem 1.75rem;
    text-align: center;
    box-shadow: 0 12px 32px rgba(23, 17, 102, 0.2);
    min-width: 160px;
}

.sip-load-msg {
    color: var(--sip-text);
    font-weight: 600;
}

table.dataTable tbody tr:hover {
    background-color: #cceeff !important;
    cursor: pointer;
}

/* Evita que o flex do Bootstrap impeça o scroll horizontal do grid */
.card-body,
.card-body .row > [class*="col"] {
    min-width: 0;
}

/* Com scrollX o DataTables já cria .dataTables_scrollBody — não colocar
   overflow no wrapper (isso desalinha cabeçalho e linhas). */
div.dataTables_wrapper {
    width: 100%;
    max-width: 100%;
}

div.dataTables_wrapper .dataTables_scroll {
    width: 100% !important;
}

.table-responsive {
    max-width: 100%;
}

.sip-lookup-modal .modal-body {
    max-height: 70vh;
    overflow: auto;
}
