@charset "UTF-8";

.slidecontainer {
  width: 100%;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 15px;
  border-radius: 5px;
  background: #c3cce4;
  outline: none;
  opacity: 0.9;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #1940A3;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #1940A3;
  cursor: pointer;
}
/* Icon pulse */
.fa-pulse {
  display: inline-block;
  -moz-animation: pulse 2s infinite linear;
  -o-animation: pulse 2s infinite linear;
  -webkit-animation: pulse 2s infinite linear;
  animation: pulse 2s infinite linear; }

@-webkit-keyframes pulse {
  0% {
    opacity: 1; }
  50% {
    opacity: 0; }
  100% {
    opacity: 1; } }
@-moz-keyframes pulse {
  0% {
    opacity: 1; }
  50% {
    opacity: 0; }
  100% {
    opacity: 1; } }
@-o-keyframes pulse {
  0% {
    opacity: 1; }
  50% {
    opacity: 0; }
  100% {
    opacity: 1; } }
@-ms-keyframes pulse {
  0% {
    opacity: 1; }
  50% {
    opacity: 0; }
  100% {
    opacity: 1; } }
@keyframes pulse {
  0% {
    opacity: 1; }
  50% {
    opacity: 0; }
  100% {
    opacity: 1; } }
.transparent {
  /* Required for IE 5, 6, 7 */
  /* ...or something to trigger hasLayout, like zoom: 1; */
  width: 100%;
  /* Theoretically for IE 8 & 9 (more valid) */
  /* ...but not required as filter works too */
  /* should come BEFORE filter */
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  /* This works in IE 8 & 9 too */
  /* ... but also 5, 6, 7 */
  filter: alpha(opacity=50);
  /* Older than Firefox 0.9 */
  -moz-opacity: 0.5;
  /* Safari 1.x (pre WebKit!) */
  -khtml-opacity: 0.5;
  /* Modern!
  /* Firefox 0.9+, Safari 2?, Chrome any?
  /* Opera 9+, IE 9+ */
  opacity: 0.5; }

body {
  padding-top: 86px; }

.navbar {
  background-color: #1940A3 !important;
  -moz-box-shadow: 0 -2px 2px 2px #000;
  -webkit-box-shadow: 0 -2px 2px 2px #000;
  box-shadow: 0 -2px 2px 2px #000; }

.navbar-brand.navbar-brand-logo .brand {
  margin-top: 0;
   }

.navbar li .boxed {
  margin: 6px 3px;
  padding: 6px 7px;
  text-align: center;
  min-width: 70px;
  line-height: 20px;
  position: relative;
  display: block;
  cursor: default; }

.nav .open > a, .nav .open > a:focus, .nav .open > a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px; }

[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
  display: none !important; }

form legend {
  font-size: 1em;
  margin-bottom: .8em; }
form .form-group.has-error {
  margin-bottom: 0; }
form .form-group.has-error label,
form .form-group.has-error .control-label,
form .form-group.has-error .help-block,
form .form-group.has-error .help-block p,
form .form-group.has-error [ng-message] {
  color: #c62828 !important; }
form .form-group.has-error .form-control,
form .form-group.has-error .form-control:focus {
  border-color: #c62828 !important; }
form .form-group.has-error .form-control-feedback {
  color: #c62828 !important; }

.alerts {
  padding: .5em .5em 0 .5em !important;
  max-height: 20em;
  overflow-y: auto; }
  .alerts .form-group {
    margin-bottom: .5em; }
  .alerts .alert {
    margin-bottom: .5em;
    padding: .5em;
    min-width: 14em; }
    .alerts .alert.alert-success:hover {
      background-color: #EFF9EA;
      border-color: #E9F5DD; }
    .alerts .alert.alert-info:hover {
      background-color: #EBF7FC;
      border-color: #D5F5F9; }
    .alerts .alert.alert-warning:hover {
      background-color: #FEFDF2;
      border-color: #FDF6E2; }
    .alerts .alert.alert-danger:hover {
      background-color: #FAEEEE;
      border-color: #F6E2E5; }
    .alerts .alert .date {
      font-size: .8em;
      float: right; }
    .alerts .alert .licensePlate {
		text-transform: uppercase;
      display: block;
      font-weight: bold; }
  .alerts a.btn-primary {
    color: #fff; }
    .alerts a.btn-primary:hover {
      color: #fff;
      background-color: #286090;
      border-color: #204D74; }

.lightgreen {
  color: #50FB03; }

.lightgray {
  color: #999; }

.form-control {
  height: 34px; }

.vehicle-status {
  font-size: .5em;
  vertical-align: super; }

.leaflet-control-search .search-input {
  height: inherit;
  font-size: 1.4em;
  margin-right: .3em; }
.leaflet-control-search .search-cancel {
  right: 30px;
  margin: 6px 0; }
.leaflet-control-search .search-tip {
  white-space: normal; }

#fence-tooltip {
  display: none;
  position: absolute;
  background: #666;
  color: white;
  opacity: 0.5;
  padding: 10px;
  border: 1px dashed #999;
  font-family: sans-serif;
  font-size: 12px;
  height: 20px;
  line-height: 20px;
  z-index: 10000; }

.table-vertical-scroll .body {
  overflow-y: auto;
  height: auto; }
.table-vertical-scroll .table-striped {
  table-layout: fixed; }

#menu-xs-toggle {
  position: absolute;
  left: 0;
  width: 40px;
  height: 40px;
  z-index: 1000;
  font-size: 2.5em;
  text-align: center;
  color: #fff;
  background: #1940A3;
  border-radius: 0px 0px 5px 0px; }

#menu-xs {
  background: #1940A3; }
  #menu-xs ul {
    position: fixed;
    overflow: auto;
    top: 0;
    left: 0;
    height: 100%;
    list-style-type: none;
    margin: 0;
    padding: 0; }
    #menu-xs ul li a {
      display: block;
      /*            width: 150px;*/
      padding-top: 1em;
      padding-left: 1em;
      /*            text-align: left;*/
      color: #fff;
      position: relative;
      -webkit-transition: background 0.1s ease-in-out;
      -moz-transition: background 0.1s ease-in-out;
      transition: background 0.1s ease-in-out;
      margin-bottom: .5em;
      padding-bottom: 1em; }
      #menu-xs ul li a.alert {
        color: #000;
        width: 100%; }
      #menu-xs ul li a .label {
        margin: .3em;
        font-size: 1em;
        background-color: tomato; }

#history-map {
  width: auto;
  height: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 2; }

svg {
  position: relative; }

.waypoints {
  fill: black;
  opacity: 0; }

.lineConnect {
  fill: none;
  stroke: red;
  stroke-width: 3px;
  opacity: 1; }

.travelMarker {
  fill: yellow;
  opacity: 0.75; }

.drinks {
  stroke: black;
  fill: red; }

.locnames {
  fill: black;
  text-shadow: 1px 1px 1px #fff;
  /*text-shadow: 1px 1px 1px #FFF, 3px 3px 5px #000;*/
  font-weight: bold;
  font-size: 13px;
  background: red;
  display: block;
  text-decoration: underline; }

/* Extra Small Devices, Phones */
/*@media only screen and (min-width : 320px) {*/
@media only screen and (max-width: 767px) {
  body {
    padding-top: 0;
    width: 100%;
    height: 100%; }

  .slideout-menu {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 0;
    width: 256px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none; }

  .slideout-panel {
    position: relative;
    z-index: 1; }

  .slideout-open,
  .slideout-open body,
  .slideout-open .slideout-panel {
    overflow: hidden; }

  .slideout-open .slideout-menu {
    display: block; }

  #feature-title {
    font-size: .8em; }

  .vehicle-status {
    font-size: .5em; }
    .vehicle-status.last {
      margin-left: .6em; }
	  .btn.btn-primary.mb{display: none;}
	  .btn.btn-primary.mm{width:100%; margin-top:5px;}
	  .btn.btn-primary.mn{width:100%; margin-top:20px; margin-bottom: 20px;}
	  .btn.btn-success.mn{width:100%; margin-top:20px; margin-bottom: 20px;}
	  .btn.btn-success.mm{width:100%; margin-top:20px;}
	  }
@media (min-width: 768px) {
  .dropdown-menu:before, .dropdown-menu:after {
    right: 87px; } }

/*# sourceMappingURL=index.css.map */
.printable { display: inherit; }
.logo_print{ display:none; width:100%; background-color: #1940A3 !important;}
.logo_print img{ display:none; margin: 0 auto;}
a.ordenarPor{ color:#000;}
.tableSpace{margin-top:30px;}
li.velMedia{display:none}
li.velMediaMostra{display:block}
@media print
{
    .non-printable { display: none; }
    .printable { display: block !important; }
	.modal-dialog {width: 100% !important; margin: 0px; height:100%; min-height:100%; display:block;}
	.logo_print{ display:block; width:100%; background-color: #1940A3 !important;}
	.logo_print img{ display:block; margin: 0 auto;}
}
@media print {
    body.modalprinter * {
        visibility: hidden;
    }

    body.modalprinter .modal-dialog {
        position: absolute;
        padding: 0;
        margin: 0;
        left: 0;
        top: 0;
    }

    body.modalprinter .modal-dialog .modal-content {
        border-width: 0;
    }

    body.modalprinter .modal-dialog .modal-content .modal-header .modal-title,
    body.modalprinter .modal-dialog .modal-content .modal-body,
    body.modalprinter .modal-dialog .modal-content .modal-body * {
        visibility: visible;
        width: 100%;
    }

    body.modalprinter .modal-dialog .modal-content .modal-header,
    body.modalprinter .modal-dialog .modal-content .modal-body {
        padding: 0;
        width: 100%;
    }

    body.modalprinter .modal-dialog .modal-content .modal-header .modal-title {
        margin-bottom: 20px;
    }
	/*.modal-open .modal{height:22000px; min-height:22000px;}*/
}

.leaflet-control-layers {
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0,0,0,.20);
    font-size: 12px;
}

.leaflet-control-layers label {
    padding: 6px 8px;      /* 👈 menor */
    line-height: 1.15;
}

.leaflet-control-layers input {
    transform: scale(1.05); /* 👈 quase padrão */
}

.leaflet-control-layers-toggle {
    width: 32px !important;
    height: 32px !important;
    background-size: 20px 20px !important;
}
/* ===== IGNIÇÃO LIGADA ===== */
/*.ignition-on {
    color: #27ae60;
    animation: pulseIgnition 1.2s infinite;
}
*/
/* ===== IGNIÇÃO DESLIGADA ===== */
/*.ignition-off {
    color: #c0392b;
    animation: none;
    opacity: 0.85;
}
*/
/* ===== ANIMAÇÃO ===== */
/*@keyframes pulseIgnition {
    0%   { transform: scale(1);   opacity: 1; }
    50%  { transform: scale(1.15); opacity: 0.75; }
    100% { transform: scale(1);   opacity: 1; }
}
*/
.vehicle-header-premium {
    background: #dee1e9;
    border-bottom: 1px solid #cfd4dc;
    padding: 16px;
}

.vehicle-title {
    font-size: 21px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

/* STATUS PRINCIPAL */
.vehicle-main-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.vh-pill {
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 12.5px;
    font-weight: 500;
    background: #ffffff;
    color: #374151;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

/* CORES PREMIUM */
.vh-online        { color: #2e7d32; }
.vh-offline       { color: #c62828; }
.vh-warning       { color: #b26a00; }
.vh-ignition-on   { color: #2e7d32; }
.vh-ignition-off  { color: #6b7280; }
.vh-moving        { color: #1e40af; }
.vh-stopped       { color: #6b7280; }
.vh-locked        { color: #c62828; }
.vh-unlocked      { color: #2e7d32; }

/* DETALHES TÉCNICOS */
.vehicle-tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vh-chip {
    background: #eef0f4;
    border-radius: 14px;
    padding: 5px 10px;
    font-size: 12px;
    color: #374151;
}

.vh-chip b {
    font-weight: 600;
    color: #111827;
}
/* ===============================
   TÍTULO DO VEÍCULO (PLACA)
   =============================== */
.vehicle-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

/* ===============================
   MODELO DO VEÍCULO
   =============================== */
.vehicle-model {
    font-size: 14px;
    font-weight: 400;
    color: #555;
    margin-left: 6px;
    white-space: nowrap;
}

/* ===============================
   MOBILE — ENCURTA MODELO
   =============================== */
@media (max-width: 576px) {

    .vehicle-title {
        font-size: 18px;
    }

    .vehicle-model {
        max-width: 140px;          /* controla o corte */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        vertical-align: bottom;
    }
}
.direction-arrow {
    color: #333;
    font-size: 14px;
    font-weight: bold;
    transform-origin: center;
}
/* =========================================================
   LEAFLET CONTROL LAYERS – FIX iOS + VISUAL ORIGINAL
   SOMENTE CSS – NÃO DEPENDE DE JS
   ========================================================= */

/* =========================
   CONTAINER PRINCIPAL
   ========================= */
.leaflet-control-layers.layers-manual {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* remove highlight azul do iOS */
.leaflet-control-layers.layers-manual,
.leaflet-control-layers.layers-manual * {
    -webkit-tap-highlight-color: transparent !important;
}

/* =========================
   BOTÃO AZUL (FECHADO)
   ========================= */
.leaflet-control-layers.layers-manual
> .leaflet-control-layers-toggle {
    width: 40px !important;
    height: 38px !important;
    display: block !important;

    background-color: #1940A3 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L1 7l11 5 9-4.09V17h2V7L12 2zm0 7.99L3.74 7 12 4.01 20.26 7 12 9.99zM1 11l11 5 9-4.09V20h2v-8l-11 5-11-5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 25px 25px !important;

    border-radius: 2px !important;
    box-shadow: 0 2px 2px rgba(0,0,0,.25) !important;
}

/* =========================
   PAINEL (ABERTO)
   ========================= */
.leaflet-control-layers.layers-manual
.leaflet-control-layers-list {
    background: #fff !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    margin-top: 6px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.25) !important;
}

/* =========================
   FECHADO (PADRÃO)
   ========================= */
.leaflet-control-layers.layers-manual:not(.layers-open)
.leaflet-control-layers-list {
    display: none !important;
}

/* =========================
   ABERTO
   ========================= */
.leaflet-control-layers.layers-manual.layers-open
.leaflet-control-layers-list {
    display: block !important;
}

/* 🔑 ESCONDE O BOTÃO AZUL QUANDO ABRE */
.leaflet-control-layers.layers-manual.layers-open
> .leaflet-control-layers-toggle {
    display: none !important;
}

/* =========================
   REMOVE BOTÃO DUPLICADO
   (o Leaflet coloca outro dentro do form)
   ========================= */
.leaflet-control-layers.layers-manual
.leaflet-control-layers-list
.leaflet-control-layers-toggle {
    display: none !important;
}

/* =========================
   AJUSTES DE TEXTO
   ========================= */
.leaflet-control-layers.layers-manual label {
    padding: 6px 8px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 24px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #28a745;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.maintenance-tab-clean {
    display: block;
    width: 100%;
}

.maintenance-tab-clean .panel-body {
    width: auto;
    overflow: visible;
}

.maintenance-tab-clean .maintenance-section {
    margin-bottom: 18px;
}

.maintenance-tab-clean .panel-heading {
    width: auto;
    max-width: 100%;
    display: block;
}

.maintenance-tab-clean .maintenance-form {
    margin: 0;
}

.maintenance-tab-clean label {
    display: block;
    margin-bottom: 6px;
    line-height: 1.4;
    white-space: normal;
}

.maintenance-tab-clean .form-group,
.maintenance-tab-clean .maintenance-field {
    margin-bottom: 0;
    min-width: 0;
}

.maintenance-tab-clean .form-control {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.maintenance-tab-clean .input-group,
.maintenance-tab-clean .maintenance-date-group {
    width: 100%;
    margin-bottom: 0;
}

.maintenance-tab-clean .maintenance-grid {
    display: grid;
    gap: 16px;
    align-items: end;
}

/* =========================
   RESUMO
   ========================= */
.maintenance-tab-clean .maintenance-summary-panel .panel-body {
    padding-top: 18px;
    padding-bottom: 18px;
}

.maintenance-tab-clean .maintenance-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
}

.maintenance-tab-clean .maintenance-summary-card {
    min-height: 120px;
    padding: 18px 16px;
    border: 1px solid #d9e1ec;
    border-radius: 10px;
    background: #f7f9fc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.maintenance-tab-clean .maintenance-summary-card--highlight {
    background: #eef4ff;
    border-color: #cfdcf6;
}

.maintenance-tab-clean .maintenance-summary-label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #6b7280;
}

.maintenance-tab-clean .maintenance-summary-value {
    display: block;
    margin-top: 10px;
    font-size: 20px;
    line-height: 1.2;
    color: #111827;
}

/* =========================
   FORMULÁRIO DE REGISTRO
   ========================= */
.maintenance-tab-clean .maintenance-entry-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px 18px;
    align-items: end;
}

.maintenance-tab-clean .maintenance-entry-model {
    grid-column: span 4;
}

.maintenance-tab-clean .maintenance-entry-description {
    grid-column: span 8;
}

.maintenance-tab-clean .maintenance-entry-date,
.maintenance-tab-clean .maintenance-entry-hodo,
.maintenance-tab-clean .maintenance-entry-cost {
    grid-column: span 4;
}

.maintenance-tab-clean .maintenance-followup-box {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid #d9e1ec;
    border-radius: 10px;
    background: #f7f9fc;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.maintenance-tab-clean .maintenance-followup-main {
    flex: 1 1 auto;
    min-width: 0;
}

.maintenance-tab-clean .maintenance-followup-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-weight: 600;
    color: #374151;
}

.maintenance-tab-clean .maintenance-followup-check input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.maintenance-tab-clean .maintenance-followup-help {
    margin-top: 8px;
    color: #6b7280;
    line-height: 1.5;
}

.maintenance-tab-clean .maintenance-followup-field {
    flex: 0 0 220px;
    width: 220px;
    max-width: 100%;
}

.maintenance-tab-clean .maintenance-followup-field label {
    margin-bottom: 6px;
}

.maintenance-tab-clean .maintenance-actions {
    margin-top: 18px;
    text-align: left;
}

.maintenance-tab-clean .maintenance-actions .btn {
    min-width: 220px;
}

.maintenance-tab-clean .maintenance-actions .btn + .btn {
    margin-left: 8px;
}

/* =========================
   HISTÓRICO
   ========================= */
.maintenance-tab-clean .maintenance-history-panel {
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
}

.maintenance-tab-clean .maintenance-history-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
}

.maintenance-tab-clean .maintenance-history-table-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
}

.maintenance-tab-clean .maintenance-table,
.maintenance-tab-clean table.maintenance-history-table,
.maintenance-tab-clean .maintenance-history-table-wrap > table.maintenance-table {
    width: 100% !important;
    min-width: 980px !important;
    margin-bottom: 0 !important;
    table-layout: auto;
}

.maintenance-tab-clean table.maintenance-history-table thead,
.maintenance-tab-clean table.maintenance-history-table tbody,
.maintenance-tab-clean table.maintenance-history-table tr {
    width: auto;
}

.maintenance-tab-clean table.maintenance-history-table th,
.maintenance-tab-clean table.maintenance-history-table td {
    white-space: nowrap;
    vertical-align: middle;
}

.maintenance-tab-clean .maintenance-col-date {
    width: 100px;
}

.maintenance-tab-clean .maintenance-col-description,
.maintenance-tab-clean table.maintenance-history-table td:nth-child(2) {
    min-width: 240px;
    white-space: normal;
}

.maintenance-tab-clean .maintenance-col-hodo {
    width: 130px;
}

.maintenance-tab-clean .maintenance-col-km {
    width: 90px;
}

.maintenance-tab-clean .maintenance-col-cost {
    width: 100px;
}

.maintenance-tab-clean .maintenance-col-status {
    width: 100px;
}

.maintenance-tab-clean .maintenance-col-actions {
    width: 95px;
}

.maintenance-tab-clean .maintenance-history-actions {
    white-space: nowrap;
    text-align: center;
}

.maintenance-tab-clean .maintenance-history-actions .btn + .btn,
.maintenance-tab-clean .maintenance-actions .btn + .btn {
    margin-left: 6px;
}

.maintenance-tab-clean .maintenance-alert-no-odometer {
    margin-top: 18px;
}

/* =========================
   RESPONSIVO
   ========================= */
@media (max-width: 1199px) {
    .maintenance-tab-clean .maintenance-entry-model {
        grid-column: span 5;
    }

    .maintenance-tab-clean .maintenance-entry-description {
        grid-column: span 7;
    }
}

@media (max-width: 991px) {
    .maintenance-tab-clean .maintenance-summary-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .maintenance-tab-clean .maintenance-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .maintenance-tab-clean .maintenance-entry-model,
    .maintenance-tab-clean .maintenance-entry-description,
    .maintenance-tab-clean .maintenance-entry-date,
    .maintenance-tab-clean .maintenance-entry-hodo,
    .maintenance-tab-clean .maintenance-entry-cost {
        grid-column: auto;
    }

    .maintenance-tab-clean .maintenance-followup-box {
        flex-direction: column;
        align-items: stretch;
    }

    .maintenance-tab-clean .maintenance-followup-field {
        width: 100%;
        flex-basis: auto;
    }

    .maintenance-tab-clean .maintenance-alert-no-odometer {
        margin-top: 18px;
    }
}


.financial-section + .financial-section {
    margin-top: 22px;
}

.financial-section-heading {
    min-height: 46px;
    margin-bottom: 9px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.financial-section-title {
    margin: 0;
    color: #223655;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.financial-section-title i {
    width: 19px;
    color: #2f6bd5;
    text-align: center;
    margin-right: 3px;
}

.financial-open-section .financial-section-title i {
    color: #e58a1f;
}

.financial-section-subtitle {
    margin: 3px 0 0 25px;
    color: #7a8799;
    font-size: 11px;
    line-height: 1.3;
}

.financial-section-count {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #fff2df;
    color: #a85f0d;
    border: 1px solid #f4d4a9;
    font-size: 11px;
    font-weight: 700;
}

.financial-history-count {
    background: #edf3fb;
    color: #315b91;
    border-color: #d8e4f2;
}

.financial-open-wrap {
    border-color: #dfe8f2;
    box-shadow: 0 4px 14px rgba(15, 34, 76, 0.06);
}

@media (max-width: 767px) {
    .maintenance-tab-clean .panel-heading {
        width: auto !important;
        max-width: 100% !important;
    }

    .maintenance-tab-clean .maintenance-summary-grid,
    .maintenance-tab-clean .maintenance-entry-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-tab-clean .maintenance-summary-card {
        min-height: auto;
    }

    .maintenance-tab-clean .maintenance-actions {
        text-align: left;
    }

    .maintenance-tab-clean .maintenance-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .maintenance-tab-clean .maintenance-actions .btn + .btn {
        margin-left: 0;
        margin-top: 6px;
    }

    .maintenance-tab-clean .maintenance-alert-no-odometer {
        margin-top: 18px;
    }

    /* histórico em cards compactos */
    .maintenance-tab-clean .maintenance-history-table-wrap {
        overflow-x: visible !important;
        overflow-y: visible !important;
        padding: 8px;
    }

    .maintenance-tab-clean .maintenance-table,
    .maintenance-tab-clean table.maintenance-history-table,
    .maintenance-tab-clean .maintenance-history-table-wrap > table.maintenance-table {
        min-width: 0 !important;
        width: 100% !important;
        table-layout: fixed;
        border: 0 !important;
        background: transparent;
    }

    .maintenance-tab-clean table.maintenance-history-table thead {
        display: none !important;
    }

    .maintenance-tab-clean table.maintenance-history-table,
    .maintenance-tab-clean table.maintenance-history-table tbody,
    .maintenance-tab-clean table.maintenance-history-table tr,
    .maintenance-tab-clean table.maintenance-history-table td {
        width: 100% !important;
    }

    .maintenance-tab-clean table.maintenance-history-table tbody {
        display: block;
        padding: 0;
    }

    .maintenance-tab-clean table.maintenance-history-table tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "desc desc"
            "date hodo"
            "interval cost"
            "status actions";
        gap: 0;
        margin-bottom: 10px;
        border: 1px solid #d9e1ec;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }

    .maintenance-tab-clean table.maintenance-history-table td {
        display: block;
        padding: 9px 10px !important;
        border: 0 !important;
        border-right: 1px solid #edf2f7 !important;
        border-bottom: 1px solid #edf2f7 !important;
        white-space: normal !important;
        text-align: left !important;
        min-height: 54px;
        background: #fff;
    }

    .maintenance-tab-clean table.maintenance-history-table td:before {
        display: block;
        margin-bottom: 3px;
        font-size: 10px;
        line-height: 1.2;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .35px;
        color: #6b7280;
    }

    /* ordem visual */
    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(1) {
        grid-area: date;
    }

    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(2) {
        grid-area: desc;
    }

    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(3) {
        grid-area: hodo;
    }

    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(4) {
        grid-area: interval;
    }

    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(5) {
        grid-area: cost;
    }

    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(6) {
        grid-area: status;
    }

    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(7) {
        grid-area: actions;
    }

    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(1):before {
        content: "Data";
    }

    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(2):before {
        content: "Descrição";
    }

    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(3):before {
        content: "Hodômetro";
    }

    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(4):before {
        content: "Intervalo";
    }

    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(5):before {
        content: "Valor pago";
    }

    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(6):before {
        content: "Situação";
    }

    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(7):before {
        content: "Ações";
    }

    /* descrição destaque */
    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(2) {
        min-height: 0;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        border-right: 0 !important;
    }

    /* remove bordas sobrando por posição */
    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(2),
    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(5),
    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(7) {
        border-right: 0 !important;
    }

    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(6),
    .maintenance-tab-clean table.maintenance-history-table tr td:nth-child(7) {
        border-bottom: 0 !important;
    }

    .maintenance-tab-clean table.maintenance-history-table td[colspan] {
        display: block !important;
        grid-column: 1 / -1;
        text-align: center !important;
        padding: 18px 12px !important;
        border: 0 !important;
        min-height: auto;
    }

    .maintenance-tab-clean table.maintenance-history-table td[colspan]:before {
        content: none !important;
    }

    .maintenance-tab-clean .maintenance-col-description,
    .maintenance-tab-clean table.maintenance-history-table td:nth-child(2) {
        min-width: 0 !important;
    }

    .maintenance-tab-clean .maintenance-history-actions {
        text-align: right;
        white-space: nowrap;
    }

    .maintenance-tab-clean .maintenance-history-actions .btn {
        min-width: 34px;
        width: 34px;
        height: 30px;
        padding: 4px 0;
        line-height: 20px;
        border-radius: 4px;
    }

    .maintenance-tab-clean .maintenance-history-actions .btn + .btn {
        margin-left: 6px;
        margin-top: 0;
    }

    .maintenance-tab-clean table.maintenance-history-table td .label {
        display: inline-block;
        margin-top: 1px;
        font-size: 10px;
        padding: 4px 6px;
    }
}
/* ========================================================================== */
/* Modal de Faturas - layout moderno / responsivo                            */
/* ========================================================================== */
.client-financial-modal .modal-dialog {
    width: 920px;
    max-width: calc(100% - 32px);
    margin: 30px auto;
}

.client-financial-modal .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 34, 76, 0.28);
    background: #f7f9fc;
}

.financial-modal-shell {
    background: #f7f9fc;
    border-radius: 16px;
    overflow: hidden;
}

.financial-modal-header {
    min-height: 82px;
    padding: 18px 22px;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    color: #fff;
    background: linear-gradient(135deg, #1940a3 0%, #2f6bd5 100%);
    position: relative;
    overflow: hidden;
}

.financial-modal-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.financial-modal-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    font-size: 18px;
}

.financial-modal-header .modal-title {
    margin: 0;
    color: #fff;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 700;
}

.financial-modal-subtitle {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1.3;
}

.financial-modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    opacity: 1;
    text-shadow: none;
    font-size: 24px;
    line-height: 34px;
    font-weight: 400;
}

.financial-modal-close:hover,
.financial-modal-close:focus {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    opacity: 1;
    outline: 0;
}

.financial-modal-body {
    padding: 20px;
    background: #f7f9fc;
}

.financial-table-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(15, 34, 76, 0.04);
}

.financial-invoice-table {
    width: 100%;
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.financial-invoice-table > thead > tr > th {
    border: 0;
    border-bottom: 1px solid #dfe6ef;
    padding: 13px 15px;
    background: #edf3fb;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

.financial-invoice-table > tbody > tr > td {
    border: 0;
    border-bottom: 1px solid #edf0f4;
    padding: 12px 15px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    vertical-align: middle;
    transition: background-color .15s ease;
}

.financial-invoice-table > tbody > tr:last-child > td {
    border-bottom: 0;
}

.financial-invoice-table > tbody > tr:hover > td {
    background: #fafcff;
}

.financial-invoice-table .financial-status-column,
.financial-invoice-table .financial-status-cell {
    width: 120px;
    text-align: center;
}

.financial-invoice-table .financial-value-column,
.financial-invoice-table .financial-value-cell {
    width: 130px;
    text-align: right;
}

.financial-invoice-table .financial-actions-column,
.financial-invoice-table .financial-actions-cell {
    width: 320px;
}

.financial-date-cell .financial-cell-value {
    color: #253858;
    font-weight: 600;
    white-space: nowrap;
}

.financial-amount {
    display: inline-block;
    color: #163872;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.financial-status-badge {
    min-width: 62px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    box-shadow: none;
}

.financial-action-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.financial-action-btn {
    height: 34px;
    min-height: 34px;
    padding: 6px 13px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: none;
    transition: all .15s ease;
}

.financial-invoice-btn {
    flex: 1 1 auto;
    color: #334155;
    background: #fff;
    border-color: #cfd8e3;
}

.financial-invoice-btn:hover,
.financial-invoice-btn:focus {
    color: #1940a3;
    border-color: #9fb4d7;
    background: #f8fbff;
}

.financial-fiscal-btn {
    min-width: 112px;
    background: #2f75b5;
    border-color: #286ca8;
}

.financial-fiscal-btn:hover,
.financial-fiscal-btn:focus {
    background: #25649c;
    border-color: #20598a;
}

.financial-pay-btn {
    flex: 1 1 auto;
    background: #58b957;
    border-color: #4daa4c;
}

.financial-pay-btn:hover,
.financial-pay-btn:focus {
    background: #48a747;
    border-color: #429a41;
}

.financial-row-open > td:first-child {
    box-shadow: inset 3px 0 0 #45b8df;
}

.financial-row-overdue > td:first-child {
    box-shadow: inset 3px 0 0 #e67e22;
}

.financial-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #e7ebf0;
    background: #fff;
    text-align: left;
}

.financial-close-footer-btn {
    min-width: 92px;
    height: 36px;
    border-radius: 7px;
    color: #334155;
    font-weight: 600;
}

.financial-loading {
    padding: 52px 10px;
    color: #64748b;
}

.financial-loading-icon {
    display: block;
    font-size: 34px;
    color: #2f6bd5;
}

.financial-loading-text {
    margin-top: 12px;
    font-size: 13px;
}

.financial-empty-state {
    min-height: 180px;
    padding: 34px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
}

.financial-empty-state strong {
    color: #334155;
    font-size: 14px;
}

.financial-empty-state > span:last-child {
    font-size: 12px;
}

.financial-empty-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 5px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf3fb;
    color: #2f6bd5;
    font-size: 18px;
}

.financial-mobile-label {
    display: none;
}

@media (max-width: 767px) {
    .client-financial-modal .modal-dialog {
        width: auto;
        max-width: none;
        margin: 10px;
    }

    .client-financial-modal .modal-content {
        border-radius: 14px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }

    .financial-modal-header {
        min-height: 74px;
        padding: 15px 62px 15px 16px;
    }

    .financial-modal-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 10px;
    }

    .financial-modal-header .modal-title {
        font-size: 19px;
    }

    .financial-modal-subtitle {
        font-size: 11px;
    }

    .financial-modal-close {
        top: 16px;
        right: 14px;
        width: 36px;
        height: 36px;
        line-height: 32px;
    }

    .financial-modal-body {
        padding: 12px;
    }

    .financial-section + .financial-section {
        margin-top: 18px;
    }

    .financial-section-heading {
        min-height: 40px;
        margin-bottom: 7px;
        padding: 0 2px;
    }

    .financial-section-title {
        font-size: 13px;
    }

    .financial-section-subtitle {
        margin-left: 24px;
        font-size: 10px;
    }

    .financial-section-count {
        min-width: 26px;
        height: 26px;
        font-size: 10px;
    }

    .financial-table-wrap {
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }

    .financial-invoice-table,
    .financial-invoice-table > tbody,
    .financial-invoice-table > tbody > tr,
    .financial-invoice-table > tbody > tr > td {
        display: block;
        width: 100% !important;
    }

    .financial-invoice-table > thead {
        display: none;
    }

    .financial-invoice-table > tbody > tr {
        margin-bottom: 10px;
        border: 1px solid #e1e7ef;
        border-radius: 11px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 2px 8px rgba(15, 34, 76, 0.05);
    }

    .financial-invoice-table > tbody > tr:last-child {
        margin-bottom: 0;
    }

    .financial-invoice-table > tbody > tr > td {
        min-height: 39px;
        padding: 9px 12px;
        border-bottom: 1px solid #eef2f6;
        text-align: right !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .financial-invoice-table > tbody > tr > td:last-child {
        border-bottom: 0;
    }

    .financial-invoice-table > tbody > tr:hover > td {
        background: #fff;
    }

    .financial-row-open > td:first-child,
    .financial-row-overdue > td:first-child {
        box-shadow: none;
    }

    .financial-mobile-label {
        display: inline-block;
        color: #7a8799;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .35px;
        text-align: left;
    }

    .financial-status-badge {
        margin-left: auto;
    }

    .financial-actions-cell {
        display: block !important;
        padding: 11px 12px !important;
    }

    .financial-actions-cell > .financial-mobile-label {
        display: none;
    }

    .financial-action-group {
        justify-content: stretch;
        gap: 7px;
    }

    .financial-action-btn {
        flex: 1 1 0;
        min-width: 0;
        height: 38px;
        padding: 7px 9px;
    }

    .financial-fiscal-btn {
        min-width: 0;
    }

    .financial-modal-footer {
        padding: 12px;
    }

    .financial-close-footer-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .financial-action-group {
        flex-direction: column;
    }

    .financial-action-btn {
        width: 100%;
        flex-basis: auto;
    }
}


/* ========================================================================== */
/* Faturas: cabecalho canonico igual aos demais modais                       */
/* ========================================================================== */
.client-financial-modal .modal-content {
    overflow: hidden;
    border-radius: 15px;
}

.client-financial-modal .financial-modal-shell {
    overflow: hidden;
    border-radius: 15px;
}

.client-financial-modal .modal-header.client-standard-modal-header {
    min-height: 66px;
    padding: 15px 58px 15px 20px;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #173b98 0%, #2458bd 58%, #2f70db 100%);
}

.client-financial-modal .modal-header.client-standard-modal-header .client-modal-heading {
    gap: 12px;
}

.client-financial-modal .modal-header.client-standard-modal-header .client-modal-heading-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    font-size: 18px;
}

.client-financial-modal .modal-header.client-standard-modal-header .modal-title {
    font-size: 19px;
    line-height: 1.3;
}

.client-financial-modal .modal-header.client-standard-modal-header .close {
    top: 50%;
    right: 16px;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border-radius: 9px;
    font-size: 25px;
    line-height: 1;
}
/* Identidade visual carregada de partner_config pela API. */
.navbar-ct-blue,
.client-standard-modal-header,
#menu-xs,
#menu-xs-toggle,
.logo_print,
.leaflet-control-layers.layers-manual > .leaflet-control-layers-toggle,
.btn-primary {
    background-color: var(--partner-primary-color, #1940A3) !important;
}

.btn-primary {
    border-color: var(--partner-primary-color, #1940A3) !important;
}

.slider::-webkit-slider-thumb {
    background: var(--partner-primary-color, #1940A3);
}

.slider::-moz-range-thumb {
    background: var(--partner-primary-color, #1940A3);
}

/* partner-logo-bounds-v1 */
.navbar-brand.navbar-brand-logo {
    display: flex !important;
    align-items: center;
    width: 280px;
    max-width: 280px;
    height: 86px;
    padding: 7px 12px !important;
    overflow: hidden;
}

.navbar-brand.navbar-brand-logo .brand {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    float: none !important;
    width: 100% !important;
    max-width: 256px;
    height: 72px;
    margin: 0 !important;
    line-height: 1 !important;
    overflow: hidden;
}

.navbar-brand.navbar-brand-logo .brand img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}

#menu-xs > ul > li:first-child p {
    margin: 0;
    padding: 8px 12px;
}

#menu-xs > ul > li:first-child img {
    display: block;
    width: auto;
    height: auto;
    max-width: 210px;
    max-height: 60px;
    object-fit: contain;
}

@media (min-width: 769px) and (max-width: 1199px) {
    .navbar-brand.navbar-brand-logo {
        width: 220px;
        max-width: 220px;
    }

    .navbar-brand.navbar-brand-logo .brand {
        max-width: 196px;
    }
}

/* partner-navbar-height-v2 */
@media (min-width: 768px) {
    .navbar .navbar-brand.navbar-brand-logo {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 15px !important;
        height: 86px !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box;
    }

    .navbar-brand.navbar-brand-logo .brand {
        margin: 0 !important;
        width: 220px !important;
        height: 86px !important;
        display: flex !important;
        align-items: center !important;
    }

    .navbar-brand.navbar-brand-logo .brand img {
        width: auto !important;
        height: auto !important;
        max-width: 210px !important;
        max-height: 52px !important;
        object-fit: contain !important;
    }
}
.geofence-panel{padding:15px 5px}
.geofence-map{height:520px;border:1px solid #d5dbe3;border-radius:8px;background:#eef1f4}
.geofence-list{max-height:180px;overflow:auto;margin-bottom:15px}
.geofence-list .list-group-item{width:100%;text-align:left}
.geofence-color{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:6px}
.geofence-toolbar{margin-bottom:8px}
.geofence-actions{margin-top:12px}
.geofence-days{display:flex;margin-bottom:8px}
.geofence-days .btn{flex:1;padding:5px 2px}
.geofence-days input{display:none}

/* Editor de cercas em área de trabalho responsiva. */
.client-geofence-modal{padding:0!important}
.client-geofence-modal .modal-dialog{
    width:calc(100vw - 24px);
    max-width:none;
    height:calc(100vh - 24px);
    margin:12px auto;
}
.client-geofence-modal .modal-content{
    display:flex;
    flex-direction:column;
    height:100%;
    max-height:none;
    overflow:hidden;
}
.client-geofence-modal .modal-header,
.client-geofence-modal .modal-footer{flex:0 0 auto}
.client-geofence-fleet-body{
    flex:1 1 auto;
    min-height:0;
    padding:14px 18px;
    overflow:hidden;
}
.client-geofence-editor-host,
.client-geofence-editor-host>.ng-scope{
    width:100%;
    height:100%;
    min-height:0;
}
.client-geofence-modal .geofence-workspace{
    display:flex;
    flex-wrap:nowrap;
    width:auto;
    height:100%;
    min-height:0;
    margin:0 -9px;
}
.client-geofence-modal .geofence-sidebar,
.client-geofence-modal .geofence-map-column{
    position:relative;
    float:none;
    min-height:0;
    padding-right:9px;
    padding-left:9px;
}
.client-geofence-modal .geofence-sidebar{
    flex:0 0 380px;
    width:380px;
    max-width:380px;
    overflow-x:hidden;
    overflow-y:auto;
    scrollbar-gutter:stable;
}
.client-geofence-modal .geofence-map-column{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:auto;
    max-width:none;
}
.client-geofence-modal .geofence-toolbar,
.client-geofence-modal .geofence-actions{flex:0 0 auto}
.client-geofence-modal .geofence-toolbar{
    display:flex;
    align-items:center;
    min-height:32px;
    gap:7px;
}
.client-geofence-modal .geofence-actions{
    display:flex;
    justify-content:flex-end;
    gap:7px;
}
.client-geofence-modal .geofence-map{
    flex:1 1 auto;
    width:100%;
    height:auto;
    min-height:420px;
    margin:0;
}
.client-geofence-header{background:#1940A3;color:#fff}
.geofence-vehicle-picker{margin:14px 0;padding:10px;border:1px solid #d9e0ea;border-radius:7px;background:#f8faff}
.geofence-picker-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.geofence-picker-title label{margin:0}
.geofence-picker-actions{display:flex;justify-content:space-between}
.geofence-vehicle-options{max-height:155px;overflow:auto;background:#fff;border:1px solid #e0e5ec;border-radius:5px}
.geofence-vehicle-options label{display:flex;align-items:center;gap:7px;margin:0;padding:7px 8px;border-bottom:1px solid #eef1f5;font-weight:400;cursor:pointer}
.geofence-vehicle-options label:last-child{border-bottom:0}
.geofence-vehicle-options label:hover{background:#f2f6ff}
.geofence-vehicle-options label.is-current{background:#edf4ff}
.geofence-vehicle-options label span{flex:1}
.geofence-vehicle-options label small{color:#1940A3;font-weight:600}
.geofence-vehicle-options label small.geofence-no-position{color:#a46b00}
.geofence-list .list-group-item small{max-width:48%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media (min-width:900px) and (max-width:1200px){
    .client-geofence-modal .geofence-sidebar{flex-basis:340px;width:340px;max-width:340px}
}

@media(max-width:899px){
    .client-geofence-modal .modal-dialog{width:calc(100vw - 16px);height:calc(100vh - 16px);margin:8px auto}
    .client-geofence-fleet-body{overflow-y:auto}
    .client-geofence-editor-host,
    .client-geofence-editor-host>.ng-scope{height:auto;min-height:100%}
    .client-geofence-modal .geofence-workspace{display:block;height:auto;margin:0 -8px}
    .client-geofence-modal .geofence-sidebar{width:100%;max-width:none;height:auto;overflow:visible;padding-right:8px;padding-left:8px}
    .client-geofence-modal .geofence-map-column{width:100%;height:max(480px,58vh);margin-top:12px;padding-right:8px;padding-left:8px}
    .client-geofence-modal .geofence-map{height:auto;min-height:400px}
    .geofence-list{max-height:140px}
}

@media(max-width:767px){
    .client-geofence-modal .modal-dialog{width:calc(100vw - 10px);height:calc(100vh - 10px);margin:5px auto}
    .client-geofence-fleet-body{padding:10px}
    .client-geofence-modal .modal-footer{padding:8px 10px}
    .client-geofence-modal .geofence-map-column{height:max(430px,55vh)}
    .client-geofence-modal .geofence-map{min-height:350px}
    .client-geofence-modal .geofence-actions{flex-wrap:wrap}
    .geofence-vehicle-options{max-height:130px}
}

/* Controles do mapa principal: mesma medida, alinhamento e espaçamento. */
#tracker-map .leaflet-top.leaflet-right{top:10px;right:10px}
#tracker-map .leaflet-top.leaflet-right>.leaflet-control{margin-top:7px;margin-right:0}
#tracker-map .leaflet-control-fullscreen a,
#tracker-map .leaflet-control-layers.layers-manual>.leaflet-control-layers-toggle,
#tracker-map .client-map-action-control a,
#tracker-map .leaflet-control-zoom a{box-sizing:border-box;width:40px!important;height:38px!important;line-height:38px!important;border-radius:4px!important;text-align:center}
#tracker-map .client-map-action-control{border:0;background:transparent;box-shadow:none}
#tracker-map .client-map-action-control a{border:0;background:var(--partner-primary-color,#1940A3);color:#fff;font-size:17px;text-decoration:none;box-shadow:0 1px 5px rgba(0,0,0,.35)}
#tracker-map .client-map-action-control a:hover,
#tracker-map .client-map-action-control a:focus{background:#123482;color:#fff;outline:none}
#tracker-map .client-map-action-control a.is-active{background:#2cab58}
#tracker-map .client-map-action-control a.is-loading{pointer-events:none;opacity:.7}
#tracker-map .client-map-action-control a.is-loading i{animation:clientMapControlSpin .8s linear infinite}
@keyframes clientMapControlSpin{to{transform:rotate(360deg)}}
#tracker-map .leaflet-bottom.leaflet-right{right:10px;bottom:10px}
#tracker-map .leaflet-bottom.leaflet-right>.leaflet-control{margin-right:0;margin-bottom:7px}
#tracker-map .leaflet-control-zoom a:first-child{border-radius:4px 4px 0 0!important}
#tracker-map .leaflet-control-zoom a:last-child{border-radius:0 0 4px 4px!important}

/* Popup dos veículos e cercas: permite duas linhas sem sobreposição. */
#geofence-v2-map .leaflet-popup-content{
    margin:9px 30px 9px 12px!important;
    color:#263a55;
    font-size:12px;
    font-weight:500;
    line-height:1.35!important;
    white-space:normal;
    overflow-wrap:anywhere;
}
#geofence-v2-map .leaflet-popup-content-wrapper{border-radius:8px}
#geofence-v2-map .leaflet-popup-close-button{top:3px!important;right:3px!important}
.client-geofence-name-popup{width:auto!important;max-width:220px!important}
.client-geofence-name-popup .leaflet-popup-content-wrapper{box-sizing:border-box!important;width:auto!important;min-width:80px!important;max-width:220px!important;overflow:hidden!important;border-radius:10px!important}
.client-geofence-name-popup .leaflet-popup-content{box-sizing:border-box!important;width:auto!important;min-width:60px!important;max-width:190px!important;margin:8px 30px 8px 10px!important;padding:0!important;overflow:visible!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:18px!important}

/* Acesso administrativo temporario: invisivel para sessoes comuns. */
.admin-impersonation-banner{position:fixed;top:0;left:0;right:0;z-index:10050;height:42px;min-height:42px;box-sizing:border-box;padding:7px 16px;display:flex;align-items:center;justify-content:center;gap:18px;color:#fff;background:#8a3ffc;box-shadow:0 2px 8px rgba(24,20,45,.28);font-size:13px}
.admin-impersonation-banner>span,.account-financial-banner>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-impersonation-banner button{border:1px solid rgba(255,255,255,.72);border-radius:5px;padding:5px 10px;color:#fff;background:rgba(255,255,255,.14);font-weight:600}
.admin-impersonation-banner button:hover,.admin-impersonation-banner button:focus{background:#fff;color:#6530bd}
.account-financial-banner{position:fixed;top:0;left:0;right:0;z-index:10049;height:42px;min-height:42px;box-sizing:border-box;padding:7px 16px;display:flex;align-items:center;justify-content:center;gap:18px;color:#fff;background:#c52f35;box-shadow:0 2px 8px rgba(83,12,18,.3);font-size:13px}
.account-financial-banner button{border:1px solid rgba(255,255,255,.8);border-radius:5px;padding:5px 10px;color:#fff;background:rgba(255,255,255,.14);font-weight:600}
.account-financial-banner button:hover,.account-financial-banner button:focus{background:#fff;color:#a51f25}
.admin-impersonating .account-financial-banner{top:42px}
.admin-impersonating .navbar-fixed-top,.account-financial-overdue .navbar-fixed-top{top:42px}
.admin-impersonating #menu-xs,.account-financial-overdue #menu-xs{top:42px}
.admin-impersonating #menu-xs-toggle,.account-financial-overdue #menu-xs-toggle{top:52px}
.account-double-banner .navbar-fixed-top{top:84px}
.account-double-banner #menu-xs{top:84px}
.account-double-banner #menu-xs-toggle{top:94px}
.admin-impersonation-header{color:#fff;background:linear-gradient(135deg,#1940a3,#326ed8)}
.admin-impersonation-header .close{color:#fff;opacity:.9}
.admin-impersonation-header p{margin:5px 0 0;color:rgba(255,255,255,.86);font-size:12px}
.admin-impersonation-body{padding:20px}
.admin-impersonation-search{margin-bottom:12px}
.admin-impersonation-notice{margin-bottom:15px;padding:9px 12px;border:1px solid #d9e5ff;border-radius:6px;color:#315286;background:#f4f7ff;font-size:12px}
.admin-impersonation-empty{padding:28px;text-align:center;color:#6e7785}
.admin-impersonation-table{margin-bottom:0}
.admin-impersonation-table td{vertical-align:middle!important}
.admin-impersonation-table td small{display:block;max-width:290px;margin-top:3px;color:#6d7682;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.client-geofence-alert-kind{display:inline-flex!important;align-items:center;gap:5px;width:max-content;margin:0 0 3px;padding:3px 8px;border-radius:999px;font-size:11px!important;font-weight:700;background:#edf4ff;color:#1940a3}
.client-geofence-alert-entry{background:#e9f8ef;color:#168447}
.client-geofence-alert-exit{background:#fff3e6;color:#b35c00}

@media(max-width:767px){
  .admin-impersonation-banner{height:54px;min-height:54px;padding:7px 9px;gap:8px;font-size:11px;justify-content:space-between}
  .admin-impersonation-banner button{padding:5px 7px;font-size:11px}
  .account-financial-banner{height:54px;min-height:54px;padding:7px 9px;gap:8px;font-size:11px;justify-content:space-between}
  .account-financial-banner button{padding:5px 7px;font-size:11px;white-space:nowrap}
  .admin-impersonating .account-financial-banner{top:54px}
  .admin-impersonating .navbar-fixed-top,.account-financial-overdue .navbar-fixed-top{top:54px}
  .admin-impersonating #menu-xs,.account-financial-overdue #menu-xs{top:54px}
  .admin-impersonating #menu-xs-toggle,.account-financial-overdue #menu-xs-toggle{top:64px}
  .account-double-banner .navbar-fixed-top{top:108px}
  .account-double-banner #menu-xs{top:108px}
  .account-double-banner #menu-xs-toggle{top:118px}
  .admin-impersonation-table thead{display:none}
  .admin-impersonation-table tr{display:block;margin-bottom:10px;border:1px solid #e0e6ef;border-radius:7px}
  .admin-impersonation-table td{display:block;border:0!important;padding:7px 10px!important}
  .admin-impersonation-table td.text-right{text-align:left}
}


.client-password-field{position:relative}.client-password-field .form-control{padding-right:44px}.client-password-field .client-password-toggle-btn{position:absolute;top:0;right:0;bottom:0;width:42px;height:100%;margin:0;padding:0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;color:#315f9e;z-index:5;display:flex;align-items:center;justify-content:center;cursor:pointer}.client-password-field .client-password-toggle-btn:hover,.client-password-field .client-password-toggle-btn:focus,.client-password-field .client-password-toggle-btn:active{border:0!important;background:transparent!important;box-shadow:none!important;color:#173f78;outline:0}.client-password-field .client-password-toggle-btn .fa{font-size:17px;line-height:1}.client-password-field .form-control:focus~.client-password-toggle-btn{color:#1f5da8}
