:root {
    --metal-950:  #0e0f10;
    --metal-900:  #151719;
    --metal-800:  #1c1f22;
    --metal-700:  #252a2d;
    --metal-600:  #2f3538;
    --metal-500:  #3d4346;
    --metal-400:  #545d62;
    --metal-300:  #7a8a92;
    --chrome-hi:  #c8d8e0;
    --chrome-mid: #8fa4ae;
    --chrome-lo:  #4a5a62;
    --accent:     #5b9ec9;
    --accent-dim: #3a6f92;
	--ats:     #d4812a;
	--ats-dim: #8a4f12;
	--ats-rgb: 212,129,42;
	--ets:     #5b9ec9;
	--ets-dim: #3a6f92;
	--ets-rgb: 58,111,146;
    --text-primary:   #dce8ed;
    --text-secondary: #8fa4ae;
    --text-muted:     #55676f;
    --font-display: 'Rajdhani', sans-serif;
    --font-mono:    'Share Tech Mono', monospace;
    --shadow-inset: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.4);
    --shadow-card:  0 8px 32px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.4);
    --border-subtle: 1px solid rgba(255,255,255,.06);
    --border-chrome: 1px solid rgba(200,216,224,.12);
}

body {
  background-color: #222222;
  color: #fff;
  margin: 0;
  padding: 0;
}

body.modal-open {
  overflow: hidden;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

.navbar {
  background-color: #212529;
}
a {
	color: #fff;
	text-decoration: none;
}

.training-icon {
  opacity: 1;
}

/* TOOLTIP */
.wider-tooltip .tooltip-inner {
  max-width: 300px;
  width: 300px;
  text-align: left; 
  margin-left: 20px;
}

.tooltip-inner {
  max-width: 100%;   /* default is ~200px */
  width: 100%;       /* optional: force exact width */
  text-align: left;   /* nice for multi-line HTML */
}
/* TOOLTIP */

/* IFRAME */
.online-map-wrapper {
  width: 404px;
  max-width: 404px;
  height: 400px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .online-map-wrapper {
	width: 404px;
    height: 400px;
  }
}

@media (max-width: 600px) {
  .online-map-wrapper {
	width: 404px;
    height: 400px;
  }
}

.online-map {
  display: block;
  width: 389px;
  max-width: 389px;
  min-width: 0;
  height: 400px;
  border: 0;
}

@-moz-document url-prefix() {
  .online-map {
    width: 96%;
    max-width: 96%;
    min-width: 0;
	height: 400px;
  }
}
/* IFRAME */

/* DASHBOARD — TRUCK STAT CARDS */
.truck-cards-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}

.truck-stat-card{
  background:linear-gradient(160deg,var(--metal-800),var(--metal-800));
  border:var(--border-chrome);border-radius:12px;
  box-shadow:var(--shadow-card);overflow:hidden;
  position:relative;animation:cardReveal .4s ease both;
}
.truck-stat-card::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent 5%,rgba(255,255,255,.10) 50%,transparent 95%)}

.sc-main{display: flex;align-items: center;gap: 8px;}
.sc-content{display: flex;flex-direction: column;}
.stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:18px}
.stat-card{width:140px;background:linear-gradient(160deg,var(--metal-800),var(--metal-900));border:var(--border-chrome);border-radius:10px;box-shadow:var(--shadow-card);padding:5px 6px;position:relative;overflow:hidden;animation:cardReveal .4s ease both}
.stat-card::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent 5%,rgba(255,255,255,.10) 50%,transparent 95%)}
.sc-icon{font-size:1.3rem;margin-bottom:0px;opacity:.8}
.sc-val{font-size:1.2rem;font-weight:600;color:var(--chrome-hi);line-height:1}
.sc-label{font-family:var(--font-mono);font-size:.56rem;letter-spacing:.14em;text-transform:uppercase;color:var(--text-muted);margin-top:0px}
.sc-delta{font-family:var(--font-mono);font-size:.58rem;margin-top:0px}
.sc-delta.up{color:#27ae60}
.sc-delta.down{color:#e74c3c}

.tsc-header{
  display:flex;align-items:center;gap:11px;
  padding:13px 16px;
  border-bottom:var(--border-chrome);
  box-shadow:var(--shadow-inset);
}
.tsc-header.ats-header{background:linear-gradient(90deg,rgba(138,79,18,.35),var(--metal-800))}
.tsc-header.ets-header{background:linear-gradient(90deg,rgba(58,111,146,.35),var(--metal-800))}

.tsc-game-badge{
  font-family:var(--font-mono);font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;
  padding:4px 10px;border-radius:4px;font-weight:600;flex-shrink:0;
}
.badge-ats{background:linear-gradient(135deg,var(--ats-dim),var(--ats));color:#fff}
.badge-ets{background:linear-gradient(135deg,var(--ets-dim),var(--ets));color:#fff}

.tsc-truck-name{font-size:1rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--chrome-hi);flex:1}
.tsc-truck-sub{font-family:var(--font-mono);font-size:.52rem;letter-spacing:.1em;color:var(--text-muted);margin-left:auto;white-space:nowrap}

/* Stat rows inside truck card */
.truck-image {
  display: block;      /* ← removes inline whitespace gap */
  width: 100%;
  max-width: 100%;
  height: 274px;
  cursor: pointer;
  flex-shrink: unset;
  margin: 0;           /* ← kill any default margin */
}

.tsc-body {
  display: flex;
  flex-direction: column;
  padding: 0;          /* ← ensure no inner padding pushing image in */
  margin: 0;
  overflow: hidden;    /* ← clips image to card corners cleanly */
}

.tsc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
}

.tsc-stat-row {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: var(--border-subtle);
  border-right: var(--border-subtle);
}

.top{
	border-top: var(--border-subtle);
}

.tsc-stat-row:hover{background:rgba(255,255,255,.02);}
.tsc-stat-row:last-child{border-bottom:none}

.tsc-stat-label{font-family:var(--font-mono);font-size:.56rem;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);margin-bottom:1px}
.tsc-stat-value{font-size:.88rem;font-weight:600;color:var(--text-primary)}
.tsc-stat-value.ats-accent{color:var(--ats)}
.tsc-stat-value.ets-accent{color:var(--ets)}

.tsc-stat-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  flex-shrink: 0;
  margin-bottom: 6px;
  margin-right: 11px;
}

.tsc-stat-sub {
  font-family: var(--font-mono);
  font-size: .70rem;
  color: var(--text-muted);
  margin-left: auto;
  padding-left: 0;
  margin-top: 2px;
}

/* Heaviest load spans full width at bottom */
.tsc-heavy-row {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: var(--border-subtle);
  border-right: var(--border-subtle);
}

.tsc-heavy-label{font-family:var(--font-mono);font-size:.56rem;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);margin-bottom:2px}
.tsc-heavy-value{font-size:.9rem;font-weight:700;color:var(--chrome-hi)}
.tsc-heavy-weight{margin-left:auto;text-align:right}
.tsc-heavy-wval{font-size:1.1rem;font-weight:700}
.tsc-heavy-wlbl{font-family:var(--font-mono);font-size:.52rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted)}

.tsc-job-city{font-family:var(--font-display);font-size:.86rem;font-weight:150;}

/* ── Level badge ── */
.level-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 4px;
    line-height: 1.4;
}
/* Override Bootstrap colour utilities used for level-badge */
.level-badge.bg-success { background: #27ae60 !important; color: #fff !important; }
.level-badge.bg-info    { background: var(--accent) !important; color: #fff !important; }
.level-badge.bg-warning { background: #e6a817 !important; color: #111 !important; }
.level-badge.bg-danger  { background: #c0392b !important; color: #fff !important; }
.level-badge.bg-primary { background: var(--accent-dim) !important; color: #fff !important; }
.level-badge.bg-dblue-status { background: #3E4852 !important; color: #fff !important; }

/* ── Achievement badges ── */
.badge.bg-success { background-color: #27ae60 !important; }
.badge.bg-primary { background-color: var(--accent-dim) !important; }

/* ── Mileage progress bar ── */
.mileage-section {
    padding: 5px 10px 5px 10px;
}

.mile-bar-outer {
    height: 10px;
    background: var(--metal-700);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0px;
}

.mile-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(.4, 0, .2, 1);
}

.ats-bar {
    background: linear-gradient(to right, #212529, #3E4852) !important;
}

.ats-bar.with-line {
  position: relative;
  overflow: visible; /* let our line show */
}

.ats-bar.with-line::after {
  content: "";
  display: block;
  position: absolute;
  top: -5px;                  /* extend above */
  bottom: -5px;               /* extend below */
  right: 0;                   /* stick to the end */
  width: 2px;                 /* thickness of the line */
  background: #687a8c;          /* line color */
  z-index: 10;
}


.ets-bar {
    background: linear-gradient(to right, #212529, #3E4852) !important;
}

.ets-bar.with-line {
  position: relative;
  overflow: visible; /* let our line show */
}

.ets-bar.with-line::after {
  content: "";
  display: block;
  position: absolute;
  top: -5px;                  /* extend above */
  bottom: -5px;               /* extend below */
  right: 0;                   /* stick to the end */
  width: 2px;                 /* thickness of the line */
  background: #687a8c;          /* line color */
  z-index: 10;
}

/* ── Mile labels ── */
.mile-labels {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 0px;
}

.mile-current {
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
}

.mile-current.ats-accent { color: #d4812a; }
.mile-current.ets-accent { color: #5b9ec9; }

.mile-togo {
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .04em;
    color: var(--text-muted);
    text-align: right;
}

.mile-togo span { color: var(--chrome-mid); }

/* ── Milestone dots ── */
.milestone-dots {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 6px;
    padding: 0 2px;
}

.ms-dot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
}

.ms-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--metal-500);
    background: var(--metal-700);
}

.ms-dot.ats-dot.reached {
    border-color: #d4812a;
    background: #d4812a;
    box-shadow: 0 0 5px rgba(212,129,42,.4);
}

.ms-dot.ets-dot.reached {
    border-color: #5b9ec9;
    background: #5b9ec9;
    box-shadow: 0 0 5px rgba(91,158,201,.4);
}

.ms-label {
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .04em;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}

.ms-label.reached { color: var(--chrome-mid); }

.training-icon.grey {
  opacity: 0.3;
  filter: grayscale(100%);
}

/* Remove top/bottom spacing from the nav itself */
nav.navbar {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0.0rem;  /* adjust as needed */
  padding-bottom: 0.0rem; /* adjust as needed */
}

.navbar .nav-link {
  padding-top: 10px;
  height: 50px;
  color: white;                /* Link color */
}

.navbar .nav-link.active {
  padding-top: 10px;
  height: 50px;
  background-color: #343a40; /* example dark bg */
  border-bottom: 3px solid #5E6C7A; /* example bottom border */
  color: white !important; /* override default */
}

.navbar .nav-link:hover {
  padding-top: 10px;
  height: 50px;
  background-color: #343a40; /* example dark bg */
  border-bottom: 3px solid #5E6C7A; /* example bottom border */
  color: white !important; /* override default */
}

.event-box.active{
	background-color: #101016;
	border: 1px solid #333;
	border-radius: 0.8rem;
}

.truck-image-wrapper {
    position: relative;
    width: 390px;
    height: 175px;
}

.truck-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
}

.current_truck {
    position: absolute;
    top: -4px;          /* adjust position */
    left: 0px;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	padding: 5px;
	border-bottom-right-radius: 8px;
	font-size: 12px;
	line-height: 1.4;
	z-index: 1000;
	min-width: 200px;
	font-family: monospace;
}

.ATS-Color {
	font-size: 0.6em;
	justify-content: center;  /* horizontal centering */
	align-items: center;      /* vertical centering */
	background-color: #252525;
	color: rgba(255, 255, 255, 0.4);
	padding: 1px 20px;
	margin: 0 5px;
	width: 75px;
	height: 25px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.ETS-Color {
	font-size: 0.6em;
	justify-content: center;  /* horizontal centering */
	align-items: center;      /* vertical centering */
	background-color: #303030;
	color: rgba(255, 255, 255, 0.4);
	padding: 1px 20px;
	margin: 0 5px;
	width: 75px;
	height: 25px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.black-color {
  display: inline-flex;       /* stay inline and use flex layout */
  align-items: center;        /* vertically center spans inside */
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 2px 5px;           /* optional spacing */
  border-radius: 2px;         /* optional rounded corners */
}

.bg-damage {background: linear-gradient(to right, #212529, #3E4852) !important;}

.progress.tall {
  height: 20px; /* adjust to your liking */
}
.progress.tall .progress-bar {
  font-size: 1rem; /* make percentage text scale with bar */
  line-height: 20px; /* vertically center text */
}

/* ATS/ETS2 HOME */
 
/* Change background and text color for active dropdown item */
.dropdown-item.active,
.dropdown-item:active {
  background-color: #2B3035 !important; 
  color: #fff !important;    
}

/* Optional: On hover over active item */
.dropdown-item.active:hover {
  background-color: #0056b3; 
}

 
        .containerz {
            display: flex;
			width: 100%;
            padding: 0px;
			margin-bottom:25px
        }
		
		 .main-panel {
			width: 100%;
			background-color: #494949;
			padding: 5px;
			margin-bottom: 50px;
		}
		
        .left-panel {
            width: 400px;
            background-color: transparent !important;
            padding: 10px;
			padding-top: 0px;
            border-radius: 0px;
			margin-top: 0px;
            margin-right: 20px;
        }
        .left-panel h2 {
            color: #fcbf10;
            margin-bottom: 10px;
        }
        .driver-info {
            display: flex;
			position: relative; /* allows the use of left/right/top/bottom */
			right: 10px; /* moves the element 2px to the right */
			width: 105.2%;
			background-color: #494949;
			padding-left: 5px;
			padding-right: 0px;
			margin-left: 0px;
			margin-right: 0px;
			border-bottom: 5px solid #1E1E1E;
        }
        .driver-info img {
            width: 100px;
            height: 100px;
			margin-top: 5px;
			margin-bottom: 5px;
            margin-right: 5px;
			border: 1px solid #000;
        }
        .driver-info div {
            font-size: 1.1em;
        }
        .status {
			font-size: 0.88em;
            color: #ddd;
            font-weight: bold;
			padding-top: 0px;
			padding-bottom: 0px;
			margin-top: 0px;
			margin-bottom: 0px;
        }
        .rating {
			font-size: 0.88em;
            color: orange;
			font-weight: bold;
			padding-top: 0px;
			padding-bottom: 0px;
			margin-top: 0px;
			margin-bottom: 0px;
        }
        .training-policy {
			position: relative; /* allows the use of left/right/top/bottom */
			right: 10px; /* moves the element 2px to the right */
			width: 105.2%;
			background-color: #494949;
			border-bottom: 1px solid #1E1E1E;
        }
		.training-row {
		  display: flex;
		  justify-content: space-between; /* left & right blocks */
		  margin-bottom: 8px;             /* spacing between rows */
		}

		.training-icons {
		  display: grid;
		  grid-template-columns: repeat(7, 22px);
		  gap: 5px;
		  align-items: center;  /* makes sure images/divs line up */
		}
		.ti-right{
			padding-right: 10px;
		}
        .job-info {
            margin-top: 20px;
        }
        .job-info p {
            margin: 5px 0;
        }
        .truck-info {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
			padding-bottom: 0px;
			position: relative; /* allows the use of left/right/top/bottom */
			right: 10px; /* moves the element 2px to the right */
			width: 105.2%;
			padding-left: 10px;
			padding-right: 0px;
			margin-left: 0px;
			margin-right: 0px;
        }
		.map-info {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
			padding-bottom: 0px;
			position: relative; /* allows the use of left/right/top/bottom */
			right: 10px; /* moves the element 2px to the right */
			width: 105.2%;
			padding-left: 10px;
			padding-right: 0px;
			margin-left: 0px;
			margin-right: 0px;
        }
        .truck-info div {
            text-align: center;
        }

        .icons-footer {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
        }
        .icons-footer img {
            width: 40px;
            height: 40px;
        }

        .right-panel {
            flex-grow: 1;
            background-color: transparent !important;
            border-radius: 0px;
            padding: 5px;
			margin-bottom: 50px;
        }
        table {
            width: 100%;
            border-collapse: collapse;
        }
        table th, table td {
            border: 1px solid #444;
            padding: 8px 10px;
            text-align: left;
        }
        table th {
            background-color: #3d3d3d;
            font-weight: bold;
            color: #fcbf10;
        }
        table .highlight {
            background-color: #fcbf10;
            color: #000;
        }
        table td {
            color: #ddd;
        }
        table .icon {
            text-align: center;
        }
        table .icon img {
            width: 20px;
        }
		.driver-details {
			color: orange;
			font-size: 1.3em;
		}
		.driver-name {
			position: relative; /* allows the use of left/right/top/bottom */
			right: 10px; /* moves the element 2px to the right */
			width: 105.2%;
			background-color: #494949;
			padding-left: 0px;
			padding-right: 0px;
			margin-left: 0px;
			margin-right: 0px;
			margin-bottom: 0px;
			border-bottom: 5px solid #1E1E1E;
		}
		.Dname {
			color: #DDDDDD;
			padding-top: 3px;
			padding-bottom: 3px;
			margin-top: 0px;
			margin-bottom: 0px;
		}
		.myinfo-truck {
			position: relative; /* allows the use of left/right/top/bottom */
			right: 10px; /* moves the element 2px to the right */
			width: 105.2%;
			background-color: #494949;
			padding-top: 5px;
			padding-left: 5px;
			padding-right: 0px;
			padding-bottom: 5px;
			margin-top: 4px;
			margin-left: 0px;
			margin-right: 0px;
			margin-bottom: 0px;
			border-bottom: 1px solid #1E1E1E;
		}
		.current_truck {
			color: #DDDDDD;
			padding-top: 0px;
			padding-bottom: -5px;
			margin-top: 4px;
			margin-bottom: -20px;
		}
		.myinfo-map {
			position: relative; /* allows the use of left/right/top/bottom */
			right: 10px; /* moves the element 2px to the right */
			width: 105.2%;
			background-color: #494949;
			padding-top: 0px;
			padding-left: 5px;
			padding-right: 0px;
			padding-bottom: 5px;
			margin-top: 4px;
			margin-left: 0px;
			margin-right: 0px;
			margin-bottom: 0px;
			border-bottom: 1px solid #1E1E1E;
		}
		.current_location {
			color: #DDDDDD;
			padding-top: 0px;
			padding-bottom: 0px;
			margin-top: 4px;
			margin-bottom: -20px;
		}
		.username {
		text-align: center;
		padding: 0px;
        margin: 0px;	
		}
		.no-spacez {
		  margin: 0px 0 !important;   /* small gap above and below */
		  padding: 0;      /* optional, keeps it tidy */
		}
		.d-info {
			color: #9C9C9C;
			font-weight: bold;
			font-size: 0.88em;
			padding-top: 0px;
			padding-bottom: 0px;
			margin-top: 0px;
			margin-bottom: 0px;
		}
	    .ti-image,
		.training-icon {
		  width: 22px;
		  height: 22px;
		  display: flex;
		  justify-content: center;
		  align-items: center;
		  border-radius: 10%;
		  margin: 3px;
		}
		.training-icon {
		  background-color: #fcbf10;
		  color: #000;
		  font-weight: bold;
		}
		.flex {
			display: flex;
		}
.rowz {
    display: flex;
    margin-bottom: 0px;
}

.col1 {
	padding-left: 0px;
    margin-right: 80px;
}

.col2 {
	margin-left: 40px;
}

.truck-text, .garage-text{
	padding: 0px;
	margin: 0px;
}

.truck-text p {
    white-space: nowrap; /* Prevent text wrapping */
}

.status-infoz {
	position: relative; /* allows the use of left/right/top/bottom */
	right: 10px; /* moves the element 2px to the right */
	width: 105.2%;
	padding-left: 0px;
	padding-right: 0px;
	padding-bottom: 5px;
	margin-left: 0px;
	margin-right: 0px;
}

.status-info {
	font-size: 0.9em;
    text-align: left;
	padding-left: 10px;
	padding-right: 40px;
	margin-top: 0px;
}
.trailer-info {
	font-size: 0.9em;
    text-align: left;
    margin-top: 0px;
}

.no-spacez {
    margin: 0;
    padding: 0px;
}

.month-nav {
    display: flex;           /* Use flexbox to align items in a row */
    align-items: center;      /* Vertically center the elements */
    justify-content: center;  /* Center all items horizontally */
    gap: 10px;                /* Add space between the elements */
}

.month-nav button {
    padding: 0px 10px;       /* Adjust padding for better button appearance */
}

.month-nav #current-month {
    font-weight: bold;        /* Make the current month text stand out */
    white-space: nowrap;      /* Prevent month and year from wrapping to the next line */
}

/* END ATS/ETS2 HOME */

@media (min-width: 1600px) and (max-width: 1920px) {
.stats-box {
  border: 1px dashed #444;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  margin-bottom: 0.75rem;
  margin-right: 0.5rem;
}

.stats-box.red { border-color: #FF3F3F; }
.stats-box.yellow { border-color: #FFC90F; }
.stats-box.green { border-color: #00E6A8; }
.stats-box.blue { border-color: #27BBFF; }
}

/* Increase size for 1600x900 and similar screens */
@media (min-width: 1400px) and (max-width: 1700px) {
.truck-image {
  width: 100%;
  max-width: 100%;
  border-radius: 0.1rem;
  padding-right: 0px;
}

.stats-box {
  border: 1px dashed #444;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  margin-bottom: 0.75rem;
  margin-right: 0.5rem;
}

.stats-box.red { border-color: #FF3F3F; }
.stats-box.yellow { border-color: #FFC90F; }
.stats-box.green { border-color: #00E6A8; }
.stats-box.blue { border-color: #27BBFF; }

.progress-container {
	width: 200%;
	position: relative;
}
.progress-bar {
	height: 100%;
	background-color: #088AC6;
	border-radius: 4px;
}
.progress {
	background-color: #000;
	height: 5px;
	border-radius: 2px;
	font-size: 0.5em;
}
.pad-prog {
	margin-left: 48px;
	padding-left: 0px;
}

.progress-bar.with-line {
  position: relative;
  overflow: visible; /* let our line show */
}

.progress-bar.with-line::after {
  content: "";
  display: block;
  position: absolute;
  top: -5px;                  /* extend above */
  bottom: -5px;               /* extend below */
  right: 0;                   /* stick to the end */
  width: 4px;                 /* thickness of the line */
  background: #687a8c;          /* line color */
  z-index: 10;
}


.col-md-7{
	flex:0 0 auto;
	width:49%
}
}

/* Slightly larger for mobile */
@media (max-width: 768px) {
.truck-image {
	width: 100%;
	max-width: 100%;
	border-radius: 0.1rem;
}

.stats-box {
  border: 1px dashed #444;
  gap: 5;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  margin-bottom: 0.75rem;
}

.stats-box.red { border-color: #FF3F3F; }
.stats-box.yellow { border-color: #FFC90F; }
.stats-box.green { border-color: #00E6A8; }
.stats-box.blue { border-color: #27BBFF; }

.progress-container {
	width: 200%;
	position: relative;
}
.progress-bar {
	height: 100%;
	background-color: #088AC6;
	border-radius: 2px;
}
.progress {
	background-color: #000;
	height: 7px;
	border-radius: 2px;
	font-size: 0.5em;
}

.progress-bar.with-line {
  position: relative;
  overflow: visible; /* let our line show */
}

.progress-bar.with-line::after {
  content: "";
  display: block;
  position: absolute;
  top: -5px;                  /* extend above */
  bottom: -5px;               /* extend below */
  right: 0;                   /* stick to the end */
  width: 2px;                 /* thickness of the line */
  background: #687a8c;          /* line color */
  z-index: 10;
}

}

/* HERO SECTION */
.hero {
  position: relative;
  height: 15vh;
  background: url('../img/background.jpg') center/cover no-repeat;
  overflow: hidden;
  color: white;
}

.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 1rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.hero p {
  font-size: clamp(0.9rem, 3vw, 1.2rem);
}

.progress-container {
	width: 200%;
	position: relative;
}
.progress-bar {
	height: 100%;
	background-color: #088AC6;
	border-radius: 2px;
}
.progress {
	background-color: #000;
	height: 7px;
	border-radius: 2px;
	font-size: 0.5em;
}

.pad-prog {
	padding-left: 0px;
}

/* CARD STYLING */
.card {
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #333;
  border-radius: 8px;
}

.card .card-header {
  background-color: #2c2c2c;
  border-bottom: 1px solid #2B2B2B;
}

.card .card-jobs {
  background-color: transparent;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* STATS BOXES */
.stats-box {
  border: 1px dashed #444;
  gap: 5;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  margin-bottom: 0.75rem;
}

.stats-box.red { border-color: #FF3F3F; }
.stats-box.yellow { border-color: #FFC90F; }
.stats-box.green { border-color: #00E6A8; }
.stats-box.blue { border-color: #27BBFF; }

/* SECTION TITLE */
.section-title {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

/* TABLE SECTION */

.table-country {
	background-color: #000000 !important; /* Your custom dark color */
    color: white !important;
}

.table-tran {	
	--bs-table-color:#fff;
	--bs-table-bg:transparent;
	--bs-table-border-color:#373b3e;
	--bs-table-striped-bg:#2c3034;
	--bs-table-striped-color:#fff;
	--bs-table-active-bg:#373b3e;
	--bs-table-active-color:#fff;
	--bs-table-hover-bg:#323539;
	--bs-table-hover-color:#fff;
	color:var(--bs-table-color);
	border-color:var(--bs-table-border-color)}
}

/* JOB LIST SECTION */
.last-jobs {
  background-color: #2c2c2c;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
  color: #fff;
}

/* CUSTOM WIDTH */
.custom-width {
  max-width: 97%;
  margin: 0 auto;
}

/* CUSTOM GRID SYSTEM */
.col-md-2-5, .col-md-3-5, .col-5-5 {
  padding: 0.5rem;
  box-sizing: border-box;
}

.col-md-2-5 {
  flex: 0 0 auto;
  width: 19.3%;
}

.col-md-3-5 {
  flex: 0 0 auto;
  width: 32.5%;
}

.col-5-5 {
  flex: 0 0 auto;
  width: 47.48%;
}

.col-md-9-5 {
  width: 100%;
}
	
.w-35 {
  width: 35%;
}

/* Full-width modal (max out at 100%) */
.modal-dialog.modal-wide {
    width: 75%;
    max-width: 100%;
    margin: 30px auto;
	margin-top: 59px;
}

@media (max-width: 768px) {
.modal-dialog.modal-wide {
        width: 75%;
        margin: 10px;
    }
}

/* Optional: prevent content from overflowing horizontally */
.modal-body {
    overflow-x: auto;
}

.modal-backdrop {
  background-color: transparent !important;
}

/* NEW table css */

.dark-themed-widget {
    background-color: #1E1E1E;
    padding: 1rem;
    color: #f0f0f0;
	border: 0px solid transparent;
}

.dark-themed-widget table {
	background-color: #2C2C2C;
    color: #f0f0f0;
    border: 0px solid transparent;
}

.dark-themed-widget thead th {
    background-color: #2C2C2C !important;
    color: #ffffff;
	border-radius: 8px;
	border: 0px solid transparent;
}

.dark-themed-widget tbody tr {
    background-color: #222222;
    border: 0px solid transparent;
}

.dark-themed-widget tbody tr:nth-child(even) {
    background-color: #1E1E1E;
	border: 0px solid transparent;
}

.dark-themed-widget .pagination .page-link {
    background-color: #2C2C2C;
    color: #f0f0f0;
    border-color: #444;
}

.dark-themed-widget .pagination .page-item.active .page-link {
    background-color: #1E1E1E;
    border-color: #444;
    color: #fff;
}

.dark-themed-widget .pagination .page-link:hover {
    background-color: #222222;
    border-color: #555;
}

  /* Search box */
  #dt-search-0, #dt-search-1 {
    background-color: #2C2C2C !important;
    color: #fff !important;
    border: 1px solid transparent !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
  }

  /* Style the page length dropdown */
  #dt-length-0, #dt-length-1 {
    background-color: #2C2C2C !important;
    color: #fff !important;
    border: 1px solid transparent !important;
    padding: 6px 20px !important;
    border-radius: 4px !important;
  }
  
  #dt-search-0, #dt-search-1:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important; /* optional: keep border consistent */
  }

  /* Remove focus outline and shadow from dropdown */
  #dt-length-0, #dt-length-1:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important; /* optional */
  }
  
#dt-search-0:focus,
#dt-length-0:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px #333 !important;
}

#dt-search-1:focus,
#dt-length-1:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px #333 !important;
}

/* OG Table css */
table {
width: 100%;
border-collapse: collapse; 
border-spacing: 0;
}
table th, table td {
border: 1px solid #444;
padding: 8px 10px;
text-align: left;
}
table th {
background-color: #3d3d3d;
font-weight: bold;
color: #fcbf10;
}
td, th {
    border: 1px solid #000; /* or your color */
}

table .highlight {
background-color: #fcbf10;
color: #000;
}
.table-exp th,
.table-exp td:hover {
  background-color: transparent !important;
}

.table-exp tr:hover {
  background-color: transparent !important;
}
tr:hover {background-color: #373737;}
table td {
color: #ddd;
padding: 0px;
margin: 0px;
}
table td {
color: #ddd;
padding: 0px;
margin: 0px;
}
table .icon {
text-align: center;
}
table .icon img {
width: 20px;
}
	
.right-panel {
flex-grow: 1;
background-color: #2b2b2b;
border-radius: 1px;
padding: 5px;
}

.trip td {
    cursor: pointer;
}
/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
  .col-md-2-5, .col-md-3-5, .col-5-5 {
    width: 48%;
  }
}

@media (max-width: 768px) {
  .col-md-2-5, .col-md-3-5, .col-5-5 {
    width: 100%;
  }

  .stats-box {
    margin-right: 0;
  }

  .hero {
    height: 25vh;
  }
}

@media (min-width: 2560px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .stats-box {
    font-size: 1.25rem;
    padding: 15px;
  }

  .card {
    font-size: 1.2rem;
  }

  .card .card-header {
    font-size: 1.3rem;
  }

  .last-jobs {
    font-size: 1.25rem;
  }

  .col-md-2-5 {
    width: 16%;
  }

  .col-md-3-5 {
    width: 24%;
  }

  .col-5-5 {
    width: 32%;
  }

  .custom-width {
    max-width: 70%;
  }
}

.text-light {
	color: #fff !important;
}

.in-progress h5 {
    color: #e8eaed;
    margin-bottom: 0px;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid #3E4852;
    padding-bottom: 0px;
}
	
	.profile-card {
      background-color: #1E1E1E;
      border-radius: 12px;
      padding-left: 0.2rem;
	  padding-right: 0.4rem;
	  padding-top: 0.2rem;
	  padding-bottom: 0.2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: #fff;
	  border: 1px solid #373b3e;
    }
    .profile-left {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex: 1;
    }
	.profile-right {
      align-items: left;
      flex: 1;
	  border-left: 2px solid #373B3E;
	  padding-left: 5px;
	  margin-left: 5px;
    }
	.current-job {
		font-size: 0.9em;
		padding: 0px;
		margin: 0px;
	}
    .profile-avatar {
      width: 170px;
      height: 232px;
      border-radius: 8px;
      object-fit: cover;
    }
    .level-badge {
      background-color: #2C2C2C;
      border-radius: 6px;
      padding: 0.25rem 0.6rem;
      font-size: 0.85rem;
      font-weight: bold;
      color: #fff;
    }
    .progress-container {
      width: 100%;
    }
    .progress {
      height: 8px;
      background-color: #2C2C2C;
    }
    .progress-bar {
      background-color: #5a5a9e;
    }
	
	.progress-bar.with-line {
	  position: relative;
	  overflow: visible; /* let our line show */
	}

	.progress-bar.with-line::after {
	  content: "";
	  display: block;
	  position: absolute;
	  top: -5px;                  /* extend above */
	  bottom: -5px;               /* extend below */
	  right: 0;                   /* stick to the end */
	  width: 2px;                 /* thickness of the line */
	  background: #687a8c;          /* line color */
	  z-index: 10;
	}

/*-- START Modals --*/
/* Full-width modal (max out at 100%) */
.modal-dialog.modal-wide-trucks {
    width: 50%;
    max-width: 100%;
    margin: 30px auto;
	margin-top: 59px;
}
.no-hover {
	background-color: #222222 !important;
}
.bg-custom-modal-dark {
	background-color: #2D3339 !important;
}
.bg-custom-dark {
	background-color: #222222 !important;
}
.bg-custom-cat {
	background-color: #222222 !important;
}
.bg-custom-head {
	background-color: #333333 !important;
}
.bg-custom-data {
	background-color: #222222 !important;
}

.ats-trucks {
		background-color: #F8F9FA;
		width: 900px;
		padding: 20px;
		border-radius: 8px;
		box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
		position: fixed;
		top: 50.68%;
		left: 50%;
		transform: translate(-50%, -50%);
		z-index: 1000;
		max-height: 90vh;
        overflow-y: auto;
}

.ets2-trucks {
		background-color: #F8F9FA;
		width: 900px;
		padding: 20px;
		border-radius: 8px;
		box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
		position: fixed;
		top: 46.25%;
		left: 50%;
		transform: translate(-50%, -50%);
		z-index: 1000;
		max-height: 90vh;
        overflow-y: auto;
}

.mod-header {
	padding-top: 5px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

.trapezoid {
	margin-top: -26px;
	width: 100%; /* Full width */
	height: 39.5px; /* Adjust the height as needed */
	background-color: #E9ECEF; /* Background color for the div */
	clip-path: polygon(20.1% 100%, 79.99% 100%, 84.99% 0, 15.1% 0); /* Trapezoid shape */
	margin-bottom: 10px;
	z-index: 1; /* Make sure it's above the shadow */
}

/* Create the shadow behind the trapezoid */
.trapezoid2 {
	margin-top: 5px;
	width: 100%; /* Full width */
	height: 40px; /* Adjust the height as needed */
	background-color: black; /* Background color for the div */
	clip-path: polygon(20.1% 100%, 80% 100%, 85% 0, 15.1% 0); /* Trapezoid shape */
	margin-bottom: 10px;
	z-index: -1; /* Place behind the trapezoid */
}

.stats {
    display: flex;
    justify-content: space-between;
    background-color: #E5E5E5;
    padding: 5px;
    border: 0px solid #444;
    margin-bottom: 20px;
    -moz-box-shadow: inset 0px 2px 4px 1px rgba(0,0,0,0.3);
    -webkit-box-shadow: inset 0px 2px 4px 1px rgba(0,0,0,0.3);
    box-shadow: inset 0px 2px 4px 1px rgba(0,0,0,0.3);
}

  .table thead th {
    border-bottom: none !important;
  }
  
.borderz-bottom {
    overflow: hidden;
}

.table-borderless th,
.table-borderless td,
.table-borderless tr {
  border: none !important;
}
/* END Modals */

@media (min-width: 1920px) and (max-width: 2559px) {

* HERO SECTION */
.hero {
  position: relative;
  height: 15vh;
  background: url('../img/background.jpg') center/cover no-repeat;
  overflow: hidden;
  color: white;
}

.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 1rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.hero p {
  font-size: clamp(0.9rem, 3vw, 1.2rem);
}

/* CARD STYLING */
.card {
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #333;
  border-radius: 8px;
}

.card .card-header {
  background-color: #2c2c2c;
  border-bottom: 1px solid #2B2B2B;
}

.card .card-jobs {
  background-color: transparent;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* STATS BOXES */
.stats-box {
  border: 1px dashed #444;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  margin-bottom: 0.75rem;
  margin-right: 0.5rem;
}

.stats-box.red { border-color: #FF3F3F; }
.stats-box.yellow { border-color: #FFC90F; }
.stats-box.green { border-color: #00E6A8; }
.stats-box.blue { border-color: #27BBFF; }

/* SECTION TITLE */
.section-title {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

/* JOB LIST SECTION */
.last-jobs {
  background-color: #2c2c2c;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
  color: #fff;
}

/* CUSTOM WIDTH */
.custom-width {
  max-width: 95%;
  margin: 0 auto;
}

/* CUSTOM GRID SYSTEM */
.col-md-2-5, .col-md-3-5, .col-5-5 {
  padding: 0.5rem;
  box-sizing: border-box;
}

.col-md-2-5 {
  flex: 0 0 auto;
  width: 19.3%;
}

.col-md-3-5 {
  flex: 0 0 auto;
  width: 32.5%;
}

.col-5-5 {
  flex: 0 0 auto;
  width: 48%;
}

/* Full-width modal (max out at 100%) */
.modal-dialog.modal-wide {
    width: 75%;
    max-width: 100%;
    margin: 30px auto;
	margin-top: 165px;
}

.canceled {
	position: relative;
	background: rgba(0, 0, 0, 0.6);
	color: white;
}
.canceled::after {
	content: "CANCELED";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 15px;
	font-weight: bold;
	background: rgba(0, 0, 0, 0.1);
	color: yellow;
	padding: 0px 5px;
	border-radius: 5px;
}

@media screen and (min-width: 1400px) {
  .stats-width {
    width: 80%;
  }
  .stats-font {
	font-size: 0.7em;
  }
}
@media screen and (min-width: 1600px) {
  .stats-width {
    width: 75%;
  }
  .stats-font {
	font-size: 0.7em;
  }
  .no-hover {
	background-color: #222222 !important;
}
}
@media screen and (min-width: 1900px) {
  .stats-width {
	background-color: grey;
    width: 45%;
  }
  .stats-font {
	font-size: 0.7em;
  }
}

.badge.rounded-pill.bg-secondary {
  font-size: 0.75rem;   /* smaller text */
  padding: 0.25em 0.5em; /* less vertical and horizontal padding */
  line-height: 1;       /* tighter line height */
}

/* 404 NOT FOUND */

#notfound {
  position: relative;
  height: 50vh;
}

#notfound .notfound {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.notfound {
  max-width: 870px;
  width: 100%;
  line-height: 1.4;
}

.notfound>div:first-child {
  padding-left: 200px;
  padding-top: 12px;
  height: 170px;
  margin-bottom: 20px;
}

.notfound .notfound-404 {
  position: absolute;
  left: 0;
  top: 0;
  width: 170px;
  height: 170px;
  background: transparent;
  border-radius: 7px;
  -webkit-box-shadow: 0px 0px 0px 10px transparent inset, 10px 0px 0px 0px #e01818 inset;
          box-shadow: 0px 0px 0px 10px transparent inset, 0px 0px 10px 0px #e01818 inset;
}

.notfound .notfound-404 h1 {
  font-family: 'Goldman', cursive;
  color: #e01818;
  font-size: 120px;
  margin: 0px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  height: 60px;
  line-height: 60px;

  /* Dimmed glow effect */
  text-shadow:
    0 0 4px rgba(224, 24, 24, 1.0),
    0 0 7px rgba(224, 24, 24, 0.9),
    0 0 11px rgba(255, 78, 78, 0.8);
}

.notfound h2 {
  font-family: 'Goldman', cursive;
  font-size: 95px;
  color: #fff;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0px;
  line-height: 1.5;
}

.notfound p {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  margin-top: 5px;
  margin-bottom: 0px;
}

@media only screen and (max-width: 480px) {
  .notfound {
    padding-left: 15px;
    padding-right: 15px;
  }
  .notfound>div:first-child {
    padding: 0px;
    height: auto;
  }
  .notfound .notfound-404 {
    position: relative;
    margin-bottom: 15px;
  }
  .notfound h2 {
    font-size: 42px;
  }
}

	.progress-bar.with-line {
	  position: relative;
	  overflow: visible; /* let our line show */
	}

	.progress-bar.with-line::after {
	  content: "";
	  display: block;
	  position: absolute;
	  top: -5px;                  /* extend above */
	  bottom: -5px;               /* extend below */
	  right: 0;                   /* stick to the end */
	  width: 2px;                 /* thickness of the line */
	  background: #687a8c;          /* line color */
	  z-index: 10;
	}

/* Percentage label */
.progress-bar.with-line .progress-label {
  position: absolute;
  right: 5px;        /* moves text just past the line */
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 5px rgba(0,0,0,0.7); /* helps readability */
}

/* Overlay styles */
.overlay-div {
  position: absolute;
  top: 0;              /* align with top of image */
  left: 100%;          /* place to the right of the image */
  margin-left: 10px;   /* small gap */
  width: 250px;        /* fixed width or adjust as needed */
  z-index: 1000;       /* ensure it floats above */
}

/* CONTAINER FOR FLEX ROWS */
.test-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-left: -1px;
}
}