﻿.login .img {
  width: 330px;
  margin-left: 20px;
}

html {
  background: #fff;
}

.text-white, .text-forgot, .text-forgot:hover {
  color: #333 !important;
}

.btn.btn-success {
  color: white !important;
  background: #333 !important;
  border-color: #333 !important;
}

.login .login-header {
  top: -110px;
}

.btn.btn-success:hover,
.btn.btn-success:focus,
.btn.btn-success:active,
.btn.btn-success.active,
.open .dropdown-toggle.btn-success {
  background: #ed3237 !important;
  border-color: white !important;
  color: white !important;
}

#loadingProgressG {
  width: 100%;
  height: 10px;
  overflow: hidden;
  background-color: #333;
  margin: auto;
  border-radius: 7px;
  -o-border-radius: 7px;
  -ms-border-radius: 7px;
  -webkit-border-radius: 7px;
  -moz-border-radius: 7px;
}

.text-forgot, .text-forgot:hover {
  color: white;
}

.spinner-small, .spinner {
    border-top: 2px solid #878787;
}

.cor-1 {
    background-color: #878787 !important;
}

.cor-1-highlight {
    background-color: #878787 !important;
    color: white;
}

.cor-2 {
  background-color: #fff !important;
}

/*###################### INDEX LOGIN #######################*/
.bg-black {
  background: #ed3237 !important;
}

.login label {
  color: #FFFFFF;
}

/*####################### SIDE BAR #######################*/
.bg-color-on {
  background-color: #ed3237 !important;
}

.btn-submit {
    background-color: #878787 !important;
}

#icones-menu {
  color: #fff !important;
}

#icones-submenu {
  color: #fff !important;
}

.sidebar .sub-menu > li > a:focus,
.sidebar .sub-menu > li > a:hover,
.sidebar .sub-menu > li > a:focus,
.sidebar .sub-menu > li.active > a,
.sidebar .sub-menu > li.active > a:hover,
.sidebar .sub-menu > li.active > a:visited,
.sidebar .sub-menu > li.active > a:focus {
  color: #fff;
}

.main-sub {
  background-color: #333 !important;
}

.mapSidebar .sub-menu > li > a {
  color: #fff;
}

    .mapSidebar .sub-menu > li > a:hover,
    .mapSidebar .sub-menu > li > a:focus,
    .mapSidebar .sub-menu > li.active > a,
    .mapSidebar .sub-menu > li.active > a:hover,
    .mapSidebar .sub-menu > li.active > a:focus {
        color: #878787;
    }

.nav > li > a:hover, .nav > li > a:focus {
  background-color: #fff;
}

.sidebar-minify-btn:hover {
  background-color: #ed3237 !important;
}

.color-on {
    color: #878787 !important;
}

.sidebar {
    background: #878787;
}

.sidebar-bg {
    background: #878787;
}

.sidebar .nav > li.nav-profile .info small {
    color: #878787;
}

.sidebar .nav > li.nav-profile {
    color: #878787;
    background: #fff;
}

.sidebar .nav > li > a {
  color: #878787;
}

.sidebar-minify-btn i {
  color: #fff;
}

.sidebar .nav > li.nav-profile .image {
  float: none;
  width: auto;
  height: auto;
  margin-top: 0px;
  margin-right: 0px;
  overflow: auto;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  margin-bottom: 14px;
}

.nav-profile > a.dropdown-toggle:hover,
.nav-profile > a.dropdown-toggle:focus,
.nav-profile > a.dropdown-toggle:before,
.nav-profile > a.dropdown-toggle:active,
.nav-profile > a.dropdown-toggle.active {
  background: none !important;
}

.navbar.navbar-inverse .navbar-brand,
.sidebar .nav > li.active > a,
.sidebar .nav > li.active > a:focus,
.sidebar .nav > li.active > a:hover,
.flat-black .sidebar .nav > li.active > a,
.page-sidebar-minified .sidebar .nav > li.has-sub.active:focus > a,
.page-sidebar-minified .sidebar .nav > li.has-sub.active:hover > a,
.page-sidebar-minified .sidebar .nav > li.has-sub.active > a,
.label.label-theme, .btn.btn-scroll-to-top {
  background: #333;
}

/* Altera a cor da de alinhamento dos icones do sub-menu */
.sidebar .sub-menu:before {
    background: #ed3237;
}

/* Altera a cor da Div de sub-menu */
.sidebar .sub-menu, .page-sidebar-minified .sidebar .nav li.has-sub > .sub-menu {
    background: #ed3237;
}


.sidebar .sub-menu > li > a {
  color: #FFFFFF;
}

.sidebar-minify-btn {
  background: #333;
}

/*###################### WIDGETS #######################*/
.panel-inverse > .panel-heading {
  background: #333;
}

/*-----LOADER-------*/
#loadingProgressG {
  background-color: #333;
}

.loadingProgressG {
  background-color: white;
}

.spinner_dots > div {
  background-color: #333;
}

#widgetsunitmonitor .table-striped tbody tr.highlight td,
#widgetsunitmonitor table tbody tr:hover {
  background-color: #333 !important;
  color: #ffffff;
}

#widgetsoperationpanel table > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th {
  background: none;
}

#widgetsoperationpanel .table-striped tbody tr.highlight td,
#widgetsoperationpanel table tbody tr:hover {
  background-color: #333 !important;
  color: #ffffff;
}

/*###################### BUTTONS #######################*/
.btn.btn-success {
  color: #333;
  background: #fff;
  border-color: #fff;
}

.btn.btn-success:hover,
.btn.btn-success:focus,
.btn.btn-success:active,
.btn.btn-success.active,
.open .dropdown-toggle.btn-success {
  background: #333;
  border-color: white;
  color: white;
}

.btn-group .btn.btn-success:not(.active) + .btn.btn-success,
.input-group-btn .btn.btn-success:not(.active) + .btn.btn-success {
  border-left-color: #008a8a;
}

.btn.btn-primary {
  color: #fff;
  background: #333;
  border-color: #333;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn.btn-primary.active,
.open .dropdown-toggle.btn-primary {
  background: #fff;
  border-color: #333;
  color: #333;
}

.btn-group .btn.btn-primary:not(.active) + .btn.btn-primary,
.input-group-btn .btn.btn-primary:not(.active) + .btn.btn-primary {
  border-left-color: #008a8a;
}

/*###################### MAP #######################*/
#widgetsmapbox #mapSidebar {
  background-color: #333;
}

#widgetsmapbox #openmapSidebar {
  background-color: #333;
}

.mapSidebar .nav > li.expand > a,
.mapSidebar .nav > li > a:hover,
.mapSidebar .nav > li > a:focus {
  background: #333;
  color: #ffffff;
}

.mapSidebar .sub-menu {
    background: #ed3237;
    color: #ffffff;
}

.mapSidebar .sub-menu:before {
  background: #ed3237;
  color: #ffffff;
}

.bg-color-primary {
  background-color: #333;
  color: #ffffff;
}













/* GANTT */
#widgetstripgantt .panel-body {
    padding-left: 0;
    padding-right: 0;
}


#tripgantt-filters {
    padding: 12px;
    margin: 0;
    box-sizing: border-box;
    background: #fff; /* fundo padrão */
    border: 1px solid #e5e7eb; /* borda suave */
    border-radius: 6px; /* igual cards do sistema */
    margin-bottom: 8px;
}




/* container geral */
.gantt-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    gap: 16px;
    align-items: start;
    min-width: 0;
}


/* lado esquerdo */
.gantt-topbar-left {
    display: flex;
    flex-direction: column; /* label sempre em cima */
    gap: 6px;
}

.gantt-topbar-right {
    display: flex;
    padding-top: 20px;
    justify-content: flex-start;
    max-width: 100%;
    min-width: 0;
}







/* LINHA 1 — filtros principais */
.filters-row:first-of-type {
    display: grid;
    grid-template-columns: minmax(100px, 1.2fr) minmax(100px, 1.2fr);
    gap: 12px;
    align-items: end;
}

/* LINHA 2 — datas */
.filters-row:nth-of-type(2) {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(260px, 320px);
    flex-direction: column; /* label sempre em cima */
    gap: 12px;
    align-items: end;
}



.filters-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.filters-row {
    flex-direction: column; /* label sempre em cima */
}


/* ===============================
   FILTROS – BASE ÚNICA (COMPACTO)
   =============================== */


/* deixa o tema do sistema mandar no visual */
.gantt-filters input,
.gantt-filters select,
.gantt-filters button {
    border-radius: 4px;
    box-sizing: border-box;
}

/* mas mantém comportamento de grid/zoom */
.gantt-filters input,
.gantt-filters select {
    min-width: 0;
}


.filter-group {
    display: flex;
    flex-direction: column; /* label sempre em cima */
    gap: 4px;
    min-width: 0;
}

    .filter-group label {
        display: block;
        margin: 0;
        white-space: nowrap;
    }

.datetime-group {
    display: grid;
    grid-template-columns: 160px 90px; /* date / time */
    gap: 6px;
    align-items: center;
    max-width: 100%;
}

    .datetime-group input {
        min-width: 0;
        width: 100%;
    }


/* ===============================
   GANTT – LEGENDA INFORMATIVA
   =============================== */
.gantt-legend {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 5px 5px;
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    column-gap: 5px;
    row-gap: 2.5px;
    font-size: 11px;
    box-sizing: border-box;
}

.gantt-legend-title {
    grid-column: 1 / -1;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 4px;
}

.gantt-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    user-select: none; /* não seleciona texto */
    cursor: default; /* não parece botão */
}

.gantt-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0; /* 👈 ESSENCIAL */
}

    .gantt-legend-color.green {
        background: #16a34a;
    }

    .gantt-legend-color.orange {
        background: #f97316;
    }

    .gantt-legend-color.yellow {
        background: #facc15;
    }

    .gantt-legend-color.red {
        background: #dc2626;
    }

    .gantt-legend-color.blue {
        background: #2563eb;
    }

    .gantt-legend-color.purple {
        background: #7c3aed;
    }

    .gantt-legend-color.gray {
        background: #6b7280;
    }





#tripgantt-wrapper {
    padding: 0 12px;
}


/* HEADER (HORAS) */
#tripgantt-header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
}

#tripgantt-header,
#tripgantt-body {
    position: relative;
    z-index: 1;
}


/* PLACA FIXA */
.trip-label {
    width: 150px;
    min-width: 150px;
    height: 30px;
    line-height: 30px;
    padding: 0 6px;
    font-weight: bold;
    background: #fff;
    position: sticky;
    justify-content: left;
    left: 0;
    z-index: 100;
}

#tripgantt-header {
    position: relative;
    display: flex;
    flex-direction: column;
}

.tripgantt-scale-days,
.tripgantt-scale-hours {
    position: relative; /* MUITO IMPORTANTE */
    width: 100%;
    overflow: hidden;
}



.tripgantt-scale-hours {
    height: 24px;
}


.trip-timeline-header {
    position: relative;
    height: 15px;
    background-color: #fafafa;
    /* linha horizontal que acompanha o scroll */
    background-image: linear-gradient( to bottom, transparent 29px, #d0d0d0 30px );
    background-size: 100% 30px;
    background-repeat: repeat;
}


.trip-header-label {
    position: absolute;
    top: 0;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

    .trip-header-label.center {
        transform: translateX(-50%);
        text-align: center;
        font-weight: 600;
        color: #707478;
    }

    .trip-header-label.start {
        text-align: left;
        font-weight: 600;
        color: #000;
    }

    .trip-header-label.end {
        transform: translateX(-100%);
        text-align: right;
        font-weight: 600;
        color: #000;
    }



.trip-timeline {
    position: relative;
    height: 35px;
    background-color: #fafafa;
    /* linha horizontal que acompanha o scroll */
    background-image: linear-gradient( to bottom, transparent 29px, #d0d0d0 30px );
    background-size: 100% 30px;
    background-repeat: repeat;
}

/* opcional: header sem linha */
#tripgantt-header .trip-timeline {
    height: 40px;
    background-image: none;
    background: #ffffff;
}

.tripgantt-scale-days {
    height: 18px;
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    pointer-events: none;
}

.trip-day-label {
    position: absolute;
    white-space: nowrap;
    transform: translateX(-50%);
}



.trip-bar {
    top: 10px;
    position: absolute;
    height: 15px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 4px;
    background: #b3d9ff;
}

.trip-event {
    pointer-events: none;
}

.trip-event {
    position: absolute;
    top: 10px;
    bottom: 7px;
    width: 2px;
    height: 10px;
    border-radius: 2px;
    z-index: 5;
}

/* exemplos por tipo */
/*.trip-event-161 { background: #ff9800; }*/ /* faixa amarela */
/*.trip-event-163 { background: #e53935; }*/ /* faixa vermelha */
/*.trip-event-288 { background: #9c27b0; }*/ /* curva */
/*.trip-event-153 { background: #1e88e5; }*/ /* freada */

/*
.trip-normal {
    background: #4caf50;
}

.trip-overspeed {
    background: #e53935;
}

.trip-hard-brake {
    background: #fb8c00;
}

.trip-hard-accel {
    background: #1e88e5;
}
*/
.trip-tooltip {
    position: fixed;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 4px;
    white-space: pre-line;
    z-index: 9999;
    pointer-events: none;
    display: none;
}


.trip-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    border-radius: 4px;
}

    .trip-pagination span {
        font-size: 12px;
        color: #555;
    }

    .trip-pagination .tripgantt-perpage-master {
        justify-content: left;
        align-items: center;
    }

    .trip-pagination .label {
        margin-bottom: 5px;
    }


/*
.tripgantt-perpage {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    border-radius: 4px;
}

    .tripgantt-perpage span {
        font-size: 12px;
        color: #555;
    }

*/
#tripgantt-controls {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    padding: 4px 8px;
    border-right: 1px solid #ddd;
}


.trip-tick {
    position: absolute;
    top: 0;
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    pointer-events: none;
}

/* HORA */
.trip-tick-major::before {
    content: '';
    position: absolute;
    top: 18px;
    width: 1px;
    height: 10px;
    background: #999;
}

/* MINUTOS */
.trip-tick-minor::before {
    content: '';
    position: absolute;
    top: 22px;
    width: 1px;
    height: 6px;
    background: #ccc;
}


.trip-tick::before {
    content: '';
    position: absolute;
    top: 16px;
    width: 1px;
    height: 8px;
    background: #ccc;
}

.trip-tick:hover::after {
    content: attr(data-time);
    position: absolute;
    top: -14px;
    font-size: 10px;
    color: #333;
}




.trip-start-label {
    position: absolute;
    top: -14px; /* fica acima da barra */
    font-size: 10px;
    color: #555;
    white-space: nowrap;
    pointer-events: none;
}

#tripgantt-grid {
    display: flex;
    width: 100%;
    overflow: hidden;
}

/* COLUNA FIXA */
#tripgantt-left {
    width: 150px;
    min-width: 150px;
    background: #fff;
    z-index: 10;
}

/* ÁREA COM SCROLL */
#tripgantt-right {
    flex: 1;
    overflow-x: auto;
    position: relative;
    max-width: 100%;
    min-width: 0;
}


.trip-row {
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    padding: -25px;
}

.trip-row-order {
    position: sticky;
    height: 40px;
    top: 0;
    z-index: 200;
    background: #fff;
    padding: 4px 6px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    user-select: none;
}

/* linha 1 */
.trip-order-line1 {
    font-size: 11px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
}

/* linha 2 (valor) */
.trip-order-line2 {
    font-size: 12px;
    font-weight: 500;
    padding-top: 2px;
    color: #111827;
    line-height: 1.2;
    white-space: nowrap; /* não quebra */
}

/* feedback sutil */
.trip-row-order:hover .trip-order-line2 {
    text-decoration: underline;
}

.trip-row-order:hover div:last-child {
    text-decoration: underline;
}


.trip-order-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    user-select: none;
    white-space: nowrap; /* 🔴 impede quebra */
    display: inline-block; /* 🔴 garante largura correta */
}



/* ÁREA COM SCROLL */
#zoom-label {
    width: 30px;
    text-align: center;
}

/*#zoom-in,
#zoom-out {
    border-radius: 4px;
}
*/









/* DETALHES - MODAL */
/* OVERLAY */
.trip-details-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
    padding: 24px;
    box-sizing: border-box;
}

.trip-details-modal-bar {
    position: absolute;
    top: 0; /* ajuste conforme seu layout */
    height: 18px; /* ou o que você usa */
    border-radius: 8px;
}

/* FECHAR */
.trip-details-modal-close {
    border: none;
    background: #f3f4f6;
    color: #374151;
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
}


/* HEADER */
.trip-details-report-header {
    background: #ececec;
    padding: 18px 24px;
    border-bottom: 2px solid #d1d5db;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}


/*.trip-details-event-tooltip {
    position: fixed;*/ /* <- importante com clientX/clientY */
/*z-index: 999999;
    display: none;
    background: rgba(0,0,0,.85);
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.25;
    max-width: 380px;
    white-space: pre-line;*/ /* <- para quebrar \n */
/*pointer-events: none;*/ /* <- não “trava” o mousemove */
/*}*/
.trip-details-event-tooltip {
    position: absolute;
    z-index: 999999;
    display: none;
    background: rgba(0,0,0,.88);
    color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.35;
    max-width: 340px;
    pointer-events: none;
}


.trip-details-tooltip-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.trip-details-tooltip-line {
    margin-bottom: 4px;
}

    .trip-details-tooltip-line b {
        font-weight: 600;
        margin: 0;
    }

.tooltip-details-map-slot {
    width: 220px;
    height: 120px;
    margin-top: 6px; /* 👈 menos espaço */
    border-radius: 4px;
    overflow: hidden;
    align-self: center; /* 👈 centraliza */
}

    .tooltip-details-map-slot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.trip-details-event-map-panel {
    margin-top: 16px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
}

#trip-details-event-map-large {
    height: 360px;
    border-radius: 8px;
    overflow: hidden;
}








.trip-details-report-header .brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.trip-details-report-header img {
    height: 42px;
}

.trip-details-report-header h1 {
    margin: 0;
    font-size: 28px;
    color: #0f4c81;
}

.trip-details-report-header span {
    font-size: 14px;
    color: #f97316;
}

.trip-details-report-header .filters {
    text-align: right;
    font-size: 13px;
    color: #374151;
}

/* BODY */
.trip-details-modal-body {
    flex: 1;
    overflow: auto;
    padding: 18px 24px;
}

/* CONTROLES */
.timeline-details-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

    .timeline-details-controls button {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        border: 1px solid #cbd5e1;
        background: #fff;
        cursor: pointer;
        font-size: 18px;
    }

/* TIMELINE */
.timeline-details-wrapper {
    background: #fff;
    border: 1px solid #d1d5db;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

.timeline-details-scale-days {
    position: relative;
    height: 28px;
    font-weight: 600;
    font-size: 13px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.timeline-details-scale-hours {
    position: relative;
    height: 26px;
    font-size: 12px;
    background: #ffffff;
    border-bottom: 3px solid #0ea5e9;
}

/*.timeline-details-track {
    position: relative;
    height: 56px;
    background: #eaf4ff;
}*/


/* BARRA DA VIAGEM */
.trip-details-bar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    border-radius: 10px;
    background: #38bdf8;
}

/* EVENTOS */ /*
.trip-details-event {
    position: absolute;
    top: 6px;
    width: 4px;
    height: 44px;
    border-radius: 3px;
}*/

.trip-details-event {
    position: absolute;
    top: 6px;
    width: 4px; /* 👈 área clicável */
    height: 44px;
    cursor: pointer;
    z-index: 10;
    border-radius: 3px;
}

.trip-details-event-hover-icon {
    z-index: 999999; /* fica na frente de tudo */
    pointer-events: none;
    color: #0ea5e9; /* azul */
    font-size: 12px;
    line-height: 1;
}

/*
    .trip-details-event.event-hover::after {
        opacity: 1;
    }

    .trip-details-event:hover {
        box-shadow: 0 0 0 3px rgba(37,99,235,.25);
    }
*/
.timeline-details-track {
    overflow: visible !important;
}

.trip-details-event-tooltip {
    pointer-events: none;
    background: transparent;
}


.trip-details-event:hover {
    box-shadow: 0 0 0 3px rgba(59,130,246,.5);
}


/* RESUMO */
.trip-details-summary {
    line-height: 1.6;
}

.trip-details-event-card-b {
    margin-top: 10px;
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    border-left: 6px solid #0ea5e9;
    line-height: 1.6;
    margin-top: 5px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}


.trip-details-summary b {
    font-weight: 600;
    color: #374151;
}


.trip-details-summary b {
    font-weight: 600;
    color: #374151;
}



.trip-details-modal-bar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    border-radius: 10px;
    background: #38bdf8;
}

.timeline-details-track {
    position: relative;
    height: 56px;
    background: #eaf4ff;
    /* grid vertical suave */
    background-image: linear-gradient(to right, rgba(15,23,42,.10) 1px, transparent 1px);
    background-size: var(--grid-step, 120px) 100%;
}

.timeline-details-scale-hours > div {
    transform: translateX(-50%);
    white-space: nowrap;
}

    .timeline-details-scale-hours > div::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 18px;
        width: 1px;
        height: 8px;
        background: #cbd5e1;
    }

.trip-details-start-end {
    position: absolute;
    top: 4px;
    width: 3px;
    height: 48px;
    border-radius: 3px;
    background: #000;
    opacity: .7;
}

.timeline-details-scale-markers {
    position: relative;
    height: 16px; /* linha das DATAS */
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    pointer-events: none;
}

.timeline-details-scale-StartEnd {
    position: relative;
    height: 20px; /* linha do Início/Fim */
    font-size: 13px;
    font-weight: 700;
    color: #000;
    pointer-events: none;
}

.trip-details-start-end-date {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
    color: #2563eb; /* azul elegante */
}


.trip-details-start-end-label {
    position: absolute;
    top: 0;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    transform: translateX(-50%);
    pointer-events: none;
}

.trip-details-modal-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
    align-items: flex-end;
}


.trip-details-modal-header-left {
    border-left: 4px solid #0ea5e9;
    padding-left: 12px;
}


.trip-details-modal-header-right {
    display: flex;
    gap: 18px;
    margin: 10px;
}

.trip-details-modal-title {
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.trip-details-modal-subtitle {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #0ea5e9; /* azul institucional */
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


.trip-details-meta {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

    .trip-details-meta .label {
        color: #6b7280;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .03em;
    }

    .trip-details-meta .value {
        color: #0f172a;
        font-size: 14px;
        font-weight: 500;
    }

.trip-details-modal-period {
    margin-top: 8px;
    font-size: 13px;
    color: #374151;
}

    .trip-details-modal-period .label {
        margin-right: 4px;
    }


/* LISTA */

/* CARD */
.trip-details-modal-content {
    background: #f3f4f6;
    width: min(1200px, 96vw);
    height: min(90vh, 900px);
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 60px rgba(0,0,0,.35);
}


.trip-details-event-card {
    margin-top: 10px;
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    border-left: 6px solid #0ea5e9;
}

    .trip-details-event-card b {
        display: block;
        margin-bottom: 4px;
        font-size: 13px;
        font-weight: 600;
    }

    .trip-details-event-card .event-details-title {
        margin-bottom: 6px;
        color: #374151;
        font-size: 16px;
        font-weight: 600;
    }


    /*.trip-details-event-card .event-details-line {
        display: grid;
        grid-template-columns: 200px 1fr;*/ /* um pouco maior */
    /*column-gap: 10px;
        margin-bottom: 2px;
    }


        .trip-details-event-card .event-details-line .label {
            color: #2563eb;
            white-space: nowrap;
            font-size: 13px;
            text-align: left;*/ /* 👈 chave */
    /*}*/



    .trip-details-event-card .event-details-line {
        display: flex;
        gap: 6px;
        margin-bottom: 2px;
    }

        .trip-details-event-card .event-details-line .label {
            color: #2563eb;
            white-space: nowrap;
            font-size: 13px;
        }

        .trip-details-event-card .event-details-line .value {
            color: #0f172a;
            font-size: 13px;
        }



    .trip-details-event-card .event-details-content {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 12px;
        margin-top: 6px;
    }

    .trip-details-event-card .event-details-map {
        width: 100%;
        height: 160px;
        border-radius: 8px;
        overflow: hidden;
        background: #eee;
    }

@media (max-width: 768px) {
    .trip-details-event-card .event-details-content {
        grid-template-columns: 1fr;
    }
}



/* MAPA */
.event-details-map-slot {
    width: 260px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-details-map-btn {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 4px;
    background: #4a4a4a;
    color: #fff;
    border: none;
    cursor: pointer;
}

.event-details-map {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.hidden {
    display: none;
}



/*modal mapa*/

.trip-details-event-modal-header {
    height: 56px;
    padding: 0 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trip-details-event-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    font-weight: 600;
}



.trip-details-event-modal-close {
    border: none;
    background: #f3f4f6;
    color: #374151;
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
}

    .trip-details-event-modal-close:hover {
        background: #e5e7eb;
    }


.trip-details-event-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trip-details-event-modal-content {
    background: #fff;
    width: min(1100px, 96vw);
    height: min(85vh, 900px);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.trip-details-event-modal-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 0; /* 👈 zero para alinhar perfeitamente */
    background: #f9fafb;
}

.trip-details-map-frame {
    margin: 10px;
    padding: 8px;
    border-radius: 14px;
    overflow: hidden; /* 🔑 corta o mapa */
    background: #e5e7eb;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

/* mapa em si */
#trip-details-event-map-large {
    width: 100%;
    height: 100%;
}



.trip-details-event-info {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin: 10px;
    padding: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}


.event-details-content-map {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}





/* LEGENDA */
.trip-details-legend {
    margin-top: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
}
    /* ITEM DA LEGENDA */
    .trip-details-legend .legend-details-item {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        user-select: none;
    }

/* BOLINHA */
.legend-details-item .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease;
}

/* hover → efeito molinha */
.legend-details-item:hover .legend-color {
    transform: scale(1.4);
    box-shadow: 0 0 0 2px rgba(0,0,0,.18);
}

/* clique → comprime */
.legend-details-item:active .legend-color {
    transform: scale(.9);
}

/* ativo → destaque */
.legend-details-item.active .legend-color {
    transform: scale(1.5);
    box-shadow: 0 0 0 2px rgba(255,255,255,.95), 0 0 0 4px rgba(99,102,241,.65);
}

.load-more-wrapper {
    text-align: center;
    margin: 16px 0;
}






/*
#widgetsreportcomplete_urban .eventTree {
    max-height: 520px;
    overflow: auto;
    padding: 6px 8px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #fff;
}

    #widgetsreportcomplete_urban .eventTree .jstree-wholerow {
        height: 28px;
    }

    #widgetsreportcomplete_urban .eventTree .jstree-anchor {
        line-height: 28px;
        height: 28px;
        font-size: 13px;
    }

    #widgetsreportcomplete_urban .eventTree .jstree-search {
        font-weight: 600;
        border-bottom: 1px dotted #999;
    }
*/

.eventTree {
    height: 300px !important;
    padding: 2px;
}

.event-box {
    height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding-left: 2px;
}

.event-item {
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .event-item:hover {
        background: #f2f2f2;
    }

    .event-item.selected {
        background: #d9edf7;
    }

.event-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-badge {
    background: #337ab7;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    white-space: nowrap;
}

/*.event-buttons {
    margin-top: 40px;*/ /* ajusta a altura geral */
/*}

    .event-buttons button {
        display: block;
        margin: 8px auto;
    }*/

.eventTree .row {
    display: flex;
    gap: 18px; /* controla o espaço entre caixas */
}


.event-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100px;
    width: 70px;
    height: 260px; /* igual ao .event-box */
}

#event_add_all > i,
#event_add > i,
#event_remove > i,
#event_remove_all > i {
    color: #000 !important;
    font-weight: 700;
}


.event-box.has-selection {
    border-color: #5bc0de;
    box-shadow: 0 0 0 1px rgba(91,192,222,.4);
}

#event_selected {
    border: 1px dashed #ccc;
    transition: all .2s ease;
}

    #event_selected.has-selection {
        border: 2px solid #1abc9c;
        background: #f6fffc;
    }



/* ==========================================================
   FIX DEFINITIVO – Relatório Histórico Completo Urbano
   Neutraliza o white-space global destrutivo
   ========================================================== */

#widgetsreportcomplete_urban table.dataTable {
    table-layout: auto !important;
}

    #widgetsreportcomplete_urban table.dataTable thead th,
    #widgetsreportcomplete_urban table.dataTable tbody td {
        white-space: nowrap !important;
        min-width: 120px !important;
    }

    /* MUITO IMPORTANTE: quebra o efeito do `table tr` global */
    #widgetsreportcomplete_urban table.dataTable tr {
        white-space: normal !important;
    }

/* Garante que o DataTables possa calcular largura real */
#widgetsreportcomplete_urban .dataTables_scrollHeadInner,
#widgetsreportcomplete_urban .dataTables_scrollHeadInner table,
#widgetsreportcomplete_urban .dataTables_scrollBody > table {
    width: max-content !important;
    min-width: 100% !important;
}






/*ESTILIZA O FILTRO DE EMPRESAS, SUBGRUPOS E VEICULOS*/

/* container das unidades selecionadas */
.selectedUnitList {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: #f5f7fa;
    border-radius: 6px;
    min-height: 44px;
    border: 1px dashed #d0d7de;
}

/* chip base */
.selectedUnit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 10px;
    border-radius: 16px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

    /* unidade individual */
    .selectedUnit.bg-color-primary2 {
        background: #337ab7;
        color: #fff;
    }

    /* subgrupo (se você aplicar outra cor depois) */
    .selectedUnit.bg-color-warning {
        background: #f59e0b;
        color: #000;
    }

    /* hover */
    .selectedUnit:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }

    /* ícone de remoção */
    .selectedUnit::after {       
        font-size: 9px;
        margin-left: 6px;
        opacity: 0.7;
    }

    .selectedUnit:hover::after {
        opacity: 1;
    }





/*select.form-control[multiple] {
    min-height: 160px;
    border-radius: 6px;
}*/

/* destaque visual no foco */
/*select.form-control[multiple]:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 2px rgba(13,110,253,.15);
    }


.selectedUnit#0 {
    background: transparent;
    color: #6c757d;
    border: none;
    cursor: default;
}

    .selectedUnit#0::after {
        content: "";
    }*/


.eventTree {
    height: 300px !important;
    padding: 2px;
}

.event-box {
    height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px;
}

.event-item {
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .event-item:hover {
        background: #f2f2f2;
    }

    .event-item.selected {
        background: #d9edf7;
    }

.event-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-badge {
    background: #337ab7;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    white-space: nowrap;
}

/*.event-buttons {
    margin-top: 40px;*/ /* ajusta a altura geral */
/*}

    .event-buttons button {
        display: block;
        margin: 8px auto;
    }*/

.eventTree .row {
    display: flex;
    gap: 6px; /* controla o espaço entre caixas */
}


.event-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 40px;
    height: 260px; /* igual ao .event-box */
}

.event-box.has-selection {
    border-color: #5bc0de;
    box-shadow: 0 0 0 1px rgba(91,192,222,.4);
}

#event_selected {
    border: 1px dashed #ccc;
    transition: all .2s ease;
}

    #event_selected.has-selection {
        border: 2px solid #1abc9c;
        background: #f6fffc;
    }



/* ==========================================================
   FIX DEFINITIVO – Relatório Histórico Completo Urbano
   Neutraliza o white-space global destrutivo
   ========================================================== */

#widgetsreportcomplete_urban table.dataTable {
    table-layout: auto !important;
}

    #widgetsreportcomplete_urban table.dataTable thead th,
    #widgetsreportcomplete_urban table.dataTable tbody td {
        white-space: nowrap !important;
        min-width: 120px !important;
    }

    /* MUITO IMPORTANTE: quebra o efeito do `table tr` global */
    #widgetsreportcomplete_urban table.dataTable tr {
        white-space: normal !important;
    }

/* Garante que o DataTables possa calcular largura real */
#widgetsreportcomplete_urban .dataTables_scrollHeadInner,
#widgetsreportcomplete_urban .dataTables_scrollHeadInner table,
#widgetsreportcomplete_urban .dataTables_scrollBody > table {
    width: max-content !important;
    min-width: 100% !important;
}






/*ESTILIZA O FILTRO DE EMPRESAS, SUBGRUPOS E VEICULOS*/

/* container das unidades selecionadas */
.selectedUnitList {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: #f5f7fa;
    border-radius: 6px;
    min-height: 44px;
    border: 1px dashed #d0d7de;
}

/* chip base */
.selectedUnit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 16px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

    /* unidade individual */
    .selectedUnit.bg-color-primary2 {
        background: #337ab7;
        color: #fff;
    }

    /* subgrupo (se você aplicar outra cor depois) */
    .selectedUnit.bg-color-warning {
        background: #f59e0b;
        color: #000;
    }

    /* hover */
    .selectedUnit:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }

    /* ícone de remoção */
    .selectedUnit::after {
        content: "✕";
        font-size: 11px;
        margin-left: 6px;
        opacity: 0.7;
    }

    .selectedUnit:hover::after {
        opacity: 1;
    }





/*select.form-control[multiple] {
    min-height: 160px;
    border-radius: 6px;
}*/

/* destaque visual no foco */
/*select.form-control[multiple]:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 2px rgba(13,110,253,.15);
    }


.selectedUnit#0 {
    background: transparent;
    color: #6c757d;
    border: none;
    cursor: default;
}

    .selectedUnit#0::after {
        content: "";
    }*/
