@charset "UTF-8";

/* node_modules/leaflet/dist/leaflet.css */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}
.leaflet-container {
  overflow: hidden;
}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.leaflet-tile::selection {
  background: transparent;
}
.leaflet-safari .leaflet-tile {
  image-rendering: -webkit-optimize-contrast;
}
.leaflet-safari .leaflet-tile-container {
  width: 1600px;
  height: 1600px;
  -webkit-transform-origin: 0 0;
}
.leaflet-marker-icon,
.leaflet-marker-shadow {
  display: block;
}
.leaflet-container .leaflet-overlay-pane svg {
  max-width: none !important;
  max-height: none !important;
}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
  width: auto;
  padding: 0;
}
.leaflet-container img.leaflet-tile {
  mix-blend-mode: plus-lighter;
}
.leaflet-container.leaflet-touch-zoom {
  -ms-touch-action: pan-x pan-y;
  touch-action: pan-x pan-y;
}
.leaflet-container.leaflet-touch-drag {
  -ms-touch-action: pinch-zoom;
  touch-action: none;
  touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
  -ms-touch-action: none;
  touch-action: none;
}
.leaflet-container {
  -webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
  -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
  filter: inherit;
  visibility: hidden;
}
.leaflet-tile-loaded {
  visibility: inherit;
}
.leaflet-zoom-box {
  width: 0;
  height: 0;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  z-index: 800;
}
.leaflet-overlay-pane svg {
  -moz-user-select: none;
}
.leaflet-pane {
  z-index: 400;
}
.leaflet-tile-pane {
  z-index: 200;
}
.leaflet-overlay-pane {
  z-index: 400;
}
.leaflet-shadow-pane {
  z-index: 500;
}
.leaflet-marker-pane {
  z-index: 600;
}
.leaflet-tooltip-pane {
  z-index: 650;
}
.leaflet-popup-pane {
  z-index: 700;
}
.leaflet-map-pane canvas {
  z-index: 100;
}
.leaflet-map-pane svg {
  z-index: 200;
}
.leaflet-vml-shape {
  width: 1px;
  height: 1px;
}
.lvml {
  behavior: url(#default#VML);
  display: inline-block;
  position: absolute;
}
.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: visiblePainted;
  pointer-events: auto;
}
.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}
.leaflet-top {
  top: 0;
}
.leaflet-right {
  right: 0;
}
.leaflet-bottom {
  bottom: 0;
}
.leaflet-left {
  left: 0;
}
.leaflet-control {
  float: left;
  clear: both;
}
.leaflet-right .leaflet-control {
  float: right;
}
.leaflet-top .leaflet-control {
  margin-top: 10px;
}
.leaflet-bottom .leaflet-control {
  margin-bottom: 10px;
}
.leaflet-left .leaflet-control {
  margin-left: 10px;
}
.leaflet-right .leaflet-control {
  margin-right: 10px;
}
.leaflet-fade-anim .leaflet-popup {
  opacity: 0;
  -webkit-transition: opacity 0.2s linear;
  -moz-transition: opacity 0.2s linear;
  transition: opacity 0.2s linear;
}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
  opacity: 1;
}
.leaflet-zoom-animated {
  -webkit-transform-origin: 0 0;
  -ms-transform-origin: 0 0;
  transform-origin: 0 0;
}
svg.leaflet-zoom-animated {
  will-change: transform;
}
.leaflet-zoom-anim .leaflet-zoom-animated {
  -webkit-transition: -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
  -moz-transition: -moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
  transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1);
}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
}
.leaflet-zoom-anim .leaflet-zoom-hide {
  visibility: hidden;
}
.leaflet-interactive {
  cursor: pointer;
}
.leaflet-grab {
  cursor: -webkit-grab;
  cursor: -moz-grab;
  cursor: grab;
}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
  cursor: crosshair;
}
.leaflet-popup-pane,
.leaflet-control {
  cursor: auto;
}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
  cursor: move;
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
}
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
  pointer-events: none;
}
.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
  pointer-events: visiblePainted;
  pointer-events: auto;
}
.leaflet-container {
  background: #ddd;
  outline-offset: 1px;
}
.leaflet-container a {
  color: #0078A8;
}
.leaflet-zoom-box {
  border: 2px dotted #38f;
  background: rgba(255, 255, 255, 0.5);
}
.leaflet-container {
  font-family:
    "Helvetica Neue",
    Arial,
    Helvetica,
    sans-serif;
  font-size: 12px;
  font-size: 0.75rem;
  line-height: 1.5;
}
.leaflet-bar {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
  border-radius: 4px;
}
.leaflet-bar a {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  width: 26px;
  height: 26px;
  line-height: 26px;
  display: block;
  text-align: center;
  text-decoration: none;
  color: black;
}
.leaflet-bar a,
.leaflet-control-layers-toggle {
  background-position: 50% 50%;
  background-repeat: no-repeat;
  display: block;
}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
  background-color: #f4f4f4;
}
.leaflet-bar a:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.leaflet-bar a:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  border-bottom: none;
}
.leaflet-bar a.leaflet-disabled {
  cursor: default;
  background-color: #f4f4f4;
  color: #bbb;
}
.leaflet-touch .leaflet-bar a {
  width: 30px;
  height: 30px;
  line-height: 30px;
}
.leaflet-touch .leaflet-bar a:first-child {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}
.leaflet-touch .leaflet-bar a:last-child {
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  font:
    bold 18px "Lucida Console",
    Monaco,
    monospace;
  text-indent: 1px;
}
.leaflet-touch .leaflet-control-zoom-in,
.leaflet-touch .leaflet-control-zoom-out {
  font-size: 22px;
}
.leaflet-control-layers {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
  background: #fff;
  border-radius: 5px;
}
.leaflet-control-layers-toggle {
  background-image: url("./media/layers-55W3Q4RM.png");
  width: 36px;
  height: 36px;
}
.leaflet-retina .leaflet-control-layers-toggle {
  background-image: url("./media/layers-2x-TBM42ERR.png");
  background-size: 26px 26px;
}
.leaflet-touch .leaflet-control-layers-toggle {
  width: 44px;
  height: 44px;
}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
  display: none;
}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
  display: block;
  position: relative;
}
.leaflet-control-layers-expanded {
  padding: 6px 10px 6px 6px;
  color: #333;
  background: #fff;
}
.leaflet-control-layers-scrollbar {
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 5px;
}
.leaflet-control-layers-selector {
  margin-top: 2px;
  position: relative;
  top: 1px;
}
.leaflet-control-layers label {
  display: block;
  font-size: 13px;
  font-size: 1.08333em;
}
.leaflet-control-layers-separator {
  height: 0;
  border-top: 1px solid #ddd;
  margin: 5px -10px 5px -6px;
}
.leaflet-default-icon-path {
  background-image: url("./media/marker-icon-2V3QKKVC.png");
}
.leaflet-container .leaflet-control-attribution {
  background: #fff;
  background: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.leaflet-control-attribution,
.leaflet-control-scale-line {
  padding: 0 5px;
  color: #333;
  line-height: 1.4;
}
.leaflet-control-attribution a {
  text-decoration: none;
}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
  text-decoration: underline;
}
.leaflet-attribution-flag {
  display: inline !important;
  vertical-align: baseline !important;
  width: 1em;
  height: 0.6669em;
}
.leaflet-left .leaflet-control-scale {
  margin-left: 5px;
}
.leaflet-bottom .leaflet-control-scale {
  margin-bottom: 5px;
}
.leaflet-control-scale-line {
  border: 2px solid #777;
  border-top: none;
  line-height: 1.1;
  padding: 2px 5px 1px;
  white-space: nowrap;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.8);
  text-shadow: 1px 1px #fff;
}
.leaflet-control-scale-line:not(:first-child) {
  border-top: 2px solid #777;
  border-bottom: none;
  margin-top: -2px;
}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
  border-bottom: 2px solid #777;
}
.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
  box-shadow: none;
}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
  border: 2px solid rgba(0, 0, 0, 0.2);
  background-clip: padding-box;
}
.leaflet-popup {
  position: absolute;
  text-align: center;
  margin-bottom: 20px;
}
.leaflet-popup-content-wrapper {
  padding: 1px;
  text-align: left;
  border-radius: 12px;
}
.leaflet-popup-content {
  margin: 13px 24px 13px 20px;
  line-height: 1.3;
  font-size: 13px;
  font-size: 1.08333em;
  min-height: 1px;
}
.leaflet-popup-content p {
  margin: 17px 0;
  margin: 1.3em 0;
}
.leaflet-popup-tip-container {
  width: 40px;
  height: 20px;
  position: absolute;
  left: 50%;
  margin-top: -1px;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}
.leaflet-popup-tip {
  width: 17px;
  height: 17px;
  padding: 1px;
  margin: -10px auto 0;
  pointer-events: auto;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: white;
  color: #333;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}
.leaflet-container a.leaflet-popup-close-button {
  position: absolute;
  top: 0;
  right: 0;
  border: none;
  text-align: center;
  width: 24px;
  height: 24px;
  font:
    16px/24px Tahoma,
    Verdana,
    sans-serif;
  color: #757575;
  text-decoration: none;
  background: transparent;
}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
  color: #585858;
}
.leaflet-popup-scrolled {
  overflow: auto;
}
.leaflet-oldie .leaflet-popup-content-wrapper {
  -ms-zoom: 1;
}
.leaflet-oldie .leaflet-popup-tip {
  width: 24px;
  margin: 0 auto;
  -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
  filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
}
.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
  border: 1px solid #999;
}
.leaflet-div-icon {
  background: #fff;
  border: 1px solid #666;
}
.leaflet-tooltip {
  position: absolute;
  padding: 6px;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 3px;
  color: #222;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.leaflet-tooltip.leaflet-interactive {
  cursor: pointer;
  pointer-events: auto;
}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
  position: absolute;
  pointer-events: none;
  border: 6px solid transparent;
  background: transparent;
  content: "";
}
.leaflet-tooltip-bottom {
  margin-top: 6px;
}
.leaflet-tooltip-top {
  margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
  left: 50%;
  margin-left: -6px;
}
.leaflet-tooltip-top:before {
  bottom: 0;
  margin-bottom: -12px;
  border-top-color: #fff;
}
.leaflet-tooltip-bottom:before {
  top: 0;
  margin-top: -12px;
  margin-left: -6px;
  border-bottom-color: #fff;
}
.leaflet-tooltip-left {
  margin-left: -6px;
}
.leaflet-tooltip-right {
  margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
  top: 50%;
  margin-top: -6px;
}
.leaflet-tooltip-left:before {
  right: 0;
  margin-right: -12px;
  border-left-color: #fff;
}
.leaflet-tooltip-right:before {
  left: 0;
  margin-left: -12px;
  border-right-color: #fff;
}
@media print {
  .leaflet-control {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* src/styles.scss */
:root {
  --brand-primary: #3B82F6;
  --brand-primary-hover: #2563EB;
  --brand-gradient:
    linear-gradient(
      135deg,
      #2563EB 0%,
      #4F46E5 50%,
      #7C3AED 100%);
  --brand-accent: #6366F1;
  --brand-gold: #F59E0B;
  --brand-cyan: #06B6D4;
  --bg-app: #EEF2F6;
  --bg-surface: rgba(255, 255, 255, 0.65);
  --bg-surface-elevated: rgba(255, 255, 255, 0.78);
  --bg-sidebar: #0B0F19;
  --bg-sidebar-active: #161F30;
  --text-main: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-white: #FFFFFF;
  --border-light: rgba(255, 255, 255, 0.8);
  --border-glass: rgba(203, 213, 225, 0.5);
  --border-focus: #3B82F6;
  --status-success: #059669;
  --status-success-bg: rgba(209, 250, 229, 0.75);
  --status-warning: #D97706;
  --status-warning-bg: rgba(254, 243, 199, 0.75);
  --status-danger: #DC2626;
  --status-danger-bg: rgba(254, 226, 226, 0.75);
  --status-info: #0284C7;
  --status-info-bg: rgba(224, 242, 254, 0.75);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 10px 30px -6px rgba(15, 23, 42, 0.07), 0 2px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-elevated: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 6px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-dropdown: 0 24px 48px -10px rgba(15, 23, 42, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family:
    "Plus Jakarta Sans",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background-color: var(--bg-app);
  background-image:
    radial-gradient(
      at 10% 15%,
      rgba(59, 130, 246, 0.08) 0px,
      transparent 45%),
    radial-gradient(
      at 90% 10%,
      rgba(99, 102, 241, 0.08) 0px,
      transparent 45%),
    radial-gradient(
      at 50% 90%,
      rgba(6, 182, 212, 0.06) 0px,
      transparent 50%),
    radial-gradient(
      at 85% 85%,
      rgba(124, 58, 237, 0.05) 0px,
      transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 13px;
}
button {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: transparent;
}
.sidebar {
  width: 270px;
  background: var(--bg-sidebar);
  color: #E2E8F0;
  display: flex;
  flex-direction: column;
  flex: none;
  min-height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 6px 0 28px rgba(0, 0, 0, 0.25);
  z-index: 100;
}
.brand {
  padding: 28px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 14px;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(37, 99, 235, 0.15) 0%,
      rgba(9, 13, 22, 0.8) 100%);
  position: relative;
}
.brand-logo-card {
  width: 100%;
  max-width: 232px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 10px 12px 8px;
  border: 2px solid #F59E0B;
  box-shadow:
    0 0 16px rgba(245, 158, 11, 0.45),
    0 0 32px rgba(217, 119, 6, 0.25),
    0 6px 20px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-logo-card:hover {
  transform: translateY(-2px);
  border-color: #FBBF24;
  box-shadow:
    0 0 24px rgba(251, 191, 36, 0.65),
    0 0 42px rgba(217, 119, 6, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.55);
}
.brand-logo-image {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.brand strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #FFFFFF;
}
.brand span {
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  margin-top: 2px;
  letter-spacing: 0.2px;
}
.brand small {
  font-size: 9px;
  font-weight: 700;
  color: #38BDF8;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 5px;
}
.sidebar nav {
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: #94A3B8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar nav a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
}
.sidebar nav a.active {
  color: #FFFFFF;
  background:
    linear-gradient(
      90deg,
      rgba(59, 130, 246, 0.25) 0%,
      rgba(59, 130, 246, 0.08) 100%);
  border-left: 3px solid var(--brand-primary);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}
.sidebar nav a span:first-child {
  font-size: 15px;
  width: 20px;
  text-align: center;
  color: #64748B;
  transition: color 0.2s ease;
}
.sidebar nav a:hover span:first-child,
.sidebar nav a.active span:first-child {
  color: var(--brand-primary);
}
.sidebar-user {
  margin: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 12px;
  align-items: center;
}
.sidebar-user .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}
.sidebar-user strong {
  display: block;
  font-size: 13px;
  color: #FFFFFF;
  font-weight: 700;
}
.sidebar-user span {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(148, 163, 184, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 3px;
}
.sidebar-user button {
  margin-top: 6px;
  background: transparent;
  border: none;
  color: #EF4444;
  font-size: 11px;
  font-weight: 600;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.sidebar-user button:hover {
  opacity: 0.8;
  text-decoration: underline;
}
.content {
  flex: 1;
  padding: 0 28px 32px;
  position: relative;
  min-width: 0;
  background: transparent;
}
.content::before {
  content: "";
  position: fixed;
  left: calc(270px + (100vw - 270px) / 2);
  top: 50%;
  width: min(620px, 62vw);
  height: min(620px, 62vw);
  background-image: url("./media/501-Logo-BSCRY2BO.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.22;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  filter: contrast(1.22) brightness(0.92);
}
@media (max-width: 768px) {
  .content::before {
    left: 50%;
    top: 50%;
    width: 85vw;
    height: 85vw;
    opacity: 0.18;
  }
}
.content > * {
  position: relative;
}
.topbar {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin: 0 -28px 24px -28px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}
.topbar h1 {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
  letter-spacing: -0.3px;
}
.topbar p {
  margin: 3px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}
.top-right {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
}
.top-right > span:first-child {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #F1F5F9;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}
.notif-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.notif-btn {
  background: rgba(241, 245, 249, 0.7);
  border: 1px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}
.notif-btn:hover {
  background: #FFFFFF;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}
.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px #FFFFFF;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
.notif-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 350px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.22), 0 0 1px 1px rgba(15, 23, 42, 0.05);
  z-index: 10000;
  overflow: hidden;
  animation: notifFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes notifFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.notif-panel-header {
  padding: 14px 18px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-panel-title strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}
.notif-count-pill {
  font-size: 10px;
  font-weight: 700;
  background: #E2E8F0;
  color: var(--text-secondary);
  padding: 2px 7px;
  border-radius: 10px;
}
.notif-clear-btn {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}
.notif-clear-btn:hover {
  text-decoration: underline;
  background: rgba(59, 130, 246, 0.08);
}
.notif-list {
  max-height: 320px;
  overflow-y: auto;
}
.notif-empty-state {
  padding: 32px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.9);
  cursor: pointer;
  transition: background 0.15s ease;
}
.notif-item:hover {
  background: #F8FAFC;
}
.notif-item.unread {
  background: #F0F9FF;
}
.notif-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.notif-item-icon.success {
  background: #DCFCE7;
  color: #16A34A;
}
.notif-item-icon.warning {
  background: #FEF3C7;
  color: #D97706;
}
.notif-item-icon.info {
  background: #DBEAFE;
  color: #2563EB;
}
.notif-item-content {
  flex: 1;
  min-width: 0;
}
.notif-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.notif-item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}
.notif-item-time {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}
.notif-item-msg {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 3px 0 0;
  line-height: 1.4;
}
.notif-panel-footer {
  padding: 10px 18px;
  background: #F8FAFC;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.notif-panel-footer a {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
}
.notif-panel-footer a:hover {
  text-decoration: underline;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 12px;
}
.avatar.small {
  width: 32px;
  height: 32px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  display: flex;
  gap: 14px;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat:hover {
  transform: translateY(-3px) scale(1.01);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgb(255, 255, 255);
  border-color: rgba(59, 130, 246, 0.4);
}
.stat::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}
.stat.blue::after {
  background:
    linear-gradient(
      180deg,
      #2563EB,
      #60A5FA);
}
.stat.green::after {
  background:
    linear-gradient(
      180deg,
      #059669,
      #34D399);
}
.stat.orange::after {
  background:
    linear-gradient(
      180deg,
      #D97706,
      #FBBF24);
}
.stat.purple::after {
  background:
    linear-gradient(
      180deg,
      #6366F1,
      #A5B4FC);
}
.stat.pink::after {
  background:
    linear-gradient(
      180deg,
      #DC2626,
      #F87171);
}
.stat .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.stat.blue .icon {
  background:
    linear-gradient(
      135deg,
      #EFF6FF 0%,
      #DBEAFE 100%);
  color: #1D4ED8;
}
.stat.green .icon {
  background:
    linear-gradient(
      135deg,
      #ECFDF5 0%,
      #D1FAE5 100%);
  color: #047857;
}
.stat.orange .icon {
  background:
    linear-gradient(
      135deg,
      #FFFBEB 0%,
      #FEF3C7 100%);
  color: #B45309;
}
.stat.purple .icon {
  background:
    linear-gradient(
      135deg,
      #EEF2FF 0%,
      #E0E7FF 100%);
  color: #4338CA;
}
.stat.pink .icon {
  background:
    linear-gradient(
      135deg,
      #FEF2F2 0%,
      #FEE2E2 100%);
  color: #B91C1C;
}
.stat small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.stat strong {
  display: block;
  font-size: 23px;
  font-weight: 800;
  color: var(--text-main);
  margin: 3px 0 1px;
  letter-spacing: -0.6px;
}
.stat span:last-child {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}
.filters {
  position: relative;
  z-index: 100;
  overflow: visible !important;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-end;
  box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  margin-bottom: 24px;
}
.filter-field,
.filters > div {
  flex: 1;
  min-width: 180px;
  position: relative;
}
.filter-field:has(.search-select.is-open),
.filter-field:has(.search-select-trigger.open) {
  z-index: 120 !important;
}
.filter-field label,
.filters label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-field input,
.filter-field select,
.filters select,
.filters input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(203, 213, 225, 0.7);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-main);
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}
.filter-field input:focus,
.filter-field select:focus,
.filters select:focus,
.filters input:focus {
  background: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3.5px rgba(59, 130, 246, 0.18);
}
.primary {
  background: var(--brand-gradient);
  border: none;
  color: #FFFFFF;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.primary:hover:not(:disabled) {
  background:
    linear-gradient(
      135deg,
      #1D4ED8 0%,
      #3B82F6 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-1.5px);
}
.primary:active:not(:disabled) {
  transform: translateY(0);
}
.secondary {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(203, 213, 225, 0.8);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.secondary:hover:not(:disabled) {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: #FFFFFF;
}
.danger-button {
  background:
    linear-gradient(
      135deg,
      #DC2626 0%,
      #EF4444 100%);
  border: none;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.danger-button:hover:not(:disabled) {
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}
.link-btn {
  border: none;
  background: transparent;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
}
.link-btn:hover {
  background: rgba(59, 130, 246, 0.08);
}
.grid {
  display: grid;
  grid-template-columns: 1.15fr 1.6fr 0.85fr;
  gap: 20px;
  margin-top: 20px;
  position: relative;
  z-index: 10;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  position: relative;
  z-index: 10;
}
.panel {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -6px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
  transition: all 0.25s ease;
}
.panel:hover {
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.09);
  border-color: rgba(255, 255, 255, 0.85);
}
.panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}
.panel-head small,
.panel-head .muted-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.panel th {
  padding: 12px 16px;
  background: rgba(248, 250, 252, 0.5);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  text-align: left;
}
.panel td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  color: var(--text-main);
  font-weight: 500;
}
.panel tbody tr {
  transition: background 0.15s ease;
}
.panel tbody tr:hover {
  background: rgba(239, 246, 255, 0.6);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: #F1F5F9;
}
.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.active-dot {
  background: var(--status-success) !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.warn-dot {
  background: var(--status-warning) !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}
.off-dot {
  background: var(--status-danger) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}
.eye {
  border: none;
  background: #F1F5F9;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.eye:hover {
  background: var(--brand-primary);
  color: #FFFFFF;
}
.map-panel {
  min-height: 540px;
}
.legend {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}
.green-dot,
.red-dot,
.black-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.green-dot {
  background: var(--status-success);
}
.red-dot {
  background: var(--status-danger);
}
.black-dot {
  background: #1E293B;
}
.blue-line {
  display: inline-block;
  width: 18px;
  border-top: 3px solid #1565FF;
  border-radius: 2px;
}
#route-map,
#live-map {
  height: 490px;
  width: 100%;
}
.custom-pin-container {
  background: transparent !important;
  border: none !important;
}
.custom-map-pin:hover {
  transform: scale(1.15) translateY(-4px);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)) !important;
}
.live-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  margin-left: -22px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.35);
  animation: radar-pulse 2s infinite ease-out;
  pointer-events: none;
}
@keyframes radar-pulse {
  0% {
    transform: scale(0.3);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.summary {
  padding: 16px 20px;
}
.summary > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.summary > div:last-child {
  border-bottom: none;
}
.summary span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}
.summary b {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}
.activity {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}
.activity:last-child {
  border-bottom: none;
}
.activity-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--brand-primary);
}
.activity b {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}
.activity span {
  font-size: 11px;
  color: var(--text-muted);
}
.activity time {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.error.banner {
  background: var(--status-danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #B91C1C;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 12px;
  margin-top: 14px;
}
@media (max-width: 1200px) {
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
.page-body {
  padding-top: 14px;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}
.page-title h2 {
  margin: 0;
  font-size: 20px;
  color: var(--text);
}
.page-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.muted-text {
  font-size: 10px;
  color: var(--muted);
}
.search-box {
  min-width: 280px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
}
.search-box:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(51, 51, 140, 0.08);
}
.page-body a {
  color: var(--brand);
  text-decoration: none;
}
.page-body a:hover {
  text-decoration: underline;
}
.form-panel {
  padding-bottom: 20px;
}
.form-panel label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 14px 16px 6px;
}
.form-panel input,
.form-panel select {
  margin: 0 16px;
  width: calc(100% - 32px);
  padding: 10px 14px;
  border: 1.5px solid rgba(203, 213, 225, 0.7);
  border-radius: var(--radius-md);
  outline: none;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.form-panel input:focus,
.form-panel select:focus {
  background: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.form-panel textarea {
  margin: 0 16px;
  width: calc(100% - 32px);
  padding: 10px 14px;
  border: 1.5px solid rgba(203, 213, 225, 0.7);
  border-radius: var(--radius-md);
  resize: vertical;
  outline: none;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.form-panel textarea:focus {
  background: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}
.form-row > div {
  width: 100%;
}
.form-row input,
.form-row select {
  margin: 0;
  width: 100%;
}
.form-row label {
  margin: 14px 0 6px;
}
.form-actions {
  display: flex;
  gap: 12px;
  padding: 20px 16px 0;
  align-items: center;
  flex-wrap: wrap;
}
.release-note {
  padding: 16px;
  font-size: 12px;
}
.release-note li {
  margin: 7px 0;
}
.event-json {
  margin: 0;
  white-space: pre-wrap;
  max-width: 360px;
  font:
    10px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #475569;
}
.empty-panel {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}
.live-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
}
.live-detail > div {
  border: 1px solid var(--border-light);
  border-radius: 9px;
  padding: 12px;
  background: #fff;
}
.live-detail span,
.live-detail b {
  display: block;
}
.live-detail span {
  font-size: 10px;
  color: var(--muted);
}
.live-detail b {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text);
}
.page-gap {
  margin-top: 12px;
}
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-panel {
    order: 1;
  }
  .asm-panel {
    order: 2;
  }
  .summary-panel {
    order: 3;
  }
}
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  color: #1E293B;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.mobile-menu-btn:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}
.mobile-close-btn {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
}
.mobile-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  animation: fadeInModal 0.2s ease-out;
}
@media (max-width: 980px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
  .mobile-drawer-backdrop {
    display: block;
  }
  .sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px !important;
    max-width: 85vw;
    height: 100vh;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .sidebar.mobile-open {
    transform: translateX(0) !important;
  }
  .sidebar.mobile-open .mobile-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .brand {
    padding: 16px 14px;
  }
  .brand-logo-image {
    width: 44px;
    height: 44px;
  }
  .brand-text {
    display: flex !important;
  }
  .sidebar nav a span:last-child {
    display: inline !important;
  }
  .sidebar-user > div:last-child {
    display: block !important;
  }
  .content {
    width: 100%;
    min-width: 0;
    padding: 0 14px 24px;
  }
  .topbar {
    margin: 0 -14px 14px;
    padding: 12px 14px;
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .topbar h1 {
    font-size: 18px;
  }
  .topbar p {
    font-size: 11px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
  }
  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .filters > div,
  .filter-field {
    width: 100% !important;
    min-width: 0 !important;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .page-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .table-responsive,
  .panel > div[style*="overflow-x: auto"] {
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .search-box {
    min-width: 0;
    width: 100%;
  }
  .page-title {
    flex-direction: column;
    align-items: stretch;
  }
  .live-detail {
    grid-template-columns: 1fr;
  }
  .map-panel {
    min-height: 400px;
  }
  #route-map,
  #live-map {
    height: 420px;
  }
  .map-placeholder {
    min-height: 380px;
  }
  .content::before {
    width: 300px;
    height: 300px;
  }
  .login-card {
    width: 100%;
    max-width: 360px;
    padding: 24px;
  }
}
@media (max-width: 480px) {
  .topbar h1 {
    font-size: 15px;
  }
  .page-title h2 {
    font-size: 18px;
  }
  .stat {
    padding: 11px;
  }
  .stat strong {
    font-size: 21px;
  }
  .panel th,
  .panel td {
    padding: 8px 6px;
  }
  .content::before {
    width: 240px;
    height: 240px;
    opacity: 0.045;
  }
}
.audit-panel {
  overflow-x: auto;
}
.audit-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.audit-table th {
  background: rgba(248, 250, 252, 0.55);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  text-align: left;
}
.audit-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  vertical-align: top;
  font-size: 11px;
  color: var(--text-main);
}
.audit-table th:nth-child(1),
.audit-table td:nth-child(1) {
  width: 145px;
}
.audit-table th:nth-child(2),
.audit-table td:nth-child(2) {
  width: 210px;
}
.audit-table th:nth-child(3),
.audit-table td:nth-child(3) {
  width: 220px;
}
.audit-table th:nth-child(4),
.audit-table td:nth-child(4) {
  width: auto;
}
.audit-table tbody tr:hover {
  background: rgba(239, 246, 255, 0.55);
}
.event-time {
  white-space: nowrap;
  color: #53657d;
}
.asm-name {
  font-weight: 600;
  color: #15253c;
  margin-bottom: 3px;
}
.event-type {
  display: flex;
  align-items: center;
  gap: 8px;
}
.event-type b {
  font-size: 11px;
  color: #15253c;
}
.event-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  border-radius: 50%;
  background: #33338c;
}
.event-dot.success {
  background: #16a34a;
}
.event-dot.warning {
  background: #f59e0b;
}
.event-dot.danger {
  background: #ef233c;
}
.event-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 2px 0;
}
.detail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  line-height: 1.35;
}
.detail-label {
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
}
.detail-value {
  color: #15253c;
  font-size: 10px;
  font-weight: 500;
  word-break: break-word;
}
.empty-log {
  text-align: center !important;
  padding: 35px !important;
  color: #718096 !important;
}
@media (max-width: 900px) {
  .audit-table {
    min-width: 850px;
  }
  .audit-panel {
    overflow-x: auto;
  }
}
.search-select {
  position: relative;
  width: 100%;
}
.search-select.is-open {
  z-index: 500 !important;
}
.search-select-trigger {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(203, 213, 225, 0.7);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}
.search-select-trigger:hover {
  background: #FFFFFF;
  border-color: var(--brand-primary);
}
.search-select-trigger.open {
  background: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.search-select-trigger:disabled {
  background: rgba(241, 245, 249, 0.6);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}
.search-select-trigger .placeholder {
  color: var(--text-muted);
  font-weight: 500;
}
.search-select-arrow {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.search-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 99999;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22), 0 4px 14px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.search-select-search {
  padding: 10px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-light);
}
.search-select-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  background: #FFFFFF;
}
.search-select-search input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.search-select-options {
  max-height: 240px;
  overflow-y: auto;
}
.search-select-option {
  width: 100%;
  display: block;
  padding: 10px 14px;
  border: none;
  background: #FFFFFF;
  text-align: left;
  color: var(--text-main);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.search-select-option:hover {
  background: #EFF6FF;
  color: var(--brand-primary);
}
.search-select-option.selected {
  background: var(--brand-primary);
  color: #FFFFFF;
}
.search-select-empty {
  padding: 18px;
  text-align: center;
  color: #70708A;
  font-size: 11px;
}
.report-event-type {
  display: flex;
  align-items: center;
  gap: 7px;
}
.report-event-type b {
  font-size: 10px;
  color: #15253c;
}
.report-event-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: #33338c;
}
.report-event-dot.success {
  background: #16a34a;
}
.report-event-dot.warning {
  background: #f59e0b;
}
.report-event-dot.danger {
  background: #ef233c;
}
.report-event-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}
.report-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.4;
}
.report-detail-label {
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
}
.report-detail-value {
  color: #20204a;
  font-size: 10px;
  font-weight: 500;
  word-break: break-word;
}
app-login {
  display: block;
  width: 100%;
  min-height: 100vh;
}
.login-page,
.login-wrap {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  overflow: hidden;
  background-color: var(--bg-app);
  background-image:
    radial-gradient(
      at 10% 15%,
      rgba(59, 130, 246, 0.12) 0px,
      transparent 50%),
    radial-gradient(
      at 90% 10%,
      rgba(99, 102, 241, 0.12) 0px,
      transparent 50%),
    radial-gradient(
      at 50% 90%,
      rgba(6, 182, 212, 0.1) 0px,
      transparent 55%),
    radial-gradient(
      at 85% 85%,
      rgba(124, 58, 237, 0.08) 0px,
      transparent 50%);
  background-attachment: fixed;
}
.login-watermark-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(580px, 85vw);
  height: min(580px, 85vw);
  background-image: url("./media/501-Logo-BSCRY2BO.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.22;
  pointer-events: none;
  z-index: 1;
  filter: contrast(1.22) brightness(0.92);
}
.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  animation: loginFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.login-glass-card,
.login-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow:
    0 24px 48px -12px rgba(15, 23, 42, 0.16),
    0 4px 12px rgba(15, 23, 42, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  padding: 38px 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
}
.login-logo-box {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.login-header {
  text-align: center;
  margin-bottom: 24px;
}
.login-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0F172A;
  margin: 0 0 4px 0;
}
.login-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: #64748B;
  margin: 0 0 10px 0;
}
.login-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.1);
  color: #2563EB;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.login-input-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.login-input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon svg {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  pointer-events: none;
  transition: color 0.2s ease;
}
.input-with-icon:focus-within svg {
  color: #3B82F6;
}
.input-with-icon input {
  width: 100%;
  height: 46px;
  padding: 10px 14px 10px 42px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(203, 213, 225, 0.85);
  border-radius: 12px;
  font-size: 14px;
  color: #0F172A;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.input-with-icon input:focus {
  border-color: #3B82F6;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.input-with-icon input::placeholder {
  color: #94A3B8;
}
.login-error-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(254, 226, 226, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  color: #DC2626;
  font-size: 13px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: shakeAlert 0.3s ease;
}
@keyframes shakeAlert {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
.login-submit-btn {
  height: 48px;
  width: 100%;
  border: none;
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      #2563EB 0%,
      #4F46E5 50%,
      #7C3AED 100%);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  margin-top: 6px;
}
.login-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
  filter: brightness(1.05);
}
.login-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}
.login-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: loginSpin 0.75s linear infinite;
}
@keyframes loginSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.login-footer {
  margin-top: 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.login-footer .motto {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  letter-spacing: 0.04em;
}
.login-footer .version {
  font-size: 11px;
  font-weight: 500;
  color: #94A3B8;
}
@media (max-width: 480px) {
  .login-glass-card,
  .login-card {
    padding: 28px 20px 22px;
    border-radius: 20px;
  }
  .login-title {
    font-size: 20px;
  }
}
.activity-subtitle {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-primary);
  margin-top: 2px;
}
.badge-count {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.history-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
}
.activity-detail-card {
  margin: 12px 14px 14px;
  background: #FFFFFF;
  border: 1.5px solid rgba(37, 99, 235, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  animation: detailFadeIn 0.25s ease-out;
}
@keyframes detailFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.detail-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-type-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.detail-type-pill.punch_in {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}
.detail-type-pill.punch_out {
  background: rgba(239, 68, 68, 0.15);
  color: #DC2626;
}
.detail-type-pill.stopover {
  background: rgba(245, 158, 11, 0.15);
  color: #D97706;
}
.detail-type-pill.session {
  background: rgba(99, 102, 241, 0.15);
  color: #4F46E5;
}
.detail-type-pill.network_online,
.detail-type-pill.service_started,
.detail-type-pill.service_stopped {
  background: rgba(100, 116, 139, 0.15);
  color: #475569;
}
.detail-time {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
}
.detail-close-btn {
  background: #F1F5F9;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
}
.detail-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: scale(1.1);
}
.detail-main-title {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 2px;
  line-height: 1.3;
}
.detail-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detail-item.full-width {
  grid-column: span 2;
}
.detail-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.04em;
}
.detail-value {
  font-size: 12px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.35;
}
.detail-value.mono {
  font-family: monospace;
  font-size: 11px;
  color: #475569;
}
.detail-value.highlight {
  color: #2563EB;
  font-weight: 700;
}
.status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.status-badge.completed {
  background: #DCFCE7;
  color: #15803D;
}
.status-badge.tracking,
.status-badge.active {
  background: #DBEAFE;
  color: #1D4ED8;
}
.status-badge.logged {
  background: #F1F5F9;
  color: #475569;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-detail-action {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.btn-detail-action.primary {
  background: #2563EB;
  color: #FFFFFF;
}
.btn-detail-action.primary:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}
.btn-detail-action.secondary {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.btn-detail-action.secondary:hover {
  background: #DBEAFE;
}
.activity-timeline-scroll {
  max-height: 480px;
  overflow-y: auto;
  padding: 4px 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.timeline-header-hint {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  background: rgba(241, 245, 249, 0.7);
  border-radius: 8px;
  margin-bottom: 4px;
}
.activity-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.activity-card-item:hover {
  background: #F8FAFC;
  transform: translateX(3px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
}
.activity-card-item.selected {
  background: rgba(239, 246, 255, 0.9);
  border-color: #2563EB;
  box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.18);
  border-left: 4px solid #2563EB;
}
.activity-pin-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.activity-pin-icon.punch_in {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}
.activity-pin-icon.punch_out {
  background: rgba(239, 68, 68, 0.15);
  color: #DC2626;
}
.activity-pin-icon.stopover {
  background: rgba(245, 158, 11, 0.15);
  color: #D97706;
}
.activity-pin-icon.session {
  background: rgba(99, 102, 241, 0.15);
  color: #4F46E5;
}
.activity-pin-icon.network_online,
.activity-pin-icon.service_started,
.activity-pin-icon.service_stopped {
  background: #F1F5F9;
  color: #64748B;
}
.activity-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.activity-card-row1 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.activity-card-row1 b {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-card-row1 time {
  font-size: 11px;
  font-weight: 700;
  color: #2563EB;
  flex-shrink: 0;
  margin-left: 8px;
}
.activity-card-row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.act-sub {
  font-size: 11px;
  font-weight: 500;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.act-date-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: #F1F5F9;
  color: #475569;
  flex-shrink: 0;
}
.empty-timeline,
.no-asm-selected-box {
  padding: 28px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.empty-icon,
.hint-icon {
  font-size: 26px;
  margin-bottom: 4px;
}
.empty-timeline b,
.no-asm-selected-box b {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
}
.empty-timeline p,
.no-asm-selected-box p {
  font-size: 11px;
  color: #64748B;
  margin: 0;
  line-height: 1.4;
  max-width: 260px;
}
.day-summary-footer {
  margin: 10px 14px 4px;
  padding: 10px 12px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px dashed rgba(37, 99, 235, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.day-summary-footer .day-tag {
  color: #64748B;
  font-weight: 600;
}
.clickable-asm {
  cursor: pointer;
  transition: all 0.2s ease;
}
.clickable-asm:hover {
  background: #F8FAFC;
  transform: translateX(2px);
}
.recent-all-title {
  padding: 8px 18px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 0.05em;
}
.inspected-detail-card {
  margin: 10px 14px 14px;
  padding: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98),
      rgba(240, 247, 255, 0.95));
  border: 1.5px solid #2563EB;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15), 0 4px 10px rgba(0, 0, 0, 0.04);
  animation: fadeInDown 0.25s ease-out;
}
.day-travel-timeline {
  max-height: 520px;
  overflow-y: auto;
  padding: 4px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.day-travel-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.day-travel-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.day-travel-card.selected {
  border-color: #2563EB;
  background: #F8FAFC;
  box-shadow: 0 6px 20px -2px rgba(37, 99, 235, 0.18);
  border-left: 4px solid #2563EB;
}
.day-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding-bottom: 8px;
}
.day-date-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.day-date-group .calendar-icon {
  font-size: 14px;
}
.date-formatted {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
}
.date-display {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
}
.day-header-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.day-dist-pill {
  font-size: 11px;
  font-weight: 700;
  color: #2563EB;
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
}
.shift-status-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.shift-status-pill.completed {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.shift-status-pill.active {
  background: rgba(59, 130, 246, 0.12);
  color: #2563EB;
}
.shift-status-pill.in_progress {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
}
.day-punches-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.punch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  cursor: pointer;
}
.punch-row:hover {
  background: #EFF6FF;
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateX(3px);
}
.punch-row.active-target {
  background: #DBEAFE;
  border-color: #2563EB;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}
.punch-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.punch-bullet {
  font-size: 13px;
  line-height: 1;
}
.punch-bullet.in {
  color: #10B981;
}
.punch-bullet.out {
  color: #EF4444;
}
.punch-title {
  font-size: 12px;
  font-weight: 700;
  color: #1E293B;
}
.punch-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.punch-time-val {
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
}
.inspect-chevron {
  font-size: 14px;
  font-weight: 700;
  color: #94A3B8;
  transition: transform 0.15s ease;
}
.punch-row:hover .inspect-chevron,
.punch-row.active-target .inspect-chevron {
  color: #2563EB;
  transform: translateX(2px);
}
.festival-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background:
    linear-gradient(
      135deg,
      #F59E0B 0%,
      #D97706 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.festival-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}
.festival-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 32px 16px;
  -webkit-overflow-scrolling: touch;
  animation: fadeInModal 0.25s ease-out;
}
@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.festival-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(245, 158, 11, 0.2);
  animation: scaleUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes scaleUpModal {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.festival-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(15, 23, 42, 0.6);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}
.festival-close-btn:hover {
  background: rgba(15, 23, 42, 0.85);
  transform: rotate(90deg);
}
.festival-image-wrap {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  background: #FEF3C7;
}
.festival-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.festival-body {
  padding: 28px 24px;
  text-align: center;
}
.festival-sparkles {
  font-size: 26px;
  margin-bottom: 8px;
}
.festival-title {
  font-size: 22px;
  font-weight: 800;
  color: #92400E;
  margin: 0 0 12px 0;
  letter-spacing: -0.3px;
}
.festival-message {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 24px 0;
}
.festival-actions {
  display: flex;
  justify-content: center;
}
.festival-cancel-btn {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.festival-cancel-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}
.manager-card {
  max-width: 580px;
  width: 100%;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
  overflow: hidden;
  margin: auto;
}
.manager-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid #E2E8F0;
  background: #FFFFFF;
  position: relative;
  flex-shrink: 0;
}
.manager-head h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}
.manager-card .festival-close-btn {
  position: static;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.manager-card .festival-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: rotate(90deg);
}
.manager-form {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.manager-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.manager-form input[type=text],
.manager-form input[type=number],
.manager-form input[type=datetime-local],
.manager-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}
.manager-form textarea {
  resize: vertical;
}
.toggle-wrap {
  display: flex;
  flex-direction: column;
}
.switch-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.manager-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid #E2E8F0;
  background: #F8FAFC;
  flex-shrink: 0;
}
.secondary-btn {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.secondary-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}
.primary-btn {
  background:
    linear-gradient(
      135deg,
      #2563EB 0%,
      #4F46E5 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}
.primary-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* angular:styles/global:styles */
