.TituloLabel {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    font-size: 16px;
}

#mapas_lay {
    position: absolute;
    top: 45px;
    right: 20px;
    z-index: 50;
}

.e-grid .e-headercelldiv {
    font-size: 90% !important;
}

.e-grid {
    font-size: 80% !important;
}

.popover .close {
    position: absolute;
    top: 8px;
    right: 10px;
}

#avanca:hover {
    background-color: #1abc9c;
}

#retorcede:hover {
    background-color: #1abc9c;
}

#ida:hover {
    background-color: #1abc9c;
}

#volta:hover {
    background-color: #1abc9c;
}

.e-grid.e-wrap .e-columnheader .e-headercelldiv {
    text-align: center !important;
    color: #3498DB;
    font-size: 11px !important;
}

.e-grid.e-wrap .e-columnheader .e-headercelldiv,
.e-grid.e-wrap .e-rowcell,
.e-grid.e-wrap.e-responsive .e-rowcell,
.e-grid .e-columnheader.e-wrap .e-headercelldiv,
.e-grid .e-gridcontent.e-wrap .e-rowcell,
.e-grid.e-responsive .e-gridcontent.e-wrap .e-rowcell {
    text-align: center !important;
}

h5#nomel:hover {
    color: #1abc9c !important;
}

.viagem {
    color: black;
    font-family: Calibri;
    border-radius: 2px;
    padding: 2px 8px;
    display: inline-block;
    width: 100%;
    padding-top: 7px;
    padding-bottom: 8px;
    background: #ffffff;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
    width: 100%;
    border-radius: 15px;
}

.btver {
    width: 50px;
    text-align: center;
    font-family: Calibri;
    border-radius: 2px;
    display: inline-block;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
}

.btver:hover {
    color: white;
    cursor: pointer;
    background: #bdc454;
    border-radius: 5px;
}

.viagemselect {
    width: 50px;
    color: white;
    font-family: Calibri;
    border-radius: 2px;
    display: inline-block;
    background: #bdc454;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
}

.train-popup {
    max-width: 280px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.train-header {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: flex-start;
    justify-content: flex-start;
    color: #fff;
    padding: 6px 10px;
 /*   border-radius: 999px;*/
    font-size: 13px;
    font-weight: 600;
}

.train-header .badge {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
}

.train-line {
    font-weight: 700;
}

.train-direction,
.train-time {
    opacity: 0.9;
}

.train-info {
    margin-top: 8px;
    font-size: 12px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
}

.train-info::-webkit-scrollbar {
    width: 6px;
}

.train-info::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.train-info::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.train-info::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    line-height: 1.4;
}

.label {
    color: #666;
    font-weight: 500;
}

.value {
    color: #000;
    font-weight: 600;
    text-align: right;
}

@media (max-width: 480px) {
    .train-popup {
        max-width: 90vw;
    }

    .train-header {
        font-size: 14px;
    }

    .train-info {
        font-size: 13px;
    }
}

#bottom-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 33.333%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
    overflow: hidden;
    font-family: Calibri, Arial, sans-serif;
    z-index: 60;
}

.bottom-panel-collapsed {
    height: 32px;
}

.bottom-panel-expanded {
    height: 33.333%;
}

.bottom-panel-header {
    height: 32px;
    line-height: 32px;
    padding: 0 10px;
    background: #003f19;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    user-select: none;
}

.bottom-panel-content {
    padding: 8px 10px;
    font-size: 12px;
    color: #000;
    overflow-y: auto;
    height: calc(100% - 32px);
}

.vehicle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    white-space: nowrap;
}

.vehicle-left,
.vehicle-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vehicle-row span {
    white-space: nowrap;
}

.ename {
    padding: 0px 3px 1px 3px;
}

.desig,
.cont {
    font-size: smaller;
}

.ol-control.ol-zoom {
    top: 0.5em;
    right: 0.5em;
    left: auto;
}

.result-card {
    width: 100%;
    max-width: 400px;
    border-radius: 1.5rem;
    border: none;
    background: #ffffff;
}

.text-line-1 {
    color: #e06666;
    font-size: 0.95rem;
}

.text-line-2 {
    color: #b30000;
    font-size: 0.95rem;
    line-height: 1.4;
}

.custom-progress {
    height: 12px;
    border-radius: 0;
}

.bg-bar-grey {
    background-color: #8a8a8a;
}

.bg-bar-dark {
    background-color: #343a40;
}

.e-datepicker table td.other-month,
.e-datepicker .e-allyear-first,
.e-datepicker .e-allyear-last,
.e-datepicker .e-year-first,
.e-datepicker .e-year-last {
    color: #bdc454 !important;
}

.e-datepicker .e-active,
.e-datepicker .e-active:hover,
.e-datepicker .e-active.e-state-hover {
    background: linear-gradient(to bottom, #bdc454, #bdc454) !important;
}

.e-time-popup .e-active {
    background: linear-gradient(to bottom, #bdc454, #bdc454) !important;
}

.floating-planner {
    z-index: 1100 !important;
}

#layer-switcher {
    position: relative;
}

#layerlist {
    position: absolute;
    top: 0;
    right: calc(100% + 8px);
    left: auto;
    margin-top: 0 !important;
}

@media (max-width: 767px) {
    #screen-logo {
        left: 10px !important;
        bottom: 10px !important;
        max-height: 44px !important;
        max-width: 140px !important;
        z-index: 980 !important;
    }

    #map-controls-bar {
        position: fixed !important;
        left: 10px !important;
        bottom: 64px !important;
        top: auto !important;
        right: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        z-index: 1000 !important;
    }

    #layer-switcher {
        order: 1;
        z-index: 1000;
    }

    #btnTripOverlayToggle {
        order: 2;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    #layer-switcher_btn {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #layer-switcher_btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    #btnGeolocate {
        order: 3;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    #btnTripOverlayToggle i {
        font-size: 0.9rem !important;
    }

    #layerlist {
        top: -60px;
        left: calc(100% + 8px);
        right: auto;
        z-index: 1001;
    }
}
