:root {
    --igs-cor-principal: #0b4f86;
    --igs-cor-secundaria: #6c757d;
    --igs-fundo: #f5f7fa;
    --igs-texto: #1f2937;
    --igs-borda: #e2e6ea;
}
html { min-height: 100%; }
body { min-height: 100vh; background: var(--igs-fundo); color: var(--igs-texto); }
a { color: var(--igs-cor-principal); }
.igs-topbar { background: var(--igs-cor-principal); color: #fff; }
.igs-topbar .navbar-brand, .igs-topbar .nav-link { color: #fff; }
.igs-topbar .nav-link { opacity: .92; }
.igs-topbar .nav-link:hover, .igs-topbar .nav-link:focus { color: #fff; opacity: 1; }
.igs-brand-logo { width: 38px; height: 38px; object-fit: contain; border-radius: .5rem; background: rgba(255,255,255,.15); padding: 3px; }
.igs-brand-placeholder { width: 38px; height: 38px; border-radius: .5rem; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.igs-page-header { margin-bottom: 1.5rem; }
.igs-module-card { height: 100%; border: 1px solid var(--igs-borda); border-radius: 1rem; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.igs-module-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.07); border-color: rgba(11,79,134,.25); }
.igs-module-icon { font-size: 2.25rem; line-height: 1; }
.igs-module-card .badge { font-weight: 500; }
.btn-igs { --bs-btn-bg: var(--igs-cor-principal); --bs-btn-border-color: var(--igs-cor-principal); --bs-btn-hover-bg: var(--igs-cor-principal); --bs-btn-hover-border-color: var(--igs-cor-principal); --bs-btn-color: #fff; --bs-btn-hover-color: #fff; }
.igs-mobile-action { min-height: 48px; }
@media (max-width: 575.98px) {
    .igs-page-header h1 { font-size: 1.45rem; }
    .igs-module-card { border-radius: .85rem; }
    .igs-module-card .card-body { padding: 1rem; }
}


/* ===== Breadcrumb global TemploSIG ===== */
.igs-breadcrumb{
    margin:0 0 18px;
    font-size:.82rem;
    color:#667085;
    overflow:hidden;
}
.igs-breadcrumb-list{
    display:flex;
    align-items:center;
    gap:0;
    flex-wrap:wrap;
    list-style:none;
    margin:0;
    padding:0;
}
.igs-breadcrumb-item{
    display:inline-flex;
    align-items:center;
    min-width:0;
}
.igs-breadcrumb-item + .igs-breadcrumb-item::before{
    content:"›";
    color:#98a2b3;
    margin:0 8px;
    font-weight:700;
}
.igs-breadcrumb-item a{
    color:#0b4f86;
    text-decoration:none;
    font-weight:600;
}
.igs-breadcrumb-item a:hover,
.igs-breadcrumb-item a:focus{
    text-decoration:underline;
}
.igs-breadcrumb-item.is-current span{
    color:#475467;
    font-weight:700;
}
@media (max-width:575.98px){
    .igs-breadcrumb{
        margin-bottom:14px;
        white-space:nowrap;
        overflow-x:auto;
        scrollbar-width:thin;
        padding-bottom:2px;
    }
    .igs-breadcrumb-list{flex-wrap:nowrap;width:max-content;min-width:100%}
}

/* ===== Etapa 11C — consistência visual, mobile e acessibilidade ===== */
:focus-visible {
    outline: 3px solid rgba(11,79,134,.22);
    outline-offset: 2px;
}
.igs-scroll-x {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.igs-empty-state {
    padding: 1.25rem;
    border: 1px dashed var(--igs-borda);
    border-radius: .85rem;
    background: #fff;
    color: #667085;
    text-align: center;
}
@media (max-width: 575.98px) {
    .igs-topbar .container {
        flex-wrap: wrap;
        gap: .65rem;
    }
    .igs-topbar .navbar-brand {
        min-width: 0;
        max-width: calc(100% - 110px);
    }
    .igs-topbar .navbar-brand > span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .igs-topbar .btn {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .form-control,
    .form-select,
    input,
    select,
    textarea {
        font-size: 16px;
    }
}
