.operator-production-page {
  display: grid;
  gap: 22px;
  color: #edf1f7;
}

.operator-production-hero,
.operator-production-form,
.operator-report-card,
.operator-share-actions,
.operator-entry-table {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(16, 20, 27, 0.92);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.operator-production-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  background:
    radial-gradient(circle at 85% 15%, rgba(227, 30, 36, 0.18), transparent 32%),
    linear-gradient(135deg, #111620, #191f2a);
}

.operator-production-hero small,
.operator-production-form > div small,
.operator-share-actions small {
  color: #f05256;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.operator-production-hero h2,
.operator-production-form h3,
.operator-share-actions h3,
.operator-entry-table h3 {
  margin: 7px 0;
  color: #fff;
}

.operator-production-hero p {
  max-width: 680px;
  margin: 0;
  color: #aeb7c5;
  line-height: 1.55;
}

.operator-date-control,
.operator-production-form label {
  display: grid;
  gap: 8px;
  color: #bac3d0;
  font-size: 12px;
  font-weight: 750;
}

.operator-date-control {
  min-width: 190px;
}

.operator-date-control input,
.operator-production-form select,
.operator-production-form input {
  min-height: 48px;
  border: 1px solid #343d4b;
  border-radius: 12px;
  outline: none;
  background: #0d1118;
  color: #fff;
  font: inherit;
  padding: 0 14px;
}

.operator-date-control input:focus,
.operator-production-form select:focus,
.operator-production-form input:focus {
  border-color: #e31e24;
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.13);
}

.operator-production-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.5fr) minmax(150px, 0.55fr) auto;
  align-items: end;
  gap: 16px;
  padding: 22px;
}

.operator-production-form h3 {
  font-size: 18px;
}

.operator-production-form button,
.operator-share-actions button {
  min-height: 48px;
  border: 1px solid #3a4350;
  border-radius: 12px;
  background: #252d39;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 0 18px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.operator-production-form button {
  border-color: #e31e24;
  background: #e31e24;
}

.operator-production-form button:hover,
.operator-share-actions button:hover {
  transform: translateY(-1px);
}

.operator-production-form button:disabled,
.operator-share-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.operator-dedupe-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #8f9aab;
  font-size: 12px;
}

.operator-report-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 5%, rgba(227, 30, 36, 0.17), transparent 27%),
    linear-gradient(145deg, #0d1016, #202733);
}

.operator-report-card::before {
  display: block;
  height: 6px;
  background: #e31e24;
  content: "";
}

.operator-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 30px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.operator-brand {
  display: block;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.operator-report-head small {
  display: block;
  margin-top: 3px;
  color: #f05256;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.operator-report-head h3 {
  margin: 15px 0 0;
  color: #c5cdd9;
  font-size: 15px;
  font-weight: 600;
}

.operator-report-head > strong {
  color: #fff;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 950;
  white-space: nowrap;
}

.operator-report-head > strong small {
  display: inline;
  color: #aeb7c5;
  font-size: 13px;
}

.operator-product-list {
  display: grid;
  padding: 8px 30px;
}

.operator-product-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.operator-product-list article:last-child {
  border-bottom: 0;
}

.operator-product-list article > div {
  display: grid;
  gap: 4px;
}

.operator-product-list b {
  color: #f05256;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.operator-product-list span {
  color: #edf1f7;
  line-height: 1.35;
}

.operator-product-list article > strong {
  color: #fff;
  font-size: 20px;
  white-space: nowrap;
}

.operator-product-list article > strong small {
  color: #9ca7b6;
  font-size: 11px;
}

.operator-production-loading,
.operator-production-empty,
.operator-production-error {
  padding: 38px 30px;
  color: #9ca7b6;
  text-align: center;
}

.operator-production-error {
  border: 1px solid rgba(227, 30, 36, 0.35);
  border-radius: 16px;
  background: rgba(227, 30, 36, 0.08);
  color: #ffb2b4;
}

.operator-report-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 30px;
  background: rgba(0, 0, 0, 0.18);
  color: #8995a5;
  font-size: 12px;
}

.operator-report-footer b {
  color: #cbd2dc;
}

.operator-share-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
}

.operator-share-actions > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.operator-share-actions button.primary {
  border-color: #e31e24;
  background: #e31e24;
}

.operator-message {
  border: 1px solid rgba(227, 30, 36, 0.35);
  border-radius: 12px;
  background: rgba(227, 30, 36, 0.08);
  color: #ffb6b8;
  padding: 13px 16px;
}

.operator-message.success {
  border-color: rgba(63, 190, 126, 0.35);
  background: rgba(63, 190, 126, 0.09);
  color: #9be3bd;
}

.operator-entry-table {
  padding: 22px;
}

.operator-entry-table-wrap {
  overflow-x: auto;
}

.operator-entry-table table {
  width: 100%;
  border-collapse: collapse;
}

.operator-entry-table th,
.operator-entry-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 13px 12px;
  color: #cbd2dc;
  text-align: left;
}

.operator-entry-table th {
  color: #8995a5;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operator-entry-table td:first-child {
  display: grid;
  gap: 3px;
}

.operator-entry-table td:first-child b {
  color: #f05256;
}

.operator-entry-table td:first-child span {
  font-size: 12px;
}

@media (max-width: 960px) {
  .operator-production-form {
    grid-template-columns: 1fr 1fr;
  }

  .operator-production-form > div,
  .operator-dedupe-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .app-shell:has(.operator-production-page) .mobile-nav {
    display: flex;
    overflow-x: auto;
  }

  .app-shell:has(.operator-production-page) .mobile-nav button {
    flex: 1 0 66px;
  }

  .operator-production-page {
    gap: 14px;
  }

  .operator-production-hero,
  .operator-share-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

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

  .operator-production-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .operator-production-form > div,
  .operator-dedupe-note {
    grid-column: auto;
  }

  .operator-report-head {
    align-items: flex-start;
    padding: 22px 18px;
  }

  .operator-report-head > strong {
    font-size: 26px;
  }

  .operator-brand {
    font-size: 23px;
  }

  .operator-product-list {
    padding: 6px 18px;
  }

  .operator-product-list article {
    align-items: flex-start;
    gap: 12px;
  }

  .operator-product-list article > strong {
    font-size: 16px;
  }

  .operator-report-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px 18px;
  }

  .operator-share-actions > div:last-child {
    display: grid;
    grid-template-columns: 1fr;
  }

  .operator-share-actions button {
    width: 100%;
  }

  .operator-entry-table {
    padding: 16px;
  }
}

@media print {
  .operator-production-hero,
  .operator-production-form,
  .operator-share-actions,
  .operator-message,
  .operator-entry-table {
    display: none !important;
  }

  .operator-report-card {
    border: 0;
    box-shadow: none;
  }
}
