@import "https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap";

/* src/styles.css */
:root {
  --primary:#465761;
  --accent:#A63A50;
  --info:#7CA5B8;
  --warn:#CBA777;
  --bg:#121920;
  --surface:#1a2430;
  --surface-2:#223041;
  --card:#1a2430;
  --card2:#223041;
  --text:#e9eef3;
  --muted:#aebac6;
  --border:#2c3a4a;
  --success:#C5EDAC;
  --failure:#EA526F;
  --warn:#9c6f2c;
  --font:
    "Roboto",
    system-ui,
    sans-serif;
  --fs-12:12px;
  --fs-14:14px;
  --fs-16:16px;
  --fs-20:20px;
  --r-sm:10px;
  --r-md:14px;
  --r-lg:20px;
  --sp-2:8px;
  --sp-3:12px;
  --sp-4:16px;
  --sp-6:24px;
  --sp-8:32px;
  --shadow-1:0 1px 2px rgba(0,0,0,.25);
  --shadow-2:0 8px 24px rgba(0,0,0,.35);
  --app-header-height: 64px;
}
.main-under-header {
  padding-top: var(--app-header-height);
}
html,
body {
  height: 100%;
}
body {
  --body-pad: 24px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  padding: var(--body-pad);
}
.container {
  max-width: 1280px;
  margin: auto;
  padding: var(--sp-8);
}
.section {
  margin-bottom: var(--sp-8);
}
.btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 18px;
  margin-right: 12px;
  background: var(--surface-2);
  color: var(--text);
  box-shadow: var(--shadow-1);
}
.btn:hover {
  filter: brightness(1.07);
}
.btn-primary {
  background: var(--primary);
  border-color: transparent;
}
.btn-ghost {
  background: transparent;
}
.btn-danger {
  background: var(--accent);
  border-color: transparent;
}
.btn.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px;
}
.btn.icon-btn .icon {
  width: 18px;
  height: 18px;
  display: block;
}
.input,
.select,
.textarea {
  width: 80%;
  background: #0f1620;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 18px;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: 2px solid var(--primary);
}
.input.centered {
  display: block;
  margin: 0 auto;
  text-align: left;
}
input[type=date]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}
.input--sm {
  padding: 6px 8px;
  font-size: 16px;
  width: 140px;
}
.input--full {
  width: 100%;
}
.input--num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.table .input {
  background: var(--surface-2);
}
.table td .input {
  max-width: 100%;
}
.input.no-spin::-webkit-outer-spin-button,
.input.no-spin::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.input.no-spin[type=number] {
  -moz-appearance: textfield;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  width: 100%;
}
.card-h {
  background: var(--surface-2);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 24px;
}
.card-b {
  padding: var(--sp-4);
  font-size: 20px;
}
.card-grid {
  display: grid;
  gap: var(--sp-4);
}
.card-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
}
.card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--sp-3);
}
.k {
  color: var(--muted);
}
.v {
  font-weight: 700;
}
.note {
  font-size: var(--fs-12);
  color: var(--muted);
}
.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
.table th {
  background: var(--surface-2);
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.table th.num {
  text-align: right;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.table tr:last-child td {
  border-bottom: none;
}
.num {
  text-align: right;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: grid;
  place-items: center;
  z-index: 900;
  pointer-events: auto;
}
.modal {
  width: min(640px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1002;
  pointer-events: auto;
  padding: 24px;
  max-height: 90vh;
  overflow: auto;
}
.modal-h {
  background: var(--surface-2);
  padding: 6px 12px;
  font-weight: 800;
  font-size: 20px;
}
.modal-b {
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
  font-size: 18px;
}
.modal-f,
.modal-ftr {
  padding: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-end;
}
.modal-b .k {
  display: block;
  margin-bottom: 2px;
  font-size: 20px;
}
.modal-b .input {
  margin-bottom: 6px;
  font-size: 18px;
}
.modal-card.base-lp-runs {
  max-width: 3000px;
  width: 100%;
  display: block;
  overflow: visible;
}
.modal-card.base-lp-runs .modal-b {
  overflow: visible;
  flex: initial;
  min-height: initial;
}
.modal-card.base-lp-runs .modal-h,
.modal-card.base-lp-runs .modal-ftr {
  flex: initial;
}
.modal-card.decision-modal {
  max-width: 3000px;
  width: 100%;
  display: block;
  overflow: visible;
}
.modal-card.decision-modal .modal-b {
  overflow: visible;
  flex: initial;
  min-height: initial;
}
.modal-card.decision-modal .modal-h,
.modal-card.decision-modal .modal-ftr {
  flex: initial;
}
.modal.modal--wide {
  width: min(900px, 95vw);
  height: min(1200px, 95vw);
}
.modal.modal--xl {
  width: min(1500px, 96vw) !important;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal.modal--xl .modal-b {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
}
.modal.modal--xxl .modal-h,
.modal.modal--xxl .modal-f {
  flex: 0 0 auto;
}
.modal.modal--xxl {
  width: min(1700px, 96vw) !important;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal.modal--xxl .modal-b {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
}
.modal.modal--xxl .modal-h,
.modal.modal--xxl .modal-f {
  flex: 0 0 auto;
}
.modal.modal--wide .dm-card {
  width: min(1100px, 96vw) !important;
  max-width: none !important;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal.modal--wide .dm-card .modal-b {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
}
.lp-slips-modal .modal-b {
  min-height: 0;
}
.lp-slips-modal .modal-b > * {
  min-width: 0;
  min-height: 0;
}
.lp-slips-modal .modal-b .card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.lp-slips-modal .modal-b .card .table-wrap {
  overflow: auto;
}
.lp-slips-modal .modal-b .card ul.list {
  overflow: auto;
}
.lp-slips-modal .list-row {
  grid-template-columns: 1fr auto;
  gap: 16px;
}
.lp-slips-modal .modal-b > .card {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lp-slips-modal .modal-b .card .table-wrap,
.lp-slips-modal .modal-b .card ul.list {
  overflow: auto;
}
.grid-3 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width:1100px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width:680px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
.wrap {
  padding: 64px 2px 0 2px;
  position: relative;
  z-index: 1001;
}
.home-actions {
  margin: 12px 0;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1002;
}
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  justify-items: stretch;
  align-items: start;
}
.grid-table {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 6px 12px;
  align-items: center;
}
.grid-row {
  display: contents;
}
.grid-head div {
  font-weight: 600;
  padding-bottom: 4px;
}
.grid-right {
  text-align: right;
}
.meta {
  display: grid;
  gap: 8px;
}
.meta-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
}
.k::after {
  content: " :";
}
.home-page {
  padding-top: 50px;
  position: relative;
  z-index: 1001;
}
.home-page .home-actions {
  margin: 12px 0;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1002;
}
.home-page .page-hdr {
  margin: 8px 0 8px;
}
.home-page .page-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: .3px;
}
.app-header {
  background: var(--surface);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-3) var(--sp-4);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1003;
}
.app-header .app-title {
  font-size: var(--fs-20);
  font-weight: 500;
  font-size: 30px;
}
.product-details-page {
  margin-left: calc(-1 * var(--body-pad));
  margin-right: calc(-1 * var(--body-pad));
}
.product-details-page.container {
  max-width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}
.product-details-page .page-hdr {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 16px;
}
.tabs .btn {
  margin-right: 12px;
  font-size: 24px;
}
.tabs .btn:last-child {
  margin-right: 0;
}
.tabs .btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.tc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.tc-table thead th {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 1;
}
.tc-table th,
.tc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.tc-table tr:last-child td {
  border-bottom: 0;
}
.tc-table .num {
  text-align: right;
}
.tc-table .num .input {
  text-align: right;
  max-width: 120px;
}
.tc-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}
.table-wrap {
  overflow: auto;
}
.no-spin::-webkit-outer-spin-button,
.no-spin::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.no-spin[type=number] {
  -moz-appearance: textfield;
}
.kebab {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: inherit;
}
.cell-actions {
  text-align: right;
  vertical-align: middle;
}
.menu {
  position: absolute;
  right: 0;
  margin-top: 4px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}
.menu button {
  background: transparent;
  border: none;
  color: #e5e7eb;
  text-align: left;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
}
.menu button:hover {
  background: #374151;
  color: #ffffff;
}
.lp-runs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.lp-run-card .lp-run-title {
  font-weight: 600;
  font-size: 20px;
}
.lp-run-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.lp-run-row .k {
  opacity: .85;
}
.lp-run-row .v {
  font-weight: 600;
}
.lp-run-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 1100px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.metrics-grid .lp-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 10px;
  border: 1px solid var(--border, #374151);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.metrics-grid .lp-metric .k {
  opacity: 0.75;
}
.metrics-grid .lp-metric .v {
  font-weight: 600;
}
.table th,
.table td {
  padding-top: 10px;
  padding-bottom: 10px;
}
.table thead th {
  font-weight: 600;
}
.card-h h3,
.card-h h4 {
  line-height: 1.25;
}
.lp-analysis-page .page-header {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 12px;
}
.lp-analysis-page .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 1100px) {
  .lp-analysis-page .grid-2 {
    grid-template-columns: 1fr;
  }
}
.lp-analysis-page .metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.lp-analysis-page .card + .card {
  margin-top: 12px;
}
.allocations-table {
  table-layout: fixed;
  width: 100%;
}
.allocations-table th:first-child,
.allocations-table td:first-child {
  width: 48px;
}
.allocations-table th:nth-child(2),
.allocations-table td:nth-child(2) {
  width: 25%;
}
.allocations-table th:nth-child(3),
.allocations-table td:nth-child(3) {
  width: 15%;
}
.allocations-table th:nth-child(4),
.allocations-table td:nth-child(4) {
  width: 18%;
}
.allocations-table th:nth-child(5),
.allocations-table td:nth-child(5) {
  width: 12%;
}
.allocations-table th:nth-child(6),
.allocations-table td:nth-child(6) {
  width: 15%;
}
.allocations-table .lots-cell {
  padding: 0 !important;
  background: var(--surface);
}
.allocations-table .lots-row {
  border-top: none;
}
.allocations-table .lots-row td {
  background: var(--surface);
}
.allocations-table .lots-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9em;
  background: var(--surface);
  table-layout: fixed;
}
.allocations-table .lots-table .lots-col-expand {
  width: 48px;
  padding: 8px 4px;
}
.allocations-table .lots-table .lots-col-lot {
  width: 12%;
  padding: 8px 12px;
}
.allocations-table .lots-table .lots-col-supplier {
  width: 13%;
  padding: 8px 12px;
}
.allocations-table .lots-table .lots-col-qty {
  width: 15%;
  padding: 8px 12px;
}
.allocations-table .lots-table .lots-col-avail {
  width: 18%;
  padding: 8px 12px;
}
.allocations-table .lots-table .lots-col-util {
  width: 12%;
  padding: 8px 12px;
}
.allocations-table .lots-table thead th {
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.9em;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.allocations-table .lots-table thead th.num {
  text-align: right;
}
.allocations-table .lots-table tbody td {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.allocations-table .lots-table tbody tr:last-child td {
  border-bottom: none;
}
.allocations-table .lots-table tbody tr:last-child td {
  border-bottom: none;
}
.allocations-table .expand-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.bar-chart {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.bar-row {
  display: grid;
  grid-template-columns: 1fr 6fr auto;
  align-items: center;
  gap: 10px;
}
.bar-label {
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-track {
  position: relative;
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  height: 100%;
  border-radius: 6px;
  background:
    linear-gradient(
      90deg,
      #6ea8fe,
      #4f83ff);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: width 240ms ease;
}
.bar-value {
  min-width: 80px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .bar-row {
    grid-template-columns: 1fr 5fr auto;
  }
}
.status-success {
  color: var(--success);
  font-weight: 600;
}
.status-failure {
  color: var(--failure);
  font-weight: 600;
}
.status-warn {
  color: var(--warn);
  font-weight: 600;
}
.note-large {
  font-size: 22px;
  font-weight: 600;
}
.notify-container {
  position: fixed;
  top: calc(var(--app-header-height) + 12px);
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
}
.notify-item {
  padding: 10px 14px;
  border-radius: 6px;
  color: #465761;
  cursor: pointer;
  min-width: 200px;
  max-width: 320px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  font-size: 14px;
  transition: opacity .2s ease;
}
.notify-item.success {
  background: #D8F5C0;
}
.notify-item.error {
  background: #F5A5B8;
}
.notify-item.info {
  background: #A0C5D4;
}
select.input-field {
  appearance: none;
  background-color: #2a2a2a;
  color: #f0f0f0;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 6px 8px;
}
select.input-field {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23f0f0f0' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}
.ml-auto {
  margin-left: auto;
}
.modal-error {
  background: #A63A50;
  color: #fff;
}
.pos {
  color: var(--success);
  font-weight: 600;
}
.neg {
  color: var(--failure);
  font-weight: 600;
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
