dialog.dye-sheet-dialog{width:min(1480px,calc(100vw - 32px));max-width:none}
.dye-sheet-body{padding:18px 24px 24px}
.dye-sheet-header{display:grid;grid-template-columns:150px minmax(220px,1.2fr) repeat(3,minmax(170px,1fr));gap:14px}
.dye-sheet-header label,.dye-standard-fields label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.dye-sheet-header small,.dye-sheet-table small{display:block;margin-top:5px;color:var(--muted,#667085);font-size:12px;font-weight:400;line-height:1.5}
.dye-stock-hint{padding:10px 13px;background:#eff6f4;border:1px solid #d8e7e0;border-radius:6px;font-size:13px;line-height:1.65;color:#315448;margin:16px 0}
.dye-sheet-table-wrap{overflow:auto;border:1px solid var(--border,#dfe4e8);border-radius:7px}
.dye-sheet-table{width:100%;min-width:1220px;border-collapse:collapse;table-layout:fixed;margin:0}
.dye-sheet-table th,.dye-sheet-table td{padding:9px 8px;vertical-align:top;border-bottom:1px solid var(--border,#e5e7eb)}
.dye-sheet-table thead th{position:sticky;top:0;background:#f3f5f7;z-index:1;white-space:nowrap;text-align:left;font-size:13px}
.dye-sheet-table th:nth-child(1){width:45px}.dye-sheet-table th:nth-child(2){width:154px}.dye-sheet-table th:nth-child(3){width:83px}.dye-sheet-table th:nth-child(4){width:85px}.dye-sheet-table th:nth-child(5){width:258px}.dye-sheet-table th:nth-child(6){width:118px}.dye-sheet-table th:nth-child(7){width:78px}.dye-sheet-table th:nth-child(8){width:104px}.dye-sheet-table th:nth-child(10){width:100px}
.dye-sheet-table input,.dye-sheet-table select,.dye-sheet-table textarea{box-sizing:border-box;width:100%;min-width:0;font-size:13px;padding:8px}
.dye-sheet-table .lookup-field{width:100%;min-width:0}.dye-sheet-table .lookup-display{padding-right:28px}
.dye-sheet-table .lookup-open{width:27px;min-width:27px;padding:0}
.dye-sheet-table .small{font-size:12px;padding:5px 7px;margin:4px 0}.dye-sheet-table [data-dye-rolls][hidden]{display:none}
.dye-sheet-table input[readonly]{background:#f3f5f7;color:#556070}
.dye-sheet-table tfoot th,.dye-sheet-table tfoot td{background:#f7f9fa;font-weight:700;border:0}
.dye-sheet-add{display:flex;align-items:center;gap:16px;margin:13px 0 20px}.dye-sheet-add span{font-size:13px;color:var(--muted,#667085)}
.dye-requirements{display:flex;flex-direction:column;gap:9px;font-weight:650}.dye-requirements textarea{font-size:14px;line-height:1.7;font-weight:400}
.dye-sheet-standards{margin-top:18px;border-top:1px solid var(--border,#e1e5ea);padding-top:15px}.dye-sheet-standards summary{cursor:pointer;font-size:14px;font-weight:600}.dye-sheet-standards summary span{margin-left:14px;font-size:12px;color:var(--muted,#667085);font-weight:400}
.dye-sheet-standards section{padding:14px 0;border-bottom:1px solid var(--border,#e1e5ea)}.dye-sheet-standards h3{font-size:13px;margin:0 0 10px}.dye-standard-fields{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px}.dye-standard-fields .check-label{flex-direction:row;align-items:center}.dye-standard-fields .check-label input{width:auto}.dye-sheet-standards .muted{font-size:12px;margin-bottom:0}
.dye-detail-header{display:flex;flex-wrap:wrap;gap:12px 28px;margin:12px 0 18px;font-size:13px}.dye-detail-header strong{margin-left:7px}.dye-detail-requirements{display:flex;gap:20px;align-items:baseline;border-bottom:1px solid var(--border,#e1e5ea);padding:12px 0}.dye-detail-requirements strong{flex-shrink:0}.dye-detail-requirements p{white-space:pre-wrap;line-height:1.75;margin:0}.dye-detail-target{line-height:1.7;font-size:14px}
@media(max-width:1050px){.dye-sheet-header{grid-template-columns:repeat(2,minmax(0,1fr))}.dye-number-field{grid-column:auto}.dye-standard-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){dialog.dye-sheet-dialog{width:calc(100vw - 12px)}.dye-sheet-body{padding:12px}.dye-sheet-header{grid-template-columns:1fr}.dye-sheet-add{align-items:flex-start;flex-direction:column;gap:8px}.dye-standard-fields{grid-template-columns:1fr}.dye-sheet-dialog footer{flex-wrap:wrap}.dye-sheet-dialog .footer-note{width:100%}}
