﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.2rem #0d6efd;
}

.login-page {
  min-height: 100vh;
}

.login-box .card,
.register-box .card {
  border-radius: 4px;
}

.content-header h1 {
  font-size: 1.6rem;
}
.quote-step-card {
  border-radius: 4px;
}

.quote-step-card .card-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.quote-step-number {
  color: #f05a28;
  font-weight: 700;
  margin-right: 0.25rem;
}

.quote-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0.75rem;
  max-width: 780px;
}

.quote-mode-grid-single {
  grid-template-columns: minmax(132px, 160px);
}

.quote-mode-tile {
  align-items: center;
  background: #fff;
  border: 1px solid #d9dee3;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-weight: 600;
  gap: 0.4rem;
  justify-content: center;
  min-height: 122px;
  padding: 0.85rem;
  position: relative;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quote-mode-tile:hover {
  border-color: #f05a28;
  box-shadow: 0 0 0 1px rgba(240, 90, 40, 0.15);
}

.quote-mode-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quote-mode-check {
  color: #8b98a5;
  position: absolute;
  right: 0.7rem;
  top: 0.55rem;
}

.quote-mode-icon {
  color: #f05a28;
  font-size: 2rem;
  line-height: 1;
}

.quote-mode-tile:has(input:checked) {
  border-color: #f05a28;
  box-shadow: 0 0 0 1px rgba(240, 90, 40, 0.35);
}

.quote-mode-tile:has(input:checked) .quote-mode-check i::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.quote-stop-title {
  align-items: center;
  display: flex;
  font-size: 1.1rem;
  font-weight: 700;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.quote-lane-divider {
  border-left: 2px solid #d9dee3;
  height: 28px;
  margin: 0.5rem 0 0.5rem 0.45rem;
}
.quote-rate-card .card-body {
  text-align: center;
}

.quote-rate-amount {
  color: #1f2d3d;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.quote-action-buttons {
  gap: 0.5rem;
}
.quote-request-form {
  position: relative;
}

.quote-request-overlay {
  align-items: center;
  background: rgba(248, 249, 250, 0.78);
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
}

.quote-request-overlay.is-visible {
  display: flex;
}

.quote-request-panel {
  align-items: center;
  background: #fff;
  border: 1px solid #d9dee3;
  border-radius: 4px;
  box-shadow: 0 0.5rem 1.25rem rgba(31, 45, 61, 0.12);
  display: flex;
  font-weight: 600;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.page-loading-overlay {
  align-items: center;
  background: rgba(244, 245, 246, 0.72);
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2000;
}

.page-loading-overlay.is-visible {
  display: flex;
}

.page-loading-panel {
  align-items: center;
  background: #fff;
  border: 1px solid #d9dee3;
  border-radius: 4px;
  box-shadow: 0 0.5rem 1.25rem rgba(31, 45, 61, 0.14);
  display: flex;
  font-weight: 700;
  gap: 0.75rem;
  min-width: 16rem;
  padding: 1rem 1.25rem;
}
.dashboard-small-box-link {
  color: #fff;
  display: block;
}

.dashboard-small-box-link:hover {
  color: #fff;
}

.dashboard-active-shipments-more {
  align-items: center;
  background: #f8fafc;
  border-top: 1px solid #e3e7eb;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 0.8rem 1rem;
}

.dashboard-active-shipments-more-count {
  color: #495057;
  font-weight: 600;
}

.dashboard-active-shipments-more-link {
  font-weight: 700;
  white-space: nowrap;
}

.documents-inline-row td {
  background: #fbfcfd;
  border-top: 0;
  padding: 0.9rem 1.25rem;
}

.shipment-status-tabs .nav-link,
.shipment-detail-tabs .nav-link {
  min-width: 9rem;
  text-align: center;
}

.shipment-table th {
  border-top: 0;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.shipment-table td {
  vertical-align: top;
}

.shipment-table .font-weight-semibold {
  font-weight: 600;
}

.shipment-stops {
  border-top: 1px solid #dee2e6;
}

.shipment-stop {
  border-bottom: 1px solid #eef1f4;
  padding: 1rem 0 1rem 3rem;
  position: relative;
}

.shipment-stop::before {
  background: #c9d0d8;
  bottom: 0;
  content: "";
  left: 1.15rem;
  position: absolute;
  top: 2.55rem;
  width: 1px;
}

.shipment-stop:last-child::before {
  display: none;
}

.shipment-stop-marker {
  align-items: center;
  background: #fff;
  border: 1px solid #6c757d;
  border-radius: 50%;
  color: #1f2d3d;
  display: flex;
  font-size: 0.8rem;
  font-weight: 700;
  height: 1.6rem;
  justify-content: center;
  left: 0.35rem;
  position: absolute;
  top: 1rem;
  width: 1.6rem;
}

.shipment-stop:first-child .shipment-stop-marker {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
}

.shipment-map-panel {
  min-height: 28rem;
}

.shipment-map-loading,
.shipment-map-empty,
.shipment-map-config,
.shipment-map-error {
  align-items: center;
  border: 1px dashed #ced4da;
  display: flex;
  justify-content: center;
  min-height: 18rem;
}

.shipment-map-canvas {
  border: 1px solid #dee2e6;
  height: 28rem;
  min-height: 22rem;
  width: 100%;
}

@media (max-width: 767.98px) {
  .shipment-status-tabs .nav-link,
  .shipment-detail-tabs .nav-link {
    min-width: auto;
  }

  .shipment-stop {
    padding-left: 2.4rem;
  }

  .dashboard-active-shipments-more {
    align-items: flex-start;
    flex-direction: column;
  }

  .shipment-map-panel,
  .shipment-map-canvas {
    min-height: 22rem;
  }
}

/* Axle brand theme */
:root {
  --axle-orange: #ff5a00;
  --axle-orange-dark: #d84c00;
  --axle-charcoal: #22272b;
  --axle-ink: #111820;
  --axle-muted: #6f7880;
  --axle-line: #dfe3e6;
  --axle-page: #f4f5f6;
}

.axle-theme {
  color: var(--axle-ink);
}

.axle-theme .content-wrapper {
  background: var(--axle-page);
}

.axle-theme .main-header {
  height: 57px;
  background: #fff;
  border-bottom: 1px solid var(--axle-line);
  box-shadow: 0 2px 8px rgba(17, 24, 32, 0.05);
}

.axle-theme .main-header .nav-link {
  color: var(--axle-charcoal);
  font-weight: 600;
}

.axle-theme .main-header .nav-link:hover,
.axle-theme a {
  color: var(--axle-orange);
}

.axle-theme .main-sidebar {
  background: var(--axle-charcoal);
}

.axle-theme .axle-brand-link {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--axle-line);
  display: flex;
  height: 57px;
  min-height: 57px;
  padding: 0.5rem 0.75rem;
}

.axle-theme .axle-brand-logo {
  display: block;
  height: 36px;
  max-width: 170px;
  object-fit: contain;
  width: auto;
}

.axle-theme .axle-brand-text {
  color: var(--axle-charcoal);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-left: 0.5rem;
  text-transform: uppercase;
}

.axle-theme .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link,
.axle-theme .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link .nav-icon {
  color: #d8dde1;
}

.axle-theme .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link:hover {
  background: rgba(255, 90, 0, 0.12);
  color: #fff;
}

.axle-theme .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
  background: var(--axle-orange);
  color: #fff;
}

.axle-theme .nav-sidebar .nav-header {
  color: #aab2b9;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.axle-theme .content-header h1,
.axle-theme h1,
.axle-theme h2,
.axle-theme h3,
.axle-theme .card-title {
  color: var(--axle-ink);
  font-weight: 800;
  letter-spacing: 0;
}

.axle-theme .card {
  border: 1px solid var(--axle-line);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(17, 24, 32, 0.06);
}

.axle-theme .card-primary.card-outline {
  border-top: 3px solid var(--axle-orange);
}

.axle-theme .card-primary:not(.card-outline) > .card-header {
  background: var(--axle-charcoal);
  border-color: var(--axle-charcoal);
}

.axle-theme .btn-primary,
.axle-theme .btn-primary:disabled,
.axle-theme .btn-primary.disabled {
  background: var(--axle-orange);
  border-color: var(--axle-orange);
  color: #fff;
  font-weight: 700;
}

.axle-theme .btn-primary:hover,
.axle-theme .btn-primary:focus {
  background: var(--axle-orange-dark);
  border-color: var(--axle-orange-dark);
  color: #fff;
}

.axle-theme .btn-outline-primary {
  border-color: var(--axle-orange);
  color: var(--axle-orange);
  font-weight: 700;
}

.axle-theme .btn-outline-primary:hover,
.axle-theme .btn-outline-primary:focus {
  background: var(--axle-orange);
  border-color: var(--axle-orange);
  color: #fff;
}

.axle-theme .form-control:focus,
.axle-theme .custom-select:focus {
  border-color: var(--axle-orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 90, 0, 0.16);
}

.axle-theme .page-item.active .page-link {
  background: var(--axle-orange);
  border-color: var(--axle-orange);
}

.axle-theme .page-link {
  color: var(--axle-orange);
}

.axle-theme .badge-info,
.axle-theme .bg-info {
  background-color: var(--axle-charcoal) !important;
}

.axle-theme .bg-success {
  background-color: var(--axle-orange) !important;
}

.axle-theme .bg-danger {
  background-color: #7f1d1d !important;
}

.axle-theme .quote-step-number,
.axle-theme .quote-mode-icon {
  color: var(--axle-orange);
}

.axle-theme .quote-mode-tile:hover,
.axle-theme .quote-mode-tile:has(input:checked) {
  border-color: var(--axle-orange);
  box-shadow: 0 0 0 1px rgba(255, 90, 0, 0.28);
}

.axle-theme .shipment-stop:first-child .shipment-stop-marker {
  background: var(--axle-orange);
  border-color: var(--axle-orange);
}

.axle-auth-page {
  background: linear-gradient(135deg, #f8f8f7 0%, #eceff1 100%);
}

.axle-auth-page .login-box {
  width: min(390px, calc(100vw - 2rem));
}

.axle-theme .content-wrapper.portal-background {
  background: #555 url('../img/login-background.png') center center / cover no-repeat;
}

.axle-theme .content-wrapper.dashboard-background {
  padding-top: 1.5rem;
}

.axle-theme .portal-background .content-header h1 {
  color: #fff;
}

.axle-auth-page.axle-login-background {
  background: #555 url('../img/login-background.png') center center / cover no-repeat;
  min-height: 100vh;
  padding: 2rem 0;
}

.axle-login-background .login-box {
  margin: auto;
}

.axle-login-logo {
  margin-bottom: 1.25rem;
  text-align: center;
}

.axle-login-logo img {
  background: #fff;
  border: 1px solid var(--axle-line);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(17, 24, 32, 0.08);
  max-width: 245px;
  padding: 0.35rem 0.75rem;
  width: 100%;
}

.axle-auth-page .login-card-body {
  border-radius: 4px;
}

/* Dashboard metric cards */
.axle-theme .small-box.bg-info,
.axle-theme .small-box.bg-success,
.axle-theme .small-box.bg-danger {
  background: #fff !important;
  border: 1px solid var(--axle-line);
  border-left: 4px solid var(--axle-charcoal);
  box-shadow: 0 2px 10px rgba(17, 24, 32, 0.06);
  color: var(--axle-ink) !important;
}

.axle-theme .small-box.bg-success {
  border-left-color: var(--axle-orange);
}

.axle-theme .small-box.bg-danger {
  border-left-color: #8f1d1d;
}

.axle-theme .dashboard-small-box-link,
.axle-theme .dashboard-small-box-link:hover {
  color: var(--axle-ink) !important;
}

.axle-theme .small-box > .inner {
  padding: 1rem 1.25rem;
}

.axle-theme .small-box h3 {
  color: var(--axle-ink);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.axle-theme .small-box p {
  color: var(--axle-muted);
  font-weight: 700;
  margin-bottom: 0;
  text-transform: uppercase;
}

.axle-theme .small-box .icon {
  color: rgba(17, 24, 32, 0.12);
  top: 0.5rem;
}

.axle-theme .small-box.bg-success .icon {
  color: rgba(255, 90, 0, 0.16);
}

.axle-theme .small-box.bg-danger .icon {
  color: rgba(143, 29, 29, 0.14);
}
