:root {
  --wns-navy: #131f35;
  --wns-blue: #0066cc;
  --wns-orange: #ff6600;
  --wns-accent-start: #ff6b35;
  --wns-accent-mid: #f7931e;
  --wns-accent-end: #ffd23f;
  --wns-primary: #0066cc;
  --wns-primary-light: #ff6600;
  --wns-text: #2c3e50;
  --wns-text-muted: #7f8c8d;
  --wns-bg: #f8f9fa;
  --wns-surface: #ffffff;
  --wns-success: #28a745;
  --wns-warning: #ffc107;
  --wns-danger: #dc3545;
  --wns-radius: 12px;
  --wns-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--wns-text);
  background: var(--wns-bg);
  line-height: 1.5;
}

.page-login {
  min-height: 100vh;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, var(--wns-blue) 0%, var(--wns-orange) 100%);
  background-attachment: fixed;
  position: relative;
}

.page-login::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/wns-logo.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: min(420px, 70vw);
  opacity: 0.04;
  pointer-events: none;
  filter: brightness(0.35) contrast(0.85) blur(0.5px);
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.login-card {
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  box-shadow: var(--wns-shadow);
  padding: 2.5rem 2.25rem 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.login-brand {
  margin-bottom: 1.75rem;
}

.login-logo {
  display: block;
  width: min(180px, 55vw);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.login-welcome {
  margin: 0 0 0.35rem;
  color: var(--wns-text);
  font-weight: 300;
  font-size: 1.1rem;
}

.login-title {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(
    135deg,
    var(--wns-accent-start),
    var(--wns-accent-mid),
    var(--wns-accent-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-tagline {
  margin: 0.5rem 0 0;
  color: var(--wns-text-muted);
  font-size: 1rem;
  font-weight: 400;
}

.login-form {
  display: grid;
  gap: 1.15rem;
  margin-top: 0.25rem;
  text-align: left;
}

.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.45rem;
  color: var(--wns-text);
}

.input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 2px solid #e0e6ed;
  border-radius: 10px;
  font: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
  color: #adb5bd;
}

.input:focus {
  outline: none;
  border-color: var(--wns-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.2);
  background: #fff;
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--wns-danger);
  font-size: 0.875rem;
}

.btn {
  border: none;
  border-radius: var(--wns-radius);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0.65rem 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--wns-blue), var(--wns-orange));
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
  filter: brightness(1.03);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-block {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.8rem 1rem;
  font-size: 1.05rem;
  border-radius: 12px;
}

.login-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 102, 204, 0.12);
}

.login-footer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--wns-text-muted);
}

.login-footer-support {
  margin-top: 0.35rem !important;
  margin-left: -185px;
  font-weight: 500;
  color: var(--wns-blue) !important;
}

.login-shell > p {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.btn-secondary {
  background: #e9ecef;
  color: var(--wns-text);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
}

.flash-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.flash {
  padding: 0.65rem 0.75rem;
  border-radius: var(--wns-radius);
  margin-bottom: 0.5rem;
  font-size: 0.925rem;
}

.flash-danger {
  background: #f8d7da;
  color: #842029;
}

.flash-warning {
  background: #fff3cd;
  color: #664d03;
}

.flash-info {
  background: #cff4fc;
  color: #055160;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--wns-surface);
  border-bottom: 1px solid #dee2e6;
}

.app-brand-name {
  font-weight: 700;
  color: var(--wns-primary);
}

.app-brand-tag {
  margin-left: 0.5rem;
  color: var(--wns-text-muted);
  font-size: 0.9rem;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-meta {
  text-align: right;
  font-size: 0.925rem;
}

.user-role {
  display: block;
  color: var(--wns-text-muted);
  font-size: 0.8rem;
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.app-canvas {
  min-height: 100vh;
  background: var(--wns-bg);
}

.page-dashboard {
  --sidebar-width: 10.75rem;
  --dash-panel-bg: #121c2e;
  --dash-panel-border: rgba(255, 255, 255, 0.16);
  --dash-label: #b8c5d6;
  --dash-text: #f8fafc;
  --dash-muted: #94a3b8;
  --dash-link: #93c5fd;
  background: #080d18;
}

.page-dashboard .app-shell--sidebar {
  flex-direction: row;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.app-sidebar {
  flex-shrink: 0;
  width: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(180deg, #0a101c 0%, #0d1524 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
}

.sidebar-user-avatar {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--wns-accent-start),
    var(--wns-accent-mid),
    var(--wns-accent-end)
  );
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.35);
  user-select: none;
}

.sidebar-nav {
  flex: 1;
  width: 100%;
  padding: 0.35rem 0.45rem 0.75rem;
}

.page-dashboard .app-shell {
  background: transparent;
}

.page-dashboard .app-main.app-canvas {
  flex: 1;
  min-width: 0;
}

.page-dashboard .app-canvas {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(
    145deg,
    #080d18 0%,
    #0f1a2e 35%,
    #132238 55%,
    #1a1f3a 75%,
    #221a2e 100%
  );
  background-attachment: fixed;
}

.page-dashboard .app-canvas::before {
  content: "";
  position: fixed;
  inset: 0;
  left: var(--sidebar-width);
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 102, 204, 0.18) 0%, transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(255, 102, 0, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.panel {
  background: var(--wns-surface);
  border-radius: var(--wns-radius);
  box-shadow: var(--wns-shadow);
  padding: 1.25rem;
}

.text-muted {
  color: var(--wns-text-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Dashboard sidebar --- */

.sidebar-user {
  position: relative;
  width: 100%;
  padding: 0.65rem 0.55rem 0.5rem;
}

.sidebar-user-btn {
  border: none;
  padding: 0.35rem 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  border-radius: 8px;
  line-height: 1.2;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
}

.sidebar-user-name {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.sidebar-user-btn:hover,
.sidebar-user-btn[aria-expanded="true"] {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.sidebar-user-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: calc(100% + 0.5rem);
  z-index: 30;
  min-width: 12.5rem;
  padding: 0.65rem 0;
  background: #121a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.sidebar-user-menu-name {
  margin: 0 0 0.15rem;
  padding: 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
}

.sidebar-user-menu-role {
  margin: 0 0 0.35rem;
  padding: 0 0.85rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.sidebar-menu-divider,
.sidebar-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0.45rem 0;
}

.sidebar-divider {
  width: calc(100% - 1rem);
  margin-inline: auto;
}

.sidebar-menu-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.85rem;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 0.875rem;
  color: #e2e8f0;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-menu-item:hover,
.sidebar-menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.sidebar-menu-item--danger {
  color: #fca5a5;
}

.sidebar-nav {
  flex: 1;
  width: 100%;
  padding: 0.35rem 0.45rem 0.75rem;
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.35rem;
  padding: 0.4rem 0.5rem;
  margin: 0.12rem 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sidebar-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.2;
}

.sidebar-nav-btn.is-active .sidebar-nav-label {
  color: #ffffff;
}

.sidebar-nav-btn:hover .sidebar-nav-label {
  color: #f1f5f9;
}

.sidebar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-nav-btn--portal {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
}

.sidebar-nav-btn--portal .sidebar-nav-label {
  color: #dbeafe;
}

.sidebar-nav-btn--portal:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
}

.sidebar-nav-btn--portal.is-active {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(59, 130, 246, 0.55);
}

.sidebar-nav-btn.is-active {
  background: rgba(0, 102, 204, 0.22);
  border-color: rgba(0, 102, 204, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 102, 204, 0.25);
}

.sidebar-nav-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  object-fit: contain;
}

/* --- Dashboard page chrome --- */

.dash-page-header {
  flex-shrink: 0;
  padding-bottom: 0.45rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-breadcrumb {
  margin-bottom: 0.35rem;
}

.dash-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.6875rem;
}

.dash-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--dash-muted);
}

.dash-breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: rgba(255, 255, 255, 0.28);
  margin-left: 0.15rem;
}

.dash-breadcrumb-link {
  color: var(--dash-link);
  text-decoration: none;
  font-weight: 500;
}

.dash-breadcrumb-link:hover {
  text-decoration: underline;
}

.dash-breadcrumb-current {
  color: var(--dash-text);
  font-weight: 600;
}

.dash-page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dash-page-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dash-text);
  letter-spacing: -0.01em;
}

.dash-page-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--dash-muted);
  max-width: 36rem;
}

.dash-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.dash-panel {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--dash-panel-border);
  background: var(--dash-panel-bg);
  color: var(--dash-text);
}

.ticket-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: -0.15rem 0 0.35rem;
  font-size: 0.6875rem;
}

.ticket-detail-meta-text {
  color: var(--dash-muted);
}

/* --- Overview --- */

.page-dashboard .app-main.app-canvas {
  display: flex;
  flex-direction: column;
  overflow: auto;
  height: 100vh;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.page-dashboard .app-main.app-canvas:has(.overview-page) {
  overflow: hidden;
}

.overview-page {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0.55rem 0.75rem 0.75rem;
}

.overview-page .facility-globe.globe--ready {
  min-height: 240px;
}

.fleet-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin: 0;
  padding: 0.35rem 0.45rem;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--dash-panel-border);
  background: var(--dash-panel-bg);
}

.overview-client-portal-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.1);
}

.overview-client-portal-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.overview-client-portal-desc {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

.binder-portal-grant-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.binder-portal-grant-name {
  font-weight: 600;
  color: #e2e8f0;
}

.overview-header-text {
  min-width: 0;
}

.overview-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.overview-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.42);
  max-width: 28rem;
}

.fleet-stat {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 0;
  padding: 0 0.7rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.fleet-stat:first-child {
  padding-left: 0;
  border-left: none;
}

.fleet-stat-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--dash-label);
}

.fleet-stat-value {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--dash-text);
  line-height: 1.2;
}

.fleet-stat--watch.is-active .fleet-stat-value {
  color: #fbbf24;
}

.fleet-stat--watch.is-alert .fleet-stat-value {
  color: #f87171;
}

@media (max-width: 720px) {
  .overview-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .fleet-strip {
    width: 100%;
  }
}

.facility-globe {
  position: relative;
  flex: 1 1 auto;
  min-height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  contain: layout paint;
  touch-action: none;
}

.facility-globe.globe--ready {
  display: flex;
  flex-direction: column;
}

.facility-globe-map {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 12rem;
  overflow: hidden;
  border-radius: inherit;
}

.facility-globe-map--webgl {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 280px;
}

.facility-webgl-globe {
  flex: 1 1 auto;
  width: 100%;
  min-height: 280px;
  height: 100%;
  z-index: 0;
  position: relative;
}

.globe-point-label {
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: rgba(12, 18, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f4f7fb;
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 220px;
  pointer-events: none;
}

.globe-point-label strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.globe-point-label span {
  display: block;
  opacity: 0.85;
}

.facility-globe-map--osm {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.facility-osm-map {
  flex: 1 1 auto;
  width: 100%;
  min-height: 280px;
  height: 100%;
  z-index: 0;
}

.facility-globe-map--3d:not(.facility-globe-map--webgl) {
  display: block;
  min-height: 12rem;
}

.facility-globe-3d,
.facility-globe-map--2d,
.facility-globe-map gmp-map-3d {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
}

.globe-zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.globe-zoom-btn {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.globe-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.globe-zoom-btn:active {
  background: rgba(0, 102, 204, 0.35);
}

.globe-zoom-btn[data-zoom="home"] {
  font-size: 0.9rem;
}

.globe-overlays {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 3;
  max-width: min(16rem, calc(100% - 5rem));
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  font-size: 0.6875rem;
  color: #e2e8f0;
}

.globe-overlays-head {
  margin-bottom: 0.35rem;
}

.globe-search {
  position: relative;
  margin-bottom: 0.45rem;
}

.globe-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  font: inherit;
  font-size: 0.6875rem;
}

.globe-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.globe-search-input:focus {
  outline: none;
  border-color: rgba(0, 102, 204, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.globe-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.2rem);
  z-index: 5;
  margin: 0;
  padding: 0.2rem;
  list-style: none;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  max-height: 10rem;
  overflow-y: auto;
}

.globe-search-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  width: 100%;
  padding: 0.28rem 0.35rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #e2e8f0;
  font: inherit;
  font-size: 0.6875rem;
  text-align: left;
  cursor: pointer;
}

.globe-search-result:hover {
  background: rgba(255, 255, 255, 0.08);
}

.globe-search-result-name {
  font-weight: 600;
  color: #f8fafc;
}

.globe-search-result-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.625rem;
}

.globe-overlays-companies {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.globe-overlays-company-list {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.12rem;
}

.globe-overlays-label--company {
  width: 100%;
}

.globe-overlays-label--company .globe-overlays-legend-text {
  flex: 1;
}

.globe-overlays-company-check {
  margin: 0;
  accent-color: #0066cc;
}

.globe-overlays-note--weather {
  margin-top: 0.35rem;
  color: #fdba74;
}

.globe-overlays-title {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.globe-overlays-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.15rem;
}

.globe-overlays-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

.globe-overlays-check {
  margin: 0;
  accent-color: #0066cc;
}

.globe-overlays-legend {
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.2rem;
}

.globe-overlays-legend-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.3;
}

.globe-overlays-legend-row--weather {
  color: #fdba74;
}

.globe-overlays-swatch {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.globe-overlays-legend-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.globe-overlays-legend-count {
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
}

.globe-overlays-note {
  margin-top: 0.35rem;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.35;
}

.globe-overlays-admin {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.globe-overlays-pin-list {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.3rem;
}

.globe-overlays-pin-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.globe-overlays-pin-row--hidden .globe-overlays-pin-name {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
}

.globe-overlays-pin-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
}

.globe-overlays-pin-btn {
  flex-shrink: 0;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.625rem;
  font-weight: 600;
  cursor: pointer;
}

.globe-overlays-pin-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.globe-overlays-pin-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.globe-overlays-pin-row--hidden .globe-overlays-pin-btn {
  border-color: rgba(0, 102, 204, 0.45);
  color: #93c5fd;
}

.facility-globe-map--empty {
  position: relative;
  min-height: 12rem;
  background: rgba(15, 23, 42, 0.35);
}

.globe-status {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.globe--error .globe-status,
.globe--unconfigured .globe-status {
  inset: 1rem;
  max-width: none;
}

.globe-status--error {
  border-color: rgba(220, 53, 69, 0.4);
  color: #fecaca;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.globe-retry-btn {
  display: block;
  margin-top: 0.55rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.globe-retry-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.globe-status--warn {
  border-color: rgba(255, 193, 7, 0.35);
  color: #fde68a;
}

.globe--unconfigured {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 102, 204, 0.15) 0%, transparent 55%),
    linear-gradient(160deg, #0b1220 0%, #132238 100%);
}

.globe--unconfigured .globe-status {
  position: static;
  max-width: 28rem;
  text-align: center;
}

.globe--error {
  display: grid;
  place-items: center;
}

.account-page {
  padding: 0.65rem 0.85rem 0.85rem;
  max-width: 17.5rem;
}

.account-header {
  margin-bottom: 0.45rem;
}

.account-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
}

.account-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
}

.account-panel {
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-details {
  margin: 0;
}

.account-row {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.35rem;
  padding: 0.2rem 0;
}

.account-row + .account-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.25rem;
  margin-top: 0.15rem;
}

.account-row dt {
  margin: 0;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.account-row dd {
  margin: 0;
  font-size: 0.75rem;
  color: #f1f5f9;
  line-height: 1.35;
  word-break: break-word;
}

.account-divider {
  margin: 0.45rem 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.account-section {
  margin: 0;
}

.account-section-title {
  margin: 0 0 0.3rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-dashboard .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-dashboard .flash-list {
  margin: 0 0 1rem;
}

.page-dashboard .flash-list--compact {
  margin: 0 0 0.4rem;
}

.page-dashboard .flash-list--compact .flash {
  padding: 0.35rem 0.45rem;
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  border-radius: 6px;
}

.page-dashboard .flash {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.page-dashboard .flash-danger {
  border-color: rgba(220, 53, 69, 0.45);
  color: #fecaca;
}

.page-dashboard .flash-info {
  border-color: rgba(0, 102, 204, 0.45);
  color: #bfdbfe;
}

.page-dashboard .flash-warning {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.18);
  color: #fff7d6;
}

.account-form {
  display: grid;
  gap: 0.35rem;
}

.account-page .field--compact label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.15rem;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.55);
}

.input--dark {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font: inherit;
  color: #f8fafc;
  background-color: #1e293b;
  color-scheme: dark;
  caret-color: #f8fafc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.page-dashboard textarea.input--dark,
.page-dashboard select.input--dark {
  color: #f8fafc;
  background-color: #1e293b;
  color-scheme: dark;
  caret-color: #f8fafc;
}

.page-dashboard select.input--dark option {
  color: #0f172a;
  background: #ffffff;
}

.page-dashboard input.input--dark:-webkit-autofill,
.page-dashboard input.input--dark:-webkit-autofill:hover,
.page-dashboard input.input--dark:-webkit-autofill:focus,
.page-dashboard textarea.input--dark:-webkit-autofill,
.page-dashboard textarea.input--dark:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8fafc !important;
  box-shadow: 0 0 0 1000px #1e293b inset !important;
  caret-color: #f8fafc;
}

.input--compact {
  padding: 0.32rem 0.45rem;
  border-radius: 5px;
  font-size: 0.75rem;
  line-height: 1.25;
}

.input--dark::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.input--compact:focus {
  box-shadow: 0 0 0 0.12rem rgba(0, 102, 204, 0.2);
}

.input--dark:focus {
  outline: none;
  color: #ffffff;
  background-color: #0f172a;
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.account-page .field-error {
  margin: 0.1rem 0 0;
  color: #fca5a5;
  font-size: 0.625rem;
  line-height: 1.25;
}

.btn-xs {
  padding: 0.22rem 0.45rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 5px;
  width: fit-content;
}

.account-back {
  margin: 0.45rem 0 0;
}

.sidebar-nav-icon--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
}

.login-forgot {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

.login-forgot a {
    color: var(--wns-blue, #1e5aa8);
    text-decoration: none;
}

.login-forgot a:hover {
    text-decoration: underline;
}

.register-intro,
.register-invalid,
.register-back {
  margin: 0 0 1rem;
  color: var(--dash-text-muted, #cbd5e1);
  font-size: 0.95rem;
}

.team-page.account-page {
  max-width: min(960px, 100%);
}

.team-smtp-notice {
  margin: 0 0 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
  font-size: 0.6875rem;
  line-height: 1.45;
}

.team-smtp-notice code {
  color: #fef3c7;
  font-size: 0.625rem;
}

.team-register-link {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  min-width: 12rem;
}

.team-register-url {
  flex: 1 1 10rem;
  min-width: 8rem;
  font-size: 0.625rem;
}

.team-link-cell {
  min-width: 11rem;
}

.team-help,
.team-empty,
.team-muted {
  color: var(--dash-text-muted, #94a3b8);
  font-size: 0.9rem;
}

.team-invite-form {
  max-width: 28rem;
}

.team-table-wrap {
  overflow-x: auto;
}

.team-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.team-table th,
.team-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.team-table th {
  color: var(--dash-text-muted, #94a3b8);
  font-weight: 500;
}

.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.team-inline-form {
  display: inline;
}

.programmed-devices-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.45rem;
}

.programmed-devices-total {
  color: var(--dash-muted);
  font-size: 0.85rem;
}

.programmed-devices-live,
.equip-meta-live {
  color: #7dd3a7;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.equip-meta-stale {
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 600;
}

.programmed-devices-block {
  margin-top: 0.75rem;
}

.programmed-devices-block--snapshot {
  margin: 0.65rem 0 0.85rem;
}

.programmed-devices-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.programmed-devices-chart {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.programmed-devices-chart th,
.programmed-devices-chart td,
.programmed-devices-count {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.receiver-chart.programmed-devices-chart th {
  color: var(--dash-label);
  font-size: 0.5625rem;
}

.programmed-devices-chart th:last-child,
.programmed-devices-count {
  text-align: right;
  width: 4.5rem;
}

.programmed-devices-type {
  color: var(--dash-text);
  font-weight: 500;
}

.programmed-devices-count {
  color: var(--dash-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Pending tickets */
.tickets-page {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 0 auto;
  min-height: 0;
  padding: 0.55rem 0.75rem 0.75rem;
}

.tickets-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border-radius: 6px;
  border: 1px solid var(--dash-panel-border);
  background: rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tickets-subnav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.tickets-subnav-link:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}

.tickets-subnav-link.is-active {
  color: #f8fafc;
  background: rgba(0, 102, 204, 0.28);
}

.tickets-table th {
  color: var(--dash-label);
  font-weight: 700;
}

.tickets-table td {
  color: var(--dash-text);
}

.tickets-table-wrap {
  border-color: var(--dash-panel-border);
  background: var(--dash-panel-bg);
}

.tickets-link {
  color: var(--dash-link);
}

.tickets-meta {
  color: var(--dash-muted);
}

.ticket-workspace {
  --ticket-panel-bg: var(--dash-panel-bg);
  --ticket-panel-border: var(--dash-panel-border);
  --ticket-label: #ffffff;
  --ticket-text: var(--dash-text);
  --ticket-muted: var(--dash-label);
  --ticket-input-bg: #0a101c;
  --ticket-input-border: rgba(255, 255, 255, 0.32);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ticket-workspace-header.dash-page-header {
  margin-bottom: 0.35rem;
}

.page-dashboard .app-main.app-canvas:has(.ticket-workspace) {
  overflow: auto;
  height: 100vh;
}

.ticket-workspace-header {
  padding-bottom: 0.25rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticket-workspace .tickets-title {
  font-size: 1rem;
}

.ticket-workspace .tickets-subtitle {
  font-size: 0.75rem;
  color: #cbd5e1;
}

.ticket-workspace-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11.5rem, 15rem);
  grid-template-areas:
    "main aside"
    "strip strip";
  gap: 0.4rem;
  align-items: start;
}

.ticket-workspace-main {
  grid-area: main;
  min-width: 0;
}

.ticket-workspace-aside {
  grid-area: aside;
  min-width: 0;
}

.ticket-workspace-strip {
  grid-area: strip;
  min-width: 0;
}

.ticket-workspace-strip .ticket-equipment-strip {
  margin-top: 0;
}

.tasks-page .account-form.task-form {
  max-width: min(42rem, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.task-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.65rem;
}

.task-form-legend {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--dash-label, #b8c5d6);
}

.task-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.task-form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.task-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 0.65rem;
  align-items: start;
}

.task-detail-main,
.task-detail-aside {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.task-notes-body {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ticket-text, #e2e8f0);
  white-space: pre-wrap;
}

.ticket-tag-filters,
.task-notify-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
}

.ticket-tag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--dash-text, #e2e8f0);
  cursor: pointer;
  user-select: none;
}

.ticket-tag-toggle input {
  accent-color: var(--wns-info, #007bff);
}

@media (max-width: 900px) {
  .task-detail-grid {
    grid-template-columns: 1fr;
  }

  .task-form-row {
    grid-template-columns: 1fr;
  }
}

.ticket-panel {
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--ticket-panel-border);
  background: var(--ticket-panel-bg);
  box-shadow: none;
}

.ticket-panel-title {
  margin: 0 0 0.3rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b8c5d6;
}

.ticket-form-section + .ticket-form-section {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-form-grid {
  display: grid;
  gap: 0.32rem 0.45rem;
}

.ticket-form-grid--call {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ticket-form-grid--notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ticket-form-span-full {
  grid-column: 1 / -1;
}

.ticket-form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-empty-state {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ticket-muted);
}

.ticket-workspace .field label,
.ticket-workspace .field--compact label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ticket-label) !important;
}

.ticket-workspace .input--dark {
  color: var(--ticket-text);
  background: var(--ticket-input-bg);
  border-color: var(--ticket-input-border);
}

.ticket-workspace .input--dark::placeholder {
  color: rgba(226, 232, 240, 0.45);
}

.ticket-workspace .input--compact {
  padding: 0.28rem 0.42rem;
  font-size: 0.75rem;
  line-height: 1.25;
}

.ticket-workspace .field-hint {
  color: #b8c5d6;
  font-size: 0.625rem;
  margin-top: 0.08rem;
}

.ticket-workspace .ticket-textarea {
  min-height: 2.75rem;
}

.ticket-workspace .facility-snapshot {
  color: var(--ticket-text);
  font-size: 0.6875rem;
}

.ticket-workspace .facility-snapshot-empty,
.ticket-workspace .binder-empty-inline {
  color: var(--ticket-muted);
  font-size: 0.75rem;
}

.ticket-workspace .facility-snapshot-meta,
.ticket-workspace .facility-snapshot-cache,
.ticket-workspace .facility-snapshot-item dt {
  color: #b8c5d6;
  font-size: 0.625rem;
}

.ticket-workspace .facility-snapshot-item dd,
.ticket-workspace .facility-snapshot-title {
  color: var(--ticket-text);
  font-size: 0.75rem;
}

.ticket-workspace .facility-snapshot-title {
  font-size: 0.8125rem;
  font-weight: 600;
}

.ticket-workspace .facility-snapshot-head {
  margin-bottom: 0.35rem;
}

.ticket-workspace .facility-snapshot-ssp {
  margin-bottom: 0.35rem;
  padding: 0.32rem 0.42rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ticket-workspace .facility-snapshot-ssp--yes {
  background: #142819;
  border-color: rgba(74, 222, 128, 0.4);
}

.ticket-workspace .facility-snapshot-ssp--no {
  background: #291418;
  border-color: rgba(248, 113, 113, 0.4);
}

.ticket-workspace .facility-snapshot-ssp-copy {
  color: #f8fafc;
  font-size: 0.625rem;
  line-height: 1.35;
}

.ticket-workspace .ssp-admin-toggle,
.ticket-workspace .ssp-admin-paid {
  font-size: 0.625rem;
  color: #e2e8f0;
}

.ticket-workspace .facility-snapshot-grid {
  gap: 0.25rem 0.45rem;
  margin: 0.25rem 0 0;
}

.ticket-workspace .facility-snapshot-grid--compact {
  grid-template-columns: 1fr 1fr;
}

.ticket-workspace-aside .facility-globe,
.ticket-workspace-aside .facility-globe.facility-globe--ticket {
  flex: none;
  height: 6.5rem;
  min-height: 6.5rem;
  max-height: 6.5rem;
}

.ticket-workspace-aside .facility-globe.globe--ready {
  display: block;
  height: 6.5rem;
  min-height: 6.5rem;
  max-height: 6.5rem;
}

.ticket-workspace-aside .facility-globe-map {
  position: absolute;
  inset: 0;
  height: 100% !important;
  flex: none;
}

.ticket-workspace-aside .globe-zoom,
.ticket-workspace-aside .globe-overlays {
  display: none !important;
}

.ticket-wiring {
  margin-top: 0.35rem;
}

.ticket-wiring-paging {
  margin: 0 0 0.3rem;
  font-size: 0.625rem;
  color: #e2e8f0;
}

.ticket-wiring-paging span {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.45);
  margin-right: 0.35rem;
}

.ticket-wiring-paging--off {
  color: rgba(255, 255, 255, 0.55);
}

.ticket-wiring-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.625rem;
}

.ticket-wiring-table th,
.ticket-wiring-table td {
  padding: 0.22rem 0.28rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.ticket-wiring-table th {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.38);
}

.ticket-rx-id,
.ticket-rx-com {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.625rem;
}

.ticket-rx-com {
  color: #bfdbfe;
}

.ticket-aside-map .facility-globe--ticket {
  width: 100%;
}

.ticket-aside-snapshot {
  flex: none;
  min-height: 0;
}

.ticket-workspace select.input--dark {
  color-scheme: dark;
}

.ticket-workspace .binder-panel,
.ticket-workspace .ticket-previous-tickets {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 13, 24, 0.72);
}

.ticket-workspace .binder-section-label,
.ticket-workspace .binder-table th {
  color: var(--ticket-muted);
}

.ticket-workspace .binder-table td {
  color: var(--ticket-text);
  font-size: 0.6875rem;
  padding: 0.35rem 0.45rem;
}

.ticket-workspace .binder-link {
  color: #93c5fd;
}

.ticket-facility-context {
  margin-top: 0;
}

.ticket-aside-panel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem;
}

.ticket-aside-panel .ticket-panel-title {
  margin-bottom: 0.15rem;
}

.ticket-aside-panel .facility-globe--ticket {
  min-height: 6.5rem;
  height: 6.5rem;
  max-height: 6.5rem;
  border-radius: 4px;
  overflow: hidden;
}

.ticket-aside-panel .facility-snapshot--ticket-aside {
  padding-top: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ticket-aside-ssp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0 0 0.25rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.625rem;
}

.ticket-aside-ssp--admin {
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
}

.ticket-aside-ssp .ssp-admin-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.ticket-aside-ssp .ssp-admin-toggle {
  font-size: 0.625rem;
}

.ticket-aside-ssp .ssp-admin-paid {
  font-size: 0.625rem;
}

.ticket-aside-ssp .facility-snapshot-ssp-copy {
  margin: 0;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.62);
}

.facility-snapshot-grid--ticket-aside {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem 0.45rem;
  margin: 0;
}

.facility-snapshot-grid--ticket-aside .facility-snapshot-item dt {
  font-size: 0.5625rem;
}

.facility-snapshot-grid--ticket-aside .facility-snapshot-item dd {
  font-size: 0.6875rem;
  font-weight: 600;
}

.ticket-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0.75rem;
  min-height: 0;
}

.ticket-workspace-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.tickets-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tickets-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #f1f5f9;
}

.tickets-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: rgba(226, 232, 240, 0.78);
}

.tickets-table-wrap {
  overflow: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.55);
}

.tickets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.tickets-table th,
.tickets-table td {
  padding: 0.45rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.tickets-table th {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tickets-link {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
}

.tickets-link:hover {
  text-decoration: underline;
}

.tickets-meta {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.6875rem;
}

.tickets-issue {
  max-width: 18rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tickets-empty {
  padding: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}

.status-badge {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge--open { background: rgba(0, 102, 204, 0.25); color: #93c5fd; }
.status-badge--in_progress { background: rgba(255, 193, 7, 0.2); color: #fde68a; }
.status-badge--pending_review { background: rgba(255, 107, 53, 0.22); color: #fdba74; }
.status-badge--coordinator_review { background: rgba(255, 107, 53, 0.22); color: #fdba74; }
.status-badge--office_admin { background: rgba(147, 51, 234, 0.22); color: #d8b4fe; }
.status-badge--accounting { background: rgba(14, 165, 233, 0.22); color: #7dd3fc; }
.status-badge--closed { background: rgba(100, 116, 139, 0.35); color: #cbd5e1; }
.status-badge--online { background: rgba(40, 167, 69, 0.22); color: #86efac; }
.status-badge--degraded { background: rgba(245, 158, 11, 0.28); color: #fef08a; }
.status-badge--offline { background: rgba(220, 53, 69, 0.22); color: #fca5a5; }
.status-badge--unknown { background: rgba(100, 116, 139, 0.35); color: #cbd5e1; }

.binder-health {
  display: grid;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--dash-panel-border);
  background: var(--dash-panel-bg);
}

.binder-health--online {
  border-color: rgba(40, 167, 69, 0.35);
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), var(--dash-panel-bg));
}

.binder-health--degraded {
  border-color: rgba(255, 193, 7, 0.4);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), var(--dash-panel-bg));
}

.binder-health--offline {
  border-color: rgba(220, 53, 69, 0.45);
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.12), var(--dash-panel-bg));
}

.binder-health--unknown {
  border-color: rgba(100, 116, 139, 0.35);
}

.binder-health-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.binder-health-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.binder-health-headline {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--dash-text);
}

.binder-health-meta {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: #cbd5e1;
}

.binder-health-meta-sep {
  margin: 0 0.25rem;
}

.binder-health-issues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.binder-health-issue {
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
  padding: 0.3rem 0.4rem;
  border-radius: 5px;
  font-size: 0.75rem;
  line-height: 1.35;
}

.binder-health-issue--critical {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.binder-health-issue--warning {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fff7d6;
}

.binder-health-issue--info {
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #dbeafe;
}

.binder-health-issue-severity {
  font-weight: 700;
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
}

.binder-health-issue-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.binder-health-issue-title {
  font-weight: 600;
  color: inherit;
}

.binder-health-issue--critical .binder-health-issue-title {
  color: #fee2e2;
}

.binder-health-issue--warning .binder-health-issue-title {
  color: #fef08a;
}

.binder-health-issue--info .binder-health-issue-title {
  color: #bfdbfe;
}

.binder-health-issue-detail {
  color: #cbd5e1;
  font-size: 0.68rem;
}

.binder-health-issue--warning .binder-health-issue-detail {
  color: #fde68a;
}

.binder-health-issue--critical .binder-health-issue-detail {
  color: #fca5a5;
}

.binder-health-tickets {
  padding-top: 0.15rem;
  border-top: 1px solid var(--dash-panel-border);
}

.binder-health-tickets-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dash-muted);
  margin-bottom: 0.3rem;
}

.binder-health-ticket-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.binder-health-ticket-links li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
}

.binder-health-ok {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.binder-health-ok-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--dash-muted);
}

.binder-health-ok-check {
  color: #86efac;
  font-weight: 700;
}

/* --- Site warnings --- */

.site-warnings-page {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem 1rem;
  min-height: 0;
}

.site-warnings-summary {
  flex-shrink: 0;
}

.site-warnings-updated {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  color: var(--dash-muted) !important;
}

.site-warnings-filters .tickets-subnav-link {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.site-warnings-list {
  display: grid;
  gap: 0.4rem;
}

.site-warnings-card {
  margin: 0;
}

.site-warnings-page .binder-health,
.site-warnings-card.binder-health {
  margin-bottom: 0;
  padding: 0.45rem 0.55rem;
  gap: 0.35rem;
}

.site-warnings-page .binder-health-headline {
  margin-top: 0.15rem;
  font-size: 0.76rem;
}

.site-warnings-page .binder-health-meta {
  margin-top: 0.1rem;
}

.site-warnings-page .binder-health-issues {
  gap: 0.2rem;
}

.site-warnings-page .binder-health-issue {
  padding: 0.25rem 0.35rem;
}

.site-warnings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-warnings-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-warnings-card-meta {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--dash-muted);
}

.site-warnings-empty {
  margin-top: 0.25rem;
}

.ssp-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.ssp-badge--yes {
  background: rgba(40, 167, 69, 0.22);
  color: #86efac;
}

.ssp-badge--no {
  background: rgba(220, 53, 69, 0.18);
  color: #fca5a5;
}

.topic-badge,
.hours-badge {
  display: inline-block;
  padding: 0.1rem 0.38rem;
  border-radius: 999px;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.topic-badge--software { background: rgba(124, 58, 237, 0.22); color: #c4b5fd; }
.topic-badge--networking { background: rgba(0, 102, 204, 0.22); color: #93c5fd; }
.topic-badge--hardware { background: rgba(255, 107, 53, 0.22); color: #fdba74; }
.topic-badge--user_induced { background: rgba(255, 193, 7, 0.18); color: #fde68a; }
.topic-badge--other { background: rgba(100, 116, 139, 0.3); color: #cbd5e1; }

.hours-badge--during_hours { background: rgba(40, 167, 69, 0.18); color: #86efac; }
.hours-badge--after_hours { background: rgba(220, 53, 69, 0.18); color: #fca5a5; }

.facility-snapshot-ssp {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.facility-snapshot-ssp--yes {
  background: rgba(40, 167, 69, 0.08);
}

.facility-snapshot-ssp--no {
  background: rgba(220, 53, 69, 0.08);
}

.facility-snapshot-ssp-copy {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

.facility-site-time {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.facility-site-time--prominent {
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 102, 204, 0.25);
  background: rgba(0, 102, 204, 0.1);
}

.facility-site-time-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.facility-site-time-clock {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.1;
}

.facility-site-time-meta {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.62);
}

.ticket-facility-row .facility-site-time {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.ticket-facility-row .facility-site-time-clock {
  font-size: 0.9375rem;
}

.ssp-admin-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.ssp-admin-toggle-input {
  accent-color: #0066cc;
}

.ssp-admin-panel {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.45rem;
}

.ssp-admin-paid {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.78);
}

.ssp-admin-paid-input {
  max-width: 10.5rem;
}

.ssp-admin-status {
  margin: 0;
  min-height: 1rem;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.55);
}

.ssp-admin-status--error {
  color: #fca5a5;
}

.ticket-facility-context .ticket-panel-title {
  margin-bottom: 0.35rem;
}

.ticket-facility-context-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ticket-previous-tickets {
  margin: 0;
}

.ticket-facility-binder-head {
  margin-bottom: 0.35rem;
}

.ticket-facility-binder-layout {
  margin-top: 0;
}

.binder-google-info {
  margin-bottom: 0.35rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.binder-google-info:only-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.binder-phone-link {
  font-weight: 600;
  white-space: nowrap;
}

.facility-google-aside {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  margin: 0 0 0.25rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.625rem;
}

.facility-google-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}

.facility-google-item--wide {
  flex: 1 1 100%;
}

.ticket-binder-link-row {
  margin: 0.35rem 0 0;
  font-size: 0.6875rem;
}

.ticket-detail-main {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.ticket-form,
.ticket-actions,
.ticket-side {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.55);
}

.ticket-workspace .ticket-form,
.ticket-workspace .ticket-actions {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.ticket-workspace .ticket-form.ticket-panel,
.ticket-workspace .ticket-actions.ticket-panel {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--ticket-panel-border);
  background: var(--ticket-panel-bg);
  box-shadow: none;
}

.ticket-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.ticket-textarea {
  min-height: 2.75rem;
  resize: vertical;
}

.field-hint {
  margin: 0.15rem 0 0;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.45);
}

.ticket-section-title {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
}

.ticket-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ticket-action-buttons .btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.15);
}

.ticket-facility-readonly {
  margin: 0 0 0.5rem;
}

.ticket-facility-row {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.35rem;
  font-size: 0.75rem;
}

.ticket-facility-row dt {
  color: var(--ticket-muted, rgba(255, 255, 255, 0.5));
}

.ticket-facility-row dd {
  margin: 0;
  color: var(--ticket-text, #f1f5f9);
  font-weight: 600;
}

.facility-globe--ticket {
  min-height: 11rem;
  height: 11rem;
  margin-bottom: 0;
}

.ticket-workspace-aside .facility-globe--ticket {
  min-height: 8rem;
  height: 8rem;
  max-height: 8rem;
  flex: none;
}

.facility-snapshot {
  font-size: 0.6875rem;
  color: #e2e8f0;
}

.facility-snapshot-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

.facility-snapshot-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.facility-snapshot-meta,
.facility-snapshot-cache {
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.625rem;
}

.facility-snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.65rem;
  margin: 0.55rem 0;
}

.facility-snapshot-item dt {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.625rem;
}

.facility-snapshot-item dd {
  margin: 0.05rem 0 0;
}

.facility-snapshot-item--wide {
  grid-column: 1 / -1;
}

.facility-snapshot-section-title {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

.facility-snapshot-list {
  margin: 0;
  padding-left: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 720px) {
  .ticket-workspace-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "aside"
      "strip";
  }

  .ticket-form-grid--call,
  .ticket-form-grid--notes {
    grid-template-columns: 1fr;
  }

  .ticket-workspace-grid {
    grid-template-columns: 1fr;
  }

  .ticket-form-row {
    grid-template-columns: 1fr;
  }

  .binder-layout {
    grid-template-columns: 1fr;
  }

  .binder-aside {
    order: 2;
  }
}

/* Facility binder — compact navigation + layout */
.binder-page {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 0.45rem 0.65rem 0.65rem;
}

.dash-page-header--compact {
  margin-bottom: 0.15rem;
  padding-bottom: 0.2rem;
}

.dash-page-header--compact .dash-page-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dash-page-header--compact .dash-page-subtitle {
  font-size: 0.6875rem;
  margin-top: 0.1rem;
}

.binder-page-header.dash-page-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.binder-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--dash-panel-border);
  border-radius: 6px;
  background: rgba(12, 18, 30, 0.92);
  overflow: hidden;
  flex-shrink: 0;
}

.binder-toolbar-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.28rem 0.4rem;
}

.binder-toolbar-row--nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.binder-toolbar-row--sections {
  background: rgba(0, 0, 0, 0.12);
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.binder-toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.binder-toolbar-group--companies {
  flex-shrink: 0;
}

.binder-toolbar-group--sites {
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.binder-toolbar-group--jump {
  flex-shrink: 0;
  gap: 0.25rem;
}

.binder-toolbar-group--search {
  position: relative;
  flex: 0 1 14rem;
  min-width: 9rem;
  gap: 0.15rem;
}

.binder-search-label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.facility-search {
  position: relative;
}

.facility-search-input {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  padding: 0.22rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  font: inherit;
  font-size: 0.6875rem;
}

.facility-search-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.facility-search-input:focus {
  outline: none;
  border-color: rgba(0, 102, 204, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.facility-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.15rem);
  z-index: 12;
  padding: 0.2rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  max-height: 11rem;
  overflow-y: auto;
}

.facility-search-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  width: 100%;
  padding: 0.28rem 0.35rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #e2e8f0;
  font: inherit;
  font-size: 0.6875rem;
  text-align: left;
  cursor: pointer;
}

.facility-search-result:hover,
.facility-search-result.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.facility-search-result-name {
  font-weight: 600;
  color: #f8fafc;
}

.facility-search-result-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.625rem;
}

.binder-toolbar-divider {
  width: 1px;
  align-self: stretch;
  margin: 0.12rem 0.15rem;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.binder-toolbar-spacer {
  flex: 1 1 auto;
  min-width: 0.25rem;
}

.binder-co-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.binder-co-tab:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

.binder-co-tab.is-active {
  color: #f8fafc;
  border-color: color-mix(in srgb, var(--co-accent, #64748b) 55%, transparent);
  background: color-mix(in srgb, var(--co-accent, #64748b) 14%, transparent);
}

.binder-co-tab-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--co-accent, #64748b);
  flex-shrink: 0;
}

.binder-co-tab-count {
  font-size: 0.5625rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.binder-site-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.1rem 0.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-radius: 3px;
  white-space: nowrap;
}

.binder-site-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.binder-site-link.is-active {
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--dash-link, #60a5fa);
}

.binder-site-stepper {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}

.binder-step-link {
  display: grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dash-link);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
}

.binder-step-link + .binder-step-link {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.binder-step-link:hover:not(.is-disabled) {
  background: rgba(0, 102, 204, 0.15);
}

.binder-step-link.is-disabled {
  color: rgba(255, 255, 255, 0.22);
  cursor: default;
}

.binder-jump-select-wrap {
  margin: 0;
}

.binder-jump-select {
  min-width: 6.5rem;
  max-width: 9rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  font-size: 0.625rem;
}

.binder-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
}

.binder-section-tab {
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  padding: 0.08rem 0;
}

.binder-section-tab:hover {
  color: var(--dash-link);
}

.binder-toolbar-action {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--dash-link);
  text-decoration: none;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(0, 102, 204, 0.1);
}

.binder-toolbar-action:hover {
  background: rgba(0, 102, 204, 0.2);
  color: #fff;
}

.ssp-badge--micro {
  padding: 0 0.2rem;
  font-size: 0.5rem;
  line-height: 1.35;
  border-radius: 2px;
}

.binder-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
  gap: 0.4rem;
  align-items: start;
  width: 100%;
}

.binder-aside {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.binder-main {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.panel-dark.binder-empty {
  padding: 0.38rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--dash-panel-border);
  background: var(--dash-panel-bg);
}

.binder-index {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.binder-index-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.binder-index-count {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--dash-text);
}

.binder-index-hint {
  margin: 0;
  font-size: 0.625rem;
  color: var(--dash-muted);
}

.binder-index-nav-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.binder-index-group {
  border: 1px solid var(--dash-panel-border);
  border-radius: 6px;
  background: var(--dash-panel-bg);
  overflow: hidden;
}

.binder-index-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.32rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: color-mix(in srgb, var(--co-accent, #64748b) 10%, transparent);
}

.binder-index-group-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.binder-index-co-dot {
  background: var(--co-accent, #64748b);
}

.binder-index-group-title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.25;
}

.binder-index-group-count {
  font-size: 0.5625rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.binder-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.binder-index-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.32rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

.binder-index-list li:last-child .binder-index-card {
  border-bottom: 0;
}

.binder-index-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.binder-index-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  min-width: 0;
}

.binder-index-card-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.25;
}

.binder-index-card-meta {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.58);
}

.binder-index-card-address {
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.binder-index-card-badges {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.binder-panel,
.panel-dark.binder-empty {
  padding: 0.38rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--dash-panel-border);
  background: var(--dash-panel-bg);
}

.binder-panel--flat {
  box-shadow: none;
}

.binder-tech-notes-lead {
  margin: 0 0 0.28rem;
  font-size: 0.625rem;
  color: var(--dash-muted);
  line-height: 1.3;
}

.binder-tech-notes-list {
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.binder-tech-note {
  padding: 0.22rem 0.32rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.binder-tech-note-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.1rem;
}

.binder-tech-note-author {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--dash-text);
}

.binder-tech-note-body {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.32;
  color: rgba(255, 255, 255, 0.88);
  white-space: pre-wrap;
}

.binder-tech-notes-form {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.binder-tech-notes-label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.binder-tech-note-input {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 2.1rem;
  max-height: 8rem;
  padding: 0.26rem 0.38rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.6875rem;
  line-height: 1.32;
  color: #f8fafc;
  background: rgba(8, 12, 22, 0.92);
  caret-color: #93c5fd;
}

.binder-tech-note-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.binder-tech-note-input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.75);
  background: rgba(6, 10, 18, 0.98);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35);
}

.binder-tech-notes-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.08rem;
}

.binder-tech-notes-status {
  margin: 0;
  font-size: 0.625rem;
  color: var(--dash-muted);
}

.binder-tech-notes-status--error {
  color: #f87171;
}

.binder-panel-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dash-text);
  line-height: 1.25;
}

.binder-panel-meta {
  margin: 0;
  font-size: 0.625rem;
  color: var(--dash-muted);
  line-height: 1.35;
}

.binder-photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.35rem, 4rem));
  gap: 0.22rem;
}

.binder-photos-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: start;
}

.binder-photo-section {
  min-width: 0;
}

.binder-section-head--compact {
  margin-bottom: 0.18rem;
}

.binder-section-head--compact .binder-section-label {
  font-size: 0.5625rem;
}

.binder-section-head--compact .binder-count {
  font-size: 0.5625rem;
}

@media (max-width: 760px) {
  .binder-photos-columns {
    grid-template-columns: 1fr;
  }
}

.binder-photo-caption {
  font-size: 0.5625rem;
  margin-top: 0.12rem;
}

.binder-photo-caption strong {
  font-size: 0.5625rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .binder-toolbar-row--nav {
    flex-wrap: wrap;
  }

  .binder-toolbar-divider {
    display: none;
  }

  .binder-toolbar-group--sites {
    flex: 1 1 100%;
    order: 3;
  }

  .binder-layout {
    grid-template-columns: 1fr;
  }
}

.binder-section-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dash-label);
}

.binder-count {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--dash-muted);
}

.binder-details-row dt,
.binder-details-row-label,
.binder-equipment-summary-label,
.binder-site-edit-field-label,
.binder-equipment-edit-field-label {
  color: var(--dash-label);
}

.binder-details-row dd {
  color: var(--dash-text);
}

.binder-empty-inline {
  color: var(--dash-muted);
}

.binder-table th {
  color: var(--dash-label);
  font-weight: 700;
}

.binder-table td {
  color: var(--dash-text);
}

.binder-link {
  color: var(--dash-link);
  font-weight: 600;
}

.binder-meta {
  color: #94a3b8;
  font-size: 0.68rem;
}

.binder-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.binder-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}

.binder-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.28rem;
  margin: 0;
}

.binder-details-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.binder-details-row {
  display: grid;
  grid-template-columns: minmax(5rem, 6.5rem) minmax(0, 1fr);
  gap: 0.35rem 0.5rem;
  align-items: baseline;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.binder-details-row:last-child {
  border-bottom: none;
}

.binder-details-row dt,
.binder-details-row-label {
  margin: 0;
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.45);
}

.binder-details-row dd {
  margin: 0;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.35;
  white-space: pre-wrap;
}

.binder-property-link {
  margin: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  font-size: 0.6875rem;
}

.binder-site-details-head {
  margin-bottom: 0.35rem;
}

.binder-site-pc-dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.binder-site-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.binder-site-edit-field--wide {
  grid-column: 1 / -1;
}

.binder-site-edit-section-label {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
}

.binder-site-info-core {
  margin-bottom: 0.35rem;
}

.binder-site-edit-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.binder-site-edit-row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7rem) minmax(0, 1fr) auto;
  gap: 0.3rem 0.35rem;
  align-items: start;
}

.binder-site-edit-field {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.binder-site-edit-field-label {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.45);
}

.binder-site-edit-field--value .binder-site-value {
  min-height: 2.5rem;
  resize: vertical;
}

.binder-site-remove-row {
  margin-top: 1.1rem;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
}

.binder-site-remove-row:hover {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
}

.binder-site-edit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.binder-site-edit-save-group {
  display: flex;
  gap: 0.3rem;
}

.binder-site-edit-status {
  margin: 0.25rem 0 0;
  min-height: 0.85rem;
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.45);
}

.binder-site-edit-status--error {
  color: #fca5a5;
}

.binder-site-edit-link {
  font-size: 0.5625rem;
}

.binder-equipment-head {
  margin-bottom: 0.35rem;
}

.equip-meta-live {
  color: #86efac;
  font-weight: 600;
}

.receiver-chart-wrap {
  overflow: auto;
  margin-top: 0.25rem;
}

.site-equipment-block {
  margin-top: 0.55rem;
}

.site-equipment-subhead {
  margin: 0 0 0.15rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dash-label);
}

.site-equipment-detail {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.45);
}

.site-equipment-meta {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.5625rem;
}

.receiver-chart-row--unknown .site-equipment-status {
  color: rgba(255, 255, 255, 0.55);
}

.receiver-chart {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.6875rem;
}

.receiver-chart th,
.receiver-chart td {
  padding: 0.28rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: middle;
}

.receiver-chart th {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--dash-label);
  white-space: nowrap;
}

.receiver-chart-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #f1f5f9;
  white-space: nowrap;
}

.receiver-chart-name {
  color: #eef2f7;
  min-width: 6rem;
}

.receiver-chart-com {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.625rem;
  color: #dbeafe;
  white-space: nowrap;
}

.receiver-chart-type {
  font-size: 0.625rem;
  color: var(--dash-text);
  font-weight: 500;
  white-space: nowrap;
}

.receiver-chart-seen {
  font-size: 0.625rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.receiver-chart-row--online .receiver-chart-seen {
  color: #86efac;
}

.receiver-chart-row--offline .receiver-chart-seen {
  color: #fca5a5;
}

.receiver-chart-row--unknown .receiver-chart-seen {
  color: rgba(255, 255, 255, 0.45);
}

.ticket-workspace-strip .receiver-chart-wrap {
  max-height: 9rem;
}

.equip-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.35rem;
  margin: 0 0 0.45rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.equip-meta-sep {
  color: rgba(255, 255, 255, 0.35);
}

.equip-rack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.equip-com-block {
  min-width: 0;
}

.equip-com-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.55rem;
  margin-bottom: 0.18rem;
  padding-bottom: 0.12rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.equip-com-port {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #dbeafe;
  letter-spacing: 0.02em;
}

.equip-com-port--inline {
  font-size: 0.625rem;
  font-weight: 600;
}

.equip-com-settings {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.equip-com-count {
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.45);
}

.equip-rx-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.equip-rx-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto auto;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  padding: 0.18rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.6875rem;
}

.equip-rx-row:last-child {
  border-bottom: none;
}

.equip-rx-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
}

.equip-rx-name {
  color: #eef2f7;
  min-width: 0;
}

.equip-rx-type {
  font-size: 0.5625rem;
  white-space: nowrap;
}

.equip-rx-status {
  font-size: 0.5625rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

.equip-infra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  margin-top: 0.4rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.62);
}

.equip-infra-item {
  white-space: nowrap;
}

.ticket-workspace-strip .equip-rx-row {
  grid-template-columns: 3.25rem minmax(0, 1fr) 3.5rem;
}

.ticket-workspace-strip .equip-rack {
  max-height: 8.5rem;
  overflow: auto;
}

.binder-equipment-facts {
  display: grid;
  gap: 0.2rem 0.75rem;
  grid-template-columns: minmax(4.5rem, 5.5rem) minmax(0, 1fr);
  margin: 0 0 0.45rem;
  font-size: 0.6875rem;
}

.binder-equipment-fact {
  display: contents;
}

.binder-equipment-fact dt {
  margin: 0;
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.45);
}

.binder-equipment-fact dd {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.35;
}

.binder-equipment-block {
  margin-top: 0.45rem;
}

.binder-equipment-block-title {
  margin: 0 0 0.2rem;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.52);
}

.binder-equipment-table-wrap {
  overflow: auto;
}

.binder-equipment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.6875rem;
}

.binder-equipment-table th,
.binder-equipment-table td {
  padding: 0.32rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
}

.binder-equipment-table td {
  color: #eef2f7;
}

.binder-equipment-table th {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

.binder-equipment-muted {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.625rem;
}

.binder-rx-id {
  font-size: 0.625rem;
  font-weight: 600;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.binder-port-code {
  font-size: 0.625rem;
  color: #bfdbfe;
  background: rgba(0, 102, 204, 0.12);
  padding: 0.08rem 0.25rem;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.equip-type {
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.equip-type--serial { color: #93c5fd; }
.equip-type--radio { color: #c4b5fd; }

.binder-equipment-endpoint {
  font-size: 0.6875rem;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.binder-port-table-wrap {
  overflow: auto;
  margin-top: 0.15rem;
}

.binder-port-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.625rem;
}

.binder-port-table th,
.binder-port-table td {
  padding: 0.28rem 0.35rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.binder-port-table th {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.38);
}

.equip-role {
  display: inline-block;
  font-size: 0.5625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.equip-role--receiver_serial { color: #93c5fd; }
.equip-role--receiver_radio { color: #c4b5fd; }
.equip-role--paging { color: #86efac; }
.equip-role--serial_server { color: #fde68a; }

.binder-equipment-notes {
  margin: 0.35rem 0 0;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.35;
}

.binder-equipment-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: end;
  margin-bottom: 0.35rem;
}

.binder-equipment-edit-field {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.binder-equipment-edit-field--check {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.78);
  padding-bottom: 0.2rem;
}

.binder-equipment-edit-field--wide {
  grid-column: 1 / -1;
}

.binder-equipment-edit-field-label {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.45);
}

.binder-equipment-serial-server-fields {
  display: grid;
  grid-template-columns: 1fr 5.5rem;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.binder-equipment-edit-block {
  margin-bottom: 0.45rem;
}

.binder-equipment-edit-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.binder-equipment-receiver-rows,
.binder-equipment-infra-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.binder-equipment-receiver-row {
  display: grid;
  grid-template-columns: minmax(2.5rem, 3.5rem) minmax(5rem, 1fr) minmax(5rem, 6rem) minmax(3.5rem, 4.5rem) minmax(4rem, 1fr) auto;
  gap: 0.3rem 0.35rem;
  align-items: start;
}

.binder-equipment-infra-row {
  display: grid;
  grid-template-columns: minmax(3.5rem, 4.5rem) minmax(6rem, 7rem) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.3rem 0.35rem;
  align-items: start;
}

.binder-equipment-ports-head {
  margin: 0.15rem 0 0.25rem;
}

.binder-equipment-port-rows {
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.binder-equipment-port-row {
  display: grid;
  grid-template-columns: minmax(4.5rem, 5.5rem) minmax(6rem, 7.5rem) minmax(0, 1fr) auto;
  gap: 0.3rem 0.35rem;
  align-items: start;
}

.binder-equipment-remove-row {
  margin-top: 1.1rem;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
}

.binder-equipment-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.binder-equipment-edit-status {
  margin: 0.25rem 0 0;
  min-height: 0.85rem;
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.45);
}

.binder-equipment-edit-status--error {
  color: #fca5a5;
}

.binder-equipment-edit-link {
  font-size: 0.5625rem;
}

/* Horizontal equipment strip — tickets */
.ticket-equipment-strip {
  width: 100%;
  padding: 0.35rem 0.5rem;
}

.ticket-equipment-strip .binder-equipment--readonly {
  margin: 0;
}

/* Binder — map + COM equipment side by side */
.binder-map-equipment-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.4rem;
  align-items: stretch;
  min-height: min(52vh, 28rem);
  margin-bottom: 0.4rem;
}

.binder-map-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0.35rem;
  overflow: hidden;
}

.binder-map-panel .facility-globe,
.binder-map-panel .facility-globe.facility-globe--binder {
  flex: 1 1 auto;
  min-height: 16rem;
  height: 100%;
}

.binder-map-panel .facility-globe.globe--ready {
  display: flex;
  flex-direction: column;
  min-height: 16rem;
}

.binder-map-panel .facility-globe:not(.globe--ready) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16rem;
}

.binder-map-panel .facility-globe .globe-status {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}

.binder-map-panel .facility-globe-map {
  flex: 1 1 auto;
  min-height: 12rem;
}

.binder-equipment-panel {
  min-width: 0;
  min-height: 0;
  padding: 0.35rem 0.45rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.binder-equipment-panel .binder-equipment {
  margin: 0;
}

.binder-equipment-panel .receiver-chart-wrap {
  overflow-x: auto;
}

.binder-equipment-panel .binder-equipment-table {
  font-size: 0.625rem;
}

.binder-equipment-panel .binder-equipment-table th,
.binder-equipment-panel .binder-equipment-table td {
  padding: 0.18rem 0.32rem;
}

.binder-equipment-panel .site-equipment-subhead {
  font-size: 0.625rem;
}

.binder-equipment-panel .programmed-devices-chart {
  font-size: 0.6875rem;
}

.binder-equipment-panel .programmed-devices-type,
.binder-equipment-panel .programmed-devices-count {
  color: var(--dash-text);
}

.binder-equipment-panel .receiver-chart.programmed-devices-chart th {
  color: var(--dash-label);
}

.binder-equipment-panel .equip-meta {
  font-size: 0.625rem;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

@media (max-width: 960px) {
  .binder-map-equipment-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .binder-map-panel {
    min-height: 16rem;
  }
}

.ticket-equipment-empty {
  margin: 0;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.62);
}

.binder-equipment--compact .binder-equipment-head {
  margin-bottom: 0.15rem;
}

.binder-equipment--compact .binder-section-label {
  font-size: 0.625rem;
}

.binder-equipment-compact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem 0.85rem;
}

.binder-equipment-facts--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  margin: 0;
  flex: 0 0 auto;
  align-items: flex-start;
}

.binder-equipment-facts--inline .binder-equipment-fact {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 5.5rem;
}

.binder-equipment--compact .binder-equipment-tables {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  flex: 1 1 16rem;
  min-width: 0;
  align-items: flex-start;
}

.binder-equipment--compact .binder-equipment-block {
  margin-top: 0;
  flex: 1 1 11rem;
  min-width: 0;
}

.binder-equipment--compact .binder-equipment-block-title {
  margin-bottom: 0.12rem;
}

.binder-equipment--compact .binder-equipment-table {
  font-size: 0.625rem;
}

.binder-equipment--compact .binder-equipment-table th,
.binder-equipment--compact .binder-equipment-table td {
  padding: 0.15rem 0.3rem;
}

.binder-equipment--compact .binder-equipment-table th {
  color: rgba(255, 255, 255, 0.55);
}

.ticket-workspace-strip .ticket-equipment-table-wrap {
  max-height: 5.5rem;
}

.ticket-workspace .ticket-equipment-strip {
  margin-top: 0;
  padding: 0.35rem 0.5rem;
}

.ticket-equipment-view {
  min-width: 0;
}

.ticket-equipment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.ticket-equipment-head-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  min-width: 0;
}

.ticket-equipment-title {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b8c5d6;
}

.ticket-equipment-count {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.62);
}

.ticket-equipment-table-wrap {
  max-height: 7.5rem;
  overflow: auto;
}

.ticket-equipment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.625rem;
}

.ticket-equipment-table th,
.ticket-equipment-table td {
  padding: 0.14rem 0.32rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  color: #eef2f7;
}

.ticket-equipment-table th {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.ticket-rx-id {
  font-size: 0.625rem;
  font-weight: 600;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ticket-rx-status {
  font-size: 0.5625rem;
  font-weight: 600;
  white-space: nowrap;
}

.ticket-rx-status--online { color: #86efac; }
.ticket-rx-status--offline { color: #fca5a5; }
.ticket-rx-status--unknown { color: rgba(255, 255, 255, 0.45); }

.ticket-equipment-infra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.65rem;
  margin: 0.2rem 0 0;
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.62);
}

.binder-equipment-com-group td {
  padding-top: 0.28rem;
  font-size: 0.5625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.facility-snapshot--ticket-aside .facility-snapshot-grid--compact {
  margin: 0;
}

@media (max-width: 720px) {
  .binder-equipment-receiver-row,
  .binder-equipment-infra-row,
  .binder-equipment-port-row {
    grid-template-columns: 1fr auto;
  }

  .binder-equipment-edit-field--wide,
  .binder-equipment-infra-row .binder-equipment-edit-field:nth-child(n+2),
  .binder-equipment-receiver-row .binder-equipment-edit-field:nth-child(n+2) {
    grid-column: 1 / -1;
  }

  .binder-equipment-remove-row {
    margin-top: 0;
  }

  .binder-equipment-serial-server-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .binder-site-edit-row {
    grid-template-columns: 1fr auto;
  }

  .binder-site-edit-field--value {
    grid-column: 1 / -1;
  }

  .binder-site-remove-row {
    margin-top: 0;
  }
}

.binder-info-tile {
  padding: 0.28rem 0.32rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.binder-info-tile dt {
  margin: 0;
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.38);
}

.binder-info-tile dd {
  margin: 0.08rem 0 0;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

.binder-photo-tile,
.binder-photo-add-tile {
  min-width: 0;
  max-width: 4rem;
}

.binder-photo-frame {
  position: relative;
}

.binder-photo-link {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.binder-photo-img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.25);
}

.binder-photo-delete {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.82);
  color: #fca5a5;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
}

.binder-photo-delete:hover {
  background: rgba(127, 29, 29, 0.88);
}

.binder-photo-add {
  display: grid;
  gap: 0.22rem;
}

.binder-photo-add-picker {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  max-height: 4rem;
  border-radius: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.binder-photo-add-picker:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(0, 102, 204, 0.08);
}

.binder-photo-add-picker input {
  display: none;
}

.binder-photo-add-label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
}

.binder-photo-add-form {
  display: grid;
  gap: 0.18rem;
}

.binder-photo-add-tile:has(.binder-photo-add-form:not([hidden])) {
  grid-column: 1 / -1;
  max-width: none;
}

.binder-photo-add-tile:has(.binder-photo-add-form:not([hidden])) .binder-photo-add {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.28rem;
}

.binder-photo-add-tile:has(.binder-photo-add-form:not([hidden])) .binder-photo-add-picker {
  width: 2.75rem;
  height: 2.75rem;
  max-height: none;
  flex-shrink: 0;
}

.binder-photo-add-tile:has(.binder-photo-add-form:not([hidden])) .binder-photo-add-form {
  flex: 1;
  min-width: 0;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.binder-photo-add-tile:has(.binder-photo-add-form:not([hidden])) .binder-photo-add-actions,
.binder-photo-add-tile:has(.binder-photo-add-form:not([hidden])) .binder-photo-add-status {
  grid-column: 1 / -1;
}

.binder-photo-add-tile:has(.binder-photo-add-form:not([hidden])) .binder-photo-add-field-label {
  font-size: 0.5rem;
}

.binder-photo-add-tile:has(.binder-photo-add-form:not([hidden])) .input--compact {
  padding: 0.18rem 0.28rem;
  font-size: 0.625rem;
}

.binder-photo-add-field {
  display: grid;
  gap: 0.1rem;
}

.binder-photo-add-field-label {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.45);
}

.binder-photo-add-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
}

.binder-photo-add-status {
  margin: 0;
  min-height: 0.85rem;
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.45);
}

.binder-photo-add-status--error {
  color: #fca5a5;
}

.binder-photo-caption {
  margin-top: 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.25;
}

.binder-photo-caption strong {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.binder-invoices {
  margin-top: 0.55rem;
}

.binder-invoice-add {
  margin-bottom: 0.45rem;
}

.binder-invoice-add-picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.binder-invoice-add-picker:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.binder-invoice-add-picker input {
  display: none;
}

.binder-invoice-add-label {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.binder-invoice-add-form {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.binder-invoice-add-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 0.35rem;
}

.binder-invoice-add-field {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.binder-invoice-add-field--wide {
  width: 100%;
}

.binder-invoice-add-field-label {
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.binder-invoice-add-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
}

.binder-invoice-add-status {
  margin: 0;
  min-height: 0.85rem;
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.45);
}

.binder-invoice-add-status--error {
  color: #fca5a5;
}

.binder-invoice-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.binder-invoice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.18);
}

.binder-invoice-icon--image {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.18);
}

.binder-invoice-notes-cell {
  max-width: 10rem;
  word-break: break-word;
}

.binder-invoice-delete {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
}

.binder-invoice-delete:hover {
  color: #fca5a5;
}

.binder-table-wrap {
  overflow: auto;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.binder-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.625rem;
}

.binder-table th,
.binder-table td {
  padding: 0.28rem 0.38rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
}

.binder-table th {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.42);
}

.binder-link {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
}

.binder-link:hover {
  text-decoration: underline;
}

.binder-meta {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
}

.binder-issue {
  max-width: 14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.binder-empty-inline,
.binder-empty {
  margin: 0;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.5);
}

.page-dashboard .app-main.app-canvas:has(.binder-page) {
  overflow: auto;
  height: 100vh;
}

/* Portal monitor (staff supervision of operator portal) */
.portal-monitor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.portal-monitor-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #cbd5e1;
  font-size: 0.75rem;
}

.portal-monitor-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.portal-monitor-tab {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.72rem;
  color: #94a3b8;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.5);
}

.portal-monitor-tab.is-active,
.portal-monitor-tab:hover {
  color: #e2e8f0;
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
}

.portal-monitor-panel .portal-facility-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.75rem;
}

.portal-monitor-panel .portal-alarms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.portal-monitor-panel .portal-alarms-table th,
.portal-monitor-panel .portal-alarms-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.binder-portal-access {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
}

.binder-portal-grant-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.72rem;
}

.binder-portal-grant-list li + li {
  margin-top: 0.25rem;
}

/* Portal monitor — staff management UI */
.portal-monitor-page {
  max-width: min(1080px, 100%);
}

.portal-monitor-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.portal-monitor-page-subtitle {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.portal-monitor-page-help {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
}

.portal-monitor-breadcrumb {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.portal-monitor-page-header {
  margin-bottom: 0.75rem;
}

.portal-monitor-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.portal-monitor-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.portal-monitor-sidebar {
  margin-top: 0;
}

.portal-monitor-main {
  min-width: 0;
}

.portal-monitor-grant-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-monitor-grant-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-monitor-grant-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.portal-monitor-grant-link {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  text-decoration: none;
}

.portal-monitor-grant-link:hover {
  color: #93c5fd;
}

.portal-monitor-grant-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  color: #94a3b8;
  text-transform: capitalize;
}

.portal-monitor-members-panel {
  margin-top: 0;
}

.portal-monitor-members-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.portal-monitor-add-panel {
  margin-bottom: 0.85rem;
  padding: 0.85rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.portal-monitor-add-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
}

.portal-monitor-add-help {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
}

.portal-monitor-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.portal-member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.portal-member-card {
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-member-card--inactive {
  opacity: 0.82;
  background: rgba(15, 23, 42, 0.25);
}

.portal-member-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.portal-member-identity {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.portal-member-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f8fafc;
}

.portal-member-email {
  font-size: 0.8125rem;
  color: #94a3b8;
  word-break: break-word;
}

.portal-member-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.portal-member-status--active {
  background: rgba(40, 167, 69, 0.2);
  color: #86efac;
  border: 1px solid rgba(40, 167, 69, 0.35);
}

.portal-member-status--inactive {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.portal-member-card-body {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  gap: 0.75rem 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-member-field-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-member-field-value {
  font-size: 0.8125rem;
  color: #e2e8f0;
}

.portal-member-role-form {
  margin: 0;
}

.portal-member-role-select {
  min-width: 11rem;
  background: rgba(15, 23, 42, 0.65);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.18);
}

.portal-member-sites {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.portal-member-site-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-member-chip-form {
  margin: 0;
}

.portal-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
}

.portal-member-chip--assigned {
  background: rgba(59, 130, 246, 0.18);
  color: #dbeafe;
  border-color: rgba(59, 130, 246, 0.4);
  cursor: pointer;
}

.portal-member-chip--assigned:hover {
  background: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.45);
  color: #fecaca;
}

.portal-member-chip--readonly {
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.25);
}

.portal-member-chip-remove {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.85;
}

.portal-member-assign-form {
  margin: 0;
}

.portal-member-assign-select {
  min-width: 9rem;
  background: rgba(15, 23, 42, 0.65);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.18);
}

.portal-member-no-sites {
  font-size: 0.8125rem;
}

.portal-member-card-foot {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-member-remove-btn {
  color: #fecaca;
  border-color: rgba(220, 53, 69, 0.35);
}

.portal-member-remove-btn:hover {
  background: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.5);
}

.portal-monitor-inactive {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-monitor-inactive summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
}

.portal-monitor-inactive .portal-member-list {
  margin-top: 0.65rem;
}

.portal-monitor-empty-members,
.portal-monitor-empty-state {
  padding: 1.25rem 0.5rem;
  text-align: center;
}

.portal-monitor-empty-title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e2e8f0;
}

.portal-monitor-index-panel {
  margin-top: 0;
}

.page-dashboard .portal-monitor-companies {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.85rem;
}

.page-dashboard .portal-monitor-company-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 1.05rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.page-dashboard .portal-monitor-company-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.page-dashboard .portal-monitor-company-name a {
  color: #f8fafc;
}

.page-dashboard .portal-monitor-company-name a:hover {
  color: #93c5fd;
}

.page-dashboard .portal-monitor-company-id {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.6875rem;
  color: #94a3b8;
  font-weight: 500;
}

.page-dashboard .portal-monitor-chip {
  font-size: 0.6875rem;
}

.page-dashboard .portal-monitor-company-meta {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .portal-monitor-layout {
    grid-template-columns: 1fr;
  }

  .portal-monitor-add-grid {
    grid-template-columns: 1fr;
  }

  .portal-member-card-body {
    grid-template-columns: 1fr;
  }
}

