:root {
    --grey: #D3D3D3;
	--light_blue: #deebf7;
	--dark_blue: #093550;
	--grey: #afabab;
	--green: #00b050;
	--yellow: #ffc000;
	--red: #c00000;
	--srx: #1a335f;
	--csdt: #138d87;
	--ob2: #432d7c;
}

.light_blue {background-color: var(--light_blue);}
.dark_blue {color: var(--dark_blue);}
.green {color: var(--green);}
.yellow {color: var(--yellow);}
.red {color: var(--red);}
.grey {color: var(--grey);}
.srx {color: var(--srx);}
.csdt {color: var(--csdt);}
.ob2 {color: var(--ob2);}

body {
	background-color: rgba(0, 0, 0, .05);
	/* Prevent horizontal scrollbar from off-canvas (translateX(100%)) and
	 * full-bleed sections (negative-margin breakouts) extending past viewport. */
	overflow-x: hidden;
	/* background-color: #0b153e; */
	/* background-color: rgba(11, 21, 62, 1); */
}


.navbar-brand {
	color: #0b153e;
	font-weight: bold;
}

.navbar {
	/* background-color: var(--dark_blue); */
	/* background-color: rgba(0, 0, 0, .05); */
}

.nav_logo {
	max-width: 270px;
}

.tenant_name_container {
	position: absolute;
	left: 50%;	
}

.tenant_name {
	position: relative;
	left: -50%;
	margin-top: -5px;
	color: white;
	font-size: 25px;
}

.tenant_name p {
	margin-bottom: 0px;
}

.nav-link {
	color: #0b153e;
	font-size: 18px;
}

.navbar-toggler {
	color: white;
}

.btn-primary {
	background-color: var(--dark_blue);
	border-color: var(--dark_blue);
}
.btn-outline-primary {
	/* background-color: var(--dark_blue); */
	border-color: var(--dark_blue);
	color: var(--dark_blue);
}












.hidden {
	display: none !important;
}




  /* Alerts */
  .alert{
	position: absolute;
	right:15px;
	z-index:999;
	width: auto;
  }


.xl_icon {
	font-size: 50px;
}

.pointer {
	cursor: pointer;
}


.position-relative .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.navbar-nav .dropdown > .dropdown-menu,
.navbar-nav .position-relative > .dropdown-menu{
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: .5s;
}


.navbar-nav .dropdown:hover > .dropdown-menu,
.navbar-nav .position-relative:hover > .dropdown-menu{
    opacity: 1;
    visibility: visible;
    transition: .5s;
}

.color_indicator {
	width: 20px;
	height: 20px;
	border-radius: 50%;
}

.xl-number {
	font-size: 30px;
}

.lg-number {
	font-size: 25px;
}

.md-number {
	font-size: 20px;
}

.xl-icon {
	font-size: 60px;
}

.lg-icon {
	font-size: 35px;
}

.icon_rotate_45 {
	filter: progid: DXImageTransform.Microsoft.BasicImage(rotation=0.5);
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
	display: inline-block;
}

.non_main_nav {
    color: #0d6efd !important;
}

.non_main_nav.active{
    color: black !important;
}


.app_logo {
	max-width: 150px;
}

/* Status-lifecycle help popover (used on /delivery-admin/pickup-requests) */
.status-help-popover {
	max-width: 360px;
}
.status-help-trigger:hover,
.status-help-trigger:focus {
	color: var(--dark_blue) !important;
}

/* Clickable stop rows on /dispatch/trips/:id — whole row links to the
 * delivery; visual feedback keeps it discoverable as an action. */
.stop-row { transition: background-color 0.12s ease; }
.stop-row:hover { background-color: #f8f9fa; }
.stop-row:active { background-color: #eef1f4; }
.stop-row .bi-chevron-right { font-size: 14px; }

/* ============================================================
 * Admin / CEO dashboard (/delivery-admin/)
 * ============================================================ */
.dashboard-ceo .kpi-card {
	border-left: 4px solid var(--dark_blue);
}
.dashboard-ceo .kpi-card.kpi-revenue { border-left-color: var(--green); }
.dashboard-ceo .kpi-card.kpi-ar      { border-left-color: var(--yellow); }
.dashboard-ceo .kpi-card.kpi-ops     { border-left-color: var(--csdt); }
.dashboard-ceo .kpi-card.kpi-alerts  { border-left-color: var(--red); }

.dashboard-ceo .kpi-label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6c757d;
	margin-bottom: 0.25rem;
}
.dashboard-ceo .kpi-value {
	font-size: 1.85rem;
	font-weight: 700;
	color: var(--dark_blue);
	line-height: 1.1;
}
.dashboard-ceo .kpi-sub {
	font-size: 0.85rem;
	margin-top: 0.4rem;
}
.dashboard-ceo .kpi-foot {
	font-size: 0.78rem;
	color: #6c757d;
	margin-top: 0.4rem;
	border-top: 1px solid #f0f0f0;
	padding-top: 0.4rem;
}

.dashboard-ceo .metric-block {
	padding: 0.25rem 0;
}
.dashboard-ceo .metric-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	color: #6c757d;
	letter-spacing: 0.03em;
}
.dashboard-ceo .metric-value {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--dark_blue);
}

/* Critical-alert cards */
.dashboard-ceo .alert-card {
	border-width: 1px;
	border-style: solid;
}
.dashboard-ceo .alert-card.alert-empty {
	border-color: #e0e0e0 !important;
	background-color: #fafafa;
}
.dashboard-ceo .alert-card-title {
	font-weight: 600;
	color: var(--dark_blue);
}
.dashboard-ceo .alert-card-desc {
	font-size: 0.78rem;
	margin-top: 0.15rem;
}
.dashboard-ceo .alert-items li + li {
	border-top: 1px solid #f0f0f0;
}
.dashboard-ceo .alert-item-link {
	display: block;
	padding: 0.5rem 0;
	color: #212529;
}
.dashboard-ceo .alert-item-link:hover {
	background-color: #f8f9fa;
}

/* Quote funnel bars */
.dashboard-ceo .funnel { margin-top: 0.5rem; }
.dashboard-ceo .funnel-row {
	display: grid;
	grid-template-columns: 90px 1fr 60px;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}
.dashboard-ceo .funnel-label {
	font-size: 0.85rem;
	color: #495057;
	font-weight: 500;
}
.dashboard-ceo .funnel-bar {
	height: 18px;
	border-radius: 3px;
	background: var(--dark_blue);
	transition: width 0.4s ease;
	min-width: 2px;
}
.dashboard-ceo .funnel-bar-quoted    { background: var(--csdt); }
.dashboard-ceo .funnel-bar-accepted  { background: var(--green); }
.dashboard-ceo .funnel-bar-converted { background: var(--ob2); }
.dashboard-ceo .funnel-count {
	font-weight: 600;
	text-align: right;
	color: var(--dark_blue);
}

/* Today's-ops rows */
.dashboard-ceo .ops-row {
	display: flex;
	justify-content: space-between;
	padding: 0.35rem 0;
	border-bottom: 1px solid #f3f3f3;
	font-size: 0.92rem;
}
.dashboard-ceo .ops-row:last-child {
	border-bottom: none;
}

/* ──────────────────────────────────────────────────────────────────────────
 * Mobile (sm-down) tweaks. EVERYTHING in this block is gated on the
 * (max-width: 575.98px) media query so desktop renders unchanged. Add
 * desktop-affecting tweaks elsewhere.
 * ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {

	/* Bump icon-only / small action buttons up to a tappable 44×44 floor.
	 * Scoped narrowly so we don't bloat every .btn-sm in the app — only
	 * those that are likely to be sitting in cramped table rows / action
	 * bars where touch targets matter most. */
	.btn-sm.btn-outline-danger,
	.btn-sm.btn-outline-secondary,
	.btn-sm.btn-outline-warning,
	.btn-sm.btn-outline-success,
	.quote-delete,
	.pinned-unpin,
	#btn_miles_override {
		min-width:  44px;
		min-height: 44px;
	}

	/* Quote-tool accessorial picker — three controls in a row become a
	 * stacked column so each has full width to tap. */
	#accessorials_list,
	#accessorials_empty {
		font-size: 0.9rem;
	}

	/* Save & Invoice / Save & Schedule modal label tightening so the form
	 * fields don't crowd each other on the smallest viewports. */
	.modal-body .form-text {
		font-size: 0.75rem;
	}
}
