.greige-report-rule{display:flex;flex-direction:column;gap:8px;padding:14px 18px;background:var(--surface-soft,#f5f7fa);border-radius:8px;line-height:1.65;margin:0 0 18px}.greige-report-rule strong{font-size:14px}.greige-report-rule span{font-size:13px;color:var(--muted,#687487)}
.greige-state-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.greige-state-tabs button{background:var(--surface,#fff);border:1px solid var(--border,#dce2e9)}.greige-state-tabs button.selected{background:var(--accent-soft,#edf4fa);border-color:var(--accent,#386b91);color:var(--accent,#315f80)}.greige-state-tabs b{font-weight:500;margin-left:5px}
.greige-filter-bar{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:flex-start;gap:12px}.greige-filter-bar>input[type=search]{flex:1 1 280px;min-width:220px}.greige-filter-bar>label{display:flex;flex-direction:column;gap:6px;align-items:flex-start;font-size:12px;white-space:nowrap;flex:0 0 auto}.greige-filter-bar input[type=date]{width:150px;min-width:150px;flex:none}.greige-supplier-filter{min-width:180px;max-width:250px}.greige-supplier-filter select,.greige-supplier-filter .inline-select{width:100%}
.greige-report-list .table-wrap table{min-width:1270px}.greige-report-list td{vertical-align:top}.greige-report-list .num,.greige-date{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}.greige-report-list td:first-child{min-width:110px}.greige-report-list th{white-space:nowrap}.greige-batch-code{max-width:280px;overflow-wrap:anywhere}.greige-current-row{background:var(--accent-soft,#f0f6fb)}.greige-final-shrink{font-weight:600;color:#296b4c}.greige-state{display:inline-block;font-size:13px;font-weight:500;white-space:nowrap}.greige-state.closed{color:#296b4c}.greige-state.stale,.greige-state.blocked{color:#8a5b12}.greige-state.open,.greige-state.limited{color:var(--muted,#697788)}.greige-total-note{font-size:13px;line-height:1.75;color:var(--muted,#657487);padding:12px 20px;margin:0;border-top:1px solid var(--border,#e0e5eb)}
#greige-details{scroll-margin-top:20px}.greige-batch-detail{margin-top:20px}.greige-batch-detail>.panel-head{align-items:flex-start;gap:14px}.greige-batch-detail h2{overflow-wrap:anywhere}.greige-batch-detail>.panel-head>.muted{font-size:13px}.greige-batch-overview{display:flex;flex-wrap:wrap;gap:20px 32px;padding:18px 20px;border-bottom:1px solid var(--border,#e0e5eb)}.greige-batch-overview>div{display:flex;flex-direction:column;gap:6px;min-width:130px}.greige-batch-overview>div>span{color:var(--muted,#657487);font-size:12px}.greige-batch-overview>div>strong{font-size:16px;font-weight:500}.greige-detail-content{padding:18px 20px}.greige-detail-content h3{font-size:15px;margin:22px 0 12px}.greige-detail-content .table-wrap table{min-width:680px}.greige-detail-content .num{white-space:nowrap}.greige-history-note{white-space:pre-wrap;min-width:180px;max-width:460px;overflow-wrap:anywhere}.greige-notice{padding:12px 14px;background:#fff9eb;border-radius:6px;color:#76561f;font-size:13px;margin-bottom:14px}.greige-notice ul{padding-left:20px;margin:6px 0 0;line-height:1.7}.greige-blockers{background:#fff3ef;color:#91432e}.greige-completion-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
@media(max-width:720px){.greige-filter-bar{gap:10px}.greige-filter-bar>input[type=search]{flex-basis:100%;min-width:180px}.greige-filter-bar input[type=date]{width:150px;min-width:150px}.greige-state-tabs{gap:6px}.greige-state-tabs button{padding:8px 10px}.greige-batch-overview{gap:18px}.greige-batch-detail>.panel-head{flex-wrap:wrap}.greige-detail-content{padding:14px}.greige-report-rule{padding:12px 14px}.greige-total-note{padding:12px 14px}}

.greige-batch-link{display:inline;padding:0;border:0;border-radius:2px;background:transparent;color:var(--accent,#315f80);font:inherit;text-align:left;white-space:normal;overflow-wrap:anywhere;line-height:1.5;cursor:pointer}.greige-batch-link:hover{text-decoration:underline;background:transparent}.greige-batch-link:focus-visible{outline:2px solid var(--accent,#315f80);outline-offset:3px}
