.enw-app {
    max-width: 1560px;
    margin: 24px auto;
    padding: 0 16px 32px;
    font-family: Arial, sans-serif;
    color: #1f2937;
}

.enw-header,
.enw-section-head,
.enw-actions,
.enw-info-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.enw-header h1,
.enw-section-head h2 {
    margin: 0;
}

.enw-header p {
    margin: 6px 0 0;
    color: #4b5563;
}

.enw-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef2ff;
    font-size: 13px;
    font-weight: 700;
}

.enw-panel {
    margin-top: 18px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.enw-info-strip {
    flex-wrap: wrap;
    font-size: 14px;
    background: #f8fafc;
}

.enw-grid {
    display: grid;
    gap: 14px;
}

.enw-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.enw-field,
.enw-lookup {
    position: relative;
}

.enw-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.enw-field input,
.enw-field textarea,
.enw-table input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-sizing: border-box;
    background: #fff;
}

.enw-field textarea {
    min-height: 74px;
    resize: vertical;
}

.enw-helper {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

.enw-table-wrap {
    overflow-x: auto;
}

.enw-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.enw-table th,
.enw-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.enw-table th {
    text-align: left;
    font-size: 14px;
    background: #f8fafc;
}

.enw-table tr:nth-child(even) td {
    background: #fcfcfd;
}

.enw-col-actions {
    width: 90px;
}

.enw-actions-cell {
    text-align: center;
}

.enw-btn,
.enw-icon-btn,
.enw-lookup-item {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

.enw-btn {
    min-height: 42px;
    padding: 0 14px;
}

.enw-btn-primary {
    background: #0f766e;
    color: #fff;
}

.enw-btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.enw-icon-btn {
    width: 38px;
    height: 38px;
    background: #fee2e2;
    color: #991b1b;
}

.enw-panel-status {
    display: none;
}

.enw-panel-status.is-visible {
    display: block;
}

.enw-panel-status.is-success {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.enw-panel-status.is-error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.enw-inline-status {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    line-height: 1.35;
}

.enw-inline-status.is-ok {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.enw-inline-status.is-warn {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.enw-inline-status.is-error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.enw-lookup-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.enw-lookup-results[hidden] {
    display: none;
}

.enw-lookup-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
}

.enw-lookup-item:last-child {
    border-bottom: 0;
}

.enw-lookup-item:hover,
.enw-lookup-item:focus {
    background: #f8fafc;
}

.enw-lookup-title {
    display: block;
    font-size: 14px;
    color: #111827;
}

.enw-lookup-meta {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

.enw-placeholder {
    padding: 24px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
}

@media (max-width: 860px) {
    .enw-grid-2 {
        grid-template-columns: 1fr;
    }

    .enw-header,
    .enw-section-head,
    .enw-actions,
    .enw-info-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .enw-table {
        min-width: 960px;
    }
}


.enw-serials-wrap textarea {
    width: 100%;
    min-height: 98px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-sizing: border-box;
    background: #fff;
    resize: vertical;
    font-family: inherit;
}

.enw-serials-wrap textarea[disabled] {
    background: #f8fafc;
    color: #6b7280;
}

.enw-serials-helper {
    min-height: 18px;
}

.enw-col-actions {
    width: 90px;
}


.enw-modal[hidden] {
    display: none !important;
}

.enw-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.enw-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.enw-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100vw - 32px));
    margin: 10vh auto 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.enw-modal-dialog h3 {
    margin: 0 0 8px;
}

.enw-modal-text {
    margin: 0 0 16px;
    color: #4b5563;
}

.enw-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}


.enw-qty-hint {
    min-height: 18px;
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.2;
    color: #6b7280;
}

.enw-qty-hint.is-scan {
    color: #166534;
    font-weight: 600;
}

.enw-qty-hint.is-manual {
    color: #4b5563;
}


/* v0.7.2 – GR-MAN UI-Aufräumen */
body.enw-gr-man-page .enw-app {
    width: 100%;
    max-width: 100%;
}

/* Oberen WordPress-/Theme-Seitentitel auf GR-MAN ausblenden */
body.enw-gr-man-page h1:first-of-type:not(.enw-header h1),
body.enw-gr-man-page .entry-title,
body.enw-gr-man-page .page-title,
body.enw-gr-man-page .uk-article-title:first-child {
    display: none !important;
}

/* Seitensuche auf GR-MAN ausblenden */
body.enw-gr-man-page .widget_search,
body.enw-gr-man-page .wp-block-search,
body.enw-gr-man-page form[role="search"],
body.enw-gr-man-page .search,
body.enw-gr-man-page .searchform,
body.enw-gr-man-page .uk-search,
body.enw-gr-man-page .search-field,
body.enw-gr-man-page .search-submit {
    display: none !important;
}


/* v0.7.2 – Druckaktionen in Aktionsspalte */
.enw-col-actions {
    width: 210px;
}

.enw-actions-cell {
    vertical-align: top;
}

.enw-print-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.enw-label-count {
    width: 58px;
    min-width: 58px;
    padding: 8px 6px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
}

.enw-mini-btn {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #111827;
    padding: 7px 9px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
    font-size: 0.82rem;
    font-weight: 600;
}

.enw-mini-btn:hover {
    background: #eef2f7;
}

.enw-print-status {
    min-height: 16px;
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.2;
    color: #64748b;
}

.enw-print-status.is-success {
    color: #166534;
}

.enw-print-status.is-error {
    color: #b91c1c;
}

.enw-print-status.is-pending {
    color: #92400e;
}


/* v0.8.7 Feinschliff Tabelle */
.enw-info-strip {
    display: none;
}

.enw-section-head {
    align-items: center;
}

.enw-btn-add-icon {
    min-height: 34px;
    width: 34px;
    padding: 0;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.enw-btn-add-icon:hover,
.enw-btn-add-icon:focus {
    background: #16a34a;
}

.enw-btn-add-icon span {
    transform: translateY(-1px);
}

.enw-table th:nth-child(1),
.enw-table td:nth-child(1) {
    width: 12%;
}

.enw-table th:nth-child(2),
.enw-table td:nth-child(2) {
    width: 19%;
}

.enw-table th:nth-child(3),
.enw-table td:nth-child(3) {
    width: 7%;
}

.enw-table th:nth-child(4),
.enw-table td:nth-child(4) {
    width: 13%;
}

.enw-table th:nth-child(5),
.enw-table td:nth-child(5) {
    width: 15%;
}

.enw-table th:nth-child(6),
.enw-table td:nth-child(6) {
    width: 19%;
}

.enw-table td:nth-child(1) input,
.enw-table td:nth-child(3) input {
    min-width: 0;
}

.js-enw-article-status {
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-clamp: 4;
    min-height: 88px;
    max-height: 88px;
}

.enw-table td:nth-child(2) .enw-inline-status {
    padding-right: 10px;
}

.enw-actions {
    margin-top: 10px;
}


/* v0.8.8 Aktionsspalte */
.enw-print-cell {
    min-width: 180px;
}

.enw-print-layout {
    display: flex;
    align-items: center;
    gap: 8px;
}

.enw-print-icon {
    font-size: 20px;
    opacity: 0.7;
}

.enw-label-count {
    width: 60px;
}

.enw-print-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.enw-mini-btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
    background: #e5e7eb;
    cursor: pointer;
}

.enw-mini-btn:hover {
    background: #d1d5db;
}


/* v0.8.9 asset icons + compact table */
.enw-section-head {
    margin-bottom: 10px;
}

.enw-btn-add-icon {
    width: 40px;
    min-height: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 10px;
    margin-top: 10px;
}

.enw-btn-add-icon:hover,
.enw-btn-add-icon:focus {
    background: transparent;
}

.enw-btn-add-icon img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.enw-table {
    table-layout: auto;
}

.enw-table-wrap {
    overflow-x: visible;
}

.enw-table th,
.enw-table td {
    padding: 8px 6px;
}

.enw-table th:nth-child(1),
.enw-table td:nth-child(1) {
    width: 11%;
}

.enw-table th:nth-child(2),
.enw-table td:nth-child(2) {
    width: 18%;
}

.enw-table th:nth-child(3),
.enw-table td:nth-child(3) {
    width: 5%;
}

.enw-table th:nth-child(4),
.enw-table td:nth-child(4) {
    width: 14%;
}

.enw-table th:nth-child(5),
.enw-table td:nth-child(5) {
    width: 15%;
}

.enw-table th:nth-child(6),
.enw-table td:nth-child(6) {
    width: 13%;
}

.enw-table th:nth-child(7),
.enw-table td:nth-child(7) {
    width: 6%;
}

.enw-print-cell {
    min-width: 120px;
}

.enw-print-layout {
    display: flex;
    align-items: center;
    gap: 6px;
}

.enw-print-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    min-width: 26px;
}

.enw-print-icon img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.enw-label-count {
    width: 30px;
    min-width: 30px;
    padding: 6px 4px;
}

.enw-print-buttons {
    gap: 3px;
}

.enw-mini-btn {
    padding: 3px 7px;
    font-size: 11px;
    line-height: 1.1;
}

.enw-icon-btn {
    width: 19px;
    height: 19px;
    font-size: 12px;
    border-radius: 8px;
}

.enw-print-status {
    margin-top: 4px;
    font-size: 11px;
}

.enw-inline-status {
    font-size: 12px;
    line-height: 1.25;
}

.js-enw-article-status {
    min-height: 72px;
    max-height: 72px;
}

.enw-serials-wrap textarea {
    min-height: 72px;
}

@media (max-width: 1100px) {
    .enw-table-wrap {
        overflow-x: auto;
    }
}


/* v0.9.0 platzsparendes Drucklayout */
.enw-print-layout-icons {
    gap: 4px;
    justify-content: flex-start;
}

.enw-print-icon-btn {
    border: 0;
    background: transparent;
    padding: 0;
    width: 28px;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
}

.enw-print-icon-btn:hover,
.enw-print-icon-btn:focus {
    background: #f3f4f6;
}

.enw-print-icon {
    display: none;
}

.enw-print-icon-img {
    display: block;
    object-fit: contain;
}

.enw-print-icon-img-small {
    width: 18px;
    height: 18px;
}

.enw-print-icon-img-large {
    width: 24px;
    height: 24px;
}

.enw-label-count {
    width: 34px;
    min-width: 34px;
    padding: 6px 4px;
    text-align: center;
}

.enw-print-buttons {
    display: none;
}

.enw-print-cell {
    min-width: 92px;
}


/* v0.9.1 field typography + icon alignment */
.enw-field textarea,
.enw-serials-wrap textarea,
.enw-table textarea,
.enw-table input,
.enw-field input {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #1f2937;
}

.enw-print-layout,
.enw-print-layout-icons,
.enw-actions-cell {
    align-items: center;
}

.enw-print-cell .enw-print-layout {
    min-height: 42px;
}

.enw-print-icon-btn,
.enw-icon-btn,
.enw-label-count {
    align-self: center;
}

.enw-actions-cell {
    vertical-align: middle;
    text-align: center;
}

.enw-print-status {
    text-align: center;
}


/* v0.9.2 widths + header text */
.enw-table th:nth-child(3),
.enw-table td:nth-child(3) {
    width: 7%;
}

.enw-table th:nth-child(4),
.enw-table td:nth-child(4) {
    width: 12%;
}

.enw-table th:nth-child(5),
.enw-table td:nth-child(5) {
    width: 13%;
}

.enw-table td:nth-child(3) input.js-enw-qty {
    min-width: 56px;
    width: 56px;
}

.enw-print-layout-icons {
    align-items: center;
}

.enw-actions-cell,
.enw-print-cell,
.enw-print-cell .enw-print-layout,
.enw-print-icon-btn,
.enw-icon-btn {
    vertical-align: middle;
}

.enw-print-cell .enw-print-layout {
    min-height: 42px;
    display: flex;
    align-items: center;
}

.enw-print-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.enw-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.enw-print-status {
    margin-top: 2px;
}


/* v0.9.3 qty + LP fix */
.enw-table td:nth-child(3) input.js-enw-qty {
    min-width: 64px;
    width: 64px;
}



.enw-app[data-module="gr-po"] {
    max-width: 1720px;
    margin-left: 32px;
    margin-right: 0;
}

.enw-app[data-module="gr-po"] .enw-table {
    table-layout: auto;
    min-width: 1500px;
}

.enw-app[data-module="gr-po"] .enw-table th:nth-child(1),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(1) { width: 48px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(2),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(2) { min-width: 130px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(3),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(3) { min-width: 260px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(7),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(7) { width: 90px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(8),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(8) { min-width: 160px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(9),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(9) { min-width: 180px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(10),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(10) { width: 120px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(11),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(11) { min-width: 230px; }


.enw-app[data-module="gr-po"] {
    max-width: 1560px;
    width: 100%;
}

.enw-app[data-module="gr-po"] .enw-table-wrap { overflow-x: auto; }
.enw-app[data-module="gr-po"] .enw-table { width: 100%; table-layout: fixed; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(2),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(2) { min-width: 140px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(3),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(3) { min-width: 320px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(8),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(8) { min-width: 180px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(9),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(9) { min-width: 190px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(11),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(11) { min-width: 180px; }


/* WE-PO Phase 2 width + horizontal scroll */
.enw-app[data-module="gr-po"] {
    max-width: 1680px;
    width: min(1680px, calc(100vw - 80px));
}

.enw-app[data-module="gr-po"] .enw-panel {
    overflow: visible;
}

.enw-app[data-module="gr-po"] .enw-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.enw-app[data-module="gr-po"] .enw-table {
    width: max-content;
    min-width: 1540px;
    table-layout: auto;
}

.enw-app[data-module="gr-po"] .enw-table th,
.enw-app[data-module="gr-po"] .enw-table td {
    white-space: normal;
    vertical-align: top;
}

.enw-app[data-module="gr-po"] .enw-table th:nth-child(1),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(1) { width: 56px; min-width: 56px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(2),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(2) { width: 150px; min-width: 150px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(3),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(3) { width: 340px; min-width: 340px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(4),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(4),
.enw-app[data-module="gr-po"] .enw-table th:nth-child(5),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(5),
.enw-app[data-module="gr-po"] .enw-table th:nth-child(6),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(6) { width: 86px; min-width: 86px; white-space: nowrap; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(7),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(7) { width: 110px; min-width: 110px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(8),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(8) { width: 190px; min-width: 190px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(9),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(9) { width: 210px; min-width: 210px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(10),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(10) { width: 140px; min-width: 140px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(11),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(11) { width: 250px; min-width: 250px; }

.enw-app[data-module="gr-po"] .js-enw-po-article-number {
    white-space: nowrap;
    font-weight: 600;
}

.enw-app[data-module="gr-po"] .js-enw-po-article-name {
    min-width: 0;
}

.enw-app[data-module="gr-po"] .js-enw-po-qty,
.enw-app[data-module="gr-po"] .js-enw-po-storage,
.enw-app[data-module="gr-po"] .js-enw-po-label-count,
.enw-app[data-module="gr-po"] .js-enw-po-serials {
    width: 100%;
}


/* WE-PO Phase 2b full-page centered layout without horizontal scroll */
.enw-app[data-module="gr-po"] {
    width: min(1800px, calc(100vw - 48px));
    max-width: min(1800px, calc(100vw - 48px));
    margin: 24px auto 32px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding-left: 0;
    padding-right: 0;
}

.enw-app[data-module="gr-po"] .enw-panel {
    overflow: visible;
}

.enw-app[data-module="gr-po"] .enw-table-wrap {
    overflow-x: visible;
    overflow-y: visible;
    padding-bottom: 0;
}

.enw-app[data-module="gr-po"] .enw-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
}

.enw-app[data-module="gr-po"] .enw-table th,
.enw-app[data-module="gr-po"] .enw-table td {
    white-space: normal;
    vertical-align: top;
}

.enw-app[data-module="gr-po"] .enw-table th:nth-child(1),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(1) { width: 50px; min-width: 50px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(2),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(2) { width: 130px; min-width: 130px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(3),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(3) { width: 280px; min-width: 280px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(4),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(4),
.enw-app[data-module="gr-po"] .enw-table th:nth-child(5),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(5),
.enw-app[data-module="gr-po"] .enw-table th:nth-child(6),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(6) { width: 72px; min-width: 72px; white-space: nowrap; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(7),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(7) { width: 90px; min-width: 90px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(8),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(8) { width: 170px; min-width: 170px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(9),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(9) { width: 180px; min-width: 180px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(10),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(10) { width: 120px; min-width: 120px; }
.enw-app[data-module="gr-po"] .enw-table th:nth-child(11),
.enw-app[data-module="gr-po"] .enw-table td:nth-child(11) { width: 190px; min-width: 190px; }

.enw-app[data-module="gr-po"] .js-enw-po-article-number {
    white-space: nowrap;
    font-weight: 600;
}

.enw-app[data-module="gr-po"] .js-enw-po-article-name {
    word-break: break-word;
}

@media (max-width: 1500px) {
    .enw-app[data-module="gr-po"] {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }

    .enw-app[data-module="gr-po"] .enw-table-wrap {
        overflow-x: auto;
    }

    .enw-app[data-module="gr-po"] .enw-table {
        min-width: 1420px;
    }
}


/* WE-PO Layout fix 0.9.9: true centered page-width wrapper */
body .enw-app[data-module="gr-po"] {
    width: min(1720px, calc(100vw - 64px));
    max-width: min(1720px, calc(100vw - 64px));
    margin: 24px auto 32px !important;
    left: auto !important;
    transform: none !important;
    padding-left: 0;
    padding-right: 0;
}

body .enw-app[data-module="gr-po"] .enw-panel,
body .enw-app[data-module="gr-po"] .enw-header,
body .enw-app[data-module="gr-po"] .enw-actions {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1500px) {
    body .enw-app[data-module="gr-po"] {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }
}

.enw-serials-wrap.is-hidden {
    display: none;
}


/* v0.9.31 GR-PO TAB workflow + layout corrections */
body:has(.enw-app[data-module="gr-po"]) h1:first-of-type:not(.enw-header h1),
body:has(.enw-app[data-module="gr-po"]) .entry-title,
body:has(.enw-app[data-module="gr-po"]) .page-title,
body:has(.enw-app[data-module="gr-po"]) .uk-article-title:first-child {
    display: none !important;
}
body:has(.enw-app[data-module="gr-po"]) .widget_search,
body:has(.enw-app[data-module="gr-po"]) .wp-block-search,
body:has(.enw-app[data-module="gr-po"]) form[role="search"],
body:has(.enw-app[data-module="gr-po"]) .search,
body:has(.enw-app[data-module="gr-po"]) .searchform,
body:has(.enw-app[data-module="gr-po"]) .uk-search,
body:has(.enw-app[data-module="gr-po"]) .search-field,
body:has(.enw-app[data-module="gr-po"]) .search-submit {
    display: none !important;
}
.enw-app[data-module="gr-po"] .enw-actions-cell {
    justify-self: start;
    text-align: left;
}
.enw-app[data-module="gr-po"] .js-enw-load-po,
.enw-app[data-module="gr-po"] .js-enw-po-submit-prep {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}
.enw-app[data-module="gr-po"] .js-enw-load-po:hover,
.enw-app[data-module="gr-po"] .js-enw-po-submit-prep:hover {
    background: #115e59;
    border-color: #115e59;
    color: #fff;
}


/* ===== Transfer final styling ===== */
body.enw-transfer-page .entry-title,
body.enw-transfer-page .uk-article-title,
body.enw-transfer-page .tm-content > .search,
body.enw-transfer-page .widget_search,
body.enw-transfer-page form.search,
body.enw-transfer-page .searchform,
body.enw-transfer-page .wp-block-search {
    display: none !important;
}

.enw-transfer-app {
    max-width: 1100px;
    margin-top: 12px;
}

.enw-transfer-hero h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 400;
    color: #334155;
}

.enw-transfer-panel {
    margin-top: 14px;
}

.enw-transfer-search {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
    align-items: end;
}

.enw-transfer-results {
    margin-top: 10px;
}

.enw-transfer-results > div {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    margin-top: 8px;
}

.enw-transfer-results > div:hover {
    background: #f8fafc;
}

.enw-transfer-article-value {
    min-height: 24px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.enw-transfer-helper {
    font-size: 13px;
    color: #64748b;
}

.enw-transfer-summary,
.enw-transfer-inline-status {
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #f8fafc;
}

.enw-transfer-inline-status:empty {
    display: none;
}

.enw-transfer-inline-status .status-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.enw-transfer-inline-status .status-row {
    margin-top: 4px;
}

.enw-transfer-inline-status .status-summary {
    margin-top: 10px;
    font-weight: 700;
}

.enw-transfer-inline-status .is-success {
    color: #166534;
}

.enw-transfer-inline-status .is-error {
    color: #991b1b;
}

.enw-transfer-inline-status .is-info {
    color: #334155;
}

.enw-transfer-source-card {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
}

.enw-transfer-source-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.enw-transfer-source-row input[type="number"] {
    width: 100px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

.enw-transfer-serial-row {
    display: block;
    cursor: pointer;
    margin-bottom: 6px;
    padding: 6px 8px;
    border-radius: 8px;
}

.enw-transfer-serial-row:hover {
    background: #f8fafc;
}

.enw-transfer-target-panel .enw-grid-2 {
    grid-template-columns: 1fr 220px;
}

.enw-transfer-print-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.enw-transfer-print-count-wrap input {
    max-width: 130px;
}

.enw-transfer-submit-panel {
    display: grid;
    gap: 12px;
}

@media (max-width: 900px) {
    .enw-transfer-search,
    .enw-transfer-target-panel .enw-grid-2 {
        grid-template-columns: 1fr;
    }

    .enw-transfer-source-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }
}


.enw-transfer-result-note {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
}

.enw-transfer-panel + .enw-transfer-panel {
    scroll-margin-top: 24px;
}


/* ===== Transfer v1.2.1 final polish ===== */
body.enw-transfer-page .entry-title,
body.enw-transfer-page .uk-article-title,
body.enw-transfer-page .tm-content > .search,
body.enw-transfer-page .widget_search,
body.enw-transfer-page form.search,
body.enw-transfer-page .searchform,
body.enw-transfer-page .wp-block-search {
    display: none !important;
}

.enw-transfer-app {
    max-width: 980px;
    margin-top: 12px;
}

.enw-transfer-header h1 {
    margin: 0;
    font-size: 52px;
    line-height: 1.08;
    font-weight: 300;
    color: #475569;
}

.enw-transfer-header p {
    margin: 8px 0 0;
    font-size: 18px;
    color: #334155;
}

.enw-transfer-panel {
    margin-top: 14px;
}

.enw-transfer-search {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
    align-items: end;
}

.enw-transfer-field-mode select,
.enw-transfer-field-search input {
    min-height: 42px;
}

.enw-transfer-results {
    margin-top: 10px;
}

.enw-transfer-results > div {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    margin-top: 8px;
    cursor: pointer;
}

.enw-transfer-results > div:hover {
    background: #f8fafc;
}

.enw-transfer-result-note {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
}

.enw-transfer-article-value {
    min-height: 24px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.enw-transfer-helper {
    font-size: 13px;
    color: #64748b;
}

.enw-transfer-inline-status {
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #f8fafc;
}

.enw-transfer-inline-status:empty {
    display: none;
}

.enw-transfer-inline-status .status-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.enw-transfer-inline-status .status-row {
    margin-top: 4px;
}

.enw-transfer-inline-status .status-summary {
    margin-top: 10px;
    font-weight: 700;
}

.enw-transfer-inline-status .is-success {
    color: #166534;
}

.enw-transfer-inline-status .is-error {
    color: #991b1b;
}

.enw-transfer-inline-status .is-info {
    color: #334155;
}

.enw-transfer-selection-status {
    margin-top: 14px;
}

.enw-transfer-source-table {
    display: grid;
    gap: 8px;
}

.enw-transfer-source-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 120px 140px;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
}

.enw-transfer-source-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.enw-transfer-move-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 18px;
    font-weight: 700;
}

.enw-transfer-source-main {
    color: #111827;
}

.enw-transfer-source-main span {
    color: #6b7280;
}

.enw-transfer-source-stock {
    color: #334155;
    font-weight: 700;
}

.enw-transfer-source-qty input[type="number"],
.enw-transfer-print-count-wrap input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-sizing: border-box;
    background: #fff;
}

.enw-transfer-source-card {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
}

.enw-transfer-source-card-head {
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.enw-transfer-empty-note {
    color: #64748b;
    font-size: 13px;
}

.enw-transfer-serial-row {
    display: block;
    cursor: pointer;
    margin-bottom: 6px;
    padding: 6px 8px;
    border-radius: 8px;
}

.enw-transfer-serial-row:hover {
    background: #f8fafc;
}

.enw-transfer-target-panel .enw-grid-2 {
    grid-template-columns: 1fr 220px;
}

.enw-transfer-print-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.enw-transfer-print-btn {
    min-width: 120px;
}

.enw-transfer-submit-panel {
    display: grid;
    gap: 12px;
}

@media (max-width: 900px) {
    .enw-transfer-search,
    .enw-transfer-target-panel .enw-grid-2 {
        grid-template-columns: 1fr;
    }

    .enw-transfer-source-row {
        grid-template-columns: 40px 1fr;
    }

    .enw-transfer-source-stock,
    .enw-transfer-source-qty {
        grid-column: 2;
    }
}


/* ===== Transfer v1.2.2 inline print ===== */
.enw-transfer-target-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 14px;
    align-items: end;
}

.enw-transfer-print-inline-controls {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    gap: 8px;
    align-items: center;
}

.enw-transfer-inline-print-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
}

.enw-transfer-inline-print-btn:hover {
    background: #f8fafc;
}

.enw-transfer-print-inline input[type="number"] {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-sizing: border-box;
    background: #fff;
    text-align: center;
}

@media (max-width: 900px) {
    .enw-transfer-target-row {
        grid-template-columns: 1fr;
    }
}


/* ===== Transfer v1.2.3 print button distinction ===== */
.enw-transfer-inline-print-btn-small {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.enw-transfer-inline-print-btn-large {
    width: 46px;
    height: 46px;
    font-size: 20px;
}

.enw-transfer-inline-print-btn-small:hover,
.enw-transfer-inline-print-btn-large:hover {
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.10);
}
