/* Apresentação executiva — contraste para projetor, impressão limpa */
.apx-wrap {
    max-width: 1200px;
    margin: 0 auto;
}
.apx-hero {
    background: linear-gradient(135deg, #1e2124 0%, #2f3237 45%, #3a3f45 100%);
    color: #f4f4f0;
    border-radius: 0.35rem;
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(214, 220, 31, 0.25);
}
.apx-hero h1 {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.apx-hero .lead {
    color: #c9d0d8;
    font-size: 1rem;
    max-width: 52rem;
}
.apx-badge-ref {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #5c4100;
    color: #fff3bf;
    padding: 0.2rem 0.45rem;
    border-radius: 0.2rem;
}
.apx-card {
    border: 1px solid #d9dee3;
    border-radius: 0.35rem;
    background: #fff;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.apx-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1d21;
}
.apx-card .display-6 {
    font-size: 1.35rem;
}
.apx-msg {
    border-left: 4px solid #d6dc1f;
    padding: 1rem 1.25rem;
    background: #fafbf3;
    margin: 1.25rem 0;
}
.apx-arch {
    background: #f6f8fa;
    border: 1px solid #e2e8ef;
    padding: 1.25rem;
    border-radius: 0.35rem;
}
.apx-actions .btn {
    min-height: 3rem;
    font-weight: 600;
}
.apx-gantt {
    position: relative;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #cfd6dd;
    border-radius: 0.35rem;
    padding: 0.5rem 0 1rem;
}
.apx-gantt-rail {
    position: relative;
    height: 2.25rem;
    margin: 0.35rem 0;
    background: repeating-linear-gradient(
        90deg,
        #eef1f4,
        #eef1f4 1px,
        transparent 1px,
        transparent calc(100% / 44)
    );
    border-radius: 0.2rem;
}
.apx-gantt-bar {
    position: absolute;
    top: 0.35rem;
    height: 1.5rem;
    border-radius: 0.2rem;
    opacity: 0.92;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.apx-gantt-bar.crit {
    background: #b83232;
}
.apx-gantt-bar.alta {
    background: #c45c1a;
}
.apx-gantt-bar.media {
    background: #2a6f97;
}
.apx-gantt-bar.baixa {
    background: #3d5a73;
}
.apx-gantt-marco {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: #c00;
    z-index: 2;
    pointer-events: none;
}
.apx-gantt-label {
    font-size: 0.78rem;
    color: #333;
    max-width: 38%;
    line-height: 1.25;
}
.apx-matrix-wrap {
    max-width: 380px;
}
.apx-matrix-grid {
    display: grid;
    grid-template-columns: 2.25rem repeat(5, minmax(0, 1fr));
    gap: 2px;
    background: #b8c0c8;
    padding: 2px;
}
.apx-mh {
    background: #e9ecef;
    font-size: 0.68rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.85rem;
    color: #333;
}
.apx-mcell {
    background: #fff;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #444;
}
.apx-mcell.hit {
    background: #d6dc1f;
    color: #1a1d21;
}
.apx-etq {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
}
.apx-etq-CRITICO {
    background: #7f1d1d;
    color: #fff;
}
.apx-etq-ALTO {
    background: #c2410c;
    color: #fff;
}
.apx-etq-MEDIO {
    background: #ca8a04;
    color: #1a1a1a;
}
.apx-etq-AGUARDAR {
    background: #64748b;
    color: #fff;
}
.apx-svg-bar {
    fill: #2f3237;
}
.apx-svg-bar-2 {
    fill: #d6dc1f;
}
.apx-donut-seg {
    stroke-width: 18;
    fill: none;
}
@media print {
    .sidebar,
    .topbar,
    .no-print,
    .btn {
        display: none !important;
    }
    .content-area {
        margin: 0 !important;
        padding: 0 !important;
    }
    .apx-hero {
        background: #2f3237 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
