/* Painel lateral de veículos do mapa do cliente. */

/* Navegação compacta V1.9.27 */
.navbar .client-account-dropdown-menu {
  min-width: 235px;
  margin-top: 0;
  padding: 7px;
  border: 1px solid rgba(25, 64, 163, .15);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(12, 31, 65, .24);
}

.navbar .client-account-dropdown-menu > li > a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 7px;
  color: #263d5b;
  text-align: left;
  white-space: nowrap;
}

.navbar .client-account-dropdown-menu > li > a:hover,
.navbar .client-account-dropdown-menu > li > a:focus {
  background: #edf4ff;
  color: #1940a3;
}

.navbar .navbar-nav .client-account-dropdown-menu [class^="pe"] {
  width: 23px;
  flex: 0 0 23px;
  color: #2765c7;
  font-size: 20px;
  text-align: center;
}

.navbar .client-account-dropdown-menu > li > a > span {
  font-size: 13px;
  font-weight: 600;
}

.navbar .client-account-dropdown-menu .divider {
  margin: 5px 3px;
}

.navbar .client-account-dropdown-menu > li > a.client-account-logout,
.navbar .client-account-dropdown-menu > li > a.client-account-logout [class^="pe"] {
  color: #c53b36;
}

.client-account-caret {
  margin-left: 3px;
  font-size: 11px;
}

#menu-xs ul.client-account-mobile-list {
  position: static;
  width: auto;
  height: auto;
  margin: -5px 10px 10px 18px;
  padding: 5px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  background: rgba(0, 0, 0, .12);
}

#menu-xs ul.client-account-mobile-list li a {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
}

#menu-xs ul.client-account-mobile-list li a:hover,
#menu-xs ul.client-account-mobile-list li a:focus {
  background: rgba(255, 255, 255, .12);
  text-decoration: none;
}

#menu-xs .client-account-mobile-toggle .fa-angle-down {
  float: right;
  margin: 3px 15px 0 18px;
  transition: transform .18s ease;
}

#menu-xs .client-account-mobile-toggle[aria-expanded="true"] .fa-angle-down {
  transform: rotate(180deg);
}

#menu-xs .client-account-mobile-list .client-account-logout {
  color: #ffd4d1;
}
#client-vehicle-sidebar {
  position: absolute;
  z-index: 900;
  top: 98px;
  bottom: 12px;
  left: 12px;
  width: 356px;
  max-width: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(17, 42, 89, .12);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(13, 34, 70, .25);
  color: #1f3047;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  transition: transform .24s ease, opacity .2s ease;
}

/* Controle de combustível V1.9.26 */
.client-fuel-modal .modal-dialog {
    width: min(1180px, calc(100% - 30px));
}
.client-fuel-modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(15, 39, 79, .28);
}
.client-fuel-header {
    padding: 18px 24px;
    color: #fff;
    border: 0;
    background: linear-gradient(120deg, #12459d, #2768d3);
}
.client-fuel-header .close { color: #fff; opacity: .85; text-shadow: none; }
.client-fuel-header h3 { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.client-fuel-header p { margin: 0; color: rgba(255,255,255,.88); font-size: 13px; }
.client-fuel-body { padding: 18px 22px; background: #f4f7fc; max-height: calc(100vh - 165px); overflow-y: auto; }
.client-fuel-toolbar { display: flex; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.client-fuel-toolbar .form-group { width: min(520px, 100%); margin: 0; }
.client-fuel-single-vehicle { min-width: 260px; padding: 8px 12px; color: #2f4a6a; background: #fff; border: 1px solid #dce5f2; border-radius: 8px; }
.client-fuel-single-vehicle span { display: block; color: #71829a; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.client-fuel-single-vehicle strong { margin-right: 7px; color: #17385f; font-size: 13px; }
.client-fuel-single-vehicle small { color: #71829a; font-size: 11px; }
.client-fuel-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.client-fuel-info { padding: 11px 13px; margin-bottom: 14px; color: #31577c; background: #eaf5ff; border: 1px solid #c5e2fa; border-radius: 9px; font-size: 12px; }
.client-fuel-info i { margin-right: 5px; color: #1875bd; }
.client-fuel-loading { padding: 50px 0; font-size: 14px; }
.client-fuel-periods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.client-fuel-periods article { min-width: 0; padding: 13px 14px; background: #fff; border: 1px solid #dce5f2; border-radius: 10px; box-shadow: 0 2px 7px rgba(30, 67, 117, .05); }
.client-fuel-periods span { display: block; color: #657895; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.client-fuel-periods strong { display: block; margin-top: 5px; color: #14355f; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-fuel-entry-form,
.client-fuel-config,
.client-fuel-panel { padding: 15px; margin-bottom: 14px; background: #fff; border: 1px solid #dce5f2; border-radius: 11px; }
.client-fuel-entry-form { border-top: 4px solid #2d72d2; }
.client-fuel-config { border-top: 4px solid #f0ad4e; }
.client-fuel-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.client-fuel-section-title strong { display: block; color: #17385f; font-size: 15px; }
.client-fuel-section-title small { display: block; margin-top: 2px; color: #71829a; font-size: 11px; font-weight: 400; }
.client-fuel-entry-form label,
.client-fuel-config label { color: #36516f; font-size: 12px; }
.client-fuel-entry-form sup { color: #d9534f; }
.client-fuel-entry-form .form-group small { display: block; margin-top: 4px; color: #7c8da4; font-size: 10px; }
.client-fuel-field-error { display: block; margin-top: 4px; color: #c9362d; font-size: 11px; font-weight: 600; }
.client-fuel-readonly { height: 34px; padding: 7px 10px; color: #234467; background: #f3f6fa; border: 1px solid #d9e2ee; border-radius: 4px; font-weight: 700; }
.client-fuel-check { display: flex; gap: 7px; align-items: center; min-height: 34px; margin: 0; font-weight: 500; }
.client-fuel-check input { margin: 0; }
.client-fuel-odometer-box { padding: 11px 13px; margin: 0 0 14px; background: #f0f9f7; border: 1px solid #c4eadf; border-radius: 8px; }
.client-fuel-odometer-box .form-group { max-width: 360px; margin: 9px 0 0; }
.client-fuel-odometer-box small { display: block; margin: 3px 0 0 22px; color: #52796f; }
.client-fuel-form-actions { text-align: right; }
.client-fuel-insights { display: flex; }
.client-fuel-insights > div { display: flex; flex-direction: column; }
.client-fuel-insights .client-fuel-panel { flex: 1; }
.client-fuel-summary-list { margin: 0; }
.client-fuel-summary-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #edf1f6; }
.client-fuel-summary-list > div:last-child { border-bottom: 0; }
.client-fuel-summary-list dt { color: #647994; font-size: 12px; font-weight: 500; }
.client-fuel-summary-list dd { margin: 0; color: #17385f; font-size: 13px; font-weight: 700; text-align: right; }
.client-fuel-consumption-ok { padding: 11px 12px; margin-bottom: 8px; color: #147757; background: #eaf9f3; border: 1px solid #bcebd8; border-radius: 8px; }
.client-fuel-consumption-ok strong { display: block; font-size: 22px; }
.client-fuel-consumption-ok span { display: block; font-size: 11px; }
.client-fuel-empty-metric { padding: 22px 12px; color: #75869e; text-align: center; }
.client-fuel-empty-metric i { display: block; margin-bottom: 7px; color: #7da2cf; font-size: 25px; }
.client-fuel-empty-metric strong { display: block; color: #425c7c; }
.client-fuel-empty-metric span { display: block; margin-top: 3px; font-size: 11px; }
.client-fuel-chart-row { display: grid; grid-template-columns: 55px minmax(100px, 1fr) 105px; align-items: center; gap: 9px; margin: 7px 0; }
.client-fuel-chart-row > span { color: #657895; font-size: 11px; font-weight: 600; }
.client-fuel-chart-row > div { height: 9px; overflow: hidden; background: #edf2f8; border-radius: 10px; }
.client-fuel-chart-row > div i { display: block; min-width: 2px; height: 100%; background: linear-gradient(90deg, #2d72d2, #20a981); border-radius: 10px; }
.client-fuel-chart-row > strong { color: #264969; font-size: 11px; text-align: right; }
.client-fuel-table { margin: 0; font-size: 12px; }
.client-fuel-table thead th { color: #526984; background: #f1f5fa; border-bottom: 1px solid #d9e2ee; font-size: 10px; text-transform: uppercase; }
.client-fuel-table td { vertical-align: middle !important; color: #314b69; }
.client-fuel-table td small { display: block; margin-top: 2px; color: #7c8da4; font-size: 10px; }
.client-fuel-row-actions { min-width: 70px; white-space: nowrap; text-align: right; }
.client-fuel-row-actions .btn + .btn { margin-left: 4px; }
.client-fuel-pagination { display: flex; align-items: center; gap: 7px; color: #667b96; font-size: 11px; }

@media (max-width: 991px) {
    .client-fuel-periods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .client-fuel-periods article:last-child { grid-column: span 2; }
}
@media (max-width: 767px) {
    .client-fuel-modal .modal-dialog { width: calc(100% - 12px); margin: 6px; }
    .client-fuel-body { padding: 12px; max-height: calc(100vh - 135px); }
    .client-fuel-header { padding: 14px 16px; }
    .client-fuel-header h3 { font-size: 18px; }
    .client-fuel-toolbar { display: block; }
    .client-fuel-toolbar .form-group { width: 100%; }
    .client-fuel-toolbar-actions { margin-top: 9px; justify-content: stretch; }
    .client-fuel-toolbar-actions .btn { flex: 1; }
    .client-fuel-periods { grid-template-columns: 1fr 1fr; gap: 7px; }
    .client-fuel-periods article { padding: 10px; }
    .client-fuel-periods strong { font-size: 16px; }
    .client-fuel-insights { display: block; }
    .client-fuel-section-title { align-items: flex-start; }
    .client-fuel-chart-row { grid-template-columns: 48px minmax(70px, 1fr) 86px; }
}

#client-vehicle-sidebar button,
#client-vehicle-sidebar input,
#client-vehicle-sidebar select,
.client-overview-dialog button {
  font-family: inherit;
}

#client-vehicle-sidebar.client-vehicle-sidebar-collapsed {
  pointer-events: none;
  opacity: 0;
  transform: translateX(calc(-100% - 24px));
}

.client-vehicle-sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 10px;
}

.client-vehicle-sidebar-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  color: #172941;
}

.client-vehicle-sidebar-count {
  display: block;
  margin-top: 2px;
  color: #526985;
  font-size: 12px;
  font-weight: 600;
}

.client-vehicle-sidebar-count[hidden] {
  display: none !important;
}

.client-vehicle-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.client-vehicle-overview-button {
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #1940a3, #6a42d6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 30px;
  white-space: nowrap;
  cursor: pointer;
}

.client-vehicle-overview-button:hover,
.client-vehicle-overview-button:focus {
  box-shadow: 0 4px 10px rgba(38, 70, 173, .25);
  outline: none;
}

.client-vehicle-icon-button {
  width: 34px;
  height: 30px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid #cbd7e8;
  border-radius: 7px;
  background: #fff;
  color: #173967;
  font-size: 16px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
}

.client-vehicle-icon-button:hover,
.client-vehicle-icon-button:focus {
  border-color: #1940a3;
  color: #1940a3;
  outline: none;
}

.client-map-panel-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 0 16px 10px;
  border-bottom: 1px solid #edf1f6;
}

.client-map-panel-tab {
  height: 31px;
  padding: 4px 8px;
  border: 1px solid #d6dfec;
  border-radius: 9px;
  background: #f8faff;
  color: #3f5572;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.client-map-panel-tab.active {
  border-color: #1940a3;
  background: #1940a3;
  color: #fff;
  box-shadow: 0 4px 10px rgba(25, 64, 163, .18);
}

#client-poi-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  margin-left: 3px;
  padding: 0 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .2);
  font-size: 9px;
}

#client-poi-panel {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

#client-vehicle-sidebar.client-poi-mode #client-poi-panel {
  display: flex;
}

#client-vehicle-sidebar.client-poi-mode > .client-vehicle-search-wrap,
#client-vehicle-sidebar.client-poi-mode > .client-vehicle-status-filters,
#client-vehicle-sidebar.client-poi-mode > .client-vehicle-filters,
#client-vehicle-sidebar.client-poi-mode > #client-vehicle-list,
#client-vehicle-sidebar.client-poi-mode > .client-vehicle-sidebar-footer {
  display: none;
}

.client-poi-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
}

.client-poi-visibility-toggles {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

#client-poi-add {
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #1940a3, #2f70db);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.client-poi-visibility-toggle {
  margin: 0;
  color: #304761;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.client-poi-visibility-toggle input {
  margin: 0 4px 0 0;
  vertical-align: -2px;
}

.client-poi-cluster {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: #7c5ce5;
  color: #fff;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(74,45,158,.45);
}

.client-poi-cluster span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  font-size: 12px;
  line-height: 1;
}

.client-poi-cluster-medium { background: #6946d5; }
.client-poi-cluster-large { background: #5530bd; }

.client-vehicle-search-wrap {
  position: relative;
  margin: 0 16px 10px;
}

.client-vehicle-search-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  color: #8191aa;
  font-size: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

#client-vehicle-search,
#client-poi-search {
  width: 100%;
  height: 38px;
  padding: 8px 34px 8px 36px;
  border: 1px solid #d2ddec;
  border-radius: 12px;
  background: #fbfcff;
  color: #1f3047;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  outline: none;
}

#client-vehicle-search:focus,
#client-poi-search:focus {
  border-color: #2e69e8;
  box-shadow: 0 0 0 2px rgba(46, 105, 232, .12);
}

#client-vehicle-search-clear,
#client-poi-search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8191aa;
  font-size: 16px;
  line-height: 25px;
  transform: translateY(-50%);
  cursor: pointer;
}

.client-poi-search-wrap {
  margin-top: 0;
}

.client-poi-live-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 16px 10px;
}

.client-poi-live-summary > div {
  min-width: 0;
  padding: 7px 6px;
  border: 1px solid #e0e7f0;
  border-radius: 9px;
  background: #f9fbfe;
  text-align: center;
}

.client-poi-live-summary span,
.client-poi-live-summary strong {
  display: block;
}

.client-poi-network-summary {
  margin: 0 16px 10px;
  padding: 8px;
  border: 1px solid #dce6ef;
  border-radius: 10px;
  background: #f7fafc;
}

.client-poi-network-summary[hidden] { display: none !important; }

.client-poi-network-counts,
.client-poi-router-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.client-poi-network-counts span,
.client-poi-router-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4b607b;
  font-size: 10px;
  font-weight: 700;
}

.client-poi-network-counts i,
.client-poi-router-pill i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b98aa;
}

.client-poi-network-counts i.online,
.client-poi-router-pill.online i { background: #18a66d; }
.client-poi-network-counts i.offline,
.client-poi-router-pill.offline i { background: #e05264; }
.client-poi-network-counts i.blocked { background: #a93143; }

.client-poi-router-status {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e3e9f1;
}

.client-poi-router-pill {
  padding: 3px 6px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dce5ef;
}

.client-poi-live-summary span {
  overflow: hidden;
  color: #5f728d;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-poi-live-summary strong {
  margin-top: 2px;
  color: #1940a3;
  font-size: 19px;
}

.client-poi-filters {
  grid-template-columns: 1fr 1fr;
}

#client-poi-list {
  flex: 1 1 auto;
  min-height: 80px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
}

.client-poi-list-item {
  border-bottom: 1px solid #edf1f6;
}

.client-poi-list-button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: #fff;
  color: #172842;
  text-align: left;
  cursor: pointer;
}

.client-poi-list-button:hover,
.client-poi-list-button:focus {
  background: #f4f7fc;
  outline: none;
}

.client-poi-list-title-row,
.client-poi-list-meta,
.client-poi-list-nearest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.client-poi-list-name {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-poi-category-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
}

.client-poi-occupancy-badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 9px;
  background: #eef2f7;
  color: #596d88;
  font-size: 10px;
  font-weight: 700;
}

.client-poi-occupancy-badge.occupied {
  background: #e8f9f1;
  color: #159b62;
}

.client-poi-network-badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
}

.client-poi-network-badge.online { background: #e5f8ef; color: #0f8b58; }
.client-poi-network-badge.offline { background: #fff0f2; color: #c4384a; }
.client-poi-network-badge.unknown { background: #fff6dc; color: #8b651c; }
.client-poi-blocked-label { color: #bd3043 !important; font-weight: 800; }

.client-poi-list-meta,
.client-poi-list-nearest {
  margin-top: 4px;
  color: #60738e;
  font-size: 11px;
  font-weight: 500;
}

#client-poi-filter-reset {
  padding: 4px 9px;
  border: 0;
  background: transparent;
  color: #42689f;
  font-size: 11px;
  cursor: pointer;
}

.client-poi-div-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 30px !important;
  height: 30px !important;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(20, 42, 78, .35);
  color: #fff;
  font-size: 14px;
}

.client-poi-div-icon > span {
  line-height: 1;
}

.client-poi-icon-fuel { background: #17a2b8; }
.client-poi-icon-workshop { background: #6c757d; }
.client-poi-icon-delivery { background: #8c52c7; }
.client-poi-icon-risk { background: #e05264; }

.poi-popup-operational {
  min-width: 260px;
  color: #1f3047;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
}

.poi-popup-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin: 8px 0;
}

.poi-popup-summary-grid > div {
  padding: 6px;
  border-radius: 7px;
  background: #f3f6fb;
  text-align: center;
}

.poi-popup-summary-grid span,
.poi-popup-summary-grid strong {
  display: block;
}

.poi-popup-summary-grid span { color: #4f637f; font-size: 11px; font-weight: 700; }
.poi-popup-summary-grid strong { margin-top: 3px; color: #203a64; font-size: 15px; }

.poi-popup-nearest {
  margin: 7px 0;
  padding: 7px;
  border-left: 3px solid #22b889;
  border-radius: 6px;
  background: #f3fbf8;
  color: #314b67;
  font-size: 11px;
  line-height: 1.35;
}

.client-vehicle-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
}

.client-vehicle-status-button {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #d5deeb;
  border-radius: 16px;
  background: #fff;
  color: #293f5d;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.client-vehicle-status-button.active {
  border-color: #1940a3;
  background: #1940a3;
  color: #fff;
}

.client-status-dot,
.client-vehicle-list-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: 1px;
}

.client-status-dot-online { background: #20bf6b; }
.client-status-dot-semgps { background: #f39c12; }
.client-status-dot-offline { background: #ef5350; }
.client-status-dot-ignition { background: #f5b31f; box-shadow: 0 0 0 3px rgba(245, 179, 31, .15); }

.client-vehicle-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 16px 12px;
  border-top: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
  background: #fafcff;
}

.client-vehicle-filter-field-full {
  grid-column: 1 / -1;
}

.client-vehicle-filter-field label {
  display: block;
  margin: 0 0 4px;
  color: #4b607c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.client-vehicle-filter-field select {
  width: 100%;
  height: 34px;
  padding: 6px 26px 6px 9px;
  border: 1px solid #d3ddea;
  border-radius: 9px;
  background-color: #fff;
  color: #293f5d;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  outline: none;
}

.client-vehicle-filter-field select:focus {
  border-color: #2e69e8;
  box-shadow: 0 0 0 2px rgba(46, 105, 232, .1);
}

#client-vehicle-list {
  flex: 1 1 auto;
  min-height: 80px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
}

.client-vehicle-list-item {
  border-bottom: 1px solid #edf1f6;
}

.client-vehicle-list-button {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border: 0;
  background: #fff;
  color: #172842;
  text-align: left;
  cursor: pointer;
}

.client-vehicle-list-button:hover,
.client-vehicle-list-button:focus {
  background: #f4f7fc;
  outline: none;
}

.client-vehicle-list-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.client-vehicle-list-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-vehicle-list-model {
  max-width: 42%;
  overflow: hidden;
  color: #657791;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-vehicle-list-secondary {
  margin-top: 4px;
  overflow: hidden;
  color: #354b69;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-vehicle-list-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  color: #657791;
  font-size: 11px;
}

.client-vehicle-list-empty {
  padding: 28px 18px;
  color: #536985;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.client-vehicle-sidebar-footer {
  padding: 9px 16px;
  border-top: 1px solid #edf1f6;
  background: #fff;
  text-align: center;
}

#client-vehicle-filter-reset {
  padding: 4px 9px;
  border: 0;
  background: transparent;
  color: #42689f;
  font-size: 12px;
  cursor: pointer;
}

#client-vehicle-filter-reset:hover,
#client-vehicle-filter-reset:focus {
  color: #1940a3;
  text-decoration: underline;
  outline: none;
}

#client-vehicle-sidebar-open {
  position: absolute;
  z-index: 899;
  top: 98px;
  left: 12px;
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(17, 42, 89, .15);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(13, 34, 70, .22);
  color: #173967;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#client-vehicle-sidebar-open.client-vehicle-sidebar-open-visible {
  display: flex;
}

/* Visão geral colorida da frota do cliente. */
#client-vehicle-overview {
  position: absolute;
  z-index: 1200;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

#client-vehicle-overview.client-overview-visible {
  display: flex;
}

.client-overview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 25, 47, .62);
  backdrop-filter: blur(2px);
}

.client-overview-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1080px, 100%);
  max-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 18px;
  background: #f4f7fb;
  box-shadow: 0 22px 60px rgba(5, 18, 42, .45);
  color: #1f3047;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
}

.client-overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  background: linear-gradient(120deg, #0f2f76, #1940a3 55%, #7043d8);
  color: #fff;
}

.client-overview-header h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
}

.client-overview-header p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
}

#client-vehicle-overview-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 9px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 22px;
  line-height: 31px;
  cursor: pointer;
}

.client-overview-content {
  flex: 1 1 auto;
  padding: 15px;
  overflow-y: auto;
}

.client-overview-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.client-overview-summary-card {
  position: relative;
  min-height: 106px;
  overflow: hidden;
  padding: 13px 15px;
  border-radius: 13px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(21, 43, 81, .12);
}

.client-overview-summary-card::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 90px;
  height: 90px;
  border: 18px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
}

.client-overview-summary-card span,
.client-overview-summary-card small,
.client-overview-summary-card strong {
  position: relative;
  z-index: 1;
  display: block;
}

.client-overview-summary-card span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.client-overview-summary-card strong {
  margin-top: 5px;
  font-size: 30px;
  line-height: 1;
}

.client-overview-summary-card small {
  margin-top: 7px;
  color: rgba(255, 255, 255, .88);
  font-size: 10px;
}

.overview-card-blue { background: linear-gradient(135deg, #2469de, #2445ae); }
.overview-card-green { background: linear-gradient(135deg, #21c989, #0a9e68); }
.overview-card-purple { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.overview-card-orange { background: linear-gradient(135deg, #ffb020, #f07a16); }
.overview-card-red { background: linear-gradient(135deg, #ff6670, #db3445); }

.client-overview-operation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.client-overview-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
}

.client-overview-section-title h3,
.client-overview-section-title p {
  margin: 0;
}

.client-overview-section-title h3 {
  color: #263f62;
  font-size: 14px;
}

.client-overview-section-title p {
  margin-top: 2px;
  color: #7a8ca5;
  font-size: 10px;
}

.client-overview-operation-grid > div {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 9px 11px;
  border: 1px solid #e1e7f0;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(22, 43, 77, .05);
}

.client-overview-operation-grid span:not(.overview-operation-icon) {
  color: #4f637f;
  font-size: 11px;
  font-weight: 600;
}

.client-overview-operation-grid strong {
  color: #1f3453;
  font-size: 20px;
}

.overview-operation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #fff;
  font-size: 12px;
}

.overview-operation-purple { background: #8358df; }
.overview-operation-cyan { background: #23a9ce; }
.overview-operation-yellow { background: #f5b428; }
.overview-operation-red { background: #ef5964; }
.overview-operation-orange { background: #f08a24; }
.overview-operation-green { background: #22b889; }

.client-overview-operation-grid > .overview-operation-idle {
  border-color: #f3c470;
  background: #fff9ed;
}

.client-overview-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.client-overview-telemetry-grid > div {
  min-height: 54px;
  padding: 9px 11px;
  border-left: 4px solid #5f7fe7;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(22, 43, 77, .05);
}

.client-overview-telemetry-grid > div:nth-child(2n) { border-left-color: #22b889; }
.client-overview-telemetry-grid > div:nth-child(3n) { border-left-color: #f0a428; }
.client-overview-telemetry-grid > div:nth-child(4n) { border-left-color: #df5467; }

.client-overview-telemetry-grid span,
.client-overview-telemetry-grid strong {
  display: block;
}

.client-overview-telemetry-grid span {
  color: #566b87;
  font-size: 10px;
  font-weight: 600;
}

.client-overview-telemetry-grid strong {
  margin-top: 3px;
  color: #233a5a;
  font-size: 15px;
}

.client-overview-poi-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.client-overview-poi-summary-grid > div {
  min-height: 75px;
  padding: 10px 12px;
  border-radius: 11px;
  color: #fff;
  box-shadow: 0 5px 15px rgba(22, 43, 77, .09);
}

.client-overview-poi-summary-grid span,
.client-overview-poi-summary-grid strong,
.client-overview-poi-summary-grid small {
  display: block;
}

.client-overview-poi-summary-grid span { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.client-overview-poi-summary-grid strong { margin-top: 4px; font-size: 24px; line-height: 1; }
.client-overview-poi-summary-grid small { margin-top: 5px; color: rgba(255, 255, 255, .9); font-size: 10px; }
.overview-poi-blue { background: linear-gradient(135deg, #3878e6, #2252b9); }
.overview-poi-green { background: linear-gradient(135deg, #26c994, #119369); }
.overview-poi-purple { background: linear-gradient(135deg, #8c66e8, #6439c4); }
.overview-poi-orange { background: linear-gradient(135deg, #f7b43d, #ed7b1b); }

.client-overview-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.client-overview-chart-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e0e7f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(22, 43, 77, .05);
}

.client-overview-chart-card h3 {
  margin: 0 0 10px;
  color: #263a57;
  font-size: 13px;
  font-weight: 700;
}

.client-overview-donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 170px;
}

.client-overview-donut {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  flex: 0 0 140px;
  border-radius: 50%;
  background: #e7ebf2;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .03);
}

.client-overview-donut::after {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 12px rgba(29, 50, 82, .1);
}

.client-overview-donut > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.client-overview-donut strong,
.client-overview-donut span {
  display: block;
}

.client-overview-donut strong { font-size: 24px; }
.client-overview-donut span { color: #5d708b; font-size: 10px; font-weight: 600; text-transform: uppercase; }

.client-overview-status-legend {
  min-width: 145px;
}

.client-overview-legend-item {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 7px;
  margin: 8px 0;
  color: #4c607b;
  font-size: 11px;
}

.client-overview-legend-color {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.client-overview-legend-item strong {
  color: #253a58;
  font-size: 13px;
}

.client-overview-bars {
  max-height: 210px;
  overflow-y: auto;
}

.client-overview-bar-row {
  display: grid;
  grid-template-columns: minmax(80px, 135px) 1fr 28px;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.client-overview-bar-label {
  overflow: hidden;
  color: #4b607c;
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-overview-bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf1f6;
}

.client-overview-bar-fill {
  height: 100%;
  min-width: 3px;
  border-radius: 8px;
  transition: width .25s ease;
}

.client-overview-bar-value {
  color: #263a57;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.client-overview-chart-empty {
  padding: 35px 10px;
  color: #64768f;
  font-size: 11px;
  text-align: center;
}

.client-overview-alerts-card {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #dfe6f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(22, 43, 77, .05);
}

.client-overview-poi-visits-card {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #dfe6f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(22, 43, 77, .05);
}

.client-overview-poi-visits-list {
  max-height: 250px;
  overflow-y: auto;
}

.client-overview-poi-visit {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-bottom: 1px solid #edf1f6;
}

.client-overview-poi-visit:last-child { border-bottom: 0; }
.client-overview-poi-visit-dot { width: 9px; height: 9px; border-radius: 50%; background: #22b889; }
.client-overview-poi-visit.finished .client-overview-poi-visit-dot { background: #5876d6; }
.client-overview-poi-visit strong,
.client-overview-poi-visit span,
.client-overview-poi-visit small { display: block; }
.client-overview-poi-visit strong { color: #253a58; font-size: 11px; }
.client-overview-poi-visit span { margin-top: 2px; color: #526985; font-size: 10px; }
.client-overview-poi-visit small { margin-top: 2px; color: #5c708b; font-size: 10px; }
.client-overview-poi-visit-time { color: #315c99; font-size: 10px; font-weight: 700; white-space: nowrap; }

.client-overview-alerts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e7ecf3;
}

.client-overview-alerts-header h3,
.client-overview-alerts-header p {
  margin: 0;
}

.client-overview-alerts-header h3 {
  color: #263a57;
  font-size: 13px;
  font-weight: 700;
}

.client-overview-alerts-header p {
  margin-top: 2px;
  color: #5d708b;
  font-size: 10px;
}

.client-overview-alerts-header button {
  padding: 6px 10px;
  border: 1px solid #cfdaea;
  border-radius: 8px;
  background: #f8faff;
  color: #315b9d;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.client-overview-alerts-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/*
 * Padrão visual dos modais do cliente.
 * A estrutura e as ações antigas permanecem; somente apresentação, leitura e
 * responsividade são unificadas. A Central de Alertas conserva seu layout próprio.
 */
.modal {
  color: #263a55;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

.modal .modal-content {
  overflow: visible;
  border: 0;
  border-radius: 15px;
  background: #f6f8fc;
  box-shadow: 0 20px 58px rgba(11, 29, 61, .34);
}

.modal .modal-header:not(.client-alert-center-header) {
  position: relative;
  overflow: hidden;
  min-height: 66px;
  padding: 15px 58px 15px 20px;
  border: 0;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(135deg, #173b98 0%, #2458bd 58%, #2f70db 100%);
  color: #fff;
}

.modal .modal-header:not(.client-alert-center-header)::after {
  position: absolute;
  right: -30px;
  bottom: -52px;
  width: 150px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  content: "";
  pointer-events: none;
}

.modal .modal-header:not(.client-alert-center-header) .modal-title,
.modal .modal-header:not(.client-alert-center-header) > h3,
.modal .modal-header:not(.client-alert-center-header) > h4,
.modal .modal-header:not(.client-alert-center-header) > h5,
.modal .modal-header:not(.client-alert-center-header) .vehicle-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.modal .modal-header:not(.client-alert-center-header) .vehicle-model {
  color: #dfe9ff;
}

.modal .modal-header:not(.client-alert-center-header) .close {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0 0 2px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 9px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  text-shadow: none;
  opacity: 1;
}

.modal .modal-header:not(.client-alert-center-header) .close:hover,
.modal .modal-header:not(.client-alert-center-header) .close:focus {
  background: rgba(255, 255, 255, .24);
  color: #fff;
  outline: none;
  opacity: 1;
}

.client-modal-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-modal-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.client-modal-heading p {
  margin: 2px 0 0;
  color: #dce7ff;
  font-size: 12px;
  line-height: 1.35;
}

.modal .modal-body:not(.client-alert-center-body) {
  padding: 20px;
  background: #f6f8fc;
  color: #2b405d;
  font-size: 14px;
  line-height: 1.55;
}

.modal .modal-body:not(.client-alert-center-body) label {
  color: #263a55;
  font-size: 13px;
  font-weight: 700;
}

.modal .modal-body:not(.client-alert-center-body) legend {
  margin-bottom: 16px;
  padding-bottom: 7px;
  border-bottom-color: #dce4ef;
  color: #526783;
  font-size: 14px;
  font-weight: 700;
}

.modal .modal-body:not(.client-alert-center-body) .form-control {
  min-height: 38px;
  border-color: #cad6e5;
  border-radius: 9px;
  background: #fff;
  color: #243954;
  font-size: 14px;
  box-shadow: inset 0 1px 1px rgba(25, 64, 163, .03);
}

.modal .modal-body:not(.client-alert-center-body) .form-control:focus {
  border-color: #2f70db;
  box-shadow: 0 0 0 3px rgba(47, 112, 219, .12);
}

.modal .modal-body:not(.client-alert-center-body) .input-group-addon {
  border-color: #cad6e5;
  background: #edf2f8;
  color: #526783;
  font-size: 13px;
  font-weight: 700;
}

.modal .modal-body:not(.client-alert-center-body) .help-block {
  color: #6c7f98;
  font-size: 12px;
}

.modal .modal-body:not(.client-alert-center-body) .panel,
.modal .modal-body:not(.client-alert-center-body) .alert {
  overflow: hidden;
  border-radius: 10px;
}

.modal .modal-body:not(.client-alert-center-body) .panel {
  border-color: #d8e1ed;
  box-shadow: 0 4px 14px rgba(31, 54, 88, .05);
}

.modal .modal-body:not(.client-alert-center-body) .panel-heading {
  border-bottom-color: #d8e1ed;
  background: #edf3fb;
  color: #2e496d;
}

.modal .modal-body:not(.client-alert-center-body) .table {
  margin-bottom: 0;
  background: #fff;
  color: #2b405d;
  font-size: 13px;
}

.modal .modal-body:not(.client-alert-center-body) .table > thead > tr > th {
  border-bottom-width: 1px;
  background: #edf3fb;
  color: #315070;
  font-weight: 700;
}

.modal .modal-footer:not(.client-alert-center-footer) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 62px;
  padding: 12px 18px;
  border-top: 1px solid #dfe6f0;
  border-radius: 0 0 15px 15px;
  background: #fff;
}

.modal .modal-footer:not(.client-alert-center-footer)::before,
.modal .modal-footer:not(.client-alert-center-footer)::after {
  display: none;
}

.modal .modal-footer:not(.client-alert-center-footer) .btn {
  min-height: 38px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}

.modal .modal-footer:not(.client-alert-center-footer) .btn.pull-left {
  float: none !important;
  margin-right: auto;
}

.modal .modal-footer:not(.client-alert-center-footer) .text-muted {
  color: #667b96;
  font-size: 13px;
  font-weight: 600;
}

.client-support-modal .modal-dialog {
  width: calc(100% - 28px);
  max-width: 680px;
}

.client-support-body {
  padding: 22px !important;
}

.client-support-content {
  padding: 18px 20px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(31, 54, 88, .06);
}

.client-support-content h1,
.client-support-content h2,
.client-support-content h3,
.client-support-content h4,
.client-support-content h5,
.client-support-content h6 {
  margin: 0 0 13px;
  color: #183d95;
  font-size: 16px;
  font-weight: 700;
}

.client-support-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-support-content li {
  position: relative;
  min-height: 36px;
  margin: 0;
  padding: 8px 10px 8px 30px;
  border-top: 1px solid #edf1f6;
  color: #314965;
  font-size: 14px;
}

.client-support-content li::before {
  position: absolute;
  top: 13px;
  left: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f70db;
  box-shadow: 0 0 0 4px rgba(47, 112, 219, .10);
  content: "";
}

.client-support-content a {
  color: #155dcc;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media print {
  body.modalprinter .modal-header.vehicle-header-premium {
    border-radius: 0;
    background: #fff !important;
    color: #1f2937 !important;
  }

  body.modalprinter .modal-header.vehicle-header-premium .vehicle-title,
  body.modalprinter .modal-header.vehicle-header-premium .vehicle-model {
    color: #1f2937 !important;
  }
}

/* Central de Alertas: carrega páginas de 10 registros sem pesar o mapa. */
.client-alert-center-modal.modal {
  position: fixed;
  overflow-x: hidden;
  overflow-y: auto;
}

.client-alert-center-modal .modal-dialog {
  width: min(920px, calc(100% - 28px));
  margin: 82px auto 22px;
}

.client-alert-center-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  box-shadow: 0 18px 55px rgba(11, 29, 61, .34);
}

.client-alert-center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #1940a3, #2f70db);
  color: #fff;
}

/*
 * O clearfix do Bootstrap adiciona ::before e ::after ao modal-header.
 * Em um cabeçalho flexível, esses pseudo-elementos viram itens e deslocam o
 * título para o centro. Removê-los mantém o título à esquerda e as ações à
 * direita, como nos demais modais.
 */
.client-alert-center-header::before,
.client-alert-center-header::after {
  display: none;
  content: none;
}

.client-alert-center-title-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 auto 0 0;
  min-width: 0;
  text-align: left;
}

.client-alert-center-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  font-size: 21px;
}

.client-alert-center-header h4,
.client-alert-center-header p {
  margin: 0;
}

.client-alert-center-header h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.client-alert-center-header p {
  margin-top: 2px;
  color: #dce7ff;
  font-size: 11px;
}

.client-alert-center-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.client-alert-sound-button,
.client-alert-center-close {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 9px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.client-alert-sound-button {
  padding: 6px 10px;
  border-color: rgba(86, 224, 156, .36);
  background: rgba(44, 166, 97, .24);
  color: #f5fffa;
}

.client-alert-sound-button.sound-off {
  border-color: rgba(255, 196, 74, .34);
  background: rgba(122, 72, 16, .28);
  color: #fff4d1;
}

.client-alert-sound-button i {
  margin-right: 6px;
}

.client-alert-center-close {
  width: 34px;
  padding: 0;
  font-size: 20px;
  line-height: 30px;
}

.client-alert-sound-button:hover,
.client-alert-sound-button:focus {
  filter: brightness(1.05);
  outline: none;
}

.client-alert-center-close:hover,
.client-alert-center-close:focus {
  background: rgba(255, 255, 255, .24);
  outline: none;
}

.client-notification-toggle-button {
  width: 100%;
  max-width: 190px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #168e55;
  border-radius: 9px;
  background: #20a968;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.client-notification-toggle-button i {
  width: 16px;
  margin-right: 5px;
  text-align: center;
}

.client-notification-toggle-button.notification-off {
  border-color: #c7d0dd;
  background: #e7ebf0;
  color: #53657d;
}

.client-notification-toggle-button:hover,
.client-notification-toggle-button:focus {
  border-color: #1940a3;
  outline: none;
  box-shadow: 0 0 0 2px rgba(25, 64, 163, .14);
}

.client-notification-toggle-button[disabled] {
  opacity: .6;
  cursor: not-allowed;
}

.client-alert-center-body {
  min-height: 270px;
  max-height: calc(100vh - 245px);
  padding: 0;
  overflow-y: auto;
  background: #f4f7fb;
}

.client-alert-center-loading,
.client-alert-center-error {
  padding: 24px;
  color: #6c7f99;
  font-size: 12px;
  text-align: center;
}

.client-alert-center-error {
  color: #ba3e4b;
}

.client-alert-center-list {
  margin: 0;
  padding: 0;
}

.client-alert-center-list .client-overview-alert-item {
  min-height: 76px;
  padding: 12px 16px;
}

.client-alert-center-list .client-overview-alert-item.client-alert-read {
  border-bottom-color: #dfe4eb;
  background: #eef1f5;
}

.client-alert-center-list .client-overview-alert-item.client-alert-read:hover {
  background: #e7ebf0;
}

.client-alert-center-list .client-overview-alert-item.client-alert-read .client-overview-alert-indicator {
  background: #98a4b3;
  box-shadow: 0 0 0 4px rgba(116, 130, 147, .11);
}

.client-alert-center-list .client-overview-alert-item.client-alert-read .client-overview-alert-message strong,
.client-alert-center-list .client-overview-alert-item.client-alert-read .client-overview-alert-message span {
  color: #647184;
}

.client-alert-read-state {
  display: inline-flex !important;
  align-items: center;
  margin: 0 0 0 6px !important;
  padding: 2px 6px;
  border-radius: 9px;
  background: #eaf2ff;
  color: #1940a3 !important;
  font-size: 8px !important;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.client-alert-read-state.is-read {
  background: #dce1e8;
  color: #687587 !important;
}

.client-alert-position-state {
  display: inline-flex !important;
  align-items: center;
  gap: 3px;
  width: auto !important;
  margin: 3px 0 0 6px !important;
  padding: 2px 6px;
  overflow: visible !important;
  border-radius: 9px;
  background: #e9f8f0;
  color: #138455 !important;
  font-size: 8px !important;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.client-alert-center-list .client-overview-alert-message strong {
  font-size: 11px;
}

.client-alert-center-list .client-overview-alert-message span {
  overflow: visible;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: clip;
  white-space: normal;
}

.client-alert-center-list .client-overview-alert-message small {
  font-size: 9px;
}

.client-alert-center-empty {
  min-height: 270px;
  background: #fff;
}

.client-alert-center-load-more {
  padding: 14px;
  text-align: center;
}

.client-alert-center-load-more button {
  min-width: 180px;
  padding: 9px 16px;
  border: 1px solid #c6d5e9;
  border-radius: 9px;
  background: #fff;
  color: #1940a3;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.client-alert-center-load-more button:hover,
.client-alert-center-load-more button:focus {
  border-color: #1940a3;
  box-shadow: 0 3px 10px rgba(25, 64, 163, .13);
  outline: none;
}

.client-alert-center-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid #e1e7f0;
  background: #fff;
}

.client-alert-center-footer > span {
  color: #71819a;
  font-size: 10px;
}

.client-alert-center-footer-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.client-alert-center-footer .btn {
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}

.client-overview-alerts-list {
  max-height: 285px;
  overflow-y: auto;
}

.client-overview-alert-item {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 9px 12px;
  border-bottom: 1px solid #edf1f6;
  background: #fff;
}

.client-overview-alert-item:last-child {
  border-bottom: 0;
}

.client-overview-alert-item:hover {
  background: #f8faff;
}

.client-overview-alert-indicator {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4385df;
  box-shadow: 0 0 0 4px rgba(67, 133, 223, .12);
}

.client-overview-alert-warning .client-overview-alert-indicator {
  background: #f3a51f;
  box-shadow: 0 0 0 4px rgba(243, 165, 31, .13);
}

.client-overview-alert-danger .client-overview-alert-indicator {
  background: #eb4f5f;
  box-shadow: 0 0 0 4px rgba(235, 79, 95, .13);
}

.client-overview-alert-success .client-overview-alert-indicator {
  background: #21b978;
  box-shadow: 0 0 0 4px rgba(33, 185, 120, .13);
}

.client-overview-alert-message {
  min-width: 0;
}

.client-overview-alert-message strong,
.client-overview-alert-message span,
.client-overview-alert-message small {
  display: block;
}

.client-overview-alert-message strong {
  color: #223754;
  font-size: 11px;
  text-transform: uppercase;
}

.client-overview-alert-message span {
  margin-top: 2px;
  overflow: hidden;
  color: #3e5878;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-overview-alert-message small {
  margin-top: 3px;
  color: #657791;
  font-size: 9px;
}

.client-overview-alert-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.client-overview-alert-actions button {
  padding: 5px 7px;
  border: 1px solid #d6dfec;
  border-radius: 7px;
  background: #fff;
  color: #34577f;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.client-overview-alert-actions button:hover,
.client-overview-alert-actions button:focus {
  border-color: #1940a3;
  color: #1940a3;
  outline: none;
}

.client-overview-alert-actions .client-overview-alert-read {
  border-color: #bfe9d7;
  background: #effbf6;
  color: #159b62;
}

.client-overview-alerts-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 90px;
  color: #70819a;
}

.client-overview-alerts-empty > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eaf9f2;
  color: #1cad70;
  font-size: 16px;
}

.client-overview-alerts-empty strong,
.client-overview-alerts-empty small {
  display: block;
}

.client-overview-alerts-empty strong { color: #30445f; font-size: 12px; }
.client-overview-alerts-empty small { margin-top: 2px; color: #657791; font-size: 10px; }

.client-overview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 17px;
  border-top: 1px solid #e0e7f0;
  background: #fff;
  color: #536985;
  font-size: 10px;
}

.client-overview-footer button {
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: #1940a3;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Popup completo do veículo, mantendo as classes usadas pela atualização em tempo real. */
.client-vehicle-popup {
  position: relative;
  min-width: 300px;
  max-width: 340px;
  color: #1f3047;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

.client-popup-header {
  position: relative;
  padding: 0 30px 7px;
  border-bottom: 1px solid #e8edf5;
  text-align: center;
}

.client-popup-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #1687c9;
  font: inherit;
  font-size: 19px;
  line-height: 28px;
  cursor: pointer;
}

.client-popup-anchor:hover,
.client-popup-anchor:focus {
  background: #eef6fc;
  outline: none;
}

.client-popup-title {
  color: #172842;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
}

.client-popup-subtitle {
  display: block;
  max-width: none;
  margin-top: 1px;
  margin-left: 0;
  color: #566a84;
  font-size: 11px;
  font-weight: 500;
  white-space: normal;
}

.client-popup-driver {
  margin-top: 2px;
  color: #293d58;
  font-size: 11px;
  font-weight: 650;
}

.client-popup-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 2px 6px;
  border-bottom: 1px solid #edf1f6;
}

.client-popup-speed,
.client-popup-ignition {
  font-size: 12px;
  font-weight: 600;
}

.client-popup-address,
.client-popup-updated {
  padding: 6px 2px 0;
  color: #344b68;
  font-size: 11px;
  font-weight: 500;
}

.client-popup-updated {
  font-size: 12px;
  font-weight: 600;
}

.client-popup-address {
  min-height: 22px;
}

.client-popup-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 6px;
  padding: 2px;
  border-radius: 8px;
  background: #edf2f8;
}

.client-popup-tabs.client-popup-tabs-three {
  grid-template-columns: repeat(3, 1fr);
}

.client-popup-tab-state {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.client-popup-tab {
  padding: 5px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5b708d;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
}

.client-popup-tab:hover,
.client-popup-tab:focus {
  color: #1940a3;
  outline: none;
}

.client-popup-tab-state-tracking:checked ~ .client-popup-tabs [data-popup-tab="tracking"],
.client-popup-tab-state-data:checked ~ .client-popup-tabs [data-popup-tab="data"],
.client-popup-tab-state-profile:checked ~ .client-popup-tabs [data-popup-tab="profile"] {
  background: #fff;
  color: #1940a3;
  box-shadow: 0 1px 4px rgba(35, 57, 91, .16);
}

.client-popup-tab-panels .client-popup-tab-panel {
  display: none !important;
}

.client-popup-tab-state-tracking:checked ~ .client-popup-tab-panels [data-popup-panel="tracking"],
.client-popup-tab-state-data:checked ~ .client-popup-tab-panels [data-popup-panel="data"],
.client-popup-tab-state-profile:checked ~ .client-popup-tab-panels [data-popup-panel="profile"] {
  display: block !important;
}

.client-popup-tab-panels {
  min-width: 0;
}

.client-popup-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 6px;
  max-height: 180px;
  overflow: hidden;
  overflow-y: auto;
  border: 1px solid #e5ebf3;
  border-radius: 9px;
  background: #e5ebf3;
}

.client-popup-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid #e5ebf3;
  border-radius: 8px;
  background: #e5ebf3;
}

.client-popup-summary .client-popup-detail {
  padding: 6px 8px;
}

.client-popup-detail {
  min-width: 0;
  padding: 7px 8px;
  background: #f8fafe;
}

.client-popup-detail-label {
  display: block;
  color: #687d99;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1.25;
  text-transform: uppercase;
}

.client-popup-detail-value {
  display: block;
  margin-top: 2px;
  color: #1d314d;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal;
}

.client-popup-profile-panel {
  margin-top: 6px;
  min-height: 120px;
  border: 1px solid #e4eaf2;
  border-radius: 9px;
  background: #f6f8fc;
}

.client-popup-profile-scroll {
  max-height: 190px;
  padding: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.client-popup-profile-section {
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid #e2e8f1;
  border-radius: 8px;
  background: #fff;
}

.client-popup-profile-section:last-of-type {
  margin-bottom: 0;
}

.client-popup-profile-section h4 {
  margin: 0 0 7px;
  color: #1940a3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1.25;
  text-transform: uppercase;
}

.client-popup-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
}

.client-popup-profile-field {
  min-width: 0;
}

.client-popup-profile-field span,
.client-popup-profile-field strong {
  display: block;
}

.client-popup-profile-field span {
  color: #71829a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.25;
  text-transform: uppercase;
}

.client-popup-profile-field strong {
  margin-top: 2px;
  color: #203550;
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.client-popup-vehicle-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-bottom: 8px;
  padding: 4px;
  border-radius: 6px;
  background: #f7f9fc;
}

.client-popup-vehicle-logo img {
  display: block;
  width: auto;
  max-width: 110px;
  height: auto;
  max-height: 34px;
  object-fit: contain;
}

.client-popup-fipe-others {
  margin-top: 8px;
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  background: #fff;
}

.client-popup-fipe-others summary {
  padding: 8px;
  color: #1940a3;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.client-popup-fipe-list {
  padding: 0 8px 8px;
}

.client-popup-fipe-reference {
  padding: 7px 0;
  border-top: 1px solid #edf1f6;
}

.client-popup-fipe-reference strong,
.client-popup-fipe-reference span,
.client-popup-fipe-reference small {
  display: block;
}

.client-popup-fipe-reference strong {
  color: #243a57;
  font-size: 10px;
}

.client-popup-fipe-reference span {
  margin-top: 2px;
  color: #16804a;
  font-size: 11px;
  font-weight: 800;
}

.client-popup-fipe-reference small {
  margin-top: 2px;
  color: #71829a;
  font-size: 8px;
}

.client-popup-profile-updated {
  padding: 8px 3px 2px;
  color: #71829a;
  font-size: 9px;
  text-align: center;
}

.client-popup-profile-loading,
.client-popup-profile-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 18px;
  color: #607590;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.client-popup-profile-loading i {
  margin-right: 6px;
}

.client-popup-trail-controls {
  display: grid;
  grid-template-columns: auto 68px minmax(54px, 1fr) 55px;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 5px;
  border: 1px solid #dce5f0;
  border-radius: 7px;
  background: #f6f9fd;
  transition: border-color .15s ease, background-color .15s ease;
}

.client-popup-trail-controls.is-active {
  border-color: #9fbae8;
  background: #edf4ff;
}

.client-popup-trail-label {
  color: #405979;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.client-popup-trail-period,
.client-popup-trail-show,
.client-popup-trail-clear {
  height: 27px;
  border: 1px solid #cbd8e8;
  border-radius: 5px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
}

.client-popup-trail-period {
  width: 100%;
  padding: 0 4px;
  background: #fff;
  color: #263d5b;
}

.client-popup-trail-show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border-color: #1940a3;
  background: #1940a3;
  color: #fff;
  cursor: pointer;
}

.client-popup-trail-spinner {
  display: none;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border: 2px solid rgba(255, 255, 255, .48);
  border-top-color: #fff;
  border-radius: 50%;
  animation: client-popup-trail-spin .7s linear infinite;
}

.client-popup-trail-controls.is-loading .client-popup-trail-spinner {
  display: inline-block;
}

.client-popup-trail-controls.is-loading .client-popup-trail-show {
  border-color: #12317f;
  background: #12317f;
  animation: client-popup-trail-pulse 1s ease-in-out infinite;
}

@keyframes client-popup-trail-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes client-popup-trail-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(25, 64, 163, .18);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(25, 64, 163, .12);
  }
}

.client-popup-trail-clear {
  padding: 0 6px;
  border-color: #e3aaa3;
  background: #fff6f5;
  color: #c0392b;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
}

.client-popup-trail-show:hover,
.client-popup-trail-show:focus {
  border-color: #12317f;
  background: #12317f;
  outline: none;
}

.client-popup-trail-clear:hover,
.client-popup-trail-clear:focus {
  border-color: #c0392b;
  background: #c0392b;
  color: #fff;
  outline: none;
}

.client-popup-trail-controls.is-loading {
  opacity: 1;
}

.client-popup-trail-controls button:disabled,
.client-popup-trail-controls select:disabled {
  cursor: wait;
}

.client-recent-trail-line {
  filter: drop-shadow(0 1px 1px rgba(14, 40, 91, .32));
}

.client-recent-trail-clear-control {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.client-recent-trail-clear-button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #b93429;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(19, 38, 68, .28);
  color: #b93429;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.client-recent-trail-clear-button:hover,
.client-recent-trail-clear-button:focus {
  background: #b93429;
  color: #fff;
  outline: none;
}

.client-popup-actions {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}

.client-popup-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 4px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.client-popup-action-street {
  background: #1a73e8;
}

.client-popup-action-satellite {
  background: #249a50;
}

.client-popup-action-share {
  background: #16ad5b;
}

.client-popup-central-button {
  margin-top: 6px;
  padding: 7px 10px;
  border: 0;
  border-radius: 4px;
  background: #287bb7;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}

.client-history-alert-marker-shell {
  border: 0;
  background: transparent;
}

.client-history-alert-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 8px;
  background: #d9392e;
  box-shadow: 0 2px 7px rgba(35, 45, 65, .38);
  color: #fff;
  font-size: 12px;
  transform: rotate(-45deg);
}

.client-history-alert-marker i {
  transform: rotate(45deg);
}

.client-history-alert-popup {
  min-width: 220px;
  color: #253a55;
  font-size: 11px;
  line-height: 1.45;
}

.client-history-alert-popup > div {
  margin-bottom: 7px;
}

.client-history-alert-popup-title {
  color: #c73329;
  font-size: 12px;
  font-weight: 800;
}

.client-history-alert-popup-message {
  padding: 7px;
  border-radius: 6px;
  background: #fff1ef;
  color: #83281f;
  font-weight: 700;
}

.client-history-alert-popup a {
  display: block;
  padding: 6px 8px;
  border-radius: 5px;
  background: #1a73e8;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.client-history-alert-quality {
  padding: 5px 7px;
  border-radius: 5px;
  background: #eaf7f0;
  color: #14764e;
  font-weight: 700;
}

.client-history-alert-telemetry,
.client-alert-event-telemetry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.client-history-alert-telemetry > div,
.client-alert-event-telemetry > div {
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid #e0e7f1;
  border-radius: 5px;
  background: #f7f9fc;
}

.client-history-alert-telemetry span,
.client-history-alert-telemetry strong,
.client-alert-event-telemetry span,
.client-alert-event-telemetry strong {
  display: block;
}

.client-history-alert-telemetry span,
.client-alert-event-telemetry span {
  color: #718098;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.client-history-alert-telemetry strong,
.client-alert-event-telemetry strong {
  margin-top: 1px;
  overflow: hidden;
  color: #29415f;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-alert-event-marker-shell {
  border: 0;
  background: transparent;
}

.client-alert-event-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  background: #d52d26;
  box-shadow: 0 3px 10px rgba(24, 39, 64, .45);
  color: #fff;
  font-size: 13px;
  transform: rotate(-45deg);
}

.client-alert-event-marker i {
  transform: rotate(45deg);
}

.client-alert-event-popup {
  min-width: 245px;
  color: #263b57;
  font-size: 11px;
  line-height: 1.4;
}

.client-alert-event-popup-title {
  margin-bottom: 5px;
  color: #c83229;
  font-size: 13px;
  font-weight: 800;
}

.client-alert-event-plate {
  display: block;
  margin-bottom: 5px;
  color: #173d91;
  font-size: 12px;
}

.client-alert-event-message {
  margin-bottom: 7px;
  padding: 7px;
  border-radius: 6px;
  background: #fff0ee;
  color: #812820;
  font-weight: 700;
}

.client-alert-event-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.client-alert-event-meta span {
  color: #72819a;
}

.client-alert-event-quality {
  margin: 7px 0;
  padding: 6px 7px;
  border-radius: 5px;
  background: #eaf7f0;
  color: #14764e;
  font-weight: 700;
}

.client-alert-event-coordinates {
  margin: 7px 0;
  color: #526983;
  font-family: monospace;
  font-size: 10px;
  text-align: center;
}

.client-alert-event-popup > a {
  display: block;
  padding: 6px 8px;
  border-radius: 5px;
  background: #1a73e8;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 767px) {
  .modal .modal-content {
    border-radius: 12px;
  }

  .modal .modal-header:not(.client-alert-center-header) {
    min-height: 60px;
    padding: 12px 52px 12px 15px;
  }

  .modal .modal-header:not(.client-alert-center-header) .modal-title,
  .modal .modal-header:not(.client-alert-center-header) > h3,
  .modal .modal-header:not(.client-alert-center-header) > h4,
  .modal .modal-header:not(.client-alert-center-header) > h5,
  .modal .modal-header:not(.client-alert-center-header) .vehicle-title {
    font-size: 17px;
  }

  .modal .modal-header:not(.client-alert-center-header) .close {
    right: 12px;
    width: 32px;
    height: 32px;
  }

  .client-modal-heading-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 16px;
  }

  .client-modal-heading p {
    font-size: 11px;
  }

  .modal .modal-body:not(.client-alert-center-body) {
    padding: 15px;
  }

  .modal .modal-footer:not(.client-alert-center-footer) {
    padding: 10px 12px;
  }

  .client-support-body {
    padding: 14px !important;
  }

  .client-support-content {
    padding: 15px;
  }

  #client-vehicle-sidebar {
    top: 50px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-width: none;
    border-radius: 13px;
  }

  #client-vehicle-sidebar-open {
    top: 50px;
    left: 8px;
  }

  .client-vehicle-popup {
    min-width: 270px;
    max-width: 300px;
  }

  .client-popup-profile-scroll {
    max-height: 225px;
  }

  #client-vehicle-overview {
    padding: 7px;
  }

  .client-overview-dialog {
    border-radius: 13px;
  }

  .client-overview-header {
    padding: 12px 14px;
  }

  .client-overview-header h2 {
    font-size: 17px;
  }

  .client-overview-content {
    padding: 10px;
  }

  .client-overview-summary-grid,
  .client-overview-operation-grid,
  .client-overview-telemetry-grid,
  .client-overview-poi-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-overview-charts-grid {
    grid-template-columns: 1fr;
  }

  .client-overview-donut-wrap {
    gap: 15px;
  }

  .client-overview-donut {
    width: 120px;
    height: 120px;
    flex-basis: 120px;
  }

  .client-overview-alert-item {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .client-overview-alert-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .client-overview-alerts-header {
    align-items: flex-start;
  }

  .client-overview-alerts-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .client-alert-center-modal .modal-dialog {
    width: calc(100% - 12px);
    margin: 52px 6px 8px;
  }

  .client-alert-center-header {
    align-items: flex-start;
    padding: 12px;
  }

  .client-alert-center-title-icon {
    display: none;
  }

  .client-alert-center-header h4 {
    font-size: 15px;
  }

  .client-alert-center-header p {
    font-size: 9px;
  }

  .client-alert-sound-button {
    width: 36px;
    overflow: hidden;
    padding: 6px;
    font-size: 0;
  }

  .client-alert-sound-button i {
    font-size: 14px;
  }

  .client-alert-center-body {
    max-height: calc(100vh - 190px);
  }

  .client-alert-center-list .client-overview-alert-item {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .client-alert-center-list .client-overview-alert-actions {
    grid-column: 2;
    flex-wrap: wrap;
  }

  .client-alert-center-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-alert-center-footer-actions {
    width: 100%;
  }

  .client-alert-center-footer-actions .btn {
    flex: 1 1 0;
  }
}

@media (max-width: 380px) {
  .client-vehicle-popup {
    min-width: 245px;
    max-width: 270px;
  }

  .client-popup-actions {
    flex-wrap: wrap;
  }

  .client-popup-actions .btn {
    flex-basis: 30%;
  }
}

/* Visão geral do relatório do veículo */
.vehicle-report-overview {
  margin-top: 18px;
  color: #162943;
  font-size: 13px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.vehicle-report-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #dce5f2;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7faff 0%, #eef4ff 100%);
}

.vehicle-report-identity-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  margin-right: auto;
}

.vehicle-report-identity-main strong,
.vehicle-report-identity-main small {
  display: block;
}

.vehicle-report-identity-main strong {
  color: #102b55;
  font-size: 16px;
}

.vehicle-report-identity-main small {
  margin-top: 2px;
  color: #63758e;
  font-weight: 700;
}

.vehicle-report-identity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #2453bd;
  color: #fff;
  font-size: 17px;
  box-shadow: 0 7px 16px rgba(36, 83, 189, .2);
}

.vehicle-report-pill {
  padding: 6px 9px;
  border: 1px solid #d7e1ef;
  border-radius: 999px;
  background: #fff;
  color: #435873;
  font-size: 11px;
  font-weight: 700;
}

.vehicle-report-pill i {
  margin-right: 4px;
  color: #2453bd;
}

.vehicle-report-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.vehicle-report-card {
  position: relative;
  min-height: 105px;
  overflow: hidden;
  padding: 14px;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 50, 81, .12);
}

.vehicle-report-card > i {
  position: absolute;
  right: 12px;
  top: 11px;
  color: rgba(255, 255, 255, .42);
  font-size: 26px;
}

.vehicle-report-card small,
.vehicle-report-card strong,
.vehicle-report-card span {
  position: relative;
  z-index: 1;
  display: block;
}

.vehicle-report-card small {
  max-width: calc(100% - 30px);
  color: rgba(255, 255, 255, .86);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .35px;
  text-transform: uppercase;
}

.vehicle-report-card strong {
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.05;
}

.vehicle-report-card strong em {
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.vehicle-report-card span {
  margin-top: 5px;
  color: rgba(255, 255, 255, .8);
  font-size: 10px;
}

.report-card-blue { background: linear-gradient(135deg, #1976d2, #2453bd); }
.report-card-purple { background: linear-gradient(135deg, #7956d9, #5834b9); }
.report-card-green { background: linear-gradient(135deg, #29b879, #11925d); }
.report-card-red { background: linear-gradient(135deg, #ef6670, #d94350); }
.report-card-cyan { background: linear-gradient(135deg, #1baac6, #087b9d); }
.report-card-orange { background: linear-gradient(135deg, #f4aa28, #e17b13); }
.report-card-indigo { background: linear-gradient(135deg, #526ad7, #3244a4); }
.report-card-slate { background: linear-gradient(135deg, #536980, #34465b); }
.report-card-amber { background: linear-gradient(135deg, #f3a51e, #c96a09); }

.vehicle-report-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vehicle-report-timeline-panel {
  grid-column: 1 / -1;
}

.vehicle-report-panel {
  padding: 14px;
  border: 1px solid #dce5f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(31, 50, 81, .07);
}

.vehicle-report-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.vehicle-report-panel header small {
  color: #71839b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .75px;
}

.vehicle-report-panel header h5 {
  margin: 2px 0 0;
  color: #142a49;
  font-size: 14px;
  font-weight: 800;
}

.vehicle-report-panel header > i {
  color: #2453bd;
  font-size: 21px;
}

.vehicle-report-activity-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 142px;
}

.vehicle-report-donut {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 128px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
}

.vehicle-report-donut > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf1f7;
}

.vehicle-report-donut strong {
  color: #15345d;
  font-size: 21px;
}

.vehicle-report-donut span {
  color: #71839b;
  font-size: 9px;
}

.vehicle-report-legend {
  flex: 1;
  min-width: 155px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vehicle-report-legend li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  border-bottom: 1px solid #edf1f7;
}

.vehicle-report-legend li:last-child { border-bottom: 0; }
.vehicle-report-legend i { width: 8px; height: 8px; border-radius: 50%; }
.vehicle-report-legend span { color: #5d7089; }
.vehicle-report-legend strong { color: #173253; font-size: 11px; }
.legend-green { background: #24b879; }
.legend-red { background: #ef5b67; }
.legend-orange { background: #f2a51a; }
.legend-idle { background: #f2a51a; }
.legend-gray { background: #8a99ad; }

.vehicle-report-range { margin-bottom: 13px; }
.vehicle-report-range:last-child { margin-bottom: 0; }
.vehicle-report-range > div:first-child { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.vehicle-report-range span { color: #52677f; font-size: 11px; }
.vehicle-report-range strong { color: #183251; font-size: 10px; }

.vehicle-report-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf0f7;
}

.vehicle-report-progress > i {
  display: block;
  min-width: 2px;
  height: 100%;
  border-radius: inherit;
  transition: width .3s ease;
}

.metric-green { background: #24b879; }
.metric-blue { background: #2c71df; }

.vehicle-report-timeline {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 150px;
  overflow-x: auto;
  padding-top: 6px;
}

.vehicle-report-timeline-item {
  display: flex;
  align-items: center;
  flex: 1 0 42px;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.vehicle-report-timeline-item strong { margin-bottom: 3px; color: #52677f; font-size: 9px; }
.vehicle-report-timeline-item > i { display: block; width: min(26px, 72%); min-height: 5px; border-radius: 5px 5px 2px 2px; }
.vehicle-report-timeline-item small { margin-top: 5px; color: #71839b; font-size: 8px; white-space: nowrap; }
.vehicle-report-timeline-item .speed-stopped { background: #ef5b67; }
.vehicle-report-timeline-item .speed-normal { background: #24b879; }
.vehicle-report-timeline-item .speed-medium { background: #f2a51a; }
.vehicle-report-timeline-item .speed-high { background: #7158d9; }

.vehicle-report-telemetry { margin-top: 10px; }
.vehicle-report-telemetry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }

.vehicle-report-metric {
  min-height: 92px;
  padding: 11px;
  border: 1px solid #e1e8f2;
  border-radius: 10px;
  background: #f8faff;
}

.vehicle-report-metric > span,
.vehicle-report-metric > strong,
.vehicle-report-metric > small { display: block; }
.vehicle-report-metric > span { color: #5c708a; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.vehicle-report-metric > span i { margin-right: 4px; color: #2453bd; }
.vehicle-report-metric > strong { margin: 7px 0 5px; color: #132f54; font-size: 17px; }
.vehicle-report-metric > small { color: #708198; font-size: 9px; line-height: 1.35; }
.vehicle-report-metric .vehicle-report-progress { margin: 6px 0; }

.vehicle-report-idle { margin-top: 10px; }

.vehicle-report-idle-config {
  margin: 3px 0 14px;
  padding: 12px 13px 4px;
  border: 1px solid #d9e2f1;
  border-radius: 11px;
  background: linear-gradient(135deg, #f8fbff, #fff9ef);
}

.vehicle-report-idle-config-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #274a79;
}

.vehicle-report-idle-config-title > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #f2a51a;
  color: #fff;
}

.vehicle-report-idle-config-title strong,
.vehicle-report-idle-config-title small {
  display: block;
}

.vehicle-report-idle-config-title small {
  margin-top: 2px;
  color: #71829a;
  font-size: 10px;
}

.vehicle-report-idle-config label {
  color: #405a7c;
  font-size: 11px;
}

.vehicle-report-idle-config .help-block {
  margin: 4px 0 0;
  color: #7a899d;
  font-size: 9px;
}

.vehicle-report-idle-rule {
  margin-bottom: 12px;
  padding: 9px 11px;
  border: 1px solid #f3ddb0;
  border-radius: 8px;
  background: #fff8e8;
  color: #76511a;
  font-size: 10px;
  line-height: 1.5;
}

.vehicle-report-idle-rule i { margin-right: 5px; color: #d9850e; }
.vehicle-report-idle-message { margin: 0; font-size: 11px; }

.vehicle-report-idle-empty {
  padding: 18px;
  border: 1px dashed #b9dfcd;
  border-radius: 9px;
  background: #f1fbf6;
  color: #257653;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.vehicle-report-idle-empty i { margin-right: 5px; }

.vehicle-report-idle-table {
  max-height: 320px;
  border: 1px solid #e3e9f1;
  border-radius: 9px;
}

.vehicle-report-idle-table table { margin-bottom: 0; color: #233c5c; font-size: 10px; }
.vehicle-report-idle-table thead th { position: sticky; z-index: 2; top: 0; background: #fff1d8; color: #70470c; }
.vehicle-report-idle-table td { vertical-align: middle !important; }
.vehicle-report-idle-table .btn-link { margin: 0; padding: 0; color: #2453bd; font-size: 10px; }
.vehicle-report-coordinate { display: block; margin-top: 2px; color: #7a899e; font-size: 8px; }

.vehicle-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin: 13px 0 8px;
}

.vehicle-report-table-wrap {
  max-height: 440px;
  border: 1px solid #dce5f2;
  border-radius: 10px;
}

.vehicle-report-table-wrap table { margin-bottom: 0; color: #233c5c; font-size: 11px; }
.vehicle-report-table-wrap thead th { position: sticky; z-index: 2; top: 0; background: #eaf1fb; color: #17345b; }
.vehicle-report-table-wrap td { vertical-align: middle !important; }
.vehicle-report-date { white-space: nowrap; }
.vehicle-report-tags { min-width: 250px; }

.report-tag {
  display: inline-block;
  margin: 2px 2px 2px 0;
  padding: 3px 6px;
  border-radius: 999px;
  background: #e9eff7;
  color: #3d536f;
  font-size: 9px;
  font-weight: 700;
}

.tag-green { background: #dff7ec; color: #168653; }
.tag-blue { background: #e1edff; color: #235ebe; }
.tag-orange { background: #fff0d5; color: #a96709; }
.tag-purple, .tag-indigo { background: #ede8ff; color: #6246b8; }
.tag-gray { background: #e9edf2; color: #56677b; }
.printable-only { display: none; }

.vehicle-report-print-header {
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8mm;
  padding-bottom: 4mm;
  border-bottom: 2px solid #2453bd;
}

.vehicle-report-print-header > div:first-child > strong {
  color: #2453bd;
  font-size: 12px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.vehicle-report-print-header h2 {
  margin: 2px 0 0;
  color: #102b55;
  font-size: 21px;
}

.vehicle-report-print-meta {
  text-align: right;
}

.vehicle-report-print-meta b,
.vehicle-report-print-meta span,
.vehicle-report-print-meta small {
  display: block;
}

.vehicle-report-print-meta b { color: #102b55; font-size: 12px; }
.vehicle-report-print-meta span { margin-top: 2px; color: #455b77; font-size: 10px; }
.vehicle-report-print-meta small { margin-top: 2px; color: #74849a; font-size: 8px; }

@media (max-width: 900px) {
  .vehicle-report-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vehicle-report-telemetry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .vehicle-report-card-grid,
  .vehicle-report-chart-grid,
  .vehicle-report-telemetry-grid { grid-template-columns: 1fr; }
  .vehicle-report-timeline-panel { grid-column: auto; }
  .vehicle-report-activity-body { align-items: stretch; flex-direction: column; }
  .vehicle-report-donut { margin: 0 auto; }
  .vehicle-report-identity-main { width: 100%; }
}

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

  html,
  body,
  .modal,
  .modal-dialog,
  .modal-content,
  .modal-body,
  .tab-content,
  .tab-pane {
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body,
  .modal-content,
  .modal-body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .modal-backdrop,
  .modal-header,
  .modal-footer,
  .nav-tabs,
  .non-printable {
    display: none !important;
  }

  .printable-only {
    display: flex !important;
  }

  .vehicle-report-overview { font-size: 10px; }
  .vehicle-report-card-grid { grid-template-columns: repeat(4, 1fr); }
  .vehicle-report-chart-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicle-report-telemetry-grid { grid-template-columns: repeat(3, 1fr); }
  .vehicle-report-table-wrap { max-height: none; overflow: visible; }
  .vehicle-report-idle-table { max-height: none; overflow: visible; }
  .vehicle-report-card,
  .vehicle-report-panel,
  .vehicle-report-identity,
  .vehicle-report-metric {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
  }

  .vehicle-report-table-wrap {
    border: 0;
    border-radius: 0;
  }

  .vehicle-report-table-wrap thead {
    display: table-header-group;
  }

  .vehicle-report-idle-table thead {
    display: table-header-group;
  }

  .vehicle-report-table-wrap tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .vehicle-report-idle-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .vehicle-report-table-wrap thead th {
    position: static;
  }

  .vehicle-report-idle-table thead th {
    position: static;
  }
}
/* Usuários secundários e seleção de veículos — V92 */
.client-subusers-modal .modal-dialog { max-width: 980px; width: calc(100% - 30px); }
.client-subusers-header { background: linear-gradient(135deg, #173f9f, #2866cf); color: #fff; border-radius: 8px 8px 0 0; }
.client-subusers-header .close { color: #fff; opacity: .85; }
.client-subusers-header h3 { font-size: 20px; font-weight: 700; }
.client-subusers-header p { margin: 6px 0 0; color: #dce8ff; }
.client-subusers-body { background: #f5f8fc; min-height: 500px; }
.client-subusers-list-column { border-right: 1px solid #dbe4f0; min-height: 455px; }
.client-subusers-empty { padding: 28px 10px; color: #6b7b91; text-align: center; }
.client-subuser-list-item { display: block; width: 100%; margin-top: 10px; padding: 11px 12px; text-align: left; border: 1px solid #d9e3ef; border-radius: 8px; background: #fff; color: #20324d; }
.client-subuser-list-item strong, .client-subuser-list-item span, .client-subuser-list-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-subuser-list-item span { color: #466383; }
.client-subuser-list-item small { margin-top: 4px; color: #6c7f97; }
.client-subuser-list-item.active { border-color: #2464ce; box-shadow: 0 0 0 2px rgba(36,100,206,.12); }
.client-subuser-list-item.inactive { opacity: .62; }
.client-subusers-form-column { padding-left: 25px; }
.client-subusers-form-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; color: #17345c; font-size: 16px; }
.client-subusers-form-title span { font-size: 12px; color: #71829a; }
.client-subusers-form-column label sup { color: #d43f3a; font-size: 12px; }
.client-subuser-help { display: block; margin-top: 4px; color: #74849a; font-size: 11px; line-height: 1.35; }
.client-subuser-field-error { display: block; margin-top: 4px; color: #c9302c; font-size: 11px; font-weight: 700; }
.client-subusers-server-error { margin-bottom: 14px; }
.client-subuser-active { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: #eef5ff; border-radius: 7px; }
.client-subuser-active span { color: #64768e; font-size: 12px; }
.client-subusers-permissions { margin-top: 15px; padding: 13px; border: 1px solid #d9e4f1; border-radius: 9px; background: #fff; }
.client-subusers-permission-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; }
.client-subusers-permission-head strong, .client-subusers-permission-head span { display: block; }
.client-subusers-permission-head strong { color: #17345c; }
.client-subusers-permission-head span { color: #6d7d93; font-size: 11px; }
.client-subusers-permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 7px; }
.client-subuser-permission { display: flex; align-items: flex-start; gap: 8px; min-height: 58px; margin: 0; padding: 9px; border: 1px solid #e0e7f0; border-radius: 7px; background: #f8fafc; cursor: pointer; }
.client-subuser-permission.selected { border-color: #70a7e9; background: #edf5ff; }
.client-subuser-permission.mandatory { align-items: center; min-height: 52px; border-color: #9bd8bc; background: #eefbf4; cursor: default; }
.client-subuser-permission input { margin-top: 3px; }
.client-subuser-permission span, .client-subuser-permission strong, .client-subuser-permission small { display: block; }
.client-subuser-permission strong { color: #203a5c; font-size: 12px; }
.client-subuser-permission small { margin-top: 2px; color: #687b92; font-size: 10px; font-weight: 400; line-height: 1.35; }
.client-subuser-permission em { margin-left: auto; padding: 3px 6px; border-radius: 999px; background: #28a36a; color: #fff; font-size: 9px; font-style: normal; }
.client-subusers-vehicle-head { display: flex; justify-content: space-between; align-items: center; margin-top: 17px; }
.client-subusers-vehicle-head strong, .client-subusers-vehicle-head span { display: block; }
.client-subusers-vehicle-head span { color: #6d7d93; font-size: 12px; }
.client-subusers-vehicle-search { margin: 9px 0; }
.client-subusers-vehicles { max-height: 220px; overflow-y: auto; border: 1px solid #dbe4f0; border-radius: 8px; background: #fff; padding: 5px; }
.client-subusers-single-vehicle { display: flex; align-items: center; gap: 11px; margin-top: 17px; padding: 12px 14px; color: #29496d; background: #eef7ff; border: 1px solid #cfe3f7; border-radius: 9px; }
.client-subusers-single-vehicle > i { flex: 0 0 auto; color: #2765c7; font-size: 27px; }
.client-subusers-single-vehicle span, .client-subusers-single-vehicle strong, .client-subusers-single-vehicle small { display: block; }
.client-subusers-single-vehicle span { color: #56708f; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.client-subusers-single-vehicle strong { margin-top: 2px; color: #17385f; font-size: 13px; }
.client-subusers-single-vehicle small { color: #6d7d93; font-size: 11px; }
.client-subuser-vehicle-error { margin: 5px 0 0; }
.client-subuser-vehicle { display: flex; align-items: center; gap: 9px; margin: 0; padding: 9px; border-radius: 6px; cursor: pointer; }
.client-subuser-vehicle:hover { background: #f1f6fd; }
.client-subuser-vehicle.selected { background: #e7f1ff; }
.client-subuser-vehicle span, .client-subuser-vehicle strong, .client-subuser-vehicle small { display: block; }
.client-subuser-vehicle small { color: #687b92; font-weight: 400; }
.client-subusers-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.client-subusers-actions .client-subusers-delete { margin-right: auto; }
.client-subusers-audit { margin-top: 22px; padding-top: 18px; border-top: 1px solid #d7e1ed; }
.client-subusers-audit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.client-subusers-audit-head strong, .client-subusers-audit-head span { display: block; }
.client-subusers-audit-head strong { color: #17345c; font-size: 15px; }
.client-subusers-audit-head span { color: #6d7d93; font-size: 11px; }
.client-subusers-audit-table { max-height: 260px; border: 1px solid #dbe4f0; border-radius: 8px; background: #fff; }
.client-subusers-audit-table table { margin: 0; font-size: 11px; }
.client-subusers-audit-table thead th { position: sticky; z-index: 1; top: 0; background: #eaf1fb; color: #294563; }
.client-subusers-audit-table td { vertical-align: middle !important; }
.client-subusers-audit-table td strong, .client-subusers-audit-table td small { display: block; }
.client-subusers-audit-table td small { margin-top: 2px; color: #71829a; }
.client-subusers-pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; color: #5f728b; font-size: 11px; }
.client-subusers-pagination .btn + .btn { margin-left: 5px; }
@media (max-width: 767px) {
  .client-subusers-modal .modal-dialog { width: calc(100% - 10px); margin: 5px; }
  .client-subusers-body { min-height: 0; }
  .client-subusers-list-column { min-height: 0; border-right: 0; border-bottom: 1px solid #dbe4f0; padding-bottom: 12px; }
  .client-subusers-form-column { padding: 15px; }
  .client-subusers-vehicles { max-height: 190px; }
  .client-subusers-permission-grid { grid-template-columns: 1fr; }
  .client-subusers-permission-head, .client-subusers-audit-head { align-items: stretch; flex-direction: column; }
  .client-subusers-actions { flex-wrap: wrap; }
  .client-subusers-actions .client-subusers-delete { width: 100%; margin-right: 0; }
  .client-subusers-pagination { align-items: stretch; flex-direction: column; }
}

/* Padrao final de modais - 2026-08-18 */
.client-financial-modal .modal-content {
  overflow: hidden;
  border-radius: 16px;
}

.client-financial-modal .financial-modal-shell,
.client-financial-modal .financial-modal-header {
  border-radius: 16px 16px 0 0;
}

.vehicle-modal-heading {
  margin-right: 44px;
  margin-bottom: 10px;
}

.vehicle-modal-heading .vehicle-title {
  margin-bottom: 0;
}


/* alerts-multiline-v5 */
.client-alert-center-list .client-overview-alert-message > span,
.client-alert-event-message {
  white-space: pre-line !important;
}

/* Mantem o painel abaixo das faixas administrativas/financeiras. */
body.admin-impersonating #client-vehicle-sidebar,
body.admin-impersonating #client-vehicle-sidebar-open,
body.account-financial-overdue #client-vehicle-sidebar,
body.account-financial-overdue #client-vehicle-sidebar-open {
  top: 140px;
}

body.account-double-banner #client-vehicle-sidebar,
body.account-double-banner #client-vehicle-sidebar-open {
  top: 182px;
}

@media (max-width: 767px) {
  body.admin-impersonating #client-vehicle-sidebar,
  body.admin-impersonating #client-vehicle-sidebar-open,
  body.account-financial-overdue #client-vehicle-sidebar,
  body.account-financial-overdue #client-vehicle-sidebar-open {
    top: 104px;
  }

  body.account-double-banner #client-vehicle-sidebar,
  body.account-double-banner #client-vehicle-sidebar-open {
    top: 158px;
  }
}

/* Relatorio: atalhos de periodo centralizados e modernos */
.vehicle-report-period-picker {
  padding: 2px 0 4px;
  text-align: center;
}

.vehicle-report-period-label {
  display: block;
  margin: 0 0 9px;
  color: #2e486a;
  font-size: 12px;
  text-align: center;
}

.vehicle-report-period-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vehicle-report-period-buttons .btn {
  min-width: 54px;
  margin: 0 !important;
  padding: 6px 14px;
  border: 1px solid #d8e1ed;
  border-radius: 18px !important;
  background: #fff;
  color: #405873;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 2px 7px rgba(22, 48, 84, 0.08);
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.vehicle-report-period-buttons .btn:hover,
.vehicle-report-period-buttons .btn:focus {
  border-color: #9fb3ce;
  background: #f5f8fc;
  color: #1940A3;
  outline: none;
  box-shadow: 0 3px 9px rgba(22, 48, 84, 0.12);
}

.vehicle-report-period-buttons .btn.btn-primary,
.vehicle-report-period-buttons .btn.btn-primary:hover,
.vehicle-report-period-buttons .btn.btn-primary:focus {
  border-color: #1940A3;
  background: #1940A3;
  color: #fff;
  box-shadow: 0 4px 11px rgba(25, 64, 163, 0.24);
}

@media (max-width: 480px) {
  .vehicle-report-period-buttons { gap: 6px; }
  .vehicle-report-period-buttons .btn {
    min-width: 49px;
    padding: 6px 11px;
  }
}

/* Relatorio: acoes principais centralizadas sob os atalhos de periodo */
.vehicle-report-primary-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.vehicle-report-primary-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 156px;
  min-height: 40px;
  padding: 9px 18px;
  border: 0;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 5px 14px rgba(23, 49, 92, .14);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.vehicle-report-primary-actions .btn:hover,
.vehicle-report-primary-actions .btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(23, 49, 92, .20);
  filter: brightness(1.03);
}

.vehicle-report-primary-actions .btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 9px rgba(23, 49, 92, .14);
}

.vehicle-report-generate-btn,
.vehicle-report-generate-btn:hover,
.vehicle-report-generate-btn:focus {
  background: #1940A3;
  color: #fff;
}

.vehicle-report-map-btn,
.vehicle-report-map-btn:hover,
.vehicle-report-map-btn:focus {
  background: #36a852;
  color: #fff;
}

.vehicle-report-primary-actions i {
  font-size: 14px;
}

@media (max-width: 520px) {
  .vehicle-report-primary-actions {
    gap: 8px;
  }

  .vehicle-report-primary-actions .btn {
    flex: 1 1 145px;
    min-width: 0;
  }
}



/* LEAL: relatorio - criterios de tempo ocioso recolhidos por padrao */
details.vehicle-report-idle-config > summary.vehicle-report-idle-config-title {
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
  user-select: none;
}

details.vehicle-report-idle-config > summary.vehicle-report-idle-config-title::-webkit-details-marker {
  display: none;
}

details.vehicle-report-idle-config > summary.vehicle-report-idle-config-title::after {
  content: "Ajustar";
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid #d4dfef;
  border-radius: 999px;
  background: #fff;
  color: #31527d;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

details.vehicle-report-idle-config[open] > summary.vehicle-report-idle-config-title {
  margin-bottom: 10px;
}

details.vehicle-report-idle-config[open] > summary.vehicle-report-idle-config-title::after {
  content: "Fechar";
}
