:root {
  --e-global-color-primary: #ff6900;    /* laranja vivo (OTEP) */
  --e-global-color-secondary: #32373c;  /* cinza chumbo */
  --e-global-color-text: #32373c;       /* texto principal */
  --e-global-color-accent: #fcb900;     /* âmbar destaque */
  --e-global-color-3c70ced: #ffffff;    /* branco */
  --e-global-color-7dae7aa: #0c0d0e;    /* quase preto */
}

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

body.sb-body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: #f7f7f7;
  color: var(--e-global-color-text);
  text-transform: uppercase; /* Visual only: render all text in uppercase */
}

/* Ensure form controls also render uppercase visually without altering actual values */
input,
textarea,
select,
button {
  text-transform: uppercase;
}

.sidebar {
  min-height: 100vh;
  width: 240px;
  background: #0c0d0e;
  color: #fff;
  position: sticky;
  top: 0;
}

.sidebar .list-group-item {
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  border: none;
  padding: 12px 16px;
  font-weight: 600;
}

.sidebar .list-group-item:hover,
.sidebar .list-group-item:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar .list-group-item.active {
  color: #fff;
  background: var(--e-global-color-primary);
  border-left: 3px solid var(--e-global-color-primary);
  font-weight: 700;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  font-weight: 700;
}

.sidebar-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: #fff;
}

#wrapper.toggled .sidebar {
  margin-left: -240px;
}

#page-content-wrapper {
  flex: 1;
  min-height: 100vh;
}

.card-sb {
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border-radius: 0.7rem;
  background: #fff;
}

.card-sb .card-header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 700;
  color: var(--e-global-color-7dae7aa);
}

.chart-card canvas {
  width: 100% !important;
  height: 300px !important;
  image-rendering: optimizeQuality;
}

.metric-badge {
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 105, 0, 0.12);
  color: var(--e-global-color-primary);
  padding: 6px 10px;
  border-radius: 999px;
}

.table thead th {
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--e-global-color-7dae7aa);
}

.table-vehicles tbody tr:hover {
  background: rgba(255, 105, 0, 0.06);
}

.table-vehicles .fw-semibold {
  color: var(--e-global-color-7dae7aa);
}

/* Input icon overlay for placa search */
.input-with-icon {
  position: relative;
}
.input-with-icon .btn-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--e-global-color-7dae7aa);
}
.input-with-icon .btn-icon svg { display: block; }
.input-with-icon .btn-icon { 
  z-index: 9999; 
  background: var(--e-global-color-primary); 
  color: #fff; 
  border-radius: 6px; 
  padding: 6px; 
  min-width: 36px; 
  height: 36px; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.input-with-icon input.form-control {
  padding-right: 56px;
}

/* Login page layout */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.login-card { width: 420px; border-radius: 8px; }

/* Split login card (promo left + form right) */

/* Split login card (promo left + form right) */
.login-split {
  width: 900px;
  max-width: 98%;
  overflow: hidden;
  border-radius: 16px;
  display: flex;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  margin: 0 auto;
}

.login-split .login-divider {
  width: 1px;
  margin: 20px 18px;
  align-self: center;
  height: 72%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(0,0,0,0.06));
  border-radius: 2px;
} 

/* promo left */
/* promo left */
.login-split .login-left {
  flex: 1 1 50%;
  background: linear-gradient(135deg, rgba(255,105,0,1), rgba(180,80,0,1));
  color: #fff;
  padding: 56px 48px 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 380px;
  max-width: 520px;
}
.login-split .login-right {
  flex: 1 1 55%;
  background: #ffffff;
  min-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-left .brand-area {
  display: flex; gap: 18px; align-items: flex-start;
}
.brand-box {
  width: 240px;
  height: 240px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
}
.brand-separator { width: 1px; height: 80%; background: rgba(255,255,255,0.16); align-self: center; border-radius: 2px; margin: 0 10px; }
.brand-info { max-width: 100%; }
.brand-title { margin-top: 6px; color: #fff; font-weight: 700; }
.login-left p { color: rgba(255,255,255,0.9); margin-top: 8px; margin-bottom: 0; }
.login-left-footer { font-size: 12px; opacity: 0.85; }

/* Hero button (red/orange gradient) */
.btn-hero {
  background: linear-gradient(90deg, var(--e-global-color-primary), #b14f00);
  border: none; color: #fff; font-weight:700; padding: 10px 18px; border-radius: 8px;
} 

/* Make login card more pronounced (original) */
.login-card { width: 420px; border-radius: 8px; }

/* Small screens: stack panels */
@media (max-width: 900px) {
  .login-split {
    flex-direction: column;
    width: 98%;
    min-width: unset;
    max-width: 99%;
  }
  .login-split .login-left,
  .login-split .login-right {
    min-width: unset;
    max-width: unset;
    width: 100%;
    padding: 20px 10px;
  }
  .login-split .login-left { order: 1; }
  .login-split .login-right { order: 2; }
  .login-left .brand-area { align-items: center; text-align: center; gap: 12px; flex-direction: column; }
  .brand-box { width: 90px; height: 90px; }
  .login-card { width: 99%; }
  .login-split .login-divider { display: none; }
  .brand-separator { display: none; }
}

/* App show animation: scale + fade (faster) */
#wrapper { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .18s cubic-bezier(.2,.9,.2,1), transform .18s cubic-bezier(.2,.9,.2,1); will-change: opacity, transform; }
#wrapper.app-visible { opacity: 1; transform: translateY(0) scale(1); }

/* Ensure bootstrap modal is above other custom elements and interactive */
.modal-backdrop {
  z-index: 1040 !important;
}
.modal {
  z-index: 2000 !important;
}
.modal-dialog {
  z-index: 2001 !important;
}

/* When a modal is open, remove transform on the main wrapper so modal isn't trapped by stacking context.
   Transformed ancestors create a new stacking context which can prevent Bootstrap modals from appearing above.
*/
body.modal-open #wrapper {
  transform: none !important;
}

.filter-pill {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: #f1f4fb;
  padding: 8px 12px;
  border-radius: 14px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #dce3f0;
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.filter-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  min-width: 120px;
  color: var(--e-global-color-text);
}

.filter-input::placeholder {
  color: #9aa7bd;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
}

.status-available {
  background: #00d084;
}

.status-out {
  background: #ff6900;
}

.status-maintenance {
  background: #fcb900;
}

.badge-soft {
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-soft-primary {
  background: rgba(50, 55, 60, 0.08);
  color: var(--e-global-color-7dae7aa);
}

.badge-soft-success {
  background: rgba(0, 208, 132, 0.12);
  color: #009d70;
}

.badge-soft-warning {
  background: rgba(252, 185, 0, 0.16);
  color: #b27700;
}

.badge-soft-danger {
  background: #ffe7e7;
  color: #b61f1f;
}

.avatar-sm {
  width: 36px;
  height: 36px;
}

.btn-primary {
  background: var(--e-global-color-primary);
  border-color: var(--e-global-color-primary);
  font-weight: 700;
}

.btn-primary:hover {
  background: #e35f00;
  border-color: #e35f00;
}

.table-card {
  overflow: hidden;
  border-radius: 0.7rem;
}

@media (max-width: 992px) {
  #wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    min-height: auto;
  }
  #wrapper.toggled .sidebar {
    margin-left: 0;
  }
}
