@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin,greek,greek-ext,cyrillic,cyrillic-ext,latin-ext,vietnamese);

html {
	height: 100%;
}

body {
	height: 100%;
	margin: 0px;
	padding: 0px;
	font-size: 11px;
	font-family: "open sans";
	color: #444444;
	overflow: hidden;
}

a,
a:hover { text-decoration: none; color: #2b82d4; }
b, strong{ font-weight: 600; }

*:focus { outline: 0; }

/*#################################################*/
/* FIX
/*#################################################*/

.clearfix { display: table; width: 100%; height: 100%; }

/*#################################################*/
/* INPUTBOXES, SELECT
/*#################################################*/

button { font-size: 11px; }
input.checkbox { vertical-align: middle;}
input[type="checkbox"] { 
	height: 14px;
	margin: 5px 0 5px 0;
}
.inputbox { width: 100%; padding: 0 5px;}
textarea.inputbox { padding: 5px; }
input, textarea {
	-webkit-box-sizing: border-box;â€Œâ€‹
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
input.color,
input.color:focus,
input.color:hover { border: none; }
input,
select,
.inputbox,
.textarea {
	margin: 0;
	height: 24px;
	border: 1px solid #f5f5f5;
	font-size: 11px;
	font-family: "open sans";
	color: #444444;
	background: #f5f5f5;
}
optgroup,
option {
	font-family: "open sans";
	color: #444444;
}
optgroup {
	font-style: normal;
	font-weight: 600;
}
input:focus,
textarea:focus,
select:focus { background-color: #ffffff; }
input:hover,
textarea:hover,
select:hover { background-color: #ffffff; }
input:disabled,
textarea:disabled,
select:disabled { border: 1px solid #eeeeee; background-color: #eeeeee; }
.inputbox-calendar,
.inputbox-calendar-mmdd{
	color: #444444;
	border: 1px solid #f5f5f5;
	-webkit-inline-box: none;
	background: #f5f5f5 url("images/calendar.svg") right no-repeat;
	background-size: 14px 14px;
}
.inputbox-calendar:disabled,
.inputbox-calendar-mmdd:disabled{ -webkit-inline-box: none; background: #eeeeee url("images/calendar.svg") right no-repeat; background-size: 14px 14px;}
.inputbox-search {
	width: 100%;
	height: 28px;
	text-indent: 30px;
	background: #f5f5f5 url("images/search.svg") 10px center no-repeat;
	background-size: 14px 14px;
	float: left;
}
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
	color: #999999;
}
::-moz-placeholder { /* Firefox 19+ */
	color: #999999;
}
:-ms-input-placeholder { /* IE 10+ */
	color: #999999;
}
:-moz-placeholder { /* Firefox 18- */
	color: #999999;
}

/*#################################################*/
/* BUTTONS
/*#################################################*/

.panel-button img {
	display: block;
	padding: 6px;
	background: #f5f5f5;
}

.panel-button img:hover {
	background: #ffffff;
}

input.button {
	border: 1px solid #f5f5f5;
	background-color: #f5f5f5;
	height: 24px;
	min-width: 80px;
	color: #444444;
	cursor: pointer;
	text-align: center;
	margin-bottom: 0px;
	padding: 0 5px;
}
input.button.icon {
	text-align: center;
	padding-left: 26px;
	padding-right: 10px;
	margin-bottom: 0;
	background-repeat: no-repeat;
	background-position: 10px center;
	background-size: 10px 10px;
}
input.button-32 {
	border: 1px solid #f5f5f5;
	background-color: #f5f5f5;
	height: 32px;
	min-width: 80px;
	color: #444444;
	cursor: pointer;
	text-align: center;
	margin-bottom: 0px;
	padding: 0 5px;
}
input.button-32.icon-16 {
	text-align: center;
	padding-left: 32px;
	padding-right: 10px;
	margin-bottom: 0;
	background-repeat: no-repeat;
	background-position: 10px center;
	background-size: 16px 16px;
}
input.button.no-text.icon {
	background-position: center center;
	padding: 0px;
}
input.button:hover { background-color: #ffffff; }
input.button:active { background-color: #ffffff; }
input.button:disabled { border: 1px solid #eeeeee; background-color: #eeeeee; }

input.button-32:hover { background-color: #ffffff; }
input.button-32:active { background-color: #ffffff; }
input.button-32:disabled { border: 1px solid #eeeeee; background-color: #eeeeee; }

input.button.panel {
	border: 1px solid #ffffff;
	background-color: #ffffff;
}
input.button.panel:hover { border: 1px solid #e5e5e5; background-color: #e5e5e5; }
input.button.panel:active { border: 1px solid #e5e5e5; background-color: #e5e5e5; }

/*#################################################*/
/* ICONS
/*#################################################*/

.icon-new { background-image: url(images/plus.svg); }
.icon-save { background-image: url(images/save.svg); }
.icon-follow { background-image: url(images/follow.svg); }
.icon-street { background-image: url(images/street-view.svg); }
.icon-create { background-image: url(images/create.svg); }
.icon-share { background-image: url(images/share.svg); }
.icon-show { background-image: url(images/eye.svg); }
.icon-hide { background-image: url(images/eye-crossed.svg); }
.icon-close { background-image: url(images/remove.svg); }
.icon-edit { background-image: url(images/edit.svg); }
.icon-search { background-image: url(images/search2.svg); }
.icon-time { background-image: url(images/history.svg); }
.icon-refresh { background-image: url(images/refresh.svg); }
.icon-check { background-image: url(images/tick.svg); }
.icon-play { background-image: url(images/play.svg); }
.icon-import { background-image: url(images/import.svg); }
.icon-export { background-image: url(images/export.svg); }
.icon-arrow-right { background-image: url(images/arrow-right.svg); }
.icon-import-arrow { background-image: url(images/import-arrow.svg); }
.icon-export-arrow { background-image: url(images/export-arrow.svg); }
.icon-import-export { background-image: url(images/import-export.svg); }
.icon-upload { background-image: url(images/upload.svg); }
.icon-erase { background-image: url(images/erase.svg); }
.icon-tick { background-image: url(images/tick.svg); }
.icon-remove3 { background-image: url(images/remove3.svg); }
.icon-action2 { background-image: url(images/action2.svg); }
.icon-key { background-image: url(images/key.svg); }
.icon-marker { background-image: url(images/marker.svg); }
.icon-markers { background-image: url(images/markers.svg); }
.icon-routes { background-image: url(images/routes.svg); }
.icon-zones { background-image: url(images/zones.svg); }
.icon-kml { background-image: url(images/kml.svg); }
.icon-tasks { background-image: url(images/tasks.svg); }
.icon-maintenance { background-image: url(images/maintenance.svg); }
.icon-gallery { background-image: url(images/gallery.svg); }

.icon-time { background-image: url(images/time.svg); }
.icon-warning { background-image: url(images/warning.svg); }
.icon-nearest-marker { background-image: url(images/nearest-marker.svg); }
.icon-nearest-zone { background-image: url(images/nearest-zone.svg); }
.icon-address { background-image: url(images/address.svg); }
.icon-altitude { background-image: url(images/altitude.svg); }
.icon-angle { background-image: url(images/angle.svg); }
.icon-speed { background-image: url(images/speed.svg); }
.icon-engine-hours { background-image: url(images/engine-hours.svg); }
.icon-odometer { background-image: url(images/odometer.svg); }
.icon-model { background-image: url(images/model.svg); }
.icon-plate-number { background-image: url(images/plate-number.svg); }
.icon-sim { background-image: url(images/sim.svg); }
.icon-vin { background-image: url(images/vin.svg); }
.icon-user { background-image: url(images/user.svg); }
.icon-trailer { background-image: url(images/trailer.svg); }
.icon-default-custom-fields { background-image: url(images/default-custom-fields.svg); }
.icon-default-sensor { background-image: url(images/default-sensor.svg); }
.icon-status { background-image: url(images/status.svg); }
.icon-battery-lev-0 { background-image: url(images/battery-lev-0.svg); }
.icon-battery-lev-1 { background-image: url(images/battery-lev-1.svg); }
.icon-battery-lev-2 { background-image: url(images/battery-lev-2.svg); }
.icon-battery-lev-3 { background-image: url(images/battery-lev-3.svg); }
.icon-di { background-image: url(images/di.svg); }
.icon-do { background-image: url(images/do.svg); }
.icon-fuel { background-image: url(images/fuel.svg); }
.icon-engine { background-image: url(images/engine.svg); }
.icon-gsm { background-image: url(images/gsm.svg); }
.icon-gps { background-image: url(images/gps.svg); }
.icon-temperature { background-image: url(images/temperature.svg); }
.icon-billing { background-image: url(images/billing.svg); }

.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-control a span,
.history-view-control span {
	display: table;
	width: 100%;
	height: 100%;
	background-size: 12px 12px;
	background-repeat: no-repeat;
	background-position: center center;
}

.history-view-control span.icon-close {
	background-size: 10px 10px;
}

.leaflet-control a span.disabled,
.history-view-control a span.disabled {
	opacity: 0.5;
}

.icon-route-route { background-image: url(images/route-route.svg); }
.icon-route-snap { background-image: url(images/route-snap.svg); }
.icon-route-arrow { background-image: url(images/route-arrow.svg); }
.icon-route-data-point { background-image: url(images/route-data-point.svg); }
.icon-route-event { background-image: url(images/route-event.svg); }
.icon-route-stop { background-image: url(images/route-stop.svg); }

.leaflet-control-zoom-in { background-image: url(images/plus.svg); }
.leaflet-control-zoom-out { background-image: url(images/minus.svg); }
.icon-objects { background-image: url(images/object-arrow.svg); }
.icon-text { background-image: url(images/text.svg); }
.icon-clusters { background-image: url(images/clusters.svg); }
.icon-traffic { background-image: url(images/traffic.svg); }
.icon-fit-objects { background-image: url(images/fit.svg); }
.icon-ruler { background-image: url(images/ruler.svg); }
.icon-measure { background-image: url(images/measure.svg); }

.icon-places-marker,
.icon-object-edit {
	position: relative;
	width: 44px;
}

.icon-custom-delete {
	position: absolute;
	bottom: 0px;
	right: 0px;
}

/*#################################################*/
/* DIMENSIONS
/*#################################################*/

.width1 { width: 1%; }
.width2 { width: 2%; }
.width4 { width: 4%; }
.width5 { width: 5%; }
.width8 { width: 8%; }
.width9 { width: 9%; }
.width10 { width: 10%; }
.width11 { width: 11%; }
.width12 { width: 12%; }
.width13 { width: 13%; }
.width14 { width: 14%; }
.width15-left { width: 15%; float: left; }
.width15 { width: 15%; }
.width16 { width: 16%; }
.width17 { width: 17%; }
.width18 { width: 18%; }
.width19 { width: 19%; }
.width195 { width: 19.5%; }
.width20 { width: 20%; }
.width21 { width: 21%; }
.width235 { width: 23.5%; }
.width24 { width: 24%; }
.width245 { width: 24.5%; }
.width25 { width: 25%; }
.width27 { width: 27%; }
.width28 { width: 28%; }
.width29 { width: 29%; }
.width30 { width: 30%; }
.width31 { width: 31%; }
.width33 { width: 33.33333%; }
.width34 { width: 34%; }
.width35 { width: 35%; }
.width38 { width: 38%; }
.width39 { width: 39%; }
.width40 { width: 40%; }
.width41 { width: 41%; }
.width44 { width: 44%; }
.width45 { width: 45%; }
.width50 { width: 50%; }
.width55 { width: 55%; }
.width60 { width: 60%; }
.width65 { width: 65%; }
.width66 { width: 66%; }
.width70 { width: 70%; }
.width71 { width: 71%; }
.width75 { width: 75%; }
.width755 { width: 75.5%; }
.width76 { width: 76%; }
.width765 { width: 76.5%; }
.width80 { width: 80%; }
.width805 { width: 80.5%; }
.width83 { width: 83%; }
.width85 { width: 85%; }
.width90 { width: 90%; }
.width95 { width: 95%; }
.width100 { width: 100%; }
.width-1000 { max-width: 1000px; }

/*#################################################*/
/* FLOATING AND SPACING
/*#################################################*/

.float-left,
.block { float: left; }
.float-right { float: right; }
.container { margin-right: 10px; }
.container.last,
.last .title-block,
.container.last fieldset { margin-right: 0; }
.container.prev { margin-left: 10px; }
.absolute-right { position: absolute; right: 10px; top: 36px; margin: 0; }

/*#################################################*/
/* TABLELESS STYLING
/*#################################################*/

.row { margin-bottom: 10px; display: table; width: 100%; } /* FIX if something goes wrong with css. This row doesn't have vertical alignment, suitable just to split lines and add spacing at the bottom */
.row2 { margin-bottom: 3px; display: table; width: 100%; text-align: left; line-height: 12px; font-size: 0; }
.row2 div { display: inline-block; vertical-align: middle; font-size: 11px;} /* display: table-cell; */
.row2.empty,
.row2.text { height: 24px; }
.row2.right { text-align: right; }
.row3 { margin-bottom: 10px; display: table; width: 100%; line-height: 12px; font-size: 0; }
.row3 div { display: inline-block; vertical-align: middle; font-size: 11px; } /* display: table-cell; */
.row4 { margin-bottom: 0px; display: table; width: 100%; text-align: left; line-height: 12px; font-size: 0; }
.row4 div { display: inline-block; vertical-align: middle; font-size: 11px;} /* display: table-cell; */

.scroll-y { height: 100%; padding-right: 5px; overflow-y: scroll }

.title-block {
	margin-bottom: 10px;
	padding-bottom: 5px;
	border-bottom: 1px solid #f5f5f5;
	font-weight: 600;
	font-size: 12px;
	color: #2b82d4;
}

.table {
	display: table;
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
}

.table-cell {
	display: table-cell;
	margin: 0;
	padding: 0;
}

.center-middle {
	vertical-align: middle;
	text-align: center;
}

.margin-right-3 {
	margin-right: 3px;
}

.margin-left-3 {
	margin-left: 3px;
}

/*#################################################*/
/* LOADING AND BLOCKING PANELS
/*#################################################*/

#loading_panel {
	background-color: #ffffff;
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	width: 100%;
	height: 100%;
	z-index: 99999;
}

#loading_data_panel {
	background-color: #FFFFFF;
	opacity: 0.6;
	filter: Alpha(Opacity=30);
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	width: 100%;
	height: 100%;
	z-index: 99999;
}

#blocking_panel {
	background-color: rgba(170, 170, 170, 0.3);
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: none;
	z-index: 99999;
}

#blocking_panel_text { background-color: #ffffff; padding: 20px; }

/*#################################################*/
/* LOADER
/*#################################################*/

.loader {
	width: 70px;
	display: block;
	margin: 25px auto;
}

.loader span {
        float: left;
        vertical-align: middle;
        width: 8px;
        height: 8px;
        margin-right: 2px;
        background: #676767;
        opacity: 0.1;
        animation: loader 0.7s infinite alternate;
}

.loader span:nth-of-type(2) {
        animation-delay: 0.2s;
}
.loader span:nth-of-type(3) {
        animation-delay: 0.3s;
}
.loader span:nth-of-type(4) {
        animation-delay: 0.4s;
}
.loader span:nth-of-type(5) {
        animation-delay: 0.5s;
}
.loader span:nth-of-type(6) {
        animation-delay: 0.6s;
}
.loader span:nth-of-type(7) {
        animation-delay: 0.7s;
}

@keyframes loader {
        0% {
                opacity: 1;
        }
        100% {
                opacity: 0.1;
        }
}

/*#################################################*/
/* SPINNER
/*#################################################*/

.spinner {
  font-size: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  -webkit-animation: load5 1.1s infinite ease;
  animation: load5 1.1s infinite ease;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
@-webkit-keyframes load5 {
  0%,
  100% { box-shadow: 0em -2.6em 0em 0em #a7a7a7, 1.8em -1.8em 0 0em rgba(167,167,167, 0.2), 2.5em 0em 0 0em rgba(167,167,167, 0.2), 1.75em 1.75em 0 0em rgba(167,167,167, 0.2), 0em 2.5em 0 0em rgba(167,167,167, 0.2), -1.8em 1.8em 0 0em rgba(167,167,167, 0.2), -2.6em 0em 0 0em rgba(167,167,167, 0.5), -1.8em -1.8em 0 0em rgba(167,167,167, 0.7); }
  12.5% { box-shadow: 0em -2.6em 0em 0em rgba(167,167,167, 0.7), 1.8em -1.8em 0 0em #a7a7a7, 2.5em 0em 0 0em rgba(167,167,167, 0.2), 1.75em 1.75em 0 0em rgba(167,167,167, 0.2), 0em 2.5em 0 0em rgba(167,167,167, 0.2), -1.8em 1.8em 0 0em rgba(167,167,167, 0.2), -2.6em 0em 0 0em rgba(167,167,167, 0.2), -1.8em -1.8em 0 0em rgba(167,167,167, 0.5); }
  25% { box-shadow: 0em -2.6em 0em 0em rgba(167,167,167, 0.5), 1.8em -1.8em 0 0em rgba(167,167,167, 0.7), 2.5em 0em 0 0em #a7a7a7, 1.75em 1.75em 0 0em rgba(167,167,167, 0.2), 0em 2.5em 0 0em rgba(167,167,167, 0.2), -1.8em 1.8em 0 0em rgba(167,167,167, 0.2), -2.6em 0em 0 0em rgba(167,167,167, 0.2), -1.8em -1.8em 0 0em rgba(167,167,167, 0.2); }
  37.5% { box-shadow: 0em -2.6em 0em 0em rgba(167,167,167, 0.2), 1.8em -1.8em 0 0em rgba(167,167,167, 0.5), 2.5em 0em 0 0em rgba(167,167,167, 0.7), 1.75em 1.75em 0 0em #a7a7a7, 0em 2.5em 0 0em rgba(167,167,167, 0.2), -1.8em 1.8em 0 0em rgba(167,167,167, 0.2), -2.6em 0em 0 0em rgba(167,167,167, 0.2), -1.8em -1.8em 0 0em rgba(167,167,167, 0.2); }
  50% { box-shadow: 0em -2.6em 0em 0em rgba(167,167,167, 0.2), 1.8em -1.8em 0 0em rgba(167,167,167, 0.2), 2.5em 0em 0 0em rgba(167,167,167, 0.5), 1.75em 1.75em 0 0em rgba(167,167,167, 0.7), 0em 2.5em 0 0em #a7a7a7, -1.8em 1.8em 0 0em rgba(167,167,167, 0.2), -2.6em 0em 0 0em rgba(167,167,167, 0.2), -1.8em -1.8em 0 0em rgba(167,167,167, 0.2); }
  62.5% { box-shadow: 0em -2.6em 0em 0em rgba(167,167,167, 0.2), 1.8em -1.8em 0 0em rgba(167,167,167, 0.2), 2.5em 0em 0 0em rgba(167,167,167, 0.2), 1.75em 1.75em 0 0em rgba(167,167,167, 0.5), 0em 2.5em 0 0em rgba(167,167,167, 0.7), -1.8em 1.8em 0 0em #a7a7a7, -2.6em 0em 0 0em rgba(167,167,167, 0.2), -1.8em -1.8em 0 0em rgba(167,167,167, 0.2); }
  75% { box-shadow: 0em -2.6em 0em 0em rgba(167,167,167, 0.2), 1.8em -1.8em 0 0em rgba(167,167,167, 0.2), 2.5em 0em 0 0em rgba(167,167,167, 0.2), 1.75em 1.75em 0 0em rgba(167,167,167, 0.2), 0em 2.5em 0 0em rgba(167,167,167, 0.5), -1.8em 1.8em 0 0em rgba(167,167,167, 0.7), -2.6em 0em 0 0em #a7a7a7, -1.8em -1.8em 0 0em rgba(167,167,167, 0.2); }
  87.5% { box-shadow: 0em -2.6em 0em 0em rgba(167,167,167, 0.2), 1.8em -1.8em 0 0em rgba(167,167,167, 0.2), 2.5em 0em 0 0em rgba(167,167,167, 0.2), 1.75em 1.75em 0 0em rgba(167,167,167, 0.2), 0em 2.5em 0 0em rgba(167,167,167, 0.2), -1.8em 1.8em 0 0em rgba(167,167,167, 0.5), -2.6em 0em 0 0em rgba(167,167,167, 0.7), -1.8em -1.8em 0 0em #a7a7a7; }
}
@keyframes load5 {
  0%,
  100% { box-shadow: 0em -2.6em 0em 0em #a7a7a7, 1.8em -1.8em 0 0em rgba(167,167,167, 0.2), 2.5em 0em 0 0em rgba(167,167,167, 0.2), 1.75em 1.75em 0 0em rgba(167,167,167, 0.2), 0em 2.5em 0 0em rgba(167,167,167, 0.2), -1.8em 1.8em 0 0em rgba(167,167,167, 0.2), -2.6em 0em 0 0em rgba(167,167,167, 0.5), -1.8em -1.8em 0 0em rgba(167,167,167, 0.7); }
  12.5% { box-shadow: 0em -2.6em 0em 0em rgba(167,167,167, 0.7), 1.8em -1.8em 0 0em #a7a7a7, 2.5em 0em 0 0em rgba(167,167,167, 0.2), 1.75em 1.75em 0 0em rgba(167,167,167, 0.2), 0em 2.5em 0 0em rgba(167,167,167, 0.2), -1.8em 1.8em 0 0em rgba(167,167,167, 0.2), -2.6em 0em 0 0em rgba(167,167,167, 0.2), -1.8em -1.8em 0 0em rgba(167,167,167, 0.5); }
  25% { box-shadow: 0em -2.6em 0em 0em rgba(167,167,167, 0.5), 1.8em -1.8em 0 0em rgba(167,167,167, 0.7), 2.5em 0em 0 0em #a7a7a7, 1.75em 1.75em 0 0em rgba(167,167,167, 0.2), 0em 2.5em 0 0em rgba(167,167,167, 0.2), -1.8em 1.8em 0 0em rgba(167,167,167, 0.2), -2.6em 0em 0 0em rgba(167,167,167, 0.2), -1.8em -1.8em 0 0em rgba(167,167,167, 0.2); }
  37.5% { box-shadow: 0em -2.6em 0em 0em rgba(167,167,167, 0.2), 1.8em -1.8em 0 0em rgba(167,167,167, 0.5), 2.5em 0em 0 0em rgba(167,167,167, 0.7), 1.75em 1.75em 0 0em #a7a7a7, 0em 2.5em 0 0em rgba(167,167,167, 0.2), -1.8em 1.8em 0 0em rgba(167,167,167, 0.2), -2.6em 0em 0 0em rgba(167,167,167, 0.2), -1.8em -1.8em 0 0em rgba(167,167,167, 0.2); }
  50% { box-shadow: 0em -2.6em 0em 0em rgba(167,167,167, 0.2), 1.8em -1.8em 0 0em rgba(167,167,167, 0.2), 2.5em 0em 0 0em rgba(167,167,167, 0.5), 1.75em 1.75em 0 0em rgba(167,167,167, 0.7), 0em 2.5em 0 0em #a7a7a7, -1.8em 1.8em 0 0em rgba(167,167,167, 0.2), -2.6em 0em 0 0em rgba(167,167,167, 0.2), -1.8em -1.8em 0 0em rgba(167,167,167, 0.2); }
  62.5% { box-shadow: 0em -2.6em 0em 0em rgba(167,167,167, 0.2), 1.8em -1.8em 0 0em rgba(167,167,167, 0.2), 2.5em 0em 0 0em rgba(167,167,167, 0.2), 1.75em 1.75em 0 0em rgba(167,167,167, 0.5), 0em 2.5em 0 0em rgba(167,167,167, 0.7), -1.8em 1.8em 0 0em #a7a7a7, -2.6em 0em 0 0em rgba(167,167,167, 0.2), -1.8em -1.8em 0 0em rgba(167,167,167, 0.2); }
  75% { box-shadow: 0em -2.6em 0em 0em rgba(167,167,167, 0.2), 1.8em -1.8em 0 0em rgba(167,167,167, 0.2), 2.5em 0em 0 0em rgba(167,167,167, 0.2), 1.75em 1.75em 0 0em rgba(167,167,167, 0.2), 0em 2.5em 0 0em rgba(167,167,167, 0.5), -1.8em 1.8em 0 0em rgba(167,167,167, 0.7), -2.6em 0em 0 0em #a7a7a7, -1.8em -1.8em 0 0em rgba(167,167,167, 0.2); }
  87.5% { box-shadow: 0em -2.6em 0em 0em rgba(167,167,167, 0.2), 1.8em -1.8em 0 0em rgba(167,167,167, 0.2), 2.5em 0em 0 0em rgba(167,167,167, 0.2), 1.75em 1.75em 0 0em rgba(167,167,167, 0.2), 0em 2.5em 0 0em rgba(167,167,167, 0.2), -1.8em 1.8em 0 0em rgba(167,167,167, 0.5), -2.6em 0em 0 0em rgba(167,167,167, 0.7), -1.8em -1.8em 0 0em #a7a7a7; }
}

/*#################################################*/
/* JQGRID.CSS OVERRIDE
/*#################################################*/

.ui-jqgrid .loading {background: #ffffff; font-weight: normal;}
.ui-jqgrid .ui-jqgrid-bdiv {position: relative; margin: 0em; padding:0; overflow: auto; text-align:left; overflow-y: scroll; overflow-x: hidden;}
.ui-jqgrid tr.ui-row-ltr td {text-align:left;border-right-width: 0px; border-right-color: inherit; border-right-style: solid; border-color: #f5f5f5}
.ui-jqgrid .ui-jqgrid-pager { border-left: 0px none !important; border-right: 0px none !important; border-bottom: 0px none !important; position: relative; white-space: nowrap; overflow: hidden; }
.ui-jqgrid .ui-jqgrid-pager { background: #f5f5f5; border-top: 0px solid #e5e5e5; margin: 3px -15px -15px -15px !important; padding: 3px 15px 0px 15px !important; height: 25px; }
.ui-jqgrid .ui-jqgrid-pager { font-size: 11px; }
.ui-jqgrid .ui-pg-table td {font-weight:normal; vertical-align:middle; padding:0px;}
.ui-jqgrid .ui-pg-button  {border-left: 1px hidden; border-right: 1px hidden; border-top: 0px; border-bottom: 0px; height:19px !important;}
.ui-jqgrid .ui-state-disabled:hover {padding:0px;}
.ui-jqgrid .ui-jqgrid-view { font-size: 11px;}
.ui-jqgrid .ui-jqgrid-titlebar { margin: 0 0 10px 0; padding: 0; }
.ui-jqgrid .ui-jqgrid-htable th div { height: auto; }
.ui-jqgrid .ui-jqgrid-hdiv { margin: 0 0 3px 0; background: #f5f5f5; clear: both; }
.ui-jqgrid .ui-jqgrid-hdiv thead { font-size: 12px; height: 24px; }
.ui-jqgrid .ui-jqgrid-htable th {height:13px;}
.ui-th-column, .ui-jqgrid .ui-jqgrid-htable th.ui-th-column { height: 24px; }
.ui-th-ltr, .ui-jqgrid .ui-jqgrid-htable th.ui-th-ltr { border-left: 1px solid #e5e5e5; padding-top: 0px; }
.ui-th-ltr:first-child, .ui-jqgrid .ui-jqgrid-htable th.ui-th-ltr:first-child { border-left: none; }
.ui-jqgrid .ui-icon-asc,
.ui-jqgrid .ui-icon-desc { margin-left: 7px; margin-top:7px; height:5px; width: 10px; }
.ui-jqgrid .ui-pg-input { font-size: 11px; height: 18px; margin: 2px 0; text-align: center; }
.ui-jqgrid .ui-pg-selbox { display: block; font-size: 11px; height: 18px; line-height: 18px; margin: 0; }
.ui-jqgrid .ui-separator { height: 0; border: none; }
.ui-jqgrid .ui-pg-table { padding: 0; }
.ui-jqgrid tr.jqgrow td { padding: 1px 2px; height: 19px;}
.ui-jqgrid tr.ui-row-ltr td span { display: inline-block; height: 17px; }
.ui-jqgrid tr.ui-row-ltr td span.status { color: #808080; font-size: 11px; }
.ui-jqgrid .ui-jqgrid-btable {table-layout:fixed; margin:3px 0 0 0; outline-style: none;}
.ui-jqgrid .ui-state-hover { background: #f5f5f5; opacity: 0.9; }
.ui-jqgrid th.ui-state-hover { background: none; }
.ui-jqgrid .ui-state-highlight, .ui-widget-content .ui-state-highlight, 
.ui-widget-header .ui-state-highlight { background: #f5f5f5; opacity: 0.9; }

/*#################################################*/
/* JQGRID PAGER
/*#################################################*/

.ui-pg-div .ui-icon-plus { background: #2b82d4 url(images/plus-white.svg ) center center no-repeat; padding: 6px; background-size: 10px 10px; }
.ui-pg-div .ui-icon-import { background: url(images/import.svg ) center center no-repeat; background-size: auto 14px; width: 24px; }
.ui-pg-div .ui-icon-export { background: url(images/export.svg ) center center no-repeat; background-size: auto 14px; width: 24px; }
.ui-pg-div .ui-icon-action { background: url(images/action2.svg ) center center no-repeat; background-size: auto 14px; width: 24px; }
.ui-pg-div .ui-icon-delete-all { background: url(images/remove.svg ) center center no-repeat; background-size: 10px 10px; width: 24px; }
.ui-jqgrid .ui-jqgrid-pager .ms-choice { margin-top: -6px; }

#cpanel #cpanel_user_list .ui-pg-div .ui-icon-plus,
#cpanel #cpanel_object_list .ui-pg-div .ui-icon-plus,
#cpanel #cpanel_unused_object_list .ui-pg-div .ui-icon-plus,
#cpanel #cpanel_billing_plan_list .ui-pg-div .ui-icon-plus,
#cpanel #dialog_user_edit .ui-pg-div .ui-icon-plus,
#dialog_settings .ui-pg-div .ui-icon-plus,
#dialog_settings_object_edit .ui-pg-div .ui-icon-plus,
#dialog_share_position .ui-pg-div .ui-icon-plus,
#dialog_reports .ui-pg-div .ui-icon-plus,
#dialog_tasks .ui-pg-div .ui-icon-plus,
#dialog_cmd .ui-pg-div .ui-icon-plus,
#dialog_maintenance .ui-pg-div .ui-icon-plus,
#dialog_expenses .ui-pg-div .ui-icon-plus,
#dialog_places_groups .ui-pg-div .ui-icon-plus,
#dialog_billing .ui-pg-div .ui-icon-plus {
	margin: -4px 0px -5px -15px;
}

#dialog_billing .ui-pg-div .ui-icon-plus {
	background-color: #9cc602;
}

#side_panel .ui-jqgrid .ui-jqgrid-pager,
#bottom_panel .ui-jqgrid .ui-jqgrid-pager
{
	border-top: none;
	padding-left: 10px !important;
	padding-right: 10px !important;
	margin-left: -10px !important;
	margin-bottom: 0px !important;
}
	
#dialog_image_gallery .ui-jqgrid .ui-jqgrid-pager
{
	margin-top: 10px !important;
	padding-right: 12px !important;
}

/*#################################################*/
/* JQGRID CUSTOM
/*#################################################*/

.ui-jqgrid-btable a img
{
	padding: 0 2px;
}

.ui-jqgrid-btable img
{
	width: 14px;
}

.ui-jqgrid .tree-wrap-ltr
{
	float: right;
	margin-top: 0px;
	margin-right: 1px;
	margin-left: 8px;
}


#cpanel .ui-jqgrid tr.ui-row-ltr td { padding: 3px; }
/*#cpanel .ui-jqgrid .ui-jqgrid-title { float: right; margin: auto; }
#cpanel .ui-jqgrid .ui-jqgrid-titlebar { margin-bottom: 12px; }*/

#cpanel_user_list .ui-jqgrid .ui-jqgrid-title,
#cpanel_object_list .ui-jqgrid .ui-jqgrid-title,
#cpanel_unused_object_list .ui-jqgrid .ui-jqgrid-title,
#cpanel_billing_plan_list .ui-jqgrid .ui-jqgrid-title {
	float: right; margin: auto; 
}

#cpanel_user_list .ui-jqgrid .ui-jqgrid-titlebar,
#cpanel_object_list .ui-jqgrid .ui-jqgrid-titlebar,
#cpanel_unused_object_list .ui-jqgrid .ui-jqgrid-titlebar,
#cpanel_billing_plan_list .ui-jqgrid .ui-jqgrid-titlebar {
	margin-bottom: 12px;
}

#gview_image_gallery_list_grid,
#gview_chat_object_list_grid,
#gview_settings_object_sensor_calibration_list_grid,
#gview_settings_object_sensor_dictionary_list_grid,
#gview_settings_event_param_sensor_condition_list_grid,
#gview_cpanel_manage_server_theme_list_grid,
#gview_cpanel_manage_server_custom_map_list_grid,
#gview_cpanel_manage_server_log_list_grid,
#gview_cpanel_manage_server_billing_plan_list_grid,
#gview_cpanel_manage_server_language_list_grid,
#gview_cpanel_manage_server_template_list_grid
{ border-bottom: 1px solid #f5f5f5; padding-bottom: 3px; }

.ui-jqgrid .ui-jqgrid-htable th#side_panel_objects_object_list_grid_show,
.ui-jqgrid .ui-jqgrid-htable th#side_panel_places_marker_list_grid_show,
.ui-jqgrid .ui-jqgrid-htable th#side_panel_places_route_list_grid_show,
.ui-jqgrid .ui-jqgrid-htable th#side_panel_places_zone_list_grid_show,
.ui-jqgrid .ui-jqgrid-htable th#side_panel_history_route_detail_list_grid_icon,
.ui-jqgrid .ui-jqgrid-htable th#chat_object_list_grid_icon
{ border-left: none; }

#gview_dialog_user_edit_subaccount_list_grid .ui-jqgrid-bdiv input[type=text]
{height: 17px; width: 100%; border: 0px; text-align: center;}

#gview_dialog_subaccounts_subaccount_list_grid .ui-jqgrid-bdiv input[type=text]
{height: 17px; width: 100%; border: 0px; text-align: center;}

#cpanel #cpanel_user_list .ui-jqgrid .ui-jqgrid-hdiv,
#cpanel #cpanel_object_list .ui-jqgrid .ui-jqgrid-hdiv,
#cpanel #cpanel_unused_object_list .ui-jqgrid .ui-jqgrid-hdiv,
#cpanel #cpanel_billing_plan_list .ui-jqgrid .ui-jqgrid-hdiv,
#cpanel #cpanel_manage_server .ui-jqgrid .ui-jqgrid-hdiv,
#cpanel #dialog_user_edit .ui-jqgrid .ui-jqgrid-hdiv,
#cpanel #dialog_subaccounts .ui-jqgrid .ui-jqgrid-hdiv
{ padding: 4px 0; }

/*#################################################*/
/* LOGIN PAGE
/*#################################################*/

body#login {
	background-image: url(../img/login-background.jpg);
	background-position: center center;
	background-size: cover;
	background-color: #ffffff;
	display: table;
	overflow: auto;
	width: 100%;
}
#login .wrapper {
	display: table-cell;
	vertical-align: middle;
}
#login .wrapper .inner-wrapper {
	width: 450px;
	padding: 20px;
	margin: 50px auto;
	background: #ffffff;
	opacity: 0.9;
}
#login .wrapper .inner-wrapper .content {
	height: 250px;
	width: 100%;
	overflow: hidden;
}
#login .wrapper .inner-wrapper .content .content-block {
	height: 250px;
}
#login .logo-block {
	float: left;
}
#login .logo {
	margin-bottom: 20px;
}
#login .registration-closed {
	padding: 15px;
	background: #fab444;
	color: #ffffff;
	font-weight: bold;
	margin-bottom: 10px;
}
#login .server-select .ms-choice {
	background-image: url(images/server.svg);
	background-position: 15px center;
	background-repeat: no-repeat;
	background-size: 16px 16px;
	height: 48px;
}
#login .server-select .ms-choice span {
	top: 12px;
	padding-left: 51px;
}
#login .server-select .ms-choice div {
	top: 14px;
}
#login .server-select .ms-drop {
	margin-top: 24px;
}
#login input.inputbox {
	height: 48px;
	background-color: #f5f5f5;
	border: 1px solid #f5f5f5;
	width: 100%;
	padding-left: 50px;
}
#login input.inputbox:hover {
	background-color: #ffffff; }
#login .icon {
	float: left;
	width: 48px;
	height: 48px;
	background-position: 15px center;
	background-repeat: no-repeat;
	background-size: 16px 16px;
}
.icon.icon-user { background-image: url(images/user.svg); }
.icon.icon-email { background-image: url(images/email.svg); }
.icon.icon-password { background-image: url(images/password.svg); }
.icon.icon-code { background-image: url(images/shield.svg); }

#login .wrapper .content-block input.button {
	background: #2b82d4;
	color: #ffffff;
	border: none;
	padding: 5px;
	height: 50px;
	width: 100%;
	font-weight: bold;
}
#login input.button:hover { opacity: 0.9; }
#login .content-block .reveal {
	position: absolute;
	right: 15px;
	top: 14px;
	width: 20px;
	height: 20px;
	background: url(images/eye-crossed.svg) center center no-repeat;
	background-size: 16px 16px;
	cursor: pointer;
}
#login .content-block .reveal.hide {
	background: url(images/eye.svg) center center no-repeat;
	background-size: 16px 16px;
}
#login .content-block .security-code {
	position: absolute;
	top: 15px;
	right: 10px;
}
#login .wrapper .content-block .submit-btn {
	position: relative;
}
#login .wrapper .content-block .submit-btn .remember-block {
	position: absolute;
	z-index: 1;
	top: 15px;
	right: 15px;
}
#login .submit-btn .remember-block input { display: none; }
#login .submit-btn .remember-block .custom-checkbox {
	cursor: pointer;
	width: 16px;
	height: 16px;
	background: url(images/lock-open.svg) center center no-repeat;
	background-size: 16px 16px;
	display: block;
}
#login .submit-btn .remember-block .custom-checkbox.checked {
	background: url(images/lock-closed.svg) center center no-repeat;
	background-size: 16px 16px;
}
#login .recover-register-block {
	text-align: center;
	padding: 0;
	margin: 35px 0;
}
#login .recover-register-block li {
	display: inline-block;
	list-style: none;
}
#login .recover-register-block li a {
	font-weight: bold;
	color: #676767;
}
#login .footer {
	height: 25px;
	padding-top: 10px;
	border-top: 1px solid #e4e4e4;
}
#login .footer .mobile-v {
	padding-left: 20px;
	color: #676767;
	background-image: url(images/mobile.svg);
	background-position: left center;
	background-size: 16px 16px;
	background-repeat: no-repeat;
}
#login .footer input.button.mobile-v { border: none; padding: none; }
#login .footer input.button.mobile-v:hover { color: #2b82d4; background: none; }
#login .text { border-top: none; }

/*#################################################*/
/* TOP PANEL
/*#################################################*/

#top_panel {
	height: 36px;
	background: #ffffff;
	position: relative;
	z-index: 20;
}
#top_panel img { display: block; width: 16px; height: 16px; padding: 3px 0; transition: all 0.3s ease; }
#top_panel img:hover {width: 16px; height: 16px;} /* Hover top menu icons enlarging */ 
#top_panel .left-menu { float: left; }
#top_panel .right-menu { float: right; }
#top_panel .tp-menu div { float: left; }
#top_panel .tp-menu div a { 
	display: table;
	padding-top: 7px;
	padding-bottom: 7px;
	padding-left: 14px;
	padding-right: 14px; 
	text-decoration: none; 
	color: #808080;
	font-size: 13px;
}
#top_panel a:hover { background: #f5f5f5; }
#top_panel a.active {background: #f5f5f5;}
#top_panel .cpanel-btn a { background: #fab444; border: none; }
#top_panel .cpanel-btn a:hover { background: #fab444; opacity: 0.9; }
#top_panel .billing-btn a { background: #9cc602; border: none; }
#top_panel .billing-btn a:hover { background: #9cc602; opacity: 0.9; }
#top_panel .billing-btn-red a { background: #ff4e49; border: none; }
#top_panel .billing-btn-red a:hover { background: #ff4e49; opacity: 0.9; }
#top_panel .logout-btn a { background: #6c6c6c; border: none; }
#top_panel .logout-btn a:hover { background: #6c6c6c; opacity: 0.9; }
#top_panel .user-btn img { float:left; margin-right: 5px;}
#top_panel .chat-btn span,
#top_panel .billing-btn span,
#top_panel .billing-btn-red span {
	font-size: 11px;
	line-height: 12px;
	height: 12px;
	background: #f5f5f5;
	color: #808080;
	padding: 3px;
	margin: 1px 0 0 10px;
	display: block;
	border-radius: 2px;
	float: right;
}
#top_panel .user-btn span {
	display: block;
	float: right;
	margin-top: 1px;
	white-space: nowrap;
	max-width: 80px;
	overflow: hidden;
	text-overflow: ellipsis;
}
#top_panel .select-language { margin: 1px 0; padding: 5px 10px; }
#top_panel .select-language.cp { border: none; }

/*#################################################*/
/* LEFT PANEL
/*#################################################*/

#side_panel {
	position: absolute;
	top: 36px;
	bottom: 0px;
	width: 360px;
	background: #ffffff;
	z-index: 20;
}

#side_panel_objects,
#side_panel_events,
#side_panel_places,
#side_panel_history,
#side_panel_places_markers,
#side_panel_places_routes,
#side_panel_places_zones{
	padding: 10px;
}

#side_panel_places { padding-left: 0px; padding-right: 0px;}

#side_panel_places .ui-tabs-nav
{
	border: 0px;
	margin-left: 10px;
	margin-right: 10px;
	padding: 2px;
}

#side_panel_places .ui-tabs-nav li
{
	border: 0px;
}

#side_panel_places .ui-tabs-nav li a
{
	padding-top: 2px;
	padding-bottom: 1px;
}

#side_panel_places .ui-tabs-nav li.ui-tabs-active a
{
	padding-top: 2px;
	padding-bottom: 1px;
}

#places_marker_icon_tabs {
	margin-left: -15px;
	margin-right: -15px;
	width: 324px;
}

#places_marker_icon_default_tab, #places_marker_icon_custom_tab {
	padding-bottom: 0px;
}

#places_marker_icon_default_list {
	position: relative;
	height: 245px;
	overflow-y: scroll;
	border: 1px solid #f5f5f5;
	padding: 5px;
	-webkit-box-sizing: border-box;â€Œâ€‹
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
#places_marker_icon_custom_list {
	position: relative;
	height: 211px;
	overflow-y: scroll;
	border: 1px solid #f5f5f5;
	padding: 5px;
	-webkit-box-sizing: border-box;â€Œâ€‹
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

/*#################################################*/
/* BOTTOM PANEL
/*#################################################*/

#bottom_panel {
	display: none;
	position: absolute;
	bottom: 0px;
	left: 365px;
	right: 0px;
	background-color: #ffffff;
}

#bottom_panel .controls {
	position: absolute;
	right: 15px;
	top: 5px;
	z-index: 1;
}

#bottom_panel .controls a {
	float: left;
	height: 16px;
	width: 16px;
	display: inline-block;
}

#bottom_panel .controls span.icon-close {
	display: table;
	width: 100%;
	height: 100%;
	background-size: 10px 10px;
	background-repeat: no-repeat;
	background-position: center center;
}

#bottom_panel_datalist,
#bottom_panel_graph,
#bottom_panel_msg {
	padding: 10px;
}
#bottom_panel_datalist,
#bottom_panel_graph,
#bottom_panel_msg  { background: #ffffff; }
#bottom_panel_graph_plot
{
	height: 100%;
	width: 100%;
}

.graph-controls
{
	margin-bottom: 10px;
	display: table;
	width: 100%;
}
.graph-controls div
{
	display: inline-block;
	vertical-align: middle;
	font-size: 11px;
}
.graph-controls-left
{
	float: left;
}
.graph-controls-right
{
	float: right;
}
.graph-label
{
	line-height: 24px;
	margin-right: 5px;
}

/*#################################################*/
/* OBJECT LIST
/*#################################################*/

.object-list-item{
	height: 30px;
}
.object-list-item .left {
	float: left;
	width: 110px;
}
.object-list-item .right {
	display: table;
	height: 100%;
	float: right;
}
.object-list-item .name {
	overflow: hidden;
	text-overflow: ellipsis;
}
.object-list-item .status {
	overflow: hidden;
	text-overflow: ellipsis;
	color: #808080;
	font-size: 10px;
}
.object-list-item .speed,
.object-list-item .engine,
.object-list-item .connection,
.object-list-item .messages {
	display: table-cell;
	vertical-align: middle;
	height: 100%;
	text-align: center;
	padding: 3px;
}
.object-list-item .speed {
	max-width: 50px;
	text-overflow: ellipsis;
	overflow: hidden;
}
.object-list-item .messages {
	font-size: 11px;
	line-height: 12px;
	height: 12px;
	background: #f5f5f5;
	color: #808080;
	display: block;
	border-radius: 2px;
	margin-top: 4px;
}
.object-action-menu {
	border-radius: 2px;
	padding: 3px;
}
.object-action-menu:hover {
	background-color: #ffffff
}

/*#################################################*/
/* NOTIFY/CONFIRM
/*#################################################*/

#dialog_notify,
#dialog_confirm{
	min-width: 250px;
}

#dialog_notify_text,
#dialog_confirm_text{
	line-height: 18px;
}

.ui-pnotify .ui-pnotify-text .row {
	margin-bottom: 0px;
}
.ui-pnotify .ui-pnotify-text .row2 {
	line-height: 18px;
}
.ui-pnotify .ui-pnotify-text .row2 div:last-child {
	overflow-wrap: break-word;
	word-wrap: break-word;
	-ms-word-break: break-all;
	word-break: break-all;
	word-break: break-word;
	-ms-hyphens: auto;
	-moz-hyphens: auto;
	-webkit-hyphens: auto;
	hyphens: auto;
}

/*#################################################*/
/* MENU
/*#################################################*/

.ui-menu { position: absolute; min-width: 150px; white-space: nowrap; z-index: 99999999; }
.ui-menu .ui-menu-icon {
    top: 8px;
}
.menu {
	background: #ffffff;
	-webkit-box-shadow: 0 0 5px 0 #9b9b9b;
	box-shadow: 0 0 5px 0 #9b9b9b;
}
.menu ul {
	background: #ffffff;
	-webkit-box-shadow: 3px 0 5px 0 #9b9b9b;
	box-shadow: 3px 0 5px 0 #9b9b9b;
}
.menu li { border-top: 1px solid #f5f5f5; }
.menu li:first-child { border: none; }
.menu li a:hover { background-color: #f5f5f5; }
.menu.ui-menu .first-item { border-top: 3px solid #2b82d4; }
.menu ul li a,
.menu .ui-menu-icon { background: url(images/arrow-right.svg) left center no-repeat; background-size: 10px 10px; overflow: visible; }
.menu.ui-menu .ui-menu-item a {
	background-repeat: no-repeat;
	background-position: 10px center;
	background-size: 10px 10px;
	padding: 5px 15px 5px 28px;
	color: #444444;
}

/*#################################################*/
/* DRAGBARS
/*#################################################*/

#side_panel_objects_dragbar,
#side_panel_events_dragbar,
#side_panel_history_dragbar {
	margin: 3px -10px;
	height: 5px;
	background: #f5f5f5;
	cursor: row-resize;
}
#side_panel_objects_dragbar:hover,
#side_panel_events_dragbar:hover,
#side_panel_history_dragbar:hover { background-color: #eeeeee; }

#side_panel_dragbar {
	position: absolute;
	top: 36px;
	bottom: 0px;
	left: 360px;
	width: 5px;
	background: #f5f5f5;
	z-index: 20;
	
}
#side_panel_dragbar:hover { background-color: #eeeeee;}

#bottom_panel_dragbar {
	position: absolute;
	bottom: 0px;
	left: 365px;
	right: 0px;
	height: 5px;
	background: #f5f5f5;
	border-left: 0px;
}
#bottom_panel_dragbar:hover { background-color: #eeeeee; }

/*#################################################*/
/* SETTINGS
/*#################################################*/

#dialog_settings,
#dialog_settings_object_edit_select_icon { padding: 0px; }
#dialog_settings_object_edit,
#dialog_settings_event_properties { padding-top: 0px; padding-left: 0px; padding-right: 0px; }
#settings_main { height: 551px; margin-top: 0px; border-top: 0px; }
#settings_object { min-height: 471px; border-top: 0px; }
#settings_event { min-height: 417px; border-top: 0px; }
#settings_main_objects,
#settings_main_subaccounts { /*padding: 0 10px 10px 10px;*/ }
#settings_object_edit_select_icon_default_list {
	position: relative;
	height: 265px;
	overflow-y: scroll;
	border: 1px solid #f5f5f5;
	padding: 5px;
	-webkit-box-sizing: border-box;â€Œâ€‹
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
#settings_object_edit_select_icon_custom_list {
	position: relative;
	height: 231px;
	overflow-y: scroll;
	border: 1px solid #f5f5f5;
	padding: 5px;
	-webkit-box-sizing: border-box;â€Œâ€‹
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
#settings_object .icon_selector img {
	width: 30px !important;
}

/*#################################################*/
/* MAP
/*#################################################*/

#map {
	position: absolute;
	top: 36px;
	left: 365px;
	right: 0px;
	bottom: 5px;
}

.map-layer-control
{
	position: absolute;
	top: 46px;
	right: 10px;
	background-color: #ffffff;
	padding: 2px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
	z-index: 20;
}

.history-view-control
{
	display: none;
	position: absolute;
	width: 196px;
	top: 46px;
	left: 413px;
	background-color: #ffffff;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
	z-index: 20;
	float: left;
	clear: both;
}

.history-view-control a,
.history-view-control a:hover{
	float: left;
	height: 28px;
	width: 28px;
	display: inline-block;
}

.history-view-control a:hover {
	background-color: #f5f5f5;
}

.camera-control
{
	display: none;
	position: absolute;
	bottom: 16px;
	right: 10px;
	min-width: 236px;
	max-width: 316px;
	height: 177px;
	background-color: #ffffff;
	padding: 2px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
	z-index: 15;
	opacity: 0.75;
	line-height: 177px;
	font-size: 20px;
	text-align: center;
	vertical-align: middle;
	color: #aaaaaa;
}

.camera-control img
{
	width: 316px;
	height: 177px;
}

.street-view-control
{
	display: none;
	position: absolute;
	bottom: 16px;
	right: 10px;
	width: 316px;
	height: 177px;
	background-color: #ffffff;
	padding: 2px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
	z-index: 15;
	opacity: 0.75;
	line-height: 177px;
	font-size: 20px;
	text-align: center;
	vertical-align: middle;
	color: #aaaaaa;
}

.street-view-control img
{
	width: 316px;
	height: 177px;
}

.object-cluster-popup
{
	overflow-y: scroll;
	overflow-x: hidden;
	max-height: 200px;
	margin-top: 25px;
}

/*#################################################*/
/* SHARE
/*#################################################*/

#map_share {
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
}

#side_panel_share {
	display: none;
	position: absolute;
	top: 75px;
	bottom: 0px;
	left: 0px;
	width: 280px;
	background-color: #ffffff;
	opacity: 0.8;
	z-index: 8;
	padding: 5px;
}

.object-share-control
{
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: #ffffff;
	padding: 2px 2px 2px 5px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
	z-index: 20;
}

/*#################################################*/
/* FOLLOW
/*#################################################*/

#map_follow {
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
}

#side_panel_follow {
	display: none;
	position: absolute;
	top: 75px;
	bottom: 0px;
	left: 0px;
	width: 280px;
	background-color: #ffffff;
	opacity: 0.8;
	z-index: 8;
	padding: 5px;
}

.object-follow-control
{
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: #ffffff;
	padding: 2px 2px 2px 5px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
	z-index: 20;
}

/*#################################################*/
/* DATALIST
/*#################################################*/

.datalist {
/*	width: 100%;
	height: 100%;*/
}

.datalist-item-list {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-content: flex-start;
	overflow-x: auto;
}

.data-item-text {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: 20px;
	text-align: center;
	vertical-align: middle;
	color: #aaaaaa;
}

.datalist-item {
	display: table;
	float: left;
	width: 280px;
	min-width: 280px;
	margin-right: 15px;
	padding-left: 5px;
	padding-right: 5px;
	line-height: 24px;
}

.datalist-item.even {
	background-color: #f5f5f5;
}

.datalist-item.odd {
	background-color: #ffffff;
}

.datalist-item-icon {
	float: left;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 14px 14px;
	width: 24px;
	height: 24px;
}

.datalist-item-name {
	display: inline-block;
	width: 90px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.datalist-item-value {
	display: inline-block;
	width: 166px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: right;
}

/*#################################################*/
/* DASHBOARD
/*#################################################*/

#dialog_dashboard {
	background-color: #f5f5f5;
}

.dashboard-container {
	display: inline-block;
	width: 100%;
	background-color: #ffffff;
}

.dashboard-container-header {
	width: 100%;
	height: 30px;
	line-height: 30px;
	background: #e5e5e5;
	margin-bottom: 10px;
}

.dashboard-container-header-icon {
	float: left;
	width: 30px;
	height: 30px;
}

.dashboard-container-header-icon span {
	display: inline-block;
	width: 100%;
	height: 100%;
	background-size: 15px 15px;
	background-repeat: no-repeat;
	background-position: center center;
}

.dashboard-container-header-title {
	float: left;
}

.dashboard-container-header-menu {
	float: right;
	width: 30px;
	height: 30px;
}

.dashboard-container-header-menu span {
	display: inline-block;
	width: 100%;
	height: 100%;
	background-size: 15px 15px;
	background-repeat: no-repeat;
	background-position: center center;
}

.dashboard-container-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: 20px;
	text-align: center;
	vertical-align: middle;
	color: #aaaaaa;
	margin-left: 10px;
	margin-right: 10px;
}

.dashboard-container-graph-plot {
	margin-left: 10px;
	margin-right: 10px;
}

/*#################################################*/
/* HISTORY
/*#################################################*/

.history-controls { margin: 5px 0; }

/*#################################################*/
/* REPORTS
/*#################################################*/

#dialog_reports { padding: 0px; }

/*#################################################*/
/* OBJECT CONTROL
/*#################################################*/

#dialog_cmd { padding: 0px; }

/*#################################################*/
/* IMAGE GALLERY
/*#################################################*/

#dialog_image_gallery { padding-bottom: 0; overflow: hidden; }
#image_gallery_img {
	width: 640px;
	height: 480px;
	border: 1px solid #f5f5f5;
	text-align: center;
}
#image_gallery_img_data {
	background: #f5f5f5;
	height: 28px;
	width: 657px;
	margin-top: 5px;
	margin-right: -15px;
}
#image_gallery_img_data_address {
	white-space: nowrap;
}
#dialog_image_gallery .img-controls { width: 320px; }

/*#################################################*/
/* CHAT
/*#################################################*/

#dialog_chat { padding-bottom: 0; overflow: hidden; }

.chat-msgs-block {
	position: absolute;
	left: 252px;
	top: 15px;
	bottom: 49px;
	right: 15px;
}

.chat-msg-block {
	position: absolute;
	left: 252px;
	bottom: 15px;
	right: 15px;
	height: 24px;
}

#chat_msgs {
	position: absolute;
	left: 0px;
	top: 0px;
	bottom: 0px;
	right: 0px;
	overflow-x: hidden;
	overflow-y: scroll;
	border: 1px solid #f5f5f5;
	z-index: 9;
}

#chat_msgs_dt {
	font-size: 11px;
	display: none;
	position: relative;
	text-align: center;
        margin: 1px 1px 1px 1px;
        padding: 1px;
	z-index: 10;
	background: #eeeeee;
	opacity: 0.7;
}

.chat-msg-container
{
	width: 100%;
}

.chat-msg-status
{
	font-size: 11px;
	float: right;
	clear: both;
	margin: 3px;
	max-width: 60%;
	color: #bbbbbb;
}

.chat-msg-server
{
	text-align: left;
	float: right;
	clear: both;
	background: #DFE8F7;
	margin: 3px;
	padding: 3px 10px;
	max-width: 60%;
	border-radius: 2px;
	word-wrap: break-word;
}

.chat-msg-client
{
	text-align: left;
	float: left;
	clear: both;
	background: #F5F5F5;
	margin: 3px;
	padding: 3px 10px;
	max-width: 60%;
	border-radius: 2px;
	word-wrap: break-word;
}

.chat-msg-dt-server
{
	text-align: right;
	font-size: 10px;
	color: #888888;
}

.chat-msg-dt-client
{
	text-align: left;
	font-size: 10px;
	color: #888888;
}

/*#################################################*/
/* BILLING
/*#################################################*/

.dialog-billing-titlebar .ui-dialog-titlebar {
         background-color: #9cc602;
}

#billing_plan_purchase_list {
	width: 100%;
	height: 388px;
	font-size: 12px;
	overflow-y: scroll;
}
#billing_plan_purchase_list .row .row2 {
	margin-bottom: 0;
}
#billing_plan_purchase_list .row {
	border-bottom: 1px solid #f5f5f5;
	margin-bottom: 0;
	padding: 10px 0;
}
#billing_plan_purchase_list .row.header {
	font-weight: 600;
	color: #707070;
	background: #f5f5f5;
}
#billing_plan_purchase_list .row.even {
	background: #f5f5f5;
}
#billing_plan_purchase_list  div {
	text-align: center;
}
#billing_plan_purchase_list div.name {
	text-align: left;
}
#billing_plan_purchase_list i.arrow {
	width: 10px;
	height: 10px;
	display: block;
	float: left;
	margin-left: 8px;
	background: url(images/arrow-right.svg) center center no-repeat; background-size: 10px 10px;
}
#billing_plan_purchase_list i.purchase {
	width: 16px;
	height: 16px;
	margin: 0 auto;
	display: block;
	float: none;
	background: url(images/cart.svg) center center no-repeat; background-size: 16px 16px;
}

/*#################################################*/
/* LOGO, INFORMATION, MESSAGES
/*#################################################*/

.logo { border:0px; width:250px; height:56px; }
.logo_small { border:0px; width:32px; height:32px; }
.favicon { border:0px; width:32px; height:32px; }
.info { padding-bottom: 15px; height: 35px; display: table-cell; vertical-align: middle; }
.info2 { height: 22px; display: table-cell; vertical-align: middle; }
.subinfo {color: #949494; line-height: 12px;}

/*#################################################*/
/* DIALOG CONTROLS AND TABS
/*#################################################*/

.controls-block
{
	margin: -15px -15px 10px -15px;
	padding: 4px 15px 7px;
	background: #f5f5f5;
	height: 20px;
}

#settings_main_sms .controls,
#settings_main_user_interface .controls,
#settings_main_my_account .controls
{
	position: absolute;
	right: 15px;
	top: 4px;
}
#settings_main_user_interface,
#settings_main_my_account
{
	height: 490px;
}

#settings_main_object_list,
#settings_main_object_group_list,
#settings_main_object_driver_list,
#settings_main_object_passenger_list,
#settings_main_object_trailer_list,
#settings_main_objects_groups_drivers .ui-tabs-nav { margin: 0 -15px; }

#settings_object_accuracy
{
	height: 410px;
}

.ui-tabs-anchor
{
	white-space: nowrap;
	max-width: 110px;
	overflow: hidden;
	text-overflow: ellipsis;
}

/*#################################################*/
/* CPANEL
/*#################################################*/

body#cpanel { background: #e5e5e5; }
#cpanel h1.title {
	margin: 0;
	color: #2b82d4;
	display: table;
	float: left;
}
.version { font-size: 10px; color: #808080; }
#cpanel_manage_server .cpanel-title { margin-bottom: 12px; }
#cpanel h1.title span { color: #808080; font-weight: normal; font-size: 22px;}
#cpanel_user_list,
#cpanel_object_list,
#cpanel_unused_object_list,
#cpanel_billing_plan_list,
#cpanel_manage_server {
	margin: 15px;
	padding: 15px;
	background: #ffffff;
	border-top: 3px solid #2b82d4;
}
#dialog_user_edit_tabs { height: 555px; }
#dialog_user_edit { padding: 0px; }
#cpanel_user_list .inputbox-search,
#cpanel_object_list .inputbox-search,
#cpanel_unused_object_list .inputbox-search,
#cpanel_billing_plan_list .inputbox-search {
	width: 300px;
	margin-left: 3px;
}
#cpanel .ms-save {
	position: absolute;
	right: 0px;
	top: 2px;
}
.ui-tabs .ui-tabs-nav li.save-btn { float: right; }
#cpanel #dialog_user_edit_account .controls,
#cpanel #dialog_user_edit_contact_info .controls {
	position: absolute;
	right: 15px;
	top: 4px;
}
#cpanel #cpanel_manage_server .ui-tabs-nav {
	background: #f5f5f5;
	padding: 10px 15px;
	border-bottom: none;
	margin: 0 -15px;
}
#cpanel #cpanel_manage_server .ui-tabs .ui-tabs-nav li { border: none; }
#cpanel #cpanel_manage_server .ui-tabs .ui-tabs-nav li.ui-tabs-active a {
	background-color: #808080;
	color: #ffffff;
	padding: 5px 15px;
}
#cpanel #cpanel_manage_server .ui-tabs .ui-tabs-nav li a {
	padding: 5px 15px;
	margin-right: 5px;
	font-size: 12px;
	background-color: #ffffff;
}
#cpanel_manage_server {
	position: absolute;
	top: 36px;
	bottom: 0px;
	right: 0px;
	left: 0px;
	overflow: hidden;
}
.cpanel-tabs-content {
	position: absolute;
	top: 50px;
	bottom: 45px;
	right: 0px;
	left: 0px;
	overflow-y: auto;
	margin-left: -15px;
}
#cpanel_manage_server .ui-img-container {
	display: flex;
	height: 160px;
	background-color: #f5f5f5; 
	border: 1px solid #f5f5f5;
	justify-content: center;
	align-items: center;
}
#cpanel_manage_server .logo {
	border: 0px;
	width: auto;
	height: auto;
	max-width: 215px;
	padding: 5px;
}
#cpanel_manage_server .login-background {
	border: 0px;
	width: auto;
	height: auto;
	max-width: 215px;
	max-height: 150px;
	padding: 5px;
}
#dialog_language_properties .row2 {
	overflow-wrap: break-word;
	word-wrap: break-word;
	-ms-word-break: break-all;
	word-break: break-all;
	word-break: break-word;
	-ms-hyphens: auto;
	-moz-hyphens: auto;
	-webkit-hyphens: auto;
	hyphens: auto;
}

/*#################################################*/
/* CPANEL TOP PANEL
/*#################################################*/

#top_panel .select-view,
#top_panel .select-language { margin: 1px 0; padding: 5px 10px; }
#top_panel .map-btn a { background: #2b82d4; }
#top_panel .map-btn a:hover { background: #2b82d4; opacity: 0.9; }
#top_panel .select-view { width: 180px; }
#top_panel .user-btn img,
#top_panel .user-list-btn img,
#top_panel .object-list-btn img,
#top_panel .billing-plan-list-btn img,
#top_panel .unused-object-list-btn img { float: left; margin-right: 5px; }
#top_panel .user-btn span,
#top_panel .user-list-btn span,
#top_panel .object-list-btn span,
#top_panel .billing-plan-list-btn span,
#top_panel .unused-object-list-btn span { display: block; float: right; margin-top: 1px; }

/*#################################################*/
/* @media
/*#################################################*/

@media (max-width: 1200px) {
	#top_panel .tp-menu div a {
		padding-left: 13px;
		padding-right: 13px; 
	}
}

@media (max-width: 1150px) {
	#top_panel .user-btn span {
		display: none;
	}
	#top_panel .user-btn img { margin-right: 0px;}
}

@media (max-width: 1100px) {
	#top_panel .user-btn {
		display: none;
	}
	#top_panel .user-btn img { margin-right: 0px;}
}

@media (max-width: 1050px) {
	#top_panel .select-language {
		display: none;
	}
}

@media (max-width: 1000px) {
	#bottom_panel_graph_label {
		display: none;
	}
}

@media (max-width: 950px) {
	#top_panel .billing-btn {
		display: none;
	}
	#top_panel .billing-btn-red {
		display: none;
	}
}

@media (max-width: 850px) {
	#top_panel .cpanel-btn {
		display: none;
	}
	#top_panel .mobile-btn {
		display: none;
	}
	#top_panel .logout-btn {
		display: none;
	}
}

@media (max-width: 800px) {
	.map-layer-control {
		display: none;
	}
}

@media (min-width: 640px)
{
	#side_panel_share {
		display: none;
		position: absolute;
		top: 0px;
		bottom: 0px;
		left: 0px;
		width: 280px;
		background-color: #ffffff;
		opacity: 1;
		padding: 5px;
	}
	
	#side_panel_follow {
		display: none;
		position: absolute;
		top: 0px;
		bottom: 0px;
		left: 0px;
		width: 280px;
		background-color: #ffffff;
		opacity: 1;
		padding: 5px;
	}
}

/* ================================
   HOS MODULE - FINAL VERSION WITH ALL FIXES
   - Fixed select dropdown text cutoff
   - Fixed icon positioning (float right)
   - Keeps all existing HOS styles
   ================================ */

/* Import Professional Font */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* Base Dialog Styles */
#dialog_hos {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: none !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    padding: 0 !important;
    z-index: 9999 !important;
}

.ui-dialog.hos-dialog {
    max-height: 90vh !important;
    height: 600px !important;
    min-height: 600px !important;
}

.ui-dialog.hos-dialog .ui-dialog-content {
    padding: 0 !important;
    overflow: hidden !important;
    height: 100% !important;
    max-height: none !important;
    position: relative !important;
}

.ui-dialog #dialog_hos {
    display: block !important;
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
    opacity: 1 !important;
    padding: 0 !important;
    animation: fadeIn 0.3s ease-in-out;
}

/* ================================
   NEW ELD-STYLE HEADER CONTROLS
   ================================ */
.hos-dialog-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

.hos-header-controls {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    flex-wrap: nowrap;
    position: relative;
    z-index: 100;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    min-height: 64px;
    overflow: visible !important;
    justify-content: flex-start;
}

.hos-control-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
    min-width: 0;
}

.hos-control-group:first-child {
    flex: 1 1 auto;
    max-width: 800px;
    min-width: 550px;
}

.hos-button-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    flex-shrink: 0;
    padding-left: 60px;
}

.hos-control-label {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 50px;
    font-family: 'JetBrains Mono', monospace !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* All Input Fields - Unified Beautiful Style */
.hos-control-input,
input[type="date"].hos-control-input,
select.hos-control-input,
.hos-select {
    height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace !important;
    transition: all 0.2s ease;
    font-weight: 500;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    line-height: 38px;
}

/* Dropdown Styling - FORCED WIDE to prevent ANY text cutoff */
select.hos-control-input,
.hos-select,
#dialog_hos_object_list {
    min-width: 520px !important;
    max-width: 700px !important;
    width: 520px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' opacity='0.8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 50px !important;
    padding-left: 16px !important;
    position: relative;
    z-index: 10;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}
    padding-left: 14px;
    position: relative;
    z-index: 10;
    overflow: visible;
    text-overflow: clip;
}

select.hos-control-input:focus,
.hos-select:focus,
#dialog_hos_object_list:focus {
    z-index: 1000;
}

/* WHITE BACKGROUND FOR DROPDOWN OPTIONS */
select.hos-control-input option,
.hos-select option,
#dialog_hos_object_list option {
    background: #ffffff !important;
    color: #2c3e50 !important;
    padding: 8px;
    font-weight: 500;
}

/* SELECTED OPTION - WHITE BACKGROUND */
select.hos-control-input option:checked,
.hos-select option:checked,
#dialog_hos_object_list option:checked {
    background: #e3f2fd !important;
    color: #1976d2 !important;
    font-weight: 600;
}

/* HOVER STATE FOR OPTIONS */
select.hos-control-input option:hover,
.hos-select option:hover,
#dialog_hos_object_list option:hover {
    background: #f5f5f5 !important;
    color: #2c3e50 !important;
}

/* Date Input Styling - FIXED WIDTH to prevent jumping */
input[type="date"].hos-control-input,
.hos-date-input,
#dialog_hos_date_from {
    min-width: 170px !important;
    width: 170px !important;
    max-width: 170px !important;
    padding: 0 10px !important;
    cursor: pointer;
    position: relative;
    color-scheme: dark;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

/* HIDE the calendar icon completely, make entire input clickable */
input[type="date"].hos-control-input::-webkit-calendar-picker-indicator,
.hos-date-input::-webkit-calendar-picker-indicator,
#dialog_hos_date_from::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

/* Add SINGLE visible calendar icon via ::before */
input[type="date"].hos-control-input::before,
.hos-date-input::before,
#dialog_hos_date_from::before {
    content: '📅';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
    opacity: 0.9;
}

/* Firefox support */
input[type="date"].hos-control-input::-moz-calendar-picker-indicator,
.hos-date-input::-moz-calendar-picker-indicator,
#dialog_hos_date_from::-moz-calendar-picker-indicator {
    opacity: 0;
}

/* Remove spin buttons */
input[type="date"].hos-control-input::-webkit-inner-spin-button,
input[type="date"].hos-control-input::-webkit-outer-spin-button,
.hos-date-input::-webkit-inner-spin-button,
.hos-date-input::-webkit-outer-spin-button,
#dialog_hos_date_from::-webkit-inner-spin-button,
#dialog_hos_date_from::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hover States */
.hos-control-input:hover,
input[type="date"].hos-control-input:hover,
select.hos-control-input:hover,
.hos-select:hover,
.hos-date-input:hover,
#dialog_hos_object_list:hover,
#dialog_hos_date_from:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Focus States */
.hos-control-input:focus,
input[type="date"].hos-control-input:focus,
select.hos-control-input:focus,
.hos-select:focus,
.hos-date-input:focus,
#dialog_hos_object_list:focus,
#dialog_hos_date_from:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.hos-control-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Date Controls Group - FIXED to prevent jumping */
.hos-date-group {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
}

.hos-date-controls {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}

.hos-date-nav {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.hos-date-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.hos-date-nav:active {
    transform: translateY(0) scale(0.98);
    background: rgba(255, 255, 255, 0.25);
}

.hos-header-controls > * {
    margin: 0;
}

.hos-header-controls input,
.hos-header-controls select,
.hos-header-controls button {
    margin: 0;
    font-family: inherit;
    vertical-align: middle;
}

/* SVG Icons */
#hos_refresh_btn,
#hos_print_btn {
    stroke: #fff;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
    transition: all 0.2s ease;
    cursor: pointer;
    opacity: 0.7;
    display: none;
}

#hos_refresh_btn:hover,
#hos_print_btn:hover {
    opacity: 1 !important;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

#hos_refresh_btn:active,
#hos_print_btn:active {
    transform: scale(0.95);
}

/* Content Wrapper */
.hos-content-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 20px 20px 20px;
    position: relative;
    background: #f5f5f5;
}

/* ================================
   KEEP ALL EXISTING HOS STYLES BELOW
   ================================ */

/* OLD HEADER STYLES - Keep for backward compatibility */
#dialog_hos .hos-header-fixed {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: auto !important;
    z-index: 100 !important;
    margin: 0 !important;
    padding: 10px !important;
    background: #014DAB !important;
    box-shadow: 0 2px 4px rgba(41, 137, 216, 0.15) !important;
}

#dialog_hos .hos-header-fixed.row {
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
}

.ui-dialog #dialog_hos .row.hos-header-fixed {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 4px rgba(41, 137, 216, 0.15) !important;
}

/* Scrollable Content Wrapper - OLD STYLE */
.hos-dialog-content-wrapper {
    position: absolute !important;
    top: 58px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 15px !important;
    background: #f5f5f5 !important;
}

.hos-dialog-content-wrapper::-webkit-scrollbar {
    width: 10px;
}

.hos-dialog-content-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.hos-dialog-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #5ca9e8 0%, #2989d8 100%);
    border-radius: 5px;
}

.hos-dialog-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2989d8 0%, #1e5799 100%);
}

/* Layout Classes - OLD STYLE */
#dialog_hos .row {
    margin: 0 !important;
    margin-bottom: 10px !important;
    background: #014DAB !important;
    padding: 10px;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(41, 137, 216, 0.15);
}

#dialog_hos .row:first-child {
    margin-top: 0 !important;
    border-radius: 0;
}

#dialog_hos .block {
    display: inline-block;
    vertical-align: top;
}

#dialog_hos .width10 { width: 10%; }
#dialog_hos .width30 { width: 30%; }
#dialog_hos .width40 { width: 40%; }
#dialog_hos .width70 { width: 70%; }
#dialog_hos .width100 { width: 100%; }

#dialog_hos .container {
    padding: 0;
}

#dialog_hos .row2 {
    display: flex;
    align-items: center;
    color: #ffffff;
}

/* Header Text - OLD STYLE */
#dialog_hos .row .width30,
#dialog_hos .row .width70,
#dialog_hos .row2 .width30,
#dialog_hos .row2 .width70,
#dialog_hos .row2 .width100 {
    color: #ffffff !important;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 13px;
}

/* Form Elements - OLD STYLE */
#dialog_hos .hos-select,
#dialog_hos .row select,
#dialog_hos .row input,
#dialog_hos .row2 select,
#dialog_hos .row2 input {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1e5799;
    border-radius: 3px;
    transition: all 0.2s ease;
    width: 100%;
    height: 35px;
}

#dialog_hos .hos-select:hover,
#dialog_hos .row select:hover,
#dialog_hos .row input:hover {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#dialog_hos .hos-select:focus,
#dialog_hos .row select:focus,
#dialog_hos .row input:focus {
    outline: none;
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Date Navigation - OLD STYLE */
.hos-date-navigator {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    min-width: 140px;
    border-radius: 3px;
    height: 28px !important;
    border: 1px solid #ccc;
    overflow: hidden;
}

.hos-date-navigator input {
    border: none !important;
    flex: 1;
    text-align: center;
    height: 26px;
    font-size: 12px;
    padding: 0 8px;
    outline: none;
}

.hos-date-arrow {
    font-family: 'JetBrains Mono', monospace;
    background: #f5f5f5;
    color: #333;
    border: none;
    padding: 0 8px;
    height: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 14px;
}

#date_prev {
    border-right: 1px solid #ddd;
}

#date_next {
    border-left: 1px solid #ddd;
}

.hos-date-arrow:hover:not(:disabled) {
    background: rgba(30, 87, 153, 0.1) !important;
}

.hos-date-arrow:active {
    background: rgba(30, 87, 153, 0.2) !important;
}

.hos-date-arrow:disabled {
    background: transparent !important;
    color: #b0c4de !important;
    opacity: 0.4;
    cursor: not-allowed !important;
}

/* Print and Refresh Buttons - OLD STYLE */
.print-button-container {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 28px;
}

/* Spinning animation for refresh button */
#hos_refresh_btn.spinning {
    animation: spin 0.6s linear;
}

/* Driver Information Table */
.driver-info-table-container,
#hosDriverTable {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin: 0 10px 16px 10px;
    overflow-x: hidden !important;
    max-width: 100% !important;
    display: none;
}

.driver-info-table,
#hosDriverTable table {
    margin: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    table-layout: fixed;
    font-size: 10px;
    border: 1px solid #666;
}

.driver-info-table td,
#hosDriverTable td {
    padding: 3px 4px;
    border: 1px solid #999;
    vertical-align: middle;
    line-height: 1.2;
    text-align: center;
}

.driver-header-row,
#hosDriverTable tbody tr:nth-child(odd) {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
}

.driver-header,
#hosDriverTable tbody tr:nth-child(odd) td {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    padding: 6px 4px !important;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.driver-data-row,
#hosDriverTable tbody tr:nth-child(even) {
    background: #ffffff !important;
}

.driver-data-row td,
#hosDriverTable tbody tr:nth-child(even) td {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px !important;
    font-weight: 500;
    line-height: 1.4;
    padding: 4px;
    color: #2c3e50;
    background: #ffffff;
    border: 1px solid #ddd !important;
}

.driver-data-row:hover td,
#hosDriverTable tbody tr:nth-child(even):hover td {
    background: rgba(92, 169, 232, 0.05);
}

/* Location Links */
.location-link {
    color: #0066cc;
    text-decoration: none;
    cursor: pointer;
}

.location-link:hover {
    text-decoration: underline;
}

/* Graph Section */
.graph-section {
    width: 100%;
    margin-top: 10px;
}

#hosCanvas {
    border: 2px solid #34495e;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafb 100%);
    border-radius: 8px;
    margin: 10px;
    box-shadow: 0 4px 16px rgba(92, 169, 232, 0.1);
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: calc(100% - 20px) !important;
    display: none;
    width: 100%;
    height: auto;
}

/* Events Table */
.events-table-container,
#hosEventsTable {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none !important;
    margin: 15px 10px 20px 10px !important;
    position: relative !important;
    border: 2px solid rgba(92, 169, 232, 0.2);
}

.events-table-container.show-table,
#hosEventsTable.show-table {
    display: block !important;
}

.events-table,
#hosEventsTable table {
    margin: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    font-size: 11px;
}

.events-table thead tr,
#hosEventsTable thead tr {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

.events-table thead th,
#hosEventsTable thead th {
    font-family: 'JetBrains Mono', monospace;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    padding: 8px 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    position: sticky;
    top: 0;
    min-width: 60px;
}

.events-table thead th:nth-child(2),
#hosEventsTable thead th:nth-child(2) { 
    min-width: 200px; 
}

.events-table thead th:nth-child(3),
.events-table thead th:nth-child(4),
.events-table thead th:nth-child(5),
#hosEventsTable thead th:nth-child(3),
#hosEventsTable thead th:nth-child(4),
#hosEventsTable thead th:nth-child(5) { 
    min-width: 80px; 
}

.events-table td,
#hosEventsTable td {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px !important;
    font-weight: 500;
    background-color: white;
    color: #333;
    vertical-align: middle;
    padding: 6px !important;
    border: 1px solid #e0e0e0 !important;
    text-align: center;
}

.events-table td:nth-child(2),
#hosEventsTable td:nth-child(2) {
    text-align: left;
}

.events-table tbody tr:nth-child(even),
#hosEventsTable tbody tr:nth-child(even) {
    background-color: rgba(92, 169, 232, 0.03);
}

.events-table tbody tr:hover,
#hosEventsTable tbody tr:hover {
    background-color: #e8f4f8 !important;
    transition: all 0.2s ease;
}

/* Loading & Messages */
.loading,
#loading {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    backdrop-filter: blur(10px);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #2989d8;
    margin: 10px;
    text-align: center;
    padding: 20px;
    display: none;
}

.loading img,
#loading img {
    margin-bottom: 10px;
}

.error,
#error,
#dialog_hos .error {
    font-family: 'JetBrains Mono', monospace;
    color: #d9534f;
    padding: 10px;
    text-align: center;
    background: #f2dede;
    border: 1px solid #ebccd1;
    border-radius: 4px;
    margin: 10px;
    font-weight: 600;
    display: none;
}

.success,
#dialog_hos .success {
    font-family: 'JetBrains Mono', monospace;
    color: #3c763d;
    padding: 10px;
    text-align: center;
    background: #dff0d8;
    border: 1px solid #d6e9c6;
    border-radius: 4px;
    margin: 10px;
    font-weight: 600;
}

.info,
#dialog_hos .info {
    font-family: 'JetBrains Mono', monospace;
    color: #31708f;
    padding: 10px;
    text-align: center;
    background: #d9edf7;
    border: 1px solid #bce8f1;
    border-radius: 4px;
    margin: 10px;
    font-weight: 600;
}

/* Form Elements */
#dialog_hos input[type="text"],
#dialog_hos input[type="date"],
#dialog_hos input[type="time"],
#dialog_hos input[type="number"] {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
}

#dialog_hos button {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    cursor: pointer;
}

#dialog_hos .select-search {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    height: 28px !important;
}

#dialog_hos .inputbox-calendar {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    height: 26px !important;
}

/* Utility Classes */
#dialog_hos * {
    font-family: 'JetBrains Mono', monospace;
}

#dialog_hos > div {
    overflow-x: hidden !important;
}

.ui-dialog.hos-dialog,
.ui-dialog.hos-dialog *,
#dialog_hos,
#dialog_hos * {
    opacity: 1 !important;
}

#hosEventsTable:not(.show-table) {
    display: none !important;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.driver-info-table-container,
#hosDriverTable,
.events-table-container,
#hosEventsTable {
    animation: slideDown 0.3s ease-in-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #dialog_hos {
        font-size: 11px;
    }
    
    .hos-dialog-content-wrapper,
    .hos-content-wrapper {
        padding: 10px !important;
        top: 54px !important;
    }
    
    #dialog_hos .hos-header-fixed,
    .hos-header-controls {
        padding: 8px !important;
    }
    
    .hos-date-navigator {
        min-width: 120px !important;
    }
    
    #hos_print_btn,
    #hos_refresh_btn {
        width: 18px !important;
        height: 18px !important;
    }
    
    #hosCanvas {
        max-width: calc(100% - 20px) !important;
        height: auto !important;
        min-height: 140px;
    }
    
    .events-table,
    #hosEventsTable {
        font-size: 10px !important;
    }
    
    .events-table th,
    .events-table td,
    #hosEventsTable th,
    #hosEventsTable td {
        padding: 3px 5px !important;
        font-size: 10px !important;
    }
    
    .events-table th,
    #hosEventsTable th {
        min-width: 50px !important;
    }
    
    select, 
    input {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .ui-dialog.hos-dialog {
        height: 100vh !important;
        max-height: 100vh !important;
        width: 100% !important;
    }
    
    .hos-dialog-content-wrapper,
    .hos-content-wrapper {
        padding: 5px !important;
        top: 50px !important;
    }
    
    #dialog_hos .hos-header-fixed,
    .hos-header-controls {
        padding: 6px !important;
    }
    
    #dialog_hos .hos-header-fixed .block {
        width: 100% !important;
        margin-bottom: 5px;
    }
    
    #dialog_hos .block {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .driver-info-table-container,
    #hosDriverTable {
        overflow-x: auto !important;
    }
    
    .driver-info-table,
    #hosDriverTable table {
        min-width: 800px;
        table-layout: auto;
    }
}

/* Print Styles */
@media print {
    #dialog_hos {
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .hos-date-navigator,
    #hos_print_btn,
    #hos_refresh_btn,
    .hos-header-fixed,
    .hos-header-controls {
        display: none !important;
    }
    
    .hos-dialog-content-wrapper,
    .hos-content-wrapper {
        position: static !important;
        overflow: visible !important;
        padding: 0 !important;
    }
    
    .driver-info-table-container,
    #hosDriverTable {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .driver-info-table,
    #hosDriverTable table {
        page-break-after: avoid;
        width: 100% !important;
    }
    
    .driver-header-row,
    #hosDriverTable tbody tr:nth-child(odd) {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }
    
    #hosCanvas {
        page-break-after: avoid;
        max-width: 100% !important;
        margin: 0 !important;
        border: 1px solid #000 !important;
    }
    
    .events-table-container,
    #hosEventsTable {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
        border: 1px solid #000 !important;
        page-break-inside: avoid;
        margin: 0 !important;
    }
    
    .events-table,
    #hosEventsTable table {
        width: 100% !important;
    }
    
    .events-table th,
    .events-table td,
    #hosEventsTable th,
    #hosEventsTable td {
        border: 1px solid #000 !important;
        padding: 4px !important;
        font-size: 10px !important;
    }
    
    .events-table thead,
    #hosEventsTable thead {
        display: table-header-group !important;
    }
    
    .events-table tbody tr,
    #hosEventsTable tbody tr {
        page-break-inside: avoid;
    }
    
    .events-table thead th,
    #hosEventsTable thead th {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .events-table tbody tr:nth-child(even),
    #hosEventsTable tbody tr:nth-child(even) {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* ================================
   ELD MODULE - PROFESSIONAL PREMIUM DESIGN
   Version: 14.0 - FIXED LAYOUT
   - Symmetric Last Operation + Stats Rows
   - Smaller donut fonts, 100% format
   - Consistent gauge styling
   - Thicker gauge arcs
   ================================ */

/* Import Professional Font */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ================================
   BASE DIALOG STRUCTURE
   ================================ */
#dialog_eld {
    font-family: 'JetBrains Mono', monospace !important;
    color: #333;
    background: #f8f9fa;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Main Dashboard Container */
.eld-live-dashboard {
    background: #1a1a2e;
    min-height: 100%;
    padding: 15px;
    margin: 0;
    border-radius: 0;
    font-family: 'JetBrains Mono', monospace;
}

/* Main Grid */
.eld-live-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eld-live-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ================================
   ROW 1: GAUGES ROW - 5 COLUMNS
   THICKER ARCS + CONSISTENT FONTS
   ================================ */
.eld-live-gauges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.eld-live-gauge-card {
    background: #16213e;
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #2d3a5a;
    flex: 1 1 calc(20% - 10px);
    min-width: 150px;
    max-width: calc(20% - 10px);
    box-sizing: border-box;
}

.eld-live-gauge-title {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eld-live-gauge-container {
    position: relative;
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
}

.eld-live-gauge-svg {
    width: 100%;
    height: auto;
}

/* THICKER GAUGE ARCS - stroke-width increased from 12 to 18 */
.eld-live-gauge-svg .eld-gauge-bg {
    stroke-width: 18 !important;
}

.eld-live-gauge-svg .eld-gauge-value {
    stroke-width: 18 !important;
}

/* Consistent gauge number styling */
.eld-gauge-number {
    font-size: 32px;
    font-weight: 700;
    fill: #ffffff;
    font-family: 'JetBrains Mono', monospace;
}

.eld-gauge-percent {
    font-size: 26px;
    font-weight: 700;
    fill: #00ff88;
    font-family: 'JetBrains Mono', monospace;
}

/* ================================
   ROW 2: COMPACT INFO ROW
   Left: Info Cards stacked
   Center: Last Operation (donut)
   Right: 6 Stats as 3 rows x 2 columns
   ================================ */
.eld-live-info-row {
    display: grid;
    grid-template-columns: 160px 1fr 380px;
    gap: 12px;
    align-items: stretch;
    min-height: 200px;
}

/* Info Cards (Oil Pressure, Engine Temp, Ignition Count) - COMPACT */
.eld-live-info-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eld-live-info-card {
    background: #16213e;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    border: 1px solid #2d3a5a;
    flex: 1;
}

.eld-live-info-label {
    font-size: 9px;
    color: #8892b0;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eld-live-info-value {
    font-size: 18px;
    font-weight: 700;
    color: #00ff88;
    font-family: 'JetBrains Mono', monospace;
}

/* ================================
   LAST OPERATION - COMPACT DESIGN
   Smaller fonts, proportional
   ================================ */
.eld-live-operation-card {
    background: linear-gradient(135deg, #0f1629 0%, #1a1a2e 50%, #16213e 100%);
    border-radius: 16px;
    padding: 15px 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(59, 130, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Subtle glow background */
.eld-live-operation-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Title - Compact */
.eld-live-operation-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.eld-live-operation-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #00ff88, #3b82f6);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Content Layout - Horizontal */
.eld-live-operation-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
}

/* Donut Container - COMPACT */
.eld-live-donut-container {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

.eld-live-donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.eld-donut-segment {
    transition: stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SMALLER DONUT CENTER TEXT */
.eld-donut-label-top {
    font-size: 14px;
    font-weight: 700;
    fill: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eld-donut-label-bottom {
    font-size: 20px;
    font-weight: 800;
    fill: #00ff88;
    font-family: 'JetBrains Mono', monospace;
}

/* Legend - 2x2 Grid COMPACT */
.eld-live-donut-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    min-width: 240px;
}

.eld-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.eld-legend-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.eld-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Gradient dots by state */
.eld-legend-item[data-state="operational"] .eld-legend-dot {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.4);
}

.eld-legend-item[data-state="running"] .eld-legend-dot {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.eld-legend-item[data-state="stopped"] .eld-legend-dot {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.4);
}

.eld-legend-item[data-state="idle"] .eld-legend-dot {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.4);
}

.eld-legend-label {
    flex: 1;
    font-weight: 500;
    color: #a0aec0;
    text-transform: capitalize;
    font-size: 10px;
    letter-spacing: 0.3px;
}

.eld-legend-value {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    min-width: 50px;
    text-align: right;
}

/* Active state highlight */
.eld-legend-item.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.eld-legend-item.active .eld-legend-value {
    color: #00ff88;
}

/* ================================
   STATS PANEL - 3 ROWS x 2 COLUMNS (RIGHT SIDE)
   ================================ */
.eld-live-stats-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
}

.eld-live-stat-card {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 255, 136, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eld-live-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 255, 136, 0.35);
}

.eld-stat-label {
    font-size: 9px;
    color: #0d4f30;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.eld-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
}

/* ================================
   ROW 3: HISTOGRAMS ROW
   ================================ */
.eld-live-histograms-row {
    display: grid;
    grid-template-columns: 1fr 1fr 180px;
    gap: 12px;
}

.eld-live-histogram-card {
    background: #16213e;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #2d3a5a;
}

.eld-live-histogram-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.eld-live-histogram-title {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
}

.eld-live-histogram-meta {
    display: flex;
    gap: 12px;
    font-size: 10px;
    color: #8892b0;
}

.eld-live-histogram-meta strong {
    color: #00ff88;
}

.eld-live-histogram-chart {
    height: 120px;
    position: relative;
}

.eld-live-histogram-labels {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #8892b0;
    margin-top: 4px;
    padding: 0 4px;
}

.eld-live-histogram-labels.eld-accel-labels {
    justify-content: space-around;
}

/* Brake Usage Card */
.eld-live-brake-card {
    background: #16213e;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #2d3a5a;
}

.eld-live-brake-title {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.eld-live-brake-bars {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: flex-end;
    height: 100px;
}

.eld-brake-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 60px;
}

.eld-brake-value {
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
}

.eld-brake-bar {
    width: 50px;
    min-height: 15px;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.eld-brake-service {
    background: linear-gradient(180deg, #ff9a56 0%, #ff6b35 100%);
    height: 50px;
}

.eld-brake-retarder {
    background: linear-gradient(180deg, #ff5c8d 0%, #c62368 100%);
    height: 60px;
}

.eld-brake-label {
    font-size: 9px;
    color: #8892b0;
}

/* ================================
   RESPONSIVE DESIGN - GENERAL TAB
   ================================ */

/* XL: 1600px+ */
@media (min-width: 1600px) {
    .eld-live-gauge-card {
        flex: 1 1 calc(20% - 10px);
        max-width: calc(20% - 10px);
    }
    
    .eld-live-info-row {
        grid-template-columns: 180px 1fr 420px;
    }
    
    .eld-live-donut-container {
        width: 160px;
        height: 160px;
    }
    
    .eld-live-donut-legend {
        min-width: 280px;
    }
}

/* LG: 1400px - 1599px */
@media (max-width: 1599px) and (min-width: 1400px) {
    .eld-live-gauge-card {
        flex: 1 1 calc(20% - 10px);
        max-width: calc(20% - 10px);
    }
    
    .eld-live-info-row {
        grid-template-columns: 160px 1fr 360px;
    }
}

/* MD-LG: 1200px - 1399px */
@media (max-width: 1399px) and (min-width: 1200px) {
    .eld-live-dashboard {
        padding: 12px;
    }
    
    .eld-live-gauge-card {
        flex: 1 1 calc(20% - 8px);
        max-width: calc(20% - 8px);
        padding: 10px 8px;
    }
    
    .eld-live-gauge-title {
        font-size: 11px;
    }
    
    .eld-gauge-number {
        font-size: 28px;
    }
    
    .eld-gauge-percent {
        font-size: 22px;
    }
    
    .eld-live-info-row {
        grid-template-columns: 150px 1fr 340px;
    }
    
    .eld-live-donut-container {
        width: 130px;
        height: 130px;
    }
    
    .eld-live-stats-panel {
        gap: 6px;
    }
    
    .eld-live-stat-card {
        padding: 10px 12px;
    }
    
    .eld-stat-value {
        font-size: 20px;
    }
}

/* MD: 1000px - 1199px */
@media (max-width: 1199px) and (min-width: 1000px) {
    .eld-live-dashboard {
        padding: 10px;
    }
    
    .eld-live-grid {
        gap: 10px;
    }
    
    /* 3 + 2 gauges */
    .eld-live-gauge-card {
        flex: 1 1 calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
        padding: 10px;
    }
    
    .eld-live-gauge-card:nth-child(4),
    .eld-live-gauge-card:nth-child(5) {
        flex: 1 1 calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
    }
    
    .eld-gauge-number {
        font-size: 26px;
    }
    
    .eld-gauge-percent {
        font-size: 20px;
    }
    
    /* Stack info row */
    .eld-live-info-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .eld-live-info-cards {
        flex-direction: row;
    }
    
    .eld-live-operation-content {
        justify-content: center;
    }
    
    .eld-live-stats-panel {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    
    .eld-live-histograms-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .eld-live-brake-card {
        grid-column: span 2;
    }
}

/* SM-MD: 800px - 999px */
@media (max-width: 999px) and (min-width: 800px) {
    .eld-live-dashboard {
        padding: 10px;
    }
    
    .eld-live-grid {
        gap: 10px;
    }
    
    .eld-live-gauge-card {
        flex: 1 1 calc(33.333% - 6px);
        max-width: calc(33.333% - 6px);
        padding: 8px;
    }
    
    .eld-live-gauge-card:nth-child(4),
    .eld-live-gauge-card:nth-child(5) {
        flex: 1 1 calc(40% - 6px);
        max-width: calc(40% - 6px);
    }
    
    .eld-live-gauge-title {
        font-size: 10px;
    }
    
    .eld-gauge-number {
        font-size: 24px;
    }
    
    .eld-gauge-percent {
        font-size: 18px;
    }
    
    .eld-live-info-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .eld-live-info-cards {
        flex-direction: row;
    }
    
    .eld-live-operation-card {
        padding: 15px;
    }
    
    .eld-live-operation-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .eld-live-donut-container {
        width: 140px;
        height: 140px;
    }
    
    .eld-live-donut-legend {
        width: 100%;
        max-width: 350px;
        min-width: auto;
    }
    
    .eld-live-stats-panel {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    
    .eld-live-histograms-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .eld-live-brake-card {
        grid-column: span 2;
    }
}

/* SM: 600px - 799px */
@media (max-width: 799px) and (min-width: 600px) {
    .eld-live-dashboard {
        padding: 8px;
    }
    
    .eld-live-grid {
        gap: 8px;
    }
    
    .eld-live-gauges-row {
        gap: 8px;
    }
    
    .eld-live-gauge-card {
        flex: 1 1 calc(50% - 4px);
        max-width: calc(50% - 4px);
        padding: 8px;
    }
    
    .eld-live-gauge-card:nth-child(5) {
        flex: 1 1 calc(50% - 4px);
        max-width: calc(50% - 4px);
    }
    
    .eld-live-gauge-title {
        font-size: 10px;
    }
    
    .eld-live-gauge-container {
        max-width: 130px;
    }
    
    .eld-gauge-number {
        font-size: 24px;
    }
    
    .eld-gauge-percent {
        font-size: 18px;
    }
    
    .eld-live-info-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .eld-live-info-cards {
        flex-direction: row;
    }
    
    .eld-live-operation-card {
        padding: 12px;
        border-radius: 12px;
    }
    
    .eld-live-operation-title {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .eld-live-operation-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .eld-live-donut-container {
        width: 120px;
        height: 120px;
    }
    
    .eld-donut-label-top {
        font-size: 12px;
    }
    
    .eld-donut-label-bottom {
        font-size: 16px;
    }
    
    .eld-live-donut-legend {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
        max-width: 320px;
        min-width: auto;
    }
    
    .eld-legend-item {
        padding: 8px 10px;
        gap: 6px;
    }
    
    .eld-legend-dot {
        width: 10px;
        height: 10px;
    }
    
    .eld-legend-label {
        font-size: 9px;
    }
    
    .eld-legend-value {
        font-size: 12px;
        min-width: 40px;
    }
    
    .eld-live-stats-panel {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 6px;
    }
    
    .eld-live-stat-card {
        padding: 10px 8px;
    }
    
    .eld-stat-value {
        font-size: 18px;
    }
    
    .eld-stat-label {
        font-size: 8px;
    }
    
    .eld-live-histograms-row {
        grid-template-columns: 1fr;
    }
    
    .eld-live-histogram-chart {
        height: 100px;
    }
}

/* XS: 480px - 599px */
@media (max-width: 599px) and (min-width: 480px) {
    .eld-live-dashboard {
        padding: 8px;
    }
    
    .eld-live-grid {
        gap: 8px;
    }
    
    .eld-live-gauges-row {
        gap: 6px;
    }
    
    .eld-live-gauge-card {
        flex: 1 1 calc(50% - 3px);
        max-width: calc(50% - 3px);
        padding: 6px;
    }
    
    .eld-live-gauge-card:nth-child(5) {
        flex: 1 1 calc(50% - 3px);
        max-width: calc(50% - 3px);
    }
    
    .eld-live-gauge-title {
        font-size: 9px;
        margin-bottom: 5px;
    }
    
    .eld-live-gauge-container {
        max-width: 110px;
    }
    
    .eld-gauge-number {
        font-size: 22px;
    }
    
    .eld-gauge-percent {
        font-size: 16px;
    }
    
    .eld-live-info-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .eld-live-info-cards {
        flex-direction: column;
    }
    
    .eld-live-operation-card {
        padding: 12px 10px;
        border-radius: 12px;
    }
    
    .eld-live-operation-title {
        font-size: 10px;
        letter-spacing: 1.5px;
        margin-bottom: 10px;
    }
    
    .eld-live-operation-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .eld-live-donut-container {
        width: 120px;
        height: 120px;
    }
    
    .eld-donut-label-top {
        font-size: 11px;
    }
    
    .eld-donut-label-bottom {
        font-size: 15px;
    }
    
    .eld-live-donut-legend {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
    }
    
    .eld-legend-item {
        padding: 8px 10px;
        gap: 6px;
    }
    
    .eld-legend-dot {
        width: 10px;
        height: 10px;
    }
    
    .eld-legend-value {
        font-size: 12px;
    }
    
    .eld-live-stats-panel {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 6px;
    }
    
    .eld-live-stat-card {
        padding: 8px 6px;
    }
    
    .eld-stat-value {
        font-size: 18px;
    }
    
    .eld-stat-label {
        font-size: 7px;
        margin-bottom: 3px;
    }
    
    .eld-live-histograms-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .eld-live-histogram-chart {
        height: 90px;
    }
}

/* XXS: < 480px */
@media (max-width: 479px) {
    .eld-live-dashboard {
        padding: 6px;
    }
    
    .eld-live-grid {
        gap: 6px;
    }
    
    .eld-live-gauges-row {
        flex-direction: column;
        gap: 6px;
    }
    
    .eld-live-gauge-card {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 10px;
    }
    
    .eld-live-gauge-card:nth-child(4),
    .eld-live-gauge-card:nth-child(5) {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .eld-live-gauge-title {
        font-size: 11px;
    }
    
    .eld-live-gauge-container {
        max-width: 140px;
    }
    
    .eld-gauge-number {
        font-size: 28px;
    }
    
    .eld-gauge-percent {
        font-size: 22px;
    }
    
    .eld-live-info-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .eld-live-info-cards {
        flex-direction: column;
    }
    
    .eld-live-operation-card {
        padding: 12px 10px;
        border-radius: 12px;
    }
    
    .eld-live-operation-title {
        font-size: 10px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }
    
    .eld-live-operation-content {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .eld-live-donut-container {
        width: 110px;
        height: 110px;
    }
    
    .eld-donut-label-top {
        font-size: 10px;
    }
    
    .eld-donut-label-bottom {
        font-size: 14px;
    }
    
    .eld-live-donut-legend {
        grid-template-columns: 1fr;
        gap: 5px;
        width: 100%;
    }
    
    .eld-legend-item {
        padding: 10px 12px;
    }
    
    .eld-live-stats-panel {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 5px;
    }
    
    .eld-live-stat-card {
        padding: 8px 6px;
    }
    
    .eld-stat-value {
        font-size: 16px;
    }
    
    .eld-stat-label {
        font-size: 7px;
    }
    
    .eld-live-histograms-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .eld-live-histogram-chart {
        height: 80px;
    }
    
    .eld-live-brake-bars {
        gap: 20px;
        height: 80px;
    }
    
    .eld-brake-bar-container {
        width: 45px;
    }
    
    .eld-brake-bar {
        width: 40px;
    }
}

/* jQuery UI Dialog Overrides */
.ui-dialog.eld-premium-dialog {
    max-height: 90vh !important;
    height: 750px !important;
    min-height: 600px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    overflow: visible !important;
}

.ui-dialog.eld-premium-dialog .ui-dialog-content {
    padding: 0 !important;
    overflow: visible !important;
    height: 100% !important;
    max-height: none !important;
    position: relative !important;
}

.ui-dialog.eld-premium-dialog .eld-dialog-wrapper {
    overflow: visible !important;
}

.ui-dialog.eld-premium-dialog .eld-header-controls {
    overflow: visible !important;
    position: relative;
    z-index: 1000;
}

.ui-dialog.eld-premium-dialog .eld-content-wrapper {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Dialog Wrapper */
.eld-dialog-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

/* Content Wrapper */
.eld-content-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    background: var(--eld-dark-bg-primary);
}

/* ================================
   HEADER CONTROLS
   ================================ */
.eld-header-controls {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    flex-wrap: nowrap;
    position: relative;
    z-index: 100;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    min-height: 60px;
    overflow: visible !important;
}

.eld-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.eld-control-label {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 45px;
    font-family: 'JetBrains Mono', monospace !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* All Input Fields */
.eld-control-input,
input[type="date"].eld-control-input,
select.eld-control-input,
.eld-select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace !important;
    transition: all 0.2s ease;
    font-weight: 500;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    line-height: 36px;
}

/* Dropdown Styling */
select.eld-control-input,
.eld-select {
    min-width: 280px !important;
    max-width: 400px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' opacity='0.8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
    position: relative;
    z-index: 10;
}

select.eld-control-input:focus,
.eld-select:focus {
    z-index: 1000;
}

/* WHITE BACKGROUND FOR DROPDOWN OPTIONS */
select.eld-control-input option,
.eld-select option {
    background: #ffffff !important;
    color: #2c3e50 !important;
    padding: 8px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace !important;
}

select.eld-control-input option:checked,
.eld-select option:checked {
    background: #e3f2fd !important;
    color: #1976d2 !important;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace !important;
}

select.eld-control-input option:hover,
.eld-select option:hover {
    background: #f5f5f5 !important;
    color: #2c3e50 !important;
}

/* Hover States */
.eld-control-input:hover,
input[type="date"].eld-control-input:hover,
select.eld-control-input:hover,
.eld-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Focus States */
.eld-control-input:focus,
input[type="date"].eld-control-input:focus,
select.eld-control-input:focus,
.eld-select:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.eld-control-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Date Controls Group */
.eld-date-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.eld-date-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Date Navigation Arrows */
.eld-date-nav {
    width: 30px;
    height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace !important;
    flex-shrink: 0;
}

.eld-date-nav.eld-date-prev {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.eld-date-nav.eld-date-next {
    border-radius: 0 6px 6px 0;
    border-left: none;
}

.eld-date-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

.eld-date-nav:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.25);
}

.eld-header-controls > * {
    margin: 0;
}

.eld-header-controls input,
.eld-header-controls select,
.eld-header-controls button {
    margin: 0;
    font-family: inherit;
    vertical-align: middle;
}

/* Hide date groups (for General tab) */
.eld-date-group.eld-hidden {
    display: none !important;
}

/* Date display wrapper */
.eld-date-input-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.eld-date-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 36px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-left: none;
    border-right: none;
    border-radius: 0;
    color: #00ff88;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    box-sizing: border-box;
}

.eld-date-display:hover {
    background: rgba(255, 255, 255, 0.15);
}

.eld-date-display::after {
    content: '📅';
    margin-left: 6px;
    font-size: 12px;
}

.eld-date-input-hidden {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.eld-date-input-hidden::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    background: transparent;
}

.eld-date-input-wrapper:focus-within .eld-date-display {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.3);
}

/* Header Responsive */
@media (max-width: 1200px) {
    .eld-header-controls {
        gap: 12px;
        padding: 10px 14px;
    }
    
    .eld-control-group {
        gap: 8px;
    }
    
    select.eld-control-input,
    .eld-select {
        min-width: 240px !important;
    }
    
    input[type="date"].eld-control-input,
    .eld-date-input {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .eld-header-controls {
        flex-wrap: wrap;
        gap: 10px;
        padding: 8px 10px;
        min-height: auto;
    }
    
    .eld-control-group {
        flex: 1 1 100%;
        gap: 6px;
    }
    
    .eld-control-label {
        min-width: 70px;
        font-size: 10px;
    }
    
    .eld-control-input,
    input[type="date"].eld-control-input,
    select.eld-control-input,
    .eld-select,
    .eld-date-input {
        height: 32px;
        font-size: 11px;
        flex: 1;
    }
    
    select.eld-control-input,
    .eld-select {
        min-width: auto !important;
        width: 100%;
    }
    
    .eld-date-nav {
        width: 26px;
        height: 30px;
        font-size: 11px;
    }
    
    .eld-date-display {
        min-width: 90px;
        font-size: 11px;
        padding: 0 8px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .eld-header-controls {
        padding: 6px;
        gap: 8px;
    }
    
    .eld-control-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .eld-control-label {
        min-width: auto;
        margin-bottom: 2px;
    }
    
    .eld-date-controls {
        width: 100%;
    }
    
    input[type="date"].eld-control-input,
    .eld-date-input {
        min-width: auto;
        width: 100%;
        flex: 1;
    }
    
    select.eld-control-input,
    .eld-select {
        min-width: auto !important;
        width: 100%;
    }
}

/* ================================
   TAB NAVIGATION
   ================================ */
.eld-tabs-wrapper {
    margin-top: 0;
}

.eld-tab-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    background: linear-gradient(135deg, var(--eld-dark-bg-secondary), var(--eld-dark-bg-tertiary));
    border-bottom: 2px solid var(--eld-dark-border);
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 3px solid #e9ecef;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f1f3f5;
}

.eld-tab-header::-webkit-scrollbar {
    height: 4px;
}

.eld-tab-header::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.eld-tab-header::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.eld-tabs-scroll-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.eld-tab-button {
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    font-family: 'JetBrains Mono', monospace !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.eld-tab-button i {
    font-size: 13px;
    opacity: 0.8;
}

.eld-tab-button:hover {
    background: rgba(255, 152, 0, 0.05);
    color: #ff9800;
}

.eld-tab-button:hover i {
    opacity: 1;
}

.eld-tab-button.active {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.08);
    border-bottom-color: #ff9800;
}

.eld-tab-button.active i {
    opacity: 1;
}

/* ================================
   TAB CONTENT
   ================================ */
.eld-tab-content {
    display: none;
    padding: 12px 16px;
    background: var(--eld-dark-bg-primary);
    min-height: 350px;
    animation: fadeInUp 0.4s ease;
}

.eld-tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ================================
   SUB-TABS
   ================================ */
.eld-sub-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.eld-sub-tab-button {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace !important;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    border-radius: 6px;
}

.eld-sub-tab-button:hover {
    color: #795548;
    background: rgba(121, 85, 72, 0.08);
}

.eld-sub-tab-button.active {
    color: #795548;
    background: rgba(121, 85, 72, 0.12);
}

.eld-sub-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 2px;
    background: #795548;
}

.eld-sub-tab-content {
    display: none;
}

.eld-sub-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================================
   METRICS ROW
   ================================ */
.eld-metrics-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 12px;
}

.eld-metrics-grid.four-columns {
    grid-template-columns: repeat(4, 1fr);
}

.eld-metrics-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.eld-metrics-grid.single-column {
    grid-template-columns: 1fr;
}

.eld-metric-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.eld-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.eld-metric-card.highlight {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border-color: #f57c00;
}

.eld-metric-card.dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border-color: #2c3e50;
}

.eld-metric-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.eld-metric-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.eld-metric-value.large {
    font-size: 36px;
}

.eld-metric-unit {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

/* ================================
   METRICS ROW - CONSISTENT LEFT WIDTH
   ================================ */
.eld-metrics-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    margin-bottom: 16px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-height: 180px;
    max-height: none;
}

.eld-metrics-row.with-gauge {
    grid-template-columns: 260px 1fr !important;
}

.eld-gauge-wrapper,
.eld-metric-container.eld-with-gauge {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    border-right: 2px solid #d0d0d0;
    box-sizing: border-box;
    min-height: 260px;
}

.eld-gauge-wrapper .eld-metric-header {
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
    order: 1;
}

.eld-gauge-wrapper .eld-event-count {
    width: 100%;
    text-align: center;
    margin: 0 0 10px 0;
    padding: 0;
    border: none;
    order: 2;
}

.eld-gauge-wrapper .eld-with-gauge {
    margin: 0;
    order: 3;
}

.eld-gauge-wrapper .eld-metric-value {
    margin-top: 6px;
    margin-bottom: 0;
    order: 4;
}

.eld-metric-container {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 2px solid #d0d0d0;
    box-sizing: border-box;
}

.eld-metric-container .eld-metric-header {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
    letter-spacing: 0.8px;
    font-family: 'JetBrains Mono', monospace;
}

.eld-metric-container .eld-metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
}

.eld-graph-area {
    display: flex;
    flex-direction: column;
    background: #fff;
    height: 100%;
    padding: 0 !important;
    position: relative;
}

/* ================================
   GRAPH CANVAS
   ================================ */
.eld-playback-bar {
    display: none !important;
}

.eld-graph-title {
    display: none !important;
}

.eld-graph-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    min-height: 100%;
    max-height: 100%;
}

.eld-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100% !important;
    background: #ffffff;
    padding: 6px !important;
    margin: 0;
    overflow: visible;
    box-sizing: border-box;
}

.eld-canvas-area {
    position: relative;
    width: 100%;
    height: 100% !important;
    background: #ffffff;
    padding: 6px !important;
    margin: 0;
    box-sizing: border-box;
}

.eld-canvas-area canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    max-height: none !important;
}

.eld-crosshair-vertical {
    position: absolute;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: rgba(255, 0, 0, 0.6);
    pointer-events: none;
    display: none;
    z-index: 10;
}

.eld-crosshair-info {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    pointer-events: none;
    display: none;
    z-index: 11;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ================================
   DATA TABLES
   ================================ */
.eld-data-table,
.eld-vehicle-table,
.eld-dtc-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin: 12px 0;
}

.eld-data-table thead,
.eld-vehicle-table thead,
.eld-dtc-table thead {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.eld-data-table th,
.eld-vehicle-table th,
.eld-dtc-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eld-data-table td,
.eld-vehicle-table td,
.eld-dtc-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
}

.eld-data-table tbody tr:hover,
.eld-vehicle-table tbody tr:hover,
.eld-dtc-table tbody tr:hover {
    background: rgba(255, 152, 0, 0.05);
}

.eld-data-table tbody tr:last-child td,
.eld-vehicle-table tbody tr:last-child td,
.eld-dtc-table tbody tr:last-child td {
    border-bottom: none;
}

.eld-vehicle-table-wrapper,
.eld-dtc-table-wrapper {
    overflow-x: auto;
    margin: 12px 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ================================
   DIAGNOSTICS
   ================================ */
.eld-diagnostic-indicators {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
}

.eld-indicator-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.eld-indicator-light {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #333;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.eld-indicator-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}

/* ================================
   ERROR & STATUS MESSAGES
   ================================ */
.eld-error {
    background: linear-gradient(135deg, #fee, #fdd);
    color: #c00;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #fcc;
    box-shadow: 0 2px 6px rgba(255,0,0,0.1);
}

.eld-error i {
    font-size: 18px;
}

.eld-no-device {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    background: #fff;
    border-radius: 10px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.eld-message-container {
    text-align: center;
    padding: 30px;
}

.eld-message-icon {
    font-size: 56px;
    color: #cbd5e0;
    margin-bottom: 16px;
}

.eld-message-text {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.3px;
}

.eld-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.eld-loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e9ecef;
    border-top-color: #ff9800;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.eld-loading-text {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

/* ================================
   GAUGE STYLES - FOR OTHER TABS
   ================================ */
.eld-section-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 10px 16px;
    margin: 16px 0 12px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.eld-section-header i {
    font-size: 16px;
}

.eld-gauge-container,
.eld-gauge-container-small {
    width: 100%;
    max-width: 230px;
    height: auto;
    margin: 0 auto;
    display: block;
    position: relative;
    padding: 8px;
    padding-bottom: 35px;
    box-sizing: border-box;
    overflow: visible;
}

.eld-gauge-svg {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.eld-gauge-legend-wrapper {
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.eld-gauge-legend-clean {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 9px;
    font-weight: 500;
    color: #5a6c7d;
    flex-wrap: wrap;
}

.eld-gauge-legend-clean .legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.eld-gauge-legend-clean .legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.eld-gauge-legend {
    display: none !important;
}

.eld-gauge-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    min-height: 280px;
}

.eld-gauge-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.eld-gauge-header {
    font-size: 11px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eld-with-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    width: 100%;
    gap: 8px;
}

.eld-with-gauge .eld-metric-header {
    text-align: center;
    width: 100%;
    margin-bottom: 0;
}

.eld-with-gauge .eld-metric-value {
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 0;
}

.eld-event-count {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    border: none;
    text-align: center;
    width: 100%;
    line-height: 1.4;
}

.gauge-status-green {
    color: #27ae60;
}

.gauge-status-yellow {
    color: #f39c12;
}

.gauge-status-red {
    color: #e74c3c;
}

.gauge-status-nodata {
    color: #95a5a6;
}

.eld-gauges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

/* ================================
   RESPONSIVE DESIGN FOR OTHER TABS
   ================================ */
@media (max-width: 1024px) {
    .eld-metrics-row,
    .eld-metrics-row.with-gauge {
        grid-template-columns: 220px 1fr !important;
        min-height: 160px;
    }
    
    .eld-metric-container .eld-metric-value {
        font-size: 24px;
    }
    
    .eld-metrics-grid.four-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .eld-canvas-wrapper,
    .eld-canvas-area {
        padding: 5px !important;
    }
    
    .eld-gauge-container,
    .eld-gauge-container-small {
        max-width: 180px;
    }
    
    .eld-gauges-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .eld-metrics-row,
    .eld-metrics-row.with-gauge {
        grid-template-columns: 1fr !important;
        gap: 0;
        min-height: auto;
    }
    
    .eld-metric-container,
    .eld-gauge-wrapper {
        border-right: none !important;
        border-bottom: 2px solid #d0d0d0;
        padding: 12px;
    }
    
    .eld-graph-area {
        min-height: 130px;
    }
    
    .eld-canvas-wrapper,
    .eld-canvas-area {
        padding: 4px !important;
    }
    
    .eld-metrics-grid.four-columns,
    .eld-metrics-grid.two-columns {
        grid-template-columns: 1fr;
    }
    
    .eld-gauges-grid {
        grid-template-columns: 1fr;
    }
    
    .eld-gauge-container,
    .eld-gauge-container-small {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .eld-metric-container {
        padding: 10px;
    }
    
    .eld-metric-container .eld-metric-value {
        font-size: 22px;
    }
    
    .eld-canvas-wrapper,
    .eld-canvas-area {
        padding: 3px !important;
    }
    
    .eld-graph-area {
        min-height: 110px;
    }
    
    .eld-gauge-card {
        min-height: auto;
        padding: 12px;
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */
.eld-text-center { text-align: center; }
.eld-text-right { text-align: right; }
.eld-text-left { text-align: left; }
.eld-mt-10 { margin-top: 10px; }
.eld-mt-20 { margin-top: 20px; }
.eld-mb-10 { margin-bottom: 10px; }
.eld-mb-20 { margin-bottom: 20px; }
.eld-p-10 { padding: 10px; }
.eld-p-20 { padding: 20px; }
.eld-hidden { display: none; }
.eld-visible { display: block; }
.eld-flex { display: flex; }
.eld-flex-center { display: flex; align-items: center; justify-content: center; }
.eld-flex-between { display: flex; justify-content: space-between; }
.eld-flex-wrap { flex-wrap: wrap; }
.eld-gap-10 { gap: 10px; }
.eld-gap-20 { gap: 20px; }

/* CUSTOM SCROLLBAR */
.eld-content-wrapper::-webkit-scrollbar {
    width: 7px;
	display: none;
}

.eld-content-wrapper::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.eld-content-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.eld-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* ================================
   HISTOGRAM TAB
   ================================ */
.eld-histogram-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.eld-histogram-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.eld-histogram-title {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
}

.eld-histogram-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
}

.eld-histogram-total {
    color: #64748b;
    font-weight: 600;
}

.eld-histogram-unit {
    background: #3b82f6;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
}

.eld-histogram-canvas-wrapper {
    position: relative;
    height: 280px;
    width: 100%;
}

.eld-histogram-no-data {
    text-align: center;
    padding: 50px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #64748b;
}

.eld-histogram-icon {
    font-size: 42px;
    margin-top: 16px;
    opacity: 0.5;
}

.eld-histogram-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 6px;
}


/* ================================
   ================================
   DARK THEME FOR OTHER TABS
   (Not General Tab - it already has dark theme)
   Version: 1.0
   ================================
   ================================ */

/* ================================
   CSS VARIABLES FOR DARK THEME
   ================================ */
:root {
    --eld-dark-bg-primary: #1a1a2e;
    --eld-dark-bg-secondary: #16213e;
    --eld-dark-bg-tertiary: #0f1629;
    --eld-dark-border: #2d3a5a;
    --eld-dark-border-light: rgba(255, 255, 255, 0.1);
    --eld-dark-text-primary: #ffffff;
    --eld-dark-text-secondary: #8892b0;
    --eld-dark-text-muted: #5a6c7d;
    --eld-dark-accent-green: #00ff88;
    --eld-dark-accent-blue: #3b82f6;
    --eld-dark-accent-orange: #ff9800;
    --eld-dark-accent-yellow: #ffc107;
    --eld-dark-accent-red: #ff4444;
    --eld-dark-accent-purple: #8b5cf6;
    --eld-dark-accent-cyan: #06b6d4;
}

/* ================================
   DIALOG & CONTENT WRAPPER - DARK
   ================================ */
#dialog_eld {
    background: var(--eld-dark-bg-primary) !important;
}

.eld-dialog-wrapper {
    background: var(--eld-dark-bg-primary) !important;
}

.eld-content-wrapper {
    background: var(--eld-dark-bg-primary) !important;
}

/* ================================
   TAB HEADER - DARK THEME
   ================================ */
.eld-tab-header {
    background: linear-gradient(135deg, var(--eld-dark-bg-secondary), var(--eld-dark-bg-tertiary)) !important;
    border-bottom: 2px solid var(--eld-dark-border) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.eld-tab-header::-webkit-scrollbar-track {
    background: var(--eld-dark-bg-tertiary) !important;
}

.eld-tab-header::-webkit-scrollbar-thumb {
    background: var(--eld-dark-accent-blue) !important;
}

.eld-tab-button {
    color: var(--eld-dark-text-secondary) !important;
}

.eld-tab-button:hover {
    background: rgba(0, 255, 136, 0.1) !important;
    color: var(--eld-dark-accent-green) !important;
}

.eld-tab-button.active {
    color: var(--eld-dark-accent-green) !important;
    background: rgba(0, 255, 136, 0.15) !important;
    border-bottom-color: var(--eld-dark-accent-green) !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* ================================
   TAB CONTENT - DARK THEME
   (Excludes General tab which keeps its own dark theme)
   ================================ */
.eld-tab-content {
    background: var(--eld-dark-bg-primary) !important;
    color: var(--eld-dark-text-primary) !important;
}

/* ================================
   SUB-TABS - DARK THEME
   ================================ */
.eld-sub-tabs {
    border-bottom-color: var(--eld-dark-border) !important;
    background: transparent !important;
}

.eld-sub-tab-button {
    color: var(--eld-dark-text-secondary) !important;
    background: transparent !important;
}

.eld-sub-tab-button:hover {
    color: var(--eld-dark-accent-blue) !important;
    background: rgba(59, 130, 246, 0.15) !important;
}

.eld-sub-tab-button.active {
    color: var(--eld-dark-text-primary) !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.15)) !important;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3) !important;
}

.eld-sub-tab-button.active::after {
    background: var(--eld-dark-accent-blue) !important;
    box-shadow: 0 0 10px var(--eld-dark-accent-blue) !important;
}

/* ================================
   METRICS ROW - DARK THEME
   ================================ */
.eld-metrics-row {
    background: var(--eld-dark-bg-secondary) !important;
    border-color: var(--eld-dark-border) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.eld-metrics-row:hover {
    border-color: rgba(0, 255, 136, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.1) !important;
}

.eld-metric-container {
    background: linear-gradient(135deg, var(--eld-dark-bg-secondary), var(--eld-dark-bg-tertiary)) !important;
    border-right-color: var(--eld-dark-border) !important;
}

.eld-metric-container .eld-metric-header {
    color: var(--eld-dark-text-secondary) !important;
}

.eld-metric-container .eld-metric-value {
    color: var(--eld-dark-accent-green) !important;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.eld-gauge-wrapper,
.eld-metric-container.eld-with-gauge {
    background: linear-gradient(135deg, var(--eld-dark-bg-secondary), var(--eld-dark-bg-tertiary)) !important;
    border-right-color: var(--eld-dark-border) !important;
}

/* ================================
   GRAPH AREA - DARK THEME
   ================================ */
.eld-graph-area {
    background: var(--eld-dark-bg-primary) !important;
}

.eld-graph-wrapper {
    background: var(--eld-dark-bg-primary) !important;
}

/* Crosshair styling for dark theme */
.eld-crosshair-vertical {
    background: var(--eld-dark-accent-green) !important;
    box-shadow: 0 0 10px var(--eld-dark-accent-green) !important;
}

.eld-crosshair-info {
    background: rgba(22, 33, 62, 0.95) !important;
    border: 1px solid var(--eld-dark-border) !important;
    color: var(--eld-dark-text-primary) !important;
}

/* ================================
   METRIC CARDS - DARK THEME
   ================================ */
.eld-metric-card {
    background: linear-gradient(135deg, var(--eld-dark-bg-secondary), var(--eld-dark-bg-tertiary)) !important;
    border-color: var(--eld-dark-border) !important;
    color: var(--eld-dark-text-primary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.eld-metric-card:hover {
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2) !important;
}

.eld-metric-card .eld-metric-header {
    color: var(--eld-dark-text-secondary) !important;
}

.eld-metric-card .eld-metric-value {
    color: var(--eld-dark-accent-green) !important;
}

.eld-metric-card.highlight {
    background: linear-gradient(135deg, var(--eld-dark-accent-orange), #f57c00) !important;
    border-color: var(--eld-dark-accent-orange) !important;
}

.eld-metric-card.dark {
    background: linear-gradient(135deg, var(--eld-dark-bg-tertiary), #0a0f1a) !important;
    border-color: var(--eld-dark-border) !important;
}

/* ================================
   GAUGE CARDS - DARK THEME
   ================================ */
.eld-gauge-card {
    background: linear-gradient(135deg, var(--eld-dark-bg-secondary), var(--eld-dark-bg-tertiary)) !important;
    border-color: var(--eld-dark-border) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.eld-gauge-card:hover {
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2) !important;
}

.eld-gauge-header {
    color: var(--eld-dark-text-primary) !important;
}

.eld-gauge-container {
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.2));
}

.eld-gauge-legend-wrapper {
    border-top-color: var(--eld-dark-border) !important;
}

.eld-gauge-legend-clean {
    color: var(--eld-dark-text-secondary) !important;
}

.eld-event-count {
    color: var(--eld-dark-text-primary) !important;
}

.eld-with-gauge .eld-metric-header {
    color: var(--eld-dark-text-secondary) !important;
}

.eld-with-gauge .eld-metric-value {
    color: var(--eld-dark-accent-green) !important;
}

/* ================================
   DATA TABLES - DARK THEME
   ================================ */
.eld-data-table,
.eld-vehicle-table,
.eld-dtc-table {
    background: var(--eld-dark-bg-secondary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.eld-data-table thead,
.eld-vehicle-table thead,
.eld-dtc-table thead {
    background: linear-gradient(135deg, var(--eld-dark-bg-tertiary), #0a0f1a) !important;
}

.eld-data-table th,
.eld-vehicle-table th,
.eld-dtc-table th {
    color: var(--eld-dark-text-primary) !important;
    border-bottom: 2px solid var(--eld-dark-accent-blue) !important;
}

.eld-data-table td,
.eld-vehicle-table td,
.eld-dtc-table td {
    color: var(--eld-dark-text-primary) !important;
    border-bottom-color: var(--eld-dark-border) !important;
}

.eld-data-table tbody tr,
.eld-vehicle-table tbody tr,
.eld-dtc-table tbody tr {
    background: transparent !important;
}

.eld-data-table tbody tr:nth-child(even),
.eld-vehicle-table tbody tr:nth-child(even),
.eld-dtc-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.2) !important;
}

.eld-data-table tbody tr:hover,
.eld-vehicle-table tbody tr:hover,
.eld-dtc-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.15) !important;
}

.eld-vehicle-table-wrapper,
.eld-dtc-table-wrapper {
    background: var(--eld-dark-bg-secondary) !important;
    border-radius: 10px !important;
}

/* ================================
   SECTION HEADERS - DARK THEME
   ================================ */
.eld-section-header {
    background: linear-gradient(135deg, var(--eld-dark-bg-tertiary), #0a0f1a) !important;
    border: 1px solid var(--eld-dark-border) !important;
    color: var(--eld-dark-text-primary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* ================================
   DIAGNOSTICS - DARK THEME
   ================================ */
.eld-diagnostic-indicators {
    background: linear-gradient(135deg, var(--eld-dark-bg-secondary), var(--eld-dark-bg-tertiary)) !important;
    border: 1px solid var(--eld-dark-border) !important;
}

.eld-indicator-light {
    background: #1a1a1a !important;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5) !important;
}

/* Active indicator states */
.eld-indicator-light.active-red {
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #ff4444, #cc0000) !important;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 68, 68, 0.6),
        0 0 40px rgba(255, 68, 68, 0.3) !important;
}

.eld-indicator-light.active-amber,
.eld-indicator-light.active-yellow {
    background: radial-gradient(circle at 30% 30%, #ffca28, #ffc107, #ff8f00) !important;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 193, 7, 0.6),
        0 0 40px rgba(255, 193, 7, 0.3) !important;
}

.eld-indicator-light.active-green {
    background: radial-gradient(circle at 30% 30%, #69f0ae, #00ff88, #00cc6a) !important;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(0, 255, 136, 0.6),
        0 0 40px rgba(0, 255, 136, 0.3) !important;
}

.eld-indicator-label {
    color: var(--eld-dark-text-secondary) !important;
}

/* ================================
   HISTOGRAM - DARK THEME
   ================================ */
.eld-histogram-wrapper {
    background: linear-gradient(135deg, var(--eld-dark-bg-secondary), var(--eld-dark-bg-tertiary)) !important;
    border: 1px solid var(--eld-dark-border) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.eld-histogram-header {
    border-bottom-color: var(--eld-dark-border) !important;
}

.eld-histogram-title {
    color: var(--eld-dark-text-primary) !important;
}

.eld-histogram-total {
    color: var(--eld-dark-accent-green) !important;
}

.eld-histogram-unit {
    background: var(--eld-dark-accent-blue) !important;
}

.eld-histogram-canvas-wrapper {
    background: transparent !important;
}

.eld-histogram-no-data {
    background: var(--eld-dark-bg-tertiary) !important;
    color: var(--eld-dark-text-secondary) !important;
    border: 1px dashed var(--eld-dark-border) !important;
}

.eld-histogram-subtitle {
    color: var(--eld-dark-text-muted) !important;
}

/* ================================
   ERROR & STATUS MESSAGES - DARK THEME
   ================================ */
.eld-error {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(255, 68, 68, 0.1)) !important;
    border-color: rgba(255, 68, 68, 0.4) !important;
    color: #ff6b6b !important;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.2) !important;
}

.eld-no-device {
    background: var(--eld-dark-bg-secondary) !important;
    border: 1px solid var(--eld-dark-border) !important;
}

.eld-message-icon {
    color: var(--eld-dark-text-muted) !important;
}

.eld-message-text {
    color: var(--eld-dark-text-secondary) !important;
}

.eld-loading-overlay {
    background: rgba(26, 26, 46, 0.95) !important;
}

.eld-loading-spinner {
    border-color: var(--eld-dark-border) !important;
    border-top-color: var(--eld-dark-accent-green) !important;
}

.eld-loading-text {
    color: var(--eld-dark-text-secondary) !important;
}

/* ================================
   SCROLLBAR - DARK THEME
   ================================ */
.eld-content-wrapper::-webkit-scrollbar-track {
    background: var(--eld-dark-bg-tertiary) !important;
}

.eld-content-wrapper::-webkit-scrollbar-thumb {
    background: var(--eld-dark-accent-blue) !important;
}

.eld-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: #5b9cf6 !important;
}

/* ================================
   PLAYBACK BAR (if visible) - DARK THEME
   ================================ */
.eld-playback-controls {
    background: linear-gradient(135deg, var(--eld-dark-bg-tertiary), #0a0f1a) !important;
    border-top: 1px solid var(--eld-dark-border) !important;
}

.eld-playback-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--eld-dark-text-primary) !important;
    border: 1px solid var(--eld-dark-border) !important;
}

.eld-playback-btn:hover {
    background: rgba(59, 130, 246, 0.3) !important;
    border-color: var(--eld-dark-accent-blue) !important;
}

.eld-playback-btn.active {
    background: var(--eld-dark-accent-blue) !important;
}

.eld-speed-indicator {
    background: var(--eld-dark-accent-green) !important;
    color: var(--eld-dark-bg-primary) !important;
}

/* ================================
   ANIMATIONS FOR DARK THEME
   ================================ */
@keyframes darkGlowPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 30px rgba(0, 255, 136, 0.4);
    }
}

.eld-metric-value.glow-animate {
    animation: darkGlowPulse 2s ease-in-out infinite;
}

/* ================================
   RESPONSIVE ADJUSTMENTS FOR DARK THEME
   ================================ */
@media (max-width: 768px) {
    .eld-metric-container,
    .eld-gauge-wrapper {
        border-bottom-color: var(--eld-dark-border) !important;
    }
}

/* ================================
   UTILITY CLASSES - DARK THEME
   ================================ */
.eld-dark-text-green { color: var(--eld-dark-accent-green) !important; }
.eld-dark-text-blue { color: var(--eld-dark-accent-blue) !important; }
.eld-dark-text-orange { color: var(--eld-dark-accent-orange) !important; }
.eld-dark-text-red { color: var(--eld-dark-accent-red) !important; }
.eld-dark-text-yellow { color: var(--eld-dark-accent-yellow) !important; }
.eld-dark-text-purple { color: var(--eld-dark-accent-purple) !important; }
.eld-dark-text-cyan { color: var(--eld-dark-accent-cyan) !important; }

.eld-dark-bg-card {
    background: linear-gradient(135deg, var(--eld-dark-bg-secondary), var(--eld-dark-bg-tertiary)) !important;
    border: 1px solid var(--eld-dark-border) !important;
}

.eld-dark-glow-green {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3) !important;
}

.eld-dark-glow-blue {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3) !important;
}

/* Make ALL gauge arcs thick (18px) like Dashboard */
.eld-gauge-svg path {
    stroke-width: 18 !important;
}

/* Neon colors for gauge zones */
.eld-gauge-svg path[stroke="#27ae60"],
.eld-gauge-svg path[stroke="#4caf50"] {
    stroke: #00ff88 !important;
}

.eld-gauge-svg path[stroke="#f39c12"],
.eld-gauge-svg path[stroke="#ff9800"] {
    stroke: #ffcc00 !important;
}

.eld-gauge-svg path[stroke="#e74c3c"],
.eld-gauge-svg path[stroke="#f44336"] {
    stroke: #ff4444 !important;
}

/* Dark background track */
.eld-gauge-svg path[stroke="#e0e0e0"],
.eld-gauge-svg path[stroke="#e8e8e8"] {
    stroke: #333 !important;
}

/* Video Gallery Dialog Styles */
#dialog_video_gallery {
    display: none; /* Hidden by default, jQuery UI will show it */
}

/* Ensure video dialog wrapper is visible and properly positioned */
.ui-dialog[aria-describedby="dialog_video_gallery"] {
    z-index: 10000 !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    min-width: 900px !important;
    min-height: 600px !important;
    max-width: 95vw !important;
    max-height: 95vh !important;
    display: block !important;
    visibility: visible !important;
}

/* Ensure video dialog content is visible */
.ui-dialog[aria-describedby="dialog_video_gallery"] .ui-dialog-content {
    padding: 10px !important;
    overflow: auto !important;
    max-height: calc(95vh - 100px) !important;
    display: block !important;
    visibility: visible !important;
}

/* Video gallery specific grid styles */
#video_gallery_list_grid {
    width: 100% !important;
    min-height: 300px;
}

#video_gallery_list_grid_pager {
    text-align: center;
    margin-top: 10px;
}

/* Ensure video gallery image display area is visible */
#video_gallery_img {
    min-height: 200px;
    text-align: center;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

#video_gallery_img_data {
    margin-top: 10px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

/* Force dialog title bar to be visible */
.ui-dialog[aria-describedby="dialog_video_gallery"] .ui-dialog-titlebar {
    display: block !important;
    visibility: visible !important;
}

/* ===================================
   DASHCAM STYLES - COMPLETE
   =================================== */

/* ===================================
   LEFT PANEL - DASHCAM TREE
   =================================== */

#side_panel_mdvr_dashcam_list_grid {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f8f9fa;
    padding: 0;
    margin: 0;
    position: relative;
}

.panel-loading-message {
    padding: 10px;
    text-align: center;
    color: #666;
    font-size: 12px;
}

.no-channels-message {
    padding: 5px 10px;
    color: #999;
    font-size: 12px;
}

#side_panel_mdvr_dashcam_list_grid .gsm_object_tree {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: #333;
    user-select: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

#side_panel_mdvr_dashcam_list_grid .gsm_object_tree ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#side_panel_mdvr_dashcam_list_grid .gsm_object_tree > ul > li {
    margin: 0;
    padding: 0;
    width: 100%;
    border-bottom: 1px solid #e1e4e8;
}

#side_panel_mdvr_dashcam_list_grid .gsm_object_item {
    width: 100%;
    height: 42px;
    padding: 0 15px;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: #fff;
    transition: background 0.15s ease;
    position: relative;
    box-sizing: border-box;
}

#side_panel_mdvr_dashcam_list_grid .gsm_object_item:hover {
    background: #f6f8fa;
}

#side_panel_mdvr_dashcam_list_grid .gsm_object_item.selected {
    background: #fff !important;
    color: #333;
    border-left: 4px solid #2196f3;
    padding-left: 11px;
    box-shadow: 0 1px 3px rgba(33, 150, 243, 0.15);
    position: relative;
}

#side_panel_mdvr_dashcam_list_grid .gsm_object_item.selected * {
    background: transparent !important;
}

#side_panel_mdvr_dashcam_list_grid .object_arrow {
    width: 0;
    height: 0;
    border: 4px solid transparent;
    border-left: 6px solid #586069;
    margin-right: 8px;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

#side_panel_mdvr_dashcam_list_grid .object_arrow.expanded {
    transform: rotate(90deg);
}

#side_panel_mdvr_dashcam_list_grid .gsm_object_item.selected .object_arrow {
    border-left-color: #1976d2;
}

#side_panel_mdvr_dashcam_list_grid .object_icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
    vertical-align: middle;
}

#side_panel_mdvr_dashcam_list_grid .gsm_object_item.selected .object_icon {
    background: transparent !important;
}

#side_panel_mdvr_dashcam_list_grid .object_name {
    flex: 1;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#side_panel_mdvr_dashcam_list_grid .gsm_object_item.selected .object_name {
    font-weight: 600;
    color: #1565c0;
}

#side_panel_mdvr_dashcam_list_grid .object_plate {
    font-size: 11px;
    color: #888;
    margin-left: 5px;
}

#side_panel_mdvr_dashcam_list_grid .gsm_object_item.selected .object_plate {
    color: #1976d2;
}

/* ===================================
   TEXT STATUS BUTTONS
   =================================== */

.vehicle-status-btn {
    min-width: 55px;
    height: 22px;
    border: 1px solid;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vehicle-status-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.vehicle-status-btn:active {
    transform: translateY(0);
}

.vehicle-status-btn.status-online {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    border-color: #1e7e34 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.vehicle-status-btn.status-online:hover {
    background: linear-gradient(135deg, #34ce57, #17a2b8) !important;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

.vehicle-status-btn.status-offline {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
    border-color: #bd2130 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.vehicle-status-btn.status-offline:hover {
    background: linear-gradient(135deg, #e55353, #e83e8c) !important;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3);
}

.vehicle-status-btn.status-checking {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: #212529 !important;
    border-color: #e0a800 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    animation: pulse-check 1.5s infinite;
}

@keyframes pulse-check {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

.vehicle-status-btn.status-checking:hover {
    background: linear-gradient(135deg, #ffd700, #ff8c00) !important;
    box-shadow: 0 3px 8px rgba(255, 193, 7, 0.3);
}

#side_panel_mdvr_dashcam_list_grid .gsm_object_item.selected .vehicle-status-btn.status-online {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border-color: #1e7e34 !important;
    color: white !important;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.3);
}

#side_panel_mdvr_dashcam_list_grid .gsm_object_item.selected .vehicle-status-btn.status-offline {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border-color: #bd2130 !important;
    color: white !important;
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.3);
}

#side_panel_mdvr_dashcam_list_grid .gsm_object_item.selected .vehicle-status-btn.status-checking {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    border-color: #e0a800 !important;
    color: #212529 !important;
    box-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
}

/* ===================================
   CHANNELS - CAMERA LIST
   =================================== */

#side_panel_mdvr_dashcam_list_grid .gsm_channels {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    display: none;
}

#side_panel_mdvr_dashcam_list_grid .gsm_channels.expanded {
    display: block;
}

#side_panel_mdvr_dashcam_list_grid .channel_item {
    width: 100%;
    height: 36px;
    padding: 0 15px 0 35px;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: transparent;
    transition: background 0.15s ease;
    border: none;
    box-sizing: border-box;
    color: #586069;
    border-bottom: 1px solid #f0f0f0;
}

#side_panel_mdvr_dashcam_list_grid .channel_item:hover {
    background: #f6f8fa;
}

#side_panel_mdvr_dashcam_list_grid .channel_item.active {
    background: #28a745;
    color: #fff;
}

#side_panel_mdvr_dashcam_list_grid .channel_icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    vertical-align: middle;
}

#side_panel_mdvr_dashcam_list_grid .channel_item.active .channel_icon {
    filter: brightness(0) invert(1);
}

#side_panel_mdvr_dashcam_list_grid::-webkit-scrollbar {
    width: 6px;
}

#side_panel_mdvr_dashcam_list_grid::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#side_panel_mdvr_dashcam_list_grid::-webkit-scrollbar-thumb {
    background: #c1c4cd;
    border-radius: 3px;
}

#side_panel_mdvr_dashcam_list_grid::-webkit-scrollbar-thumb:hover {
    background: #959da5;
}

/* ===================================
   BOTTOM PANEL
   =================================== */

#bottom_panel_dashcam {
    width: 100%;
    height: 100%;
    padding: 0 !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden !important;
    max-height: 150px !important;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

#bottom_panel_dashcam.hidden,
#bottom_panel_cctv.hidden {
    display: none;
}

#bottom_panel_dashcam::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(253, 121, 168, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

#bottom_panel_dashcam .dashcam-panel-container {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
    max-height: 150px !important;
    position: relative;
    z-index: 1;
    overflow: hidden !important;
}

.dashcam-loading {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #666;
}

.cctv-panel-content {
    text-align: center;
    padding: 10px;
    font-size: 12px;
}

.footer-dashcam-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    padding: 0;
    margin: 0;
    max-height: 150px !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

.footer-controls {
    padding: 6px 12px;
    background: linear-gradient(90deg, 
        rgba(0,0,0,0.8) 0%, 
        rgba(30,30,50,0.9) 50%, 
        rgba(0,0,0,0.8) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
    min-height: 28px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.footer-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.03) 50%, 
        transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.footer-all-cams-button {
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 3px 10px rgba(255, 107, 107, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.footer-all-cams-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.2) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.footer-all-cams-button:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(255, 107, 107, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    background: linear-gradient(145deg, #ff7979, #fd79a8);
}

.footer-all-cams-button:hover::before {
    left: 100%;
}

.footer-device-info {
    font-size: 10px;
    color: #a8b3c5;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    background: rgba(255,255,255,0.05);
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.footer-video-grid {
    flex: 1;
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 8px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    position: relative;
    max-height: 110px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.footer-video-grid::-webkit-scrollbar {
    height: 6px;
}

.footer-video-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.footer-video-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.footer-video-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.footer-video-item {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 10px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 0 0 1px rgba(255,255,255,0.05);
    cursor: pointer;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    height: 90px !important;
    min-height: 90px !important;
    max-height: 90px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    box-sizing: border-box;
}

.footer-video-item:hover {
    transform: scale(1.05);
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.5),
        0 0 0 2px rgba(255, 107, 107, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.2);
    z-index: 10;
}

.footer-video-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 107, 107, 0.05) 0%, 
        transparent 50%, 
        rgba(253, 121, 168, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.footer-video-item:hover::before {
    opacity: 1;
}

.footer-camera-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.95) 0%, 
        rgba(0,0,0,0.7) 60%, 
        transparent 100%);
    color: white;
    padding: 3px 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.footer-video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    pointer-events: none;
}

.footer-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #0d1117 0%, #1a1a2e 100%);
    pointer-events: none;
}

.footer-overlay {
    position: absolute;
    bottom: 4px;
    right: 4px;
    z-index: 3;
    pointer-events: none;
}

.footer-expand-icon {
    background: rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 3px;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    backdrop-filter: blur(3px);
    transition: opacity 0.3s ease;
}

.footer-video-item:hover .footer-expand-icon {
    opacity: 1;
}

.footer-expand-icon svg {
    width: 10px;
    height: 10px;
}

/* ===================================
   DIALOG STYLES
   =================================== */

.dashcam-dialog-content {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.no-padding {
    padding: 0 !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.dashcam-dialog-header {
    background: #24292e;
    padding: 10px 15px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.dashcam-grid-buttons {
    display: flex;
    gap: 5px;
}

.dashcam-grid-btn {
    width: 36px;
    height: 32px;
    background: transparent;
    border: 1px solid #444d56;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    color: #8b8b8b;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.dashcam-grid-btn:hover:not(.active) {
    background: #2d3339;
    border-color: #586069;
    color: #fff;
}

.dashcam-grid-btn.active {
    background: #0366d6 !important;
    border-color: #0366d6 !important;
    color: #fff !important;
    box-shadow: 0 0 0 2px rgba(3, 102, 214, 0.3);
}

.dashcam-grid-btn.active:hover {
    background: #0451a5 !important;
    border-color: #0451a5 !important;
}

.dashcam-grid-btn:focus {
    outline: none !important;
}

.dashcam-grid-btn.selected,
.dashcam-grid-btn:active:not(.active),
.dashcam-grid-btn[aria-pressed="true"]:not(.active) {
    background: transparent !important;
    border-color: #444d56 !important;
}

.dashcam-grid-btn svg,
.dashcam-ctrl-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    vertical-align: middle;
    pointer-events: none;
}

.dashcam-ctrl-btn svg {
    width: 14px;
    height: 14px;
}

.dashcam-status-info {
    color: #fff;
    font-size: 12px;
}

/* Camera Grid Container */
.dashcam-camera-grid {
    width: 100%;
    height: 100%;
    flex: 1;
    display: grid;
    gap: 1px;
    background: #000;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    font-size: 0.9em;
}

/* Grid Layouts */
.layout-single { 
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.dashcam-camera-grid.layout-1x2:not(.single-channel) {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
}

.layout-2x2 { 
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.layout-1plus5 { 
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: dense;
}

.layout-1plus5 .dashcam-camera-slot {
    grid-column: auto;
    grid-row: auto;
}

.layout-1plus5 .dashcam-camera-slot:first-child {
    grid-column: 1 / 3 !important;
    grid-row: 1 / 3 !important;
}

.layout-1plus5 .dashcam-camera-slot:nth-child(2) {
    grid-column: 3 !important;
    grid-row: 1 !important;
}

.layout-1plus5 .dashcam-camera-slot:nth-child(3) {
    grid-column: 3 !important;
    grid-row: 2 !important;
}

.layout-1plus5 .dashcam-camera-slot:nth-child(4) {
    grid-column: 1 !important;
    grid-row: 3 !important;
}

.layout-1plus5 .dashcam-camera-slot:nth-child(5) {
    grid-column: 2 !important;
    grid-row: 3 !important;
}

.layout-1plus5 .dashcam-camera-slot:nth-child(6) {
    grid-column: 3 !important;
    grid-row: 3 !important;
}

.layout-1plus7 { 
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: dense;
}

.layout-1plus7 .dashcam-camera-slot {
    grid-column: auto;
    grid-row: auto;
}

.layout-1plus7 .dashcam-camera-slot:nth-child(1) {
    grid-column: 1 / 4 !important;
    grid-row: 1 / 3 !important;
}

.layout-1plus7 .dashcam-camera-slot:nth-child(2) {
    grid-column: 4 !important;
    grid-row: 1 !important;
}

.layout-1plus7 .dashcam-camera-slot:nth-child(3) {
    grid-column: 4 !important;
    grid-row: 2 !important;
}

.layout-1plus7 .dashcam-camera-slot:nth-child(4) {
    grid-column: 1 !important;
    grid-row: 3 !important;
}

.layout-1plus7 .dashcam-camera-slot:nth-child(5) {
    grid-column: 2 !important;
    grid-row: 3 !important;
}

.layout-1plus7 .dashcam-camera-slot:nth-child(6) {
    grid-column: 3 !important;
    grid-row: 3 !important;
}

.layout-1plus7 .dashcam-camera-slot:nth-child(7) {
    grid-column: 4 !important;
    grid-row: 3 !important;
}

.layout-1plus7 .dashcam-camera-slot:nth-child(8) {
    display: none !important;
}

.layout-3x3 { 
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.layout-4x4 { 
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-auto-rows: 1fr;
}

/* Single Channel Special Layout */
.dashcam-camera-grid.single-channel {
    display: flex !important;
    width: 100%;
    height: 100%;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
}

.dashcam-camera-grid.single-channel .dashcam-camera-slot {
    width: 100%;
    height: 100%;
    flex: 1;
}

/* Camera Slot Styles */
.dashcam-camera-slot {
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 0;
    min-width: 0;
}

.dashcam-camera-slot.clickable {
    cursor: pointer;
}

.dashcam-camera-slot.empty {
    background: #0d1117;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b949e;
    font-size: 12px;
    text-align: center;
}

.empty-camera-message,
.empty-small-message {
    color: #666;
    text-align: center;
    padding: 20px;
}

.empty-camera-icon {
    font-size: 14px;
    margin-bottom: 10px;
}

.empty-camera-text {
    font-size: 12px;
}

.empty-small-message {
    font-size: 10px;
    padding: 10px;
}

.dashcam-camera-slot video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.ui-dialog .dashcam-camera-slot video {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

video.hidden {
    display: none;
}

video.no-signal-bg {
    background: #333;
}

/* Camera Info Bar */
.dashcam-camera-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

/* Status Indicators */
.dashcam-status {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.dashcam-status.live { 
    background: #28a745;
    color: #fff;
    animation: pulse 2s infinite;
}

.dashcam-status.error { 
    background: #dc3545;
    color: #fff;
}

.dashcam-status.loading { 
    background: #ffc107;
    color: #000;
}

.no-audio-indicator {
    color: orange;
    font-size: 10px;
}

/* Animated Loading Dots */
.loading-dots {
    display: inline-block;
}

.loading-dots span {
    animation: blink 1.4s infinite;
    animation-fill-mode: both;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 60%, 100% {
        opacity: 0.2;
    }
    20% {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Loader Overlay */
.dashcam-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #0366d6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-message .loader-spinner {
    margin: 10px auto;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(88, 166, 255, 0.3);
    border-top: 2px solid #58a6ff;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.dashcam-loader .loader-text {
    font-size: 10px;
}

.loader-progress {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0366d6, #28a745);
    border-radius: 2px;
    animation: progress-slow 60s linear infinite;
}

@keyframes progress-slow {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Camera Controls */
.dashcam-camera-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 8px;
    display: flex;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dashcam-camera-slot:hover .dashcam-camera-controls {
    opacity: 1;
}

.dashcam-ctrl-btn {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
}

.dashcam-ctrl-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.dashcam-ctrl-btn:active {
    transform: scale(0.95);
}

/* Media type button styling */
.media-type-btn {
    position: relative;
}

.media-type-btn.active {
    background: rgba(255, 68, 68, 0.9) !important;
    border-color: rgba(255, 68, 68, 1) !important;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    animation: glow 2s infinite;
    color: white !important;
}

.intercom-btn.active {
    background: rgba(255, 107, 53, 0.9) !important;
    background-color: #ff6b35 !important;
}

.monitoring-btn.active {
    background: rgba(78, 205, 196, 0.9) !important;
    background-color: #4ecdc4 !important;
}

@keyframes glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Audio Enable Overlay */
.audio-enable-container {
    position: relative;
}

.audio-enable-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

.audio-enable-icon {
    color: white;
    font-size: 32px;
    margin-bottom: 10px;
}

.audio-enable-text {
    color: white;
    font-size: 14px;
}

/* ===================================
   ERROR DISPLAYS
   =================================== */

.error-display-container {
    text-align: center;
    padding: 20px 10px;
    color: #333;
    font-family: Arial, sans-serif;
}

.error-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.error-title {
    font-size: 14px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 8px;
}

.error-vehicle {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.error-message-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.3;
}

.error-suggestion {
    font-size: 10px;
    color: #888;
    line-height: 1.3;
}

/* ===================================
   MESSAGE STATES
   =================================== */

.loading-message {
    width: 100%;
    height: 100%;
    padding: 15px 12px;
    text-align: center;
    color: #58a6ff;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    max-height: 120px;
}

.loading-message::before {
    content: '⏳';
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.8;
    display: block;
    animation: pulse 2s infinite;
}

.loading-message-text {
    margin-bottom: 5px;
}

.loading-vehicle-name {
    font-weight: bold;
}

.error-message {
    width: 100%;
    height: 100%;
    padding: 15px 12px;
    text-align: center;
    color: #ff6b6b;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    max-height: 120px;
}

.error-message::before {
    content: '⚠️';
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.8;
    display: block;
}

.no-cameras-message {
    width: 100%;
    height: 100%;
    padding: 15px 12px;
    text-align: center;
    color: #8b949e;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    max-height: 120px;
}

.no-cameras-message::before {
    content: '📹';
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.6;
    display: block;
}

.bottom-panel-message {
    width: 100%;
    height: 100%;
    padding: 15px 12px;
    text-align: center;
    color: #8b949e;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    max-height: 120px;
}

.bottom-panel-message::before {
    content: '🎥';
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.6;
    display: block;
}

.bottom-panel-retry-button {
    margin-top: 8px;
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 9px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bottom-panel-retry-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    background: linear-gradient(145deg, #ff7979, #fd79a8);
}

/* ===================================
   DIALOG UI COMPONENTS
   =================================== */

.ui-dialog.ui-dialog-blue {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    border-radius: 8px !important;
    overflow: visible !important;
}

.ui-dialog.ui-widget.ui-widget-content {
    overflow: visible !important;
}

.ui-dialog .ui-dialog-titlebar {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    color: white !important;
    padding: 12px 15px !important;
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

.ui-dialog-blue .ui-dialog-titlebar {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    color: #fff;
}

.ui-dialog-blue .ui-dialog-content {
    padding: 0 !important;
    overflow: visible !important;
}

.ui-dialog .ui-dialog-titlebar-close {
    position: absolute !important;
    right: 2px !important;
    top: 56% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background: transparent !important;
    border: none !important;
    opacity: 0.7 !important;
}

.ui-dialog .ui-dialog-titlebar-close:hover {
    opacity: 1 !important;
}

.ui-widget-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
}

.ui-dialog {
    z-index: 9999 !important;
    animation: dialogSlideIn 0.3s ease-out !important;
}

.ui-widget-overlay {
    z-index: 9998 !important;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   CONFIRMATION DIALOG
   =================================== */

#media-type-confirm-dialog {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    min-height: 180px !important;
    height: auto !important;
}

#media-type-confirm-dialog .ui-dialog-content {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    min-height: 180px !important;
    height: auto !important;
}

.dialog-confirm-content {
    padding: 40px 30px 40px 30px !important;
    text-align: center !important;
    background: white !important;
    min-height: 180px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.dialog-confirm-icon {
    font-size: 48px !important;
    margin-bottom: 25px !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.dialog-confirm-message {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #333 !important;
    margin-bottom: 10px !important;
    max-width: 450px !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    overflow: visible !important;
    min-height: 60px !important;
    height: auto !important;
    padding: 0 15px !important;
    display: block !important;
}

#media-type-confirm-dialog + .ui-dialog-buttonpane,
#media-type-confirm-dialog ~ .ui-dialog-buttonpane,
.ui-dialog .ui-dialog-buttonpane {
    position: relative !important;
    text-align: center !important;
    padding: 15px 20px !important;
    background: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
    margin: 0 !important;
    border-radius: 0 0 8px 8px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
}

#media-type-confirm-dialog + .ui-dialog-buttonpane .ui-dialog-buttonset,
#media-type-confirm-dialog ~ .ui-dialog-buttonpane .ui-dialog-buttonset,
.ui-dialog .ui-dialog-buttonset {
    float: none !important;
    text-align: center !important;
    display: inline-block !important;
    margin: 0 auto !important;
}

#media-type-confirm-dialog + .ui-dialog-buttonpane button,
#media-type-confirm-dialog ~ .ui-dialog-buttonpane button,
.ui-dialog .ui-dialog-buttonpane button,
.ui-dialog .ui-dialog-buttonpane .ui-button {
    display: inline-block !important;
    margin: 0 5px !important;
    padding: 8px 24px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    min-width: 80px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    position: relative !important;
}

#media-type-confirm-dialog + .ui-dialog-buttonpane button:first-child,
#media-type-confirm-dialog ~ .ui-dialog-buttonpane button:first-child,
.ui-dialog .ui-dialog-buttonpane button:first-child {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    color: #495057 !important;
}

#media-type-confirm-dialog + .ui-dialog-buttonpane button:first-child:hover,
#media-type-confirm-dialog ~ .ui-dialog-buttonpane button:first-child:hover,
.ui-dialog .ui-dialog-buttonpane button:first-child:hover {
    background: #f8f9fa !important;
    border-color: #adb5bd !important;
}

#media-type-confirm-dialog + .ui-dialog-buttonpane button:last-child,
#media-type-confirm-dialog ~ .ui-dialog-buttonpane button:last-child,
.ui-dialog .ui-dialog-buttonpane button:last-child {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    border: 1px solid #0056b3 !important;
    color: white !important;
    font-weight: 600 !important;
}

#media-type-confirm-dialog + .ui-dialog-buttonpane button:last-child:hover,
#media-type-confirm-dialog ~ .ui-dialog-buttonpane button:last-child:hover,
.ui-dialog .ui-dialog-buttonpane button:last-child:hover {
    background: linear-gradient(135deg, #0056b3, #004494) !important;
    border-color: #004494 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3) !important;
}

#media-type-confirm-dialog + .ui-dialog-buttonpane button:focus,
#media-type-confirm-dialog ~ .ui-dialog-buttonpane button:focus,
.ui-dialog .ui-dialog-buttonpane button:focus {
    outline: 2px solid #80bdff !important;
    outline-offset: 2px !important;
}

.ui-button.ui-widget.ui-state-default.ui-corner-all.ui-button-text-only {
    background: none !important;
    border: none !important;
}

.dashcam-confirm-dialog .ui-dialog-buttonpane {
    position: relative !important;
    margin-top: 0 !important;
    border-top: 1px solid #dee2e6 !important;
}

.ui-dialog .ui-dialog-content + .ui-dialog-buttonpane {
    position: relative !important;
    clear: both !important;
    margin-top: 0 !important;
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */

@media (max-width: 1920px) {
    .dashcam-camera-info {
        font-size: 10px !important;
    }
    .dashcam-camera-controls button {
        padding: 2px !important;
    }
    .dashcam-grid-buttons button svg {
        width: 14px !important;
        height: 14px !important;
    }
}

@media (max-width: 768px) {
    .footer-video-grid {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 5px;
        max-height: 85px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
    
    .footer-video-item {
        border-radius: 6px;
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        height: 78px !important;
        min-height: 78px !important;
        max-height: 78px !important;
    }
    
    .footer-controls {
        padding: 4px 8px;
        gap: 6px;
        min-height: 24px;
    }
    
    .footer-all-cams-button {
        padding: 3px 8px;
        font-size: 9px;
    }

    .vehicle-status-btn {
        min-width: 50px;
        height: 20px;
        font-size: 8px;
        padding: 0 4px;
    }
    
    #media-type-confirm-dialog + .ui-dialog-buttonpane,
    #media-type-confirm-dialog ~ .ui-dialog-buttonpane,
    .ui-dialog .ui-dialog-buttonpane {
        padding: 12px 15px !important;
    }
    
    #media-type-confirm-dialog + .ui-dialog-buttonpane button,
    #media-type-confirm-dialog ~ .ui-dialog-buttonpane button,
    .ui-dialog .ui-dialog-buttonpane button {
        padding: 6px 18px !important;
        font-size: 13px !important;
        min-width: 70px !important;
    }
}

@media (max-width: 480px) {
    .footer-video-grid {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 3px;
        padding: 4px;
        max-height: 70px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
    
    .footer-video-item {
        border-radius: 5px;
        width: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        height: 65px !important;
        min-height: 65px !important;
        max-height: 65px !important;
    }
    
    .footer-camera-label {
        font-size: 7px;
        padding: 2px 3px;
        letter-spacing: 0.5px;
    }
    
    #bottom_panel_dashcam {
        max-height: 120px !important;
    }

    .vehicle-status-btn {
        min-width: 45px;
        height: 18px;
        font-size: 7px;
        padding: 0 3px;
        margin-left: 6px;
    }
    
    #media-type-confirm-dialog + .ui-dialog-buttonpane,
    #media-type-confirm-dialog ~ .ui-dialog-buttonpane,
    .ui-dialog .ui-dialog-buttonpane {
        padding: 10px 12px !important;
    }
    
    #media-type-confirm-dialog + .ui-dialog-buttonpane button,
    #media-type-confirm-dialog ~ .ui-dialog-buttonpane button,
    .ui-dialog .ui-dialog-buttonpane button {
        padding: 5px 15px !important;
        font-size: 12px !important;
        min-width: 60px !important;
    }
}

/* Layout-specific responsive adjustments */
.layout-1plus5 .dashcam-camera-slot:not(:first-child) .dashcam-camera-info,
.layout-1plus7 .dashcam-camera-slot:not(:first-child) .dashcam-camera-info {
    font-size: 8px;
    padding: 2px 4px;
}

.layout-1plus5 .dashcam-camera-slot:not(:first-child) .dashcam-status,
.layout-1plus7 .dashcam-camera-slot:not(:first-child) .dashcam-status {
    font-size: 7px;
    padding: 1px 2px;
}

.layout-1plus5 .dashcam-camera-slot:not(:first-child) .dashcam-camera-controls,
.layout-1plus7 .dashcam-camera-slot:not(:first-child) .dashcam-camera-controls {
    display: none;
}

/* Accessibility improvements */
.dashcam-ctrl-btn:focus,
.dashcam-grid-btn:focus,
.vehicle-status-btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
    .dashcam-camera-slot {
        border-width: 2px;
    }
    
    .dashcam-status {
        font-weight: 700;
        border: 1px solid currentColor;
    }
    
    .dashcam-ctrl-btn {
        border-width: 2px;
    }
}

/* Animation performance optimization */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .dashcam-status.live {
        animation: none;
    }
    
    .media-type-btn.active {
        animation: none;
    }
}

/* Fullscreen functionality styles - PROFESSIONAL WINDOWS-STYLE POSITIONING */
.dashcam-fullscreen-btn, .dashcam-restore-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.6;
    transition: all 0.2s;
    border-radius: 3px;
}

.dashcam-fullscreen-btn:hover, .dashcam-restore-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Position buttons with proper spacing from close button (X) */
.dashcam-fullscreen-btn {
    right: 48px;  /* Positioned left of close button with proper spacing */
}

.dashcam-restore-btn {
    right: 48px;  /* Same position as fullscreen button */
    display: none;
}

/* Ensure close button has consistent positioning */
.ui-dialog-titlebar-close {
    right: 8px !important;  /* Standard close button position */
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Icon sizing for crisp appearance */
.dashcam-fullscreen-btn svg, .dashcam-restore-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Fullscreen dialog styles */
.ui-dialog.dashcam-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    z-index: 10000 !important;
    border-radius: 0 !important;
}

.ui-dialog.dashcam-fullscreen .ui-dialog-content {
    height: calc(100vh - 40px) !important;
    max-height: calc(100vh - 40px) !important;
    padding: 0 !important;
}

.ui-dialog.dashcam-fullscreen .dashcam-dialog-content {
    height: 100% !important;
}

.ui-dialog.dashcam-fullscreen .dashcam-camera-grid {
    height: calc(100% - 40px) !important;
}

.ui-dialog.dashcam-fullscreen .dashcam-camera-slot video {
    object-fit: contain !important;
}

/* Toggle button visibility based on state */
.ui-dialog.dashcam-fullscreen .dashcam-fullscreen-btn {
    display: none;
}

.ui-dialog.dashcam-fullscreen .dashcam-restore-btn {
    display: flex;  /* Use flex to maintain centering */
}

/* Layout specific styles for fullscreen mode */
.ui-dialog.dashcam-fullscreen .layout-1x2 .dashcam-camera-slot {
    height: calc(50% - 2px) !important;
}

.ui-dialog.dashcam-fullscreen .layout-2x2 .dashcam-camera-slot {
    height: calc(50% - 2px) !important;
    width: calc(50% - 2px) !important;
}

.ui-dialog.dashcam-fullscreen .layout-3x3 .dashcam-camera-slot {
    height: calc(33.333% - 2px) !important;
    width: calc(33.333% - 2px) !important;
}

.ui-dialog.dashcam-fullscreen .layout-4x4 .dashcam-camera-slot {
    height: calc(25% - 2px) !important;
    width: calc(25% - 2px) !important;
}

.ui-dialog.dashcam-fullscreen .layout-1plus5 .dashcam-camera-slot:first-child {
    width: calc(70% - 2px) !important;
    height: calc(70% - 2px) !important;
}

.ui-dialog.dashcam-fullscreen .layout-1plus5 .dashcam-camera-slot:not(:first-child) {
    width: calc(30% - 2px) !important;
    height: calc(35% - 2px) !important;
}

.ui-dialog.dashcam-fullscreen .layout-1plus7 .dashcam-camera-slot:first-child {
    width: calc(75% - 2px) !important;
    height: calc(75% - 2px) !important;
}

.ui-dialog.dashcam-fullscreen .layout-1plus7 .dashcam-camera-slot:not(:first-child) {
    width: calc(25% - 2px) !important;
    height: calc(25% - 2px) !important;
}

.ui-dialog.dashcam-fullscreen .single-channel .dashcam-camera-slot {
    width: 100% !important;
    height: 100% !important;
}

/* Reduce controls opacity in fullscreen for less distraction */
.ui-dialog.dashcam-fullscreen .dashcam-camera-controls {
    opacity: 0.3;
}

.ui-dialog.dashcam-fullscreen .dashcam-camera-controls:hover {
    opacity: 1;
}

/* ===================================
   CCTV STYLES - MATCHING DASHCAM THEME
   Beautiful dark theme with red/pink accents like dashcam
   WHITE SELECTION BACKGROUND WITH BLUE BORDER
   COMPLETE WITH PROPER BORDERS
   =================================== */

/* ===================================
   LEFT PANEL - CCTV TREE
   =================================== */

#side_panel_cctv_list_grid {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f8f9fa;
    padding: 0;
    margin: 0;
    position: relative;
}

#side_panel_cctv_list_grid .cctv_location_tree {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: #333;
    user-select: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

#side_panel_cctv_list_grid .cctv_location_tree ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#side_panel_cctv_list_grid .cctv_location_tree > ul > li {
    margin: 0;
    padding: 0;
    width: 100%;
    border-bottom: 1px solid #e1e4e8;
    position: relative;
}

#side_panel_cctv_list_grid .cctv_location_item {
    width: 100%;
    height: 42px;
    padding: 0 15px;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: #fff;
    transition: background 0.15s ease;
    position: relative;
    box-sizing: border-box;
}

#side_panel_cctv_list_grid .cctv_location_item:hover {
    background: #f6f8fa;
}

#side_panel_cctv_list_grid .cctv_location_item.selected {
    background: #fff !important;
    color: #333;
    border-left: 4px solid #2196f3;
    box-shadow: 0 1px 3px rgba(33, 150, 243, 0.15);
    position: relative;
}

#side_panel_cctv_list_grid .cctv_location_item.selected::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #2196f3, #1976d2);
}

#side_panel_cctv_list_grid .cctv_location_item.selected * {
    background: transparent !important;
}

#side_panel_cctv_list_grid .cctv_location_arrow {
    width: 0;
    height: 0;
    border: 4px solid transparent;
    border-left: 6px solid #586069;
    margin-right: 8px;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

#side_panel_cctv_list_grid .cctv_location_arrow.expanded {
    transform: rotate(90deg);
}

#side_panel_cctv_list_grid .cctv_location_item.selected .cctv_location_arrow {
    border-left-color: #1976d2;
}

#side_panel_cctv_list_grid .cctv_location_icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
    vertical-align: middle;
}

#side_panel_cctv_list_grid .cctv_location_item.selected .cctv_location_icon {
    background: transparent !important;
}

#side_panel_cctv_list_grid .cctv_location_name {
    flex: 1;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#side_panel_cctv_list_grid .cctv_location_item.selected .cctv_location_name {
    font-weight: 600;
    color: #1565c0;
}

#side_panel_cctv_list_grid .cctv_location_address {
    font-size: 11px;
    color: #888;
    margin-left: 5px;
}

#side_panel_cctv_list_grid .cctv_location_item.selected .cctv_location_address {
    color: #1976d2;
}

/* FIXED: Proper borders for expanded cameras section - COPIED FROM WORKING DASHCAM */
#side_panel_cctv_list_grid .cctv_cameras {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    display: none;
}

#side_panel_cctv_list_grid .cctv_cameras.expanded {
    display: block;
}

#side_panel_cctv_list_grid .cctv_camera_item {
    width: 100%;
    height: 36px;
    padding: 0 15px 0 35px;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: transparent;
    transition: background 0.15s ease;
    border: none;
    box-sizing: border-box;
    color: #586069;
    border-bottom: 1px solid #f0f0f0;
}

#side_panel_cctv_list_grid .cctv_camera_item:hover {
    background: #f6f8fa;
}

#side_panel_cctv_list_grid .cctv_camera_item.active {
    background: #28a745;
    color: #fff;
}

#side_panel_cctv_list_grid .cctv_camera_item.offline {
    opacity: 0.5;
    cursor: not-allowed;
}

#side_panel_cctv_list_grid .cctv_camera_icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    vertical-align: middle;
}

#side_panel_cctv_list_grid .cctv_camera_item.active .cctv_camera_icon {
    filter: brightness(0) invert(1);
}

/* Scrollbar styling */
#side_panel_cctv_list_grid::-webkit-scrollbar {
    width: 6px;
}

#side_panel_cctv_list_grid::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#side_panel_cctv_list_grid::-webkit-scrollbar-thumb {
    background: #c1c4cd;
    border-radius: 3px;
}

#side_panel_cctv_list_grid::-webkit-scrollbar-thumb:hover {
    background: #959da5;
}

/* ===================================
   BOTTOM PANEL - CCTV (MATCHING DASHCAM)
   =================================== */

#bottom_panel_cctv {
    width: 100%;
    height: 100%;
    padding: 0 !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden !important;
    max-height: 150px !important;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

#bottom_panel_cctv::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(253, 121, 168, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

#bottom_panel_cctv .cctv-panel-container {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
    max-height: 150px !important;
    position: relative;
    z-index: 1;
    overflow: hidden !important;
}

.cctv-footer-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    padding: 0;
    margin: 0;
    max-height: 150px !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

/* Beautiful controls bar - matching dashcam */
.cctv-footer-controls {
    padding: 6px 12px;
    background: linear-gradient(90deg, 
        rgba(0,0,0,0.8) 0%, 
        rgba(30,30,50,0.9) 50%, 
        rgba(0,0,0,0.8) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
    min-height: 28px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.cctv-footer-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.03) 50%, 
        transparent 100%);
    animation: cctv-shimmer 3s infinite;
}

@keyframes cctv-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.cctv-footer-controls button {
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 3px 10px rgba(255, 107, 107, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.cctv-footer-controls button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.2) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.cctv-footer-controls button:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(255, 107, 107, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    background: linear-gradient(145deg, #ff7979, #fd79a8);
}

.cctv-footer-controls button:hover::before {
    left: 100%;
}

.cctv-footer-controls span {
    font-size: 10px;
    color: #a8b3c5;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    background: rgba(255,255,255,0.05);
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

/* Video grid - matching dashcam */
.cctv-footer-grid {
    flex: 1;
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 6px;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    position: relative;
    max-height: 100px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

.cctv-footer-item {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16/9;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 10px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 0 0 1px rgba(255,255,255,0.05);
    cursor: pointer;
    min-height: 35px;
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: 120px !important;
    box-sizing: border-box;
}

.cctv-footer-item:hover {
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.4),
        0 0 0 2px rgba(255, 107, 107, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.cctv-footer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 107, 107, 0.05) 0%, 
        transparent 50%, 
        rgba(253, 121, 168, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.cctv-footer-item:hover::before {
    opacity: 1;
}

.cctv-footer-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.9) 0%, 
        rgba(0,0,0,0.7) 50%, 
        transparent 100%);
    color: white;
    padding: 1px 3px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(5px);
}

.cctv-footer-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.cctv-footer-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #0d1117 0%, #1a1a2e 100%);
}

/* ===================================
   DIALOG STYLES - MATCHING DASHCAM
   =================================== */

.ui-dialog-cctv .ui-dialog-titlebar {
    background: #24292e;
    color: #fff;
}

.ui-dialog-cctv .ui-dialog-content {
    padding: 0 !important;
    overflow: hidden !important;
}

.cctv-dialog-content {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cctv-dialog-header {
    background: #24292e;
    padding: 10px 15px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cctv-grid-buttons {
    display: flex;
    gap: 5px;
}

.cctv-grid-btn {
    width: 36px;
    height: 32px;
    background: transparent;
    border: 1px solid #444d56;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    color: white;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.cctv-grid-btn:hover {
    background: #444d56;
    border-color: #586069;
}

.cctv-grid-btn.active {
    background: #0366d6;
    border-color: #0366d6;
}

.cctv-grid-btn.active:hover {
    background: #0451a5;
    border-color: #0451a5;
}

.cctv-grid-btn svg,
.cctv-ctrl-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    vertical-align: middle;
}

.cctv-ctrl-btn svg {
    width: 14px;
    height: 14px;
}

/* Camera Grid Container */
.cctv-camera-grid {
    width: 100%;
    height: 100%;
    flex: 1;
    display: grid;
    gap: 1px;
    background: #000;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Grid Layouts */
.cctv-layout-single { 
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.cctv-layout-2x2 { 
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.cctv-layout-1plus5 { 
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: dense;
}

.cctv-layout-1plus5 .cctv-camera-slot {
    grid-column: auto;
    grid-row: auto;
}

.cctv-layout-1plus5 .cctv-camera-slot:first-child {
    grid-column: 1 / 3 !important;
    grid-row: 1 / 3 !important;
}

.cctv-layout-1plus5 .cctv-camera-slot:nth-child(2) {
    grid-column: 3 !important;
    grid-row: 1 !important;
}

.cctv-layout-1plus5 .cctv-camera-slot:nth-child(3) {
    grid-column: 3 !important;
    grid-row: 2 !important;
}

.cctv-layout-1plus5 .cctv-camera-slot:nth-child(4) {
    grid-column: 1 !important;
    grid-row: 3 !important;
}

.cctv-layout-1plus5 .cctv-camera-slot:nth-child(5) {
    grid-column: 2 !important;
    grid-row: 3 !important;
}

.cctv-layout-1plus5 .cctv-camera-slot:nth-child(6) {
    grid-column: 3 !important;
    grid-row: 3 !important;
}

.cctv-layout-1plus7 { 
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: dense;
}

.cctv-layout-1plus7 .cctv-camera-slot {
    grid-column: auto;
    grid-row: auto;
}

.cctv-layout-1plus7 .cctv-camera-slot:nth-child(1) {
    grid-column: 1 / 4 !important;
    grid-row: 1 / 3 !important;
}

.cctv-layout-1plus7 .cctv-camera-slot:nth-child(2) {
    grid-column: 4 !important;
    grid-row: 1 !important;
}

.cctv-layout-1plus7 .cctv-camera-slot:nth-child(3) {
    grid-column: 4 !important;
    grid-row: 2 !important;
}

.cctv-layout-1plus7 .cctv-camera-slot:nth-child(4) {
    grid-column: 1 !important;
    grid-row: 3 !important;
}

.cctv-layout-1plus7 .cctv-camera-slot:nth-child(5) {
    grid-column: 2 !important;
    grid-row: 3 !important;
}

.cctv-layout-1plus7 .cctv-camera-slot:nth-child(6) {
    grid-column: 3 !important;
    grid-row: 3 !important;
}

.cctv-layout-1plus7 .cctv-camera-slot:nth-child(7) {
    grid-column: 4 !important;
    grid-row: 3 !important;
}

.cctv-layout-1plus7 .cctv-camera-slot:nth-child(8) {
    display: none !important;
}

.cctv-layout-3x3 { 
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.cctv-layout-4x4 { 
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
}

/* Camera Slot Styles */
.cctv-camera-slot {
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 0;
    min-width: 0;
}

.cctv-camera-slot.empty {
    background: #0d1117;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b949e;
    font-size: 12px;
    text-align: center;
}

.cctv-camera-slot video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Camera Info Bar */
.cctv-camera-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

/* Status Indicators */
.cctv-status {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.cctv-status.cctv-live { 
    background: #28a745;
    color: #fff;
}

.cctv-status.cctv-error { 
    background: #dc3545;
    color: #fff;
}

.cctv-status.cctv-loading { 
    background: #ffc107;
    color: #000;
}

/* Animated Loading Dots */
.cctv-loading-dots {
    display: inline-block;
}

.cctv-loading-dots span {
    animation: cctv-blink 1.4s infinite;
    animation-fill-mode: both;
}

.cctv-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.cctv-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes cctv-blink {
    0%, 60%, 100% {
        opacity: 0.2;
    }
    20% {
        opacity: 1;
    }
}

/* Loader Overlay */
.cctv-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.cctv-loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #0366d6;
    border-radius: 50%;
    animation: cctv-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes cctv-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cctv-loader-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.cctv-loader-progress {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.cctv-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0366d6, #28a745);
    border-radius: 2px;
    animation: cctv-progress-slow 60s linear infinite;
}

@keyframes cctv-progress-slow {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Camera Controls */
.cctv-camera-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 8px;
    display: flex;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cctv-camera-slot:hover .cctv-camera-controls {
    opacity: 1;
}

.cctv-ctrl-btn {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
}

.cctv-ctrl-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.cctv-ctrl-btn:active {
    transform: scale(0.95);
}

/* Message states - Beautiful like dashcam */
.cctv-loading-message {
    width: 100%;
    height: 100%;
    padding: 15px 12px;
    text-align: center;
    color: #58a6ff;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    max-height: 120px;
}

.cctv-loading-message::before {
    content: '⏳';
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.8;
    display: block;
    animation: cctv-pulse 2s infinite;
}

@keyframes cctv-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cctv-loading-message .cctv-loader-spinner {
    margin: 8px auto 10px;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(88, 166, 255, 0.2);
    border-top: 2px solid #58a6ff;
    border-radius: 50%;
    animation: cctv-spin 0.8s linear infinite;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.3);
}

.cctv-error-message {
    width: 100%;
    height: 100%;
    padding: 15px 12px;
    text-align: center;
    color: #ff6b6b;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    max-height: 120px;
}

.cctv-error-message::before {
    content: '⚠️';
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.8;
    display: block;
}

.cctv-no-cameras-message {
    width: 100%;
    height: 100%;
    padding: 15px 12px;
    text-align: center;
    color: #8b949e;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    max-height: 120px;
}

.cctv-no-cameras-message::before {
    content: '📹';
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.6;
    display: block;
}

.cctv-bottom-panel-message {
    width: 100%;
    height: 100%;
    padding: 15px 12px;
    text-align: center;
    color: #8b949e;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    max-height: 120px;
}

.cctv-bottom-panel-message::before {
    content: '🎥';
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.6;
    display: block;
}

.cctv-error-message button, .cctv-no-cameras-message button {
    margin-top: 8px;
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 9px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cctv-error-message button:hover, .cctv-no-cameras-message button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    background: linear-gradient(145deg, #ff7979, #fd79a8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cctv-footer-grid {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 3px;
        padding: 4px;
        max-height: 80px;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
    }
    
    .cctv-footer-item {
        border-radius: 4px;
        min-height: 30px;
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        flex-basis: 100px !important;
    }
    
    .cctv-footer-controls {
        padding: 4px 8px;
        gap: 6px;
        min-height: 24px;
    }
    
    .cctv-footer-controls button {
        padding: 3px 8px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .cctv-footer-grid {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 2px;
        padding: 3px;
        max-height: 60px;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
    }
    
    .cctv-footer-item {
        border-radius: 3px;
        min-height: 25px;
        width: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        flex-basis: 80px !important;
    }
    
    .cctv-footer-label {
        font-size: 6px;
        padding: 1px 2px;
    }
    
    #bottom_panel_cctv {
        max-height: 120px !important;
    }
}

/* Small camera layouts */
.cctv-layout-1plus5 .cctv-camera-slot:not(:first-child) .cctv-camera-info,
.cctv-layout-1plus7 .cctv-camera-slot:not(:first-child) .cctv-camera-info,
.cctv-layout-3x3 .cctv-camera-info,
.cctv-layout-4x4 .cctv-camera-info {
    font-size: 8px;
    padding: 2px 4px;
}

.cctv-layout-1plus5 .cctv-camera-slot:not(:first-child) .cctv-status,
.cctv-layout-1plus7 .cctv-camera-slot:not(:first-child) .cctv-status,
.cctv-layout-3x3 .cctv-status,
.cctv-layout-4x4 .cctv-status {
    font-size: 7px;
    padding: 1px 2px;
}

.cctv-layout-3x3 .cctv-camera-slot.empty,
.cctv-layout-4x4 .cctv-camera-slot.empty {
    font-size: 8px;
}

/* Hide controls on small cameras */
.cctv-layout-1plus5 .cctv-camera-slot:not(:first-child) .cctv-camera-controls,
.cctv-layout-1plus7 .cctv-camera-slot:not(:first-child) .cctv-camera-controls,
.cctv-layout-4x4 .cctv-camera-controls {
    display: none;
}