/* v4 shell — topbar + content; do NOT reset sidebar font (breaks customer-theme) */

.v4-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  flex: none;
}

.v4-topbar-main {
  min-width: 0;
  flex: 1;
}

.v4-topbar-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.v4-topbar h1 {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.v4-topbar.is-station h1 {
  font-size: 16px;
}

.v4-topbar-live {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
}

.v4-topbar-live .live {
  display: inline-block;
  margin: 0 2px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #1ea84b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.v4-topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.v4-topbar-actions button {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.v4-topbar-actions .primary {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: #fff;
}

.customer-content {
  flex: 1;
  overflow: auto;
  padding: 14px 18px 24px;
  min-height: 0;
}

.customer-content .pdf-slide-title,
.customer-content .pdf-slide-sub,
.customer-content .pdf-footer-logo,
.customer-content .pdf-footnote {
  display: none;
}

[data-v4-app] .workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

[data-v4-app] .sidebar-reopen {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
}

[data-v4-app][data-sidebar="open"] .sidebar-reopen {
  display: none;
}

/* Match v3: profile-scope exists in DOM but is not shown */
[data-v4-app] .profile-scope {
  display: none !important;
}

/* Native chrome only — never use font:inherit (overrides .nav-item sizes) */
[data-v4-app] .sidebar button.nav-item,
[data-v4-app] .sidebar button.chev,
[data-v4-app] .sidebar .admin-action {
  appearance: none;
  -webkit-appearance: none;
}

/* —— Data mapping mode (icons + modal; silent attribution in JSON only) —— */
.v4-topbar-actions [data-req-capture-toggle][hidden] {
  display: none !important;
}

.v4-topbar-actions [data-req-capture-toggle].is-on {
  background: #1a5fb4;
  border-color: #1a5fb4;
  color: #fff;
}

html.is-req-capture [data-component-id][data-source] {
  outline: 1px dashed rgba(26, 95, 180, 0.35);
  outline-offset: 1px;
}

.req-map-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 6;
  width: 22px;
  height: 22px;
  border: 1px solid #1a5fb4;
  border-radius: 6px;
  background: #fff;
  color: #1a5fb4;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.req-map-btn.is-mapped {
  background: #1ea84b;
  border-color: #1ea84b;
  color: #fff;
}

.req-map-btn.is-selected {
  box-shadow: 0 0 0 2px #f3711f;
}

html.is-req-capture [data-component-id].is-req-selected {
  outline: 2px solid rgba(243, 113, 31, 0.75);
  outline-offset: 1px;
}

.req-map-toolbar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line, #d8dde6);
  background: var(--card, #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  font-family: inherit;
}

.req-map-toolbar button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: 1px solid #c5cedd;
  border-radius: 999px;
  background: #fff;
  color: #1a2233;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: none;
}

.req-map-toolbar button:hover:not(:disabled) {
  border-color: #1a5fb4;
  color: #1a5fb4;
}

.req-map-toolbar button.primary {
  background: #1a5fb4;
  border-color: #1a5fb4;
  color: #fff;
}

.req-map-toolbar button.primary:hover:not(:disabled) {
  background: #154e96;
  border-color: #154e96;
  color: #fff;
}

.req-map-toolbar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.req-map-toolbar-count {
  min-width: 1.5em;
  padding: 4px 9px;
  border-radius: 999px;
  background: #1a5fb4;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.req-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  padding: 8px 14px;
  border-radius: 999px;
  background: #0b3b75;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
}

.req-modal-root {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
}

.req-modal-root[hidden] {
  display: none !important;
}

.req-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.req-modal {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 24px));
  max-height: min(92vh, 720px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--line, #d8dde6);
  background: var(--card, #fff);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  padding: 14px 16px 12px;
  color: var(--ink, #1a1f2c);
}

.req-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.req-modal-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.req-modal-x {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: inherit;
}

.req-modal-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--ink-500, #5b6578);
  line-height: 1.4;
}

.req-modal-checklist {
  max-height: 220px;
  overflow: auto;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line, #d8dde6);
  border-radius: 10px;
  background: var(--bg, #f5f7fb);
}

.req-modal-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}

.req-modal-check:has(input:checked) {
  background: rgba(47, 123, 224, 0.08);
}

.req-modal-check-body {
  min-width: 0;
}

.req-modal-display {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-900, #1a2233);
  line-height: 1.3;
}

.req-modal-meta {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--ink-500, #5b6578);
  font-style: normal;
  line-height: 1.35;
  word-break: break-all;
}

.req-modal-meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  background: transparent;
}

.req-modal-check.is-mapped .req-modal-display::after {
  content: " · mapped";
  font-weight: 500;
  color: #1ea84b;
  font-size: 11px;
}

.req-modal-field input[type="text"] {
  width: 100%;
  border: 1px solid var(--line, #d8dde6);
  border-radius: 8px;
  padding: 8px;
  font: inherit;
  font-weight: 500;
  background: #fff;
  color: inherit;
}

.req-modal-readonly > div {
  display: grid;
  gap: 2px;
}

.req-modal-readonly span {
  color: var(--ink-500, #5b6578);
  font-weight: 600;
}

.req-modal-readonly code {
  word-break: break-all;
  font-size: 11px;
}

.req-modal-auto {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-500, #5b6578);
}

.req-required {
  color: #c2410c;
  font-weight: 700;
  font-style: normal;
  margin-left: 4px;
}

.req-optional {
  color: var(--ink-500, #5b6578);
  font-weight: 500;
  font-style: normal;
  margin-left: 4px;
}

.req-attach-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.req-attach-upload {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #1a5fb4;
  border-radius: 8px;
  background: #eef4ff;
  color: #1a5fb4;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.req-attach-hint {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-500, #5b6578);
}

.req-attach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.req-attach-card {
  position: relative;
  margin: 0;
  border: 1px solid var(--line, #d8dde6);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg, #f5f7fb);
}

.req-attach-card img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.req-attach-missing {
  display: grid;
  place-items: center;
  height: 72px;
  font-size: 10px;
  color: #889;
}

.req-attach-card figcaption {
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.req-attach-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.req-attach-error {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #b42318;
}

.req-attach-error[hidden] {
  display: none !important;
}

.req-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.req-seg-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--line, #d8dde6);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: inherit;
}

.req-seg-item:has(input:checked) {
  border-color: #1a5fb4;
  background: rgba(26, 95, 180, 0.08);
  color: #1a5fb4;
}

.req-seg-item input {
  margin: 0;
}

.req-clickable-section {
  padding: 10px;
  border: 1px dashed rgba(26, 95, 180, 0.35);
  border-radius: 10px;
  background: rgba(26, 95, 180, 0.03);
}

.req-clickable-branch {
  margin-top: 8px;
}

.req-mock-field {
  margin-top: 4px;
}

.req-attach-card.is-mock {
  outline: 2px dashed var(--accent, #1a5fb4);
}

html[data-theme="dark"] .req-attach-card.is-mock {
  outline-color: #9ec1ff;
}

html[data-theme="dark"] .req-seg-item {
  background: #151922;
  border-color: #343c4d;
}

html[data-theme="dark"] .req-seg-item:has(input:checked) {
  background: rgba(158, 193, 255, 0.12);
  border-color: #9ec1ff;
  color: #9ec1ff;
}

html[data-theme="dark"] .req-clickable-section {
  background: rgba(158, 193, 255, 0.06);
  border-color: rgba(158, 193, 255, 0.35);
}

.req-modal-field input[type="text"] {
  width: 100%;
  border: 1px solid var(--line, #d8dde6);
  border-radius: 8px;
  padding: 8px;
  font: inherit;
  font-weight: 500;
  background: #fff;
  color: inherit;
}

#app-root [data-component-id].is-req-demo-link {
  cursor: pointer;
  outline: 1px dashed transparent;
  transition: outline-color 0.15s ease;
}

#app-root [data-component-id].is-req-demo-link:hover {
  outline-color: rgba(26, 95, 180, 0.55);
}

.req-modal-field {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
}

.req-modal-field-hint {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #b45309;
  line-height: 1.35;
}

.req-modal-field-hint.is-muted {
  color: #64748b;
}

.req-modal-field-hint[hidden] {
  display: none !important;
}

.req-clickable-branch {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.req-clickable-branch[hidden],
[data-req-link-app][hidden],
[data-req-link-external][hidden] {
  display: none !important;
}

.req-modal-field input[type="url"],
.req-modal-field input[type="text"] {
  width: 100%;
  border: 1px solid var(--line, #d8dde6);
  border-radius: 8px;
  padding: 8px;
  font: inherit;
  font-weight: 500;
  background: #fff;
  color: inherit;
  box-sizing: border-box;
}

.req-modal-field select,
.req-modal-field textarea {
  width: 100%;
  border: 1px solid var(--line, #d8dde6);
  border-radius: 8px;
  padding: 8px;
  font: inherit;
  font-weight: 500;
  background: #fff;
  color: inherit;
}

.req-modal-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.req-modal-spacer {
  flex: 1;
}

.req-modal-foot button {
  border: 1px solid var(--line, #d8dde6);
  background: #fff;
  border-radius: 8px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.req-modal-foot button.primary {
  background: #1a5fb4;
  border-color: #1a5fb4;
  color: #fff;
}

html[data-theme="dark"] .req-map-btn {
  background: #1c2230;
  color: #9ec1ff;
}

html[data-theme="dark"] .req-map-toolbar,
html[data-theme="dark"] .req-modal {
  background: #1c2230;
  border-color: #343c4d;
  color: #e8ecf4;
}

html[data-theme="dark"] .req-modal-readonly,
html[data-theme="dark"] .req-modal-field select,
html[data-theme="dark"] .req-modal-field textarea,
html[data-theme="dark"] .req-map-toolbar button,
html[data-theme="dark"] .req-modal-foot button {
  background: #151a24;
  border-color: #343c4d;
  color: #e8ecf4;
}

/* Workforce / team shell pages (ported from v3 behavior) */
.customer-content .workforce-view,
.customer-content .team-view {
  display: block;
  padding: 12px 4px 24px;
}

.customer-content .workforce-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.customer-content .workforce-toolbar label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-500, #667);
}

.customer-content .workforce-toolbar input {
  min-width: min(280px, 70vw);
  padding: 8px 10px;
  border: 1px solid var(--line, #d8dde6);
  border-radius: 8px;
  background: var(--card, #fff);
  color: var(--text, #1a1f2a);
}

.customer-content [data-assign-modal] {
  z-index: 40;
}

/* Sidebar: clear enabled vs unavailable menus */
[data-v4-app] .sidebar .nav-item.is-enabled {
  color: #f1f5fc;
  background: rgb(255 255 255 / 7%);
  font-weight: 700;
  cursor: pointer;
}

[data-v4-app] .sidebar .nav-group > .nav-item.is-enabled,
[data-v4-app] .sidebar .station-links .nav-item.is-enabled {
  color: #eef3fb;
  background: rgb(255 255 255 / 6%);
  border-left-color: rgb(243 113 31 / 55%);
  font-weight: 700;
}

[data-v4-app] .sidebar .nav-item.is-enabled:hover,
[data-v4-app] .sidebar .nav-item.is-enabled:focus-visible {
  background: rgb(243 113 31 / 18%);
  color: #fff;
}

[data-v4-app] .sidebar .nav-item.is-active {
  color: #fff;
  background: rgb(243 113 31 / 28%);
  border-left-color: var(--orange-500, #f3711f);
  box-shadow: inset 0 0 0 1px rgb(243 113 31 / 25%);
}

[data-v4-app] .sidebar .nav-item.is-muted,
[data-v4-app] .sidebar .nav-group > .nav-item.is-muted {
  color: #5c677d;
  opacity: 0.55;
  background: transparent;
  border-left-color: transparent;
  font-weight: 500;
  cursor: not-allowed;
}

[data-v4-app] .sidebar .nav-item.is-muted:hover,
[data-v4-app] .sidebar .nav-item.is-muted:focus-visible {
  background: transparent;
  color: #5c677d;
}

/* Map hosts on workforce / team widgets */
.customer-content .staffing-card,
.customer-content .workforce-roster__row,
.customer-content .operator-tracking__row,
.customer-content .attendance-summary-card,
.customer-content .team-summary-card,
.customer-content .crew-chip {
  position: relative;
}

/* —— Admin data maps (#/admin/data-maps) —— */
.admin-maps {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 12px 32px;
}
.admin-maps-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}
.admin-maps-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.admin-maps-head h2 {
  margin: 4px 0;
  font-size: 1.45rem;
}
.admin-maps-sub,
.admin-maps-note,
.admin-maps-muted,
.admin-maps-meta {
  color: #6b7280;
  font-size: 0.9rem;
}
.admin-maps-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-maps-gate {
  max-width: 420px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d7dde8;
  border-radius: 10px;
  background: #f8fafc;
}
.admin-maps-gate label,
.admin-maps-detail label,
.admin-maps-grid label {
  display: grid;
  gap: 4px;
  font-size: 0.85rem;
}
.admin-maps-gate input,
.admin-maps-detail input,
.admin-maps-detail select,
.admin-maps-detail textarea,
.admin-maps-grid input,
.admin-maps-grid select {
  padding: 8px 10px;
  border: 1px solid #c9d2e0;
  border-radius: 8px;
  font: inherit;
}
.admin-maps-error {
  color: #b42318;
  font-size: 0.9rem;
}
.admin-maps-layout.is-full-table {
  display: block;
}
.admin-table-wrap.is-full {
  width: 100%;
  max-height: calc(100vh - 200px);
}
.admin-maps-layout.is-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 16px;
  align-items: start;
}
@media (max-width: 960px) {
  .admin-maps-layout.is-table {
    grid-template-columns: 1fr;
  }
}
.admin-maps-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-maps-search {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 14rem;
  min-width: 12rem;
  font-size: 0.75rem;
}
.admin-maps-search-label {
  opacity: 0.75;
}
.admin-maps-search input {
  width: 100%;
  min-height: 2rem;
  padding: 4px 8px;
  border: 1px solid #c9d2e0;
  border-radius: 8px;
  font: inherit;
}
.admin-th-seq,
.admin-td-seq {
  width: 2.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}
.admin-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}
.admin-pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.admin-maps-bar button,
.admin-row-action {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #c9d2e0;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}
.admin-row-action.primary {
  background: #f3711f;
  border-color: #f3711f;
  color: #fff;
}
.admin-td-actions {
  white-space: nowrap;
}
.admin-table-wrap {
  overflow: auto;
  max-height: 72vh;
  border: 1px solid #d7dde8;
  border-radius: 10px;
  background: #fff;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f3f5f9;
  border-bottom: 1px solid #d7dde8;
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}
.admin-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #eef1f6;
  vertical-align: middle;
}
.admin-table code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
}
.admin-tr {
  cursor: pointer;
}
.admin-tr:hover {
  background: #fafbfc;
}
.admin-tr.is-active {
  background: #fff4ec;
  box-shadow: inset 3px 0 0 #f3711f;
}
.admin-tr.is-deleted {
  opacity: 0.65;
}
.admin-tr.is-child {
  background: #fafbfc;
}
.admin-tr.is-child td:nth-child(2) {
  padding-left: 8px;
}
.admin-td-expand {
  width: 56px;
  white-space: nowrap;
}
.admin-expand {
  border: 1px solid #c9d2e0;
  background: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.admin-expand-spacer {
  display: inline-block;
  min-width: 1.2em;
  color: #9aa3b2;
}
.admin-maps-pane {
  min-height: 240px;
  max-height: 72vh;
  overflow: auto;
  border: 1px solid #d7dde8;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}
.admin-maps-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.admin-maps-detail-head h3 {
  margin: 0;
  font-size: 1.1rem;
}
.admin-maps-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  white-space: nowrap;
}
.admin-maps-badge.is-deleted {
  background: #fef3f2;
  color: #b42318;
}
.admin-maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.admin-maps-full {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}
.admin-maps-clickable {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  display: grid;
  gap: 8px;
}
.admin-maps-check {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  grid-template-columns: none !important;
}
.admin-maps-att-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-maps-thumb-btn {
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}
.admin-maps-thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  display: block;
}
.admin-maps-att-grid .admin-maps-thumb {
  width: 96px;
  height: 72px;
}
.admin-maps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.admin-maps-actions button,
.admin-maps-head-actions button,
.admin-maps-gate button {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #c9d2e0;
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.admin-maps-actions button.primary,
.admin-maps-gate button.primary {
  background: #f3711f;
  border-color: #f3711f;
  color: #fff;
}
.admin-maps-actions button.danger {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}
.admin-maps-link {
  font-size: 0.9rem;
}
.admin-maps-empty {
  color: #6b7280;
  padding: 24px 8px;
}
.admin-maps-sidebar-note {
  padding: 16px;
  font-size: 0.9rem;
}
.admin-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
}
.admin-lightbox[hidden] {
  display: none !important;
}
.admin-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}
.admin-lightbox-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(92vw, 960px);
  max-height: 88vh;
  background: #111;
  border-radius: 10px;
  padding: 12px;
}
.admin-lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}
.admin-lightbox-frame figcaption {
  color: #e5e7eb;
  font-size: 0.85rem;
  margin-top: 8px;
}
.admin-lightbox-x {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
}
html[data-theme="dark"] .admin-maps-gate,
html[data-theme="dark"] .admin-maps-pane,
html[data-theme="dark"] .admin-table-wrap {
  background: #1c2230;
  border-color: #343c4d;
  color: #e8ecf4;
}
html[data-theme="dark"] .admin-table th {
  background: #151a24;
  border-color: #343c4d;
}
html[data-theme="dark"] .admin-table td {
  border-color: #2a3140;
}
html[data-theme="dark"] .admin-tr.is-active {
  background: #2a2218;
}
html[data-theme="dark"] .admin-maps-gate input,
html[data-theme="dark"] .admin-maps-detail input,
html[data-theme="dark"] .admin-maps-detail select,
html[data-theme="dark"] .admin-maps-detail textarea,
html[data-theme="dark"] .admin-maps-grid input,
html[data-theme="dark"] .admin-maps-grid select,
html[data-theme="dark"] .admin-expand {
  background: #151a24;
  border-color: #343c4d;
  color: #e8ecf4;
}
