/* accepted source: client/src/pages/FormingWorkspace/finished-production-resolution.css */
.finished-production-resolution { flex: none; }
.finished-production-resolution .finished-production-resolution-heading { justify-content: flex-start; }
.finished-production-resolution-heading > button { margin-left: auto; }
.finished-production-resolution p { margin: 0; }
.finished-production-resolution ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.finished-production-resolution li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.finished-production-resolution a { color: #387da2; text-decoration: underline; text-underline-offset: 3px; }
.finished-production-resolution small { color: #826b50; font-size: inherit; }
.finished-production-main-table tr.is-resolution-target { outline: 2px solid #91b8cd; outline-offset: -2px; background: #e8f4fa; }


/* accepted source: client/src/pages/FormingWorkspace/finished-production.css */
.finished-production-main-table tr[data-finished-row]:focus {
    outline: 2px solid #91b8cd;
    outline-offset: -2px
}

/* accepted source: client/src/pages/ProductPage/product-batch-delete.css */
.product-batch-delete-dialog[data-slot="dialog-content"] {
  position: fixed; inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 1110; display: flex; flex-direction: column; gap: 0; box-sizing: border-box;
  width: min(780px, calc(100vw - 32px)); max-width: 780px; max-height: calc(100dvh - 48px);
  padding: 24px; border: 1px solid #dce8f0; border-radius: 22px;
  color: #365369; background: #f3f8fc; box-shadow: 0 20px 65px #35546c30;
  font-family: inherit; font-size: 14px; line-height: 1.5; overflow: hidden;
}
body:has(.product-batch-delete-dialog) > [data-slot="dialog-overlay"]:has(+ .product-batch-delete-dialog) {
  z-index: 1109; background: #2f465742; backdrop-filter: blur(5px);
}
.product-batch-delete-dialog * { box-sizing: border-box; }
.product-batch-delete-dialog .batch-delete-heading {
  display: flex; flex-direction: row; align-items: center; gap: 12px; padding-right: 32px; text-align: left;
}
.batch-delete-icon {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px;
  border-radius: 12px; color: #a16b70; background: #f5e9ec;
}
.batch-delete-icon svg { width: 20px; height: 20px; stroke-width: 1.7; }
.product-batch-delete-dialog [data-slot="dialog-title"] {
  margin: 0; color: #365369; font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: 0;
}
.product-batch-delete-dialog [data-slot="dialog-description"] {
  margin: 2px 0 0; color: #7891a2; font-size: 12px; line-height: 1.5;
}
.product-batch-delete-dialog [data-slot="dialog-close"] {
  position: absolute; top: 23px; right: 22px; display: grid; place-items: center;
  width: 30px; height: 30px; padding: 5px; border: 0; border-radius: 9px;
  color: #7891a2; background: transparent; box-shadow: none; cursor: pointer;
}
.product-batch-delete-dialog [data-slot="dialog-close"] svg { width: 17px; height: 17px; }
.batch-delete-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; }
.batch-delete-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 14px; color: #54758b; }
.batch-delete-summary .batch-delete-count-blocked { color: #a07950; }
.product-batch-delete-dialog .batch-delete-recheck {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: none;
  min-height: 30px; padding: 4px 0 4px 6px; border: 0; border-radius: 8px;
  color: #6c879b; background: transparent; font: inherit; box-shadow: none; cursor: pointer;
}
.batch-delete-recheck svg { width: 14px; height: 14px; }
.batch-delete-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch;
  gap: 12px; min-height: 0; margin: 0; padding: 1px 2px 2px 1px;
  overflow-y: auto; overscroll-behavior: contain; list-style: none;
}
.batch-delete-card {
  position: relative; min-width: 0; padding: 13px; border: 1px solid #d9e5ee; border-radius: 14px;
  color: #365369; background: #fcfeff; overflow-wrap: anywhere;
}
.batch-delete-card.is-blocked, .batch-delete-card.is-error, .batch-delete-card.is-changed,
.batch-delete-card.is-uncertain { border-color: #e8dccb; background: #fffdfa; }
.batch-delete-card.is-deleted { border-color: #cfe2da; background: #f8fcfa; }
.batch-delete-card.is-excluded { border-color: #e4eaf0; background: #fafcfd; }
.product-batch-delete-dialog .batch-delete-card-select {
  position: absolute; top: 13px; right: 13px; display: inline-flex;
  align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; appearance: none; background: transparent;
  box-shadow: none; cursor: pointer;
}
.batch-delete-card-select::before {
  content: ''; display: block; width: 22px; height: 22px; box-sizing: border-box;
  border: 2px solid #6e9cbb; border-radius: 50%; background: transparent;
}
.batch-delete-card-select[aria-checked="true"]::before { background: #6e9cbb; }
.batch-delete-card-select > svg {
  position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: 0;
  color: #fff; stroke-width: 2.8; pointer-events: none; transform: translate(-50%, -50%);
}
.batch-delete-card-main { display: flex; align-items: flex-start; gap: 12px; padding-right: 36px; }
.batch-delete-photo {
  display: flex; align-items: center; justify-content: center; flex: none; width: 72px; height: 72px;
  overflow: hidden; border-radius: 10px; background: #edf2f4; color: #9eb1bd; font-size: 12px;
}
.batch-delete-photo img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.batch-delete-photo > span:has(img) { display: contents; }
.batch-delete-photo > svg { width: 27px; height: 27px; stroke-width: 1.5; }
.batch-delete-card-info { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.batch-delete-card-info > strong { font-size: 14px; font-weight: 500; line-height: 1.5; }
.batch-delete-state {
  display: inline-flex; align-items: center; gap: 5px; color: #568774; font-size: 12px; line-height: 1.5;
}
.batch-delete-state svg { width: 14px; height: 14px; flex: none; stroke-width: 1.8; }
.is-blocked .batch-delete-state, .is-error .batch-delete-state, .is-changed .batch-delete-state,
.is-uncertain .batch-delete-state { color: #a07950; }
.is-checking .batch-delete-state, .is-deleting .batch-delete-state { color: #6c879b; }
.batch-delete-shared { display: inline-flex; align-items: center; gap: 5px; color: #8f7582; font-size: 12px; }
.batch-delete-shared svg { width: 13px; height: 13px; flex: none; }
.batch-delete-peer { margin-top: 10px; color: #7891a2; font-size: 12px; }
.batch-delete-peer p { margin: 3px 0 0; }
.batch-delete-stock {
  display: flex; flex-direction: column; gap: 6px; margin-top: 11px; padding: 9px 10px;
  border-radius: 9px; color: #54758b; background: #eef5f9; font-size: 12px;
}
.batch-delete-stock b { display: block; font-weight: 500; }
.batch-delete-stock p { margin: 0; }
.batch-delete-stock > span { color: #7891a2; }
.batch-delete-resolutions { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.batch-delete-resolution { font-size: 12px; color: #9b774e; }
.batch-delete-resolution + .batch-delete-resolution { padding-top: 9px; border-top: 1px solid #ece4d8; }
.batch-delete-resolution-line { display: flex; align-items: center; gap: 8px; }
.batch-delete-resolution-line > p { flex: 1; min-width: 0; margin: 0; }
.batch-delete-resolution-controls { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 6px; }
.batch-delete-resolution-controls:empty { display: none; }
.product-batch-delete-dialog .batch-delete-resolution-controls > a,
.product-batch-delete-dialog .batch-delete-resolution-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 28px; padding: 4px 8px; border: 1px solid #d9e5ee; border-radius: 7px;
  font-family: inherit; font-size: 12px; font-weight: 400; line-height: 1.5;
  color: #547f9a; background: #f1f6fa; box-shadow: none; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.product-batch-delete-dialog .batch-delete-count-confirm button {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 30px; padding: 5px 9px; border: 1px solid #d9e5ee; border-radius: 8px;
  font-family: inherit; font-size: 12px; font-weight: 400; line-height: 1.5;
  color: #547f9a; background: #f1f6fa; box-shadow: none; cursor: pointer;
}
.batch-delete-count-confirm { margin-top: 8px; padding: 9px 10px; border-radius: 9px; background: #f7efe4; }
.batch-delete-count-confirm > p { margin: 0; }
.batch-delete-count-confirm > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.product-batch-delete-dialog .batch-delete-count-confirm .batch-delete-count-void {
  border-color: #e4c9ca; color: #a16b70; background: #f5e9ec;
}
.batch-delete-count-confirm button > svg { width: 13px; height: 13px; }
.batch-delete-reasons { margin-top: 11px; padding-top: 10px; border-top: 1px solid #f0e6d8; color: #9b774e; }
.batch-delete-reasons p { margin: 0; font-size: 14px; line-height: 1.5; }
.batch-delete-reasons p + p { margin-top: 5px; }
.batch-delete-sync { margin: 9px 0 0; font-size: 12px; color: #a07950; }
.batch-delete-impact { margin-top: 10px; color: #7891a2; font-size: 12px; }
.batch-delete-impact summary { display: flex; align-items: center; gap: 5px; width: fit-content; cursor: pointer; list-style: none; }
.batch-delete-impact summary::-webkit-details-marker { display: none; }
.batch-delete-impact summary svg { width: 13px; height: 13px; }
.batch-delete-impact[open] summary svg { transform: rotate(180deg); }
.batch-delete-impact > div { margin-top: 8px; padding: 9px 10px; border-radius: 8px; background: #f1f6fa; }
.batch-delete-impact section + section { margin-top: 8px; }
.batch-delete-impact b { font-weight: 500; }
.batch-delete-impact p { margin: 3px 0 0; }
.batch-delete-error { margin: 12px 0 0; font-size: 14px; color: #a16b70; overflow-wrap: anywhere; }
.product-batch-delete-dialog .batch-delete-footer {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: 12px; flex-shrink: 0; margin-top: 18px; padding-top: 16px; border-top: 1px solid #dce8f0;
}
.batch-delete-note { color: #7891a2; font-size: 12px; }
.batch-delete-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.product-batch-delete-dialog .batch-delete-actions > button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; min-width: 72px; padding: 9px 16px; border: 1px solid transparent; border-radius: 10px;
  appearance: none; outline: 0; font-family: inherit; font-size: 14px; line-height: 1.5;
  font-weight: 400; box-shadow: none; cursor: pointer; white-space: nowrap;
}
.product-batch-delete-dialog .batch-delete-cancel { color: #6c879b; background: #e9f1f7; }
.product-batch-delete-dialog .batch-delete-confirm { min-width: 126px; color: #fff; background: #a86670; }
.product-batch-delete-dialog .batch-delete-actions > button > svg { width: 16px; height: 16px; }
.product-batch-delete-dialog .batch-delete-confirm:hover:not(:disabled) { background: #985b65; }
.product-batch-delete-dialog .batch-delete-cancel:hover:not(:disabled) { background: #dfeaf2; }
.product-batch-delete-dialog button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.product-batch-delete-dialog button:focus-visible { outline: 2px solid #8aafc7; outline-offset: 3px; }
.batch-delete-spin { animation: batch-delete-spin 1s linear infinite; }
.product-library-page .product-move-tools:has(.product-batch-delete-trigger) { gap: 8px; }
.product-library-page .product-batch-delete-trigger { color: #a16b70; border-color: #eadbde; background: #fff5f6a6; white-space: nowrap; }
.product-library-page .product-batch-delete-trigger > svg { width: 14px; height: 14px; }
@keyframes batch-delete-spin { to { transform: rotate(360deg); } }
@media (max-width: 750px) {
  .product-library-page .product-library-area-row:has(.product-batch-delete-trigger) { padding-bottom: 46px; }
  .product-library-page .product-move-tools:has(.product-batch-delete-trigger) { top: auto; bottom: 0; height: 40px; }
}
@media (max-width: 600px) {
  .product-batch-delete-dialog[data-slot="dialog-content"] { width: calc(100vw - 24px); padding: 20px 16px; max-height: calc(100dvh - 28px); }
  .batch-delete-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .batch-delete-summary-row { gap: 8px; margin-top: 18px; }
  .batch-delete-summary { gap: 3px 10px; }
  .product-batch-delete-dialog .batch-delete-recheck { font-size: 12px; }
  .product-batch-delete-dialog .batch-delete-footer { flex-wrap: wrap; gap: 10px; }
  .batch-delete-note { flex-basis: 100%; }
  .batch-delete-photo { width: 64px; height: 64px; }
  .product-batch-delete-dialog [data-slot="dialog-close"] { top: 20px; right: 15px; }
}
@media (prefers-reduced-motion: reduce) { .batch-delete-spin { animation: none; } }

.product-batch-delete-dialog .batch-delete-help { margin: 0; min-width: 0; flex: 1; }
.product-batch-delete-dialog .batch-delete-help > div { max-width: 360px; }
@media (max-width: 600px) { .product-batch-delete-dialog .batch-delete-help { flex-basis: 100%; } }


/* accepted source: client/src/pages/ProductPage/product-library-framework.css */
@media (max-width: 640px) {
    .product-library-page[data-product-library="true"] > .fpa-header > .library-recycle-entry {
        grid-area: 1 / 3
    }
}
@media (max-width: 640px) {
    .product-library-page[data-product-library="true"] > .fpa-header > .product-move-edit {
        grid-area: 1 / 2
    }
}

/* accepted source: client/src/pages/ProductPage/product-move.css */
.product-library-page .product-move-menu {
    width: 164px
}
.product-library-page .product-move-menu > button {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap
}
.product-library-page .product-move-menu > button svg {
    flex: 0 0 16px
}
@media (max-width: 640px) {
    .product-library-page .product-move-menu {
        left: 0;
        right: auto
    }
}
