﻿.page-body {
    display: none;
}

.pt-page {
    min-height: 100vh;
    color: #17283a;
    background: #f3f6f8;
    font-family: 'Source Sans 3', sans-serif;
}

.pt-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    padding: 0 48px;
    background: rgba(248, 250, 251, 0.96);
    border-bottom: 1px solid rgba(20, 57, 91, 0.10);
    box-shadow: 0 2px 10px rgba(20, 57, 91, 0.035);
    backdrop-filter: blur(12px);
}

.pt-nav-content {
    width: 100%;
    max-width: 1320px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pt-nav-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: inherit;
    text-decoration: none;
}

    .pt-nav-brand:hover {
        color: inherit;
        text-decoration: none;
    }

.pt-nav-logo,
.pt-nav-brasao,
.pt-nav-logo-fallback {
    width: 38px;
    height: 38px;
}

.pt-nav-logo {
    flex-shrink: 0;
}

.pt-nav-brasao {
    display: block;
    object-fit: contain;
    border-radius: 50%;
}

.pt-nav-logo-fallback {
    align-items: center;
    justify-content: center;
    color: white;
    background: #1769aa;
    border-radius: 50%;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.pt-nav-title {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.pt-nav-subtitle {
    margin-top: 2px;
    color: rgba(23, 40, 58, 0.50);
    font-size: 11px;
    line-height: 1.2;
}

.pt-nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

    .pt-nav-links a {
        color: rgba(23, 40, 58, 0.62);
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
    }

        .pt-nav-links a:hover {
            color: #1769aa;
            text-decoration: none;
        }


/* Hero (subtelas) */

.pt-hero {
    position: relative;
    overflow: hidden;
    padding: 32px 48px 42px;
    background: #f7f9fa;
    border-bottom: 1px solid rgba(20, 57, 91, 0.09);
}

.pt-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(180, 176, 165, 0.45) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.8;
    pointer-events: none;
}

.pt-hero-content {
    position: relative;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.pt-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    color: #1769aa;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

    .pt-back-link:hover {
        color: #14395b;
        text-decoration: none;
    }

.pt-hero-kicker {
    display: block;
    margin-bottom: 7px;
    color: #1769aa;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.pt-hero-title {
    margin: 0;
    color: #14263a;
    font-family: 'Manrope', sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.pt-hero-desc {
    max-width: 700px;
    margin: 10px 0 0;
    color: rgba(23, 40, 58, 0.58);
    font-size: 15px;
    line-height: 1.5;
}


/* Conteúdo principal */

.pt-content {
    width: 100%;
    max-width: 1416px;
    margin: 0 auto;
    padding: 30px 48px 60px;
}


/* Cards de gráfico  */

.pt-analytics {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(330px, 2fr);
    gap: 14px;
    margin-bottom: 18px;
}

.pt-chart-card {
    min-width: 0;
    overflow: hidden;
    padding: 18px 20px 16px;
    background: white;
    border: 1px solid rgba(20, 57, 91, 0.16);
    border-radius: 6px;
}

.pt-chart-header {
    min-height: 42px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.pt-chart-title {
    margin: 0;
    color: #17283a;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.pt-chart-description {
    margin: 3px 0 0;
    color: rgba(23, 40, 58, 0.52);
    font-size: 12px;
    line-height: 1.3;
}

.pt-chart-badge {
    flex-shrink: 0;
    padding: 4px 8px;
    color: #1769aa;
    background: #edf4f9;
    border: 1px solid #d3e3ef;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.pt-chart-canvas {
    position: relative;
    width: 100%;
    height: 220px;
}


/* Tabela */

.pt-table-card {
    overflow: hidden;
    background: white;
    border: 1px solid rgba(20, 57, 91, 0.16);
    border-radius: 6px;
}

.pt-table-toolbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 17px 24px;
    border-bottom: 1px solid rgba(20, 57, 91, 0.14);
}

.pt-table-heading {
    margin: 0;
    color: #17283a;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pt-table-caption {
    margin: 3px 0 0;
    color: rgba(23, 40, 58, 0.52);
    font-size: 13px;
}

/* Campo de busca */

.pt-table-search {
    width: 330px;
    height: 42px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: rgba(23, 40, 58, 0.45);
    background: white;
    border: 1px solid rgba(20, 57, 91, 0.30);
    border-radius: 5px;
}

    .pt-table-search:focus-within {
        border-color: #1769aa;
        box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.12);
    }

    .pt-table-search input {
        width: 100%;
        margin-left: 10px;
        padding: 0;
        color: #17283a;
        background: transparent;
        border: 0;
        outline: 0;
        font-family: 'Source Sans 3', sans-serif;
        font-size: 14px;
    }

        .pt-table-search input::placeholder {
            color: rgba(23, 40, 58, 0.43);
        }

        .pt-table-search input::-webkit-search-cancel-button {
            display: none;
        }

/* Grid da tabela */

.pt-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.pt-table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
}

    .pt-table thead th {
        height: 40px;
        padding: 9px 12px;
        color: #14395b;
        background: #f7f9fb;
        border: 0;
        border-bottom: 1px solid rgba(20, 57, 91, 0.17);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.055em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .pt-table tbody td {
        height: 56px;
        padding: 8px 12px;
        color: #223548;
        background: white;
        border: 0;
        border-bottom: 1px solid rgba(20, 57, 91, 0.12);
        font-size: 13px;
        vertical-align: middle;
        box-sizing: border-box;
    }

    .pt-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .pt-table tbody tr:hover td {
        background: #f8fafc;
    }

/* Alinhamentos */

.pt-align-right {
    text-align: right !important;
}

.pt-align-center {
    text-align: center !important;
}

/* Células tipadas */

.pt-entity-name {
    display: block;
   /* min-width: 230px;*/
    color: #17283a;
    font-weight: 600;
    line-height: 1.3;
}

.pt-term {
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pt-term-type {
    color: rgba(23, 40, 58, 0.53);
    font-size: 10px;
    line-height: 1.15;
}

.pt-term-number {
    color: #253a4f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.pt-date,
.pt-currency {
    white-space: nowrap;
}

.pt-currency {
    color: #256b4c;
    font-weight: 700;
}

.pt-currency-muted {
    color: rgba(23, 40, 58, 0.55);
    font-weight: 500;
}

.pt-resource-tag {
    display: inline-block;
    padding: 3px 8px;
    color: #14395b;
    background: #edf4f9;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.pt-document {
    color: #253a4f;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.pt-location {
    color: #223548;
    font-size: 13px;
}

.pt-contact {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pt-contact-phone {
    color: #253a4f;
    font-size: 13px;
    font-weight: 500;
}

.pt-contact-email {
    color: rgba(23, 40, 58, 0.53);
    font-size: 11px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pt-count {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Badges de status */

.pt-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.pt-status-positive {
    color: #287a55;
    background: #edf8f1;
    border-color: #c9e6d4;
}

.pt-status-neutral {
    color: #425466;
    background: #f2f4f6;
    border-color: #dbe1e6;
}

.pt-status-warning {
    color: #8a6d1b;
    background: #fef8e7;
    border-color: #f0e0a0;
}

.pt-status-danger {
    color: #a33030;
    background: #fef0f0;
    border-color: #f0c0c0;
}

/* Rodapé DataTables */

.pt-table-card .dataTables_wrapper {
    font-family: 'Source Sans 3', sans-serif;
}

.pt-table-footer {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 20px;
    border-top: 1px solid rgba(20, 57, 91, 0.12);
}

    .pt-table-footer .dataTables_info {
        padding: 0 !important;
        color: rgba(23, 40, 58, 0.58);
        font-size: 13px;
    }

    .pt-table-footer .dataTables_paginate {
        padding: 0 !important;
    }

    .pt-table-footer .paginate_button {
        min-width: 32px !important;
        height: 32px;
        margin-left: 4px !important;
        padding: 5px 10px !important;
        color: #34495e !important;
        background: white !important;
        border: 1px solid rgba(20, 57, 91, 0.22) !important;
        border-radius: 4px !important;
        box-shadow: none !important;
    }

        .pt-table-footer .paginate_button:hover {
            color: #1769aa !important;
            background: #f1f6fa !important;
            border-color: #1769aa !important;
        }

        .pt-table-footer .paginate_button.current,
        .pt-table-footer .paginate_button.current:hover {
            color: white !important;
            background: #1769aa !important;
            border-color: #1769aa !important;
        }

        .pt-table-footer .paginate_button.disabled {
            opacity: 0.38;
        }


/* Estado vazio */

.pt-empty-state {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: white;
    border: 1px solid rgba(20, 57, 91, 0.16);
    border-radius: 6px;
    text-align: center;
}

.pt-empty-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    color: #1769aa;
    background: #edf4f9;
    border-radius: 14px;
}

.pt-empty-state h2 {
    margin: 0;
    color: #17283a;
    font-family: 'Manrope', sans-serif;
    font-size: 19px;
    font-weight: 700;
}

.pt-empty-state p {
    max-width: 420px;
    margin: 7px 0 0;
    color: rgba(23, 40, 58, 0.53);
    font-size: 14px;
}

@media (max-width: 768px) {
    .pt-nav {
        padding: 0 22px;
    }

    .pt-nav-links {
        display: none;
    }

    .pt-nav-title {
        max-width: 220px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pt-hero {
        padding: 26px 24px 34px;
    }

    .pt-hero-title {
        font-size: 30px;
    }

    .pt-content {
        padding: 22px 16px 45px;
    }

    .pt-analytics {
        grid-template-columns: 1fr;
    }

    .pt-chart-canvas {
        height: 210px;
    }

    .pt-table-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .pt-table-search {
        width: 100%;
    }

    .pt-table-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Resolve ellipsis no último th */

.pt-table thead th::after,
.pt-table thead th::before {
    display: none !important;
    content: none !important;
}


.pt-table td:first-child .pt-entity-name {
    min-width: 0;
}

/* Tabs  */

.pt-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(20, 57, 91, 0.14);
    margin-bottom: 24px;
}

.pt-tab {
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(23, 40, 58, 0.55);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s;
    user-select: none;
}

    .pt-tab:hover {
        color: #17283a;
    }

    .pt-tab.pt-tab--active {
        color: #1769aa;
        border-bottom-color: #1769aa;
    }

.pt-tab-panel {
    display: none;
}

    .pt-tab-panel.pt-tab-panel--active {
        display: block;
    }