.processo-externo-modal {
    border-radius: 12px;
    overflow: hidden;
}
.processo-externo-modal .modal-header {
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: #fff;
}
.processo-externo-modal .pe-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 167, 69, .12);
    color: #28a745;
    font-size: 18px;
}
.pe-card {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
.assinatura-page {
    padding: 15px 18px 35px;
    display: flex;
    justify-content: center; 
}
.assinatura-wrap {
    width: 100%;
    max-width: 980px;
}
.assinatura-hero {
    background: linear-gradient(135deg, rgba(13,110,253,.12), rgba(13,110,253,.03));
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
}
.assinatura-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.assinatura-title {
    margin: 0;
    font-weight: 800;
    font-size: 22px;
    line-height: 1.2;
}
.assinatura-subtitle {
    margin: 6px 0 0;
    color: #5b6775;
    line-height: 1.4;
}
.assinatura-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #0d6efd;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: .95rem;
    box-shadow: 0 10px 18px rgba(13,110,253,.20);
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
    .assinatura-btn:hover {
        filter: brightness(.95);
        transform: translateY(-1px);
        box-shadow: 0 12px 22px rgba(13,110,253,.24);
    }
    .assinatura-btn:active {
        transform: translateY(0);
    }
.assinatura-alert {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    line-height: 1.35;
}
.assinatura-alert-warn {
    background: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}
.assinatura-alert-info {
    background: #e7f5ff;
    border-color: #b3e5ff;
    color: #0b5c86;
}
.assinatura-step {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #fff;
}
.assinatura-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: #fff;
}
.assinatura-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    color: #fff;
    font-weight: 800;
    flex: 0 0 auto;
}
.assinatura-step-title {
    font-weight: 800;
    line-height: 1.1;
}
.assinatura-step-desc {
    font-size: 13px;
    color: #6c757d;
    margin-top: 2px;
}
.assinatura-step-body {
    padding: 16px;
}
.assinatura-list {
    margin: 0;
    padding-left: 18px;
}
    .assinatura-list li {
        margin: 6px 0;
    }
.assinatura-media {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    background: #f8f9fa;
    padding: 10px;
}
    .assinatura-media img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
.assinatura-muted {
    color: #6c757d;
    font-size: 12.5px;
}
@media (max-width: 576px) {
    .assinatura-page {
        padding: 12px 12px 24px;
    }
    .assinatura-hero-top {
        justify-content: center; 
        text-align: center;
    }
    .assinatura-title {
        font-size: 20px;
    }
    .assinatura-btn {
        width: 100%; 
        max-width: 340px;
    }
}
.pe-card .card-header {
    border-bottom: 1px solid rgba(0,0,0,.06);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.table-modern-solicitante,
.table-modern-tramitacoes-externo {
    border-collapse: separate;
    border-spacing: 0 4px;
}
.table-modern-solicitante thead th,
.table-modern-tramitacoes-externo thead th {
    border: none;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-weight: 700; 
    color: #495057; 
    background: #e9eef5; 
    border-bottom: 2px solid #d7dee8 !important;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}
.table-modern-solicitante tbody tr,
.table-modern-tramitacoes-externo tbody tr {
    background-color: #ffffff; 
    box-shadow: 0 3px 10px rgba(0,0,0,.04);
    transition: transform .08s ease-out, box-shadow .08s ease-out, background-color .08s;
}
.table-modern-solicitante tbody tr:hover,
.table-modern-tramitacoes-externo tbody tr:hover {
    background-color: #e6efff;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transform: translateY(-1px);
}
.table-modern-solicitante tbody td,
.table-modern-tramitacoes-externo tbody td {
    border-top: none;
    border-bottom: none;
    font-size: 0.84rem;
    vertical-align: middle;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}
.table-modern-solicitante tbody tr td:first-child,
.table-modern-tramitacoes-externo tbody tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.table-modern-solicitante tbody tr td:last-child,
.table-modern-tramitacoes-externo tbody tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding-right: 1rem;
    padding-left: 1rem;
    min-width: 70px;
    text-align: center;
}
.btn-acao-grid {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.anexos-container {
    max-height: none;
    /*overflow-y: auto;*/
    /*overflow-x: hidden;*/
    padding: 6px 0;
    z-index: 1099;
}

.anexo-item {
    padding: 4px 0;
}

.anexo-nome {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
}

    /* opcional: melhora o clique do �cone */
    .anexo-nome i {
        margin-right: 6px;
    }

.btn-acao-grid i {
    font-size: 0.9rem;
}
.processo-interno-modal {
    border-radius: 12px;
    overflow: hidden;
}
.processo-interno-modal .modal-header {
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: #fff;
}
.processo-interno-modal .pi-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 162, 184, .12);
    color: #17a2b8;
    font-size: 18px;
}
.pi-card {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
.pi-card .card-header {
    border-bottom: 1px solid rgba(0,0,0,.06);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.processo-interno-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.85);
    z-index: 10;
}
#div-table-tramitacoes {
    margin-top: 0.75rem;
}
.table-modern-tramitacoes {
    border-collapse: separate;
    border-spacing: 0 4px; 
}
.table-modern-tramitacoes thead th {
    border: none;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-weight: 700; 
    color: #495057; 
    background: #e9eef5; 
    border-bottom: 2px solid #d7dee8 !important;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}
.table-modern-tramitacoes tbody tr {
    background-color: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,.04);
    transition: transform .08s ease-out, box-shadow .08s ease-out, background-color .08s;
}
.table-modern-tramitacoes tbody tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.table-modern-tramitacoes tbody tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}
.table-modern-tramitacoes tbody td {
    border-top: none;
    border-bottom: none;
    font-size: 0.84rem;
    vertical-align: middle;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}
#div-table-tramitacoes {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-modern-tramitacoes tbody tr:hover {
    background-color: #e6efff;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transform: translateY(-1px);
}
.table-modern-tramitacoes {
    margin-right: 6px; 
}
:root {
    --pe-normal: 1140px;
    --pe-wide: 1600px;
}
.modal-pe-size.modal-pe-normal {
    max-width: var(--pe-normal) !important;
}
.modal-pe-size.modal-pe-wide {
    max-width: var(--pe-wide) !important;
}
@media (min-width: 1200px) {
    .modal-pe-size.modal-pe-wide {
        width: 95vw;
    }
}
:root {
    --pi-normal: 1140px; 
    --pi-wide: 1600px;
}
.modal-pi-size.modal-pi-normal {
    max-width: var(--pi-normal) !important;
}
.modal-pi-size.modal-pi-wide {
    max-width: var(--pi-wide) !important;
}
@media (min-width: 1200px) {
    .modal-pi-size.modal-pi-wide {
        width: 95vw;
    }
}
.table-modern-tramitacoes .btn-acao-grid {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.table-modern-tramitacoes .btn-acao-grid i {
    font-size: 0.9rem;
}
.table-modern-tramitacoes tbody td:nth-child(1), 
.table-modern-tramitacoes tbody td:nth-child(4), 
.table-modern-tramitacoes tbody td:nth-child(5), 
.table-modern-tramitacoes tbody td:nth-child(6) {
    text-align: center;
    white-space: nowrap;
}
.table-modern-tramitacoes tbody td:last-child {
    padding-right: 1rem; 
    padding-left: 1rem;
    min-width: 70px; 
}
.table-modern-tramitacoes .btn-acao-grid {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    border-radius: 6px;
}
.table-modern-tramitacoes .btn-acao-grid i {
    font-size: 0.8rem;
}
.table-modern-tramitacoes.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before,
.table-modern-tramitacoes.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child:before {
    top: 50%;
    transform: translateY(-50%);
}
#modal-processo-externo .select2-container {
    width: 100% !important;
}
#modal-processo-interno .select2-container,
#modal-processo-externo .select2-container {
    width: 100% !important;
}
#modal-processo-externo .select2-container--default .select2-selection--single {
    height: 38px !important; 
    border: 1px solid #ced4da !important;
    border-radius: .25rem !important;
}
#modal-processo-externo .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important; 
    padding-left: .75rem !important; 
}
#modal-processo-externo .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
    top: 1px !important;
    right: 6px !important;
}
#modal-processo-externo .select2-container--default .select2-selection--multiple {
    min-height: 38px !important;
    border: 1px solid #ced4da !important;
}
#div-table-anexos-externo .table-modern-anexos-externo {
    border-collapse: separate;
    border-spacing: 0 6px; 
}
#div-table-anexos-externo .table-modern-anexos-externo thead th {
    border: none !important;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
    color: #6c757d;
    background: #f4f6f9;
    padding: .7rem .85rem;
}
#div-table-anexos-externo .table-modern-anexos-externo tbody tr {
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,.04);
    transition: transform .08s ease-out, box-shadow .08s ease-out, background-color .08s;
}
#div-table-anexos-externo .table-modern-anexos-externo tbody td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
#div-table-anexos-externo .table-modern-anexos-externo tbody td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
#div-table-anexos-externo .table-modern-anexos-externo tbody td {
    border-top: none !important;
    border-bottom: none !important;
    padding: .55rem .85rem;
    font-size: .86rem;
    vertical-align: middle;
}
#div-table-anexos-externo .table-modern-anexos-externo tbody tr:hover {
    background: #f2f7ff;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    transform: translateY(-1px);
}
#div-table-anexos-externo input[type="file"] {
    font-size: .8rem;
}
#div-table-anexos-externo .table-modern-anexos-externo tbody td:nth-child(1),
#div-table-anexos-externo .table-modern-anexos-externo tbody td:nth-child(3),
#div-table-anexos-externo .table-modern-anexos-externo tbody td:nth-child(4) {
    text-align: center;
    white-space: nowrap;
}
#div-table-anexos-externo .table-modern-anexos-externo tbody td:nth-child(3) {
    font-weight: 600;
}
#div-table-anexos-externo .table-modern-anexos-externo tbody td:nth-child(4) .btn {
    padding: .2rem .55rem;
    font-size: .78rem;
    border-radius: 8px;
}
#div-table-anexos-externo .table-modern-anexos-externo.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before,
#div-table-anexos-externo .table-modern-anexos-externo.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child:before {
    top: 50%;
    transform: translateY(-50%);
}
#div-table-anexos-interno .table-modern-anexos-interno {
    border-collapse: separate;
    border-spacing: 0 6px; 
}
#div-table-anexos-interno .table-modern-anexos-interno thead th {
    border: none !important;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
    color: #6c757d;
    background: #f4f6f9;
    padding: .7rem .85rem;
}
#div-table-anexos-interno .table-modern-anexos-interno tbody tr {
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,.04);
    transition: transform .08s ease-out, box-shadow .08s ease-out, background-color .08s;
}
#div-table-anexos-interno .table-modern-anexos-interno tbody td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
#div-table-anexos-interno .table-modern-anexos-interno tbody td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
#div-table-anexos-interno .table-modern-anexos-interno tbody td {
    border-top: none !important;
    border-bottom: none !important;
    padding: .55rem .85rem;
    font-size: .86rem;
    vertical-align: middle;
}
#div-table-anexos-interno .table-modern-anexos-interno tbody tr:hover {
    background: #f2f7ff;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    transform: translateY(-1px);
}
#div-table-anexos-interno .table-modern-anexos-interno tbody td:nth-child(1),
#div-table-anexos-interno .table-modern-anexos-interno tbody td:nth-child(3),
#div-table-anexos-interno .table-modern-anexos-interno tbody td:nth-child(4) {
    text-align: center;
    white-space: nowrap;
}
#div-table-anexos-interno .table-modern-anexos-interno tbody td:nth-child(4) .btn {
    padding: .2rem .55rem;
    font-size: .78rem;
    border-radius: 8px;
}
#div-table-anexos-interno .table-modern-anexos-interno.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before,
#div-table-anexos-interno .table-modern-anexos-interno.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child:before {
    top: 50%;
    transform: translateY(-50%);
}
.table-modern-tramitacoes tbody:before,
.table-modern-tramitacoes-externo tbody:before,
.table-modern-solicitante tbody:before,
#div-table-anexos-externo .table-modern-anexos-externo tbody:before,
#div-table-anexos-interno .table-modern-anexos-interno tbody:before {
    content: "";
    display: block;
    height: 8px;
}
#usuario-responsavel-processo-interno + .select2-container--default .select2-selection--multiple {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-height: 38px;
}
#usuario-responsavel-processo-interno + .select2-container--default .select2-selection--multiple .select2-selection__choice {
    font-size: 11px;
    margin-right: 2px;
    line-height: 1.2;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.no-padding {
    padding-right: 0px !important;
    padding-left: 0px !important;
}
.no-padding-right {
    padding-right: 0px !important;
}
.no-padding-left {
    padding-left: 0px !important;
}
.titulo-municipio {
    margin-left: 12px;
    font-size: 18px;
    color: #fff;
    line-height: 2.0;
}
.titulo-processo-digital {
    margin-left: 12px;
    color: #fff;
    line-height: 0.4;
}
.badge-numero-anexo {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    background: linear-gradient(135deg, #2E7D32, #43A047);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    z-index: 1000;
}

.linha-obrigatoria {
    background-color: #ffdddd !important;
}

.fc-event {
    cursor: default !important; /* remove �cone de mover */
}

.fc-event * {
    cursor: default !important; /* remove cursor especial nos filhos */
}

.fc-event-trash {
    cursor: pointer !important; /* mant�m cursor de clique na lixeira */
}

.footer {
    bottom: 0 !important;
    left: 0;
    padding: 10px 15px;
    right: 0;
    border-top: 1px solid #e9ecef;
    background: #fff;
}
.footer {
    position: absolute !important;
}
@media (max-width: 768px) {
    .titulo-processo-digital {
        margin-left: 12px;
        color: #fff;
        line-height: 0.4;
        font-size: 19px;
    }
}

.note-editable span[style*="font-weight: bold"],
.note-editable b,
.note-editable strong {
    font-weight: bold !important;
}

@media (max-width: 420px) {
    .titulo-processo-digital {
        padding-top: 15px;
        margin-left: 8px;
        color: #fff;
        line-height: 0.4;
        font-size: 14px;
    }

    .titulo-municipio {
        margin-left: 8px;
        font-size: 14px;
        color: #fff;
        line-height: 2.0;
    }
}

@media (max-width: 350px) {
    .titulo-processo-digital {
        padding-top: 15px;
        margin-left: 8px;
        color: #fff;
        line-height: 0.4;
        font-size: 7px;
    }

    .titulo-municipio {
        margin-left: 8px;
        font-size: 7px;
        color: #fff;
        line-height: 2.0;
    }
}

@media (min-width: 768px) {
    .navbar-header {
        width: 75px;
        flex-shrink: 0;
    }
}
.abase2 .card {
    padding: 5px !important;
    margin-bottom: 5px !important;
}
abase2 .card .abase2 {
    line-height: 0.1 !important;
}

    .abase2 .card-title {
        color: #000 !important;
        margin-bottom: 0.01rem !important;
    }
.abase2 h2 {
    font-size: 1.0rem !important;
    line-height: 0.9 !important;
}
.abase2 i {
    font-size: 1.2rem !important;
}


.btn .fa-clock {
    font-size: 0.6rem !important;
}
.btn .fa-history {
    font-size: 0.6rem !important;
}
.btn .fa-angle-double-right {
    font-size: 0.6rem !important;
}
.icon-toggle.fa-angle-double-left::before,
.icon-toggle.fa-angle-double-right::before {
    font-size: 0.8rem !important;
}
.btn-group-sm > .btn, .btn-sm {
    padding: 0.25rem 0.5rem;
    /*font-size: .26rem;*/
    line-height: 1.4;
    border-radius: 0.2rem;
}
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child:before, table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child:before {
    top: 12px;
    left: 4px;
    height: 14px;
    width: 14px;
    display: block;
    position: absolute;
    color: white;
    border: 2px solid white;
    border-radius: 14px;
    box-shadow: 0 0 3px #444;
    box-sizing: content-box;
    text-align: center;
    text-indent: 0 !important;
    font-family: 'Courier New', Courier, monospace;
    line-height: 14px;
    content: '+';
    background-color: #31b131;
}

.abase2 .align-items-center {
    line-height: 0.1 !important;
}
.align-items-center .abase2 {
    line-height: 0.1 !important;
}
.abase .card {
    color: #fff !important;
}
.abase2 .card .card-body {
    padding: 0.05rem 0.05rem 0.05rem 0.05rem !important;
}

.abase .card .card-body {
    padding: 0.05rem 0.05rem 0.05rem 0.05rem !important;
}

        .abase .card .card-body .card-title {
            font-size: 1.25rem;
        }

        .abase .card .card-body .card-title {
            display: inline-block;
        }

    .abase .card .btn-secondary {
        border-color: #ffffff !important;
        background: #fff !important;
        height: 100%;
    }

    .abase .card:hover .btn-secondary {
        border-color: #f8f9fa !important;
        background: #f8f9fa !important;
        height: 100%;
    }

    .abase .card .btn {
        color: #6c757d !important;
    }

.abase .form-group {
    margin-bottom: 5px;
}

.table td, .table th {
    padding: 0.5rem;
    vertical-align: top;
    border-top: 1px solid #e9ecef;
}

.btnAbase {
    margin-top: -5px;
    padding: 3px 5px 2px 5px;
}
/**
.page-titles {
    background: #fff;
    padding: 5px 10px 0px 10px;
    box-shadow: 1px 0 20px rgba(0,0,0,.00);
    margin: 0 -25px 0px;
}**/
.comment-text {
    padding: 20px 15px 14px 20px;
}

.round {
    line-height: 48px;
    color: #fff;
    width: 40px;
    height: 40px;
    display: inline-block;
    text-align: center;
}

    .round, .round img {
        border-radius: 0;
    }

        .round, .round.round-info {
            background: #fff;
        }

.iconAbase {
    font-size: 30px !important;
}

    .iconAbase .fa-arrow-alt-circle-right {
        color: #00c0c8;
    }

    .iconAbase .fa-industry {
        color: #fb9678a3;
    }

    .iconAbase .fa-money-bill-alt {
        color: #ab8ce4c7;
    }

    .iconAbase .fa-users {
        color: #00c292;
    }

    .iconAbase .fa-certificate {
        color: #e21b2f8a;
    }

    .iconAbase .fa-donate {
        color: #fec20b;
    }

    .iconAbase .fa-truck-moving {
        color: #fb9678;
    }

    .iconAbase .fa-balance-scale {
        color: #e46a76;
    }

    .iconAbase .fa-seedling {
        color: #02dea8;
    }

    .iconAbase .fa-gavel {
        color: #02a1de;
    }

    .iconAbase .fa-file-invoice-dollar {
        color: #00c283;
    }

    .iconAbase .fa-hand-holding-usd {
        color: #fec209;
    }

    .iconAbase .fa-info-circle {
        color: #f1e907;
    }


.iconAbase {
    font-size: 30px !important;
}

    .iconAbase .fa-arrow-alt-circle-right {
        color: #00c0c8;
    }

    .iconAbase .fa-industry {
        color: #fb9678a3;
    }

    .iconAbase .fa-money-bill-alt {
        color: #00c292;
    }

    .iconAbase .fa-users {
        color: #00c292;
    }

    .iconAbase .fa-certificate {
        color: #e21b2f8a;
    }

    .iconAbase .fa-donate {
        color: #fec20b;
    }

    .iconAbase .fa-truck-moving {
        color: #fb9678;
    }

    .iconAbase .fa-balance-scale {
        color: #e46a76;
    }

    .iconAbase .fa-seedling {
        color: #02dea8;
    }

    .iconAbase .fa-gavel {
        color: #02a1de;
    }

    .iconAbase .fa-file-invoice-dollar {
        color: #00c283;
    }

    .iconAbase .fa-hand-holding-usd {
        color: #fec209;
    }

    .iconAbase .fa-info-circle {
        color: #f1e907;
    }

.iconDespesas .fa-file-invoice-dollar {
    color: #02dea8;
}

.iconDespesas .counter {
    color: #02dea8;
}

.Bg-empenho {
    background-color: #02dea8 !important;
}

.iconAbase .fa-dollar-sign {
    color: #01c0c8 !important;
}

.iconAbase .fa-sticky-note {
    color: #01c0c8 !important
}

.iconAbase .fa-hand-holding-usd {
    color: #00654c;
}

.ColorSaldo {
    color: #00654c;
}

.BarColorSaldo {
    background-color: #00654c !important;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #05a9f3;
    border-color: #05a9f3;
}

@media (max-width: 1900px) {
    .topbar .top-navbar {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        flex-direction: row;
        flex-wrap: nowrap;
        -webkit-align-items: center;
    }
}
#layout-top-bar .top-navbar {
    background: linear-gradient(90deg, #0b66d0 0%, #0aa3e6 55%, #0b66d0 100%);
    height: 68px;
    padding: 0 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
#layout-top-bar .navbar-header,
#layout-top-bar .navbar-collapse {
    align-items: center;
}
#layout-top-bar .navbar-header {
    background: transparent !important;
}
#layout-top-bar .titulo-processo-digital {
    margin: 0 0 0 -3px;
    color: #fff;
    font-size: 1.65rem;
    font-weight: 500;
    letter-spacing: .2px;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
#layout-top-bar .navbar-brand {
    cursor: pointer;
}
#layout-top-bar .navbar-nav.my-lg-0 .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 38px;
    padding: 0;
    margin-left: 5px;
    border-radius: 12px;
    color: #fff;
    opacity: .95;
    transition: background .15s ease, transform .15s ease, opacity .15s ease;
}
    #layout-top-bar .navbar-nav.my-lg-0 .nav-link:hover {
        background: rgba(255,255,255,.16);
        opacity: 1;
        transform: translateY(-1px);
    }

    #layout-top-bar .navbar-nav.my-lg-0 .nav-link:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255,255,255,.25);
    }

    #layout-top-bar .navbar-nav.my-lg-0 .nav-link i,
    #layout-top-bar .navbar-nav.my-lg-0 .nav-link span.fa {
        font-size: 18px;
    }
#layout-top-bar .badge-topbar {
    position: absolute;
    top: 2px;
    right: -6px;
    height: 16px;
    min-width: 16px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.22);
    font-variant-numeric: tabular-nums;
}
#layout-top-bar .navbar-nav.my-lg-0 .nav-link {
    position: relative;
}
#layout-top-bar .badge-topbar {
    position: absolute;
    top: 0px; 
    right: 2px;
    height: 15px;
    min-width: 14px;
    padding: 0 4px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.22);
    white-space: nowrap;
    pointer-events: none
}
#layout-top-bar .u-pro .sem-foto {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 0 solid rgba(255,255,255,.55);
    box-shadow: 0 2px 10px rgba(0,0,0,.22);
    overflow: hidden;
}
    #layout-top-bar .u-pro .sem-foto img {
        object-fit: cover;
        display: block;
    }
#layout-top-bar #aumenta_fonte .nav-link,
#layout-top-bar #pedir_ajuda .nav-link,
#layout-top-bar #reduz_fonte .nav-link,
#layout-top-bar #altocontraste .nav-link {
    width: auto;
    padding: 0 3px;
    height: 38px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
}
#layout-top-bar .u-pro img {
    height: 38px;
    padding-top: 0 !important;
    opacity: .95;
}
@media (max-width: 992px) {
    #layout-top-bar .top-navbar {
        height: 58px;
    }
    #layout-top-bar .titulo-processo-digital {
        font-size: 1.2rem;
        margin-left: 12px;
    }
    #layout-top-bar .navbar-nav.my-lg-0 .nav-link {
        width: 40px;
        height: 36px;
        margin-left: 4px;
    }
    #layout-top-bar .navbar-brand .brasao {
        height: 53px;
        width: auto;
        border-radius: 9px;
    }
    #layout-top-bar img.brasao:hover {
        box-shadow: 100px 20px 50px rgba(0,0,0,.20), 
        inset 0 10px 20px rgba(0,0,0,.10);
    }
    #layout-top-bar .navbar-brand {
        cursor: pointer;
    }
}
body {
    font-family: Poppins,sans-serif;
    line-height: 1.5;
    color: #212529;
    background-color: #edf1f5;
}

.dataTables_wrapper {
    padding-right: 0px !important;
    padding-left: 0px !important;
}

.form-group {
    margin-bottom: 5px;
}

.brasao {
    height: 50px;
}

.card-title {
    margin-bottom: 0.3rem;
}

.money {
    float: right !important
}

.iconAbase .fa-id-card-alt {
    color: #fb9678
}

.iconAbase .mdi-contacts {
    color: #03a9f3;
}

.iconAbase .fa-money-bill-alt {
    color: #00c292;
}

.iconAbase .fa-id-badge {
    color: #01c0c8;
}

.iconAbase .mdi-car {
    color: #05a9f3;
}

.w-100 {
    width: 100%;
}

.linha0 {
    bottom: 0;
    background: #f4f4f4;
}

.linhaMargem {
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.abase5 .custom-control {
    padding-left: 0.025rem !important;
}

.card-sem-borda {
    margin-bottom: 1px !important;
}

    .card-sem-borda .no-padding .card {
        margin-bottom: 1px !important;
    }

.m-t-60 {
    margin-top: 60px;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #05a9f3;
    border-color: #05a9f3;
}

.dropdown-menu.show {
    display: block;
    width: 100%;
}

.bootstrap-select .dropdown-toggle .filter-option-inner-inner {
    overflow: hidden;
    color: #000;
}

@media (max-width: 991px) {
    .Botao100 {
        width: 100%;
    }
}

.footerGrafico {
    bottom: 0 !important;
    left: 0;
    padding: 0px 0px;
    right: 0;
    border-top: 1px solid #e9ecef;
    background: #fff;
    position: absolute;
}

@media (max-width: 100px) {
    .footerGrafico {
        bottom: 0 !important;
        left: 0;
        padding: 0px 0px;
        right: 0;
        border-top: 1px solid #e9ecef;
        background: #fff;
        position: relative;
    }
}

.loading-table {
    font-size: 70px !important;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: hidden;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.foto-configuracao {
    background-image: url('');
    background-size: contain;
    background-position: center;
    height: 93px;
    width: inherit;
    display: inline-block;
    background-repeat: no-repeat;
}

.foto-adicionar-anexo {
    background-image: url('');
    background-size: contain;
    background-position: center;
    height: 250px;
    width: inherit;
    display: inline-block;
    background-repeat: no-repeat;
}

.btn-anexo {
    background: #2962FF;
    color: white;
}

.abase7 .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: none !important;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.abase7 .dropdown-toggle:empty::after {
    margin-left: 0;
}

.btn-opcoes-anexo {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .5rem;
    font-size: .575rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.abase7 .nav {
    display: flex;
    padding-right: 0 !important;
}

.abase7 .bg-light {
    background-color: #ffffff !important;
}

.abase7 a:hover {
    color: black;
}

.nav-pills .show > .nav-link {
    color: black;
    background-color: #fff;
    font-size: 7px;
}

.abase7 a {
    color: #797979;
    font-size: 12px
}

.abase7 .dropdown-item {
    color: #040f2d;
}

.abase7 .bg-light {
    background-color: #ffffff !important;
}

.abase7 .dropdown-item:active {
    color: #040f2d;
    background-color: #f5f5f5;
}

.abase7 .card:hover .btn-secondary {
    border-color: #fff !important;
    background: #fff !important;
    height: 100%;
}
.select2-selection__rendered {
    line-height: 38px !important;
}

.select2-selection {
    height: 38px !important;
}
.fab {
    position: fixed;
    bottom: 100px;
    right: 10px;
    font-family: Poppins,sans-serif;
}

    .fab button {
        cursor: pointer;
        width: 48px;
        height: 48px;
        border-radius: 30px;
        background-color: #FFF;
        border: none;
        box-shadow: 0 0 8px 0 rgba(0,0,0,.5);
        font-size: 24px;
        color: black;
        -webkit-transition: .2s ease-out;
        -moz-transition: .2s ease-out;
        transition: .2s ease-out;
    }

        .fab button:focus {
            outline: none;
        }

        .fab button.main {
            position: absolute;
            width: 60px;
            height: 60px;
            border-radius: 30px;
            background-color: #03A9F3;
            right: 0;
            bottom: 0;
            z-index: 20;
            color: white;
        }

    .fab ul {
        position: absolute;
        bottom: 70px;
        right: 60px;
        padding: 0;
        padding-right: 5px;
        margin: 0;
        list-style: none;
        z-index: 10;
        -webkit-transition: .2s ease-out;
        -moz-transition: .2s ease-out;
        transition: .2s ease-out;
    }

        .fab ul li {
            display: flex;
            justify-content: flex-start;
            position: relative;
            margin-bottom: 3%;
            opacity: 1;
            -webkit-transition: .3s ease-out;
            -moz-transition: .3s ease-out;
            transition: .3s ease-out;
            color:#000;
        }

            .fab ul li label {
                margin-right: 10px;
                white-space: nowrap;
                display: block;
                margin-top: 10px;
                padding: 8px 5px 5px 5px;
                background-color: white;
                box-shadow: 0 0 8px 0 rgba(0,0,0,.5);
                border-radius: 3px;
                font-size: 14px;
                font-weight: 400;
                opacity: 1;
                -webkit-transition: .2s ease-out;
                -moz-transition: .2s ease-out;
                transition: .2s ease-out;
            }

    .fab button.main:active,
    .fab button.main:focus {
        outline: none;
        background-color: #0b82f5;
        box-shadow: 0 3px 8px rgba(0,0,0,.5);
    }
.span-obrigatorio{
    color:red;
}


.selected-dataTable {
    background-color: #B4DDEF !important;
}

/* ======== menu principal =============*/
.activeMenu {
    display: none;
}

#main-colapse {
    min-width: 0;
    margin-left: 5px;
    z-index:0;
}
#menu-colapse{
    z-index: 1;
}
#menu-colapse, #main-colapse {
    transition: all 0.3s ease;
}

.layout-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.menu-lateral {
    width: 250px;
    min-width: 70px;
    transition: width 0.3s ease;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.menu-lateral.reduzido {
    width: 70px;
}
.assunto-card {
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    margin-top: 15px;
    overflow: hidden;
}
.assunto-resizable {
    box-sizing: border-box;
}
.assunto-body {
    height: calc(100% - 22px);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}
.assunto-resizebar {
    height: 25px;
    cursor: ns-resize;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 2px 2px 24px 24px;
    background-color: #efeeee; 
    transition: background-color .15s ease, opacity .15s ease;
}
.assunto-resizebar::before {
    content: "";
    width: 42px;
    height: 6px;
    border-radius: 4px;
    background: #c3c3c3;
    opacity: .9;
}
.assunto-resizebar:hover {
    background-color: #f6f6f6;
}
.assunto-resizebar:hover::after {
    opacity: 1;
}
.conteudo-principal {
    flex: 1;
    padding: 1rem;
    overflow-x: auto;
    transition: margin 0.3s ease;
    background-color: #fff; 
    border-left: 1px solid #dee2e6;
}

.menu-lateral,
#menu-container {
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

.list-group-item-collapse {
    position: relative;
    overflow: visible;
    z-index: 10;
}

/* Submenu flutuante */
.menu-colapse {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 8px;
    z-index: 999999;
    border-radius: 4px;
}

.list-group-item-collapse:hover > .menu-colapse {
    display: block;
}

.icon-centralizado {
    display: flex;
    justify-content: center;
    width: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}

.texto-campo {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.filtro-oficio-label {
    display: block;
    margin-bottom: 4px !important;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    background: #fff;
}
.filtro-oficio-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
}
.filtro-oficio-wrapper .form-group {
    margin-bottom: 0 !important;
    width: calc(100% - 40px) !important;
    height: 38px;
    display: flex;
    align-items: stretch;
}
.filtro-oficio-wrapper .form-group select.form-control {
    height: 38px !important;
    min-height: 38px;
}
.filtro-oficio-wrapper > input.form-control,
.filtro-oficio-wrapper > .form-control {
    width: calc(100% - 40px);
    height: 38px !important;
    min-height: 38px;
}
.filtro-oficio-wrapper .btn.btn-secondary {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
}
.filtro-oficio-wrapper .bootstrap-select,
.filtro-oficio-wrapper .select2-container {
    width: 100% !important;
}
.filtro-oficio-wrapper .bootstrap-select .dropdown-toggle {
    height: 38px !important;
    min-height: 38px !important;
    display: flex;
    align-items: center;
}
.filtro-oficio-wrapper .bootstrap-select .filter-option {
    display: flex;
    align-items: center;
}
.filtro-oficio-wrapper .bootstrap-select .dropdown-toggle::after,
.filtro-oficio-wrapper .bootstrap-select .bs-caret,
.filtro-oficio-wrapper .bootstrap-select .caret {
    top: 50% !important;
    transform: translateY(-50%);
}
.filtro-oficio-wrapper .select2-container .select2-selection--single {
    height: 38px !important;
    min-height: 38px !important;
    display: flex;
    align-items: center;
}
.filtro-oficio-wrapper .select2-container .select2-selection__rendered {
    line-height: 38px !important;
}
.filtro-oficio-wrapper .select2-container .select2-selection__arrow {
    height: 38px !important;
}
.filtro-oficio-wrapper .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.filtro-oficio-wrapper .btn.btn-secondary {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.modal-assinatura .modal-content {
    border-radius: 14px;
    overflow: hidden;
}
#modal-memorando-atendimento.modal-tamanho-menor .modal-dialog {
    max-width: 52vw !important;
    width: 52vw !important;
}
#modal-memorando-atendimento.modal-tamanho-maior .modal-dialog {
    max-width: 88vw !important;
    width: 88vw !important;
}
#modal-memorando-atendimento .modal-content {
    border-radius: 14px;
    overflow: hidden;
    max-height: 94vh;
}
#modal-memorando-atendimento .modal-body {
    max-height: calc(94vh - 65px);
    overflow-y: auto;
    overflow-x: hidden;
}
.btn-toggle-tamanho-modal {
    width: 34px;
    height: 34px;
    border: 1px solid #d8dde6;
    border-radius: 4px;
    background: #f4f6f8;
    color: #343a40;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 6px;
}
.btn-toggle-tamanho-modal:hover {
    background: #e9ecef;
    color: #000;
}
.btn-toggle-tamanho-modal i {
    font-size: 13px;
}
.assinatura-lista-card {
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.assinatura-lista-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.assinatura-lista-titulo {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
}

#badge-total-assinaturas {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 20px;
}

#table-usuarios-assinatura {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

#table-usuarios-assinatura thead th {
    background: #f5f7fa;
    color: #495057;
    font-size: 13px;
    font-weight: 700;
    border-top: 1px solid #dfe3e8;
    border-bottom: 2px solid #cfd6dd;
    padding: 12px 10px;
    vertical-align: middle;
}

#table-usuarios-assinatura thead th:first-child {
    border-top-left-radius: 8px;
}

#table-usuarios-assinatura thead th:last-child {
    border-top-right-radius: 8px;
}

#table-usuarios-assinatura tbody tr {
    background: #fff;
    transition: all 0.15s ease-in-out;
}

#table-usuarios-assinatura tbody tr:hover {
    background: #f8fbff;
}

#table-usuarios-assinatura tbody td {
    padding: 14px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #dfe3e8 !important;
    color: #2f3a45;
    font-size: 14px;
}

#table-usuarios-assinatura tbody tr:last-child td {
    border-bottom: 1px solid #cfd6dd !important;
}

#table-usuarios-assinatura tbody td + td {
    border-left: 1px solid #eef1f4;
}

.linha-usuario-nome {
    font-weight: 600;
    color: #2c3e50;
}

.badge-ordem-assinatura {
    min-width: 36px;
    height: 36px;
    line-height: 24px;
    padding: 6px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f1ff;
    color: #0d6efd;
    font-weight: 700;
    border: 1px solid #cfe2ff;
}

.badge-prazo-assinatura {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe69c;
    font-weight: 600;
    font-size: 12px;
}

.badge-sem-prazo {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    background: #f1f3f5;
    color: #6c757d;
    border: 1px solid #dee2e6;
    font-weight: 600;
    font-size: 12px;
}

.btn-acao-grid {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-acao-grid + .btn-acao-grid {
    margin-left: 4px;
}

#tr-vazio-assinatura td {
    padding: 28px 10px;
    color: #7a8691;
    font-style: italic;
    border-bottom: none !important;
}

/* DRAWER */
.drawer-filtros {
    position: fixed;
    top: 0;
    right: -800px;
    width: 500px;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 15px rgba(0,0,0,0.15);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.drawer-filtros.open {
    right: 0;
}

/* HEADER */
.drawer-filtros-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

    .drawer-filtros-header h4 {
        margin: 0;
        font-size: 16px;
        font-weight: 400;
    }

.drawer-filtros-header small {
    color: #666;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* BODY */
.drawer-filtros-body {
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1;
}

#drawer-filtros .select2-container--default .select2-selection--multiple {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-height: 38px;
}

#drawer-filtros .select2-container--default .select2-selection--multiple .select2-selection__choice {
    font-size: 14px;
    margin-right: 2px;
    line-height: 1.2;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.drawer-label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.drawer-filtros-footer {
    padding: 12px 16px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.drawer-filtros-footer .btn {
    flex: 1;
}

.filtro-section {
    margin-bottom: 16px;
}

.filtro-section-label {
    font-size: 12px;
    font-weight: 620;
    color: #171717;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.filtro-field {
    margin-bottom: 10px;
}

.filtro-field label {
    font-size: 13.5px;
    font-weight: 400;
    color: black;
    margin-bottom: 3px;
    display: block;
}

.filtro-select-clear {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
}

.filtro-select-clear .btn-limpar-select-filtro {
    flex-shrink: 0;
    padding: 6px 10px;
    line-height: 1.7;
}

#drawer-filtros .filtro-select-clear .select2-container {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
}

#drawer-filtros .filtro-select-clear > select.select2-hidden-accessible {
    position: absolute;
    width: 0 !important;
    min-width: 0;
    flex: 0 0 0;
    padding: 0;
    border: 0;
    overflow: hidden;
}

.filtro-select-clear-com-acoes {
    flex-wrap: nowrap;
}

.filtro-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 14px 0;
}

.filtro-order-card {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px 12px;
}

.filtro-order-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.filtro-order-row .filtro-field {
    flex: 1;
    margin-bottom: 0;
}

.filtro-dir-btns {
    display: flex;
    gap: 4px;
}

.filtro-dir-btn {
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.filtro-dir-btn.active {
    background: #e7f1ff;
    border-color: #0d6efd;
    color: #0d6efd;
}

.badge-filtros-count {
    background: #e7f1ff;
    color: #0d6efd;
    border-radius: 100px;
    font-size: 11px;
    padding: 1px 7px;
    font-weight: 600;
}

.filtros-ativos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.filtro-ativo-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 380px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #cfe2ff;
    background: #e7f1ff;
    color: #0d6efd;
    font-size: 12.5px;
}

.filtro-ativo-rotulo {
    font-weight: 600;
    flex-shrink: 0;
}

.filtro-ativo-valor {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filtro-ativo-chip button {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 12px;
    line-height: 1;
    opacity: .7;
    cursor: pointer;
}

.filtro-ativo-chip button:hover {
    opacity: 1;
}

.filtro-ativo-chip.travado {
    border-color: #dee2e6;
    background: #f8f9fa;
    color: #6c757d;
}

.filtro-ativo-chip.travado i {
    flex-shrink: 0;
    font-size: 11px;
}

.filtro-ativo-limpar {
    border: 0;
    background: transparent;
    color: #6c757d;
    font-size: 12.5px;
    padding: 0 4px;
    text-decoration: underline;
    cursor: pointer;
}

#drawer-filtros .select2-container--default .select2-selection--multiple {
    border: 1px solid #e9ecef !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    min-height: 38px !important;
}

#drawer-filtros .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #e9ecef !important;
    box-shadow: none !important;
}
#drawer-filtros .select2-selection__placeholder {
    color: #4e4c4c !important;
}
.select2-highlight .select2-selection--single,
.select2-highlight .select2-selection--multiple {
    border-color: #03A9F3 !important;
    background-color: #03A9F3 !important;
}
#drawer-filtros .select2-container.select2-highlight.select2-container--default .select2-selection--multiple {
    background-color: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
}
#drawer-filtros .select2-container.select2-highlight.select2-container--default .select2-selection--multiple .select2-search__field {
    color: #ffffff !important;
}
#drawer-filtros .select2-container.select2-highlight.select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
    color: #ffffff !important;
}
/* ============================================================================
   Grid Dinâmica — CSS global (adicionar no seu site.css ou bundle)
   ============================================================================ */

.grid-dinamica-wrapper {
    background: #fff;
    border: 1px solid #dde3ec;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
    overflow: visible;
    margin-top: 10px;
}

.grid-dinamica-wrapper .grid-dinamica-table-wrap {
    padding: 0;
    overflow-x: auto;
}

.grid-dinamica-wrapper #table-loading {
    padding: 48px 24px;
}

.grid-dinamica-wrapper .dataTables_wrapper {
    padding: 0 !important;
}

.grid-toolbar {
    border-bottom: none;
    background: linear-gradient(180deg, #fafbfd 0%, #f4f6f9 100%);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.grid-toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 12px 16px;
}

.grid-toolbar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.grid-toolbar-title i {
    font-size: 1rem;
    color: #5c7cfa;
}

.grid-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.grid-toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.grid-toolbar-group-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #868e96;
    font-weight: 700;
    padding: 0 4px 0 6px;
    white-space: nowrap;
    border-right: 1px solid #eef1f5;
    margin-right: 2px;
    line-height: 28px;
}

.grid-toolbar-group-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.grid-toolbar .btn {
    margin: 0;
    white-space: nowrap;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ordenação: select2 mesma altura dos botões (35px) */
.grid-toolbar-ordem .select2-container {
    width: 180px !important;
}
.grid-toolbar-ordem .select2-container--default .select2-selection--single {
    height: 35px;
    border: 1px solid #ced4da;
    border-radius: 0.2rem;
    display: flex;
    align-items: center;
}
.grid-toolbar-ordem .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 33px;
    padding-left: 8px;
    padding-right: 20px;
    font-size: 0.875rem;
    color: #495057;
}
.grid-toolbar-ordem .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 33px;
}

/* Botões de direção (Asc/Desc): destaque claro do selecionado */
.grid-ordem-dir {
    color: #6c757d;
    background-color: #fff;
    border-color: #ced4da;
}
.grid-ordem-dir:hover {
    background-color: #f1f3f5;
    color: #495057;
}
.grid-ordem-dir.active,
.grid-ordem-dir.active:hover,
.grid-ordem-dir.active:focus {
    background-color: #1b6ec2 !important;
    border-color: #1b6ec2 !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(27, 110, 194, 0.4);
}

.grid-toolbar-separator {
    width: 1px;
    height: 24px;
    background: #dee2e6;
    margin: 0 2px;
    flex-shrink: 0;
}

/* Modo edição ativo */
.grid-toolbar-editing {
    background: linear-gradient(180deg, #fffbf0 0%, #fff8e1 100%) !important;
    border-bottom: 1px solid #f0d78c !important;
}

.grid-toolbar-editing .grid-toolbar-inner {
    padding: 12px 16px;
}

.grid-edit-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    animation: grid-edit-pulse 2s infinite;
}

@keyframes grid-edit-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

/* Overlay de bloqueio dos filtros */
.grid-edit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 248, 225, 0.75);
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 16px;
    cursor: not-allowed;
    border-radius: 8px;
}

.grid-edit-overlay-msg {
    background: #f0ad4e;
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    pointer-events: none;
}

/* Handle de resize nas colunas */
.col-resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    cursor: col-resize;
    background: transparent;
    z-index: 10;
}

.col-resize-handle:hover,
.col-resize-handle:active {
    background: #4e73df;
    opacity: 0.6;
}

/* Grid Meus Processos — visual aprimorado */
.table-modern-meus-processos {
    margin-bottom: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

.table-modern-meus-processos thead th,
.table-modern-meus-processos tbody td,
.grid-dinamica-wrapper .dataTables_scrollHead .table-modern-meus-processos thead th,
.grid-dinamica-wrapper .dataTables_scrollBody .table-modern-meus-processos tbody td {
    box-sizing: border-box;
}

.table-modern-meus-processos thead th,
.grid-dinamica-wrapper .dataTables_scrollHead .table-modern-meus-processos thead th {
    border: none !important;
    border-right: 1px solid #c5d0de !important;
    border-bottom: 1px solid #b8c5d6 !important;
    background: linear-gradient(180deg, #f0f4f9 0%, #e4eaf2 100%) !important;
    color: #3d4f63 !important;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 14px !important;
    vertical-align: middle;
    white-space: nowrap;
    position: relative;
}

.table-modern-meus-processos thead th:last-child,
.grid-dinamica-wrapper .dataTables_scrollHead .table-modern-meus-processos thead th:last-child {
    border-right: none !important;
}

.table-modern-meus-processos tbody td,
.grid-dinamica-wrapper .dataTables_scrollBody .table-modern-meus-processos tbody td {
    border-top: none !important;
    border-bottom: 1px solid #eef2f7 !important;
    border-right: 1px solid #eef2f7 !important;
    padding: 10px 14px !important;
    font-size: 0.8125rem;
    color: #343a40;
    vertical-align: middle;
}

.table-modern-meus-processos tbody td:last-child,
.grid-dinamica-wrapper .dataTables_scrollBody .table-modern-meus-processos tbody td:last-child {
    border-right: none !important;
}

.table-modern-meus-processos tbody tr {
    background-color: #fff;
    transition: background-color 0.12s ease;
}

.table-modern-meus-processos tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.table-modern-meus-processos tbody tr:hover {
    background-color: #e8f0fe !important;
}

.table-modern-meus-processos tbody tr.selected,
.table-modern-meus-processos tbody tr.selected td {
    background-color: #dbeafe !important;
}

.grid-dinamica-wrapper table.dataTable.no-footer {
    border-bottom: 1px solid #dde3ec;
}

/* DataTables scrollX (se habilitado): mantém alinhamento sem quebrar responsive */
.grid-dinamica-wrapper .dataTables_scroll {
    margin: 0 !important;
    padding: 0 !important;
}

.grid-dinamica-wrapper .dataTables_scrollHead {
    background: #e4eaf2 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.grid-dinamica-wrapper .dataTables_scrollHeadInner {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.grid-dinamica-wrapper .dataTables_scrollBody thead tr {
    height: 0 !important;
    line-height: 0 !important;
}

.grid-dinamica-wrapper .dataTables_scrollBody thead th,
.grid-dinamica-wrapper .dataTables_scrollBody thead td {
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    visibility: hidden;
    overflow: hidden;
}

/* Botão "+" do DataTables Responsive — meus-processos (dtr-column + dtr-inline) */
.grid-dinamica-wrapper .table-modern-meus-processos.dataTable tbody td.control,
.grid-dinamica-wrapper .table-modern-meus-processos.dataTable tbody th.control,
.grid-dinamica-wrapper .table-modern-meus-processos.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child,
.grid-dinamica-wrapper .table-modern-meus-processos.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child {
    position: relative !important;
    padding-left: 34px !important;
    overflow: visible !important;
    vertical-align: middle !important;
    cursor: pointer;
}

.grid-dinamica-wrapper .table-modern-meus-processos.dataTable tbody td.control:before,
.grid-dinamica-wrapper .table-modern-meus-processos.dataTable tbody th.control:before,
.grid-dinamica-wrapper .table-modern-meus-processos.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child:before,
.grid-dinamica-wrapper .table-modern-meus-processos.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child:before {
    top: 50% !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    height: 16px !important;
    width: 16px !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.45) !important;
    box-sizing: content-box !important;
    text-align: center !important;
    text-indent: 0 !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 14px !important;
    content: '+' !important;
    background-color: #31b131 !important;
    z-index: 5 !important;
    pointer-events: none;
}

.grid-dinamica-wrapper .table-modern-meus-processos.dataTable tbody tr.parent > td.control:before,
.grid-dinamica-wrapper .table-modern-meus-processos.dataTable tbody tr.parent > th.control:before,
.grid-dinamica-wrapper .table-modern-meus-processos.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child:before,
.grid-dinamica-wrapper .table-modern-meus-processos.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child:before {
    content: '-' !important;
    background-color: #d33333 !important;
}

.grid-dinamica-wrapper .table-modern-meus-processos.dataTable tbody td.control > *,
.grid-dinamica-wrapper .table-modern-meus-processos.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child > * {
    position: relative;
    z-index: 1;
}

.grid-dinamica-wrapper .dataTables_info,
.grid-dinamica-wrapper .dataTables_length,
.grid-dinamica-wrapper .dataTables_paginate {
    padding: 10px 16px !important;
    font-size: 0.8125rem;
    color: #6c757d;
}

.grid-dinamica-wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    margin: 0 2px;
}

/* ===== Listagem detalhada de anexos (processo-atendimento) ===== */
.card-secao-anexos {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}

.card-secao-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 15px;
    color: #1f2a37;
}

.card-secao-header i {
    color: #2962FF;
}

.card-secao-body {
    padding: 14px 16px;
}

.lista-anexos-detalhada {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
}

.card-anexo-detalhada {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 12px 16px;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

.card-anexo-detalhada:has(.dropdown.show) {
    z-index: 1051;
}

.card-anexo-detalhada:hover {
    box-shadow: 0 4px 14px rgba(16, 24, 40, .08);
    border-color: #d0d9e6;
    transform: translateY(-1px);
}

.card-anexo-desconsiderado {
    background: #fff5f5;
    border-color: #f1aeae;
}

.card-anexo-desconsiderado .card-anexo-titulo {
    text-decoration: line-through;
    color: #b42318;
}

.card-anexo-sel {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.card-anexo-sel .chk-assinatura-lote {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.card-anexo-icone {
    font-size: 28px;
    width: 40px;
    text-align: center;
    flex: 0 0 auto;
}

.card-anexo-info {
    flex: 1 1 auto;
    min-width: 0;
}

.card-anexo-titulo {
    font-weight: 600;
    color: #1f2a37;
    font-size: 14px;
    margin-bottom: 4px;
    word-break: break-word;
}

.card-anexo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.chip-anexo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 500;
}

.chip-tipo {
    background: #e0edff;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.chip-assinatura {
    background: transparent;
    padding: 0 4px;
}

.card-anexo-acoes {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.btn-acao-dots {
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
}

.btn-acao-dots:hover {
    background: #e2e8f0;
}

.card-anexo-acoes .dropdown-menu {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}

.grid-dinamica-wrapper .bottom {
    background: #f8fafb;
    border-top: 1px solid #e8edf3;
}
.agenda-timeline-container {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    position: relative;
    overflow-x: hidden;
}
.timeline-row-layout {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}
.timeline-user-info-blank,
.user-meta-zone {
    width: 15%;
    min-width: 140px;
    flex-shrink: 0;
}
.timeline-days-row,
.timeline-bar-zone {
    width: 73%;
    flex-grow: 1;
    position: relative;
}
.timeline-actions-blank,
.timeline-right-actions {
    width: 12%;
    min-width: 125px;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
}
.timeline-header-days {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 10px;
    margin-bottom: 5px;
    color: #a0aec0;
}
.timeline-user-info-blank {
    font-size: 13px;
    font-weight: 700;
    color: #718096;
    padding-left: 5px;
}
.timeline-days-row {
    display: flex;
    justify-content: space-between;
}
.timeline-day-col {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.timeline-day-col .num {
    font-size: 11px;
    font-weight: 700;
    color: #4a5568;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.timeline-day-col.is-today .num {
    background-color: #00acfa;
    color: #ffffff !important;
}
.timeline-day-col.is-today {
    position: relative;
}
.timeline-day-col.is-today::after {
    content: '';
    position: absolute;
    top: 32px; 
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 200vh;        
    background-color: #00acfa;
    z-index: 10;
    pointer-events: none;
    opacity: 0.8;
}
.agenda-timeline-container {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    position: relative;
    overflow: hidden; 
}
.timeline-bar.status-ativa {
    background: linear-gradient(135deg, #00a9d3 0%, #01ffd5 100%) !important;
}
.timeline-bar.status-alerta {
    background: linear-gradient(135deg, #ff8400 0%, #eeff00 100%) !important;
    color: white !important;
}
.timeline-bar.status-concluido {
    background: linear-gradient(135deg, #05db10 0%, #9dff00 100%) !important;
}
.timeline-bar.status-aguardando {
    background: linear-gradient(135deg, #8e2de2 0%, #c299fc 100%) !important;
    color: white !important;
}
.status-tag-visual.concluido {
    background: #12ea222b;
    color: #0bae14;
}
.status-tag-visual.andamento {
    background: #87f4ff51;
    color: #05a9f3;
}
.status-tag-visual.alerta {
    background: #f7f20728;
    color: #ff7d00;
}
.status-tag-visual.aguardando {
    background: #8e2de22b;
    color: #8e2de2;
}
.timeline-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid #edf2f7;
    box-shadow: none;
    padding: 8px 0;
    transition: background-color 0.2s ease;
}
.timeline-card:hover {
    background: #f7fafc;
}
.timeline-card:last-child {
    border-bottom: none;
}
.user-meta-zone {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding-right: 10px;
}
.user-avatar-simulado {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0043a7 0%, #00acfa 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}
.user-info-text {
    overflow: hidden;
}
.agenda-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-badge {
    font-size: 0.72rem;
    color: #718096;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.timeline-bar-zone {
    height: 40px;
    display: flex;
    align-items: center;
}
.timeline-bar {
    position: absolute;
    height: 26px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.72rem;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease;
    border: none;
}
.timeline-bar:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}
.bar-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
    display: block;
}
.timeline-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.status-tag-visual {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    min-width: 90px;
    text-align: center;
    white-space: nowrap;
}
.timeline-card-trash {
    cursor: pointer;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-card-trash:hover {
    color: #ef4444;
    background: #fee2e2;
}
.modal-title-agenda {
    font-size: 17px;
    font-weight: 600;
    color: white;
}
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
#btn-prev-mes {
    border: none;
    border-radius: 8px;
    background: #0385ff;
    color: white;
    width: 35px;
    margin-right: 5px;
}
#btn-prev-mes:hover {
    background: #00c3ff8a;
    color: white;
}
#btn-next-mes {
    border: none;
    border-radius: 8px;
    background: #0385ff;
    color: white;
    width: 35px;
    margin-left: 4px;
}
#btn-next-mes:hover {
    background: #00c3ff8a;
    color: white;
}
#btn-hoje-mes {
    border: none;
    border-radius: 8px;
    height: 32px;
    padding: 0 15px;
    font-weight: 500;
    font-size: 14px;
}
#btn-hoje-mes.btn-mes-atual {
    background: #0385ff;
    color: white;
}
#btn-hoje-mes.btn-mes-atual:hover {
    background: #00c3ff8a;
    color: white;
}
#btn-hoje-mes.btn-outro-mes {
    background: #e2e8f0;
    color: #4a5568;
}
#btn-hoje-mes.btn-outro-mes:hover {
    background: #cbd5e1;
    color: #1e293b;
}

.pz {
    --pz-surface: #fff;
    --pz-surface-2: #f7f8fa;
    --pz-border: #e8ebef;
    --pz-text: #1f2937;
    --pz-text-2: #6b7280;
    --pz-ring: #2f6fed;
    --pz-danger: #dc2626;
    --pz-danger-bg: #fee2e2;
    --pz-danger-fg: #991b1b;
    --pz-warn: #f59e0b;
    --pz-warn-bg: #fef3c7;
    --pz-warn-fg: #92400e;
    --pz-alert: #ea580c;
    --pz-alert-bg: #ffedd5;
    --pz-alert-fg: #9a3412;
    color: var(--pz-text);
}

body.theme-dark .pz, html.theme-dark .pz {
    --pz-surface: #142235;
    --pz-surface-2: #1b2d44;
    --pz-border: #26384f;
    --pz-text: #e6edf5;
    --pz-text-2: #9fb3c8;
    --pz-ring: #4ea3ff;
    --pz-danger-bg: rgba(220, 38, 38, .18);
    --pz-danger-fg: #fca5a5;
    --pz-warn-bg: rgba(245, 158, 11, .18);
    --pz-warn-fg: #fcd34d;
    --pz-alert-bg: rgba(234, 88, 12, .18);
    --pz-alert-fg: #fdba74;
}

.pz-title { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.pz-sub { font-size: 12.5px; color: var(--pz-text-2); margin: 2px 0 14px; }

/* ---- Cards indicadores ---- */
.pz-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.pz-kpi {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    background: var(--pz-surface);
    border: 1px solid var(--pz-border);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.pz-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, .09); }
.pz-kpi:focus-visible { outline: 2px solid var(--pz-ring); outline-offset: 2px; }
.pz-kpi.ativo { border-color: currentColor; box-shadow: 0 0 0 3px var(--tint); }

.pz-kpi-ico {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--tint);
    color: var(--tone);
}

.pz-kpi-corpo { min-width: 0; }

.pz-kpi-rotulo {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--pz-text-2);
}

.pz-kpi-valor {
    display: block;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--tone);
}

.pz-kpi-nota { display: block; font-size: 11.5px; color: var(--pz-text-2); }
.pz-kpi.proximo { --tone: var(--pz-alert); --tint: var(--pz-alert-bg); color: var(--pz-alert); }
.pz-kpi.hoje { --tone: var(--pz-warn); --tint: var(--pz-warn-bg); color: var(--pz-warn); }
.pz-kpi.excedido { --tone: var(--pz-danger); --tint: var(--pz-danger-bg); color: var(--pz-danger); }

/* ---- Barra de filtros ---- */
.pz-filtros {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: var(--pz-surface);
    border: 1px solid var(--pz-border);
    border-radius: 14px;
    margin-bottom: 12px;
}

.pz-campo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pz-campo > label {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--pz-text-2);
}

.pz-campo .form-control, .pz-campo select {
    height: 38px;
    border: 1px solid var(--pz-border);
    border-radius: 10px;
    background: var(--pz-surface-2);
    color: var(--pz-text);
    font-size: 13.5px;
}

.pz-campo .form-control:focus { border-color: var(--pz-ring); background: var(--pz-surface); box-shadow: none; }

/* O input-group do Bootstrap quebra linha por padrao: mantem select e input do ano lado a lado. */
.pz-campo .input-group { flex-wrap: nowrap; }
.pz-campo .input-group > .form-control { width: 1%; min-width: 0; }

.pz-f-solicitante { flex: 1 1 240px; }
.pz-f-solicitante .input-group > input { border-radius: 10px 0 0 10px; }
.pz-f-solicitante .input-group > button { border-radius: 0 10px 10px 0; }
.pz-f-data { flex: 0 0 150px; }
.pz-f-numero { flex: 0 0 110px; }
.pz-f-ano { flex: 0 0 240px; }
.pz-f-ano .input-group > select { flex: 0 0 120px; width: 120px; border-radius: 10px 0 0 10px; }
.pz-f-ano .input-group > input { flex: 1 1 auto; border-radius: 0 10px 10px 0; border-left: 0; }
.pz-acoes-filtro { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.pz-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--pz-border);
    background: var(--pz-surface-2);
    color: var(--pz-text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.pz-btn:hover { background: var(--pz-border); }
.pz-btn.primario { background: var(--pz-ring); border-color: var(--pz-ring); color: #fff; }
.pz-btn.primario:hover { filter: brightness(.94); }
.pz-btn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--pz-ring);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
}

/* ---- Painel da grade ---- */
/* O container e o proprio .grid-dinamica-wrapper criado pelo initGridDinamica: nao envolver em outro card. */
.pz .grid-dinamica-wrapper {
    background: var(--pz-surface);
    border-color: var(--pz-border);
    border-radius: 14px;
}

.pz-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid var(--pz-border);
    background: var(--pz-surface-2);
    color: var(--pz-text-2);
    font-size: 12.5px;
    font-weight: 600;
}

.pz-chip button { border: 0; background: transparent; color: inherit; padding: 0; font-size: 12px; line-height: 1; opacity: .7; }
.pz-chip button:hover { opacity: 1; }

#dataTable-prazos-processos { width: 100% !important; margin: 0 !important; border: 0; font-size: 13.5px; }

#dataTable-prazos-processos thead th {
    background: var(--pz-surface-2);
    border: 0 !important;
    border-top: 1px solid var(--pz-border) !important;
    border-bottom: 1px solid var(--pz-border) !important;
    padding: 11px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--pz-text-2);
    white-space: nowrap;
}

#dataTable-prazos-processos tbody td {
    border: 0 !important;
    border-bottom: 1px solid var(--pz-border) !important;
    padding: 10px 14px;
    vertical-align: middle;
    color: var(--pz-text);
    background: transparent;
}

#dataTable-prazos-processos tbody tr:hover td { background: var(--pz-surface-2); }
#dataTable-prazos-processos tbody tr td:first-child { border-left: 3px solid transparent !important; }
#dataTable-prazos-processos tbody tr.pz-r-excedido td:first-child { border-left-color: var(--pz-danger) !important; }
#dataTable-prazos-processos tbody tr.pz-r-hoje td:first-child { border-left-color: var(--pz-warn) !important; }
#dataTable-prazos-processos tbody tr.pz-r-proximo td:first-child { border-left-color: var(--pz-alert) !important; }

.pz-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pz-pill .fa, .pz-pill .fas, .pz-pill .far { font-size: 10.5px; }
.pz-pill.excedido { background: var(--pz-danger-bg); color: var(--pz-danger-fg); }
.pz-pill.hoje { background: var(--pz-warn-bg); color: var(--pz-warn-fg); }
.pz-pill.proximo { background: var(--pz-alert-bg); color: var(--pz-alert-fg); }

.pz-proc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--pz-ring);
    white-space: nowrap;
}

.pz-proc:hover { color: var(--pz-ring); text-decoration: underline; }
.pz-proc i { font-size: 10px; opacity: .55; }
.pz-trunc { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-resp { display: flex; align-items: center; gap: 8px; min-width: 0; }

.pz-avatar {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pz-surface-2);
    border: 1px solid var(--pz-border);
    color: var(--pz-text-2);
    font-size: 10.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.pz-data { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pz-data small { display: block; color: var(--pz-text-2); font-size: 11px; text-transform: capitalize; }
.pz-vazio { padding: 44px 16px; text-align: center; color: var(--pz-text-2); }
.pz-vazio i { font-size: 32px; opacity: .35; display: block; margin-bottom: 10px; }
.pz-load { padding: 44px 16px; text-align: center; color: var(--pz-text-2); }

.pz .dataTables_wrapper .dataTables_paginate { margin: 0 !important; padding: 0 !important; }
.pz .dataTables_wrapper .dataTables_info { color: var(--pz-text-2); font-size: 12.5px; padding: 0 !important; }
.pz .dataTables_wrapper .dataTables_length { color: var(--pz-text-2); font-size: 12.5px; }
.pz .dataTables_wrapper .dataTables_length select {
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--pz-border);
    background: var(--pz-surface-2);
    color: var(--pz-text);
    margin: 0 6px;
}
.pz-rodape { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; }
.pz .page-link { border-radius: 8px !important; margin: 0 2px; border: 0; font-size: 13px; }
.pz .page-item.active .page-link { background: var(--pz-ring); }
.pz table.dataTable { border-collapse: collapse !important; }

@media (max-width: 991px) {
    .pz-trunc { max-width: 140px; }
    .pz-acoes-filtro { margin-left: 0; width: 100%; }
}