/* productionorder.css */

/* ── Step 1 form table tweaks ───────────────────────────────────── */

#po-step1-wrap table.border td {
    vertical-align: middle;
    padding: 8px 12px;
}

#po-step1-wrap table.border td:first-child {
    width: 180px;
    white-space: nowrap;
}

#po-step1-wrap input[type="text"],
#po-step1-wrap input[type="number"] {
    width: 500px;
    max-width: 100%;
}

#po_sf_display {
    background: #f6f8fa !important;
    color: #555;
    cursor: default;
}

/* ── Autocomplete dropdown ──────────────────────────────────────── */

.po-autocomplete-list {
    position: fixed;
    z-index: 99999;
    background: #fff;
    border: 1px solid #b0b8c4;
    border-top: none;
    border-radius: 0 0 4px 4px;
    list-style: none;
    margin: 0;
    padding: 2px 0;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,.18);
}

.po-ac-item {
    padding: 7px 12px;
    cursor: pointer;
    font-size: .9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.po-ac-item:hover {
    background: #eef2ff;
    color: #222;
}

.po-ac-empty {
    padding: 8px 12px;
    color: #999;
    font-style: italic;
    font-size: .88em;
}

/* ── Preview panel ──────────────────────────────────────────────── */

.po-loading {
    padding: 20px;
    color: #666;
    font-style: italic;
    text-align: center;
}

.po-mat-qty {
    text-align: right;
}

.po-preview-btn {
    margin-top: 6px;
}

.badge + .badge {
    margin-left: 4px;
}
