﻿.work-tabs { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px; }
.work-tabs button { width:100%;white-space:normal;min-height:44px; }
.work-tabs button.active { background:#078674;color:#fff;border-color:#078674; }
.work-tool { min-width:0; }
.work-tool > .page-heading h1 { font-size:24px; }
#view-jo-generator > .card,#view-jo-generator > details { margin-bottom:16px; }
#jo-site-info,#jo-detail { overflow-wrap:anywhere; }
@media(max-width:850px) { .work-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); } }
:root[data-theme="dark"] .work-tabs button.active { background:#276456;color:#e4fff8;border-color:#70ddc1; }

.jha-checklist {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0;}
.jha-checklist-group {min-width:0;display:flex;flex-direction:column;gap:10px;}
.jha-checklist-group .check-label {display:flex;align-items:flex-start;gap:10px;white-space:normal;}
.jha-checklist-group .check-label input {flex:0 0 auto;margin-top:3px;}
.jha-checklist-group label,.jha-checklist-group details,.jha-checklist-group input {min-width:0;max-width:100%;}
@media(max-width:650px){.jha-checklist{grid-template-columns:minmax(0,1fr);}}

/* JO references and filenames stay inside the phone viewport. */
#view-jo-generator .table-scroll{overflow:auto;max-width:100%;}
#view-jo-generator .signature-actions{flex-wrap:wrap;}
#view-jo-generator .feature-form :is(input,select,textarea){min-width:0;max-width:100%;}
