/* Keep the existing NVH theme while making business tables usable on phones. */
.panel{overflow-x:auto}#item-editor{width:100%;table-layout:fixed}#item-editor th:first-child{width:50%}#item-editor select,#item-editor input{min-width:0;width:100%}#item-editor td{vertical-align:top}#item-editor button{white-space:normal}pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:650px){#item-editor,#item-editor tbody,#item-editor tr,#item-editor td{display:block;width:100%}#item-editor thead{display:none}#item-editor tr{border:1px solid var(--line);border-radius:14px;padding:12px;margin:12px 0}#item-editor td{border:0;padding:6px 0}#item-editor td:before{content:attr(data-label);display:block;font-weight:700;font-size:12px;margin-bottom:4px}#item-editor select{min-height:46px}}

/* NVH notification readability update — 2026-10-16 */
body .alert,body .success,body .notice,body .nvh-notice {
 font-family:inherit!important;font-size:clamp(16px,1.1vw,18px)!important;
 font-weight:650!important;line-height:1.65!important;letter-spacing:.01em;
 color:var(--text,#172033)!important;background:var(--surface,#ffffff)!important;
 border:1px solid var(--line,#cbd5e1)!important;border-left:5px solid var(--green,var(--accent,#7c3aed))!important;
 border-radius:14px!important;padding:18px 20px!important;margin:18px 0!important;
 box-shadow:0 5px 18px #0000000d;overflow-wrap:anywhere;
}
body .success {border-left-color:#16834b!important;}
body .alert,body .notice.error,body .nvh-notice.error {border-left-color:#dc3545!important;}
body .alert a,body .success a,body .notice a,body .nvh-notice a {color:inherit!important;text-decoration:underline;font-weight:750;}
@media(max-width:600px){body .alert,body .success,body .notice,body .nvh-notice{padding:15px 16px!important;font-size:16px!important;}}

/* Shared inline validation and field guidance */
body p.error,body div.error,body span.error,body small.error,body .warning,body .field-error,body .validation-message {
 font-family:inherit!important;font-size:16px!important;font-weight:650!important;line-height:1.65!important;
 color:var(--text,#172033)!important;background:var(--surface,#fff)!important;
 border:1px solid var(--line,#cbd5e1)!important;border-left:5px solid #dc3545!important;
 border-radius:12px!important;padding:14px 18px!important;overflow-wrap:anywhere;
}
body .warning {border-left-color:#b77910!important;}
body .success p,body .notice p,body .alert p,body .nvh-notice p,body .warning p,
body .success strong,body .notice strong,body .alert strong {
 color:inherit!important;font-family:inherit!important;font-size:inherit!important;line-height:inherit!important;
}
body input::placeholder,body textarea::placeholder {color:var(--muted,#657080);opacity:1;}
body input[aria-invalid="true"],body select[aria-invalid="true"],body textarea[aria-invalid="true"]{border:2px solid #dc3545!important;}
