:is(#externalMaster,#outsourcingInspection,#outsourcingHistory) .xem-wide{min-width:260px;flex:2}
:is(#externalMaster,#outsourcingInspection,#outsourcingHistory) .xem-checks{display:flex;gap:10px 18px;flex-wrap:wrap;padding:13px 0}
:is(#externalMaster,#outsourcingInspection,#outsourcingHistory) .xem-checks label{display:flex;align-items:center;gap:7px;color:#254b70;font-size:12px;margin:0}
:is(#externalMaster,#outsourcingInspection,#outsourcingHistory) .xem-checks input[type=checkbox],#outsourcingInspection .xem-defect input[type=checkbox]{width:17px;min-width:17px;height:17px;margin:0;accent-color:#2563eb}
#outsourcingInspection .xem-state{border:1px solid #cbd9e8;border-radius:5px;background:#f5f8fc;color:#315578;font-size:14px;font-weight:700;padding:10px 13px;min-height:38px}
#outsourcingInspection .xem-state[data-state=HOLD]{background:#fff1ed;border-color:#e6beb0;color:#a44c33}
#outsourcingInspection .xem-state[data-state=정상입고]{background:#f0f8f4;border-color:#bbdacb;color:#27674b}
#outsourcingInspection .xem-defect{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}
#outsourcingInspection .xem-defect label{display:flex;align-items:center;gap:7px;white-space:nowrap;color:#754e3f;font-size:12px}
#outsourcingInspection .xem-defect>input{flex:1;min-width:240px}
#externalMaster #emManagementPolicy .form{margin:12px 0}
#externalMaster #emManagementPolicy h3{margin:0 0 10px}
#externalMaster #emManagementPolicy>p,#externalMaster #emManagementPolicy details p{line-height:1.8}
#externalMaster #emManagementPolicy form>label{display:block;margin:10px 0}
#externalMaster #emManagementPolicy form>label input{display:block;width:100%;margin-top:6px}
#externalMaster #emManagementPolicy details{margin-top:14px;border-top:1px solid #dbe5ef;padding-top:10px;font-size:12px}
#externalMaster .emc-customer-sample{min-width:85px;width:85px}
#externalMaster .xem-policy-result{font-size:12px;color:#8b4c32;line-height:1.8;margin:8px 0;white-space:pre-wrap}
#oiHistory td small{display:block;font-size:10px;line-height:1.7;color:#657d94}
#outsourcingHistory .xem-record{padding:12px;border:1px solid #d4e1ee;background:#f7faff;border-radius:5px;margin:10px 0;font-size:12px;line-height:1.8}
#outsourcingHistory .xem-record p{margin:4px 0}
/* Same paper-document viewing pattern as the mold grading standard. */
/* Same paper-document viewing pattern as the mold grading standard. */
html body dialog#externalManagementStandardDialog{position:fixed!important;inset:auto!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;margin:0!important;width:min(1120px,96vw)!important;max-width:96vw!important;height:94vh!important;height:94dvh!important;max-height:94vh!important;max-height:94dvh!important;padding:0!important;border:1px solid #cbd5e1;border-radius:16px;color:#172033;background:#eef2f6;box-shadow:0 24px 80px #0f172a4d;overflow:hidden!important}
#externalManagementStandardDialog[open]{display:flex;flex-direction:column}
#externalManagementStandardDialog::backdrop{background:#0f172ab3}
#externalManagementStandardDialog .xem-standard-toolbar{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:14px 22px;border-bottom:1px solid #d8e0ea;background:#fff}
#externalManagementStandardDialog .xem-standard-toolbar h2{margin:0;font-size:19px;line-height:1.4}
#externalManagementStandardDialog .xem-standard-actions{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto}
#externalManagementStandardDialog :is(.xem-standard-action,.xem-standard-close){display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:40px;padding:7px 10px;border:1px solid #cbd5e1;border-radius:7px;background:#f8fafc;color:#243c58;font:inherit;font-size:14px;text-decoration:none;white-space:nowrap;cursor:pointer}
#externalManagementStandardDialog .xem-standard-close{font-weight:700}
#externalManagementStandardDialog .xem-standard-close span{font-size:24px;line-height:1}
#externalManagementStandardDialog :focus-visible{outline:3px solid #2563eb;outline-offset:2px}
#externalManagementStandardDialog .xem-standard-scroll{flex:1 1 auto;min-height:0;overflow:auto;padding:24px;overscroll-behavior:contain}
#externalManagementStandardDialog .xem-standard-paper{padding:28px;border:1px solid #d8e0ea;border-radius:4px;background:#fff;box-shadow:0 4px 18px #0f172a0a}
#externalManagementStandardDialog .xem-standard-document-header{display:grid;grid-template-columns:180px minmax(0,1fr) 235px;align-items:center;gap:18px;padding-bottom:23px;border-bottom:3px solid #1e3a5f;margin-bottom:20px}
#externalManagementStandardDialog .xem-standard-company{display:flex;flex-direction:column;gap:5px;color:#1d4ed8}
#externalManagementStandardDialog .xem-standard-company strong{font-size:28px;font-weight:900}
#externalManagementStandardDialog .xem-standard-company small{font-size:12px}
#externalManagementStandardDialog .xem-standard-company span{font-size:17px;font-weight:700;color:#172033}
#externalManagementStandardDialog .xem-standard-document-header h2{margin:0;font-size:25px;line-height:1.5;text-align:center;word-break:keep-all}
#externalManagementStandardDialog .xem-standard-meta{margin-bottom:26px;color:#475569}
#externalManagementStandardDialog .xem-standard-paper section+section{margin-top:26px}
#externalManagementStandardDialog .xem-standard-paper h3{margin:0 0 12px;color:#1e3a5f;font-size:19px;line-height:1.5}
#externalManagementStandardDialog .xem-standard-paper p{margin:8px 0;font-size:15px;line-height:1.9;word-break:keep-all}
#externalManagementStandardDialog .xem-standard-table-scroll{overflow-x:auto;margin:12px 0}
#externalManagementStandardDialog .xem-standard-paper table{width:100%;min-width:620px;border-collapse:collapse;table-layout:fixed;font-size:14px;line-height:1.7;color:#172033}
#externalManagementStandardDialog .xem-standard-paper :is(th,td){padding:10px 12px;border:1px solid #cbd5e1;background:#fff;vertical-align:middle;white-space:normal;word-break:keep-all;overflow-wrap:break-word}
#externalManagementStandardDialog .xem-standard-paper thead th{background:#edf2f7;text-align:center}
#externalManagementStandardDialog .xem-standard-paper .xem-standard-approval{min-width:0;font-size:13px}
#externalManagementStandardDialog .xem-standard-approval caption{margin-bottom:5px;color:#475569;font-size:12px}
#externalManagementStandardDialog .xem-standard-paper .xem-standard-approval :is(th,td){height:30px;padding:4px;text-align:center}
#externalManagementStandardDialog .xem-standard-paper .xem-standard-approval td{height:44px}
#externalManagementStandardDialog .xem-standard-paper .xem-standard-source-note{margin-top:24px;padding-top:14px;border-top:1px solid #d8e0ea;color:#64748b;font-size:12px}
@media(max-width:900px){#externalManagementStandardDialog .xem-standard-document-header{grid-template-columns:1fr 235px}#externalManagementStandardDialog .xem-standard-document-header h2{grid-column:1/-1;grid-row:1}}
@media(max-width:600px){html body dialog#externalManagementStandardDialog{width:98vw!important;max-width:98vw!important;height:96vh!important;height:96dvh!important;max-height:96vh!important;max-height:96dvh!important;border-radius:10px}#externalManagementStandardDialog .xem-standard-toolbar{padding:10px 12px}#externalManagementStandardDialog .xem-standard-toolbar h2{font-size:16px}#externalManagementStandardDialog .xem-standard-actions{margin-left:0}#externalManagementStandardDialog .xem-standard-scroll{padding:10px}#externalManagementStandardDialog .xem-standard-paper{padding:18px 12px}#externalManagementStandardDialog .xem-standard-document-header{grid-template-columns:1fr;gap:16px}#externalManagementStandardDialog .xem-standard-document-header h2{font-size:23px}#externalManagementStandardDialog .xem-standard-company{align-items:center}#externalManagementStandardDialog .xem-standard-paper .xem-standard-approval{width:235px;justify-self:center}}
