/* Scoped to the testing workspace; shared Staff Hub styles remain unchanged. */
.testing-page { min-width: 0; }
.testing-page [hidden] { display: none !important; }
.testing-page h1 { overflow-wrap: anywhere; }
.testing-page h2 { font-size: 1.3rem; }
.testing-page h3 { margin: 0; font-size: 1.1rem; }
.testing-page h4 { margin: 0 0 8px; }
.testing-page p { overflow-wrap: anywhere; }
.testing-page .panel { min-width: 0; }
.testing-boundary { display: flex; gap: 12px; flex-wrap: wrap; padding: 14px 18px; margin: 0 0 20px; background: #fff3e7; border: 1px solid #efc397; border-radius: 12px; color: #613706; }
.testing-boundary span { flex: 1 1 380px; }
.testing-summary,.testing-entry,.testing-action,.testing-evidence,.testing-product-card,.testing-empty { padding: 20px; margin-bottom: 16px; }
.testing-summary-top,.testing-entry-head,.testing-section-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.testing-section-head { align-items: center; margin: 18px 0 10px; }
.testing-section-head h2,.testing-section-head p { margin: 0; }
.testing-badge { display: inline-block; font-weight: 700; font-size: .78rem; line-height: 1.4; border: 1px solid #afc4d2; border-radius: 20px; padding: 5px 10px; color: #234459; background: #eef4f8; }
.testing-initial_observation,.testing-in_progress { color: #6c3905; background: #fff0d5; border-color: #d8b475; }
.testing-confirmed,.testing-done,.testing-completed { color: #125337; background: #e2f5e9; border-color: #7ebc9b; }
.testing-inconclusive,.testing-on_hold { color: #793b09; background: #fff1df; border-color: #d8b68e; }
.testing-under_review { color: #354d85; background: #eaf0ff; border-color: #a6b8df; }
.testing-awaiting { color: #5c7082; font-style: italic; }
.testing-meta,.testing-help { color: #526a7c; font-size: .85rem; line-height: 1.6; }
.testing-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 24px; margin: 16px 0; }
.testing-page dl { margin-top: 12px; }
.testing-page dt { color: #3b5569; font-weight: 700; font-size: .83rem; margin-bottom: 5px; }
.testing-page dd { margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.testing-feedback { background: #f0f6fb; border-left: 4px solid #3b83ae; padding: 16px; margin: 16px 0; border-radius: 6px; }
.testing-feedback p,.testing-confirmed-note p { white-space: pre-wrap; }
.testing-feedback small,.testing-confirmed-note small { color: #4e6575; line-height: 1.6; }
.testing-confirmed-note { padding: 16px; border: 1px solid #7ebc9b; border-radius: 8px; background: #f0fbf4; margin: 14px 0; }
.testing-detail-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(300px,1fr); gap: 24px; align-items: start; }
.testing-followup > h2 { margin: 20px 0; }
.testing-editor { margin: 14px 0; }
.testing-editor.panel { padding: 16px 20px; }
.testing-editor summary { cursor: pointer; font-weight: 700; color: #0a527d; padding: 4px 0; line-height: 1.5; }
.testing-editor[open] > summary { margin-bottom: 16px; }
.testing-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.testing-form label,.testing-search label { display: flex; flex-direction: column; gap: 7px; color: #234459; font-weight: 600; font-size: .88rem; min-width: 0; }
.testing-form input,.testing-form textarea,.testing-form select,.testing-search input,.testing-search select { width: 100%; max-width: 100%; border: 1px solid #aec5d6; border-radius: 8px; background: #fff; color: #18394f; padding: 11px 12px; font: inherit; font-weight: 400; box-sizing: border-box; }
.testing-form textarea { resize: vertical; min-height: 80px; }
.testing-wide { grid-column: 1 / -1; }
.testing-form-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.testing-form-buttons span { font-size: .8rem; color: #526a7c; }
.testing-confirmation { border: 1px solid #93bba4; border-radius: 8px; padding: 15px; background: #f0fbf4; }
.testing-confirmation .testing-checkbox { margin-top: 12px; display: flex; flex-direction: row; align-items: flex-start; line-height: 1.6; }
.testing-checkbox input { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 6px 0 0; }
.testing-followup .testing-form { grid-template-columns: 1fr; }
.testing-upload { display: block; padding: 14px; border: 1px dashed #89aac0; border-radius: 8px; background: #f8fbfd; margin: 16px 0 0; font-weight: 700; color: #274d65; }
.testing-upload input { display: block; width: 100%; max-width: 100%; margin: 10px 0; font: inherit; font-size: .85rem; }
.testing-upload span { display: block; font-weight: 400; font-size: .78rem; line-height: 1.6; }
.testing-files { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 12px; margin: 14px 0; }
.testing-file { border: 1px solid #d4e0e9; border-radius: 8px; padding: 12px; overflow-wrap: anywhere; }
.testing-file img { display: block; width: 100%; height: 140px; object-fit: contain; background: #f4f7fa; border-radius: 6px; margin-bottom: 10px; }
.testing-file a { font-weight: 700; }
.testing-file small { display: block; font-size: .77rem; color: #526a7c; line-height: 1.65; margin-top: 4px; }
.testing-search { display: grid; grid-template-columns: minmax(240px,1fr) minmax(170px,.5fr) auto auto; gap: 12px; align-items: end; padding: 18px; margin: 0 0 16px; }
.testing-product-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(310px,1fr)); gap: 16px; }
.testing-product-card { margin: 0; display: flex; flex-direction: column; align-items: flex-start; }
.testing-product-card h2 { margin: 14px 0 0; }
.testing-product-card dl { width: 100%; }
.testing-card-purpose { white-space: pre-wrap; }
.testing-counts { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: auto; font-size: .77rem; color: #456174; }
.testing-counts span { border: 1px solid #d6e1e9; padding: 4px 7px; border-radius: 5px; }
.testing-notice,.testing-error,.testing-form-error { padding: 13px 16px; border-radius: 8px; margin-bottom: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.testing-notice { background: #eef8f1; border: 1px solid #92b8a0; color: #1b5736; }
.testing-error,.testing-form-error { background: #fff1f1; border: 1px solid #cd9999; color: #842c2c; }
.testing-activity { padding-left: 22px; }
.testing-activity li { margin-bottom: 12px; }
.testing-activity span { display: block; font-size: .8rem; color: #526a7c; margin-top: 4px; }
.testing-more { margin-top: 20px; }
.testing-page :focus-visible { outline: 3px solid #ff7b19; outline-offset: 3px; }
.testing-page button:disabled { opacity: .6; cursor: wait; }
@media(max-width:1200px) { .testing-detail-grid { grid-template-columns: 1fr; } .testing-followup .testing-form { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .testing-form,.testing-facts,.testing-followup .testing-form { grid-template-columns: 1fr; } .testing-search { grid-template-columns: 1fr 1fr; } .testing-search label { grid-column: 1 / -1; } .testing-product-grid { grid-template-columns: 1fr; } .testing-files { grid-template-columns: 1fr; } .testing-summary,.testing-entry,.testing-action,.testing-evidence,.testing-product-card { padding: 15px; } }
@media(max-width:900px) { .mobile-nav { grid-template-columns: repeat(6,minmax(0,1fr)); } }
