:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --ink: #172033;
    --muted: #748096;
    --line: #e5e9f0;
    --nav: #0f1b2d;
    --nav-soft: #17263d;
    --accent: #2563eb;
    --accent-2: #1d4ed8;
    --success: #16865d;
    --warning: #b26a00;
    --danger: #c33a3a;
    --shadow: 0 8px 24px rgba(15, 27, 45, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
    width: 248px; min-height: 100vh; background: var(--nav); color: #dbe4f1;
    display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 30;
}
.brand { height: 76px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark {
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: #fff; color: var(--nav); font-weight: 900; font-size: 19px;
}
.brand-mark.large { width: 48px; height: 48px; font-size: 26px; border-radius: 12px; background: var(--nav); color: white; }
.brand strong { display: block; color: white; font-size: 17px; letter-spacing: .08em; }
.brand span { display: block; color: #8291aa; font-size: 11px; margin-top: 2px; }

.nav-menu { padding: 18px 12px; flex: 1; }
.nav-section { padding: 20px 12px 8px; color: #65748e; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-item {
    display: flex; align-items: center; gap: 11px; padding: 11px 12px; margin: 3px 0;
    border-radius: 9px; color: #aab6c8; font-size: 14px; transition: .15s ease;
}
.nav-item:hover { background: var(--nav-soft); color: white; }
.nav-item.active { background: #1d4ed8; color: white; }
.nav-icon { width: 22px; text-align: center; font-size: 17px; }
.sidebar-footer { margin: 0 14px 16px; padding: 14px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; }
.sidebar-footer strong, .sidebar-footer small { display: block; }
.sidebar-footer strong { color: white; font-size: 12px; }
.sidebar-footer small { color: #8291aa; margin-top: 2px; }
.branch-badge { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: rgba(37,99,235,.25); color: #8db3ff; font-weight: 800; }

.main { margin-left: 248px; width: calc(100% - 248px); min-height: 100vh; }
.topbar {
    height: 76px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 20;
}
.topbar-title strong { display: block; margin-top: 3px; font-size: 17px; }
.eyebrow { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.scan-shortcut { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: #465268; font-size: 12px; background: white; }
.user-chip { display: flex; align-items: center; gap: 8px; color: #39465a; font-size: 12px; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e7eefc; color: var(--accent); font-weight: 800; }
.logout-link { color: var(--muted); font-size: 12px; }
.logout-form { display: flex; flex: 0 0 auto; margin: 0; }
.logout-form .logout-link { min-width: 70px; min-height: 34px; padding: 7px 12px; white-space: nowrap; writing-mode: horizontal-tb; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 22px; cursor: pointer; }

.content { padding: 30px; max-width: 1680px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 6px 0 4px; font-size: 28px; letter-spacing: -.03em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; gap: 9px; }

.btn { border: 1px solid transparent; border-radius: 8px; padding: 10px 15px; cursor: pointer; font-weight: 700; font-size: 13px; display: inline-flex; justify-content: center; align-items: center; }
.btn.primary { background: var(--accent); color: white; }
.btn.primary:hover { background: var(--accent-2); }
.btn.secondary { background: white; border-color: var(--line); color: #3b4658; }
.btn.text { background: transparent; color: var(--muted); }
.btn.full { width: 100%; padding: 12px 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.metric-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.metric-card strong { display: block; font-size: 30px; margin: 12px 0 3px; letter-spacing: -.03em; }
.metric-card small, .metric-label { color: var(--muted); font-size: 11px; }
.metric-card.warn strong { color: var(--warning); }
.metric-card.danger strong { color: var(--danger); }

.dashboard-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-bottom: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.panel-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.panel-head h2 { margin: 5px 0 0; font-size: 17px; }
.panel-head > a { color: var(--accent); font-size: 12px; font-weight: 700; }
.panel-note { color: var(--muted); font-size: 11px; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { background: #fafbfd; color: #748096; text-align: left; font-size: 11px; font-weight: 800; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid #edf0f5; font-size: 12px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcff; }
.mono { font-family: Consolas, "Courier New", monospace; }
.strong { font-weight: 800; }

.status-pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.status-pill.in, .status-pill.normal { background: #e8f7f1; color: var(--success); }
.status-pill.out { background: #edf2ff; color: var(--accent); }
.status-pill.warning { background: #fff3df; color: var(--warning); }
.status-pill.caution { background: #fdeaea; color: var(--danger); }

.attention-list { padding: 6px 14px 14px; }
.attention-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 7px; border-bottom: 1px solid var(--line); }
.attention-item:last-child { border: 0; }
.attention-item strong, .attention-item span { display: block; }
.attention-item > div:first-child strong { font-size: 13px; }
.attention-item > div:first-child span { color: var(--muted); font-size: 10px; margin-top: 5px; }
.qty-alert { text-align: right; }
.qty-alert strong { color: var(--warning); font-size: 19px; }
.qty-alert span { color: var(--muted); font-size: 10px; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; align-items: center; gap: 13px; box-shadow: var(--shadow); }
.quick-card > div { flex: 1; }
.quick-card strong, .quick-card small { display: block; }
.quick-card strong { font-size: 13px; }
.quick-card small { color: var(--muted); margin-top: 4px; font-size: 10px; }
.quick-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #edf3ff; color: var(--accent); font-size: 19px; }

.filter-bar { display: flex; gap: 9px; margin-bottom: 14px; }
.filter-bar input, .filter-bar select { height: 40px; border: 1px solid var(--line); background: white; border-radius: 8px; padding: 0 12px; color: var(--ink); }
.search-input { flex: 1; min-width: 240px; }

.form-panel { max-width: 1050px; }
.form-panel form { padding: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-grid label, .form-stack label, .scan-form label { display: flex; flex-direction: column; gap: 7px; }
.form-grid label > span:first-child, .form-stack label > span:first-child, .scan-form label > span { color: #596579; font-size: 11px; font-weight: 800; }
.form-grid input, .form-grid select, .form-grid textarea, .form-stack input, .scan-form input {
    width: 100%; border: 1px solid #dbe0e8; border-radius: 8px; padding: 11px 12px; background: white; outline: none;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .form-stack input:focus, .scan-form input:focus { border-color: #8ab0ff; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.span-2 { grid-column: span 2; }
.form-actions { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.field-error { color: var(--danger); font-size: 10px; }

.alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 8px; font-size: 12px; }
.alert:empty { display: none; }
.alert.success { background: #e8f7f1; color: #126846; border: 1px solid #c8ebdc; }
.alert.error { background: #fff0f0; color: #a62d2d; border: 1px solid #f0cccc; }

.tag { display: inline-flex; padding: 4px 7px; border-radius: 6px; background: #eef2f7; color: #536075; font-size: 9px; font-weight: 800; }
.info-box { margin-top: 14px; padding: 16px 18px; border: 1px dashed #ccd5e2; border-radius: 10px; display: flex; gap: 12px; background: #f9fbfe; }
.info-box strong { font-size: 12px; }
.info-box span { color: var(--muted); font-size: 12px; }

.scan-panel { background: #0f1b2d; border-radius: 14px; padding: 26px; margin-bottom: 18px; }
.scan-form { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 15px; max-width: 980px; margin: 0 auto; }
.scan-form label > span { color: #9bacbf; }
.scan-form input { height: 48px; font-size: 17px; font-family: Consolas, monospace; }
.scan-form .btn { height: 48px; padding-inline: 24px; }
.scan-symbol { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: #1e3351; color: #85adff; font-size: 25px; }

.result-card { max-width: 980px; margin: 0 auto; }
.result-head { display: flex; justify-content: space-between; align-items: center; padding: 22px; border-bottom: 1px solid var(--line); }
.result-head h2 { margin: 9px 0 4px; }
.big-qty { display: flex; align-items: baseline; gap: 5px; }
.big-qty strong { font-size: 38px; }
.big-qty span { color: var(--muted); font-size: 11px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px 22px 22px; }
.detail-grid > div { padding: 18px 10px 0 0; }
.detail-grid span, .detail-grid strong { display: block; }
.detail-grid span { color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.detail-grid strong { font-size: 13px; }
.empty-state { max-width: 980px; margin: 0 auto; padding: 45px; text-align: center; border: 1px dashed #ccd5e2; border-radius: 12px; color: var(--muted); }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { color: var(--ink); margin-bottom: 7px; }

.login-body { background: #edf1f7; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.2fr .8fr; }
.login-wrap.affiliation-wrap {
    grid-template-columns: minmax(0, 1fr);
    min-height: 100dvh;
    padding-block: 24px;
}
.affiliation-wrap .login-card { min-width: 0; padding: clamp(20px, 5vw, 34px); }
.affiliation-wrap .form-stack { grid-template-columns: minmax(0, 1fr); }
.affiliation-wrap .form-stack label { min-width: 0; }
.affiliation-wrap .form-stack input,
.affiliation-wrap .form-stack select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
.affiliation-wrap .form-stack select {
    border: 1px solid #dbe0e8;
    border-radius: 8px;
    padding: 11px 12px;
    background: white;
}
.affiliation-wrap .login-card > form + form { margin-top: 16px; }
.login-panel { background: #0f1b2d; color: white; padding: 60px 8vw; display: flex; flex-direction: column; }
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand h1 { margin: 0; font-size: 23px; letter-spacing: .1em; }
.login-brand p { color: #8291aa; margin: 4px 0 0; font-size: 11px; }
.login-copy { margin: auto 0; max-width: 600px; }
.login-copy .eyebrow { color: #80a7f5; }
.login-copy h2 { margin: 12px 0 18px; font-size: clamp(36px, 5vw, 64px); line-height: 1.1; letter-spacing: -.05em; }
.login-copy p { color: #a3b0c4; font-size: 14px; line-height: 1.8; max-width: 520px; }
.login-features { display: flex; flex-wrap: wrap; gap: 20px; color: #a3b0c4; font-size: 11px; }
.login-card { margin: auto; width: min(420px, calc(100% - 48px)); background: white; border: 1px solid var(--line); border-radius: 16px; padding: 34px; box-shadow: 0 18px 50px rgba(15,27,45,.12); }
.login-card-head { margin-bottom: 22px; }
.login-card-head h2 { margin: 7px 0 5px; font-size: 28px; }
.login-card-head p { color: var(--muted); margin: 0; font-size: 12px; }
.form-stack { display: grid; gap: 16px; }
.login-options { display: flex; align-items: center; gap: 22px; margin-top: -7px; }
.login-options label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; color: #596579; font-size: 12px; cursor: pointer; }
.login-options input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.login-note { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
.login-note strong, .login-note span { display: block; }
.login-note strong { font-size: 11px; }
.login-note span { color: var(--muted); font-size: 10px; margin-top: 4px; }

@media (max-width: 1200px) {
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; width: 100%; }
    .menu-toggle { display: block; }
    .topbar { padding: 0 18px; }
    .topbar-title .eyebrow, .logout-link { display: none; }
    .content { padding: 20px; }
    .dashboard-grid, .quick-grid { grid-template-columns: 1fr; }
    .login-wrap { grid-template-columns: 1fr; }
    .login-panel { display: none; }
}
@media (max-width: 680px) {
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .heading-actions { width: 100%; }
    .heading-actions .btn { flex: 1; }
    .filter-bar { flex-wrap: wrap; }
    .filter-bar .search-input { width: 100%; flex-basis: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .scan-form { grid-template-columns: 1fr; }
    .scan-symbol { display: none; }
    .detail-grid { grid-template-columns: 1fr 1fr; }
    .topbar-actions .user-chip span:last-child { display: none; }
}


/* ===== v0.2 : Outbound Request / Field Usage / Camera Scan ===== */
.metric-grid { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.metric-card.request strong { color: var(--accent); }

.btn.small { padding: 7px 10px; font-size: 11px; border-radius: 7px; }
.alert.info { background: #edf3ff; color: #2451a5; border: 1px solid #cfdcff; }
.readonly-input { background: #f7f8fb !important; color: #68758a; }
.form-panel.wide { max-width: 1240px; }
.standalone-label { display: flex; flex-direction: column; gap: 7px; margin-top: 20px; }
.standalone-label > span { color: #596579; font-size: 11px; font-weight: 800; }
.standalone-label textarea {
    width: 100%; border: 1px solid #dbe0e8; border-radius: 8px; padding: 11px 12px;
    background: white; outline: none; resize: vertical;
}

.workflow-note {
    display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
    padding: 14px 16px; border: 1px solid var(--line); background: white; border-radius: 12px;
    box-shadow: var(--shadow); overflow-x: auto;
}
.workflow-step {
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
    color: var(--muted); font-size: 11px; font-weight: 700;
}
.workflow-step strong {
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: #eef1f6; color: #6b778a; font-size: 11px;
}
.workflow-step.active { color: var(--accent); }
.workflow-step.active strong { background: var(--accent); color: white; }
.workflow-step.done { color: var(--success); }
.workflow-step.done strong { background: #e5f7ef; color: var(--success); }
.workflow-arrow { color: #a6afbd; font-size: 15px; }

.request-items-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
    margin: 28px 0 12px; padding-top: 22px; border-top: 1px solid var(--line);
}
.request-items-head h3 { margin: 5px 0 4px; font-size: 17px; }
.request-items-head p { margin: 0; color: var(--muted); font-size: 11px; }

.request-edit-table table { min-width: 680px; }
.request-edit-table td { vertical-align: middle; }
.request-edit-table select,
.request-edit-table input {
    width: 100%; border: 1px solid #dbe0e8; border-radius: 7px; padding: 9px 10px; background: white;
}
.request-edit-table td:nth-child(1) { width: 58%; }
.request-edit-table td:nth-child(2) { width: 14%; }
.request-edit-table td:nth-child(3) { width: 18%; }
.request-edit-table td:nth-child(4) { width: 10%; text-align: right; }
.available-cell { font-weight: 800; color: #41506a; }
.icon-btn {
    border: 1px solid var(--line); background: white; width: 30px; height: 30px; border-radius: 7px;
    cursor: pointer; color: #788396; font-size: 18px; line-height: 1;
}
.icon-btn:hover { background: #fff0f0; border-color: #f1caca; color: var(--danger); }

.request-part-line { display: flex; gap: 7px; align-items: center; margin: 2px 0; }
.request-part-line .mono { color: #44526a; font-weight: 700; }
.request-status.요청대기 { background: #edf3ff; color: var(--accent); }
.request-status.출고준비 { background: #fff3df; color: var(--warning); }
.request-status.출고완료 { background: #e8f7f1; color: var(--success); }
.request-status.취소 { background: #eef0f3; color: #717b8c; }

.tx-입고 { background: #e8f7f1; color: var(--success); }
.tx-출고 { background: #edf3ff; color: var(--accent); }
.tx-사용 { background: #f0ebff; color: #6c4ac7; }

.request-summary-grid {
    display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; margin-bottom: 16px;
}
.summary-box {
    background: white; border: 1px solid var(--line); border-radius: 10px; padding: 14px 15px; box-shadow: var(--shadow);
}
.summary-box span, .summary-box strong { display: block; }
.summary-box > span { color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.summary-box > strong { font-size: 12px; }
.completed-row { background: #fafcfa; color: #7a8597; }

.camera-process-panel { margin-top: 18px; }
.camera-process-panel form, .usage-camera + .form-grid { }
.camera-process-panel form { padding: 20px; }

.selected-request-item {
    display: flex; align-items: center; gap: 12px; padding: 13px 15px; margin-bottom: 16px;
    border-radius: 9px; background: #f5f8ff; border: 1px solid #dbe6ff;
}
.selected-request-item span { color: var(--muted); font-size: 10px; font-weight: 800; }
.selected-request-item strong { font-size: 12px; }

.camera-scanner { margin-bottom: 18px; }
.camera-frame {
    position: relative; width: 100%; max-width: 760px; margin: 0 auto; aspect-ratio: 16 / 8.8;
    overflow: hidden; border-radius: 14px; background: #0b1422; border: 1px solid #22314a;
}
.camera-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0b1422; }
.camera-placeholder {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 7px; color: #b5c1d3; text-align: center; pointer-events: none;
}
.camera-placeholder strong { color: white; font-size: 16px; }
.camera-placeholder span { font-size: 11px; }
.camera-guide {
    position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2;
}
.camera-guide span {
    width: 72%; height: 34%; border: 2px solid rgba(255,255,255,.82); border-radius: 10px;
    box-shadow: 0 0 0 2000px rgba(0,0,0,.18);
}
.camera-controls {
    display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 11px; flex-wrap: wrap;
}
.camera-status { color: var(--muted); font-size: 10px; margin-left: 4px; max-width: 520px; }
.camera-status.success { color: var(--success); font-weight: 800; }
.camera-status.error { color: var(--danger); font-weight: 700; }
.camera-scanner.scan-flash .camera-frame { box-shadow: 0 0 0 4px rgba(22,134,93,.18); }

.scan-entry-grid {
    display: grid; grid-template-columns: 1.7fr .6fr; gap: 14px; margin-top: 18px;
}
.scan-entry-grid label { display: flex; flex-direction: column; gap: 7px; }
.scan-entry-grid label > span:first-child { color: #596579; font-size: 11px; font-weight: 800; }
.scan-entry-grid input {
    width: 100%; border: 1px solid #dbe0e8; border-radius: 8px; padding: 11px 12px; background: white;
}

.scan-result {
    display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px;
    margin: 16px 0; padding: 14px; background: #f8fafc; border: 1px dashed #cfd7e3; border-radius: 10px;
    color: var(--muted); font-size: 11px;
}
.scan-result.compact { grid-template-columns: repeat(4, minmax(0,1fr)); }
.scan-result > span:only-child { grid-column: 1 / -1; }
.scan-result div span, .scan-result div strong { display: block; }
.scan-result div span { color: var(--muted); font-size: 9px; margin-bottom: 4px; }
.scan-result div strong { color: var(--ink); font-size: 12px; }
.scan-result.success { background: #f0faf6; border-color: #bfe5d5; }
.scan-result.error { background: #fff5f5; border-color: #efcccc; color: var(--danger); }
.scan-result.error strong { color: var(--danger); }
.scan-result .span-all { grid-column: 1 / -1; }

.completion-banner {
    margin-top: 18px; padding: 18px 20px; border: 1px solid #bfe5d5; background: #eefaf5; border-radius: 12px;
    display: flex; justify-content: space-between; gap: 15px; align-items: center;
}
.completion-banner strong { color: #176e4e; font-size: 13px; }
.completion-banner a { color: var(--accent); font-size: 12px; font-weight: 800; }

.usage-camera { padding: 20px 20px 0; }
.usage-separator {
    margin: 24px 0 18px; border-top: 1px solid var(--line); position: relative; text-align: center;
}
.usage-separator span {
    position: relative; top: -9px; background: white; padding: 0 12px; color: var(--muted); font-size: 10px; font-weight: 800;
}
.camera-info { align-items: flex-start; line-height: 1.6; }

.scan-page-panel { padding: 20px; margin-bottom: 18px; }
.scan-search-form {
    max-width: 760px; margin: 18px auto 0; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end;
}
.scan-search-form label { display: flex; flex-direction: column; gap: 7px; }
.scan-search-form label span { color: #596579; font-size: 10px; font-weight: 800; }
.scan-search-form input {
    height: 46px; border: 1px solid #dbe0e8; border-radius: 8px; padding: 0 12px;
    font-family: Consolas, monospace; font-size: 15px; outline: none;
}
.scan-search-form .btn { height: 46px; }

@media (max-width: 1200px) {
    .request-summary-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
    .workflow-note { align-items: flex-start; }
    .request-items-head { align-items: flex-start; flex-direction: column; }
    .request-summary-grid { grid-template-columns: repeat(2, 1fr); }
    .scan-entry-grid { grid-template-columns: 1fr; }
    .scan-result, .scan-result.compact { grid-template-columns: 1fr 1fr; }
    .camera-frame { aspect-ratio: 4 / 3; }
    .camera-guide span { width: 84%; height: 30%; }
    .completion-banner { align-items: flex-start; flex-direction: column; }
    .scan-search-form { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .request-summary-grid { grid-template-columns: 1fr; }
    .scan-result, .scan-result.compact { grid-template-columns: 1fr; }
}
/* v0.4.3 - Salesforce-like inventory list */
.inventory-page-heading { margin-bottom: 14px; }

.sf-stock-list {
    background: #fff;
    border: 1px solid #d8dde6;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(15,27,45,.04);
    overflow: hidden;
}

.sf-list-toolbar {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 10px;
    border-bottom: 1px solid #d8dde6;
}

.sf-list-summary {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #667386;
    font-size: 11px;
    white-space: nowrap;
}
.sf-list-summary strong { color: #283548; }

.sf-list-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.sf-list-actions select {
    height: 32px;
    max-width: 150px;
    border: 1px solid #b7c0cd;
    border-radius: 4px;
    background: #fff;
    padding: 0 26px 0 8px;
    color: #364152;
    font-size: 10px;
}

.sf-search-box {
    width: 245px;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #9da8b7;
    border-radius: 4px;
    padding: 0 8px;
}
.sf-search-box span { color: #667386; font-size: 15px; }
.sf-search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    font-size: 11px;
    color: #263246;
}

.sf-icon-btn {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #b7c0cd;
    border-radius: 4px;
    background: #fff;
    color: #556274;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
}
.sf-icon-btn:hover { background: #f3f5f8; }

.sf-stock-table-wrap {
    width: 100%;
    overflow: auto;
    max-height: calc(100vh - 235px);
}

.sf-stock-table {
    width: 100%;
    min-width: 1450px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.sf-stock-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    height: 38px;
    padding: 0 9px;
    background: #f3f4f6;
    border-right: 1px solid #cfd5df;
    border-bottom: 1px solid #c6ccd6;
    color: #303b4d;
    text-align: left;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}
.sf-stock-table thead th span {
    float: right;
    color: #687588;
    font-size: 12px;
}

.sf-stock-table tbody td {
    height: 46px;
    padding: 0 9px;
    background: #fff;
    border-bottom: 1px solid #e3e7ed;
    color: #263246;
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sf-stock-table tbody tr:hover td { background: #f7f9fc; }
.sf-stock-table .sf-link-cell { color: #1574cc; font-weight: 600; }
.sf-stock-table .num { text-align: right; }
.stock-low-row td { background: #fffdf7; }
.sf-empty-row { height: 90px !important; text-align: center; color: #748096 !important; }

.sf-stock-table th:nth-child(1), .sf-stock-table td:nth-child(1) { width: 105px; }
.sf-stock-table th:nth-child(2), .sf-stock-table td:nth-child(2) { width: 245px; }
.sf-stock-table th:nth-child(3), .sf-stock-table td:nth-child(3) { width: 185px; }
.sf-stock-table th:nth-child(4), .sf-stock-table td:nth-child(4) { width: 185px; }
.sf-stock-table th:nth-child(5), .sf-stock-table td:nth-child(5) { width: 260px; }
.sf-stock-table th:nth-child(6), .sf-stock-table td:nth-child(6) { width: 245px; }
.sf-stock-table th:nth-child(7), .sf-stock-table td:nth-child(7) { width: 90px; }
.sf-stock-table th:nth-child(8), .sf-stock-table td:nth-child(8) { width: 115px; }
.sf-stock-table th:nth-child(9), .sf-stock-table td:nth-child(9) { width: 95px; }
.sf-stock-table th:nth-child(10), .sf-stock-table td:nth-child(10) { width: 125px; }

.sf-list-footer {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 10px;
    background: #fafbfc;
    border-top: 1px solid #d8dde6;
    color: #697589;
    font-size: 9.5px;
}
.sf-list-footer strong { color: #344054; }

@media (max-width: 1100px) {
    .sf-list-toolbar { align-items: flex-start; flex-direction: column; }
    .sf-list-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .sf-search-box { width: min(100%, 360px); }
}


/* v5.0 workflow policy */
.sf-rule-strip{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:13px 16px;margin:0 0 16px;border:1px solid #d7dde7;border-radius:9px;background:#fff;font-size:12px}.sf-rule-strip strong{font-size:13px}.sf-rule-strip.positive{border-left:4px solid #2d8a5f;background:#f6fbf8}.sf-rule-strip.negative{border-left:4px solid #c85b4b;background:#fff8f6}.rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 18px}.rule-card{background:#fff;border:1px solid #d8dde6;border-radius:10px;padding:18px}.rule-card.positive{border-top:4px solid #2d8a5f}.rule-card.negative{border-top:4px solid #c85b4b}.rule-card span{display:block;color:#758196;font-size:10px;font-weight:800;letter-spacing:.12em}.rule-card strong{display:block;margin:8px 0;font-size:15px}.rule-card p{margin:0;color:#637087;font-size:11px;line-height:1.6}.mapping-status{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:18px}.mapping-status>div{border:1px solid #e0e5ec;border-radius:8px;padding:15px}.mapping-status p{font-size:11px;color:#697589;word-break:break-word}.form-grid small{display:block;color:#758196;font-size:10px;margin-top:5px;line-height:1.4}
@media(max-width:900px){.rule-grid,.mapping-status{grid-template-columns:1fr}}


.sf-reference-target {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 6px;
    background: #eef4ff;
    color: #245fc7;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    font-weight: 700;
}


/* v5.2 workflow helpers */
.inline-input-button {
    display: flex;
    gap: 7px;
    align-items: stretch;
}
.inline-input-button input { flex: 1; min-width: 0; }
.inline-input-button .btn { flex: 0 0 auto; }

.hidden-scan-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.critical-action-note {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #f0d49a;
    border-radius: 9px;
    background: #fff9ed;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.critical-action-note strong {
    flex: 0 0 auto;
    color: #8d5c00;
    font-size: 11px;
}
.critical-action-note span {
    color: #715b34;
    font-size: 11px;
    line-height: 1.6;
}

.scan-result label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
}
.scan-result select {
    min-height: 38px;
    border: 1px solid #ccd4df;
    border-radius: 7px;
    padding: 0 10px;
    background: #fff;
}


/* v5.3 workflow + dashboard */
.metric-link {
    text-decoration: none;
    color: inherit;
    transition: transform .12s ease, box-shadow .12s ease;
}
.metric-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(20, 42, 74, .08);
}

.live-dot {
    display: inline-flex;
    align-items: center;
    margin-left: 7px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eaf8ef;
    color: #147a3f;
    font-size: 9px;
    font-weight: 800;
}

.workflow-overview {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin: 16px 0 20px;
    overflow-x: auto;
}
.workflow-box {
    min-width: 170px;
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}
.workflow-box:hover,
.workflow-box.active {
    border-color: #8eb4ef;
    background: #f6f9ff;
}
.workflow-box > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #edf2f8;
    font-weight: 800;
    font-size: 10px;
}
.workflow-box div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.workflow-box strong {
    font-size: 12px;
}
.workflow-box small {
    font-size: 9px;
    color: #768295;
}
.workflow-overview .workflow-arrow {
    align-self: center;
    color: #9aa6b7;
}

.mini-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 180px));
    gap: 10px;
    margin-bottom: 14px;
}
.mini-metric {
    padding: 12px 14px;
    border: 1px solid #dfe5ed;
    border-radius: 9px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mini-metric span {
    font-size: 10px;
    color: #6d7889;
}
.mini-metric strong {
    font-size: 20px;
}

.process-explainer {
    margin-top: 14px;
    padding: 14px 16px;
    display: flex;
    gap: 16px;
    border: 1px solid #dce4ef;
    border-radius: 9px;
    background: #f8fafc;
    font-size: 11px;
    line-height: 1.65;
}
.process-explainer strong {
    flex: 0 0 auto;
}
.process-explainer span {
    color: #5d6878;
}

.inline-form {
    display: inline;
}

.table-sub {
    display: block;
    margin-top: 3px;
    color: #8490a1;
    font-size: 9px;
}

.muted {
    color: #98a2b2;
}

.empty-cell {
    padding: 28px !important;
    text-align: center;
    color: #8a95a6;
}
.empty-card {
    padding: 24px 16px;
    color: #8a95a6;
    font-size: 11px;
}

.linked-work-card {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin: -3px 0 16px;
    border: 1px solid #dfe5ed;
    border-radius: 9px;
    overflow: hidden;
    background: #dfe5ed;
}
.linked-work-card > div {
    background: #fff;
    padding: 11px 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.linked-work-card span {
    color: #7d8898;
    font-size: 9px;
}
.linked-work-card strong {
    font-size: 10px;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .linked-work-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* v5.4 serial-only receipt + automatic PRF candidates */
.serial-only-rule {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #cfe0f6;
    border-radius: 9px;
    background: #f5f9ff;
    font-size: 11px;
    line-height: 1.65;
}
.serial-only-rule strong { flex: 0 0 auto; color: #245d9c; }
.serial-only-rule span { color: #526579; }
.critical-action-note.neutral { border-color: #d9e1ea; background: #f8fafc; }
.critical-action-note.neutral strong,
.critical-action-note.neutral span { color: #596677; }

.prf-candidate-box {
    display: grid;
    gap: 8px;
    max-height: 430px;
    overflow: auto;
    padding: 2px;
}
.prf-candidate {
    width: 100%;
    text-align: left;
    border: 1px solid #d9e1eb;
    border-radius: 9px;
    background: #fff;
    padding: 12px 13px;
    cursor: pointer;
}
.prf-candidate:hover { border-color: #96b7e8; background: #f8fbff; }
.prf-candidate.selected {
    border-color: #4d88d8;
    box-shadow: inset 0 0 0 1px #4d88d8;
    background: #f5f9ff;
}
.prf-candidate.recommended { border-left: 4px solid #4d88d8; }
.prf-candidate-top {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}
.prf-candidate-top strong { font-size: 12px; }
.recommended-badge {
    padding: 2px 6px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #2d69b7;
    font-size: 9px;
    font-weight: 800;
}
.prf-candidate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px 12px;
    color: #7a8595;
    font-size: 9px;
}
.prf-candidate-grid b { color: #3f4958; font-weight: 700; overflow-wrap: anywhere; }
.error-text { color: #b33a3a; }
@media (max-width: 980px) {
    .prf-candidate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* v5.5 branch scoped request + searchable part picker */
.branch-scope-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}
.branch-scope-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.branch-scope-grid label > span {
    font-size: 10px;
    font-weight: 700;
}
.branch-scope-grid small {
    color: #818d9d;
    font-size: 9px;
}

.stock-search-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 12px 0 10px;
}
.stock-search-input {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid #cfd8e4;
    border-radius: 8px;
    background: #fff;
}
.stock-search-input > span {
    color: #728093;
    font-size: 16px;
}
.stock-search-input input {
    width: 100%;
    min-height: 40px;
    border: 0 !important;
    outline: 0;
    background: transparent;
}
.stock-search-count {
    display: flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
}
.stock-search-count strong {
    font-size: 18px;
}
.stock-search-count span {
    color: #7e8998;
    font-size: 9px;
}

.stock-picker-wrap {
    max-height: 390px;
    overflow: auto;
    border: 1px solid #e0e5ec;
    border-radius: 8px;
}
.stock-picker-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f4f6f9;
}
.stock-picker-table tbody tr:hover {
    background: #f8fbff;
}

.basket-head {
    margin-top: 22px;
}
.branch-access-note {
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid #dfe6ef;
    border-radius: 9px;
    background: #f8fafc;
    display: flex;
    gap: 12px;
    font-size: 10px;
    line-height: 1.65;
}
.branch-access-note strong {
    flex: 0 0 auto;
}
.branch-access-note span {
    color: #677385;
}

.user-role-mini {
    display: block;
    color: #7f8a99;
    font-size: 8px;
    line-height: 1.2;
}

@media (max-width: 980px) {
    .branch-scope-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .branch-scope-grid {
        grid-template-columns: 1fr;
    }
    .stock-search-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .stock-search-input {
        max-width: none;
    }
}


/* v5.6 Stock__c <-> Serial exact matching */
.inbound-stock-picker {
    margin-top: 14px;
}
.selected-stock-card {
    margin: 13px 0 20px;
    padding: 13px 15px;
    border: 1px dashed #c9d3df;
    border-radius: 9px;
    background: #fafbfd;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.selected-stock-card > span {
    color: #7e8999;
    font-size: 9px;
    font-weight: 700;
}
.selected-stock-card > strong {
    font-size: 12px;
}
.selected-stock-card > small {
    color: #7a8695;
    font-size: 9px;
    overflow-wrap: anywhere;
}
.selected-stock-card.selected {
    border-style: solid;
    border-color: #8fb2e3;
    background: #f5f9ff;
}
.stock-picker-table tr.selected-row {
    background: #f2f7ff;
}
.inbound-serial-head {
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid #e4e8ee;
}


/* v5.7 ERP-style outbound request */
.erp-condition-panel,
.erp-search-panel,
.request-basket-panel {
    margin-bottom: 15px;
}

.erp-condition-grid,
.erp-filter-grid {
    display: grid;
    gap: 10px 12px;
    padding: 2px 0 4px;
}
.erp-condition-grid.header-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.erp-filter-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 14px;
    border: 1px solid #dde4ed;
    background: #f8fafc;
}
.erp-condition-grid label,
.erp-filter-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.erp-condition-grid label > span,
.erp-filter-grid label > span {
    font-size: 9px;
    font-weight: 700;
    color: #536071;
}

.erp-filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #dde4ed;
    border-top: 0;
    background: #fff;
}
.erp-filter-actions > div:last-child {
    display: flex;
    gap: 7px;
}
.filter-help {
    color: #7a8696;
    font-size: 9px;
}

.erp-result-summary {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 9px;
    color: #7a8696;
}
.erp-result-summary strong {
    font-size: 18px;
    color: #253247;
}

.erp-grid-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    margin-top: 12px;
    padding: 7px 10px;
    border: 1px solid #dfe5ec;
    border-bottom: 0;
    background: #f7f9fb;
}
.erp-grid-toolbar > div {
    display: flex;
    align-items: center;
    gap: 9px;
}
.erp-check-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
}
.erp-selected-summary {
    color: #6f7c8e;
    font-size: 9px;
}
.erp-selected-summary strong {
    color: #273449;
    font-size: 14px;
}

.erp-stock-grid-wrap {
    max-height: 520px;
    overflow: auto;
    border: 1px solid #dfe5ec;
}
.erp-stock-grid {
    min-width: 1050px;
}
.erp-stock-grid thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: 8px;
    padding-bottom: 8px;
    white-space: nowrap;
    background: #eef1f5;
    border-bottom: 1px solid #cfd6e0;
}
.erp-stock-grid tbody td {
    padding-top: 7px;
    padding-bottom: 7px;
}
.erp-stock-grid tbody tr:hover {
    background: #f7faff;
}
.erp-stock-grid tbody tr.grid-selected-row {
    background: #edf5ff;
}

.check-col {
    width: 34px;
    text-align: center;
}
.num-col {
    text-align: right !important;
    white-space: nowrap;
}
.grid-request-qty,
.basket-qty {
    width: 78px;
    min-height: 30px !important;
    padding: 3px 7px !important;
    text-align: right;
}

.sort-head {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.sort-mark {
    margin-left: 3px;
    color: #8793a3;
    font-size: 8px;
}

.erp-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 42px;
    padding: 6px 9px;
    border: 1px solid #dfe5ec;
    border-top: 0;
    background: #fafbfd;
    color: #707c8e;
    font-size: 9px;
}
.erp-page-buttons {
    display: flex;
    gap: 5px;
}
.erp-page-buttons button:disabled {
    opacity: .4;
    cursor: default;
}

.request-basket-panel .request-edit-table {
    max-height: 360px;
    overflow: auto;
}
.request-remark {
    margin-top: 15px;
}

@media (max-width: 1150px) {
    .erp-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 850px) {
    .erp-condition-grid.header-grid,
    .erp-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .erp-condition-grid.header-grid,
    .erp-filter-grid {
        grid-template-columns: 1fr;
    }
    .erp-filter-actions,
    .erp-grid-toolbar,
    .erp-pagination {
        align-items: stretch;
        flex-direction: column;
    }
}


/* v5.8 simple searchable part selection */
.simple-part-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 10px;
    padding: 8px 10px;
    border: 1px solid #d8e0e9;
    border-radius: 8px;
    background: #f9fbfd;
}
.simple-part-search > span {
    color: #708093;
    font-size: 16px;
}
.simple-part-search input {
    flex: 1;
    min-height: 36px;
    border: 0 !important;
    background: transparent;
    outline: 0;
}

.request-item-row .part-select {
    width: 100%;
    min-width: 420px;
}
.selected-part-detail {
    margin-top: 4px;
    color: #7b8797;
    font-size: 9px;
}
.request-row-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 9px;
}
.request-item-row .request-qty {
    width: 90px;
    text-align: right;
}

@media (max-width: 850px) {
    .request-item-row .part-select {
        min-width: 320px;
    }
}


/* v5.9 searchable select inside the Part field */
.searchable-request-table {
    overflow: visible;
}
.searchable-request-table table {
    overflow: visible;
}
.searchable-request-table tbody,
.searchable-request-table tr,
.searchable-request-table td {
    overflow: visible;
}

.part-combo-cell {
    position: relative;
    z-index: 3;
}
.request-item-row:has(.part-combo.open) {
    position: relative;
    z-index: 20;
}

.part-combo {
    position: relative;
    width: 100%;
}
.part-combo-control {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 430px;
    min-height: 42px;
    border: 1px solid #d0d9e5;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.part-combo.open .part-combo-control,
.part-combo-control:focus-within {
    border-color: #7da5dc;
    box-shadow: 0 0 0 2px rgba(74, 126, 197, .10);
}
.part-combo-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 40px !important;
    padding: 8px 11px !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 11px;
}
.part-combo-toggle {
    flex: 0 0 38px;
    border: 0;
    border-left: 1px solid #e2e7ee;
    background: #fff;
    color: #45556a;
    cursor: pointer;
    font-size: 16px;
}
.part-combo-toggle:hover {
    background: #f5f7fa;
}

.part-combo-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1000;
    max-height: 310px;
    overflow-y: auto;
    border: 1px solid #cfd8e4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(34, 51, 76, .16);
}
.part-combo.open .part-combo-menu {
    display: block;
}

.part-combo-option {
    display: block;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    background: #fff;
    text-align: left;
    cursor: pointer;
}
.part-combo-option:last-child {
    border-bottom: 0;
}
.part-combo-option:hover,
.part-combo-option.keyboard-active {
    background: #edf5ff;
}

.part-option-main {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 4px;
}
.part-option-main strong {
    min-width: 105px;
    color: #24364f;
    font-size: 11px;
}
.part-option-main span {
    color: #38475b;
    font-size: 10px;
}
.part-option-sub {
    display: flex;
    gap: 12px;
    color: #8490a0;
    font-size: 9px;
}
.part-option-sub b {
    color: #46556a;
}
.part-combo-empty {
    padding: 18px 12px;
    color: #8792a1;
    text-align: center;
    font-size: 10px;
}

@media (max-width: 850px) {
    .part-combo-control {
        min-width: 330px;
    }
}
