.entry-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #2a3549;
  background: #192235;
  color: #dbe5f4;
  padding: 10px 15px;
  min-height: 38px;
  border-radius: 8px;
  font:
    500 12px Arial,
    sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.entry-button:hover {
  background: #253149;
}
.entry-button--primary {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
}
.entry-button--primary:hover {
  background: #5558dc;
}
.entry-button--subtle {
  background: transparent;
  color: #a5a7ff;
  border-style: dashed;
  width: 100%;
  margin-top: 12px;
}
.entry-delete {
  display: grid;
  place-items: center;
  padding: 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7f8fa8;
  cursor: pointer;
}
.entry-delete:hover {
  background: #f43f5e18;
  color: #fb7185;
}
.products-page .products-table:has(.entry-delete) {
  min-width: 1190px;
}
.products-page .products-table:has(.entry-delete) thead th:nth-child(2) {
  width: 23%;
}
.products-page .products-table:has(.entry-delete) thead th:nth-child(3) {
  width: 12%;
}
.products-page .products-table:has(.entry-delete) thead th:nth-child(8) {
  width: 9%;
}
.products-page .products-table:has(.entry-delete) thead th:nth-child(9) {
  width: 5.4%;
}
.products-page .products-table:has(.entry-delete) thead th:nth-child(10) {
  width: 10%;
}
.entry-dialog {
  width: min(700px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  background: #111827;
  border: 1px solid #2b3548;
  border-radius: 16px;
  color: #edf2fb;
  box-shadow: 0 24px 90px #0008;
  font:
    13px Arial,
    sans-serif;
  overflow-y: auto;
}
.entry-dialog--small {
  max-width: 460px;
}
.entry-dialog::backdrop {
  background: #030610b8;
  backdrop-filter: blur(4px);
}
body:has(.entry-dialog[open]) {
  overflow: hidden;
}
.entry-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid #253044;
}
.entry-dialog-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.entry-dialog-header p {
  color: #90a0b9;
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0 0;
}
.entry-close {
  flex-shrink: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  font-size: 25px;
  line-height: 26px;
  width: 30px;
  cursor: pointer;
}
.entry-close:hover {
  background: #253044;
  color: white;
}
.entry-dialog-body {
  display: grid;
  gap: 22px;
  padding: 24px;
}
.entry-fieldset {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
.entry-fieldset legend {
  padding: 0;
  margin-bottom: 14px;
  color: #dbe5f4;
  font-size: 12px;
  font-weight: 600;
}
.entry-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.entry-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #aebcd0;
  font-size: 12px;
  min-width: 0;
}
.entry-field[hidden] {
  display: none;
}
.entry-wide {
  grid-column: 1 / -1;
}
.entry-field input,
.entry-field select,
.entry-field textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #2b3548;
  border-radius: 7px;
  background: #0c1220;
  color: #edf2fb;
  font:
    13px Arial,
    sans-serif;
}
.entry-field input::placeholder,
.entry-field textarea::placeholder {
  color: #64748b;
}
.entry-field input:focus,
.entry-field select:focus,
.entry-field textarea:focus {
  border-color: #818cf8;
  outline: 2px solid #6366f126;
  outline-offset: 0;
}
.entry-field textarea {
  resize: vertical;
  min-height: 75px;
}
.entry-optional {
  color: #74849c;
  font-size: 11px;
  font-weight: 400;
}
.entry-field > .entry-optional {
  margin-top: -5px;
}
.entry-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: #1a2234;
  border: 1px solid #283449;
  border-radius: 9px;
}
.entry-summary > span {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #94a3b8;
  font-size: 11px;
}
.entry-summary > span:last-child {
  text-align: right;
}
.entry-summary strong {
  font: 500 17px var(--mono);
  color: #c5c8ff;
}
.entry-details {
  border-top: 1px solid #253044;
  padding-top: 16px;
}
.entry-details summary {
  color: #aebcd0;
  cursor: pointer;
  font-size: 12px;
}
.entry-details[open] summary {
  margin-bottom: 16px;
}
.entry-dialog-footer {
  position: sticky;
  bottom: 0;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #253044;
  background: #111827;
}
.entry-dialog-footer > span {
  color: #8c9cb4;
  font-size: 10px;
  max-width: 150px;
  line-height: 1.5;
}
.entry-dialog-footer > div {
  display: flex;
  gap: 8px;
}
.entry-item {
  padding: 14px;
  border: 1px solid #29344a;
  border-radius: 9px;
  background: #131c2b;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(80px, 0.7fr) minmax(115px, 1fr);
  gap: 12px;
}
.entry-item + .entry-item {
  margin-top: 12px;
}
.entry-item-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-column: 1 / -1;
}
.entry-item-bottom output {
  margin-left: auto;
  font: 12px var(--mono);
  color: #c4c8ff;
  white-space: nowrap;
}
.entry-help {
  margin: 0 0 12px;
  color: #8192ac;
  font-size: 11px;
  line-height: 1.6;
}
.entry-item .entry-help {
  margin: 0;
}
.entry-item .entry-help.is-warning {
  color: #fbbf24;
}
.entry-remove-item {
  padding: 5px 0 5px 8px;
  border: 0;
  background: transparent;
  color: #fb7185;
  font-size: 11px;
  cursor: pointer;
}
.entry-remove-item:disabled {
  opacity: 0.3;
  cursor: default;
}
.entry-preview {
  margin: 0 24px 18px;
  padding: 12px 14px;
  border: 1px solid #6366f155;
  border-radius: 8px;
  background: #6366f112;
  color: #c7d2fe;
  font-size: 12px;
  line-height: 1.6;
}
.entry-delete-product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid #2b3548;
  border-radius: 9px;
}
.entry-delete-product span {
  color: #94a3b8;
  font: 11px var(--mono);
}
@media (max-width: 600px) {
  .entry-page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .entry-dialog {
    max-height: calc(100dvh - 24px);
    width: calc(100% - 20px);
  }
  .entry-dialog-header,
  .entry-dialog-body {
    padding: 18px;
  }
  .entry-dialog-footer {
    padding: 14px 18px;
    flex-wrap: wrap;
  }
  .entry-dialog-footer > span {
    max-width: none;
  }
  .entry-dialog-footer > div {
    margin-left: auto;
  }
  .entry-fields {
    gap: 14px 12px;
  }
  .entry-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .entry-item-product {
    grid-column: 1 / -1;
  }
  .entry-item-bottom {
    flex-wrap: wrap;
  }
  .entry-item-bottom .entry-help {
    width: 100%;
  }
  .entry-summary strong {
    font-size: 14px;
  }
}
