.approval151{display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;min-width:112px;min-height:34px;padding:5px 10px!important;font-size:13px!important;font-weight:700;line-height:1.4!important;border:1px solid transparent;border-radius:5px}
#app .approval151[data-status-tone=success],#modal .approval151[data-status-tone=success]{background:var(--success150-bg)!important;color:var(--success150-text)!important}
#app .approval151[data-status-tone=pending],#modal .approval151[data-status-tone=pending]{background:var(--pending150-bg)!important;color:var(--pending150-text)!important}
#app .approval151[data-status-tone=danger],#modal .approval151[data-status-tone=danger]{background:var(--danger150-bg)!important;color:var(--danger150-text)!important}
.reapproval151,.change-request151{display:block;padding:7px 9px;margin:5px 0;background:#fff0cf;color:#704300;border-left:3px solid #bd8129;font-weight:700;line-height:1.6;white-space:normal}.status-label151{display:block!important;font-weight:700;color:#48635f;margin-top:5px}
.sources151-group{padding:8px 0;border-bottom:1px solid #d1dfd9}.sources151-group h4{font-size:13px;margin:0 0 6px}.sources151-row{display:flex;gap:8px;flex-wrap:wrap}.sources151-row article{flex:1 1 145px;min-width:0;padding:8px;border:1px solid #d2dfd9;border-radius:5px;background:#f7faf9;overflow-wrap:anywhere}.sources151-row article strong,.sources151-row article small{display:block}.sources151-row article strong{font-size:14px;margin:5px 0}.sources151-row article button{margin-top:6px}
.production147 .balance-table150 th:nth-child(1){width:12%}.production147 .balance-table150 th:nth-child(2){width:25%}.production147 .balance-table150 th:nth-child(3){width:43%}.production147 .balance-table150 th:nth-child(4){width:20%}.panel147 .sources151-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.panel147 .sources151-row article{min-width:0}.panel147 .balance-table150 th:nth-child(2){width:32%}
.delivery-table151 th,.delivery-table151 td{white-space:normal;vertical-align:top}.delivery-table151 small{display:block}.delivery-table151 td:nth-child(2){min-width:200px}.delivery-table151 td[data-label="ロット"],.delivery-table151 td[data-label="品質保持期限"]{min-width:100px}.delivery-table151 td button{margin-top:5px}.delivery-table151 td[data-label="単価"],.delivery-table151 td[data-label="納品数"],.delivery-table151 td[data-label="小計（税抜）"]{white-space:nowrap}
.delivery-panel151 .panel-body147{overflow-y:auto;overflow-x:hidden}.delivery-panel151 .table-wrap,.shipping-panel147 .table-wrap{min-width:0;max-width:100%;overflow-x:auto}.delivery-panel151 .table-wrap table,.shipping-panel147 .table-wrap table{min-width:0!important;table-layout:fixed;width:100%}.delivery-panel151 .table-wrap td,.shipping-panel147 .table-wrap td{white-space:normal!important;overflow-wrap:anywhere}.shipping-panel147 .ui-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.shipping-panel147 .ui-payment{padding:10px;border:1px solid #d1dfd9;border-radius:5px}.shipping-panel147 .panel-body147{overflow-y:auto;overflow-x:hidden}.shipping-panel147 .shipping-fields147{grid-template-columns:repeat(2,minmax(0,1fr))}.shipping-panel147 .pane-notes151{line-height:1.6;white-space:normal}
@media(max-width:850px){.delivery-workspace151{grid-template-columns:1fr}.delivery-workspace151>.panel147{position:static;inset:auto;width:100%;height:auto}.sources151-row article{flex-basis:130px}}

/* Real table cells retain their borders; only the inner approval badge is coloured. */
.ops75-plans td:nth-child(6){display:table-cell!important;border-radius:0!important;vertical-align:top;background:transparent!important;border-color:#d7e0e4!important;padding:10px!important;font-size:inherit!important;font-weight:inherit}
.ops75-plans th:nth-child(6),.ops75-plans td:nth-child(6){min-width:137px;box-sizing:border-box}
.shipping-panel147 .panel-body147{overflow:auto;min-height:0}.shipping-lines152{width:100%!important;min-width:0!important;table-layout:fixed;border-collapse:collapse;font-size:12px}.shipping-lines152 th,.shipping-lines152 td{padding:8px 6px;white-space:normal!important;overflow-wrap:anywhere!important;border:1px solid #d1dedb}.shipping-lines152 th:nth-child(1){width:12%}.shipping-lines152 th:nth-child(2){width:40%}.shipping-lines152 th:nth-child(3){width:20%}.shipping-lines152 th:nth-child(4),.shipping-lines152 th:nth-child(5){width:14%}.shipping-notice152{margin:12px 0;border:1px solid #d6c58f;padding:8px}.shipping-notice152 summary{font-weight:bold;cursor:pointer}.page152{position:relative;padding:8px 0}.page152 span{font-weight:600}

/* Compact BOM overview. The source panel never overlaps the table. */
.balance-wrap153{width:100%;min-width:0;overflow-x:auto}.balance153{width:100%;min-width:0!important;border-collapse:collapse;table-layout:fixed;font-size:12px}.balance153 th,.balance153 td{border:1px solid #cad8d2;padding:8px 5px!important;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}.balance153 th{background:#edf3ef}.balance153 th:first-child{width:18%}.balance153 th:last-child{width:29%}.balance153 td:not(:first-child):not(:last-child){text-align:right;font-weight:700;font-variant-numeric:tabular-nums}.balance153 td:first-child small{display:block;margin-top:3px}.balance153 .states153{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.states153 .state-pair153{display:inline-flex;align-items:center;gap:4px}.state-pair153>small{font-weight:700;font-size:11px}.states153 button{margin:2px}.states153~button{margin-top:5px}.states153 .recheck150{flex-basis:100%}.workspace153{display:block;min-width:0}.source-list153{min-width:0}.sources-panel153{position:relative;inset:auto;width:100%;height:auto;color:#183e36;z-index:auto;box-sizing:border-box;background:#f8fbf9;border:1px solid #c7d9d0;border-radius:8px;padding:16px;margin-top:16px;min-width:0;overflow-wrap:anywhere}.sources-panel153 .sources151-row{display:flex;flex-wrap:wrap}.sources-panel153 .sources151-row article{flex:1 1 200px}.sources-panel153 summary{cursor:pointer;font-weight:700;margin:5px 0}.sources-panel153 .actions{display:flex;gap:6px;flex-wrap:wrap}.sources-panel153 h2{font-size:16px}
@media(min-width:1650px){.workspace153{display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:18px;align-items:start}.sources-panel153{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto;margin-top:0}.workspace153 .balance153 th:first-child{width:17%}.workspace153 .balance153 th:last-child{width:30%}}
@media(max-width:700px){.balance153 thead{display:none}.balance153 tbody,.balance153 tr{display:block}.balance153 tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #cad8d2;margin-bottom:9px}.balance153 td{display:block!important;box-sizing:border-box;min-width:0}.balance153 td:before{content:attr(data-label);display:block;font-size:11px;color:#526c64;font-weight:500}.balance153 td:first-child,.balance153 td:last-child{grid-column:1/-1}.balance153 td:first-child:before,.balance153 td:last-child:before{display:none}}
/* Override the former four-column balance layout only inside the new ten-column overview. */
.production147 table.balance153 th:nth-child(n){width:6.625%!important}.production147 table.balance153 th:first-child{width:18%!important}.production147 table.balance153 th:last-child{width:29%!important}.production147 .balance153 td button{display:inline-flex;margin:3px 4px 3px 0;align-items:center}.production147 .balance153 .state-pair153>small{display:inline;margin:0}.production147 .balance153 .state-pair153{white-space:nowrap}.production147 table.balance153 th,.production147 table.balance153 td{vertical-align:middle}

/* Restore compact bordered rows with distinct lot and quantity columns. */
.delivery-row202{cursor:pointer}.delivery-row202:hover>td{background:#edf6f2}.delivery-row202:focus-visible{outline:2px solid #247263;outline-offset:-2px}.delivery-number202{font-size:13px;font-weight:700;color:#173e47;white-space:nowrap}
.delivery-table151 td[data-label="納品数"],.delivery-table151 td[data-label="単価"],.delivery-table151 td[data-label="諸経費"],.delivery-table151 td[data-label="小計（税抜）"]{text-align:right;font-variant-numeric:tabular-nums}
#delivery104-report table.delivery-table151{min-width:1100px;width:100%;table-layout:auto}#delivery104-report .delivery-table151 td:nth-child(5){min-width:70px;max-width:none}#delivery104-report .delivery-table151 td:last-child{min-width:130px;max-width:none}#delivery104-report .delivery-table151 td[data-label="納品日"]{min-width:95px}#delivery104-report .delivery-table151 td[data-label="ロット"]{white-space:nowrap}
