.dropdown-item:hover {
    background-color: #26A737;
    color: white;
}

.active  { 
    font-weight: bold; 
}

.card-inicio a {
    color: #26A737;
}

.card-inicio a:hover {
    color: white;
}

.card-inicio:hover {
    background-color: #26A737;
}

.logo-img {
    max-width: 298px;
    max-height: 98px;

}

.table-scv {
    vertical-align: middle;
}

.table-scv th {
    white-space: nowrap;
}

.table-scv td {
    max-width: 280px;
}

.table-scv .text-truncate {
    max-width: 100%;
}

.viagens-table-wrap {
    position: relative;
}

.viagens-table-wrap .table-scv {
    table-layout: fixed;
    width: 100% !important;
}

.viagens-table-wrap .col-trip-id {
    max-width: 3.5rem;
    width: 3.5rem;
}

.viagens-table-wrap .table-scv th.col-trip-id,
.viagens-table-wrap .table-scv td.col-trip-id {
    text-align: center !important;
}

.viagens-table-wrap .col-trip-date {
    width: 8%;
}

.viagens-table-wrap .col-trip-destination {
    width: 18%;
}

.viagens-table-wrap .col-trip-objective {
    width: 17%;
}

.viagens-table-wrap .col-trip-requester {
    width: 12.5%;
}

.viagens-table-wrap .col-trip-status {
    width: 7%;
}

.viagens-table-wrap .col-trip-transport {
    width: 12%;
}

.viagens-table-wrap .col-trip-actions {
    width: 9.25rem;
}

.viagens-table-wrap .table-scv th,
.viagens-table-wrap .table-scv td {
    padding-left: .45rem;
    padding-right: .45rem;
}

.viagens-table-wrap .table-scv td {
    font-size: .95rem;
}

.viagens-table-wrap .small {
    font-size: .78rem;
}

.table-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: .2rem;
    justify-content: flex-start;
    max-width: 9rem;
}

.table-actions .btn {
    align-items: center;
    display: inline-flex;
    height: 1.75rem;
    justify-content: center;
    padding: 0;
    width: 1.75rem;
}

@media (max-width: 991.98px) {
    .viagens-table-wrap .table-scv {
        table-layout: auto;
    }
}

.status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}

.status-justification {
    line-height: 1.25;
    max-width: 16rem;
    white-space: normal;
}

.list-filter-summary {
    align-items: center;
    background: #f8faf9;
    border: 1px solid #dfe7e2;
    border-radius: .5rem;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    padding: .75rem;
}

.list-filter-summary span {
    font-weight: 700;
}

.report-table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.report-table-scroll table {
    width: 100% !important;
}

.report-table-scroll th,
.report-table-scroll td {
    white-space: nowrap;
}

.report-filter-form {
    margin-bottom: 1.5rem;
}

.report-filter-actions {
    margin-top: 1rem;
}

.report-filter-form .form-control,
.report-filter-form .form-select {
    background-color: #fff;
    border-color: #dee2e6 !important;
    border-radius: .375rem !important;
    font-size: 1rem !important;
    height: calc(1.5em + .75rem + 2px) !important;
    line-height: 1.5 !important;
    min-height: calc(1.5em + .75rem + 2px) !important;
    padding-bottom: .375rem !important;
    padding-top: .375rem !important;
}

.report-filter-form .form-select {
    padding-left: .75rem !important;
    padding-right: 2.25rem !important;
}

.report-filter-form .form-control:focus,
.report-filter-form .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

.report-filter-form .select2-container {
    display: block;
    width: 100% !important;
}

.report-filter-form .select2-container--default .select2-selection--single {
    align-items: center;
    border-color: #dee2e6;
    border-radius: .375rem;
    display: flex;
    height: calc(1.5em + .75rem + 2px);
}

.report-filter-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #212529;
    line-height: 1.5;
    padding-left: .75rem;
    padding-right: 2.25rem;
}

.report-filter-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: .5rem;
    top: 0;
}

.report-filter-form .select2-container--default.select2-container--focus .select2-selection--single,
.report-filter-form .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

.report-filter-form .select2-dropdown {
    border-color: #86b7fe;
}

.movement-print-sheet {
    background: #fff;
    border: 1px solid #d8dee6;
    border-radius: .35rem;
    color: #1f2933;
    padding: 1rem;
}

.movement-document-header {
    background: #fff !important;
    border-bottom: 1px solid #d1d5db;
    display: grid;
    gap: .35rem;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    text-align: center;
}

.movement-document-header img {
    height: auto;
    margin: 0 auto;
    max-height: 4rem;
    max-width: 22rem;
    object-fit: contain;
}

.movement-document-subtitle {
    color: #667085 !important;
    font-size: .75rem;
    font-weight: 700;
    margin: .25rem 0 .125rem;
    text-transform: uppercase;
}

.movement-document-title {
    color: #111827 !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.movement-report-summary span,
.movement-destination span,
.movement-footer-grid span,
.movement-item-header span,
.movement-objective span {
    color: #6b7280 !important;
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.movement-report-summary {
    display: grid;
    gap: .5rem;
    grid-template-columns: 2fr 1fr 1fr;
    margin-bottom: 1rem;
}

.movement-report-summary > div {
    background: #f8fafc;
    border: 1px solid #d1d5db;
    border-radius: .25rem;
    padding: .5rem .65rem;
}

.movement-list {
    display: grid;
    gap: .65rem;
}

.movement-card {
    background: #fff;
    border: 1px solid #cdd5df;
    border-radius: .25rem;
    break-inside: avoid;
    overflow: hidden;
    page-break-inside: avoid;
}

.movement-card-body {
    min-width: 0;
    padding: .65rem;
}

.movement-item-header {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #d7dde5;
    display: grid;
    gap: .5rem;
    grid-template-columns: .85fr .85fr 1.7fr 1fr;
    padding: .55rem .65rem;
}

.movement-item-header strong {
    color: #111827;
    display: block;
    font-size: .9rem;
    line-height: 1.2;
}

.movement-status {
    text-align: right;
}

.movement-destination {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: .65rem;
    padding-bottom: .55rem;
}

.movement-destination strong {
    color: #111827;
    display: block;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.movement-destination small {
    color: #667085;
    display: block;
    font-size: .82rem;
    margin-top: .1rem;
}

.movement-info-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.movement-info-panel {
    border: 1px solid #e1e6ee;
    border-radius: .25rem;
    padding: .55rem;
}

.movement-info-panel h2 {
    color: #111827;
    font-size: .82rem;
    margin: 0 0 .45rem;
    text-transform: uppercase;
}

.movement-info-panel dl {
    display: grid;
    gap: .4rem;
    margin: 0;
}

.movement-info-panel dl div {
    display: grid;
    gap: .35rem;
    grid-template-columns: 8.5rem minmax(0, 1fr);
}

.movement-info-panel dt {
    color: #6b7280;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.movement-info-panel dd {
    color: #111827;
    font-size: .85rem;
    font-weight: 600;
    margin: 0;
    overflow-wrap: anywhere;
}

.movement-objective {
    margin-top: .65rem;
}

.movement-objective strong {
    color: #111827;
    display: block;
    font-size: .9rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.movement-footer-grid {
    border-top: 1px solid #e5e7eb;
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(3, minmax(5rem, .5fr)) minmax(0, 2fr);
    margin-top: .65rem;
    padding-top: .55rem;
}

.movement-footer-grid strong {
    color: #111827;
    display: block;
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.movement-empty {
    border: 1px dashed #cfd6df;
    border-radius: .35rem;
    color: #6b7280;
    padding: 2rem;
    text-align: center;
}

.form-section {
    border: 1px solid #dfe7e2;
    border-radius: .5rem;
    padding: 1rem;
}

.form-section-highlight {
    background: #f8faf9;
}

.form-section-heading {
    border-bottom: 1px solid #edf1ee;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
}

.form-section-heading h5 {
    font-size: 1rem;
    margin: 0;
}

.form-section-heading p {
    color: #6c757d;
    margin: .125rem 0 0;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

@media (max-width: 576px) {
    .form-actions .btn {
        flex: 1 1 100%;
    }
}

@media print {
    @page {
        size: A4;
        margin: 9mm;
    }

    body {
        background: #fff !important;
        color: #111827;
        display: block !important;
        font-size: 9pt;
        min-height: auto !important;
    }

    body > header,
    nav,
    footer,
    body > img,
    .no-print,
    .alert {
        display: none !important;
    }

    main .container {
        margin: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .card {
        border: 0 !important;
        box-shadow: none !important;
    }

    .card-body {
        padding: 0 !important;
    }

    .card-title,
    .card-subtitle {
        display: none !important;
    }

    .movement-document-header {
        background: #fff !important;
        margin-bottom: 4mm;
        padding-bottom: 3mm;
    }

    .movement-document-header img {
        max-height: 20mm;
        max-width: 95mm;
    }

    .movement-document-title {
        font-size: 14pt;
    }

    .movement-report-summary {
        margin-bottom: 4mm;
    }

    .movement-list {
        gap: 4mm;
    }

    .movement-card {
        border-color: #9ca3af;
    }

    .movement-item-header {
        grid-template-columns: .8fr .75fr 1.5fr .85fr;
        padding: 1.4mm 2mm;
    }

    .movement-item-header strong {
        font-size: 7.5pt;
    }

    .movement-card-body {
        padding: 2mm;
    }

    .movement-destination {
        margin-bottom: 1.6mm;
        padding-bottom: 1.4mm;
    }

    .movement-destination strong {
        font-size: 8pt;
    }

    .movement-destination small {
        font-size: 7pt;
    }

    .movement-info-grid {
        gap: 1.8mm;
    }

    .movement-info-panel {
        padding: 1.5mm;
    }

    .movement-info-panel h2 {
        font-size: 7.2pt;
        margin-bottom: 1.2mm;
    }

    .movement-info-panel dl {
        gap: 1mm;
    }

    .movement-info-panel dl div {
        gap: 1.2mm;
        grid-template-columns: 27mm minmax(0, 1fr);
    }

    .movement-info-panel dt,
    .movement-destination span,
    .movement-footer-grid span,
    .movement-item-header span,
    .movement-objective span,
    .movement-report-summary span {
        font-size: 6.5pt;
    }

    .movement-info-panel dd,
    .movement-footer-grid strong,
    .movement-objective strong {
        font-size: 7.5pt;
    }

    .movement-objective {
        margin-top: 1.8mm;
    }

    .movement-footer-grid {
        gap: 1.5mm;
        margin-top: 1.8mm;
        padding-top: 1.5mm;
    }
}

.home-summary {
    align-items: center;
    background: #f8faf9;
    border: 1px solid #dfe7e2;
    border-radius: .5rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.home-metrics {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.home-metric {
    align-items: center;
    border: 1px solid #dfe7e2;
    border-radius: .5rem;
    color: inherit;
    display: flex;
    gap: .75rem;
    min-height: 5rem;
    padding: .875rem;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.home-metric:hover,
.home-metric:focus {
    border-color: #26A737;
    box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .08);
    color: inherit;
    transform: translateY(-1px);
}

.home-metric:focus-visible {
    outline: 3px solid rgba(38, 167, 55, .25);
    outline-offset: 2px;
}

.home-metric-icon {
    align-items: center;
    border-radius: .5rem;
    display: inline-flex;
    flex: 0 0 2.5rem;
    font-size: 1.2rem;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.home-metric-value,
.home-metric-label {
    display: block;
}

.home-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.home-metric-label {
    color: #6c757d;
    font-size: .875rem;
}

.home-shortcuts {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.home-shortcut {
    border: 1px solid #dfe7e2;
    border-radius: .5rem;
    color: inherit;
    display: grid;
    gap: .25rem;
    min-height: 8rem;
    padding: 1rem;
    text-decoration: none;
}

.home-shortcut:hover {
    border-color: #26A737;
    color: inherit;
}

.home-shortcut i {
    color: #26A737;
    font-size: 1.75rem;
}

.home-shortcut span {
    font-weight: 700;
}

.home-shortcut small {
    color: #6c757d;
}

.trip-km-preview {
    background: #f8faf9;
    border: 1px solid #dfe7e2;
    border-radius: .5rem;
    margin-bottom: 1rem;
    padding: .75rem;
}

.trip-km-preview span {
    color: #667085;
    display: block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.trip-km-preview strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.2;
    margin-top: .1rem;
}

.trip-km-preview small {
    color: #667085;
    display: block;
    margin-top: .15rem;
}

@media (max-width: 576px) {
    .home-summary {
        align-items: stretch;
        flex-direction: column;
    }
}

.dashboard-shell {
    display: grid;
    gap: .75rem;
}

.dashboard-page {
    background: #fff;
    min-height: 100vh;
}

.dashboard-fullscreen {
    padding: 1rem;
}

.dashboard-filter {
    align-items: end;
    display: grid;
    gap: .5rem;
    grid-template-columns: 7rem 12rem auto;
}

.dashboard-filter-actions {
    display: flex;
    justify-content: flex-end;
}

.dashboard-header {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe7e2;
    border-bottom: 3px solid #f59c00;
    border-top: 4px solid #008442;
    border-radius: .5rem;
    display: grid;
    gap: .85rem;
    grid-template-columns: auto minmax(0, 1fr) minmax(34rem, auto);
    padding: .75rem .875rem;
}

.dashboard-header img {
    max-height: 4.25rem;
    max-width: 11rem;
    object-fit: contain;
}

.dashboard-header span {
    color: #667085;
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-header h1 {
    font-size: 1.55rem;
    font-weight: 700;
    margin: .15rem 0;
}

.dashboard-header p {
    color: #667085;
    margin: 0;
}

.dashboard-legacy-notice {
    align-items: center;
    color: #667085;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .55rem;
    margin-top: .25rem;
}

.dashboard-legacy-notice span {
    color: inherit;
    display: inline;
    font-size: .78rem;
    font-weight: 500;
    text-transform: none;
}

.dashboard-legacy-notice a {
    color: #0b7f46;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-legacy-notice a:hover {
    text-decoration: underline;
}

.dashboard-mode-actions {
    align-self: end;
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
}

.dashboard-header-controls {
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
}

.dashboard-header-controls .form-label {
    font-size: .78rem;
    margin-bottom: .15rem;
}

.dashboard-header-controls .form-select {
    min-height: 2rem;
    padding-bottom: .25rem;
    padding-top: .25rem;
}

.dashboard-kpis,
.dashboard-grid {
    display: grid;
    gap: .75rem;
}

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

.dashboard-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1.12fr) minmax(0, .9fr);
}

.dashboard-kpi,
.dashboard-panel {
    background: #fff;
    border: 1px solid #dfe7e2;
    border-radius: .5rem;
    padding: .75rem;
}

.dashboard-kpi {
    background: #f8faf9;
    padding: .55rem .75rem;
}

.dashboard-kpi span,
.dashboard-panel h2 {
    color: #667085;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-kpi strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.15;
    margin-top: .1rem;
}

.dashboard-panel h2 {
    color: #111827;
    font-size: .95rem;
    margin: 0 0 .75rem;
}

.dashboard-pie-layout {
    align-items: center;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(12rem, .8fr) minmax(0, 1fr);
}

.dashboard-pie {
    aspect-ratio: 1;
    border-radius: 50%;
    max-width: 15rem;
    position: relative;
    width: 100%;
}

.dashboard-pie::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    inset: 31%;
    position: absolute;
}

.dashboard-pie-legend {
    display: grid;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-pie-legend li {
    align-items: flex-start;
    display: flex;
    gap: .45rem;
    min-width: 0;
}

.dashboard-pie-legend li > span {
    border-radius: 50%;
    flex: 0 0 .7rem;
    height: .7rem;
    margin-top: .25rem;
    width: .7rem;
}

.dashboard-pie-legend strong,
.dashboard-pie-legend small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-pie-legend strong {
    font-size: .82rem;
}

.dashboard-pie-legend small {
    color: #667085;
    font-size: .76rem;
}

.dashboard-month-bars {
    display: grid;
    gap: .42rem;
}

.dashboard-month-row {
    align-items: center;
    display: grid;
    gap: .5rem;
    grid-template-columns: 2.25rem minmax(0, 1fr) 3.5rem;
}

.dashboard-month-row > span,
.dashboard-month-row strong {
    color: #475467;
    font-size: .8rem;
}

.dashboard-month-row div {
    background: #edf1ee;
    border-radius: 999px;
    height: .7rem;
    overflow: hidden;
}

.dashboard-month-row i {
    background: #637178;
    display: block;
    height: 100%;
    min-width: .2rem;
}

.dashboard-month-row.is-selected i {
    background: #26a737;
}

.dashboard-users-panel {
    min-height: 11rem;
}

.dashboard-user-bars {
    align-items: end;
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    min-height: 8rem;
}

.dashboard-user-bar {
    align-items: stretch;
    display: grid;
    gap: .45rem;
    grid-template-rows: minmax(5.8rem, 1fr) auto;
    min-width: 0;
}

.dashboard-user-column {
    align-self: end;
    background: #637178;
    border-radius: .35rem .35rem 0 0;
    min-height: 1.35rem;
    position: relative;
}

.dashboard-user-column span {
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    left: 50%;
    position: absolute;
    top: .25rem;
    transform: translateX(-50%);
}

.dashboard-user-bar strong {
    color: #344054;
    font-size: .72rem;
    line-height: 1.15;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-insight-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-status-list,
.dashboard-horizontal-bars {
    display: grid;
    gap: .65rem;
}

.dashboard-status-row,
.dashboard-horizontal-row {
    display: grid;
    gap: .25rem;
}

.dashboard-status-row > div:first-child,
.dashboard-horizontal-row > div:first-child {
    align-items: baseline;
    display: flex;
    gap: .5rem;
    justify-content: space-between;
    min-width: 0;
}

.dashboard-status-row strong,
.dashboard-horizontal-row strong {
    color: #111827;
    font-size: .82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-status-row span,
.dashboard-horizontal-row span {
    color: #667085;
    flex: 0 0 auto;
    font-size: .78rem;
    font-weight: 700;
}

.dashboard-status-row > div:last-child,
.dashboard-horizontal-row > div:last-child {
    background: #edf1ee;
    border-radius: 999px;
    height: .55rem;
    overflow: hidden;
}

.dashboard-status-row i,
.dashboard-horizontal-row i {
    background: #637178;
    display: block;
    height: 100%;
    min-width: .15rem;
}

.dashboard-table-wrap {
    border: 1px solid #dfe7e2;
    border-radius: .5rem;
    overflow-x: auto;
}

.dashboard-table {
    margin-bottom: 0;
}

.dashboard-table th {
    background: #637178;
    color: #fff;
    white-space: nowrap;
}

.dashboard-table td {
    max-width: 24rem;
    vertical-align: top;
}

.dashboard-pagination {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

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

    .dashboard-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .dashboard-header img,
    .dashboard-mode-actions,
    .dashboard-header-controls {
        justify-self: center;
    }
}

@media (max-width: 768px) {
.dashboard-fullscreen {
    padding: .75rem;
}

    .dashboard-filter,
    .dashboard-kpis,
    .dashboard-pie-layout,
    .dashboard-header-controls {
        grid-template-columns: 1fr;
    }

    .dashboard-filter-actions {
        justify-content: stretch;
    }

    .dashboard-filter-actions .btn,
    .dashboard-mode-actions .btn {
        flex: 1 1 auto;
    }

    .dashboard-pie {
        max-width: 12rem;
        justify-self: center;
    }

    .dashboard-insight-grid {
        grid-template-columns: 1fr;
    }
}
