*{box-sizing:border-box}body{margin:0;background:#edf1ef;color:#182820;font:15px system-ui,sans-serif}header{background:#142d23;color:white;padding:18px max(24px,5vw);display:flex;align-items:center;gap:16px}header strong{font-size:24px;letter-spacing:.08em}#logout{margin-left:auto}main{max-width:1450px;margin:auto;padding:12px 24px 50px}.card{background:white;border:1px solid #dce4dd;border-radius:12px;margin:0 0 16px;padding:20px}#login{max-width:420px;margin:7vh auto}h1,h2,h3{margin-top:0}label{display:inline-flex;flex-direction:column;gap:5px;margin:4px 10px 9px 0}#login label{display:flex}input,select,textarea,button{font:inherit;border:1px solid #acbdb3;border-radius:6px;padding:7px;color:inherit;background:white}button{cursor:pointer;font-weight:650}button:hover,a:hover{color:#0d6b42}#saveProof,#login button{background:#155539;color:white}.warning,#notice{white-space:pre-wrap;color:#943c22}#notice{position:sticky;top:0;background:#edf1ef;z-index:5;padding:6px}#notice:empty{display:none}.mu-grid{overflow:auto}.mu-preview-stage svg{max-width:100%;height:365px}article{border-top:1px solid #dce4dd;margin-top:12px;padding:13px 0}article a,article button{margin-right:10px}summary{cursor:pointer;font-weight:700}#admin form{margin-top:12px}[hidden]{display:none!important}
header{position:sticky;top:0;z-index:10;min-height:72px;padding-block:12px}#logout{white-space:nowrap;flex-shrink:0}#notice{position:relative;top:auto}#editingTitle{scroll-margin-top:90px}.workspace-tabs{display:flex;gap:8px;margin-bottom:16px}.workspace-tabs button[aria-pressed="true"],.workspace-tabs button[aria-current="page"]{background:#155539;color:white}

#logout,#logout:hover,#logout:focus-visible{color:#142d23;background:#fff}
#logout:hover{background:#e7f0eb}
#muDetails .mu-composition{display:flex;width:100%;margin-inline:0}
.mu-composition textarea{display:block;width:100%;min-height:100px;resize:vertical}

#pendingPanel,#confirmedPanel{scroll-margin-top:88px}.workspace-tabs{flex-wrap:wrap}

#pendingActions{overflow-x:auto}
.pending-proof{min-width:740px;margin:0;padding:9px 8px}
.pending-line{display:grid;grid-template-columns:minmax(220px,1fr) 85px 135px 90px 155px;align-items:center;gap:10px}
.pending-line strong{overflow-wrap:anywhere}.pending-line a,.pending-line button{margin:0}.pending-highlight{background:#eaf4ec}


#history{overflow-x:auto}
.pending-line{grid-template-columns:minmax(220px,1fr) 75px 125px 85px 150px 54px}
.confirmed-line{display:grid;grid-template-columns:minmax(220px,1fr) 85px 100px 110px 54px;align-items:center;gap:10px}
.confirmed-line strong{overflow-wrap:anywhere}


.confirmed-line{grid-template-columns:minmax(220px,1fr) 85px 100px 125px 74px}
.confirmed-line button{white-space:nowrap}


#pendingActions .pending-proof{min-width:810px}
.pending-line{grid-template-columns:minmax(220px,1fr) 75px 145px 95px 165px 74px}
.pending-line button,.pending-line a{white-space:nowrap}

.preview-actions{margin-top:16px}.preview-actions #muDraftStatus:empty{display:none}

#proofError{border:1px solid #acbdb3;border-radius:12px;padding:22px;max-width:min(580px,calc(100vw - 32px));max-height:80vh;color:#182820}
#proofError::backdrop{background:#142d2370}
#proofError li{margin-block:6px}

#signedInCompany{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e2eee7}
.pending-line .approval-date{text-align:center;white-space:nowrap}

#approvedSection{margin-top:28px;padding-top:22px;border-top:1px solid #dce4dd}
#approvedProofs{overflow-x:auto}
#approvedProofs .pending-proof{min-width:810px}


.preview-actions{display:flex;flex-direction:column;align-items:center;margin-top:22px}
.preview-actions #saveProof,.preview-actions #saveTagProof{width:min(100%,440px);min-height:62px;padding:12px 20px;font-size:21px;font-weight:800;border-radius:10px}
#deletedProofs{overflow-x:auto}
.deleted-line{display:grid;grid-template-columns:minmax(220px,1fr) 110px 175px 108px 74px;align-items:center;gap:10px}
.deleted-line strong{overflow-wrap:anywhere}
.deleted-line button,.deleted-line span{white-space:nowrap}

.vendor-final-line{display:grid;grid-template-columns:minmax(220px,1fr) 75px 145px 95px 165px 74px;gap:10px;align-items:center}.vendor-final-line span:last-child{grid-column:5;text-align:center;font-weight:700;color:#155539;white-space:nowrap}
#printedProofs{overflow-x:auto}
.printed-date-group+.printed-date-group{margin-top:24px}.printed-date-group h2{font-size:16px;margin:16px 0 8px;color:#155539}

#inspectionDialog{width:min(920px,calc(100% - 32px));max-height:90vh;border:1px solid #acbdb3;border-radius:14px;padding:24px;color:#182820}
#inspectionDialog::backdrop{background:#142d2370}
.inspection-close{float:right;margin:0 0 12px 12px}
.inspection-compare{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.inspection-compare section{min-width:0;padding:12px;background:#f4f6f4;border-radius:8px}
.inspection-compare img{display:block;width:auto;max-width:100%;max-height:520px;margin:auto}
.inspection-photo{position:relative;width:fit-content;max-width:100%;margin:auto}
.inspection-marker{position:absolute;display:block;min-width:24px;min-height:18px;border:2px solid #be391f;color:#842c1b;font-weight:700;background:#ffebdd44;pointer-events:none}
.inspection-issue,.inspection-match{margin:8px 0}.inspection-issue{color:#943c22}.inspection-match{color:#155539}
.inspection-issue span,.inspection-match span{display:block;margin-top:4px}
@media(max-width:640px){.inspection-compare{grid-template-columns:1fr}}

.awaiting-print-line{grid-template-columns:minmax(180px,1fr) 74px 88px 116px 101px 68px}
.printed-action-line{grid-template-columns:minmax(180px,1fr) 74px 88px 116px 121px 68px}

.inspection-compare section:has(.inspection-marker){padding-right:118px}
.inspection-marker{z-index:1}
.inspection-marker-label{position:absolute;left:calc(100% + 5px);top:50%;transform:translateY(-50%);padding:3px 5px;border:1px solid #be391f;border-radius:4px;background:#fff;color:#a22c15;font-size:12px;line-height:1.3;font-weight:800;max-width:100px;width:max-content}

#vendorSignup{max-width:760px;margin:30px auto}#vendorSignupLink{text-align:center}#vendorSignup fieldset{border:1px solid #dce4dd;margin:16px 0;padding:16px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}#vendorSignup input{width:100%;min-width:0}#vendorSignup legend{font-weight:700}

.brand-tag-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 16px; align-items: start; }
.brand-tag-care { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.brand-tag-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 1fr); gap: 10px; margin-bottom: 16px; }
#brandTagFields .brand-tag-inputs label { display: block; width: 100%; margin: 0 0 8px; }
#brandTagFields .brand-tag-inputs label:last-child { margin-bottom: 0; }
.brand-tag-inputs input, .brand-tag-material textarea, .brand-tag-care textarea { display: block; width: 100%; box-sizing: border-box; }
.brand-tag-care textarea { flex: 1; min-height: 0; resize: none; }
.brand-tag-material textarea { resize: vertical; }
@media (max-width: 580px) {
  .brand-tag-details { grid-template-columns: minmax(0, 1fr); }
}

.brand-tag-preview { position: sticky; top: 12px; }
.brand-tag-preview svg { max-width: 100%; height: auto; }
@media (max-width: 980px) {
  .brand-tag-layout { grid-template-columns: minmax(0, 1fr); }
  .brand-tag-preview { position: static; }
}

#brandTagFields .brand-tag-quantity { display: block; width: 100%; margin: 0; }
@media (min-width: 581px) {
  .brand-tag-care { grid-area: 1 / 2; }
}

.brand-tag-actions { grid-column: 1 / -1; }

.preview-actions #saveTagProof { background: #176345; border-color: #176345; color: #fff; }
.preview-actions #saveTagProof:hover { background: #104d35; border-color: #104d35; }

.brand-tag-care-notes, .brand-tag-seller { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.brand-tag-care-notes { flex: 1; }
.brand-tag-seller input { width: 100%; box-sizing: border-box; }

#vendorManagementList { margin-top: 18px; }
#vendorManagementList input[type="search"] { width: min(100%, 430px); }
.vendor-list-row { border-block-start: 1px solid #dce4de; padding: 10px 0; }
.vendor-list-row summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr) minmax(0, 1.25fr); gap: 12px; cursor: pointer; overflow-wrap: anywhere; }
.vendor-list-row summary::after { content: "상세 열기"; font-size: .85em; color: #176345; }
.vendor-list-row[open] summary::after { content: "상세 닫기"; }
.vendor-list-row form { margin-block: 12px; }
@media(max-width: 650px) { .vendor-list-row summary { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }

#brandTagFields .brand-tag-kc input { display:inline-block; width:auto; margin:0 6px 0 0; }

.mu-preview-pair { display:flex; align-items:flex-start; gap:12px; }
.mu-preview-pair > section { flex:1 1 0; min-width:0; }
.mu-preview-pair h3 { margin:0 0 8px; }
.mu-preview-pair .mu-preview-stage { padding:12px; }
.mu-preview-pair .mu-preview-stage svg { display:block; width:100%; max-width:180px; height:auto; }
#muCareNoticeField { width:100%; margin-top:18px; }
#muCareNoticeField textarea { display:block; width:100%; box-sizing:border-box; }
#muCareNoticeField[hidden],#muCareNoticePanel[hidden] { display:none; }

.mu-edit-column { min-width:0; }
@media (min-width: 901px) {
  .mu-workspace { grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr); align-items:start; }
  .mu-sticky-preview { position:sticky; top:88px; max-height:calc(100dvh - 100px); overflow:auto; }
  .mu-sticky-preview .mu-preview-pair svg { width:auto; max-width:100%; max-height:min(47dvh,430px); }
}
@media (max-width: 900px) {
  .mu-workspace { grid-template-columns:minmax(0,1fr); }
}

.mu-common-actions { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:8px; margin-top:12px; }

.star-tag-inputs label { display:flex; flex-direction:column; gap:4px; margin-bottom:8px; }
.star-tag-variant { display:grid; grid-template-columns:auto minmax(0,1fr) minmax(0,1.8fr) minmax(0,.7fr) auto; align-items:center; gap:8px; }
.star-tag-variant input:not([type="checkbox"]) { width:100%; box-sizing:border-box; }
#starTagPreview svg { display:block; width:min(100%,180px); height:auto; margin:0 auto; }
.preview-actions #saveStarTagProof { width:100%; min-height:62px; font-size:21px; font-weight:800; background:#176345; color:white; }
@media(max-width:550px){.star-tag-variant{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

.star-tag-quick { margin-bottom:20px; }
.star-tag-quick h3 { margin:0 0 12px; }
.star-tag-quick .star-tag-variant { margin:6px 0; }
.star-tag-quick .star-tag-variant label { display:flex; flex-direction:column; min-width:0; }
.star-tag-excel textarea { display:block; width:100%; box-sizing:border-box; }
.star-variant-actions { display:flex; gap:6px; flex-wrap:wrap; }

.star-tag-variant.star-row-active { background:#eaf5ee; outline:1px solid #8bb9a1; border-radius:6px; }
.star-row-edit[aria-pressed="true"] { color:#fff; background:#176345; border-color:#176345; }

#muDetails .linecircle-mix { display:block; width:100%; }
#muDetails .linecircle-mix textarea { display:block; width:100%; min-height:180px; resize:vertical; box-sizing:border-box; }
#muDetails .linecircle-year { display:block; margin-top:16px; }
#muDetails .linecircle-mix { grid-column:1 / -1; max-width:none; flex:0 0 100%; } #muDetails .linecircle-mix textarea { max-width:none; }

.design-type-nav { margin-bottom:12px; }
.design-type-link { display:inline-flex; padding:11px 22px; border:1px solid #b7c9bd; border-radius:6px; color:#176345; background:#fff; text-decoration:none; font-weight:700; }
.design-type-link[aria-current="page"] { color:#fff; background:#176345; border-color:#176345; }

.mu-excel-drop { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:120px; margin:18px 0; padding:22px; border:2px dashed #8aaf9a; border-radius:10px; background:#f4faf6; color:#225d40; cursor:pointer; text-align:center; }
.mu-excel-drop span { font-size:14px; color:#526d5c; }
.mu-excel-drop:hover,.mu-excel-dragging .mu-excel-drop { background:#e1f2e7; border-color:#176345; }
.mu-excel-dragging { outline:3px solid #176345; outline-offset:3px; }

.design-type-link[hidden] { display:none; }

.vendor-management-layout { display:grid; grid-template-columns:minmax(260px,.8fr) minmax(0,1.4fr); gap:24px; align-items:start; }
.vendor-directory { display:grid; gap:12px; min-width:0; }
.vendor-directory-row { display:flex; flex-direction:column; align-items:flex-start; gap:6px; width:100%; margin-bottom:8px; padding:14px; text-align:left; border:1px solid #d6e2da; border-radius:8px; background:white; color:#223d30; }
.vendor-directory-row[aria-pressed="true"] { border-color:#176345; background:#eaf5ee; box-shadow:inset 4px 0 #176345; }
.vendor-directory-row small { color:#587060; overflow-wrap:anywhere; }
.vendor-management-detail { min-width:0; border:1px solid #d6e2da; border-radius:10px; padding:18px; background:#fafcfb; position:sticky; top:18px; }
.vendor-management-detail fieldset { min-width:0; }
.vendor-selected-brands { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0 20px; }
.vendor-selected-brands strong { flex-basis:100%; }
.vendor-selected-brands button { border-radius:20px; padding:6px 12px; background:#e1f0e6; color:#176345; }
.vendor-brand-picker { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:10px; max-height:360px; overflow-y:auto; margin:14px 0; }
.vendor-brand-picker label { display:flex; align-items:center; gap:9px; padding:12px; border:1px solid #d6e2da; border-radius:7px; background:white; margin:0; }
.vendor-brand-picker input[type="checkbox"] { width:18px; height:18px; margin:0; flex:none; }
@media(max-width:800px) { .vendor-management-layout { grid-template-columns:1fr; } .vendor-management-detail { position:static; } }

.print-loss-choice { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; margin:0; font-size:13px; color:#176345; } .print-loss-choice input { width:17px; height:17px; margin:0; }

.notice-choice-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:10px 0; }
.notice-choice-toolbar[hidden],.notice-picker-page[hidden] { display:none; }
.notice-choice-toolbar button { background:#176345; color:white; border:0; padding:12px 20px; border-radius:6px; font-weight:700; }
#muNoticeSelectedName { font-size:13px; color:#52685a; }
.notice-picker-page { max-width:1440px; margin:auto; padding:30px 18px 60px; }
.notice-picker-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:28px; }
.notice-picker-heading h1 { font-size:32px; margin:8px 0 14px; }
.notice-picker-heading p { line-height:1.7; color:#56675d; }
.notice-picker-kicker { font-size:11px; font-weight:700; letter-spacing:.15em; }
.notice-picker-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.notice-sample-card { position:relative; background:#fff; border:1px solid #dce3dc; border-radius:12px; padding:18px; }
.notice-sample-card.is-selected { border:2px solid #176345; }
.notice-sample-card>span { position:absolute; top:24px; left:24px; background:#176345; color:#fff; padding:5px 10px; border-radius:20px; font-size:12px; z-index:1; }
.notice-paper-stage { height:340px; display:flex; justify-content:center; align-items:center; padding:20px; background:#eeeae1; border-radius:7px; overflow:hidden; }
.notice-paper-stage svg { display:block; height:100%; width:auto; max-width:100%; background:white; box-shadow:3px 7px 15px #453a2426; }
.notice-sample-card h2 { font-size:18px; margin:20px 0 8px; }
.notice-sample-card>p { font-size:12px; color:#66766c; }
.notice-sample-select { width:100%; margin-top:12px; padding:12px; background:#176345; border:0; border-radius:6px; color:white; font-weight:700; }
@media(max-width:1000px){.notice-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:540px){.notice-picker-heading{flex-direction:column;}.notice-picker-grid{gap:12px;}.notice-sample-card{padding:12px;}.notice-paper-stage{height:275px;padding:12px;}.notice-sample-card h2{font-size:16px;}}

dialog.notice-picker-page { width:min(1140px,92vw); max-width:92vw; max-height:86vh; box-sizing:border-box; overflow:auto; border:1px solid #c8d6cc; border-radius:14px; background:#f1f4ef; padding:28px; }
dialog.notice-picker-page::backdrop { background:rgba(20,35,27,.36); }
.notice-picker-heading { margin-bottom:22px; }
.notice-picker-heading h1 { font-size:27px; }
.notice-paper-stage { width:100%; border:0; cursor:zoom-in; }
.notice-paper-stage:hover { background:#e3ddd1; }
.notice-enlarge-button { width:100%; padding:10px; border:1px solid #abc4b5; color:#176345; background:#fff; border-radius:6px; margin-top:10px; }
#noticeEnlarged { width:min(900px,92vw); max-width:92vw; max-height:90vh; overflow:auto; box-sizing:border-box; padding:24px; border:1px solid #c8d6cc; border-radius:12px; background:#f7f7f2; }
#noticeEnlarged::backdrop { background:rgba(15,26,19,.48); }
.notice-enlarged-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:20px; }
.notice-enlarged-heading h2 { margin:0; font-size:24px; }
.notice-enlarged-content { display:grid; grid-template-columns:minmax(230px,.85fr) minmax(0,1fr); gap:30px; align-items:start; }
#noticeEnlargedArt { background:#eae5da; padding:20px; display:flex; justify-content:center; }
#noticeEnlargedArt svg { display:block; width:100%; max-width:280px; height:auto; background:#fff; box-shadow:2px 5px 15px #30291520; }
#noticeEnlargedText { font-family:inherit; font-size:15px; line-height:1.8; white-space:pre-wrap; word-break:keep-all; margin:18px 0; }
.notice-enlarged-content h3 { margin:8px 0; }.notice-enlarged-content p { font-size:13px; color:#5c7162; }
.notice-enlarged-actions { position:sticky; bottom:-24px; padding:16px 0; background:#f7f7f2; border-top:1px solid #d5dfd6; text-align:right; }
#applyNoticeEnlarged { background:#176345; color:#fff; border:0; border-radius:6px; padding:13px 28px; font-weight:700; }
@media(max-width:650px){dialog.notice-picker-page{padding:16px;}.notice-enlarged-content{grid-template-columns:1fr;}#noticeEnlargedArt svg{max-width:240px;}}

#noticeEnlargedText {display:block;width:100%;min-height:420px;resize:vertical;padding:14px;font-family:inherit;font-size:15px;line-height:1.8;background:#fff;white-space:pre-wrap;}
#noticeEnlargedIssues {white-space:pre-line;}
#carePreviewEnlarged {width:min(700px,92vw);max-height:90vh;overflow:auto;border:1px solid #c4d2c7;border-radius:16px;padding:24px;background:#f7f7f2;}
#carePreviewEnlarged::backdrop {background:rgb(20 36 26 / .45);}
#carePreviewEnlargedArt {text-align:center;}
#carePreviewEnlargedArt svg {width:320px;max-width:100%;height:auto;}
.mu-preview-pair h3 button {font-size:13px;padding:6px 10px;margin-left:8px;}



/* Confirmed artwork: full text-sized action buttons, with details at the right. */
.awaiting-print-line {grid-template-columns:minmax(180px,1fr) 74px 88px max-content;}
.confirmed-row-actions {display:flex;align-items:center;justify-content:flex-end;gap:8px;}
.confirmed-row-actions button {width:max-content;min-width:max-content;flex:0 0 auto;padding:8px 14px;margin:0;white-space:nowrap;}
#confirmedProofs {overflow-x:auto;}

.star-tag-variant {grid-template-columns:auto minmax(140px,1.5fr) minmax(120px,1fr) minmax(65px,.6fr) minmax(85px,.8fr) minmax(75px,.7fr) minmax(165px,1.5fr) minmax(70px,.6fr) auto;min-width:1050px;}
#starTagVariants {overflow-x:auto;}

.proof-version-group {border-bottom:1px solid #dce4dd;padding:10px 0;}
.proof-version-group>.pending-proof,.proof-version-group>article {border-top:0;margin-top:0;}
.proof-version-badge {display:inline-block;border-radius:5px;background:#e5f2e9;color:#155539;font-size:12px;font-weight:700;padding:3px 8px;margin-bottom:4px;}
.proof-previous-versions {margin:4px 0 6px 12px;padding:8px 12px;border-left:2px solid #cbd9cf;background:#f7f9f7;}
.proof-previous-versions>summary {font-size:13px;color:#50675a;}

.awaiting-print-line {grid-template-columns:minmax(180px,1fr) 88px max-content;}
.confirmed-order-info {display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;}
.confirmed-order-quantity {display:block;white-space:normal;line-height:1.5;color:#40564a;}

.deleted-line {grid-template-columns:minmax(220px,1fr) 90px 150px 100px 180px 74px;}
#deletedStageTabs {flex-wrap:wrap;}
