/* path: assets/css/app.css */
:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #6b7485;
  --line: #dfe6ef;
  --brand: #1357d8;
  --ready: #15985f;
  --watch: #c48900;
  --risk: #d9364b;
  --unknown: #7b8494;
}

* { box-sizing: border-box; }

html,
body {
  height: 100%;
  margin: 0;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.site-header {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.main-nav, .lang-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a, .main-nav button, .lang-switcher a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

.main-nav button {
  background: transparent;
  border: 0;
}

.nav-form {
  margin: 0;
}

.main-nav a.active, .main-nav a:hover, .main-nav button:hover, .lang-switcher a.active {
  background: #eaf0ff;
  color: var(--brand);
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.container-xl {
  width: min(1320px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.py-3 {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.hero-panel, .content-panel, .auth-panel, .chart-card, .privacy-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(18, 31, 53, .08);
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.hero-panel h1 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ready);
  box-shadow: 0 0 0 6px rgba(21, 152, 95, .12);
}

.risk-dot {
  background: var(--risk);
  box-shadow: 0 0 0 6px rgba(217, 54, 75, .12);
}

.maintenance-dot {
  background: var(--watch);
  box-shadow: 0 0 0 6px rgba(196, 137, 0, .14);
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.muted { color: var(--muted); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.kpi-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 18px;
  min-height: 120px;
  text-decoration: none;
  animation: riseIn .6s ease both;
}

.kpi-card[href]:hover {
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(19, 87, 216, .12);
  transform: translateY(-1px);
}

.kpi-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.kpi-value {
  margin-top: 12px;
  font-size: 34px;
  font-weight: 800;
}

.tone-ready { border-left: 5px solid var(--ready); }
.tone-watch { border-left: 5px solid var(--watch); }
.tone-risk { border-left: 5px solid var(--risk); }
.tone-neutral { border-left: 5px solid var(--brand); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.dashboard-grid .chart-card {
  grid-column: span 3;
}

.dashboard-grid .chart-card:last-child:nth-child(odd) {
  grid-column: span 6;
}

.chart-card h2 { margin: 0; }
.chart-canvas {
  min-height: 260px;
  margin-top: 18px;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  padding: 16px;
}

.donut-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.donut-chart {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.donut-chart circle {
  animation: donutIn .9s ease both;
}

.donut-chart text {
  transform: rotate(90deg);
  transform-origin: 50% 50%;
  fill: var(--ink);
}

.donut-total {
  font-size: 15px;
  font-weight: 800;
}

.donut-caption {
  font-size: 8px;
  fill: var(--muted);
}

.chart-legend {
  display: grid;
  gap: 9px;
}

.legend-item, .bar-row {
  animation: riseIn .5s ease both;
}

.legend-item {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.legend-item span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.bar-chart {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 3fr minmax(48px, auto);
  gap: 10px;
  align-items: center;
}

.bar-row__label, .bar-row__value {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.bar-row__value {
  color: var(--ink);
  text-align: right;
}

.bar-row__track {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f7;
}

.bar-row__track span {
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color);
  animation: barGrow .9s ease both;
  transform-origin: left center;
}

.empty-chart {
  display: grid;
  min-height: 210px;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.privacy-note {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.risk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.risk-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(18, 31, 53, .08);
}

.priority-list,
.action-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.priority-item,
.risk-action {
  animation: riseIn .5s ease both;
}

.priority-item {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 8px;
  background: #f8fbff;
}

.priority-item strong,
.risk-action strong {
  display: block;
}

.priority-item span,
.risk-action p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.priority-risk { border-left-color: var(--risk); }
.priority-watch { border-left-color: var(--watch); }
.priority-unknown { border-left-color: var(--unknown); }

.priority-value {
  min-width: 86px;
  text-align: right;
}

.priority-value strong {
  font-size: 28px;
}

.risk-action {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.risk-action > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  background: var(--risk);
  font-weight: 900;
}

.maintenance-action > span {
  background: var(--watch);
  color: #201600;
}

.zone-summary-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.zone-summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--watch);
  border-radius: 8px;
  background: #f8fbff;
  animation: riseIn .5s ease both;
}

.zone-summary-item strong,
.zone-summary-item span {
  display: block;
}

.zone-summary-item span {
  color: var(--muted);
  font-size: 14px;
}

.zone-summary-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.zone-summary-metrics span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.form-stack {
  display: grid;
  gap: 14px;
  max-width: 440px;
}

.form-stack label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input, button, select, textarea {
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 11px 12px;
  font: inherit;
}

textarea {
  resize: vertical;
}

button, .button-link {
  border: 0;
  background: var(--brand);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.button-danger {
  border: 0;
  border-radius: 8px;
  background: var(--risk);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  min-height: 42px;
  padding: 10px 14px;
}

.main-nav .nav-form button {
  background: transparent;
  color: var(--muted);
  border: 0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.button-link.secondary {
  background: #eaf0ff;
  color: var(--brand);
}

.button-link.small {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 13px;
}

.alert {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.alert-error {
  color: #8a1020;
  background: #ffe9ee;
  border: 1px solid #ffc5d0;
}

.alert-success {
  color: #0d5c39;
  background: #e7f7ef;
  border: 1px solid #bfe9d1;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  min-height: 112px;
  color: var(--ink);
  text-decoration: none;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-stat-card.active {
  border-color: #9fb5ff;
  background: #eef4ff;
}

.admin-stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.admin-stat-card strong {
  font-size: 34px;
}

.admin-action-grid, .admin-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.admin-action-grid a {
  padding: 16px;
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ldap-result-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ldap-result-card strong {
  color: var(--ink);
}

.admin-filter, .inline-form, .report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.form-actions {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin: 0 -16px -16px;
  padding: 10px;
  background: #fff;
  border-top: 1px solid #eee;
  text-align: right;
}

.admin-filter {
  margin: 18px 0;
}

.admin-filter label, .admin-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form.compact {
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.form-group {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.form-group label,
.camera-form-page label {
  font-size: 13px;
  margin-bottom: 2px;
}

.form-control {
  width: 100%;
  min-width: 0;
}

.form-control-sm {
  padding: 6px 10px;
  font-size: 14px;
}

.checkbox-label {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
  color: var(--ink) !important;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
}

.readiness-panel {
  gap: 12px;
}

.readiness-panel .muted {
  margin: 6px 0 0;
}

.readiness-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.score-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.score-item {
  flex: 1 1 180px;
}

.readiness-option {
  justify-content: space-between;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.readiness-option span {
  min-width: 0;
}

.readiness-option strong {
  color: var(--brand);
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.admin-table th, .admin-table td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.action-cell {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.link-button {
  padding: 0;
  color: var(--brand);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
}

.link-button.danger {
  color: var(--risk);
}

.status-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.status-normal,
.status-closed {
  background: var(--ready);
}

.status-open {
  background: #1357d8;
}

.status-watch {
  background: var(--watch);
  color: #241700;
}

.status-problem {
  background: #e76f00;
}

.status-critical {
  background: var(--risk);
}

.status-ok {
  background: var(--ready);
}

.status-due {
  background: var(--watch);
  color: #241700;
}

.status-overdue {
  background: var(--risk);
}

.status-never_checked {
  background: #f5c542;
  color: #241700;
}

.status-battery_weak {
  background: var(--watch);
  color: #241700;
}

.status-replace_required {
  background: var(--risk);
}

.status-sent_repair {
  background: #2f80ed;
}

.status-retired {
  background: var(--unknown);
}

.sort-link {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.sort-link span {
  color: var(--brand);
  font-weight: 900;
}

.update-badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.update-never {
  color: #4e5969;
  background: #eef2f7;
  border: 1px solid #d9e1ec;
}

.update-stale {
  color: #7a4800;
  background: #fff0cf;
  border: 1px solid #ffd98a;
}

.update-fresh {
  color: #0d5c39;
  background: #e7f7ef;
  border: 1px solid #bfe9d1;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
}

.pagination a {
  display: inline-flex;
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  color: var(--brand);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.pagination a.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.pagination a.disabled {
  color: var(--muted);
  pointer-events: none;
  background: #f3f6fa;
}

.camera-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 16px;
}

.camera-editor-panel {
  display: grid;
  gap: 14px;
  padding: 12px 16px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.camera-delete-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #ffc5d0;
  border-radius: 8px;
  background: #fff5f7;
}

.camera-delete-panel h2 {
  margin: 0 0 4px;
  color: #8a1020;
  font-size: 18px;
}

.camera-delete-panel p {
  margin: 0;
}

.camera-dependency-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.camera-dependency-list span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid #ffc5d0;
  border-radius: 999px;
  background: #fff;
  color: #8a1020;
  font-size: 12px;
  font-weight: 800;
}

.camera-editor-panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card-body {
  padding: 12px 16px;
}

.camera-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.camera-preview-grid-stacked {
  margin-bottom: 12px;
}

.camera-preview-image, .camera-preview-empty {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.camera-preview-image {
  display: block;
  object-fit: cover;
}

.camera-preview-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.camera-edit-map {
  width: 100%;
  height: 360px;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.coordinate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.location-manager-control {
  display: flex;
  align-items: end;
}

body.modal-open {
  overflow: hidden;
}

.app-dialog {
  position: fixed;
  inset: 0;
  width: min(1200px, 95vw);
  max-width: 95vw;
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 30, 55, .28);
  overflow: hidden;
}

.app-dialog::backdrop {
  background: rgba(8, 18, 35, .45);
}

.modal-dialog {
  width: 100%;
  max-width: 95vw;
  margin: 0;
}

.modal-xl {
  width: 100%;
}

.modal-dialog-scrollable {
  max-height: 90vh;
}

.modal-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 13px;
}

.modal-header,
.dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.modal-header {
  position: sticky;
  top: 0;
  flex: 0 0 auto;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.modal-header h2,
.dialog-header h2 {
  margin: 0;
  font-size: 18px;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 12px;
}

.modal-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.dialog-close {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.location-manager-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.location-manager-grid.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.location-manager-grid > [class*="col-"] {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -4px;
}

.row > [class*="col-"] {
  padding: 4px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.location-manager-form h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.location-manager-message {
  padding: 6px 8px;
  border-radius: 8px;
  font-weight: 800;
  margin-bottom: 8px;
}

.location-manager-form.admin-form.compact {
  gap: 6px;
  padding: 8px;
}

.modal-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.modal-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 6px;
  align-content: start;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.modal-card h4 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

.modal-card-status {
  grid-template-columns: 1fr;
}

.modal-card-wide {
  grid-column: 1 / -1;
}

.modal-card label {
  gap: 2px;
  min-width: 0;
  font-size: 11.5px;
}

.modal-card input,
.modal-card select,
.modal-card textarea {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 5px 7px;
  font-size: 12.5px;
}

.modal-card textarea {
  min-height: 40px;
  resize: none;
}

.modal-card .checkbox-label {
  min-height: 30px;
  display: inline-flex !important;
  flex-wrap: wrap;
  align-content: center;
}

.modal-footer button,
.modal-footer .button-link {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

@media (max-width: 1200px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.leaflet-container {
  background: #eef3f8;
}

.leaflet-container .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}

.leaflet-container .leaflet-pane,
.leaflet-container .leaflet-tile-container {
  transform-origin: 0 0;
}

.is-hidden {
  display: none !important;
}

.map-panel {
  width: 100%;
  height: calc(100vh - 80px);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cctv-map-shell {
  display: block;
  max-width: 100%;
  overflow: hidden;
  padding: 18px;
}

.map-page {
  overflow: hidden;
}

.map-page .page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.map-page .site-footer {
  display: none;
}

.cctv-map-fullscreen {
  width: 100%;
  height: calc(100dvh - var(--map-header-height, 67px));
  margin: 0;
  padding: 0;
  background: #eef3f8;
}

.cctv-map-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cctv-map-frame {
  width: 100%;
  height: 100%;
  background: #eef3f8;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.cctv-map-panel {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 0;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  position: relative;
}

.cctv-map-panel.leaflet-container {
  width: 100%;
  height: 100%;
  max-height: none;
  overflow: hidden;
}

.cctv-map-frame .leaflet-pane,
.cctv-map-frame .leaflet-control-container,
.cctv-map-frame .leaflet-top,
.cctv-map-frame .leaflet-bottom {
  max-width: 100%;
}

.cctv-map-frame .leaflet-control-zoom {
  margin-left: 12px;
  margin-top: 86px;
}

.cctv-map-legend {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  max-width: min(520px, calc(100% - 20px));
  padding: 9px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(220, 227, 237, .95);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(28, 39, 60, .16);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.cctv-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.page-heading h1 {
  margin: 4px 0 8px;
}

.page-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.map-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
}

.legend-dot.ready { background: var(--ready); }
.legend-dot.watch { background: var(--watch); }
.legend-dot.high-risk { background: var(--risk); }
.legend-dot.unknown { background: var(--unknown); }
.legend-dot.pdpa-sign { background: #f5c542; }
.legend-dot.ups { background: #2f80ed; }

.map-status {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 900;
  max-width: min(420px, calc(100% - 24px));
  margin-top: 0;
  min-height: 20px;
  padding: 0;
  font-weight: 800;
}

.readiness-marker,
.clean-map-marker,
.clean-map-cluster {
  background: transparent;
  border: 0;
}

.clean-map-marker span {
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(28, 39, 60, .22);
  display: block;
  height: 14px;
  width: 14px;
}

.clean-map-marker--ready span { background: #189a62; }
.clean-map-marker--watch span { background: #d89216; }
.clean-map-marker--high_risk span { background: #d9364b; }
.clean-map-marker--unknown span { background: #7b8494; }

.pdpa-sign-marker,
.ups-marker {
  background: transparent;
  border: 0;
}

.pdpa-sign-marker span {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #f5c542;
  box-shadow: 0 8px 18px rgba(91, 70, 0, .25);
}

.pdpa-sign-marker.is-due span {
  animation: pdpaSignPulse 1.45s ease-in-out infinite;
}

.pdpa-sign-marker.is-overdue span {
  background: #ffb000;
  animation: pdpaSignPulseStrong .8s ease-in-out infinite;
}

.ups-marker span {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #2f80ed;
  box-shadow: 0 8px 18px rgba(21, 85, 153, .26);
}

.ups-marker.is-overdue span {
  animation: upsPulse 1s ease-in-out infinite;
}

.clean-map-cluster {
  align-items: center;
  border: 3px solid rgba(255,255,255,.88);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(28, 39, 60, .25);
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
}

.clean-map-cluster--ready { background: #189a62; }
.clean-map-cluster--watch { background: #d89216; }
.clean-map-cluster--high_risk { background: #d9364b; }
.clean-map-cluster--unknown { background: #7b8494; }

.clean-map-cluster span {
  line-height: 1;
}

.cctv-map-shell .leaflet-popup-content-wrapper {
  border: 1px solid #dce3ed;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(28, 39, 60, .18);
}

.cctv-map-shell .leaflet-popup-content {
  margin: 0;
}

.clean-map-popup {
  color: var(--ink);
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  min-width: 250px;
  padding: 14px;
}

.clean-map-popup header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.clean-map-popup header strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.clean-map-popup dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.clean-map-popup dl div {
  display: grid;
  gap: 8px;
  grid-template-columns: 96px 1fr;
}

.clean-map-popup dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.clean-map-popup dd {
  color: #374151;
  font-size: 13px;
  margin: 0;
  overflow-wrap: anywhere;
}

.clean-status {
  border-radius: 999px;
  color: white;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 7px;
  white-space: nowrap;
}

.clean-status--ready { background: #189a62; }
.clean-status--watch { background: #d89216; }
.clean-status--high_risk { background: #d9364b; }
.clean-status--unknown { background: #7b8494; }
.clean-status--pdpa-ok { background: #189a62; }
.clean-status--pdpa-due { background: #d89216; color: #241700; }
.clean-status--pdpa-overdue { background: #d9364b; }
.clean-status--pdpa-never_checked { background: #f5c542; color: #241700; }
.clean-status--ups-normal { background: #189a62; }
.clean-status--ups-battery_weak { background: #d89216; color: #241700; }
.clean-status--ups-replace_required { background: #d9364b; }
.clean-status--ups-sent_repair { background: #2f80ed; }
.clean-status--ups-retired { background: #7b8494; }

.clean-map-popup__photo {
  display: block;
  width: 230px;
  max-width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.clean-map-popup__action {
  align-items: center;
  background: #eef4ff;
  border: 1px solid #cddcff;
  border-radius: 8px;
  color: var(--brand);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  margin-top: 12px;
  min-height: 34px;
  padding: 7px 12px;
  text-decoration: none;
}

.clean-map-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.clean-map-popup__actions .clean-map-popup__action {
  margin-top: 0;
}

.clean-map-popup__action--accent {
  background: #e7f7ef;
  border-color: #bfe9d1;
  color: #0d5c39;
}

.clean-map-popup__action--accent:hover {
  background: #d8f0e4;
}

.clean-map-popup__action:hover {
  background: #e2ebff;
  text-decoration: none;
}

.clean-map-popup--pdpa,
.clean-map-popup--ups {
  min-width: 270px;
}

.pdpa-map-popup__photo,
.ups-map-popup__photo {
  width: 280px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.pdpa-sign-preview,
.ups-preview {
  display: block;
  width: min(420px, 100%);
  max-height: 320px;
  margin: 10px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.ups-device-list {
  display: grid;
  gap: 10px;
}

.ups-device-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto;
  align-items: center;
}

.camera-check-grid,
.camera-check-uploads,
.check-detail-grid,
.photo-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.camera-check-grid label,
.camera-check-uploads label,
.check-note-card,
.check-detail-card,
.photo-card,
.daily-check-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.camera-check-grid textarea,
.camera-check-uploads input,
.daily-check-note-row input,
.daily-check-item select,
.daily-check-countdown {
  width: 100%;
}

.camera-check-wide {
  grid-column: 1 / -1;
}

.camera-check-inline {
  align-self: end;
  min-height: 44px;
}

.upload-preview {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.upload-preview img {
  display: block;
  width: 100%;
  max-height: 180px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.check-detail-card,
.check-note-card {
  display: grid;
  gap: 6px;
}

.check-note-card h2 {
  margin: 0;
  font-size: 16px;
}

.check-note-card p {
  margin: 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.photo-card {
  display: grid;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.photo-card img,
.document-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.photo-card img {
  display: block;
  object-fit: cover;
}

.document-preview {
  display: grid;
  place-items: center;
  color: var(--risk);
  font-size: 28px;
  font-weight: 900;
}

.timeline-list,
.daily-check-list {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.timeline-item .muted {
  grid-column: 2;
}

.daily-check-toolbar {
  align-items: end;
  margin: 0 0 14px;
}

.daily-check-pagebar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.daily-check-pagebar-bottom {
  margin-top: 14px;
  margin-bottom: 0;
}

.daily-check-pagebar .pagination {
  margin-top: 0;
}

.daily-note {
  flex: 1 1 280px;
}

.daily-check-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  background: #fff;
}

.daily-check-camera-media {
  min-width: 0;
}

.daily-check-camera-media a,
.daily-check-no-image {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 150px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f8;
  color: var(--muted);
  font-weight: 900;
  text-decoration: none;
}

.daily-check-camera-media img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  display: block;
  object-fit: cover;
}

.daily-check-content {
  min-width: 0;
}

.daily-check-camera-link {
  color: var(--ink);
  text-decoration: none;
}

.daily-check-camera-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.daily-check-item header,
.daily-check-note-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 10px;
  align-items: center;
}

.daily-check-last-checked {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
}

.daily-check-last-checked strong {
  font-weight: 900;
}

.daily-check-countdown {
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #e0b84d;
  border-radius: 8px;
  background: #fff8df;
  color: #6b4b00;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-align: center;
}

.daily-check-countdown.is-ready {
  border-color: #73b887;
  background: #eaf7ee;
  color: #166434;
}

.daily-check-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.daily-check-options label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  font-size: 13px;
  font-weight: 800;
}

.daily-check-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.daily-check-result-grid div {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.daily-check-result-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.daily-check-result-grid dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.daily-check-screenshot-preview {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  width: 100%;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.daily-check-screenshot-preview:hover {
  color: var(--brand);
}

.daily-check-screenshot-preview img {
  display: block;
  width: 100%;
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f8;
  object-fit: contain;
}

.daily-check-summary-grid {
  margin-top: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.daily-check-status-chart {
  display: grid;
  gap: 12px;
}

.daily-check-round {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.daily-check-round__heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.daily-check-round__heading a {
  color: var(--ink);
  text-decoration: none;
}

.daily-check-round__heading a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.daily-check-round__heading p {
  margin: 4px 0 0;
}

.daily-check-round__summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.daily-check-round__bars {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.daily-check-round__items {
  margin-top: 2px;
}

.daily-check-status-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.daily-check-status-row__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.daily-check-status-row__meta a {
  color: var(--ink);
  text-decoration: none;
}

.daily-check-status-row__meta a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.daily-check-status-bars {
  display: grid;
  gap: 7px;
}

.daily-check-status-bar {
  display: grid;
  grid-template-columns: minmax(82px, 120px) minmax(0, 1fr) minmax(34px, auto);
  gap: 8px;
  align-items: center;
  min-height: 28px;
  font-size: 12px;
  font-weight: 900;
}

.daily-check-status-bar::before {
  content: "";
  display: block;
  width: var(--bar-width);
  height: 12px;
  border-radius: 999px;
  background: var(--bar-color, var(--brand));
  grid-column: 2;
  grid-row: 1;
}

.daily-check-status-bar span {
  grid-column: 1;
  color: var(--muted);
}

.daily-check-status-bar strong {
  grid-column: 3;
  font-variant-numeric: tabular-nums;
}

.daily-check-status-bar--normal { --bar-color: var(--ready); }
.daily-check-status-bar--watch { --bar-color: var(--watch); }
.daily-check-status-bar--problem { --bar-color: var(--risk); }
.daily-check-status-bar--critical { --bar-color: #8a1020; }

.daily-detail-note {
  margin-top: 14px;
}

.clean-map-popup--viewer {
  min-width: 260px;
}

.clean-map-popup--viewer .clean-map-popup__photo {
  aspect-ratio: 16 / 10;
  width: 280px;
}

.site-footer {
  padding: 18px 24px;
  text-align: center;
  color: var(--muted);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes donutIn {
  from { stroke-dashoffset: 260; opacity: .35; }
  to { opacity: 1; }
}

@keyframes pdpaSignPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 18px rgba(91, 70, 0, .25), 0 0 0 0 rgba(245, 197, 66, .42); }
  50% { transform: scale(1.12); box-shadow: 0 8px 18px rgba(91, 70, 0, .25), 0 0 0 9px rgba(245, 197, 66, 0); }
}

@keyframes pdpaSignPulseStrong {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 18px rgba(91, 70, 0, .25), 0 0 0 0 rgba(217, 54, 75, .42); }
  50% { transform: scale(1.2); box-shadow: 0 8px 18px rgba(91, 70, 0, .25), 0 0 0 11px rgba(217, 54, 75, 0); }
}

@keyframes upsPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 18px rgba(21, 85, 153, .26), 0 0 0 0 rgba(47, 128, 237, .42); }
  50% { transform: scale(1.18); box-shadow: 0 8px 18px rgba(21, 85, 153, .26), 0 0 0 11px rgba(47, 128, 237, 0); }
}

@media (max-width: 980px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero-panel { align-items: flex-start; flex-direction: column; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .cctv-map-topbar { align-items: flex-start; flex-direction: column; }
  .cctv-map-panel,
  .cctv-map-panel.leaflet-container {
    height: 460px;
    max-height: 460px;
  }
  .admin-stat-grid, .admin-action-grid, .admin-split, .form-grid, .camera-editor-grid, .readiness-options, .location-manager-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid .chart-card,
  .dashboard-grid .chart-card:last-child:nth-child(odd) { grid-column: auto; }
  .donut-layout { grid-template-columns: 1fr; }
  .risk-layout { grid-template-columns: 1fr; }
  .daily-check-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .daily-check-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .daily-check-round__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal-content {
    font-size: 12.5px;
  }
  .location-manager-grid,
  .location-manager-grid.row,
  .modal-card-grid,
  .modal-card {
    grid-template-columns: 1fr;
  }
  .col-md-6 {
    flex-basis: 100%;
    max-width: 100%;
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 10px;
    padding-right: 10px;
  }
  .camera-check-grid,
  .camera-check-uploads,
  .check-detail-grid,
  .photo-grid,
  .daily-check-item,
  .daily-check-item header,
  .daily-check-note-row {
    grid-template-columns: 1fr;
  }
  .daily-check-status-row {
    grid-template-columns: 1fr;
  }
  .daily-check-round__heading {
    flex-direction: column;
  }
  .daily-check-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .daily-check-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell { padding: 14px; }
  .cctv-map-shell { padding: 12px; }
  .cctv-map-frame { padding: 6px; }
  .cctv-map-panel,
  .cctv-map-panel.leaflet-container {
    height: 320px;
    max-height: 320px;
  }
  .cctv-map-legend {
    gap: 8px;
    font-size: 12px;
  }
  .clean-map-popup {
    min-width: 210px;
  }
  .clean-map-popup dl div {
    grid-template-columns: 82px 1fr;
  }
  .kpi-grid, .dashboard-grid, .admin-stat-grid, .admin-action-grid, .admin-split, .form-grid, .camera-editor-grid, .camera-preview-grid, .readiness-options, .coordinate-grid, .location-manager-grid, .ups-device-row { grid-template-columns: 1fr; }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .zone-summary-item { grid-template-columns: 1fr; }
  .zone-summary-metrics { justify-content: flex-start; }
  .daily-check-summary-grid { grid-template-columns: 1fr; }
  .daily-check-round__summary { grid-template-columns: 1fr; }
  .daily-check-status-bar {
    grid-template-columns: 1fr minmax(34px, auto);
  }
  .daily-check-status-bar::before {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .daily-check-status-bar span { grid-column: 1; }
  .daily-check-status-bar strong { grid-column: 2; }
  .main-nav a, .lang-switcher a { padding: 7px 8px; }
  .daily-check-options {
    grid-template-columns: 1fr;
  }
  .daily-check-result-grid {
    grid-template-columns: 1fr;
  }
  .timeline-item {
    grid-template-columns: 1fr;
  }
  .timeline-item .muted {
    grid-column: auto;
  }
}

.cctv-map-shell.cctv-map-fullscreen {
  height: calc(100dvh - var(--map-header-height, 67px));
  margin: 0;
  padding: 0;
}

.cctv-map-fullscreen .cctv-map-frame {
  height: 100%;
  padding: 0;
}

.cctv-map-fullscreen .cctv-map-panel,
.cctv-map-fullscreen .cctv-map-panel.leaflet-container,
#publicMap {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border-radius: 0;
}
