:root {
  --app-sidebar-width: 17rem;
  --app-header-height: 4rem;
  --app-bg: #f4f6f9;
  --app-sidebar-bg: #17212b;
  --theme-primary: #198754;
  --theme-primary-rgb: 25, 135, 84;
  --theme-primary-dark: #146c43;
  --theme-contrast: #fff;
}

:root[data-theme="skin-blue"] {
  --theme-primary: #3c8dbc;
  --theme-primary-rgb: 60, 141, 188;
  --theme-primary-dark: #307095;
  --theme-contrast: #fff;
}

:root[data-theme="skin-green"] {
  --theme-primary: #198754;
  --theme-primary-rgb: 25, 135, 84;
  --theme-primary-dark: #146c43;
  --theme-contrast: #fff;
}

:root[data-theme="skin-purple"] {
  --theme-primary: #605ca8;
  --theme-primary-rgb: 96, 92, 168;
  --theme-primary-dark: #4d4986;
  --theme-contrast: #fff;
}

:root[data-theme="skin-red"] {
  --theme-primary: #dd4b39;
  --theme-primary-rgb: 221, 75, 57;
  --theme-primary-dark: #b83d2e;
  --theme-contrast: #fff;
}

:root[data-theme="skin-yellow"] {
  --theme-primary: #f39c12;
  --theme-primary-rgb: 243, 156, 18;
  --theme-primary-dark: #c87f0a;
  --theme-contrast: #212529;
}

:root[data-theme="skin-black"] {
  --theme-primary: #212529;
  --theme-primary-rgb: 33, 37, 41;
  --theme-primary-dark: #111315;
  --theme-contrast: #fff;
}

html,
body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--app-bg);
  color: #27313a;
}

.btn-primary,
.btn-success {
  --bs-btn-color: var(--theme-contrast);
  --bs-btn-bg: var(--theme-primary);
  --bs-btn-border-color: var(--theme-primary);
  --bs-btn-hover-color: var(--theme-contrast);
  --bs-btn-hover-bg: var(--theme-primary-dark);
  --bs-btn-hover-border-color: var(--theme-primary-dark);
  --bs-btn-focus-shadow-rgb: var(--theme-primary-rgb);
  --bs-btn-active-color: var(--theme-contrast);
  --bs-btn-active-bg: var(--theme-primary-dark);
  --bs-btn-active-border-color: var(--theme-primary-dark);
  --bs-btn-disabled-color: var(--theme-contrast);
  --bs-btn-disabled-bg: rgba(var(--theme-primary-rgb), .65);
  --bs-btn-disabled-border-color: rgba(var(--theme-primary-rgb), .65);
}

.btn-outline-primary,
.btn-outline-success {
  --bs-btn-color: var(--theme-primary);
  --bs-btn-border-color: var(--theme-primary);
  --bs-btn-hover-color: var(--theme-contrast);
  --bs-btn-hover-bg: var(--theme-primary);
  --bs-btn-hover-border-color: var(--theme-primary);
  --bs-btn-focus-shadow-rgb: var(--theme-primary-rgb);
  --bs-btn-active-color: var(--theme-contrast);
  --bs-btn-active-bg: var(--theme-primary-dark);
  --bs-btn-active-border-color: var(--theme-primary-dark);
}

.btn-whatsapp {
  --bs-btn-color: #fff;
  --bs-btn-bg: #25d366;
  --bs-btn-border-color: #25d366;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1fad53;
  --bs-btn-hover-border-color: #1fad53;
  --bs-btn-focus-shadow-rgb: 37, 211, 102;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #168f43;
  --bs-btn-active-border-color: #168f43;
  color: #fff !important;
  background-color: #25d366 !important;
  border-color: #25d366 !important;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  color: #fff !important;
  background-color: #1fad53 !important;
  border-color: #1fad53 !important;
}

.btn-whatsapp:active {
  color: #fff !important;
  background-color: #168f43 !important;
  border-color: #168f43 !important;
}

.app-shell {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
  grid-template-rows: var(--app-header-height) minmax(calc(100vh - var(--app-header-height)), auto) auto;
  grid-template-areas:
    "header header"
    "sidebar main"
    "sidebar footer";
}

body.sidebar-collapsed .app-shell {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "header"
    "main"
    "footer";
}

.app-header {
  grid-area: header;
  position: sticky;
  top: 0;
  z-index: 1040;
}

.app-navbar {
  background-color: var(--theme-primary);
  color: var(--theme-contrast);
}

.app-navbar .navbar-brand,
.app-navbar .navbar-brand:hover {
  color: var(--theme-contrast);
}

.app-navbar-button {
  color: var(--theme-contrast);
  border: 1px solid rgba(255, 255, 255, .28);
}

.app-navbar-button:hover,
.app-navbar-button:focus {
  color: var(--theme-contrast);
  background: rgba(255, 255, 255, .14);
}

.app-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.app-sidebar {
  grid-area: sidebar;
  width: var(--app-sidebar-width) !important;
  background-color: var(--app-sidebar-bg) !important;
  color: #fff;
}

.app-profile {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .25rem 1rem;
  margin-bottom: .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.app-profile-img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.app-profile span {
  display: block;
  color: rgba(255, 255, 255, .62);
  font-size: .85rem;
}

.app-profile strong {
  display: block;
  color: #fff;
}

body.sidebar-collapsed .app-profile {
  justify-content: flex-start;
}

body.sidebar-collapsed .app-sidebar {
  display: none !important;
}

.sidebar-nav .nav-link,
.sidebar-nav .sidebar-toggle {
  color: rgba(255, 255, 255, .76);
  border-radius: .5rem;
  padding: .65rem .75rem;
  text-decoration: none;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  color: #fff;
  background: rgba(var(--theme-primary-rgb), .84);
}

.app-main,
.right_col {
  grid-area: main;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  padding: 1.5rem;
}

.right_col {
  float: none !important;
  margin: 0 !important;
  width: 100% !important;
  min-height: calc(100vh - var(--app-header-height));
}

.app-footer {
  grid-area: footer;
  padding: 1rem 1.5rem;
  color: #6c757d;
  background: #fff;
  border-top: 1px solid rgba(20, 35, 50, .08);
}

.row {
  --bs-gutter-y: 1rem;
}

.col-xs-12 {
  width: 100%;
}

.col-xs-6 {
  width: 50%;
}

.x_panel,
.tile-stats,
.card {
  border: 0;
  border-radius: .5rem;
  box-shadow: 0 .125rem .5rem rgba(20, 35, 50, .08);
}

.x_panel {
  background: #fff;
  margin-bottom: 1.25rem;
  padding: 1rem;
}

.x_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(20, 35, 50, .08);
}

.x_title h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.x_title small {
  color: #6c757d;
}

.x_title .card-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}

.x_content {
  max-width: 100%;
}

.panel_toolbox {
  display: none !important;
}

.top_tiles {
  row-gap: 1rem;
}

.tile-stats {
  position: relative;
  min-height: 8rem;
  padding: 1.5rem;
  background: #fff;
  overflow: hidden;
}

.tile-stats .icon {
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: rgba(var(--theme-primary-rgb), .16);
  font-size: 3rem;
}

.tile-stats .count {
  position: relative;
  color: #1f2d3d;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
}

.tile-stats h3 {
  position: relative;
  margin: .75rem 0 0;
  color: #6c757d;
  font-size: 1rem;
  font-weight: 500;
}

.table-responsive,
.table {
  max-width: 100%;
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

.text-right {
  text-align: right !important;
}

.pull-right {
  float: right !important;
}

.btn-default {
  --bs-btn-color: #27313a;
  --bs-btn-bg: #f8f9fa;
  --bs-btn-border-color: #dee2e6;
  --bs-btn-hover-color: #27313a;
  --bs-btn-hover-bg: #e9ecef;
  --bs-btn-hover-border-color: #ced4da;
}

.form-group {
  margin-bottom: 1rem;
}

.form-horizontal .control-label {
  margin-bottom: .35rem;
  font-weight: 500;
}

.input-group-addon {
  display: flex;
  align-items: center;
  padding: .375rem .75rem;
  color: #212529;
  background: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: .375rem;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(12rem, 1.05fr) minmax(12rem, 1.05fr) minmax(18rem, 1.6fr) minmax(8rem, auto);
  gap: .75rem;
  align-items: end;
  margin-bottom: 1rem;
}

.filter-toolbar-expences {
  grid-template-columns: minmax(12rem, 1fr) minmax(16rem, 1fr) max-content max-content;
}

.transport-filter-toolbar {
  grid-template-columns: minmax(16rem, 1.4fr) minmax(12rem, 1fr) minmax(10rem, .8fr) minmax(10rem, .8fr) max-content;
}

.transport-followup-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(9rem, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}

.transport-followup-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 4.25rem;
  padding: .85rem 1rem;
  text-align: left;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: .5rem;
  box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .06);
}

.transport-followup-card span {
  color: #475569;
  font-size: .9rem;
  font-weight: 600;
}

.transport-followup-card strong {
  font-size: 1.55rem;
  line-height: 1;
}

.transport-followup-card.is-danger {
  border-color: #fecaca;
}

.transport-followup-card.is-danger strong {
  color: #dc2626;
}

.transport-followup-card.is-warning {
  border-color: #fde68a;
}

.transport-followup-card.is-warning strong {
  color: #b45309;
}

.transport-followup-card.is-primary {
  border-color: #bfdbfe;
}

.transport-followup-card.is-primary strong {
  color: #1d4ed8;
}

.transport-followup-card.is-muted strong {
  color: #64748b;
}

.transport-followup-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 .55rem 1.25rem rgba(15, 23, 42, .1);
}

.filter-toolbar .input-group,
.filter-toolbar .form-control,
.filter-toolbar .form-select,
.filter-toolbar .btn {
  width: 100%;
}

.filter-toolbar .input-group .form-control {
  width: 1%;
}

.filter-toolbar .input-group .btn {
  width: auto;
  min-width: 3.25rem;
  flex: 0 0 auto;
}

#reservation_filters .filter-toolbar > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
}

#reservation_filters .filter-toolbar > div:last-child .btn {
  width: auto !important;
  min-width: 7rem;
}

.filter-toolbar-expences > div:nth-last-child(-n+2) .btn,
.filter-toolbar-expences > div:last-child .btn {
  width: auto !important;
  min-width: 7rem;
}

.modal-body .form-control,
.modal-body .form-select,
.modal-body select,
.modal-body textarea,
.modal-body input[type="text"],
.modal-body input[type="date"],
.modal-body input[type="email"],
.modal-body input[type="password"],
.modal-body input[type="number"],
.modal-body input[type="file"] {
  width: 100% !important;
  max-width: 100%;
}

.modal-body .row {
  --bs-gutter-y: 1rem;
}

.modal-body .col-md-3,
.modal-body .col-md-5,
.modal-body .col-md-6,
.modal-body .col-md-7,
.modal-body .col-md-9,
.modal-body .col-sm-3,
.modal-body .col-sm-5,
.modal-body .col-sm-6,
.modal-body .col-sm-9 {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

.modal-body [class*="col-md-"] > .form-control,
.modal-body [class*="col-sm-"] > .form-control,
.modal-body [class*="col-"] > .form-control {
  display: block;
}

.user-modal-input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}

.user-modal-input-group > .input-group-text {
  flex: 0 0 2.65rem;
  min-width: 2.65rem;
  justify-content: center;
  color: #64748b;
  background: #f8fafc;
  border-right: 0;
}

.user-modal-input-group > .form-control,
.user-modal-input-group > .form-select {
  flex: 1 1 auto;
  width: 1% !important;
  min-width: 0;
  border-left: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-title {
  order: 1;
  margin: 0;
}

.modal-header .close,
.modal-header .btn-close,
.alert .close {
  order: 2;
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: .25em;
  color: #000;
  background: transparent;
  border: 0;
  border-radius: .375rem;
  opacity: .5;
  font-size: 1.25rem;
  line-height: 1;
  margin-left: auto;
}

.modal-header .btn-close {
  background: transparent var(--bs-btn-close-bg) center / 1em auto no-repeat;
}

.pagination {
  gap: .25rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.pagination .page-link {
  border-radius: .375rem;
}

.dashboard-chart {
  min-height: 22rem;
  padding-top: 1rem;
}

.dashboard-chart-card {
  margin-top: 1.5rem;
}

.dashboard-chart canvas {
  width: 100% !important;
  height: 22rem !important;
}

.profit-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(10rem, 1fr));
  gap: .85rem;
  margin-bottom: 1rem;
}

.profit-kpi-card {
  padding: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  box-shadow: 0 .25rem .9rem rgba(20, 35, 50, .05);
}

.profit-kpi-card span,
.profit-kpi-card small {
  display: block;
  color: #64748b;
}

.profit-kpi-card span {
  font-size: .86rem;
  font-weight: 700;
}

.profit-kpi-card strong {
  display: block;
  margin: .35rem 0;
  color: #1f2d3d;
  font-size: 1.35rem;
  line-height: 1.1;
}

.profit-kpi-card.is-positive strong {
  color: var(--theme-primary);
}

.profit-kpi-card.is-negative strong {
  color: #dc3545;
}

.profit-chart-row {
  margin-bottom: 1rem;
}

.profit-chart-card {
  height: 100%;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  box-shadow: 0 .25rem .9rem rgba(20, 35, 50, .05);
}

.profit-chart-head {
  display: grid;
  gap: .15rem;
  margin-bottom: .85rem;
}

.profit-chart-head h3 {
  margin: 0;
  color: #1f2d3d;
  font-size: 1rem;
  font-weight: 700;
}

.profit-chart-head span {
  color: #64748b;
  font-size: .88rem;
}

.profit-chart-box {
  position: relative;
  min-height: 20rem;
}

.profit-chart-box canvas {
  width: 100% !important;
  height: 20rem !important;
}

.ajax-alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border: 0;
  box-shadow: 0 .5rem 1rem rgba(20, 35, 50, .08);
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .app-shell {
    display: block;
  }

  .app-main,
  .right_col,
  .app-footer {
    width: 100%;
  }

  .filter-toolbar {
    grid-template-columns: 1fr;
  }

  .profit-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .filter-toolbar {
    white-space: nowrap;
  }
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(25, 135, 84, .10), rgba(60, 141, 188, .14)),
    #f4f6f9;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.login-panel {
  width: min(100%, 25rem);
  padding: 1.5rem;
  background: #fff;
  border-radius: .5rem;
  box-shadow: 0 .75rem 2rem rgba(20, 35, 50, .12);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  color: #1f2d3d;
}

.login-brand i {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: .5rem;
  color: #fff;
  background: var(--theme-primary);
  font-size: 1.5rem;
}

.login-brand h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.login-footer {
  margin: 1.25rem 0 0;
  color: #6c757d;
  font-size: .9rem;
  text-align: center;
}

.transport-request-dialog {
  max-width: min(100% - 2rem, 68rem);
}

.transport-request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.request-section {
  min-width: 0;
}

.request-section .row {
  display: flex;
  flex-wrap: wrap;
}

.request-section .col-md-4 {
  width: 33.333333%;
  max-width: 33.333333%;
  flex: 0 0 auto;
}

.request-section .col-md-6 {
  width: 50%;
  max-width: 50%;
  flex: 0 0 auto;
}

.request-section .col-lg-6 {
  width: 50%;
  max-width: 50%;
  flex: 0 0 auto;
}

.request-section-full {
  grid-column: 1 / -1;
}

.request-section h5 {
  margin: 0 0 .65rem;
  font-size: .98rem;
  font-weight: 700;
  color: #1f2d3d;
}

.request-section .input-group-text {
  min-width: 2.65rem;
  justify-content: center;
  color: #64748b;
  background: #f8fafc;
}

.request-section .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}

.request-section .input-group > .input-group-text {
  flex: 0 0 2.65rem;
  margin-right: 0;
  border-right: 0;
}

.request-section .input-group > .form-control,
.request-section .input-group > .form-select {
  flex: 1 1 auto;
  width: 1% !important;
  min-width: 0;
  border-left: 0;
}

.request-created-note {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .75rem;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .45rem;
  font-size: .9rem;
}

@media (min-width: 768px) {
  .transport-row-start {
    clear: left;
  }
}

.request-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.request-chip {
  border: 1px solid rgba(13, 110, 253, .25);
  border-radius: 999px;
  padding: .45rem .8rem;
  color: #0d47d9;
  background: rgba(13, 110, 253, .08);
  font-weight: 700;
  line-height: 1;
}

.request-chip:hover {
  background: rgba(13, 110, 253, .14);
}

.request-chip-sm {
  padding: .4rem .65rem;
  color: #25324a;
  background: #f8f9fa;
  border-color: #dee2e6;
  font-size: .86rem;
}

.contact-history-box {
  min-height: 3rem;
  max-height: 13rem;
  overflow: auto;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  padding: .75rem;
  background: #f8f9fa;
}

.transport-detail-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: .5rem;
  box-shadow: 0 .25rem .9rem rgba(20, 35, 50, .05);
}

.transport-detail-header h2 {
  margin: 0 0 .5rem;
  font-size: 1.45rem;
  font-weight: 700;
}

.transport-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .9rem;
  color: #64748b;
}

.transport-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.transport-detail-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .45rem;
}

.transport-detail-status strong {
  font-size: 1.35rem;
  color: #1f2d3d;
}

.transport-request-summary-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 1rem;
}

.transport-summary-card {
  min-width: 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: .5rem;
  box-shadow: 0 .25rem .9rem rgba(20, 35, 50, .05);
}

.transport-summary-card span {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .45rem;
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
}

.transport-summary-card span i {
  color: var(--theme-primary);
}

.transport-summary-card strong,
.transport-summary-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transport-summary-card strong {
  color: #1f2d3d;
  font-size: 1rem;
}

.transport-summary-card small {
  margin-top: .2rem;
  color: #64748b;
}

.transport-reservation-brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.transport-brief-list {
  display: grid;
  gap: .7rem;
}

.transport-brief-list > div {
  padding: .75rem .85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .45rem;
}

.transport-brief-list span {
  display: block;
  margin-bottom: .2rem;
  color: #64748b;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.transport-brief-list strong {
  display: block;
  color: #1f2d3d;
  font-size: .95rem;
  line-height: 1.35;
}

.transport-edit-panel .x_title {
  margin-bottom: 1rem;
}

.transport-detail-form .input-group-text {
  min-width: 2.65rem;
  justify-content: center;
  color: #64748b;
  background: #f8fafc;
}

.transport-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.transport-followup-panel .x_title {
  margin-bottom: 1rem;
}

.transport-section-subtitle {
  margin: 0 0 .65rem;
  font-size: .98rem;
  font-weight: 700;
  color: #1f2d3d;
}

.transport-followup-form {
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
}

.transport-timeline {
  position: relative;
  display: grid;
  gap: .85rem;
  max-height: 34rem;
  overflow: auto;
  padding-right: .35rem;
}

.transport-timeline-item {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: .75rem;
}

.transport-timeline-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  color: #0d6efd;
  background: rgba(13, 110, 253, .1);
  border: 1px solid rgba(13, 110, 253, .18);
  border-radius: 50%;
}

.transport-timeline-content {
  padding: .85rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: .5rem;
}

.transport-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .45rem;
}

.transport-timeline-head > div {
  min-width: 0;
}

.transport-timeline-head form {
  flex: 0 0 auto;
  margin: 0;
}

.transport-timeline-head span,
.transport-timeline-user {
  color: #64748b;
  font-size: .86rem;
}

.transport-timeline-content p {
  margin: 0 0 .6rem;
  color: #1f2d3d;
}

.transport-empty-state {
  display: grid;
  place-items: center;
  gap: .4rem;
  min-height: 13rem;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: .5rem;
}

.transport-empty-state i {
  font-size: 1.75rem;
}

.transport-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.transport-module-header h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1f2d3d;
}

.transport-module-header p {
  margin: .25rem 0 0;
  color: #64748b;
}

.transport-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.transport-info-card {
  padding: 1rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: .5rem;
  box-shadow: 0 .25rem .9rem rgba(20, 35, 50, .05);
}

.transport-info-card span,
.transport-info-card small {
  display: block;
  color: #64748b;
}

.transport-info-card strong {
  display: block;
  margin: .35rem 0;
  font-size: 1.75rem;
  line-height: 1;
  color: #1f2d3d;
}

.transport-calendar-panel {
  margin-top: 1rem;
}

.transport-calendar-panel .x_content {
  padding-top: 1rem;
}

.transport-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  margin-bottom: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
}

.transport-calendar-copy {
  display: grid;
  gap: .15rem;
}

.transport-calendar-copy strong {
  color: #1f2d3d;
}

.transport-calendar-copy span {
  color: #64748b;
  font-size: .9rem;
}

.transport-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem .85rem;
  color: #475569;
  font-size: .88rem;
}

.transport-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.legend-dot {
  width: .65rem;
  height: .65rem;
  display: inline-block;
  border-radius: 50%;
}

.legend-dot-programada {
  background: #1d4ed8;
}

.legend-dot-ruta {
  background: #b45309;
}

.legend-dot-finalizada {
  background: #166534;
}

.legend-dot-cancelada {
  background: #991b1b;
}

#transportReservationCalendar {
  min-height: 38rem;
  padding: .35rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: .5rem;
}

.fc .fc-header-toolbar {
  gap: .85rem;
  align-items: center;
}

.fc .fc-toolbar-chunk {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.fc .fc-button-group {
  gap: .35rem;
}

.fc .fc-button-group > .fc-button {
  margin-left: 0 !important;
}

.fc .fc-toolbar-title {
  color: #1f2d3d;
  font-size: 1.25rem;
  font-weight: 700;
}

.fc .fc-button {
  padding: .45rem .8rem;
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  border-radius: .4rem !important;
  box-shadow: none !important;
  text-transform: capitalize;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background: #1f2d3d;
  border-color: #1f2d3d;
}

.fc .fc-col-header-cell {
  padding: .55rem 0;
  background: #f8fafc;
}

.fc .fc-col-header-cell-cushion {
  color: #475569;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fc .fc-daygrid-day-number {
  color: #1f2d3d;
  font-weight: 700;
}

.fc .fc-day-today {
  background: rgba(13, 110, 253, .06) !important;
}

.fc .fc-daygrid-day-frame {
  padding: .25rem;
}

.fc .transport-fc-event,
.fc .transport-fc-event:hover,
.fc .transport-fc-event .fc-event-main,
.fc .transport-fc-event .fc-event-main-frame,
.fc .transport-fc-event .fc-event-title-container,
.fc .transport-fc-event .fc-event-title {
  background: transparent !important;
  border: 0 !important;
}

.fc .fc-event.transport-fc-event {
  display: block;
  border: 0 !important;
  border-radius: .45rem;
  overflow: hidden;
  background: transparent !important;
  box-shadow: none;
}

.fc .fc-daygrid-event.transport-fc-event {
  margin-top: .25rem;
}

.transport-calendar-event {
  display: block;
  width: 100%;
  padding: .35rem .45rem;
  color: #fff !important;
  min-height: 2.25rem;
  border-radius: .45rem;
  line-height: 1.2;
  box-shadow: 0 .25rem .75rem rgba(20, 35, 50, .18);
}

.fc .transport-fc-event,
.fc .transport-fc-event a,
.fc .transport-fc-event .fc-event-main,
.fc .transport-fc-event .fc-event-title,
.fc .transport-fc-event .fc-event-time,
.fc .transport-fc-event .transport-calendar-event *,
.fc .transport-fc-event .transport-calendar-event strong {
  color: #fff !important;
}

.transport-calendar-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  margin-bottom: .15rem;
}

.transport-event-time,
.transport-event-status {
  font-size: .72rem;
  opacity: .92;
}

.transport-event-status {
  padding: .1rem .32rem;
  color: #fff !important;
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
}

.transport-calendar-event strong {
  display: block;
  overflow: hidden;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transport-reservation-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
}

.transport-reservation-summary h5 {
  margin: .55rem 0 .25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.transport-reservation-summary p {
  margin: 0;
  color: #64748b;
}

.transport-reservation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .5rem;
}

.transport-reservation-actions form {
  margin: 0;
}

.transport-reservation-convert-panel > .x_content > .transport-reservation-form {
  display: none;
}

#modalTransportReservation .modal-content > form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 3.5rem);
  min-height: 0;
}

#modalTransportReservation .modal-body {
  overflow-y: auto;
}

#modalTransportReservation .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}

#modalTransportReservation .input-group > .input-group-text {
  flex: 0 0 2.65rem;
  min-width: 2.65rem;
  justify-content: center;
  color: #64748b;
  background: #f8fafc;
  border-right: 0;
}

#modalTransportReservation .input-group > .form-control,
#modalTransportReservation .input-group > .form-select {
  flex: 1 1 auto;
  width: 1% !important;
  min-width: 0;
  border-left: 0;
}

#modalTransportReservation .modal-footer,
#modalTransportReservation .modal-header {
  flex: 0 0 auto;
}

#modalEditTransportRequest .modal-content > form,
#modalEditTransportReservation .modal-content > form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 3.5rem);
  min-height: 0;
}

#modalEditTransportRequest .modal-body,
#modalEditTransportReservation .modal-body {
  overflow-y: auto;
}

#modalEditTransportRequest .input-group,
#modalEditTransportReservation .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}

#modalEditTransportRequest .input-group > .input-group-text,
#modalEditTransportReservation .input-group > .input-group-text {
  flex: 0 0 2.65rem;
  min-width: 2.65rem;
  justify-content: center;
  color: #64748b;
  background: #f8fafc;
  border-right: 0;
}

#modalEditTransportRequest .input-group > .form-control,
#modalEditTransportRequest .input-group > .form-select,
#modalEditTransportReservation .input-group > .form-control,
#modalEditTransportReservation .input-group > .form-select {
  flex: 1 1 auto;
  width: 1% !important;
  min-width: 0;
  border-left: 0;
}

#modalEditTransportRequest .modal-footer,
#modalEditTransportRequest .modal-header,
#modalEditTransportReservation .modal-footer,
#modalEditTransportReservation .modal-header {
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  #modalEditTransportRequest .modal-body .request-edit-half-field,
  #modalTransportReservation .modal-body .reservation-money-field,
  #modalEditTransportReservation .modal-body .reservation-money-field {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
  }
}

#modalCalendarReservation .modal-content > form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 3.5rem);
  min-height: 0;
}

#modalCalendarReservation .modal-body {
  overflow-y: auto;
}

#modalCalendarReservation .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}

#modalCalendarReservation .input-group > .input-group-text {
  flex: 0 0 2.65rem;
  min-width: 2.65rem;
  justify-content: center;
  color: #64748b;
  background: #f8fafc;
  border-right: 0;
}

#modalCalendarReservation .input-group > .form-control,
#modalCalendarReservation .input-group > .form-select {
  flex: 1 1 auto;
  width: 1% !important;
  min-width: 0;
  border-left: 0;
}

#modalCalendarReservation .modal-footer,
#modalCalendarReservation .modal-header {
  flex: 0 0 auto;
}

.calendar-request-summary {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .5rem;
  padding: .65rem .75rem;
  color: #475569;
  font-size: .9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .45rem;
}

.calendar-request-summary i {
  color: var(--theme-primary);
}

#modalReservationIncome .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}

#modalReservationIncome .input-group > .input-group-text {
  flex: 0 0 2.65rem;
  min-width: 2.65rem;
  justify-content: center;
  color: #64748b;
  background: #f8fafc;
  border-right: 0;
}

#modalReservationIncome .input-group > .form-control {
  flex: 1 1 auto;
  width: 1% !important;
  min-width: 0;
  border-left: 0;
}

#modalTransportFollowup .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}

#modalTransportFollowup .input-group > .input-group-text {
  flex: 0 0 2.65rem;
  min-width: 2.65rem;
  justify-content: center;
  color: #64748b;
  background: #f8fafc;
  border-right: 0;
}

#modalTransportFollowup .input-group > .form-control {
  flex: 1 1 auto;
  width: 1% !important;
  min-width: 0;
  border-left: 0;
}

@media (max-width: 991.98px) {
  .transport-request-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transport-reservation-brief-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .transport-request-summary-grid {
    grid-template-columns: 1fr;
  }

  .transport-request-grid {
    grid-template-columns: 1fr;
  }

  .request-section .col-md-4,
  .request-section .col-md-6,
  .request-section .col-lg-6 {
    width: 100%;
    max-width: 100%;
  }

  .transport-detail-header,
  .transport-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .transport-detail-status {
    align-items: flex-start;
  }

  .transport-module-header,
  .transport-reservation-summary,
  .transport-calendar-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fc .fc-header-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: .75rem;
  }

  .fc .fc-toolbar-chunk {
    justify-content: center;
  }

  .transport-calendar-legend {
    justify-content: flex-start;
  }

  .transport-reservation-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .transport-info-grid {
    grid-template-columns: 1fr;
  }

  .transport-followup-dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .profit-kpi-grid {
    grid-template-columns: 1fr;
  }
}

a.btn.btn-whatsapp,
button.btn.btn-whatsapp,
.btn.btn-whatsapp {
  color: #fff !important;
  background-color: #25d366 !important;
  border-color: #25d366 !important;
}

a.btn.btn-whatsapp:hover,
a.btn.btn-whatsapp:focus,
button.btn.btn-whatsapp:hover,
button.btn.btn-whatsapp:focus,
.btn.btn-whatsapp:hover,
.btn.btn-whatsapp:focus {
  color: #fff !important;
  background-color: #1fad53 !important;
  border-color: #1fad53 !important;
}

a.btn.btn-whatsapp:active,
button.btn.btn-whatsapp:active,
.btn.btn-whatsapp:active {
  color: #fff !important;
  background-color: #168f43 !important;
  border-color: #168f43 !important;
}

.dashboard-shell {
  padding: 1rem 0 2rem;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-head h1 {
  margin: 0;
  color: #111827;
  font-size: 1.55rem;
  font-weight: 800;
}

.dashboard-head p,
.dashboard-card-head p {
  margin: .15rem 0 0;
  color: #64748b;
}

.dashboard-head-metrics {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .55rem;
}

.dashboard-head-total {
  min-width: 150px;
  padding: .55rem .75rem;
  text-align: right;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  box-shadow: 0 .25rem 1.2rem rgba(15, 23, 42, .05);
}

.dashboard-head-total span {
  display: block;
  color: #64748b;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-head-total strong {
  color: #111827;
  font-size: 1rem;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 1rem;
}

.dashboard-kpi-card,
.dashboard-card,
.dashboard-alert-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  box-shadow: 0 .25rem 1.2rem rgba(15, 23, 42, .05);
}

.dashboard-kpi-card {
  min-height: 150px;
  padding: 1rem;
}

.dashboard-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: .75rem;
  color: #0d6efd;
  background: rgba(13, 110, 253, .1);
  border-radius: .5rem;
}

.dashboard-kpi-expense {
  color: #ef4444;
  background: rgba(239, 68, 68, .1);
}

.dashboard-kpi-profit {
  color: #16a34a;
  background: rgba(22, 163, 74, .1);
}

.dashboard-kpi-reservation {
  color: #7c3aed;
  background: rgba(124, 58, 237, .1);
}

.dashboard-kpi-warning {
  color: #f59e0b;
  background: rgba(245, 158, 11, .12);
}

.dashboard-kpi-card p {
  margin: 0;
  color: #64748b;
  font-size: .85rem;
  font-weight: 700;
}

.dashboard-kpi-card h3 {
  margin: .2rem 0;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 800;
}

.dashboard-kpi-card small {
  color: #64748b;
}

.dashboard-alert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 1rem;
}

.dashboard-alert-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  color: #111827;
  text-decoration: none;
}

.dashboard-alert-card:hover {
  color: #111827;
  border-color: var(--theme-primary);
}

.dashboard-alert-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--theme-primary);
  background: color-mix(in srgb, var(--theme-primary) 12%, #fff);
  border-radius: .5rem;
}

.dashboard-alert-card span {
  flex: 1;
  min-width: 0;
  color: #475569;
  font-weight: 700;
}

.dashboard-alert-card strong {
  font-size: 1.25rem;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-main-grid-bottom {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
}

.dashboard-card {
  padding: 1rem;
}

.dashboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-card-head h2 {
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 800;
}

.dashboard-year-filter {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.dashboard-year-filter .form-label {
  margin: 0;
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
}

.dashboard-year-filter .form-select {
  width: 6.5rem;
}

.dashboard-chart-box {
  position: relative;
  width: 100%;
  min-height: 320px;
}

.dashboard-chart-small {
  min-height: 230px;
}

.dashboard-expense-list,
.dashboard-reservation-list,
.dashboard-funnel {
  display: grid;
  gap: .65rem;
}

.dashboard-expense-row,
.dashboard-reservation-item,
.dashboard-funnel-row {
  padding: .7rem .8rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .45rem;
}

.dashboard-expense-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.dashboard-expense-row span,
.dashboard-reservation-info small {
  color: #64748b;
}

.dashboard-reservation-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  color: #111827;
  text-decoration: none;
}

.dashboard-reservation-item:hover {
  color: #111827;
  border-color: var(--theme-primary);
}

.dashboard-reservation-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 3.2rem;
  height: 3.2rem;
  color: var(--theme-primary);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .45rem;
}

.dashboard-reservation-info strong,
.dashboard-reservation-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-reservation-price {
  font-weight: 800;
}

.dashboard-funnel-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .5rem;
}

.dashboard-funnel-row span {
  color: #475569;
  font-weight: 700;
}

.dashboard-funnel-row strong {
  color: #111827;
}

.dashboard-funnel-row small {
  color: #64748b;
  font-weight: 700;
}

.dashboard-funnel .progress {
  height: .55rem;
  background: #e2e8f0;
  border-radius: 999px;
}

.dashboard-funnel .progress-bar {
  background: var(--theme-primary);
}

.dashboard-empty {
  padding: 1rem;
  color: #64748b;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: .45rem;
}

.expense-report-year-filter {
  padding: .55rem .75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  box-shadow: 0 .25rem 1.2rem rgba(15, 23, 42, .05);
}

.expense-report-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.expense-report-kpi-grid .dashboard-kpi-card h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-report-share {
  display: inline-flex;
  width: min(9rem, 100%);
  height: .5rem;
  margin-right: .5rem;
  overflow: hidden;
  vertical-align: middle;
  background: #e2e8f0;
  border-radius: 999px;
}

.expense-report-share span {
  display: block;
  background: var(--theme-primary);
  border-radius: inherit;
}

.expense-report-shell table thead th {
  color: #111827;
  font-size: .85rem;
}

.expense-report-shell table tfoot th {
  background: #f8fafc;
}

@media (max-width: 1199.98px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .expense-report-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .dashboard-main-grid,
  .dashboard-main-grid-bottom {
    grid-template-columns: 1fr;
  }

  .dashboard-alert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .dashboard-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-head-total {
    min-width: 0;
    text-align: left;
  }

  .dashboard-head-metrics {
    justify-content: stretch;
  }

  .dashboard-head-metrics .dashboard-head-total {
    flex: 1 1 100%;
  }

  .dashboard-kpi-grid,
  .dashboard-alert-grid,
  .expense-report-kpi-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-reservation-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dashboard-reservation-price {
    grid-column: 2;
  }
}
