/* CT-IA CONACI - estilo compartilhado */
:root {
    --navy: #173c5c;
    --navy2: #0f2f4b;
    --blue: #246da5;
    --teal: #287e86;
    --ink: #183247;
    --muted: #607488;
    --line: #dce5ed;
    --bg: #f5f8fb;
    --white: #fff;
    --gold: #d99a32;
    --purple: #7162a7;
    --green: #347c62;
    --shadow: 0 8px 24px rgba(23,60,92,.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.58 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

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

.layout {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 254px;
    background: var(--navy);
    color: #fff;
    padding: 24px 16px;
    overflow-y: auto;
    z-index: 20;
}

.brand {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 0 10px 20px;
    border-bottom: 1px solid #ffffff2b;
}

.brand-logo {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 16px;
}

.brand small {
    display: block;
    color: #c8d8e6;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 4px;
}

.nav {
    margin-top: 18px;
}

.navlink,
.navsummary {
    display: block;
    color: #e1ebf4;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.navlink:hover,
.navlink.active,
.navsummary:hover {
    background: #ffffff1b;
    color: #fff;
}

.navlabel {
    color: #9fc4df;
    font-size: 10px;
    letter-spacing: 1.3px;
    font-weight: 800;
    margin: 21px 12px 7px;
}

.navgroup {
    margin: 2px 0;
}

.navsummary {
    list-style: none;
}

.navsummary::-webkit-details-marker {
    display: none;
}

.navsummary:after {
    content: '＋';
    float: right;
    opacity: .8;
}

.navgroup[open]>.navsummary:after {
    content: '−';
}

.subnav {
    margin: 2px 0 8px 9px;
    padding-left: 8px;
    border-left: 1px solid #ffffff3a;
}

.subnav .navlink {
    font-size: 13px;
    padding: 8px 10px;
}

.main {
    margin-left: 254px;
    min-width: 0;
}

.topbar {
    min-height: 70px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 34px;
}

.crumb {
    font-size: 12px;
    color: var(--muted);
}

.top-title {
    font-size: 14px;
    font-weight: 750;
}

.top-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 34px 44px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    font-weight: 800;
    color: var(--teal);
}

h1 {
    font-size: clamp(27px,3vw,38px);
    line-height: 1.16;
    letter-spacing: -.7px;
    margin: 7px 0 15px;
    color: #163b59;
}

h2 {
    font-size: 23px;
    line-height: 1.25;
    margin: 0 0 10px;
}

h3 {
    font-size: 17px;
    line-height: 1.35;
    margin: 0 0 8px;
}

p {
    margin: 0 0 13px;
}

.lead {
    font-size: 18px;
    line-height: 1.65;
    color: #49657b;
    max-width: 900px;
}

.muted {
    color: var(--muted);
}

.section {
    margin-top: 30px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 14px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid2 {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

.grid3 {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.grid4 {
    grid-template-columns: repeat(4,minmax(0,1fr));
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow);
    min-width: 0;
}

.card p:last-child {
    margin-bottom: 0;
}

.card .push {
    margin-top: 18px;
}

.axis {
    border-top: 4px solid var(--blue);
}

.axis.teal {
    border-top-color: var(--teal);
}

.axis.gold {
    border-top-color: var(--gold);
}

.axis.purple {
    border-top-color: var(--purple);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--blue);
    border: 1px solid var(--blue);
    color: #fff;
    text-decoration: none;
    font: 700 13px system-ui,sans-serif;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.btn:hover {
    filter: brightness(.95);
}

.btn.outline {
    background: #fff;
    color: var(--blue);
}

.btn.small {
    font-size: 12px;
    padding: 8px 11px;
}

.tag {
    display: inline-block;
    border-radius: 999px;
    background: #eaf3f9;
    color: #285e82;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 750;
}

.tag.green {
    background: #e9f5ef;
    color: #28664f;
}

.tag.gold {
    background: #fff4df;
    color: #8a5a12;
}

.tag.gray {
    background: #eef1f4;
    color: #596b7a;
}

.hero {
    background: linear-gradient(115deg,#173c5c,#287e86);
    color: #fff;
    border-radius: 18px;
    padding: 32px;
    display: grid;
    grid-template-columns: minmax(0,1.5fr) minmax(190px,.6fr);
    gap: 25px;
    align-items: center;
}

.hero h1 {
    color: #fff;
    font-size: clamp(30px,3.4vw,43px);
}

.hero p {
    color: #e2edf5;
    max-width: 700px;
    font-size: 17px;
}

.hero-stat {
    border: 1px solid #ffffff40;
    background: #ffffff12;
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    font-weight: 200;
}

.hero-stat strong {
    display: block;
    font-size: 34px;
    line-height: 1.1;
    font-weight: bold;
}

.hero-stat span {
    font-size: 13px;
    color: #e2edf5;
}

.notice {
    padding: 13px 15px;
    border-left: 4px solid var(--gold);
    background: #fff8e9;
    border-radius: 7px;
    color: #68542e;
    font-size: 13px;
    margin: 16px 0;
}

.notice.info {
    border-left-color: var(--blue);
    background: #edf6fc;
    color: #365a72;
}

.metric {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy);
    margin: 8px 0;
}

.metric-label {
    font-size: 13px;
    color: var(--muted);
}

.barrow {
    display: grid;
    grid-template-columns: 120px 1fr 42px;
    gap: 12px;
    align-items: center;
    margin: 12px 0;
    font-size: 13px;
}

.bar {
    height: 10px;
    background: #e9eff4;
    border-radius: 99px;
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    background: var(--teal);
    border-radius: 99px;
}

.bar.gold span {
    background: var(--gold);
}

.bar.purple span {
    background: var(--purple);
}

.resource-list {
    display: grid;
    gap: 10px;
}

.resource {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.resource p {
    font-size: 13px;
    color: var(--muted);
    margin: 4px 0 0;
}

.status-list {
    display: grid;
    gap: 12px;
}

.status-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.status-item:last-child {
    border-bottom: 0;
}

.status-item p {
    font-size: 13px;
    color: var(--muted);
    margin: 3px 0 0;
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 540px;
}

th,
td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

th {
    background: #f0f5f8;
    color: #37566c;
    font-weight: 750;
}

tr:last-child td {
    border-bottom: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field.full {
    grid-column: 1/-1;
}

.field label {
    font-size: 13px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbd8e3;
    border-radius: 8px;
    background: #fff;
    font: 14px system-ui,sans-serif;
    color: var(--ink);
}

.field textarea {
    min-height: 90px;
    resize: vertical;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 18px 34px;
    color: #718397;
    font-size: 11px;
    background: #fff;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
}

.pill {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: #fff;
    font-size: 12px;
}

.image-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
}

.image-panel img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.small-note {
    font-size: 12px;
    color: var(--muted);
}

.login-shell {
    max-width: 460px;
    margin: 30px auto;
}

.hidden {
    display: none!important;
}

.menu-toggle {
    display: none;
}

.footer a {
    color: inherit;
}

@media (max-width:1050px){
    .grid4 {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .grid3 {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .content {
        padding: 25px 22px;
    }

    .topbar {
        padding: 14px 22px;
    }
}

@media (max-width:760px){
    .sidebar {
        position: relative;
        width: auto;
        max-height: none;
        padding: 14px;
    }

    .brand {
        padding-bottom: 12px;
    }

    .nav {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 3px;
    }

    .navlabel {
        grid-column: 1/-1;
        margin: 12px 8px 4px;
    }

    .main {
        margin-left: 0;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .content {
        padding: 20px 14px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .grid2,
    .grid3,
    .grid4 {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .barrow {
        grid-template-columns: 95px 1fr 35px;
    }

    .resource {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer {
        padding: 16px;
    }
}
