.workshop-tabs,.workshop-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.workshop-summary{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:18px;border:1px solid #d8e6df;border-radius:12px;background:#f2f8f4}.workshop-summary small,.workshop-summary b,.workshop-summary span{display:block}.workshop-summary b{font-size:16px;margin:7px 0}.workshop-summary span,.workshop-summary small{font-size:13px;color:#638071}.workshop-text{white-space:pre-wrap;line-height:1.6}.workshop-total{text-align:right;font-size:18px;font-weight:700;color:#164b36}.workshop-history>div{padding:12px 0;border-bottom:1px solid #e0ebe5}.workshop-history small{display:block;color:#6c8176;margin-top:5px}.workshop-estimate-table{min-width:740px}.workshop-estimate-table th:first-child{width:50%}.workshop-estimate-table .ws-qty{min-width:90px}.workshop-estimate-table .ws-price{min-width:110px}.workshop-invoice-note{padding:14px;border:1px solid #c9dfd2;border-radius:10px;background:#eef8f2;color:#2c5940;margin-bottom:18px;font-size:14px}.workshop-filter input{flex:1;min-width:180px}.workshop-filter select{min-width:160px}@media(max-width:640px){.workshop-summary{grid-template-columns:1fr}.workshop-actions .btn{flex:1 1 40%}}

/* Admin saved-job layout only; preserve shared transaction dialogs. */
#modalRoot:has(.workshop-summary) .modal-backdrop{top:var(--workshop-dialog-top,44px);padding:12px 20px;box-sizing:border-box}
#modalRoot:has(.workshop-summary) .modal{max-height:calc(100dvh - var(--workshop-dialog-top,44px) - 24px)!important}
#modalRoot:has(.workshop-summary) .modal-head{flex-shrink:0}#modalRoot:has(.workshop-summary) .modal-foot .cancel{display:none}
#modalRoot .admin-job-panel{margin:12px 0;border:1px solid #dde7e1;border-radius:10px;background:#fff;overflow:hidden}
#modalRoot .admin-job-panel>summary{padding:16px 18px;cursor:pointer;color:#315343;font-size:14px;font-weight:600;list-style:none}#modalRoot .admin-job-panel>summary:before{content:'›';display:inline-block;margin-right:12px;font-size:19px;color:#729480}#modalRoot .admin-job-panel[open]>summary:before{transform:rotate(90deg)}#modalRoot .admin-job-panel[open]>summary{background:#f5f8f6;border-bottom:1px solid #e3eae5}#modalRoot .admin-job-panel-body{padding:16px 18px}#modalRoot .admin-job-panel-body h3{font-size:14px;margin:0 0 8px}#modalRoot .admin-job-panel-body p{font-size:13px}#modalRoot .admin-job-tools>.workshop-actions{padding:16px 18px;margin:0}#modalRoot .admin-job-panel[hidden],#modalRoot .admin-job-tools [hidden]{display:none!important}
@media(min-width:1000px){#modalRoot .workshop-summary{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:650px){#modalRoot:has(.workshop-summary) .modal-backdrop{padding:8px}#modalRoot:has(.workshop-summary) .modal{max-height:calc(100dvh - var(--workshop-dialog-top,44px) - 16px)!important}}

/* Explicit summary contrast in ERP dark mode. */
html[data-ui-theme="dark"] #modalRoot .workshop-summary,body.dark #modalRoot .workshop-summary{background:#1b3026!important;border-color:#466452!important;color:#e3eee9!important}
html[data-ui-theme="dark"] #modalRoot .workshop-summary b,html[data-ui-theme="dark"] #modalRoot .workshop-summary strong,body.dark #modalRoot .workshop-summary b{color:#edf6f1!important}
html[data-ui-theme="dark"] #modalRoot .workshop-summary :is(small,span),body.dark #modalRoot .workshop-summary :is(small,span){color:#b8d0c3!important}

/* Approval subtotal remains readable against both themes. */
.backend-approval .workshop-total{display:block;text-align:right;padding:14px 16px;margin:16px 0;border-radius:8px;background:#eaf3ed;color:#164b36;font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}
html[data-ui-theme="dark"] .backend-approval .workshop-total{background:#254537!important;color:#edf8f1!important;border:1px solid #4e7962!important}

/* Workshop action icons retain contrast in light and dark themes. */
.workshop-backend-page .workshop-tabs .lo-icon,.workshop-backend-page .head-actions .lo-icon,.workshop-backend-page .row-actions .lo-icon{color:inherit!important;opacity:1!important;flex-shrink:0}
.workshop-backend-page .job-delete{display:inline-flex!important;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:7px!important;background:#fff0ed!important;border:1px solid #d99b91!important;color:#a52f27!important;border-radius:8px}
.workshop-backend-page .job-delete .lo-icon,.workshop-backend-page .job-delete svg{color:inherit!important;stroke:currentColor!important;opacity:1!important}
html[data-ui-theme=dark] .workshop-backend-page .job-delete{background:#452d29!important;border-color:#925e54!important;color:#ffaaa0!important}
.workshop-setup>summary{display:inline-flex;align-items:center;gap:8px;cursor:pointer}.workshop-setup>summary .lo-icon{width:18px;height:18px}
