.topbar-container{z-index:1}.topbar-container:hover{z-index:2000}.dashboard-header{display:flex;align-items:center;margin:8px;background-color:#fff;padding:6px 16px;border-radius:10px}.dashboard-title{font-weight:700;font-size:16px;margin-right:auto}.status-indicator{display:flex;align-items:center;padding:4px 10px;border-radius:20px;margin-right:16px;background-color:color-mix(in srgb,currentColor 12%,#fff);border:1px solid color-mix(in srgb,currentColor 22%,#fff)}.status-dot{height:8px;width:8px;border-radius:50%;margin-right:6px;flex-shrink:0}.status-text{font-size:13px}.icons23{display:flex;align-items:center;gap:6px}.iconffd{position:relative;margin-left:0;cursor:pointer;line-height:0}.header-action-icon{height:22px;width:22px;display:block;color:inherit}.header-profile-icon{height:32px;width:32px;display:block;object-fit:cover;border-radius:50%}.dashboard-profile-menu{display:none;position:absolute;top:calc(100% + 8px);left:auto;right:0;background-color:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 8px 24px rgba(15,23,42,.12);overflow:hidden;z-index:1100;min-width:210px;padding:6px;font-size:14px;line-height:1.4;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;color:#374151}.dashboard-profile-menu.show,.profile-icon.is-open .dashboard-profile-menu{display:block}.dashboard-profile-menu__item{display:flex;align-items:center;gap:10px;padding:10px 12px;text-decoration:none;color:#374151;background:transparent;border-radius:8px;white-space:nowrap;cursor:pointer;transition:background-color .15s ease,color .15s ease}.dashboard-profile-menu__item:hover,.dashboard-profile-menu__item:focus{background-color:color-mix(in srgb,currentColor 8%,#fff);color:inherit;outline:none}.dashboard-profile-menu__item--danger{color:#dc2626}.dashboard-profile-menu__item--danger:hover,.dashboard-profile-menu__item--danger:focus{background-color:#fef2f2;color:#b91c1c}.dashboard-profile-menu__icon{width:18px;height:18px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;color:#6b7280}.dashboard-profile-menu__item:hover .dashboard-profile-menu__icon,.dashboard-profile-menu__item:focus .dashboard-profile-menu__icon{color:currentColor}.dashboard-profile-menu__icon .icon{font-size:16px;line-height:1;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center}.dashboard-profile-menu__icon .icon.logout{font-size:14px;width:14px;height:14px}.dashboard-profile-menu__icon .icon.logout:before{font-size:14px;line-height:1}.dashboard-profile-menu__label{flex:1;font-weight:500;font-size:14px;line-height:1.35}.dashboard-profile-menu__divider{height:1px;margin:4px 8px;background:#e5e7eb}.hidden-tabs{display:none}.topbar-container{display:flex;align-items:center;padding:10px;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.1);position:relative;margin-right:0;border-radius:10px 0 0 0;margin-left:9px}.topbar-container *{position:relative}.dropdownwew{margin-right:10px;border:1px solid #ccc;border-radius:4px;width:170;flex-grow:1;display:inline-block}.dropdown-toggle{padding:10px;border:none;background:0 0;width:100%}.dropdown-menu{font-size:17px;border:1px solid #ccc;border-radius:4px;width:200px;background-color:#fff;display:none;position:absolute;z-index:1000}.dropdown-menu li a{padding:10px;display:block;text-decoration:none;color:#000}.dropdown-menu li a:hover{background-color:#f5f5f5}.vehicle-status-container{display:flex;justify-content:space-between;margin:20px 8px}.vehicle-status-box{width:32%;border:1px solid #ccc;border-radius:5px;background-color:#f9f9f9}.box-header{padding:10px;border-bottom:1px solid #ccc}.box-header h3{margin:0;font-size:16px}.box-tabs ul{display:flex;list-style:none;padding:0;margin:0;background-color:#f1f1f1;border-bottom:1px solid #ccc}.box-tabs ul li{flex:1;text-align:center;padding:10px;cursor:pointer}.box-tabs ul li.active{background-color:#fff;border-bottom:2px solid #007bff}.box-content{padding:10px}.vehicle-item{display:flex;align-items:center}.vehicle-item img{width:40px;height:40px;border-radius:50%;margin-right:10px}.vehicle-info p{margin:0}#objects_tab .objects-status-group{margin-bottom:6px}#objects_tab .objects-status-group .group-heading{border-radius:6px;color:#fff;padding:10px 12px;border:none}#objects_tab .objects-status-group .group-heading:hover{filter:brightness(1.05)}#objects_tab .objects-status-group .group-title{color:#fff;font-weight:600}#objects_tab .objects-status-group .group-title .count{opacity:.95}#objects_tab .objects-status-group .status-group-icon{display:inline-block;vertical-align:middle;margin-right:8px}#objects_tab .objects-status-group .status-group-orb{width:14px;height:14px;border-radius:50%;box-shadow:0 0 6px rgba(255,255,255,.65)}#objects_tab .objects-status-group .status-group-icon-all .icon{filter:brightness(0) invert(1)}#objects_tab .objects-status-group .checkbox label:before,#objects_tab .objects-status-group .checkbox input:checked+label:before{border-color:rgba(255,255,255,.85)}#objects_tab .objects-status-group .group-body{background:#fff}#objects_tab .objects-status-group .group-title:after{color:#fff}

.page__main{position:relative;display:flex;flex-direction:column;height:100vh;min-height:100vh;overflow:hidden}
.page__nav,.nave{position:relative;z-index:1000}
#map-workspace{position:relative;flex:1 1 auto;min-height:0;margin:8px 8px 0;z-index:2}
#mapWrap{position:absolute;inset:0;overflow:hidden}
#map{margin:0!important;left:0!important;right:0!important;top:0!important;bottom:0!important}
#sidebar{left:0!important;margin-left:0!important;margin-top:0!important;z-index:500!important;bottom:0!important;height:auto!important;max-height:none!important}
#footer1.map-page-footer,#footer1{display:none!important}
#bottombar{
  left:0;
  right:0;
  width:auto;
  max-width:100%;
  display:flex;
  justify-content:flex-end;
  align-items:flex-end;
  background:transparent;
  pointer-events:none;
}
#bottombar>*{pointer-events:auto}
#widgets{
  float:none;
  width:fit-content;
  max-width:100%;
  margin-left:auto;
  position:relative;
  z-index:997;
}
#bottombar-history{position:absolute;bottom:0;left:0;right:0;width:100%!important;z-index:998}
#map-controls{top:12px;right:14px;bottom:auto;text-align:right;pointer-events:none}
#map-controls>div{pointer-events:auto}
#map-controls .btn-group-vertical{margin-bottom:8px;box-shadow:0 2px 10px rgba(0,0,0,.12);border-radius:8px;overflow:hidden}
#map-controls .btn{width:36px;height:36px;line-height:36px;border:0}
.dashboard-header{flex-shrink:0;margin:8px 8px 0;position:relative;z-index:1}
#history-content{display:block!important}
#sidebar .close-button{display:none!important}
.nav-sidebar-toggle{margin-top:0!important;margin-bottom:0!important}

/* ── Sidebar navigation ── */
.nave{
  --nav-accent:#00A99D;
  --nav-text:#374151;
  --nav-text-muted:#6b7280;
  --nav-hover-bg:color-mix(in srgb,var(--nav-accent) 10%,#fff);
  --nav-active-bg:color-mix(in srgb,var(--nav-accent) 14%,#fff);
  display:flex;
  flex-direction:column;
  height:100vh;
  width:64px;
  border-right:1px solid #e5e7eb;
  box-shadow:2px 0 16px rgba(15,23,42,.06)!important;
  transition:width .22s ease,box-shadow .22s ease!important;
  overflow:hidden;
}
.nave:hover{width:240px!important;overflow-y:auto;overflow-x:hidden}
.nave .nav__logo{margin:10px 0 6px;padding:0;overflow:hidden}
.nave .nav__logo .nav__link{padding:6px 0 6px 12px;display:flex;justify-content:flex-start;overflow:hidden}
.nave:hover .nav__logo .nav__link{justify-content:center;padding-left:6px}
.nave .nav__link-favicon.height50,.nave .nav__link-logo.height50{height:50px!important;width:auto!important;max-width:none!important;max-height:none!important;flex-shrink:0;display:block}
.nave .nav-sidebar-toggle{padding:4px 12px!important;margin-bottom:4px!important;cursor:pointer;opacity:.65;transition:opacity .15s ease}
.nave .nav-sidebar-toggle:hover{opacity:1}
.nave .navigation-accordion{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:4px 0 8px;list-style:none}
.nave .nav__list_bottom{margin-top:auto;padding:8px 0 12px;border-top:1px solid #e5e7eb;list-style:none}
.nave .nav__item{list-style:none}
.nave .nav__link{
  display:flex!important;
  align-items:center;
  gap:12px;
  padding:10px 12px!important;
  margin:2px 8px;
  border-radius:8px;
  min-height:44px;
  color:var(--nav-text)!important;
  text-decoration:none!important;
  transition:background-color .18s ease,color .18s ease;
  position:relative;
}
/* Collapsed: pin icon left, clip labels from the right (original behaviour) */
.nave:not(:hover) .nav__link{
  padding:10px 0 10px 18px!important;
  margin:2px 0!important;
  gap:0!important;
  overflow:hidden;
  border-radius:0;
}
.nave:not(:hover) .nav__link .icon{
  flex-shrink:0;
  position:relative;
  z-index:1;
}
.nave:not(:hover) .nav__link-txt{
  position:absolute!important;
  left:64px!important;
  flex:none!important;
  width:max-content!important;
  max-width:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  pointer-events:none;
}
.nave:not(:hover) .nav__chevron{display:none!important}
.nave:not(:hover) .nav__logo .nav__link{
  justify-content:flex-start!important;
  padding-left:12px!important;
  overflow:hidden;
}
.nave:not(:hover) .nav-sidebar-toggle{
  padding-left:18px!important;
  padding-right:0!important;
}
.nave .nav__link:hover,.nave .nav__link:focus{
  background:var(--nav-hover-bg)!important;
  color:var(--nav-text)!important;
  outline:none;
}
.nave .nav__link.is-active,.nave .nav__item.is-active>.nav__link{
  background:var(--nav-active-bg)!important;
  color:#0f766e!important;
  font-weight:600;
}
.nave .nav__link .icon{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  width:22px;
  min-width:22px;
  height:22px;
  font-size:18px;
  line-height:1;
  color:var(--nav-text-muted);
  flex-shrink:0;
}
.nave .nav__link:hover .icon,.nave .nav__link.is-active .icon,.nave .nav__item.is-active>.nav__link .icon{color:var(--nav-accent)}
.nave .nav__link .icon.logout{font-size:15px;width:20px;min-width:20px}
.nave .nav__link .icon.logout:before{font-size:15px;line-height:1}
.nave .nav__link-txt{
  position:static!important;
  left:auto!important;
  flex:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:14px;
  font-weight:500;
  line-height:1.35;
  color:inherit!important;
}
.nave .nav__chevron{
  margin-left:auto;
  width:8px;
  height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(-45deg);
  opacity:.45;
  flex-shrink:0;
  transition:transform .2s ease,opacity .2s ease;
}
.nave .nav__item.is-open>.sub-btn .nav__chevron{transform:rotate(45deg);opacity:.85}
.nave .sub-menu{
  display:none;
  padding:4px 0 6px;
  margin:0 8px 4px 20px;
  border-left:2px solid color-mix(in srgb,var(--nav-accent) 40%,#e5e7eb);
  background:#f8fafc;
  border-radius:0 8px 8px 0;
}
.nave .sub-menu .sub-item.nav__link{
  padding:8px 10px 8px 14px!important;
  min-height:40px;
  margin:1px 4px;
  gap:10px;
}
.nave .sub-menu .sub-item .icon{width:18px;min-width:18px;height:18px;font-size:15px}
.nave .sub-menu .sub-item .nav__link-txt{font-size:13px;font-weight:400;color:var(--nav-text-muted)!important}
.nave .sub-menu .sub-item.nav__link:hover .nav__link-txt{color:var(--nav-text)!important}
.nave .nav__item--logout .nav__link{color:#dc2626!important}
.nave .nav__item--logout .nav__link .icon{color:#dc2626!important}
.nave .nav__item--logout .nav__link:hover{background:#fef2f2!important;color:#b91c1c!important}
.nave .sub-btn .dropdown{display:none!important}
/* Legacy misspelled icon aliases */
.nave .icon.servicess:before{content:"\e936";font-family:icomoon!important}
.nave .icon.device_plan:before{content:"\e92a";font-family:icomoon!important}
.nave .icon.reportss:before{content:"\e943";font-family:icomoon!important}
.nave .icon.tool:before{content:"\e937";font-family:icomoon!important}
.nave .icon.routess:before{content:"\e94f";font-family:icomoon!important}
.nave .icon.geofencing:before{content:"\e92b";font-family:icomoon!important}
.nave .icon.language:before{content:"\f0ac";font-family:FontAwesome!important}
@media (prefers-reduced-motion:reduce){
  .nave,.nave .nav__link,.nave .nav__chevron{transition:none!important}
}

/* ── Map widgets panel ── */
#widgets.widgets-panel{color:#374151}
#widgets.widgets-panel .btn-collapse{
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%);
  width:44px;
  height:22px;
  line-height:22px;
  border-radius:10px 10px 0 0;
  background:#fff!important;
  border:1px solid #e5e7eb;
  border-bottom:none;
  box-shadow:0 -2px 8px rgba(15,23,42,.06)!important;
  z-index:2;
  transition:background-color .18s ease;
}
#widgets.widgets-panel .btn-collapse:hover{
  background:color-mix(in srgb,currentColor 6%,#fff)!important;
}
#widgets .widgets-content{
  display:flex;
  align-items:stretch;
  gap:10px;
  width:fit-content;
  max-width:100%;
  padding:10px 12px 12px;
  overflow-x:auto;
  overflow-y:hidden;
  white-space:normal;
  font-size:13px;
  background:#fff;
  border-top:1px solid #e5e7eb;
  box-shadow:0 -6px 24px rgba(15,23,42,.08);
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
}
#widgets .widgets-content::-webkit-scrollbar{height:6px}
#widgets .widgets-content::-webkit-scrollbar-thumb{
  background:color-mix(in srgb,currentColor 25%,#d1d5db);
  border-radius:999px;
}
#widgets .widget{
  display:flex;
  flex-direction:column;
  flex:0 0 auto;
  min-width:240px;
  max-width:320px;
  height:auto;
  margin:0!important;
  border:1px solid #e5e7eb!important;
  border-radius:10px!important;
  background:#fff;
  box-shadow:0 1px 3px rgba(15,23,42,.06);
  overflow:hidden;
  vertical-align:top;
  transition:box-shadow .18s ease,border-color .18s ease;
}
#widgets .widget:hover{box-shadow:0 4px 14px rgba(15,23,42,.08);border-color:#d1d5db!important}
#widgets .widget-device-header.text-primary{
  border-color:color-mix(in srgb,currentColor 30%,#e5e7eb)!important;
  box-shadow:inset 0 3px 0 color-mix(in srgb,currentColor 70%,transparent);
}
#widgets .widget+.widget{margin-left:0!important}
#widgets .widget-device-header{
  min-width:200px;
  max-width:240px;
  border-color:color-mix(in srgb,currentColor 28%,#e5e7eb)!important;
}
#widgets .widget-heading{
  padding:10px 12px!important;
  border-bottom:1px solid color-mix(in srgb,currentColor 14%,#e5e7eb)!important;
  background:color-mix(in srgb,currentColor 7%,#fff)!important;
  border-top:none!important;
  border-radius:0!important;
}
#widgets .widget-heading.text-primary .widget-title{
  color:#374151;
  font-weight:600;
  font-size:13px;
  line-height:1.35;
  display:flex;
  align-items:center;
  gap:8px;
}
#widgets .widget-title .icon{
  font-size:16px;
  line-height:1;
  flex-shrink:0;
}
#widgets .widget-title--device{
  font-size:14px;
  font-weight:700;
  gap:10px;
}
#widgets .widget-status-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  flex-shrink:0;
  box-shadow:0 0 0 2px color-mix(in srgb,currentColor 20%,#fff);
}
#widgets .widget-device-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
}
#widgets .widget-actions{
  float:none!important;
  margin-left:auto;
  flex-shrink:0;
}
#widgets .widget-actions .btn{
  border-radius:6px;
  padding:4px 8px;
}
#widgets .widget-body{
  padding:8px 12px 10px!important;
  height:auto!important;
  min-height:120px;
  max-height:150px;
  font-size:13px;
  line-height:1.45;
  color:#4b5563;
  overflow:auto;
}
#widgets .widget-body .table{
  float:none!important;
  width:100%!important;
  margin-bottom:0!important;
}
#widgets .widget-body .table>tbody>tr>td{
  padding:6px 4px!important;
  line-height:1.4!important;
  vertical-align:top!important;
  border-top:1px solid #f3f4f6!important;
  max-width:none!important;
  white-space:normal;
}
#widgets .widget-body .table>tbody>tr:first-child>td{border-top:none!important}
#widgets .widget-body .table>tbody>tr>td:first-child{
  width:42%!important;
  color:#6b7280;
  font-weight:500;
  font-size:12px;
}
#widgets .widget-body .table>tbody>tr>td:last-child{
  width:58%!important;
  color:#111827;
  font-weight:500;
  text-align:right;
}
#widgets .widget-sensors .table>tbody>tr>td:first-child{width:55%!important}
#widgets .widget-sensors .table .icon{
  font-size:1.25em!important;
  margin-right:6px;
  vertical-align:middle;
}
#widgets .widget-empty{
  width:auto!important;
  min-width:100%;
  min-height:100px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:linear-gradient(to bottom,#fafafa,#fff)!important;
  border-radius:8px;
}
#widgets .widget-empty .btn{
  border-radius:8px;
  padding:6px 12px;
  font-size:12px;
  font-weight:500;
  border-color:color-mix(in srgb,currentColor 30%,#d1d5db);
  transition:background-color .15s ease,border-color .15s ease;
}
#widgets .widget-empty .btn:hover{
  background:color-mix(in srgb,currentColor 8%,#fff);
  border-color:color-mix(in srgb,currentColor 40%,#d1d5db);
}
#widgets .widget-streetview .widget-body,
#widgets .widget-camera .widget-body,
#widgets .widget-image .widget-body,
#widgets .widget-sensor-graph .widget-body{
  padding:0!important;
  max-height:150px;
}
#widgets .widget-camera .camera-image .image,
#widgets .widget-streetview .widget-body img{
  border-radius:0 0 10px 10px;
  max-height:150px;
  object-fit:cover;
}
#widgets .widget-recent-events .table tr[onclick]:hover{
  background:color-mix(in srgb,currentColor 6%,#fff);
  cursor:pointer;
}
#widgets.collapsed .widgets-content{
  min-height:0;
  max-height:0;
  padding-top:0;
  padding-bottom:0;
  overflow:hidden;
  border-top-color:transparent;
  box-shadow:none;
}
@media (max-width:768px){
  #widgets .widget{min-width:210px;max-width:280px}
  #widgets .widgets-content{padding:8px 8px 10px;gap:8px}
}
@media (prefers-reduced-motion:reduce){
  #widgets .widget,#widgets .btn-collapse,#widgets .widget-empty .btn{transition:none!important}
}

/* ── Device map popup (Leaflet) ── */
.leaflet-popup-pane{z-index:1100!important}
.leaflet-popup-device{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  color:#374151;
}
.leaflet-popup-device .leaflet-popup-content-wrapper{
  padding:0;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #e5e7eb;
  box-shadow:0 10px 32px rgba(15,23,42,.14)!important;
  background:#fff;
  max-height:calc(100vh - 140px);
}
.leaflet-popup-device .leaflet-popup-content{
  margin:0!important;
  padding:0!important;
  background:#fff;
  line-height:1.45;
  max-height:calc(100vh - 140px);
  overflow:hidden;
}
.leaflet-popup-device .leaflet-popup-tip{
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:none;
}
.leaflet-popup-device .tab-content>.tab-pane:not(.active){
  display:none!important;
}
.leaflet-popup-device #gps-device-parameters-view{
  width:320px;
  max-width:calc(100vw - 32px);
  display:flex;
  flex-direction:column;
  max-height:calc(100vh - 140px);
}
.leaflet-popup-device #gps-device-street-view-large{
  max-height:calc(100vh - 140px);
  overflow:auto;
}
.leaflet-popup-device #gps-device-street-view-large span[data-device="streetview"]{
  min-height:0!important;
}
.leaflet-popup-device .popup-header--device{
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 0 0 12px;
  min-height:48px;
  background:color-mix(in srgb,currentColor 7%,#fff)!important;
  border-bottom:1px solid color-mix(in srgb,currentColor 14%,#e5e7eb);
  box-shadow:inset 0 3px 0 color-mix(in srgb,currentColor 70%,transparent);
}
.leaflet-popup-device .popup-title{
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 8px 10px 0!important;
  font-size:14px;
  font-weight:700;
  color:#111827!important;
  line-height:1.35;
}
.leaflet-popup-device .popup-title [data-device="name"]{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
  font-weight:inherit;
  color:inherit;
}
.leaflet-popup-device .popup-status-dot{
  width:9px;
  height:9px;
  min-width:9px;
  border-radius:50%;
  flex-shrink:0;
  box-shadow:0 0 0 2px color-mix(in srgb,currentColor 20%,#fff);
  text-indent:-9999px;
  overflow:hidden;
}
.leaflet-popup-device .popup-nav{
  float:none!important;
  display:flex;
  align-items:center;
  gap:2px;
  margin:0!important;
  padding:6px 6px 6px 0;
  border:none!important;
  background:transparent!important;
  flex-shrink:0;
}
.leaflet-popup-device .popup-nav>li{
  float:none;
  margin:0;
}
.leaflet-popup-device .popup-nav>li>a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  min-height:36px;
  padding:0 8px!important;
  margin:0!important;
  border:none!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#6b7280!important;
  line-height:1;
  transition:background-color .15s ease,color .15s ease;
}
.leaflet-popup-device .popup-nav>li>a:hover,
.leaflet-popup-device .popup-nav>li>a:focus{
  background:color-mix(in srgb,currentColor 10%,#fff)!important;
  color:#374151!important;
  outline:none;
}
.leaflet-popup-device .popup-nav>li.active:after{display:none!important}
.leaflet-popup-device .popup-nav>li.active>a,
.leaflet-popup-device .popup-nav>li.active>a:hover,
.leaflet-popup-device .popup-nav>li.active>a:focus{
  background:color-mix(in srgb,currentColor 14%,#fff)!important;
  color:currentColor!important;
}
.leaflet-popup-device .popup-nav>li:last-child>a:hover{
  background:#fef2f2!important;
  color:#dc2626!important;
}
.leaflet-popup-device .popup-body{
  padding:10px 12px 12px!important;
  background:#fff;
  color:#4b5563;
  font-size:13px;
  flex:1 1 auto;
  min-height:0;
  max-height:min(280px,calc(100vh - 240px));
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
.leaflet-popup-device .popup-body .tab-content>.tab-pane.active{
  display:block;
}
.leaflet-popup-device #gps-device-parameters-view span[data-device="streetview"]{
  min-height:0!important;
}
.leaflet-popup-device .popup-params-table{
  width:100%;
  margin-bottom:0!important;
}
.leaflet-popup-device .popup-params-table>tbody>tr>th,
.leaflet-popup-device .popup-params-table>tbody>tr>td{
  padding:7px 4px!important;
  border:none!important;
  border-top:1px solid #f3f4f6!important;
  vertical-align:top;
  line-height:1.4;
}
.leaflet-popup-device .popup-params-table>tbody>tr:first-child>th,
.leaflet-popup-device .popup-params-table>tbody>tr:first-child>td{
  border-top:none!important;
}
.leaflet-popup-device .popup-params-table>tbody>tr>th{
  width:42%;
  font-weight:500;
  font-size:12px;
  color:#6b7280;
}
.leaflet-popup-device .popup-params-table>tbody>tr>td{
  width:58%;
  font-weight:500;
  color:#111827;
  text-align:right;
  word-break:break-word;
}
.leaflet-popup-device .popup-side-params{
  margin-top:2px;
  padding-top:2px;
  border-top:1px dashed #e5e7eb;
}
.leaflet-popup-device .popup-expand{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid #f3f4f6;
  text-align:center;
}
.leaflet-popup-device .popup-expand-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:36px;
  padding:6px 12px;
  border:1px solid color-mix(in srgb,currentColor 28%,#d1d5db);
  border-radius:8px;
  background:#fff;
  color:#374151;
  font-size:12px;
  font-weight:500;
  cursor:pointer;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease;
}
.leaflet-popup-device .popup-expand-btn:hover,
.leaflet-popup-device .popup-expand-btn:focus{
  background:color-mix(in srgb,currentColor 8%,#fff);
  border-color:color-mix(in srgb,currentColor 40%,#d1d5db);
  color:#111827;
  outline:none;
}
.leaflet-popup-device .popup-expand-btn .icon{
  font-size:14px;
  line-height:1;
}
.leaflet-popup-device #gps-device-street-view{
  margin-top:10px;
}
.leaflet-popup-device #gps-device-street-view img,
.leaflet-popup-device #gps-device-street-view-large img{
  border-radius:8px;
  display:block;
  width:100%;
  max-height:125px;
  object-fit:cover;
}
.leaflet-popup-device #gps-device-street-view-large img{
  max-height:min(260px,calc(100vh - 220px));
}
.leaflet-popup-device .buttons.buttons-right{
  margin-top:8px;
  text-align:right;
}
.leaflet-popup-device .buttons.buttons-right .btn{
  border-radius:8px;
  padding:5px 10px;
  font-size:12px;
  font-weight:500;
  border-color:color-mix(in srgb,currentColor 30%,#d1d5db);
  background:#fff;
  transition:background-color .15s ease,border-color .15s ease;
}
.leaflet-popup-device .buttons.buttons-right .btn:hover{
  background:color-mix(in srgb,currentColor 8%,#fff);
  border-color:color-mix(in srgb,currentColor 40%,#d1d5db);
}
@media (max-width:480px){
  .leaflet-popup-device #gps-device-parameters-view{width:min(300px,calc(100vw - 24px))}
  .leaflet-popup-device .popup-nav>li>a{min-width:44px;min-height:44px}
}
@media (prefers-reduced-motion:reduce){
  .leaflet-popup-device .popup-nav>li>a,
  .leaflet-popup-device .popup-expand-btn,
  .leaflet-popup-device .buttons.buttons-right .btn{transition:none!important}
}