:root {
  --base-font-size: 16px;
  --bg: #FFFCF4;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --line: #cbd5e1;
  --blue: #0f3b5e;
  --blue-soft: #dbeafe;
  --green-soft: #dcfce7;
  --red-soft: #fee2e2;
  --neutral-soft: #e2e8f0;
  --wells: #7a4b00;
  --wells-soft: #fde7bf;
  --personnel: #7c5e3e;
  --personnel-soft: #f6dcc8;
  --transport: #2c5f8a;
  --transport-soft: #d9e7f4;
  --tools: #4a6741;
  --tools-soft: #dde9d9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

body {
  font-family: 'Oswald', 'Segoe UI', sans-serif;
  background: var(--bg);
  padding: 6px;
  color: var(--text);
  font-size: var(--base-font-size);
  -webkit-tap-highlight-color: transparent;
}

body.modal-open {
  overflow: hidden;
}

body[data-theme-active="dark"] {
  --bg: #101a24;
  --card: #162331;
  --text: #e5edf7;
  --muted: #93a9bf;
  --line: #2b4054;
  --blue: #8ac7ff;
  --blue-soft: #183852;
  --green-soft: #143524;
  --red-soft: #4a1f26;
  --neutral-soft: #223243;
  --wells: #f5c16b;
  --wells-soft: #3a2d11;
  --personnel: #efc19a;
  --personnel-soft: #3f2c20;
  --transport: #91c8f5;
  --transport-soft: #1f3650;
  --tools: #b9dcae;
  --tools-soft: #243723;
}

body[data-theme-active="dark"] .app-loading-overlay {
  background: rgba(16, 26, 36, 0.82);
}

body[data-theme-active="dark"] .app-loading-card {
  border-color: rgba(138, 199, 255, 0.14);
  background: rgba(18, 32, 45, 0.9);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
}

body[data-theme-active="dark"] .app-loading-spinner {
  border-color: rgba(138, 199, 255, 0.16);
  border-top-color: #8ac7ff;
}

body[data-theme-active="dark"] .app-loading-text {
  color: #eef6ff;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

.hidden {
  display: none !important;
}

.management-dashboard {
  margin: 20px 0;
  padding: 18px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.management-head,
.management-demo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.management-head h2 {
  margin: 0;
  font-size: calc(var(--base-font-size) * 1.35);
  line-height: 1.2;
}

.management-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  margin-bottom: 10px;
}

.management-tab {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(15, 59, 94, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #123650;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.management-tab.is-active {
  border-color: #1f5d93;
  background: #1f5d93;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 93, 147, 0.2);
}

.management-tab-panel {
  display: grid;
  gap: 14px;
}

.management-subtitle,
.management-demo-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: calc(var(--base-font-size) * 0.86);
}

.management-period,
.management-demo-link {
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--neutral-soft);
  color: var(--text);
  padding: 6px 10px;
  font-size: calc(var(--base-font-size) * 0.78);
  font-weight: 700;
  text-decoration: none;
}

.management-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.management-kpi,
.management-panel,
.management-demo-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.management-kpi {
  padding: 12px;
}

.management-kpi span,
.management-panel-title {
  display: block;
  color: var(--muted);
  font-size: calc(var(--base-font-size) * 0.78);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.management-kpi strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: calc(var(--base-font-size) * 1.7);
  line-height: 1;
}

.management-kpi small {
  display: block;
  margin-top: 6px;
  color: #33516a;
  font-weight: 700;
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 12px;
}

.management-panel,
.management-demo-panel {
  padding: 14px;
}

.management-bars {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.management-bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(120px, 1.4fr) 44px;
  align-items: center;
  gap: 10px;
}

.management-bar-label span {
  display: block;
  color: var(--text);
  font-weight: 700;
}

.management-bar-label small {
  color: var(--muted);
}

.management-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 59, 94, 0.12);
}

.management-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d67b2, #16a085);
}

.management-bar-value {
  color: var(--text);
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.management-table-wrap {
  max-height: 310px;
  overflow: auto;
  margin-top: 12px;
}

.management-table {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(var(--base-font-size) * 0.82);
}

.management-table th,
.management-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.management-table th:first-child,
.management-table td:first-child {
  text-align: left;
}

.management-demo-panel {
  margin-top: 14px;
}

.report-analytics-panel {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 59, 94, 0.04);
}

.report-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-analytics-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.report-bubble-chart {
  min-height: 420px;
  margin-top: 10px;
  overflow: hidden;
}

.report-bubble-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 390px;
}

.report-chart-axis {
  stroke: var(--line);
  stroke-width: 2;
}

.report-chart-grid {
  stroke: rgba(15, 59, 94, 0.12);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.report-chart-label {
  fill: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.report-chart-tick {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.bubble-legend {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #38556f;
  font-size: calc(var(--base-font-size) * 0.78);
  font-weight: 800;
}

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

.bubble-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(15, 59, 94, 0.06);
}

.report-bubble {
  cursor: grab;
  outline: none;
  transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
  touch-action: none;
}

.report-bubble.is-dragging {
  cursor: grabbing;
  transition: none;
}

.report-bubble.is-returning {
  transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.report-bubble-float {
  animation: report-bubble-float var(--float-duration, 6.4s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

.report-bubble:hover .report-bubble-float,
.report-bubble:focus-visible .report-bubble-float,
.report-bubble.is-dragging .report-bubble-float {
  animation-play-state: paused;
}

@keyframes report-bubble-float {
  0%,
  100% {
    transform: translate(0, 0);
  }

  28% {
    transform: translate(var(--float-x, 4px), calc(var(--float-y, 3px) * -1));
  }

  58% {
    transform: translate(calc(var(--float-x, 4px) * -0.8), var(--float-y, 3px));
  }

  78% {
    transform: translate(calc(var(--float-x, 4px) * 0.35), calc(var(--float-y, 3px) * 0.75));
  }
}

.report-bubble circle {
  fill: color-mix(in srgb, var(--bubble-fill) 78%, transparent);
  stroke: var(--bubble-stroke);
  stroke-width: 2;
  opacity: 0.82;
  transition: opacity 0.15s ease, stroke-width 0.15s ease, filter 0.15s ease;
}

.report-bubble:hover circle,
.report-bubble.is-selected circle,
.report-bubble:focus-visible circle {
  opacity: 1;
  stroke-width: 4;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.22));
}

.report-bubble text {
  fill: #ffffff;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(15, 23, 42, 0.32);
  stroke-width: 3px;
}

.report-bubble text + text {
  fill: #eef9ff;
  font-size: 12px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .report-bubble,
  .report-bubble-float,
  .report-bubble circle {
    animation: none !important;
    transition: none !important;
  }
}

.bubble-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d8e6ef;
  background: #f7fbfd;
  color: #31506a;
  font-weight: 800;
}

.bubble-details.is-active div {
  min-height: 58px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2edf4;
}

.bubble-details span {
  display: block;
  color: #61798f;
  font-size: calc(var(--base-font-size) * 0.72);
  text-transform: uppercase;
}

.bubble-details strong {
  display: block;
  margin-top: 4px;
  color: #0f2f49;
  font-size: calc(var(--base-font-size) * 0.94);
}

.report-analytics-empty {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.waterfall-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(74px, 1fr));
  gap: 12px;
  min-height: 300px;
  align-items: end;
  padding: 18px 6px 18px;
}

.waterfall-step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: calc(180px * var(--h));
  padding: 12px 8px;
  border-radius: 8px;
  color: #ffffff;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 12px 20px rgba(15, 23, 42, 0.12);
  cursor: help;
  outline: none;
}

.waterfall-step.revenue {
  background: linear-gradient(180deg, #1f7acb, #155991);
}

.waterfall-step.cogs {
  background: linear-gradient(180deg, #db6a3c, #ad4529);
}

.waterfall-step.gross {
  background: linear-gradient(180deg, #18a979, #0f7a5b);
}

.waterfall-step.opex {
  background: linear-gradient(180deg, #a855b7, #7b368a);
}

.waterfall-step.ebitda {
  background: linear-gradient(180deg, #223f83, #182d60);
}

.waterfall-step span {
  font-size: calc(var(--base-font-size) * 0.78);
  font-weight: 900;
}

.waterfall-step strong {
  font-size: calc(var(--base-font-size) * 1.24);
}

.waterfall-step small {
  display: block;
  min-height: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: calc(var(--base-font-size) * 0.68);
  font-weight: 800;
}

.waterfall-step::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 4;
  width: min(280px, 72vw);
  padding: 10px 12px;
  border-radius: 8px;
  background: #10263a;
  color: #ffffff;
  font-size: calc(var(--base-font-size) * 0.74);
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.waterfall-step::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  z-index: 5;
  width: 12px;
  height: 12px;
  background: #10263a;
  opacity: 0;
  transform: translateX(-50%) rotate(45deg);
  transition: opacity 0.14s ease;
}

.waterfall-step:hover::after,
.waterfall-step:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.waterfall-step:hover::before,
.waterfall-step:focus-visible::before {
  opacity: 1;
}

.waterfall-step:hover,
.waterfall-step:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5), 0 18px 28px rgba(15, 23, 42, 0.2);
}

.sample-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.sample-metric-grid div {
  min-height: 92px;
  padding: 14px;
  border-radius: 8px;
  background: #f1f7fb;
  border: 1px solid #d9e8f2;
}

.sample-metric-grid span,
.dashboard-source-list span {
  display: block;
  color: #31506a;
  font-weight: 800;
}

.sample-metric-grid strong {
  display: block;
  margin-top: 8px;
  color: #0f2f49;
  font-size: calc(var(--base-font-size) * 1.65);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: 48px repeat(4, minmax(44px, 1fr));
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.heatmap-grid span {
  color: #31506a;
  font-weight: 900;
}

.heatmap-grid i {
  display: block;
  min-height: 42px;
  border-radius: 8px;
  background: color-mix(in srgb, #16a085 calc(var(--load) * 100%), #f0f7fb);
  border: 1px solid rgba(15, 59, 94, 0.12);
}

.dashboard-source-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.dashboard-source-list span {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #dbe7ef;
  background: #f8fbfd;
}

.management-demo-frame {
  display: block;
  width: 100%;
  height: 820px;
  border: 0;
  border-radius: 10px;
  background: #0c0f15;
}

body[data-theme-active="dark"] .management-dashboard {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

body[data-theme-active="dark"] .management-kpi,
body[data-theme-active="dark"] .management-panel,
body[data-theme-active="dark"] .management-demo-panel {
  background: rgba(255, 255, 255, 0.03);
}

body[data-theme-active="dark"] .report-analytics-panel {
  background: rgba(138, 199, 255, 0.05);
}

body[data-theme-active="dark"] .management-tab {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #dcecff;
}

body[data-theme-active="dark"] .management-tab.is-active {
  background: #2d67b2;
  color: #ffffff;
}

body[data-theme-active="dark"] .management-kpi small,
body[data-theme-active="dark"] .sample-metric-grid span,
body[data-theme-active="dark"] .dashboard-source-list span,
body[data-theme-active="dark"] .heatmap-grid span,
body[data-theme-active="dark"] .bubble-legend,
body[data-theme-active="dark"] .bubble-details {
  color: #d7e8f7;
}

body[data-theme-active="dark"] .sample-metric-grid div,
body[data-theme-active="dark"] .dashboard-source-list span,
body[data-theme-active="dark"] .bubble-details,
body[data-theme-active="dark"] .bubble-details.is-active div {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-theme-active="dark"] .sample-metric-grid strong,
body[data-theme-active="dark"] .bubble-details strong {
  color: #ffffff;
}

body[data-theme-active="dark"] .bubble-details span {
  color: #a9bfd3;
}

body.management-session #editSection,
body.management-session #activityGuidePanel,
body.management-session #reportsSection,
body.management-session .section-picker-title,
body.management-session .section-editor {
  display: none !important;
}

@media (max-width: 900px) {
  .management-kpis,
  .management-grid,
  .report-analytics-grid,
  .waterfall-chart,
  .bubble-details {
    grid-template-columns: 1fr;
  }

  .management-head,
  .management-demo-head {
    flex-direction: column;
  }

  .management-demo-frame {
    height: 720px;
  }
}

.app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 4800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 252, 244, 0.86);
  backdrop-filter: blur(4px);
}

.app-loading-card {
  min-width: min(360px, calc(100vw - 32px));
  max-width: 460px;
  min-height: 112px;
  border-radius: 18px;
  border: 1px solid rgba(15, 59, 94, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 22px;
  text-align: center;
}

.app-loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(15, 59, 94, 0.16);
  border-top-color: #0f3b5e;
  animation: fsops-spin 0.9s linear infinite;
}

.app-loading-text {
  color: #0f3b5e;
  font-size: calc(var(--base-font-size) * 0.96);
  font-weight: 600;
  line-height: 1.3;
}

@keyframes fsops-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mt-20 {
  margin-top: 20px;
}

.top-shell {
  position: sticky;
  top: 0;
  z-index: 2500;
  background: var(--bg);
  padding-bottom: 4px;
}

.header {
  background: white;
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.header.with-bg {
  background-image: linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.28)), url('./assets/header-bg.jpg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 58px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.header-left-fixed {
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.header-logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.header h1 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.access-badge,
.sync-badge,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.access-badge {
  background: var(--neutral-soft);
  color: #475569;
}

.access-badge.user {
  background: var(--green-soft);
  color: #166534;
}

.access-badge.admin {
  background: #fef3c7;
  color: #854d0e;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  background: var(--blue-soft);
  color: #1e40af;
}

.section-mode {
  margin-left: 0;
  width: fit-content;
  max-width: 100%;
  flex: 0 0 auto;
}

.connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: calc(var(--base-font-size) * 0.74);
  white-space: nowrap;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.connection-badge::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}

.connection-badge.online::before {
  background: #22c55e;
}

.connection-badge.offline::before {
  background: #94a3b8;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
  font-size: calc(var(--base-font-size) * 0.68);
  font-weight: 800;
  white-space: nowrap;
}

.logout-btn {
  padding: 5px 12px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: #475569;
}

.logout-btn:hover {
  background: #e2e8f0;
}

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

.ops-view-toggle {
  padding: 5px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  border-radius: 20px;
  background: rgba(15, 59, 94, 0.82);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.ops-view-toggle:hover {
  background: rgba(15, 59, 94, 0.96);
}

.mobile-admin-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1.5px solid #bfdbfe;
  border-radius: 20px;
  background: #e0f2fe;
  color: #075985;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-admin-btn:hover {
  background: #bae6fd;
}

.mobile-settings-panel .mobile-admin-btn {
  width: 100%;
  margin-top: 10px;
}

.login-screen-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 16px;
}

.login-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 24px;
  width: 100%;
  max-width: min(360px, 90vw);
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.login-logo {
  height: 56px;
  width: auto;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.login-card h2 {
  margin-bottom: 20px;
  color: var(--blue);
  font-size: calc(var(--base-font-size) * 1.3);
}

.login-field {
  margin-bottom: 12px;
  text-align: left;
  position: relative;
}

.login-field label {
  display: block;
  font-size: calc(var(--base-font-size) * 0.78);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.login-field input {
  width: 100%;
  padding: 10px 12px;
  font-size: var(--base-font-size);
  border: 2px solid var(--line);
  border-radius: 10px;
  box-sizing: border-box;
  font-family: inherit;
}

.login-field input:focus {
  outline: none;
  border-color: var(--blue);
}

.login-location-picker {
  position: relative;
  display: flex;
  align-items: stretch;
}

.login-location-picker input {
  padding-right: 44px;
}

.login-location-picker input[readonly] {
  cursor: pointer;
}

.login-location-picker input.login-location-manual {
  cursor: text;
}

.login-location-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--blue);
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
}

.login-location-toggle:hover {
  background: rgba(15, 59, 94, 0.08);
}

.login-location-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #ffffff;
  border: 1.5px solid #d5dfeb;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  z-index: 30;
  padding: 6px;
}

.login-location-option {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 9px 10px;
  border-radius: 10px;
  color: #1f2937;
  cursor: pointer;
}

.login-location-option:hover,
.login-location-option.is-active {
  background: #dbeafe;
  color: #0f3b5e;
}

.login-location-empty {
  padding: 10px;
  color: #64748b;
  font-size: calc(var(--base-font-size) * 0.86);
}

.item-field select.hybrid-select,
.item-field input.manual-entry-input {
  cursor: pointer;
}

.item-field input.manual-entry-input {
  cursor: text;
}

.item-field.item-manual-entry-ready::after,
.item-field.item-manual-entry-active::after {
  content: "dbl";
  position: absolute;
  top: 9px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.item-field.item-manual-entry-ready::after {
  background: rgba(15, 59, 94, 0.08);
  color: var(--blue);
}

.item-field.item-manual-entry-active::after {
  content: "text";
  background: rgba(34, 197, 94, 0.16);
  color: #166534;
}

.login-btn {
  width: 100%;
  padding: 12px;
  font-size: var(--base-font-size);
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  margin-top: 4px;
}

.login-btn:active {
  transform: scale(0.98);
}

.login-error {
  color: #dc2626;
  margin-top: 10px;
  font-size: calc(var(--base-font-size) * 0.9);
}

.badge {
  font-size: calc(var(--base-font-size) * 0.7);
  background: var(--neutral-soft);
  font-weight: 500;
}

.search-card,
.main-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  width: 100%;
  overflow-x: hidden;
  min-width: 0;
}

.toolbar-shell {
  border-left: none !important;
  margin-bottom: 10px;
}

.toolbar-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
}

.toolbar-row-fixed {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  white-space: nowrap;
}

.toolbar-row-fixed > * {
  flex: 0 0 auto;
}


.toolbar-status-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 6px;
}

.offline-queue-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 2px;
}

.offline-queue-label {
  font-size: 12px;
  font-weight: 700;
  color: #854d0e;
}

.offline-queue-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.offline-queue-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  font-size: calc(var(--base-font-size) * 0.7);
  font-weight: 700;
}

.toolbar-status {
  font-size: calc(var(--base-font-size) * 0.78);
  color: #64748b;
  min-height: 18px;
}

.toolbar-status.neutral {
  color: #64748b;
}

.toolbar-status.ok {
  color: #166534;
}

.toolbar-status.warn {
  color: #854d0e;
}

.master-admin-panel {
  margin: 0 0 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #d8e2ee;
  border-left: 4px solid #0f3b5e;
  border-radius: 8px;
}

.master-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.master-admin-head-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.master-admin-head h3 {
  margin: 0;
  color: #0f3b5e;
  font-size: calc(var(--base-font-size) * 0.95);
  letter-spacing: 0;
}

.master-admin-subtitle {
  margin-top: 3px;
  color: #475569;
  font-size: calc(var(--base-font-size) * 0.75);
}

.master-admin-indicators,
.master-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.master-admin-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(130px, 0.6fr) minmax(130px, 0.6fr);
  gap: 8px;
  margin-bottom: 10px;
}

.master-admin-filter label {
  display: block;
  margin-bottom: 3px;
  color: #475569;
  font-size: calc(var(--base-font-size) * 0.7);
  font-weight: 700;
}

.master-admin-filter select,
.master-admin-filter input {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: calc(var(--base-font-size) * 0.78);
}

.master-admin-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e8f1f8;
  color: #0f3b5e;
  font-size: calc(var(--base-font-size) * 0.72);
  font-weight: 700;
  white-space: nowrap;
}

.master-admin-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f3b5e;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.master-admin-toggle:hover {
  background: #e8f1f8;
}

.master-admin-body {
  display: block;
}

.master-admin-actions .submit-button {
  min-height: 36px;
}

.master-admin-guide-panel {
  margin-top: 12px;
  border-radius: 8px;
}

.master-admin-guide-panel .activity-guide-body,
.saved-reports-guide-panel .activity-guide-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.saved-reports-guide-panel {
  margin: 8px 0 10px;
  border-radius: 8px;
}

.reference-admin-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(32, 96, 142, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(18, 38, 63, 0.08);
}

.reference-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.reference-admin-head h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: #15324a;
}

.reference-admin-subtitle {
  margin-top: 4px;
  color: #637587;
  font-size: 0.82rem;
}

.reference-admin-actions,
.reference-admin-row-actions,
.reference-admin-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reference-admin-toggle {
  width: 42px !important;
  height: 38px !important;
  min-width: 42px !important;
  min-height: 38px !important;
  border: 1px solid rgba(32, 96, 142, 0.22);
  border-radius: 6px;
  background: #f6f9fb;
  color: #15324a;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.reference-admin-toggle:hover {
  background: #e8f1f8;
}

.reference-admin-body {
  display: block;
}

.reference-admin-tabs {
  margin-bottom: 12px;
}

.reference-admin-search {
  margin-bottom: 12px;
}

.reference-admin-search input {
  width: min(420px, 100%);
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(32, 96, 142, 0.2);
  border-radius: 6px;
  background: #ffffff;
  color: #15324a;
  font: inherit;
}

.reference-admin-tab {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(32, 96, 142, 0.22);
  border-radius: 6px;
  background: #f6f9fb;
  color: #24445e;
  font-weight: 700;
  cursor: pointer;
}

.reference-admin-tab.active {
  background: #1f6f9f;
  border-color: #1f6f9f;
  color: #ffffff;
}

.reference-admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(32, 96, 142, 0.14);
  border-radius: 8px;
}

.reference-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.84rem;
}

.reference-admin-table th,
.reference-admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(32, 96, 142, 0.12);
  text-align: left;
  vertical-align: middle;
}

.reference-admin-table td {
  background: #ffffff !important;
  color: #102f49 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

.reference-admin-table th {
  background: #eef5f9 !important;
  color: #15324a !important;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.reference-admin-table td *,
.reference-admin-table th * {
  color: inherit !important;
  opacity: 1 !important;
}

.reference-admin-table tr,
.reference-admin-table tbody,
.reference-admin-table tbody * {
  opacity: 1 !important;
}

.reference-admin-table tr:hover td {
  background: #f2f8fc !important;
  color: #102f49 !important;
}

.reference-admin-row-actions .table-btn {
  width: auto !important;
  min-width: 54px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}

.reference-admin-row-actions .table-btn.edit-btn {
  background: #dbeafe !important;
  color: #123f91 !important;
  border: 1px solid #93c5fd !important;
}

.reference-admin-row-actions .table-btn.del-btn {
  background: #fee2e2 !important;
  color: #9f1239 !important;
  border: 1px solid #fca5a5 !important;
}

.reference-admin-table tr:last-child td {
  border-bottom: 0;
}

.reference-edit-dialog {
  width: min(560px, calc(100vw - 28px));
}

.reference-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 8px;
}

.reference-edit-field {
  display: grid;
  gap: 5px;
  color: #24445e;
  font-size: 0.78rem;
  font-weight: 700;
}

.reference-edit-field input {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(32, 96, 142, 0.22);
  border-radius: 6px;
  color: #15324a;
  font: inherit;
}

.reference-edit-error {
  margin: 8px 0;
  color: #b42318;
  font-size: 0.82rem;
  font-weight: 700;
}

.mobile-admin-overlay {
  display: none;
}

.mobile-settings-btn,
.mobile-settings-panel {
  display: none;
}

.mobile-settings-panel {
  position: absolute;
  inset: auto auto calc(100% + 10px) 50%;
  transform: translateX(-50%);
  width: min(260px, calc(100vw - 24px));
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 252, 244, 0.98);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  z-index: 4300;
}

.mobile-settings-field {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.mobile-settings-field + .mobile-settings-field {
  margin-top: 8px;
}

.mobile-settings-field label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.utility-controls {
  display: none;
}

.hidden {
  display: none !important;
}

.submit-button,
.add-button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: #10b981;
  color: white;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.submit-button.secondary {
  background: #10b981;
  color: white;
}

.submit-button.secondary.danger {
  background: #b91c1c;
  color: white;
}

.submit-button.secondary:hover {
  background: #059669;
}

.submit-button.secondary.danger:hover {
  background: #991b1b;
}

.submit-button:disabled,
.add-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.section-title {
  font-size: calc(var(--base-font-size) * 0.95);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.section-summary-chips {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
}

.section-summary-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.7);
  color: currentColor;
  font-size: calc(var(--base-font-size) * 0.72);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.section-summary-chip-more {
  font-weight: 700;
}

.section-summary-chip.has-manual-time {
  border-color: #d97706;
}

.section-time-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 16px;
  padding: 1px 4px;
  border-radius: 999px;
  background: #facc15;
  color: #422006;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.section-select-button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: calc(var(--base-font-size) * 0.82);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.section-summary-chip:hover {
  filter: brightness(0.98);
}

.section-summary-chip:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

.wells-title {
  color: var(--wells);
}

.wells-title .badge,
.wells-add-button {
  background: var(--wells-soft);
  color: var(--wells);
  border-color: #e2b96b;
}

.personnel-title {
  color: var(--personnel);
}

.personnel-title .badge,
.personnel-add-button {
  background: var(--personnel-soft);
  color: var(--personnel);
  border-color: #d6b08f;
}

.transport-title {
  color: var(--transport);
}

.transport-title .badge,
.transport-add-button {
  background: var(--transport-soft);
  color: var(--transport);
  border-color: #9ebddd;
}

.tools-title {
  color: var(--tools);
}

.tools-title .badge,
.tools-add-button {
  background: var(--tools-soft);
  color: var(--tools);
  border-color: #abc3a3;
}

.wells-title .section-summary-chip {
  background: rgba(253, 231, 191, 0.85);
  border-color: #e2b96b;
}

.personnel-title .section-summary-chip {
  background: rgba(246, 220, 200, 0.85);
  border-color: #d6b08f;
}

.transport-title .section-summary-chip {
  background: rgba(217, 231, 244, 0.88);
  border-color: #9ebddd;
}

.tools-title .section-summary-chip {
  background: rgba(221, 233, 217, 0.88);
  border-color: #abc3a3;
}

.form-grid,
.filters-row {
  display: grid;
  width: 100%;
  gap: 8px;
  align-items: end;
}

.filters-row {
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 0.8fr));
  margin-top: 8px;
}

.floating-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  min-width: 0;
}

.notes-field {
  width: 100%;
}

#jobIdFormGrid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: flex-end;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

#jobIdFormGrid .floating-label {
  flex: 0 0 auto;
}

#jobIdFormGrid .floating-label:has(#jobId) { width: 180px; }
#jobIdFormGrid .floating-label:has(#location) { width: 165px; }
#jobIdFormGrid .floating-label:has(#locationId) { width: 88px; }
#jobIdFormGrid .floating-label:has(#activity) { width: 165px; }
#jobIdFormGrid .floating-label:has(#subActivity) { width: 250px; }
#jobIdFormGrid .floating-label:has(#slSroId) { width: 170px; }
#jobIdFormGrid .floating-label:has(#slSroLineId) { width: 98px; }
#jobIdFormGrid .floating-label:has(#start) { width: 160px; }
#jobIdFormGrid .floating-label:has(#end) { width: 160px; }
#jobIdFormGrid .floating-label:has(#jobHours) { width: 86px; }
#jobIdFormGrid .floating-label:has(#jobDays) { width: 86px; }
#jobIdFormGrid .notes-field { width: 220px; }

.floating-label label,
.filter-group label {
  font-size: calc(var(--base-font-size) * 0.72);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  padding-left: 2px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-label label.required::after {
  content: ' *';
  color: #dc2626;
}

.floating-label input,
.floating-label select,
.floating-label textarea,
.filter-group input,
.toolbar-picker {
  min-height: calc(var(--base-font-size) * 2.2);
  height: calc(var(--base-font-size) * 2.2);
  line-height: 1.3;
}

.section-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-guide-panel {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  overflow: hidden;
}

.activity-guide-toggle {
  width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  border: none;
  background: rgba(15, 59, 94, 0.06);
  color: var(--blue);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.activity-guide-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.activity-guide-section {
  display: grid;
  gap: 6px;
}

.activity-guide-title {
  font-size: calc(var(--base-font-size) * 0.72);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.activity-guide-text {
  color: var(--text);
  line-height: 1.45;
}

.activity-guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.activity-guide-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #0f3b5e;
  font-size: calc(var(--base-font-size) * 0.72);
  font-weight: 600;
}

.section-collapse-btn {
  margin-left: 0;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.section-collapse-btn:hover {
  background: rgba(219, 234, 254, 0.95);
}

.section-collapse-btn:active {
  transform: scale(0.96);
}

.section-collapse-icon {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.18s ease;
}

.section-collapse-btn[aria-expanded="false"] .section-collapse-icon {
  transform: rotate(-45deg);
}

.section-list-shell {
  min-height: 108px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.section-footer {
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
}

.item-list,
.item-stack,
.gas-item-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-card {
  background: #f8fafc;
  border: 1.5px solid var(--line);
  border-left-width: 6px;
  border-radius: 12px;
  padding: 10px 12px;
}

.item-card.just-added {
  animation: fsops-added-pulse 1.6s ease;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22), 0 10px 24px rgba(16, 185, 129, 0.14);
}

@keyframes fsops-added-pulse {
  0% {
    transform: translateY(-4px);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.34), 0 10px 24px rgba(16, 185, 129, 0.18);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18), 0 6px 14px rgba(0, 0, 0, 0.06);
  }
}

.item-card.is-complete {
  border-left-color: #16a34a;
}

.item-card.is-incomplete {
  border-left-color: #dc2626;
}

.wells-card {
  background: linear-gradient(180deg, #fff4dc, #fffbf2);
}

.personnel-card {
  background: linear-gradient(180deg, #fdf0e4, #fff8f3);
}

.transport-card {
  background: linear-gradient(180deg, #eaf3fb, #f8fbfe);
}

.tools-card {
  background: linear-gradient(180deg, #edf5ea, #f8fcf7);
}

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

.item-card-title {
  font-weight: 700;
  color: var(--blue);
}

.item-card-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.remove-inline-btn {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #ef9a9a;
  background: #fee2e2;
  color: #b91c1c;
  cursor: pointer;
  font-weight: 700;
}

.item-grid,
.gas-item-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 8px;
  width: max-content;
  min-width: 100%;
  align-items: end;
}

.item-field {
  min-width: 0;
}

.item-field-notes {
  min-width: 240px;
}

.item-field textarea,
.item-field select,
.item-field input {
  width: 100%;
}.empty-state {
  color: var(--muted);
}

.reports-heading {
  margin-bottom: 10px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.reports-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 0 0 auto;
}

.reports-heading-title .submit-button {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  flex: 0 0 auto;
}

.reports-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-left: auto;
}

.reports-selection-summary {
  margin: 6px 0 10px;
  gap: 6px;
}

.report-selection-summary-chip {
  border: 1px solid var(--line);
  cursor: pointer;
}

.report-selection-count-chip {
  background: rgba(15, 59, 94, 0.08);
  color: #0f3b5e;
  font-weight: 700;
}

.report-selection-clear-chip {
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
}

.reports-heading h3 {
  font-size: calc(var(--base-font-size) * 1);
  color: var(--blue);
  font-weight: 700;
  margin: 0;
}

.report-count {
  background: var(--blue-soft);
  color: #1e40af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}

@media (min-width: 1025px) {
  .reports-heading {
    flex-wrap: nowrap !important;
  }

  .reports-heading-title {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .reports-heading-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
    white-space: nowrap;
  }
}

.report-filters-row .filter-group {
  min-width: 0;
}

.filter-group {
  min-width: 0;
  width: 100%;
}

.filter-group.wide {
  flex: 1 1 100%;
}

.report-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.report-item {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: white;
  cursor: pointer;
}

.report-item.active {
  border-color: var(--blue);
  background: #eff6fb;
}

.report-item small {
  color: var(--muted);
}

.log {
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #d8e2f0;
  font-family: Consolas, 'Courier New', monospace;
  overflow: auto;
  min-height: 160px;
  white-space: pre-wrap;
}

.debug-card {
  margin-bottom: 14px;
}

@media (max-width: 860px) {
  body.mobile-admin-open {
    overflow: hidden;
  }

  .mobile-admin-btn {
    display: inline-flex;
  }

  .mobile-admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 5180;
    display: block;
    background: rgba(15, 23, 42, 0.48);
  }

  .mobile-admin-overlay.hidden {
    display: none !important;
  }

  .master-admin-panel {
    display: none;
  }

  .master-admin-panel.mobile-admin-open {
    position: fixed;
    inset: 12px;
    z-index: 5200;
    display: block;
    max-height: calc(100vh - 24px);
    overflow: auto;
    margin: 0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  }

  .master-admin-head {
    position: sticky;
    top: -12px;
    z-index: 1;
    align-items: center;
    padding: 0 0 8px;
    background: #f8fafc;
  }

  .master-admin-head-actions {
    gap: 6px;
  }

  .master-admin-indicators {
    justify-content: flex-end;
  }

  .master-admin-toggle {
    width: auto;
    min-width: 56px;
    padding: 0 10px;
  }

  .master-admin-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .master-admin-guide-panel .activity-guide-body,
  .saved-reports-guide-panel .activity-guide-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .toolbar-row-fixed {
    white-space: nowrap;
  }

  #jobIdFormGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #jobIdFormGrid .floating-label,
  #jobIdFormGrid .notes-field {
    grid-column: span 1;
  }

  #jobIdFormGrid .floating-label:has(#jobId),
  #jobIdFormGrid .floating-label:has(#locationId),
  #jobIdFormGrid .floating-label:has(#activity),
  #jobIdFormGrid .floating-label:has(#subActivity),
  #jobIdFormGrid .floating-label:has(#slSroId),
  #jobIdFormGrid .floating-label:has(#slSroLineId),
  #jobIdFormGrid .floating-label:has(#start),
  #jobIdFormGrid .floating-label:has(#end) {
    grid-column: span 1;
  }

  #jobIdFormGrid .floating-label:has(#location) {
    grid-column: 1 / -1;
  }

  #jobIdFormGrid .floating-label:has(#jobHours),
  #jobIdFormGrid .floating-label:has(#jobDays),
  #jobIdFormGrid .notes-field {
    grid-column: 1 / -1;
  }

  .toolbar-subrow {
    grid-template-columns: minmax(0, 1fr);
  }

  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body[data-zoom-mode="normal"] #jobIdFormGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label,
  body[data-zoom-mode="normal"] #jobIdFormGrid .notes-field {
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#jobId) {
    grid-column: 1;
    grid-row: 1;
  }

  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#locationId) {
    grid-column: 2;
    grid-row: 1;
  }

  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#location) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#activity) {
    grid-column: 1;
    grid-row: 3;
  }

  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#subActivity) {
    grid-column: 2;
    grid-row: 3;
  }

  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#slSroId) {
    grid-column: 1;
    grid-row: 4;
  }

  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#slSroLineId) {
    grid-column: 2;
    grid-row: 4;
  }

  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#start) {
    grid-column: 1;
    grid-row: 5;
  }

  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#end) {
    grid-column: 2;
    grid-row: 5;
  }

  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#jobHours) {
    grid-column: 1;
    grid-row: 6;
  }

  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#jobDays) {
    grid-column: 2;
    grid-row: 6;
  }

  body[data-zoom-mode="normal"] #jobIdFormGrid .notes-field {
    grid-column: 1 / -1;
    grid-row: 7;
  }

  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body[data-zoom-mode="large"] #jobIdFormGrid,
  body[data-zoom-mode="large"] .item-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-zoom-mode="large"] #jobIdFormGrid .floating-label,
  body[data-zoom-mode="large"] #jobIdFormGrid .notes-field {
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  body[data-zoom-mode="large"] #jobIdFormGrid .floating-label,
  body[data-zoom-mode="large"] #jobIdFormGrid .notes-field,
  body[data-zoom-mode="large"] .item-field,
  body[data-zoom-mode="large"] .item-field.datetime,
  body[data-zoom-mode="large"] .item-field.compact {
    grid-column: 1 / -1;
  }
}

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }





.zoom-select-wrap {
  margin-left: auto;
  flex: 0 0 auto;
}

.theme-select-wrap {
  flex: 0 0 auto;
}

.zoom-select {
  min-width: 92px;
  height: 38px;
  padding: 6px 28px 6px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--blue);
  background: white;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f3b5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}

.floating-label input,
.floating-label select,
.floating-label textarea,
.filter-group input,
.toolbar-picker {
  height: calc(var(--base-font-size) * 2.2);
}

#notes {
  min-height: calc(var(--base-font-size) * 2.2);
  height: auto;
  max-height: none;
  resize: vertical;
}

.table-container {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: auto;
  max-height: 440px;
}

.reports-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  background: white;
  table-layout: fixed;
}

.reports-table th {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 5px 3px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  color: #0f3b5e;
  font-size: calc(var(--base-font-size) * 0.76);
}

.reports-table td {
  padding: 4px 3px;
  border-bottom: 1px solid #eef2f7;
  color: #1e293b;
  font-size: calc(var(--base-font-size) * 0.78);
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reports-table tr:hover td {
  background: #f8fafc;
}

.reports-table tr:hover .report-col-actions {
  white-space: nowrap;
  width: 150px;
  min-width: 150px;
  position: sticky;
  right: 0;
  z-index: 40;
  overflow: visible !important;
  text-overflow: clip;
  background: rgba(255,255,255,0.72);
  box-shadow: -12px 0 18px -14px rgba(15,59,94,0.42);
}

.reports-table tr.active-row td {
  background: #eff6fb;
}

.reports-table .loading,
.reports-table .empty-cell {
  text-align: center;
  color: #64748b;
  padding: 14px 10px;
}

.report-col-jobid { width: 118px; }
.report-col-sync { width: 52px; text-align: center; }
.report-col-location { width: 82px; }
.report-col-activity { width: 104px; }
.report-col-subactivity { width: 116px; }
.report-col-datetime { width: 108px; }
.report-col-hours { width: 54px; text-align: center; }
.report-col-notes { width: 112px; }
.report-col-actions {
  white-space: nowrap;
  width: 118px;
  min-width: 118px;
  position: sticky;
  right: 0;
  z-index: 55;
  overflow: visible !important;
  text-overflow: clip;
  background: rgba(255,255,255,0.56);
  box-shadow: none;
}

.th-wrap { display: inline-flex; align-items: center; gap: 6px; }
.actions-th-wrap {
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.report-sync-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: calc(var(--base-font-size) * 0.56);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.report-sync-pill.synced {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.report-sync-pill.pending {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.report-sync-pill.failed {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.th-filter-btn {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: white;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  padding: 0;
}

.th-filter-btn.active {
  border-color: #0f3b5e;
  color: #0f3b5e;
  background: #eff6ff;
}

.header-filter-popup {
  position: fixed;
  z-index: 3000;
  min-width: 220px;
  max-width: 320px;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  padding: 8px;
}

.header-filter-title {
  font-weight: 700;
  color: #0f3b5e;
  margin-bottom: 8px;
  font-size: calc(var(--base-font-size) * 0.82);
}

.header-filter-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-filter-item {
  width: 100%;
  text-align: left;
  border: none;
  background: #f8fafc;
  color: #1e293b;
  border-radius: 8px;
  padding: 7px 9px;
  cursor: pointer;
  font-family: inherit;
  font-size: calc(var(--base-font-size) * 0.82);
}

.header-filter-item:hover {
  background: #e2e8f0;
}

.th-sort-btn {
  border: none;
  background: transparent;
  color: #0f3b5e;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.th-sort-btn.active {
  color: #1e40af;
}

.action-buttons {
  display: flex;
  gap: 4px;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.table-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: calc(var(--base-font-size) * 0.68);
  line-height: 1;
  flex-shrink: 0;
}

.table-btn.edit-btn {
  background: #dbeafe;
  color: #1e40af;
}

.table-btn.del-btn {
  background: #fee2e2;
  color: #b91c1c;
}

.table-btn.edit-btn,
.table-btn.del-btn,
.table-btn.export-btn {
  box-shadow: inset 0 0 0 1px rgba(15, 59, 94, 0.05);
}

.report-actions-inline-toggle {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.compact-actions-btn {
  margin-left: auto;
  background: #e2e8f0;
  color: #0f3b5e;
  font-size: 15px;
  font-weight: 900;
}

.report-actions-popover {
  position: absolute;
  z-index: 3500;
  padding: 8px;
  border: 1px solid #d7e0ea;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.compact-actions-menu {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  justify-content: center;
}

.reports-section.actions-collapsed .report-col-actions {
  width: 58px !important;
  min-width: 58px !important;
}

.reports-section.actions-collapsed .action-buttons {
  justify-content: center;
}

.pagination {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding: 4px 0;
}

.pagination-info {
  color: #475569;
  font-size: calc(var(--base-font-size) * 0.8);
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.pagination-btn {
  padding: 6px 10px;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  color: #0f3b5e;
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-indicator {
  padding: 6px 12px;
  background: #0f3b5e;
  color: white;
  border-radius: 8px;
  font-size: calc(var(--base-font-size) * 0.82);
  min-width: 44px;
  text-align: center;
}

.pagination-rows select {
  width: 100%;
  padding: 6px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: calc(var(--base-font-size) * 0.85);
  font-family: inherit;
}

.status-message {
  position: fixed;
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  z-index: 5000;
  background: #0f3b5e;
  color: white;
  padding: 14px 22px;
  border-radius: 18px;
  font-weight: 700;
  box-shadow: 0 18px 42px rgba(15, 59, 94, 0.28);
  max-width: min(92vw, 560px);
  text-align: center;
}

.status-message.hidden {
  display: none;
}

.status-message.error {
  background: #dc2626;
}

.status-message.success {
  background: #10b981;
}

.status-message.warning {
  background: #d97706;
}

@media (max-width: 860px) {
  .zoom-select-wrap {
    margin-left: 0;
  }

  .toolbar-row-fixed {
    gap: 4px;
  }

  .submit-button,
  .zoom-select {
    min-height: 36px;
  }

  .filters-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .reports-table th,
  .reports-table td {
    font-size: calc(var(--base-font-size) * 0.78);
  }
}

@media (max-width: 860px) {
  #jobIdFormGrid {
    display: grid !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    align-items: stretch !important;
  }

  #jobIdFormGrid .floating-label,
  #jobIdFormGrid .notes-field {
    flex: initial !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #jobIdFormGrid .floating-label input,
  #jobIdFormGrid .floating-label select,
  #jobIdFormGrid .floating-label textarea,
  #jobIdFormGrid .notes-field textarea {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}


.export-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #0f3b5e;
  font-size: 11px;
  font-weight: 700;
}

.export-btn:hover {
  background: #dbeafe;
}



.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 20px;
  overscroll-behavior: contain;
  touch-action: none;
}

.confirm-dialog {
  width: min(420px, 100%);
  background: #fffdf8;
  border: 1px solid #e5dcc7;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.28);
  padding: 18px;
  text-align: center;
}

.confirm-dialog h4 {
  margin: 0 0 10px;
  color: #0f3b5e;
  font-size: calc(var(--base-font-size) * 1.05);
  text-align: center;
}

.confirm-dialog p {
  margin: 0 0 16px;
  color: #334155;
  line-height: 1.45;
  text-align: center;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.export-dialog {
  width: min(520px, 100%);
  text-align: center;
}

.export-format-grid {
  justify-content: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.export-option-btn {
  min-height: 48px;
  border-radius: 12px;
  background: #0f3b5e;
}

.export-option-btn:hover {
  background: #12486f;
}

.summary-dialog {
  width: min(460px, 100%);
}

.summary-dialog-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  max-height: min(48vh, 360px);
  overflow-y: auto;
}

.summary-dialog-item {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.summary-dialog-item:hover {
  background: #f8fafc;
}

.wells-picker-dialog {
  width: min(560px, 100%);
}

.wells-picker-search {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  margin: 0 0 12px;
}

.wells-picker-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.wells-picker-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.wells-picker-filter-select {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  min-width: 120px;
  max-width: 190px;
  flex: 1 1 120px;
}

.wells-picker-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
}

.wells-picker-select-all input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0f3b5e;
  margin: 0;
}

.wells-picker-count {
  margin-left: auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(15, 59, 94, 0.08);
  color: var(--text);
  font-weight: 700;
  flex: 0 0 auto;
  white-space: nowrap;
}

.wells-picker-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  max-height: min(48vh, 380px);
  overflow-y: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.wells-picker-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.wells-picker-item input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: #0f3b5e;
  flex-shrink: 0;
}

.wells-picker-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wells-picker-item-primary {
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}

.wells-picker-item-secondary {
  color: var(--muted);
  font-size: calc(var(--base-font-size) * 0.78);
  line-height: 1.2;
}

.wells-picker-item-tertiary {
  color: #475569;
  font-size: calc(var(--base-font-size) * 0.68);
  line-height: 1.25;
}

.wells-picker-item:hover {
  background: #f8fafc;
}

.wells-picker-empty {
  padding: 14px 10px;
  color: var(--muted);
  text-align: center;
}

.reports-table td.report-col-actions,
.reports-table tr:hover td.report-col-actions,
.reports-table tr.active-row td.report-col-actions {
  white-space: nowrap;
  width: 132px;
  min-width: 132px;
  position: sticky;
  right: 0;
  z-index: 40;
  overflow: visible !important;
  text-overflow: clip;
  background: rgba(255,255,255,0.72);
  box-shadow: -12px 0 18px -14px rgba(15,59,94,0.42);
}

.reports-table thead .report-col-actions {
  white-space: nowrap;
  width: 132px;
  min-width: 132px;
  position: sticky;
  right: 0;
  z-index: 40;
  overflow: visible !important;
  text-overflow: clip;
  background: rgba(255,255,255,0.72);
  box-shadow: -12px 0 18px -14px rgba(15,59,94,0.42);
}

.action-buttons {
  position: relative;
  z-index: 41;
  min-width: 122px;
}




.section-title {
  margin-bottom: 6px;
}

.section-editor {
  gap: 6px;
}

.section-list-shell {
  min-height: 0;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}

.section-footer {
  padding-top: 0;
}

.section-meta {
  font-size: calc(var(--base-font-size) * 0.78);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 2px;
}

.item-stack,
.gas-item-stack {
  gap: 8px;
}

.item-card {
  border-left-width: 0;
  border-radius: 12px;
  padding: 8px 10px;
}

.item-card-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.item-grid,
.gas-item-grid {
  grid-auto-columns: minmax(118px, max-content);
  gap: 6px;
  align-items: end;
}

.item-order-cell {
  min-width: 22px;
  align-self: end;
  padding-bottom: 10px;
  font-weight: 700;
  color: var(--blue);
}

.item-remove-cell {
  min-width: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
}

.remove-inline-btn {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #f1b5b5;
  background: #fff1f1;
  color: #e67d7d;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.item-field {
  min-width: 120px;
}

.item-field-notes {
  min-width: 220px;
}

.item-field input,
.item-field select,
.item-field textarea,
#jobIdFormGrid input,
#jobIdFormGrid select,
#jobIdFormGrid textarea {
  border-radius: 8px;
  border: 1px solid #c7d2e0;
  background: #ffffff;
  padding: 6px 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.item-field textarea,
#jobIdFormGrid textarea {
  min-height: calc(var(--base-font-size) * 2.2);
  resize: both;
}

.item-field-readonly input,
.item-field input[readonly],
#jobIdFormGrid input[readonly] {
  background: #eef2f7;
  color: #64748b;
}

.item-field-required input,
.item-field-required select,
.item-field-required textarea {
  border-left-width: 4px;
}

.item-field-required.item-field-incomplete input,
.item-field-required.item-field-incomplete select,
.item-field-required.item-field-incomplete textarea {
  border-left-color: #ef4444;
}

.item-field-required.item-field-complete input,
.item-field-required.item-field-complete select,
.item-field-required.item-field-complete textarea {
  border-left-color: #10b981;
}

.empty-state {
  display: none;
}


.report-filters-row {
  gap: 6px;
  align-items: end;
}

.report-filters-row .filter-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.report-filters-row input,
.report-filters-row select {
  min-height: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #c7d2e0;
  background: #ffffff;
  padding: 6px 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.report-filters-row .filter-group.wide {
  min-width: 240px;
}

.item-grid,
.gas-item-grid {
  grid-auto-columns: minmax(104px, max-content);
  gap: 4px;
}

.item-order-cell {
  min-width: 12px;
  width: 12px;
  padding-bottom: 8px;
  padding-right: 2px;
}

.item-remove-cell {
  min-width: 16px;
  width: 16px;
  padding-bottom: 8px;
}

.remove-inline-btn {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  font-size: 14px;
}

.item-field {
  min-width: 96px;
}

.item-field-notes {
  min-width: 180px;
}

.section-meta {
  margin-top: -2px;
}


.item-grid,
.gas-item-grid {
  column-gap: 3px;
}

.item-order-cell {
  min-width: 8px;
  width: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: 9px;
  padding-right: 0;
  margin-right: -2px;
}

.item-remove-cell {
  min-width: 24px;
  width: 24px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding-bottom: 0;
  align-self: stretch;
}

.remove-inline-btn {
  width: 22px;
  min-width: 22px;
  height: auto;
  min-height: 36px;
  border-radius: 8px;
  font-size: 15px;
}


.item-grid,
.gas-item-grid {
  column-gap: 0;
}

.item-order-cell {
  flex: 0 0 auto;
  min-width: 24px;
  width: 24px;
  align-self: flex-end;
  padding: 0 4px 8px 0;
  margin-right: 0;
  font-size: calc(var(--base-font-size) * 0.82);
  font-weight: 700;
  color: #0f3b5e;
  line-height: 1.2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.item-remove-cell {
  min-width: 24px;
  width: 24px;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 8px 0;
  align-self: flex-end;
}

.remove-inline-btn {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  border-radius: 50%;
  border: none;
  font-weight: 700;
  font-size: calc(var(--base-font-size) * 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.15s;
}

.item-card:hover .remove-inline-btn {
  opacity: 1;
}


.item-grid,
.gas-item-grid {
  column-gap: 4px;
}

.item-field-first {
  min-width: 118px;
}

.item-input-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.item-seq-inline {
  flex: 0 0 auto;
  width: 24px;
  min-width: 24px;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-size: calc(var(--base-font-size) * 0.82);
  font-weight: 700;
  color: #0f3b5e;
  line-height: 1.2;
}

.item-input-row > input,
.item-input-row > select,
.item-input-row > textarea {
  flex: 1 1 auto;
}

.item-order-cell {
  display: none;
}

.item-remove-cell {
  min-width: 24px;
  width: 24px;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 8px 0;
  align-self: flex-end;
}

.remove-inline-btn {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  border-radius: 50%;
  border: none;
  font-weight: 700;
  font-size: calc(var(--base-font-size) * 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.15s;
}


/* control vertical alignment fix */
#jobIdFormGrid input,
#jobIdFormGrid select,
#jobIdFormGrid textarea,
.item-field input,
.item-field select,
.item-field textarea,
.report-filters-row input,
.report-filters-row select,
.filter-popup-search {
  box-sizing: border-box;
  min-height: 36px;
  padding: 7px 10px 6px;
  line-height: 1.2;
  vertical-align: middle;
}

#jobIdFormGrid input,
#jobIdFormGrid select,
.item-field input,
.item-field select,
.report-filters-row input,
.report-filters-row select,
.filter-popup-search {
  height: 36px;
}

#jobIdFormGrid textarea,
.item-field textarea {
  min-height: 36px;
  line-height: 1.25;
}

#jobIdFormGrid select,
.item-field select,
.report-filters-row select {
  padding-top: 6px;
  padding-bottom: 6px;
}

.item-input-row {
  gap: 2px;
}

.item-seq-inline {
  width: 16px;
  min-width: 16px;
  justify-content: flex-start;
  transform: translateY(1px);
}


/* mobile row polish */
.remove-inline-btn {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid #f2b8b5;
  background: #fff1f1;
  color: #dc2626;
  opacity: 0.92;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.12);
}

.remove-inline-btn:hover {
  background: #fee2e2;
  opacity: 1;
}

@media (max-width: 860px) {
  .item-card {
    overflow: hidden;
  }

  .item-scroll {
    overflow-x: auto;
    overflow-y: visible;
  }

  .item-grid,
  .gas-item-grid {
    align-items: end;
  }

  .item-field input,
  .item-field select,
  .item-field textarea,
  .item-input-row > input,
  .item-input-row > select,
  .item-input-row > textarea {
    height: 36px;
    min-height: 36px;
    line-height: 1.2;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .item-field input[type="datetime-local"],
  .item-input-row > input[type="datetime-local"] {
    height: 36px;
    min-height: 36px;
    line-height: 1.1;
    padding-top: 5px;
    padding-bottom: 5px;
    box-sizing: border-box;
  }

  .item-field textarea,
  .item-input-row > textarea {
    min-height: 36px;
  }

  .item-remove-cell {
    min-width: 28px;
    width: 28px;
    padding: 0 0 6px 2px;
  }

  .remove-inline-btn {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    font-size: 14px;
  }
}


/* iphone hard layout fix */
@media (max-width: 640px) {
  .reports-table th {
    padding: 4px 2px;
    font-size: 10px;
  }

  .reports-table td {
    padding: 3px 2px;
    font-size: 11px;
  }

  .report-sync-pill {
    min-width: 40px;
    padding: 2px 5px;
    font-size: 9px;
  }

  .action-buttons {
    gap: 2px;
  }

  .table-btn {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    font-size: 10px;
  }

  .compact-actions-btn {
    font-size: 12px;
  }

  .wells-picker-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .wells-picker-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    flex: 1 1 100%;
  }

  .wells-picker-filter-select {
    min-width: 0;
    max-width: 140px;
    width: auto;
    flex: 1 1 96px;
  }

  .wells-picker-controls {
    gap: 8px;
  }

  .wells-picker-select-all,
  .wells-picker-filter-select,
  .wells-picker-count {
    min-height: 34px;
    font-size: 12px;
  }

  .wells-picker-count {
    margin-left: 0;
    margin-left: auto;
  }

  .section-title .section-heading-text,
  .section-title .section-heading-badge {
    display: none !important;
  }

  .reports-heading-actions {
    width: 100% !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
  }

  .reports-heading-title {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  .reports-heading-actions .submit-button {
    min-height: 30px !important;
    padding: 5px 8px !important;
    font-size: 11px !important;
    letter-spacing: 0.01em !important;
    border-radius: 8px !important;
  }

  .reports-heading-actions .hidden {
    display: none !important;
  }

  .reports-heading-actions .report-count {
    min-height: 22px !important;
    padding: 2px 7px !important;
    font-size: 10px !important;
    display: inline-flex !important;
    visibility: visible !important;
  }

  .item-scroll {
    overflow: visible !important;
  }

  .item-grid,
  .gas-item-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-columns: unset !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .item-field,
  .item-field-first,
  .item-field-datetime,
  .item-field-notes,
  .item-field-compact,
  .item-remove-cell {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .item-input-row {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .item-seq-inline {
    width: 16px !important;
    min-width: 16px !important;
    margin-top: 18px !important;
    align-self: center !important;
  }

  .item-input-row > input,
  .item-input-row > select,
  .item-input-row > textarea,
  .item-field input,
  .item-field select,
  .item-field textarea {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: none !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    padding: 6px 10px !important;
  }

  .item-field input[type="datetime-local"],
  .item-input-row > input[type="datetime-local"] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 6px 10px !important;
    line-height: 1.1 !important;
    -webkit-appearance: none !important;
  }

  .item-field input[type="datetime-local"]::-webkit-date-and-time-value,
  .item-input-row > input[type="datetime-local"]::-webkit-date-and-time-value {
    text-align: left;
    min-height: 24px;
  }

  .item-field textarea,
  .item-input-row > textarea {
    min-height: 64px !important;
    resize: vertical;
  }

  .item-remove-cell {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 0 !important;
  }

  .remove-inline-btn {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    font-size: 15px !important;
  }
}

@media (max-width: 1024px) {
  .reports-heading {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  .reports-heading-title {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .reports-heading-actions {
    width: 100%;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin-left: 0 !important;
  }

  .reports-heading-actions .submit-button,
  .reports-heading-actions .report-count {
    flex: 0 0 auto;
  }
}


/* job id required indicators */
#jobIdFormGrid .job-required-field {
  position: relative;
}

#jobIdFormGrid .job-required-field::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--base-font-size) * 1.35);
  bottom: 0;
  width: 4px;
  border-radius: 10px 0 0 10px;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

#jobIdFormGrid .job-required-field.job-field-incomplete::before {
  background: #ef4444;
  opacity: 1;
}

#jobIdFormGrid .job-required-field.job-field-complete::before {
  background: #10b981;
  opacity: 1;
}


/* gas header and badge polish */
.header.with-bg {
  background-image: linear-gradient(rgba(8, 23, 38, 0.18), rgba(8, 23, 38, 0.18)), url('./assets/header-bg.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
}

.header,
.top-shell,
.toolbar-shell {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.header-logo {
  height: 32px !important;
}

.header h1 {
  color: #ffffff !important;
  font-size: 18px !important;
  text-shadow: none !important;
}

.submit-button.secondary {
  background: #1f4f83 !important;
  color: #ffffff !important;
  border: 1px solid #173f69 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12) !important;
}

.submit-button.secondary:hover {
  background: #173f69 !important;
}

.submit-button.secondary.danger {
  background: #b91c1c !important;
  color: #ffffff !important;
  border: 1px solid #991b1b !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.submit-button.secondary.danger:hover {
  background: #991b1b !important;
}

.submit-button.secondary.report-picker-edit-btn {
  background: #f97316 !important;
  color: #ffffff !important;
  border: 1px solid #c2410c !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.submit-button.secondary.report-picker-edit-btn:hover {
  background: #ea580c !important;
}

.report-picker-actions {
  width: 100%;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.report-picker-actions-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.submit-button.secondary.report-picker-edit-btn,
.submit-button.secondary.report-picker-cancel-btn {
  min-width: 120px;
}

.submit-button.secondary.report-picker-delete-btn {
  min-width: 78px;
  padding-inline: 12px;
  margin-left: auto;
}

@media (max-width: 640px) {
  .report-picker-actions {
    gap: 8px;
  }

  .report-picker-actions-center {
    gap: 8px;
  }

  .submit-button.secondary.report-picker-edit-btn,
  .submit-button.secondary.report-picker-cancel-btn {
    min-width: 104px;
  }

  .submit-button.secondary.report-picker-delete-btn {
    min-width: 68px;
    padding-inline: 10px;
  }
}

.section-title {
  align-items: center !important;
  gap: 6px !important;
}

.section-title .access-badge,
.section-title .badge,
.section-title .sync-badge {
  min-height: 22px !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  font-size: calc(var(--base-font-size) * 0.64) !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translateY(0) !important;
}

.section-title .access-badge {
  background: #fde7d6 !important;
  color: #8a5528 !important;
}

.section-mode {
  min-height: 26px !important;
  padding: 4px 10px !important;
  margin-left: 0 !important;
  width: fit-content !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
}

@media (max-width: 640px) {
  .section-title .section-heading-badge {
    display: none !important;
  }

  .header {
    padding: 6px 8px !important;
    gap: 6px !important;
    overflow: hidden !important;
  }

  .header-left,
  .header-left-fixed {
    gap: 5px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  .header-logo {
    height: 22px !important;
  }

  .header h1 {
    font-size: 16px !important;
    flex: 0 1 auto;
    min-width: 0;
  }

  .location-badge,
  .access-badge,
  .connection-badge,
  .version-badge,
  .logout-btn {
    min-height: 22px !important;
    padding: 2px 6px !important;
    font-size: 9px !important;
    line-height: 1 !important;
  }

  .location-badge,
  .access-badge,
  .version-badge {
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .connection-badge {
    gap: 5px !important;
    flex-shrink: 0;
  }

  .connection-badge::before {
    width: 7px !important;
    height: 7px !important;
  }

  .logout-btn {
    padding-inline: 7px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .login-card h2 {
    font-size: calc(var(--base-font-size) * 1.15);
  }

  .login-field input,
  .login-btn {
    min-height: 40px;
  }

  .login-location-menu {
    max-height: 180px;
  }
}


/* final unified control system */
:root {
  --fsops-control-height: clamp(38px, calc(var(--base-font-size) * 2.05), 64px);
  --fsops-control-padding-y: clamp(6px, calc(var(--base-font-size) * 0.32), 12px);
  --fsops-control-padding-x: clamp(10px, calc(var(--base-font-size) * 0.62), 18px);
  --fsops-control-inner-line: 1.15;
}

#jobIdFormGrid .floating-label input,
#jobIdFormGrid .floating-label select,
.item-field input,
.item-field select,
.item-input-row > input,
.item-input-row > select,
.report-filters-row input,
.report-filters-row select,
.filter-popup-search {
  height: var(--fsops-control-height) !important;
  min-height: var(--fsops-control-height) !important;
  max-height: none !important;
  box-sizing: border-box !important;
  padding: 0 var(--fsops-control-padding-x) !important;
  line-height: calc(var(--fsops-control-height) - 2px) !important;
  font-size: var(--base-font-size) !important;
  font-family: inherit !important;
  display: block !important;
  vertical-align: middle !important;
}

#jobIdFormGrid .floating-label textarea,
.item-field textarea,
.item-input-row > textarea {
  height: auto !important;
  min-height: var(--fsops-control-height) !important;
  padding: var(--fsops-control-padding-y) var(--fsops-control-padding-x) !important;
  line-height: var(--fsops-control-inner-line) !important;
  display: block !important;
  resize: horizontal !important;
}

#jobIdFormGrid .floating-label select,
.item-field select,
.item-input-row > select,
.report-filters-row select {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: calc(var(--fsops-control-height) - 2px) !important;
}

#jobIdFormGrid input[type="datetime-local"],
.item-field input[type="datetime-local"],
.item-input-row > input[type="datetime-local"] {
  height: var(--fsops-control-height) !important;
  min-height: var(--fsops-control-height) !important;
  padding: var(--fsops-control-padding-y) var(--fsops-control-padding-x) !important;
  line-height: var(--fsops-control-inner-line) !important;
  font-size: var(--base-font-size) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block !important;
}

#jobIdFormGrid input[type="datetime-local"]::-webkit-date-and-time-value,
.item-field input[type="datetime-local"]::-webkit-date-and-time-value,
.item-input-row > input[type="datetime-local"]::-webkit-date-and-time-value,
#jobIdFormGrid input[type="datetime-local"]::-webkit-datetime-edit,
.item-field input[type="datetime-local"]::-webkit-datetime-edit,
.item-input-row > input[type="datetime-local"]::-webkit-datetime-edit,
#jobIdFormGrid input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
.item-field input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
.item-input-row > input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  line-height: var(--fsops-control-inner-line) !important;
  min-height: calc(var(--fsops-control-height) - (var(--fsops-control-padding-y) * 2)) !important;
  padding: 0 !important;
}

@media (max-width: 1024px) {
  body[data-zoom-mode="normal"] #jobIdFormGrid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
    align-items: start !important;
  }

  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label,
  body[data-zoom-mode="normal"] #jobIdFormGrid .notes-field {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: initial !important;
  }

  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#jobId) { grid-column: 1; grid-row: 1; }
  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#locationId) { grid-column: 2; grid-row: 1; }
  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#location) { grid-column: 1 / -1; grid-row: 2; }
  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#activity) { grid-column: 1; grid-row: 3; }
  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#subActivity) { grid-column: 2; grid-row: 3; }
  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#slSroId) { grid-column: 1; grid-row: 4; }
  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#slSroLineId) { grid-column: 2; grid-row: 4; }
  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#start) { grid-column: 1; grid-row: 5; }
  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#end) { grid-column: 2; grid-row: 5; }
  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#jobHours) { grid-column: 1; grid-row: 6; }
  body[data-zoom-mode="normal"] #jobIdFormGrid .floating-label:has(#jobDays) { grid-column: 2; grid-row: 6; }
  body[data-zoom-mode="normal"] #jobIdFormGrid .notes-field { grid-column: 1 / -1; grid-row: 7; }

  body[data-zoom-mode="large"] #jobIdFormGrid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  body[data-zoom-mode="large"] #jobIdFormGrid .floating-label,
  body[data-zoom-mode="large"] #jobIdFormGrid .notes-field {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: initial !important;
  }

  .item-scroll {
    overflow: visible !important;
  }

  .item-grid,
  .gas-item-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-columns: unset !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .item-field,
  .item-field-first,
  .item-field-datetime,
  .item-field-notes,
  .item-field-compact,
  .item-remove-cell {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .item-input-row {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .item-seq-inline {
    width: 16px !important;
    min-width: 16px !important;
    align-self: center !important;
    margin-top: calc(var(--fsops-control-height) * 0.45) !important;
    transform: none !important;
  }

  .item-remove-cell {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 0 !important;
  }
}

body[data-theme-active="dark"] .header,
body[data-theme-active="dark"] .search-card,
body[data-theme-active="dark"] .main-card,
body[data-theme-active="dark"] .login-card,
body[data-theme-active="dark"] .report-item,
body[data-theme-active="dark"] .filter-popup,
body[data-theme-active="dark"] .dialog-card,
body[data-theme-active="dark"] .header-filter-popup {
  background: var(--card) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

body[data-theme-active="dark"] .header.with-bg {
  background-image: linear-gradient(rgba(8, 23, 38, 0.18), rgba(8, 23, 38, 0.18)), url('./assets/header-bg.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}

body[data-theme-active="dark"] .toolbar-status,
body[data-theme-active="dark"] .filter-group label,
body[data-theme-active="dark"] .floating-label label,
body[data-theme-active="dark"] .login-field label,
body[data-theme-active="dark"] .section-meta,
body[data-theme-active="dark"] .pagination-info,
body[data-theme-active="dark"] .offline-queue-label,
body[data-theme-active="dark"] .login-error {
  color: var(--muted) !important;
}

body[data-theme-active="dark"] input,
body[data-theme-active="dark"] select,
body[data-theme-active="dark"] textarea,
body[data-theme-active="dark"] .zoom-select,
body[data-theme-active="dark"] .toolbar-picker {
  background: #12202d !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}

body[data-theme-active="dark"] .master-admin-panel {
  background: #12202d !important;
  border-color: var(--line) !important;
  border-left-color: #79b8e8 !important;
}

body[data-theme-active="dark"] .master-admin-head h3,
body[data-theme-active="dark"] .master-admin-indicator {
  color: #e2e8f0 !important;
}

body[data-theme-active="dark"] .master-admin-subtitle {
  color: #94a3b8 !important;
}

body[data-theme-active="dark"] .master-admin-filter label {
  color: #94a3b8 !important;
}

body[data-theme-active="dark"] .master-admin-filter select,
body[data-theme-active="dark"] .master-admin-filter input {
  background: #12202d !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}

body[data-theme-active="dark"] .master-admin-indicator {
  background: #1d3346 !important;
}

body[data-theme-active="dark"] .reference-admin-panel {
  background: #12202d !important;
  border-color: var(--line) !important;
}

body[data-theme-active="dark"] .reference-admin-head h3,
body[data-theme-active="dark"] .reference-admin-table th {
  color: #e2e8f0 !important;
}

body[data-theme-active="dark"] .reference-admin-subtitle {
  color: #a9b7c7 !important;
}

body[data-theme-active="dark"] .reference-admin-table td {
  background: #12202d !important;
  color: #e2e8f0 !important;
}

body[data-theme-active="dark"] .reference-admin-table th {
  background: #1d3346 !important;
}

body[data-theme-active="dark"] .reference-admin-search input {
  background: #0f1b27 !important;
  color: #e2e8f0 !important;
  border-color: var(--line) !important;
}

body[data-theme-active="dark"] .reference-admin-toggle {
  background: #1d3346 !important;
  color: #e2e8f0 !important;
  border-color: var(--line) !important;
}

body[data-theme-active="dark"] .reference-admin-row-actions .table-btn.edit-btn {
  background: #bfdbfe !important;
  color: #0f2f6b !important;
  border-color: #60a5fa !important;
}

body[data-theme-active="dark"] .reference-admin-row-actions .table-btn.del-btn {
  background: #fecaca !important;
  color: #7f1d1d !important;
  border-color: #f87171 !important;
}

body[data-theme-active="dark"] .wells-card {
  background: linear-gradient(180deg, #33260d, #1d1710);
}

body[data-theme-active="dark"] .personnel-card {
  background: linear-gradient(180deg, #34251a, #1d1712);
}

body[data-theme-active="dark"] .transport-card {
  background: linear-gradient(180deg, #142536, #101820);
}

body[data-theme-active="dark"] .tools-card {
  background: linear-gradient(180deg, #1a2b19, #131b12);
}

body[data-theme-active="dark"] .item-card,
body[data-theme-active="dark"] .section-collapse-btn,
body[data-theme-active="dark"] .logout-btn,
body[data-theme-active="dark"] .login-location-toggle {
  border-color: var(--line) !important;
}

body[data-theme-active="dark"] .section-collapse-btn,
body[data-theme-active="dark"] .logout-btn {
  background: #1a2b3a !important;
  color: var(--text) !important;
}

body[data-theme-active="dark"] .access-badge {
  color: #f8fafc !important;
}

body[data-theme-active="dark"] .access-badge.user {
  color: #f8fafc !important;
}

body[data-theme-active="dark"] .access-badge.admin {
  color: #f8fafc !important;
}

body[data-theme-active="dark"] .header.with-bg .access-badge,
body[data-theme-active="dark"] .header.with-bg .location-badge {
  color: #f8fafc !important;
}

body[data-theme-active="dark"] .header.with-bg .access-badge {
  background: rgba(15, 23, 42, 0.38) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

body[data-theme-active="dark"] .header.with-bg .location-badge {
  background: rgba(30, 64, 175, 0.28) !important;
  border: 1px solid rgba(191, 219, 254, 0.25);
}

body[data-theme-active="dark"] .section-title .access-badge,
body[data-theme-active="dark"] .section-mode {
  background: #1a2b3a !important;
  color: #e5edf7 !important;
  border: 1px solid var(--line);
}

body[data-theme-active="dark"] .section-summary-chip {
  background: rgba(15, 23, 42, 0.35);
  border-color: var(--line);
  color: #f8fafc;
}

body[data-theme-active="dark"] .section-summary-chip.has-manual-time {
  border-color: #facc15;
}

body[data-theme-active="dark"] .section-time-badge {
  background: #facc15;
  color: #422006;
}

body[data-theme-active="dark"] .summary-dialog-item {
  background: #12202d;
  border-color: var(--line);
  color: var(--text);
}

body[data-theme-active="dark"] .summary-dialog-item:hover {
  background: #1a2b3a;
}

body[data-theme-active="dark"] .confirm-dialog,
body[data-theme-active="dark"] .export-dialog,
body[data-theme-active="dark"] .summary-dialog,
body[data-theme-active="dark"] .wells-picker-dialog {
  background: #12202d !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5) !important;
}

body[data-theme-active="dark"] .confirm-dialog h4,
body[data-theme-active="dark"] .confirm-dialog p,
body[data-theme-active="dark"] .wells-picker-item-primary,
body[data-theme-active="dark"] .wells-picker-empty,
body[data-theme-active="dark"] .wells-picker-group {
  color: #e5edf7 !important;
}

body[data-theme-active="dark"] .wells-picker-item-secondary {
  color: var(--muted) !important;
}

body[data-theme-active="dark"] .wells-picker-item-tertiary {
  color: #c7d6e6 !important;
}

body[data-theme-active="dark"] .wells-picker-search,
body[data-theme-active="dark"] .wells-picker-item,
body[data-theme-active="dark"] .wells-picker-select-all,
body[data-theme-active="dark"] .wells-picker-filter-select,
body[data-theme-active="dark"] .report-actions-popover,
body[data-theme-active="dark"] .compact-actions-btn {
  background: #12202d;
  border-color: var(--line);
  color: var(--text);
}

body[data-theme-active="dark"] .wells-picker-item:hover {
  background: #1a2b3a;
}

body[data-theme-active="dark"] .wells-picker-count,
body[data-theme-active="dark"] .wells-picker-group {
  background: rgba(138, 199, 255, 0.12);
  color: #e5edf7 !important;
}

body[data-theme-active="dark"] .table-container,
body[data-theme-active="dark"] .reports-table {
  background: #12202d !important;
  border-color: var(--line) !important;
}

body[data-theme-active="dark"] .reports-table th {
  background: #1a2b3a !important;
  color: #e5edf7 !important;
  border-bottom-color: var(--line) !important;
}

body[data-theme-active="dark"] .reports-table td {
  background: #12202d !important;
  color: #e5edf7 !important;
  border-bottom-color: #223243 !important;
}

body[data-theme-active="dark"] .report-count {
  background: #1a2b3a !important;
  color: #f3f8ff !important;
  border: 1px solid #30465b;
  text-shadow: none !important;
}

body[data-theme-active="dark"] .reports-table tr:hover td {
  background: #1a2b3a !important;
}

body[data-theme-active="dark"] .reports-table td.report-col-actions,
body[data-theme-active="dark"] .reports-table tr:hover td.report-col-actions,
body[data-theme-active="dark"] .reports-table tr.active-row td.report-col-actions,
body[data-theme-active="dark"] .reports-table thead .report-col-actions {
  background: #12202d !important;
  color: #e5edf7 !important;
  border-bottom-color: var(--line) !important;
  box-shadow: -12px 0 18px -14px rgba(0, 0, 0, 0.55) !important;
}

body[data-theme-active="dark"] .th-sort-btn,
body[data-theme-active="dark"] .th-filter-btn,
body[data-theme-active="dark"] .header-filter-title,
body[data-theme-active="dark"] .header-filter-item {
  color: #e5edf7 !important;
}

body[data-theme-active="dark"] .header-filter-popup {
  background: #12202d !important;
  border-color: var(--line) !important;
}

body[data-theme-active="dark"] .header-filter-item:hover {
  background: #1a2b3a !important;
}

body[data-theme-active="dark"] .activity-guide-panel {
  background: linear-gradient(180deg, #14212e, #162331);
  border-color: var(--line);
}

body[data-theme-active="dark"] .activity-guide-toggle {
  background: rgba(138, 199, 255, 0.08);
  color: #dfefff;
}

body[data-theme-active="dark"] .activity-guide-chip {
  background: #183852;
  color: #dfefff;
}

body[data-theme-active="dark"] .report-selection-count-chip {
  background: rgba(138, 199, 255, 0.16);
  color: #eef6ff;
  border-color: #355774;
}

body[data-theme-active="dark"] .report-selection-clear-chip {
  background: rgba(248, 113, 113, 0.16);
  color: #ffe4e6;
  border-color: #7f1d1d;
}

body[data-theme-active="dark"] .report-selection-summary-chip {
  border-color: #355774;
}

body[data-theme-active="dark"] .login-location-menu {
  background: #132434 !important;
  border-color: #29445d !important;
}

body[data-theme-active="dark"] .login-location-option {
  color: #e9f3ff !important;
}

body[data-theme-active="dark"] .login-location-option:hover,
body[data-theme-active="dark"] .login-location-option.is-active {
  background: #1f4f83 !important;
  color: #ffffff !important;
}

body[data-theme-active="dark"] .login-location-empty {
  color: #c1d4e7 !important;
}

body[data-theme-active="dark"] .item-field.item-manual-entry-ready::after {
  background: rgba(138, 199, 255, 0.14);
  color: #8ac7ff;
}

body[data-theme-active="dark"] .item-field.item-manual-entry-active::after {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

body[data-theme-active="dark"] .reports-table th,
body[data-theme-active="dark"] .reports-table td {
  border-color: var(--line) !important;
  color: var(--text) !important;
  background: #102535 !important;
}

body[data-theme-active="dark"] .reports-table th {
  background: #16324a !important;
  color: #eef6ff !important;
}

body[data-theme-active="dark"] .th-sort-btn {
  color: #eef6ff !important;
}

body[data-theme-active="dark"] .th-filter-btn {
  border-color: #355774 !important;
  background: #22425d !important;
  color: #eef6ff !important;
}

body[data-theme-active="dark"] .th-filter-btn.active {
  border-color: #7dd3fc !important;
  background: #0f3b5e !important;
  color: #f8fdff !important;
}

body[data-theme-active="dark"] .header-filter-title {
  color: #eef6ff !important;
}

body[data-theme-active="dark"] .header-filter-item {
  background: #18344b !important;
  color: #eef6ff !important;
}

body[data-theme-active="dark"] .header-filter-item:hover {
  background: #22425d !important;
}

body[data-theme-active="dark"] .reports-table tr:hover td {
  background: #18344b !important;
}

body[data-theme-active="dark"] .reports-table tr.active-row td {
  background: #1d405c !important;
}

body[data-theme-active="dark"] .reports-table tr:hover .report-col-actions,
body[data-theme-active="dark"] .reports-table tr.active-row .report-col-actions,
body[data-theme-active="dark"] .reports-table td.report-col-actions,
body[data-theme-active="dark"] .reports-table thead .report-col-actions {
  background: rgba(16,37,53,0.78) !important;
}

body[data-theme-active="dark"] .pagination-btn,
body[data-theme-active="dark"] .page-indicator {
  background: #16324a !important;
  color: #dfefff !important;
}

@media (max-width: 1024px) {
  .container {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .toolbar-shell {
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
  }

  .toolbar-status-row {
    margin-top: 2px !important;
    min-height: 8px;
  }

  .toolbar-status {
    min-height: 8px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .offline-queue-bar {
    margin-top: 4px !important;
    gap: 6px !important;
  }

  .offline-queue-label {
    font-size: 10px !important;
  }

  .offline-queue-pill {
    min-height: 19px !important;
    padding: 1px 7px !important;
    font-size: 10px !important;
  }

  .toolbar-row-fixed {
    position: fixed !important;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100vw - 8px);
    max-width: 100vw;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 4200;
    display: grid !important;
    grid-template-columns: 56px 64px 52px;
    align-items: center !important;
    justify-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    overflow: visible !important;
    white-space: normal !important;
    padding: 8px !important;
    border: 1px solid rgba(148, 163, 184, 0.06) !important;
    border-radius: 22px !important;
    background: rgba(255, 252, 244, 0.12) !important;
    box-shadow: 0 -6px 14px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255,255,255,0.16) !important;
    backdrop-filter: blur(8px) saturate(1.01);
    -webkit-backdrop-filter: blur(8px) saturate(1.01);
  }

  .toolbar-row-fixed > * {
    min-width: 0 !important;
  }

  .theme-select-wrap {
    display: none !important;
  }

  .zoom-select-wrap {
    display: none !important;
  }

  .mobile-settings-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    grid-column: 1;
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    border-radius: 999px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    padding: 0 !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(226,232,240,0.92)) !important;
    border: 1px solid rgba(148,163,184,0.42) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255,255,255,0.72) !important;
  }

  .mobile-settings-btn.active {
    transform: scale(0.98);
  }

  #btnSave {
    grid-column: 2;
    width: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    height: 64px !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    border: none !important;
    background: linear-gradient(180deg, #1ed08a, #10b981) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 22px rgba(16, 185, 129, 0.24) !important, inset 0 1px 0 rgba(255,255,255,0.30) !important, inset 0 -2px 0 rgba(0,0,0,0.08) !important;
    text-align: center !important;
  }

  #btnNew {
    grid-column: 3;
    width: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    height: 52px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    background: linear-gradient(180deg, #2d67b2, #1d4f91) !important;
    color: #ffffff !important;
    border: 1px solid rgba(15,59,94,0.28) !important;
    box-shadow: 0 10px 18px rgba(29, 79, 145, 0.22), inset 0 1px 0 rgba(255,255,255,0.24) !important, inset 0 -2px 0 rgba(0,0,0,0.08) !important;
    text-align: center !important;
  }

  .mobile-settings-panel {
    display: block;
  }

  .mobile-settings-panel .toolbar-picker {
    width: 100%;
    text-align: center;
    text-align-last: center;
  }

  body[data-theme-active="dark"] .toolbar-row-fixed {
    background: rgba(16, 26, 36, 0.16) !important;
    border-color: rgba(59, 80, 102, 0.16) !important;
    box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.03) !important;
  }

  body[data-theme-active="dark"] #btnSave {
    box-shadow: 0 12px 22px rgba(16, 185, 129, 0.18) !important, inset 0 1px 0 rgba(255,255,255,0.18) !important, inset 0 -2px 0 rgba(0,0,0,0.20) !important;
  }

  body[data-theme-active="dark"] .mobile-settings-panel {
    background: rgba(16, 26, 36, 0.98) !important;
    border-color: rgba(59, 80, 102, 0.8) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34) !important;
  }

  body[data-theme-active="dark"] .mobile-settings-btn {
    background: linear-gradient(180deg, rgba(34, 66, 93, 0.96), rgba(24, 52, 75, 0.96)) !important;
    color: #eef6ff !important;
    border-color: rgba(83, 120, 150, 0.72) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.10) !important;
  }
}

@media (max-width: 640px) {
  .container {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .toolbar-row-fixed {
    width: calc(100vw - 4px);
    grid-template-columns: 50px 56px 46px;
    gap: 6px !important;
    padding: 6px !important;
    border-radius: 16px !important;
  }

  .mobile-settings-btn {
    width: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
  }

  #btnSave {
    width: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    height: 56px !important;
    font-size: 13px !important;
  }

  #btnNew {
    width: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    height: 46px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 1024px) {
  .section-picker-title {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer;
  }

  .section-picker-title .section-heading-icon {
    grid-column: 1;
    justify-self: start;
  }

  .section-picker-title .section-select-button {
    grid-column: 2;
    justify-self: center;
    width: min(100%, 240px);
    min-height: 40px !important;
    font-size: calc(var(--base-font-size) * 0.86) !important;
    font-weight: 800 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 6px 14px rgba(15,23,42,0.08);
  }

  .section-picker-title .section-collapse-btn {
    grid-column: 3;
    justify-self: end;
  }

  .section-picker-title .section-summary-chips {
    grid-column: 1 / -1;
    margin-top: 4px;
  }
}
