/* Health & Safety module foundation styles */
.tmjr-hs-wrap .tmjr-module-eyebrow {
    color: #0f766e;
}

.tmjr-hs-hero {
    border-top: 4px solid #0f766e;
}

.tmjr-hs-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.tmjr-hs-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 0;
}

.tmjr-hs-filter-row span {
    background: #f4f7f6;
    border: 1px solid #dbe7e5;
    border-radius: 999px;
    color: #334155;
    padding: 7px 12px;
    font-size: 13px;
}

.tmjr-hs-stats-grid a.tmjr-stat-card,
.tmjr-hs-stat-card {
    color: inherit;
    text-decoration: none;
}

.tmjr-hs-stat-card {
    border-left: 4px solid #0f766e;
}

.tmjr-hs-stat-amber {
    border-left-color: #f59e0b;
}

.tmjr-hs-stat-orange {
    border-left-color: #f97316;
}

.tmjr-hs-stat-red {
    border-left-color: #dc2626;
}

.tmjr-hs-grid-2 {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.tmjr-hs-emergency-notice {
    align-items: flex-start;
    border-left: 5px solid #dc2626;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
}

.tmjr-hs-report-card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 20px;
}

.tmjr-hs-report-type-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 240px;
}

.tmjr-hs-report-type-card h3 {
    margin: 0;
}

.tmjr-hs-report-type-card small {
    color: #64748b;
    display: block;
    margin-bottom: auto;
}

.tmjr-hs-card-icon {
    align-items: center;
    background: #e6f5f2;
    border-radius: 16px;
    color: #0f766e;
    display: flex;
    font-size: 26px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.tmjr-hs-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.tmjr-hs-stepper span {
    background: #f1f5f9;
    border-radius: 999px;
    color: #475569;
    padding: 8px 12px;
}

.tmjr-hs-stepper span.is-active {
    background: #0f766e;
    color: #fff;
}

.tmjr-hs-form-placeholder {
    border-left: 4px solid #0f766e;
}

.tmjr-empty-state-small,
.tmjr-muted {
    color: #64748b;
}

@media (max-width: 1100px) {
    .tmjr-hs-report-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tmjr-hs-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .tmjr-hs-report-card-grid {
        grid-template-columns: 1fr;
    }

    .tmjr-hs-header-actions {
        justify-content: flex-start;
    }
}

/* H&S stage 1B workflow screens */
.tmjr-hs-field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 18px;
    align-items: start;
}

.tmjr-hs-field-grid p,
.tmjr-hs-form-section p {
    margin-top: 0;
}

.tmjr-hs-field-grid input[type="text"],
.tmjr-hs-field-grid input[type="date"],
.tmjr-hs-field-grid input[type="time"],
.tmjr-hs-field-grid select,
.tmjr-hs-form textarea,
.tmjr-hs-form input[type="text"],
.tmjr-hs-form select {
    width: 100%;
}

.tmjr-hs-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 8px 0 18px;
}

.tmjr-hs-checkbox-grid label,
.tmjr-hs-confirm-line {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.tmjr-hs-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.tmjr-hs-table th,
.tmjr-hs-table td {
    vertical-align: top;
}

.tmjr-hs-filter-bar {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.tmjr-hs-filter-bar p {
    margin: 0;
}

.tmjr-hs-filter-bar input,
.tmjr-hs-filter-bar select {
    width: 100%;
}

.tmjr-hs-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    background: #eef2f7;
    color: #2f3a45;
    white-space: nowrap;
}

.tmjr-hs-status-triage-required,
.tmjr-hs-status-more-info-required,
.tmjr-hs-status-awaiting-closeout {
    background: #fff3cd;
    color: #7a4b00;
}

.tmjr-hs-status-under-investigation {
    background: #ede9fe;
    color: #4c1d95;
}

.tmjr-hs-status-action-required {
    background: #ffedd5;
    color: #9a3412;
}

.tmjr-hs-status-closed {
    background: #dcfce7;
    color: #166534;
}

.tmjr-hs-status-overdue,
.tmjr-hs-severity-critical {
    background: #fee2e2;
    color: #991b1b;
}

.tmjr-hs-severity-high {
    background: #ffedd5;
    color: #9a3412;
}

.tmjr-hs-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tmjr-hs-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.tmjr-hs-definition-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 8px 14px;
}

.tmjr-hs-definition-grid dt {
    font-weight: 700;
    color: #384452;
}

.tmjr-hs-definition-grid dd {
    margin: 0;
}

.tmjr-hs-timeline {
    border-left: 3px solid #dbe6e2;
    margin-left: 8px;
    padding-left: 18px;
}

.tmjr-hs-timeline-item {
    position: relative;
    margin: 0 0 14px;
}

.tmjr-hs-timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #188263;
}

.tmjr-hs-timeline-item span,
.tmjr-hs-comment span {
    display: block;
    font-size: 12px;
    color: #667085;
}

.tmjr-hs-comment {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.tmjr-hs-comment-form textarea {
    width: 100%;
    margin: 8px 0 10px;
}

.tmjr-hs-file-list {
    margin-left: 18px;
}

@media (max-width: 900px) {
    .tmjr-hs-field-grid,
    .tmjr-hs-checkbox-grid,
    .tmjr-hs-filter-bar,
    .tmjr-hs-detail-grid {
        grid-template-columns: 1fr;
    }

    .tmjr-hs-form-actions {
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        padding: 12px 0;
        justify-content: stretch;
    }

    .tmjr-hs-form-actions .tmjr-button {
        flex: 1;
        text-align: center;
    }
}

/* Health & Safety management workflow panels */
.tmjr-hs-management-panel {
    margin-bottom: 18px;
}

.tmjr-hs-management-form p {
    margin: 0 0 12px;
}

.tmjr-hs-management-form select,
.tmjr-hs-management-form input[type="date"],
.tmjr-hs-management-form textarea {
    width: 100%;
    max-width: 100%;
}

.tmjr-hs-check {
    display: block;
    margin: 6px 0;
    line-height: 1.35;
}

.tmjr-hs-status-more_info_required,
.tmjr-hs-status-triage_required {
    animation: tmjr-hs-soft-pulse 1.8s infinite;
}

.tmjr-hs-status-closed {
    background: #e7f6ed;
    color: #176b3a;
}

.tmjr-hs-status-under_investigation {
    background: #eee9ff;
    color: #4c2d8f;
}

.tmjr-hs-status-action_required {
    background: #fff1df;
    color: #9a4f00;
}

.tmjr-hs-status-more_info_required {
    background: #fff6d7;
    color: #8a5b00;
}

@keyframes tmjr-hs-soft-pulse {
    0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.32); }
    70% { box-shadow: 0 0 0 8px rgba(217, 119, 6, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* Health & Safety dashboard/reporting */
.tmjr-hs-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 18px;
    margin-top: 18px;
}

.tmjr-hs-dashboard-grid-four {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tmjr-hs-wide-chart {
    grid-column: span 1;
}

.tmjr-hs-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tmjr-hs-section-header h3 {
    margin: 0;
}

.tmjr-hs-attention-list {
    display: grid;
    gap: 10px;
}

.tmjr-hs-attention-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #d97706;
    border-radius: 14px;
    background: #fff;
}

.tmjr-hs-attention-item span {
    display: block;
    color: #667085;
    font-size: 13px;
    margin-top: 2px;
}

.tmjr-hs-attention-critical-severity-open,
.tmjr-hs-attention-immediate-risk-remaining,
.tmjr-hs-attention-potential-riddor,
.tmjr-hs-attention-overdue-action {
    border-left-color: #dc2626;
}

.tmjr-hs-chart-list {
    display: grid;
    gap: 10px;
}

.tmjr-hs-chart-row {
    display: grid;
    gap: 5px;
}

.tmjr-hs-chart-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #344054;
}

.tmjr-hs-chart-track {
    height: 10px;
    background: #edf2f7;
    border-radius: 999px;
    overflow: hidden;
}

.tmjr-hs-chart-track span {
    display: block;
    height: 100%;
    background: #188263;
    border-radius: 999px;
}

.tmjr-hs-report-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 12px 0 16px;
    color: #667085;
}

.tmjr-hs-report-summary strong {
    color: #101828;
}

.tmjr-hs-report-summary span {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .tmjr-hs-dashboard-grid,
    .tmjr-hs-dashboard-grid-four {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .tmjr-hs-attention-item {
        align-items: stretch;
        flex-direction: column;
    }
}

.tmjr-hs-checklist-item {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    padding: 14px;
    margin: 14px 0;
    background: rgba(255,255,255,0.72);
}
.tmjr-hs-answer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 12px;
}
.tmjr-hs-answer-pills label {
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    padding: 8px 12px;
    background: #fff;
    cursor: pointer;
}
.tmjr-hs-inspection-action-box {
    border-left: 4px solid rgba(20, 184, 166, 0.45);
    padding: 10px 12px;
    background: rgba(240, 253, 250, 0.65);
    border-radius: 12px;
}
.tmjr-hs-status-fail { background: #fee2e2; color: #991b1b; }
.tmjr-hs-status-pass { background: #dcfce7; color: #166534; }
.tmjr-hs-status-na { background: #e5e7eb; color: #374151; }
.tmjr-hs-status-observation { background: #fef3c7; color: #92400e; }

/* H&S settings */
.tmjr-hs-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 18px 0;
}
.tmjr-hs-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    margin: 18px 0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}
.tmjr-hs-panel h3 { margin-top: 0; }
.tmjr-muted { color: #64748b; font-size: 0.92rem; }
.tmjr-hs-checkbox-line {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}
.tmjr-hs-settings-table input[type="email"],
.tmjr-hs-settings-form input[type="email"] {
    width: 100%;
    max-width: 100%;
}
.tmjr-hs-reference-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.tmjr-hs-reference-grid > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
}
@media (max-width: 900px) {
    .tmjr-hs-settings-grid,
    .tmjr-hs-reference-grid { grid-template-columns: 1fr; }
}

/* H&S Stage 1H polish */
.tmjr-hs-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}
.tmjr-hs-settings-form input[type="text"],
.tmjr-hs-settings-form input[type="email"],
.tmjr-hs-test-email-form input[type="email"] {
    width: 100%;
    max-width: 100%;
}
.tmjr-hs-mail-diagnostic {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    padding: 14px;
    background: #f8fafc;
}
.tmjr-hs-diagnostic-list {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 8px 14px;
}
.tmjr-hs-diagnostic-list dt {
    font-weight: 700;
    color: #475569;
}
.tmjr-hs-diagnostic-list dd {
    margin: 0;
}
@media (max-width: 782px) {
    .tmjr-hs-detail-actions {
        justify-content: flex-start;
    }
    .tmjr-hs-diagnostic-list {
        grid-template-columns: 1fr;
    }
}

/* H&S role testing/settings controls */
.tmjr-hs-depot-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px 12px;
    max-width: 560px;
}

.tmjr-hs-depot-checklist label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.tmjr-hs-mini-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 11px;
    font-weight: 700;
}

/* H&S dashboard polish - Stage 1J visual refinement */
.tmjr-notice {
    border: 1px solid #dbe7e5;
    border-radius: 14px;
    margin: 0 0 18px;
    padding: 14px 16px;
    font-weight: 600;
    line-height: 1.45;
}

.tmjr-notice-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.tmjr-notice-success::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    margin-right: 10px;
    background: #10b981;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    vertical-align: middle;
}

.tmjr-notice-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.tmjr-notice-error::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    margin-right: 10px;
    background: #dc2626;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    vertical-align: middle;
}

.tmjr-hs-header-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tmjr-hs-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.tmjr-button-primary .tmjr-hs-button-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.tmjr-ha-dashboard-card .tmjr-hs-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.tmjr-hs-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    padding: 14px 16px 16px !important;
    border-left: 4px solid #0f766e;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tmjr-hs-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10) !important;
}

.tmjr-hs-stat-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.tmjr-ha-dashboard-card .tmjr-hs-stat-card .tmjr-stat-number {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.tmjr-ha-dashboard-card .tmjr-hs-stat-card .tmjr-stat-label {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #15335b;
    margin-bottom: 8px;
}

.tmjr-hs-stat-card small {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

.tmjr-hs-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 12px;
    background: #e6f5f2;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tmjr-hs-stat-amber .tmjr-hs-stat-icon {
    background: #fef3c7;
    color: #92400e;
}

.tmjr-hs-stat-orange .tmjr-hs-stat-icon {
    background: #ffedd5;
    color: #9a3412;
}

.tmjr-hs-stat-red .tmjr-hs-stat-icon {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 1100px) {
    .tmjr-ha-dashboard-card .tmjr-hs-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .tmjr-ha-dashboard-card .tmjr-hs-stats-grid {
        grid-template-columns: 1fr;
    }

    .tmjr-hs-stat-card {
        min-height: auto;
    }
}


/* H&S dashboard grid correction - Stage 1J.1 */
.tmjr-hs-wrap .tmjr-hs-hero .tmjr-hs-stats-grid,
.tmjr-wrap.tmjr-hs-wrap .tmjr-ha-dashboard-card.tmjr-hs-hero .tmjr-stats-grid.tmjr-hs-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.tmjr-hs-wrap .tmjr-hs-hero .tmjr-hs-stat-card,
.tmjr-wrap.tmjr-hs-wrap .tmjr-ha-dashboard-card.tmjr-hs-hero .tmjr-hs-stat-card {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 148px !important;
}

.tmjr-hs-wrap .tmjr-hs-hero .tmjr-hs-header-actions .tmjr-button,
.tmjr-wrap.tmjr-hs-wrap .tmjr-ha-dashboard-card.tmjr-hs-hero .tmjr-hs-header-actions .tmjr-button {
    text-decoration: none !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    min-height: 40px !important;
    line-height: 1.2 !important;
}

.tmjr-hs-wrap .tmjr-hs-hero .tmjr-hs-header-actions {
    align-items: center !important;
}

.tmjr-hs-wrap .tmjr-hs-hero .tmjr-hs-header-actions::before {
    content: none !important;
}

@media (max-width: 1200px) {
    .tmjr-hs-wrap .tmjr-hs-hero .tmjr-hs-stats-grid,
    .tmjr-wrap.tmjr-hs-wrap .tmjr-ha-dashboard-card.tmjr-hs-hero .tmjr-stats-grid.tmjr-hs-stats-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .tmjr-hs-wrap .tmjr-hs-hero .tmjr-hs-stats-grid,
    .tmjr-wrap.tmjr-hs-wrap .tmjr-ha-dashboard-card.tmjr-hs-hero .tmjr-stats-grid.tmjr-hs-stats-grid {
        grid-template-columns: 1fr !important;
    }
}


/* H&S dashboard refinement - Stage 1J.2 */
.tmjr-hs-top-grid,
.tmjr-hs-dashboard-top-grid {
    align-items: stretch;
}

.tmjr-hs-insight-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.tmjr-hs-card-heading,
.tmjr-hs-section-header > div {
    margin-bottom: 14px;
}

.tmjr-hs-card-heading h3,
.tmjr-hs-section-header h3 {
    margin-bottom: 4px;
}

.tmjr-hs-card-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.tmjr-hs-attention-card .tmjr-hs-attention-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tmjr-hs-attention-card .tmjr-hs-attention-item {
    min-height: 72px;
}

.tmjr-hs-dashboard-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tmjr-hs-dashboard-lower-grid .tmjr-card {
    min-height: 320px;
}

.tmjr-hs-monthly-card .tmjr-hs-chart-list {
    gap: 12px;
}

.tmjr-hs-monthly-card .tmjr-hs-chart-row {
    margin-bottom: 0;
}

.tmjr-hs-chart-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tmjr-hs-chart-row {
    margin-bottom: 0;
}

.tmjr-hs-chart-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 14px;
}

.tmjr-hs-chart-label span {
    color: #334155;
}

.tmjr-hs-chart-label strong {
    color: #15335b;
    font-size: 15px;
}

.tmjr-hs-chart-track {
    height: 10px;
    background: #e8eef3;
    border-radius: 999px;
    overflow: hidden;
}

.tmjr-hs-chart-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f766e 0%, #1f8f6d 100%);
}

@media (max-width: 1180px) {
    .tmjr-hs-dashboard-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tmjr-hs-monthly-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 780px) {
    .tmjr-hs-dashboard-grid-three {
        grid-template-columns: 1fr;
    }

    .tmjr-hs-dashboard-lower-grid .tmjr-card {
        min-height: auto;
    }
}


/* H&S record detail management panel refinement - Stage 1J.3 */
.tmjr-hs-detail-side {
    align-self: start;
}

.tmjr-hs-management-sticky {
    position: sticky;
    top: 18px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding-right: 4px;
}

.tmjr-hs-management-overview {
    background: linear-gradient(135deg, #0f766e 0%, #155e75 100%);
    color: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.tmjr-hs-management-overview strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
}

.tmjr-hs-management-overview span {
    display: inline-flex;
    margin: 4px 8px 0 0;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 700;
}

.tmjr-hs-management-details {
    padding: 0 !important;
    overflow: hidden;
    margin-bottom: 12px;
}

.tmjr-hs-management-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    border-left: 4px solid #0f766e;
    background: #f8fafc;
}

.tmjr-hs-management-details > summary::-webkit-details-marker {
    display: none;
}

.tmjr-hs-management-details > summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #e6f5f2;
    color: #0f766e;
    font-weight: 800;
    line-height: 1;
}

.tmjr-hs-management-details[open] > summary::after {
    content: "−";
}

.tmjr-hs-management-details > summary span {
    display: block;
    color: #0b2c53;
    font-size: 16px;
    font-weight: 800;
}

.tmjr-hs-management-details > summary small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    margin-top: 3px;
}

.tmjr-hs-management-panel-body {
    padding: 16px;
}

.tmjr-hs-management-panel-body .tmjr-hs-check {
    font-size: 13px;
}

.tmjr-hs-management-panel-body textarea {
    min-height: 90px;
}

.tmjr-hs-management-panel-body hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 18px 0;
}

@media (max-width: 980px) {
    .tmjr-hs-management-sticky {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}


/* H&S record detail layout refinement - Stage 1J.4 */
.tmjr-hs-workspace-shell {
    padding: 20px !important;
}

.tmjr-hs-workspace-shell .tmjr-hs-management-sticky {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.tmjr-hs-workspace-shell .tmjr-hs-management-overview {
    margin-bottom: 18px;
}

.tmjr-hs-workspace-shell .tmjr-hs-management-details {
    margin-bottom: 14px;
}

.tmjr-hs-workspace-shell .tmjr-hs-management-panel-body {
    padding: 18px;
}

.tmjr-hs-sidebar-timeline .tmjr-hs-timeline {
    margin-top: 6px;
}

.tmjr-hs-timeline-compact .tmjr-hs-timeline-item:last-child {
    margin-bottom: 0;
}

.tmjr-hs-timeline-more {
    margin-top: 12px;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

.tmjr-hs-timeline-more > summary {
    cursor: pointer;
    color: #0f766e;
    font-weight: 700;
    list-style: none;
}

.tmjr-hs-timeline-more > summary::-webkit-details-marker {
    display: none;
}

.tmjr-hs-timeline-more > summary::after {
    content: ' +';
    color: #0f766e;
}

.tmjr-hs-timeline-more[open] > summary::after {
    content: ' −';
}

.tmjr-hs-timeline-older {
    margin-top: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 6px;
}

@media (min-width: 981px) {
    .tmjr-hs-detail-grid {
        grid-template-columns: minmax(0, 1.85fr) minmax(320px, 0.95fr);
        gap: 18px;
    }
}


/* H&S record journey refinement - Stage 1J.5 */
.tmjr-hs-record-section-details {
    padding: 0 !important;
    overflow: hidden;
}

.tmjr-hs-record-section-details > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    background: #f8fafc;
    border-left: 4px solid #0f766e;
}

.tmjr-hs-record-section-details > summary::-webkit-details-marker {
    display: none;
}

.tmjr-hs-record-section-details > summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #e6f5f2;
    color: #0f766e;
    font-weight: 800;
}

.tmjr-hs-record-section-details[open] > summary::after {
    content: "−";
}

.tmjr-hs-record-section-details > summary span {
    color: #0b2c53;
    font-size: 18px;
    font-weight: 800;
}

.tmjr-hs-record-section-details > summary small {
    color: #64748b;
    font-size: 13px;
}

.tmjr-hs-record-section-body {
    padding: 18px 22px 22px;
}

.tmjr-hs-journey-overview {
    background: #ffffff;
    color: #0b2c53;
    border: 1px solid #dbe7e5;
    border-left: 5px solid #0f766e;
    box-shadow: none;
    padding: 14px 16px;
}

.tmjr-hs-journey-overview strong {
    color: #0b2c53;
    margin-bottom: 3px;
}

.tmjr-hs-journey-meta {
    display: block !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

.tmjr-hs-journey-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.tmjr-hs-journey-steps span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.tmjr-hs-workspace-shell .tmjr-hs-management-details {
    margin-bottom: 10px;
}

.tmjr-hs-workspace-shell .tmjr-hs-management-details > summary {
    min-height: 64px;
}

.tmjr-hs-record-activity {
    padding: 20px !important;
}

.tmjr-hs-activity-details {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-top: 12px;
    overflow: hidden;
}

.tmjr-hs-activity-details > summary {
    cursor: pointer;
    list-style: none;
    padding: 13px 14px;
    background: #f8fafc;
    color: #0b2c53;
    font-weight: 800;
}

.tmjr-hs-activity-details > summary::-webkit-details-marker {
    display: none;
}

.tmjr-hs-activity-details > summary::after {
    content: "+";
    float: right;
    color: #0f766e;
    font-weight: 900;
}

.tmjr-hs-activity-details[open] > summary::after {
    content: "−";
}

.tmjr-hs-activity-body {
    padding: 14px;
}

.tmjr-hs-record-activity .tmjr-hs-comment-form textarea {
    min-height: 90px;
}

@media (max-width: 1180px) {
    .tmjr-hs-journey-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .tmjr-hs-journey-steps {
        grid-template-columns: 1fr;
    }
}


/* H&S record journey non-interactive path - Stage 1J.6 */
.tmjr-hs-journey-steps {
    display: none !important;
}

.tmjr-hs-journey-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.tmjr-hs-journey-path span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tmjr-hs-journey-path span:not(:last-child)::after {
    content: "→";
    color: #0f766e;
    font-weight: 900;
    margin-left: 8px;
}

.tmjr-hs-workspace-shell .tmjr-hs-management-details:not([open]) .tmjr-hs-management-panel-body {
    display: none !important;
}

.tmjr-hs-management-details > summary {
    user-select: none;
}

.tmjr-hs-management-details > summary span {
    pointer-events: none;
}

@media (max-width: 700px) {
    .tmjr-hs-journey-path {
        display: block;
        line-height: 1.8;
    }

    .tmjr-hs-journey-path span {
        display: inline;
    }
}


/* Health & Safety stage 1J.8 - actions polish + pulsing attention statuses */
.tmjr-hs-view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 2px 0 16px;
}

.tmjr-hs-view-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid #d7dfeb;
    background: #f8fbff;
    color: #16324f;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.tmjr-hs-view-tab:hover,
.tmjr-hs-view-tab:focus {
    transform: translateY(-1px);
    border-color: #93c5fd;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.10);
    text-decoration: none;
}

.tmjr-hs-view-tab.is-active {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.tmjr-hs-actions-overview {
    margin-bottom: 18px;
}

.tmjr-hs-action-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 6px;
}

.tmjr-hs-action-summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 104px;
}

.tmjr-hs-action-summary-card strong {
    font-size: 32px;
    line-height: 1;
    color: #0f2f57;
}

.tmjr-hs-action-summary-card span:last-child {
    color: #64748b;
    font-size: 13px;
}

.tmjr-hs-action-summary-kicker {
    color: #0f766e;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 800;
}

.tmjr-hs-attention-card {
    border-left: 4px solid #d97706;
}

.tmjr-hs-attention-card-red {
    border-left-color: #dc2626;
}

.tmjr-hs-status-action-required,
.tmjr-hs-status-action_required,
.tmjr-hs-status-triage-required,
.tmjr-hs-status-triage_required,
.tmjr-hs-status-more-info-required,
.tmjr-hs-status-more_info_required,
.tmjr-hs-status-awaiting-closeout,
.tmjr-hs-status-awaiting_closeout,
.tmjr-hs-status-overdue,
.tmjr-hs-status-open,
.tmjr-hs-status-submitted-for-review,
.tmjr-hs-status-submitted_for_review,
.tmjr-hs-status-further-work-required,
.tmjr-hs-status-further_work_required {
    animation: tmjr-hs-strong-pulse 1.8s infinite;
}

.tmjr-hs-status-open {
    background: #e0f2fe;
    color: #075985;
}

.tmjr-hs-status-submitted-for-review,
.tmjr-hs-status-submitted_for_review {
    background: #ede9fe;
    color: #5b21b6;
}

.tmjr-hs-status-further-work-required,
.tmjr-hs-status-further_work_required {
    background: #fff7ed;
    color: #9a3412;
}

@keyframes tmjr-hs-strong-pulse {
    0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.28); transform: translateZ(0); }
    45% { box-shadow: 0 0 0 8px rgba(217, 119, 6, 0.08); }
    75% { box-shadow: 0 0 0 14px rgba(217, 119, 6, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

@media (max-width: 1100px) {
    .tmjr-hs-action-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tmjr-hs-action-summary-grid {
        grid-template-columns: 1fr;
    }

    .tmjr-hs-view-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}


/* Health & Safety stage 1J.9 - inspections polish + neutral summary cards */
.tmjr-hs-action-summary-card:not(.tmjr-hs-attention-card):not(.tmjr-hs-attention-card-red) {
    border-left: 1px solid #e2e8f0;
}

.tmjr-hs-action-summary-card:not(.tmjr-hs-attention-card):not(.tmjr-hs-attention-card-red) .tmjr-hs-action-summary-kicker {
    color: #64748b;
}

.tmjr-hs-action-summary-card:not(.tmjr-hs-attention-card):not(.tmjr-hs-attention-card-red) strong {
    color: #0f2f57;
}

.tmjr-hs-inspection-intro {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    margin: 10px 0 20px;
}

.tmjr-hs-inspection-intro-card,
.tmjr-hs-inspection-intro-copy {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 18px 20px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.tmjr-hs-inspection-intro-card {
    border-left: 5px solid #0f766e;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.tmjr-hs-inspection-intro-card strong {
    color: #0f2f57;
    font-size: 38px;
    line-height: 1;
}

.tmjr-hs-inspection-intro-card span:last-child,
.tmjr-hs-inspection-intro-copy p {
    color: #64748b;
    margin: 0;
}

.tmjr-hs-inspection-kicker {
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tmjr-hs-inspection-intro-copy h3 {
    margin: 0 0 8px;
}

.tmjr-hs-inspection-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tmjr-hs-inspection-template-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 20px !important;
    border-left: 5px solid #0f766e;
    transition: transform .18s ease, box-shadow .18s ease;
}

.tmjr-hs-inspection-template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}

.tmjr-hs-inspection-template-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.tmjr-hs-inspection-template-head h3 {
    margin: 0 0 8px;
}

.tmjr-hs-inspection-template-head p {
    color: #475569;
    margin: 0;
    line-height: 1.55;
}

.tmjr-hs-inspection-template-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #e6f5f2;
    color: #0f766e;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .04em;
}

.tmjr-hs-inspection-template-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
}

.tmjr-hs-inspection-template-footer span {
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .tmjr-hs-inspection-template-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .tmjr-hs-inspection-intro {
        grid-template-columns: 1fr;
    }

    .tmjr-hs-inspection-template-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Health & Safety stage 1J.10 - actions pagination and report defaults polish */
.tmjr-hs-actions-help {
    margin: 0 0 16px;
    padding: 11px 14px;
    border: 1px solid #dbeafe;
    border-left: 4px solid #2563eb;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 13px;
    line-height: 1.45;
}

.tmjr-hs-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 12px 0 14px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.tmjr-hs-table-toolbar > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tmjr-hs-table-toolbar > div span {
    color: #64748b;
    font-size: 13px;
}

.tmjr-hs-per-page-form label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-weight: 700;
}

.tmjr-hs-per-page-form select {
    min-width: 82px;
    border-radius: 10px;
    padding: 6px 28px 6px 10px;
}

.tmjr-hs-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
}

.tmjr-hs-pagination span {
    color: #475569;
    font-weight: 700;
}

@media (max-width: 760px) {
    .tmjr-hs-table-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .tmjr-hs-pagination {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}


/* Health & Safety stage 1J.11 - list pagination and dashboard ticker */
.tmjr-hs-dashboard-ticker {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0 14px;
    padding: 13px 16px;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #2563eb;
    border-radius: 16px;
    background: #eff6ff;
    color: #1e3a8a;
    line-height: 1.45;
}

.tmjr-hs-dashboard-ticker-label {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tmjr-hs-dismissible-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tmjr-hs-dismissible-notice button {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.12);
    color: #1e3a8a;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.tmjr-hs-settings-form textarea#tmjr_hs_dashboard_ticker {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 700px) {
    .tmjr-hs-dashboard-ticker {
        flex-direction: column;
    }
}

/* H&S stage 1J.12 settings page visual refresh */
.tmjr-hs-settings-shell {
    border-top: 4px solid #0f766e;
}

.tmjr-hs-settings-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.tmjr-hs-settings-title-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tmjr-hs-settings-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0 8px;
}

.tmjr-hs-settings-stat {
    padding: 16px 18px;
    border: 1px solid #dbe7e5;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tmjr-hs-settings-stat strong {
    font-size: 30px;
    line-height: 1;
    color: #0f172a;
}

.tmjr-hs-settings-stat-label {
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.tmjr-hs-panel-accent {
    position: relative;
    overflow: hidden;
}

.tmjr-hs-panel-accent::before,
.tmjr-hs-panel-highlight::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
}

.tmjr-hs-panel-highlight {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.tmjr-hs-panel-span-2 {
    grid-column: 1 / -1;
}

.tmjr-hs-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.tmjr-hs-panel-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.tmjr-hs-inline-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.tmjr-hs-inline-state.is-on {
    background: #dcfce7;
    color: #166534;
}

.tmjr-hs-inline-state.is-off {
    background: #e2e8f0;
    color: #475569;
}

.tmjr-hs-inline-state.is-neutral {
    background: #e0f2fe;
    color: #075985;
}

.tmjr-hs-settings-field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tmjr-hs-settings-field-grid p {
    margin: 0;
}

.tmjr-hs-settings-field-grid label,
.tmjr-hs-settings-form label {
    display: inline-block;
    margin-bottom: 7px;
}

.tmjr-hs-settings-form textarea,
.tmjr-hs-settings-form input[type="text"],
.tmjr-hs-settings-form input[type="email"] {
    width: 100%;
    max-width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.tmjr-hs-settings-form textarea:focus,
.tmjr-hs-settings-form input[type="text"]:focus,
.tmjr-hs-settings-form input[type="email"]:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.tmjr-hs-ticker-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 6px 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.tmjr-hs-ticker-preview-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tmjr-hs-toggle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tmjr-hs-toggle-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #dbe7e5;
    background: #fff;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.tmjr-hs-toggle-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.tmjr-hs-toggle-card.is-enabled {
    border-color: #99f6e4;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

.tmjr-hs-toggle-card.is-disabled {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tmjr-hs-toggle-card-check {
    padding-top: 2px;
}

.tmjr-hs-toggle-card-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tmjr-hs-toggle-card-copy strong {
    color: #0f172a;
}

.tmjr-hs-routing-summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin: 4px 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.tmjr-hs-settings-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.tmjr-hs-settings-table {
    margin: 0;
}

.tmjr-hs-settings-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
}

.tmjr-hs-settings-table th,
.tmjr-hs-settings-table td {
    padding-top: 14px;
    padding-bottom: 14px;
    vertical-align: middle;
}

.tmjr-hs-settings-table tbody tr:nth-child(even) td {
    background: rgba(248, 250, 252, 0.8);
}

.tmjr-hs-depot-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tmjr-hs-reference-grid-modern > div {
    padding: 16px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tmjr-hs-reference-grid-modern strong {
    font-size: 18px;
    color: #0f172a;
}

.tmjr-hs-reference-grid-modern small {
    line-height: 1.45;
}

.tmjr-hs-settings-savebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid #dbe7e5;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.tmjr-hs-settings-savebar > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 1100px) {
    .tmjr-hs-settings-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tmjr-hs-toggle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .tmjr-hs-settings-grid,
    .tmjr-hs-reference-grid {
        grid-template-columns: 1fr;
    }

    .tmjr-hs-panel-span-2 {
        grid-column: auto;
    }
}

@media (max-width: 782px) {
    .tmjr-hs-settings-heading-row,
    .tmjr-hs-panel-head,
    .tmjr-hs-settings-savebar {
        flex-direction: column;
        align-items: flex-start;
    }

    .tmjr-hs-settings-overview,
    .tmjr-hs-toggle-grid {
        grid-template-columns: 1fr;
    }
}


/* H&S stage 1J.13 ticker controls */
.tmjr-hs-live-pulse {
    animation: tmjr-hs-live-badge-pulse 1.8s infinite;
}

@keyframes tmjr-hs-live-badge-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.30); }
    70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.tmjr-hs-ticker-preview.is-empty {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.tmjr-hs-ticker-preview.is-empty .tmjr-hs-ticker-preview-label {
    background: #64748b;
}

.tmjr-hs-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.tmjr-hs-panel-actions .tmjr-button-secondary {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.tmjr-hs-panel-actions .tmjr-button-secondary:hover {
    background: #f1f5f9;
}


/* H&S new report page polish - Stage 1J.16 */
.tmjr-hs-new-report-card,
.tmjr-hs-form-shell {
    border-top: 4px solid #0f766e;
}

.tmjr-hs-emergency-banner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
    border: 1px solid #fecaca;
    border-left: 5px solid #dc2626;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.tmjr-hs-emergency-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    height: 34px;
    padding: 0 12px;
    background: #dc2626;
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tmjr-hs-emergency-copy h3 {
    margin: 0 0 6px;
    font-size: 22px;
}

.tmjr-hs-emergency-copy p {
    margin: 0 0 4px;
}

.tmjr-hs-emergency-copy small {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.tmjr-hs-report-card-grid {
    gap: 18px;
}

.tmjr-hs-report-type-card {
    position: relative;
    min-height: 300px;
    padding: 18px !important;
    border: 1px solid #dbe7e5;
    border-top: 4px solid #0f766e;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.tmjr-hs-report-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.tmjr-hs-report-type-card[data-type="incident"] {
    border-top-color: #dc2626;
}

.tmjr-hs-report-type-card[data-type="near_miss"] {
    border-top-color: #f59e0b;
}

.tmjr-hs-report-type-card[data-type="observation"] {
    border-top-color: #0f766e;
}

.tmjr-hs-report-type-card[data-type="inspection"] {
    border-top-color: #2563eb;
}

.tmjr-hs-report-type-top,
.tmjr-hs-drafts-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.tmjr-hs-report-type-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tmjr-hs-report-type-body h3 {
    margin: 0;
    font-size: 18px;
}

.tmjr-hs-report-type-body p {
    margin: 0;
    color: #15335b;
    line-height: 1.65;
}

.tmjr-hs-report-type-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tmjr-hs-report-type-footer small {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.tmjr-hs-report-pill,
.tmjr-hs-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #dbe7e5;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.tmjr-hs-report-start-button {
    width: 100%;
    justify-content: center;
    text-decoration: none !important;
}

.tmjr-hs-report-type-card .tmjr-hs-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 24px;
    flex-shrink: 0;
}

.tmjr-hs-report-type-card[data-type="incident"] .tmjr-hs-card-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.tmjr-hs-report-type-card[data-type="near_miss"] .tmjr-hs-card-icon {
    background: #fef3c7;
    color: #b45309;
}

.tmjr-hs-report-type-card[data-type="inspection"] .tmjr-hs-card-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.tmjr-hs-drafts-card {
    border-top: 4px solid #0f766e;
}

.tmjr-hs-empty-state {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
}

.tmjr-hs-empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #e6f5f2;
    color: #0f766e;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.tmjr-hs-empty-state h4 {
    margin: 0 0 6px;
    font-size: 18px;
}

/* H&S form page polish - Stage 1K.1 */
.tmjr-hs-form-guidance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 0 16px;
    padding: 16px 18px;
    border: 1px solid #dbe7e5;
    border-left: 5px solid #0f766e;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
}

.tmjr-hs-form-guidance h3 {
    margin: 0 0 6px;
}

.tmjr-hs-form-guidance p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.tmjr-hs-form-guidance-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #e6f5f2;
    color: #0f766e;
    font-weight: 800;
    white-space: nowrap;
}

.tmjr-hs-form-stepper {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 20px;
}

.tmjr-hs-form-stepper span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-align: center;
}

.tmjr-hs-form-stepper span strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
}

.tmjr-hs-form-stepper span.is-active {
    background: #0f766e;
    color: #fff;
    border-color: #0f766e;
}

.tmjr-hs-form-stepper span.is-active strong {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

.tmjr-hs-form-section {
    border-left: 5px solid #0f766e;
    border-radius: 18px;
    padding: 20px !important;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.tmjr-hs-form-section h3 {
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f2f57;
}

.tmjr-hs-form-section label strong {
    color: #0f2f57;
}

.tmjr-hs-form-section input[type="text"],
.tmjr-hs-form-section input[type="date"],
.tmjr-hs-form-section input[type="time"],
.tmjr-hs-form-section select,
.tmjr-hs-form-section textarea {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.tmjr-hs-form-section textarea {
    min-height: 96px;
}

.tmjr-hs-form-section input:focus,
.tmjr-hs-form-section select:focus,
.tmjr-hs-form-section textarea:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.tmjr-hs-field-hint,
.tmjr-help {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.tmjr-hs-checkbox-grid label {
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.tmjr-hs-checkbox-grid label:hover {
    background: #f0fdfa;
    border-color: #99f6e4;
}

.tmjr-hs-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e6f5f2;
    color: #0f766e;
    font-weight: 800;
}

.tmjr-hs-confirm-line {
    margin-top: 14px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #dbe7e5;
    background: #f8fafc;
}

.tmjr-hs-form-section input[type="file"] {
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px dashed #94a3b8;
    border-radius: 16px;
    background: #f8fafc;
}

.tmjr-hs-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 18px -20px -20px;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 18px 18px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
}

.tmjr-hs-form-actions .tmjr-button {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 800;
}

.tmjr-hs-back-button {
    text-decoration: none !important;
}

@media (max-width: 1100px) {
    .tmjr-hs-form-stepper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .tmjr-hs-emergency-banner,
    .tmjr-hs-form-guidance,
    .tmjr-hs-drafts-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tmjr-hs-form-actions {
        position: static;
        margin: 18px 0 0;
        border-radius: 16px;
    }
}

@media (max-width: 700px) {
    .tmjr-hs-form-stepper {
        grid-template-columns: 1fr;
    }
}


/* H&S form section overview refinement - Stage 1K.2 */
.tmjr-hs-form-stepper {
    display: none !important;
}

.tmjr-hs-form-overview-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 14px 0 20px;
    padding: 12px 14px;
    border: 1px solid #dbe7e5;
    border-left: 5px solid #0f766e;
    border-radius: 16px;
    background: #f8fbfb;
    color: #475569;
    font-size: 13px;
    line-height: 1.4;
}

.tmjr-hs-form-overview-strip span:not(.tmjr-hs-overview-label) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.tmjr-hs-form-overview-strip span:not(.tmjr-hs-overview-label):not(:last-child)::after {
    content: "→";
    color: #0f766e;
    font-weight: 900;
    margin-left: 2px;
}

.tmjr-hs-overview-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e6f5f2;
    color: #0f766e;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .tmjr-hs-form-overview-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .tmjr-hs-form-overview-strip span:not(.tmjr-hs-overview-label):not(:last-child)::after {
        content: "";
        margin: 0;
    }
}


/* H&S evidence preview cards - Stage 1K.3 */
.tmjr-hs-evidence-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.tmjr-hs-evidence-header h3 {
    margin: 0 0 4px;
}

.tmjr-hs-existing-evidence {
    margin-bottom: 16px;
}

.tmjr-hs-existing-evidence > strong {
    display: block;
    margin-bottom: 10px;
    color: #0f2f57;
}

.tmjr-hs-file-dropzone {
    display: flex !important;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 18px;
    border: 1px dashed #94a3b8;
    border-radius: 18px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.tmjr-hs-file-dropzone:hover {
    border-color: #0f766e;
    background: #f0fdfa;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.tmjr-hs-file-dropzone input[type="file"] {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.tmjr-hs-file-dropzone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #e6f5f2;
    color: #0f766e;
    font-size: 26px;
    font-weight: 900;
    flex: 0 0 auto;
}

.tmjr-hs-file-dropzone strong,
.tmjr-hs-file-dropzone small {
    display: block;
}

.tmjr-hs-file-dropzone small {
    margin-top: 4px;
    color: #64748b;
}

.tmjr-hs-upload-preview {
    margin-top: 16px;
}

.tmjr-hs-upload-preview-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.tmjr-hs-evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.tmjr-hs-evidence-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    border: 1px solid #dbe7e5;
    border-radius: 18px;
    background: #fff;
    color: inherit;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.tmjr-hs-evidence-card:hover {
    transform: translateY(-2px);
    border-color: #99f6e4;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
    text-decoration: none !important;
}

.tmjr-hs-evidence-card-preview {
    cursor: default;
}

.tmjr-hs-evidence-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 124px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef6f4 100%);
    border-bottom: 1px solid #e2e8f0;
}

.tmjr-hs-evidence-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tmjr-hs-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 46px;
    padding: 0 10px;
    border-radius: 14px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .04em;
}

.tmjr-hs-file-icon-pdf {
    background: #fee2e2;
    color: #991b1b;
}

.tmjr-hs-file-icon-doc,
.tmjr-hs-file-icon-docx {
    background: #dbeafe;
    color: #1e40af;
}

.tmjr-hs-file-icon-xls,
.tmjr-hs-file-icon-xlsx,
.tmjr-hs-file-icon-csv {
    background: #dcfce7;
    color: #166534;
}

.tmjr-hs-file-icon-txt {
    background: #ede9fe;
    color: #5b21b6;
}

.tmjr-hs-evidence-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 12px 6px;
    min-height: 72px;
}

.tmjr-hs-evidence-meta strong {
    color: #0f2f57;
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}

.tmjr-hs-evidence-meta small {
    color: #64748b;
    font-size: 12px;
}

.tmjr-hs-evidence-action {
    margin: auto 12px 12px;
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e6f5f2;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
}

.tmjr-hs-empty-evidence {
    margin-top: 4px;
}

@media (max-width: 760px) {
    .tmjr-hs-evidence-header,
    .tmjr-hs-upload-preview-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tmjr-hs-file-dropzone {
        align-items: flex-start;
    }
}

/* Health & Safety stage 2A - IMS Compliance Framework */
.tmjr-hs-compliance-panel {
    margin-top: 22px;
}

.tmjr-hs-compliance-filters,
.tmjr-hs-compliance-form .tmjr-hs-form-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.tmjr-hs-compliance-filters label,
.tmjr-hs-compliance-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 700;
    color: #334155;
}

.tmjr-hs-compliance-filters input,
.tmjr-hs-compliance-filters select,
.tmjr-hs-compliance-form input,
.tmjr-hs-compliance-form select,
.tmjr-hs-compliance-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    color: #0f172a;
}

.tmjr-hs-compliance-form .tmjr-hs-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.tmjr-hs-compliance-form .tmjr-hs-field-wide {
    grid-column: 1 / -1;
}

.tmjr-hs-filter-actions,
.tmjr-hs-form-actions,
.tmjr-hs-compliance-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.tmjr-hs-compliance-actions form {
    margin: 0;
}

.tmjr-hs-compliance-table td {
    vertical-align: top;
}

.tmjr-hs-table-muted {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.tmjr-button-small {
    padding: 6px 10px;
    border-radius: 9px;
    font-size: 12px;
}

.tmjr-button-danger {
    border-color: #fecaca;
    background: #fff1f2;
    color: #991b1b;
}

.tmjr-hs-compliance-status-compliant {
    background: #dcfce7;
    color: #166534;
}

.tmjr-hs-compliance-status-monitoring {
    background: #dbeafe;
    color: #1e40af;
}

.tmjr-hs-compliance-status-action-required,
.tmjr-hs-compliance-status-action_required {
    background: #ffedd5;
    color: #9a3412;
}

.tmjr-hs-compliance-status-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.tmjr-hs-compliance-status-not-applicable,
.tmjr-hs-compliance-status-not_applicable {
    background: #e5e7eb;
    color: #374151;
}

@media (max-width: 1100px) {
    .tmjr-hs-compliance-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .tmjr-hs-compliance-filters,
    .tmjr-hs-compliance-form .tmjr-hs-form-grid {
        grid-template-columns: 1fr;
    }
}

/* H&S Stage 2A.1 - IMS Compliance UI polish */
.tmjr-hs-compliance-hero .tmjr-ha-dashboard-header {
    align-items: flex-start;
}

.tmjr-hs-compliance-hero .tmjr-dashboard-subtitle {
    max-width: 920px;
}

.tmjr-hs-compliance-stats {
    grid-template-columns: repeat(5, minmax(170px, 1fr)) !important;
}

.tmjr-hs-compliance-stats .tmjr-hs-stat-card {
    min-height: 126px !important;
}

.tmjr-hs-compliance-panel {
    overflow: hidden;
}

.tmjr-hs-compliance-panel .tmjr-hs-section-header {
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
}

.tmjr-hs-compliance-filters {
    align-items: end;
}

.tmjr-hs-compliance-filters label,
.tmjr-hs-compliance-form label {
    font-size: 13px;
}

.tmjr-hs-compliance-filters input:focus,
.tmjr-hs-compliance-filters select:focus,
.tmjr-hs-compliance-form input:focus,
.tmjr-hs-compliance-form select:focus,
.tmjr-hs-compliance-form textarea:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.tmjr-hs-compliance-filters .tmjr-hs-filter-actions {
    min-height: 44px;
}

.tmjr-hs-compliance-empty {
    display: grid !important;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    min-height: 210px;
    padding: 26px !important;
    text-align: left !important;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 52%, #eefaf7 100%);
    border: 1px dashed rgba(15, 118, 110, 0.28);
    border-radius: 18px;
}

.tmjr-hs-compliance-empty .tmjr-empty-state-image {
    width: 150px !important;
    height: auto !important;
    opacity: 0.88;
}

.tmjr-hs-compliance-empty .tmjr-empty-state-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin: 0 !important;
    color: #475569;
}

.tmjr-hs-compliance-empty .tmjr-empty-state-text strong {
    color: #0f2f57;
    font-size: 18px;
}

.tmjr-hs-compliance-empty .tmjr-empty-state-text span {
    max-width: 720px;
    line-height: 1.5;
}

.tmjr-hs-compliance-empty .tmjr-empty-state-text .tmjr-button {
    margin-top: 8px;
}

.tmjr-hs-compliance-table-wrap {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: auto;
}

.tmjr-hs-compliance-table {
    margin: 0;
}

.tmjr-hs-compliance-table thead th {
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tmjr-hs-compliance-table tbody tr:hover {
    background: #f8fafc;
}

.tmjr-hs-compliance-table td:first-child strong {
    color: #0f2f57;
}

.tmjr-hs-compliance-actions {
    min-width: 170px;
}

.tmjr-button-secondary {
    background: #fff;
    border-color: #cbd5e1;
    color: #15335b;
}

.tmjr-button-secondary:hover {
    background: #f8fafc;
}

.tmjr-button-danger .tmjr-hs-button-icon {
    background: rgba(153, 27, 27, 0.10);
    color: #991b1b;
}

.tmjr-hs-compliance-panel .tmjr-hs-form-actions {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

@media (max-width: 1400px) {
    .tmjr-hs-compliance-stats {
        grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .tmjr-hs-compliance-stats {
        grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
    }

    .tmjr-hs-compliance-empty {
        grid-template-columns: 1fr;
        text-align: center !important;
    }

    .tmjr-hs-compliance-empty .tmjr-empty-state-text {
        align-items: center;
    }
}

@media (max-width: 640px) {
    .tmjr-hs-compliance-stats {
        grid-template-columns: 1fr !important;
    }
}

/* H&S Stage 2A.2 - Compliance register usability */
.tmjr-hs-compliance-checkboxes {
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
}

.tmjr-hs-compliance-checkboxes legend {
    padding: 0 6px;
    font-weight: 800;
    color: #334155;
}

.tmjr-hs-compliance-checkboxes label {
    flex-direction: row !important;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-weight: 700;
    color: #15335b;
}

.tmjr-hs-compliance-checkboxes input[type="checkbox"] {
    width: auto;
    min-width: 16px;
    height: 16px;
    padding: 0;
}

.tmjr-hs-compliance-status-due-soon,
.tmjr-hs-compliance-status-due_soon {
    background: #fef3c7;
    color: #92400e;
}

.tmjr-hs-compliance-table td:nth-child(6) {
    min-width: 160px;
}

/* H&S Stage 2A.3 - Compliance UK date formatting refinement */
.tmjr-hs-field-hint {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.tmjr-hs-compliance-status-no-review-date,
.tmjr-hs-compliance-status-no_review_date {
    background: #f1f5f9;
    color: #475569;
}

/* H&S Stage 2A.4 - Compliance linked actions */
.tmjr-hs-linked-action-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.tmjr-hs-linked-action-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.tmjr-hs-linked-action-pill.is-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.tmjr-hs-raise-action-details {
    position: relative;
}

.tmjr-hs-raise-action-details summary {
    list-style: none;
    cursor: pointer;
}

.tmjr-hs-raise-action-details summary::-webkit-details-marker {
    display: none;
}

.tmjr-hs-raise-action-form {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    width: min(420px, 80vw);
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.tmjr-hs-raise-action-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #334155;
    font-weight: 800;
    font-size: 13px;
}

.tmjr-hs-raise-action-form input,
.tmjr-hs-raise-action-form select,
.tmjr-hs-raise-action-form textarea,
.tmjr-hs-compliance-form select[multiple] {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 9px 10px;
    background: #fff;
    color: #0f172a;
}

.tmjr-button-warning,
.tmjr-button-warning:visited {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.tmjr-button-warning .tmjr-hs-button-icon {
    background: #ffedd5;
    color: #9a3412;
}

@media (max-width: 900px) {
    .tmjr-hs-raise-action-form {
        position: static;
        width: auto;
        margin-top: 8px;
    }
}

/* H&S dashboard compliance snapshot */
.tmjr-hs-compliance-dashboard-card {
    margin: 22px 0;
}

.tmjr-hs-compliance-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.tmjr-hs-compliance-mini-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 112px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.tmjr-hs-compliance-mini-card:hover,
.tmjr-hs-compliance-due-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.tmjr-hs-compliance-mini-card span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tmjr-hs-compliance-mini-card strong {
    font-size: 2rem;
    line-height: 1;
}

.tmjr-hs-compliance-mini-card small {
    color: #64748b;
}

.tmjr-hs-compliance-mini-card-red {
    border-color: rgba(220, 38, 38, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
}

.tmjr-hs-compliance-mini-card-amber {
    border-color: rgba(217, 119, 6, 0.24);
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.tmjr-hs-compliance-mini-card-blue {
    border-color: rgba(37, 99, 235, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.tmjr-hs-compliance-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 18px;
    margin-top: 18px;
}

.tmjr-hs-compliance-due-list,
.tmjr-hs-compliance-iso-list {
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #ffffff;
}

.tmjr-hs-compliance-due-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    color: #0f172a;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tmjr-hs-compliance-due-item strong,
.tmjr-hs-compliance-due-item span {
    display: block;
}

.tmjr-hs-compliance-due-item span {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 3px;
}

.tmjr-hs-compliance-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    background: #e2e8f0;
    color: #334155;
    white-space: nowrap;
}

.tmjr-hs-compliance-badge-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.tmjr-hs-compliance-badge-due-soon,
.tmjr-hs-compliance-badge-due_soon {
    background: #fef3c7;
    color: #92400e;
}

.tmjr-hs-compliance-badge-action_required,
.tmjr-hs-compliance-badge-partially_compliant {
    background: #ffedd5;
    color: #9a3412;
}

.tmjr-hs-compliance-iso-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.tmjr-hs-compliance-iso-row span {
    color: #475569;
    font-weight: 700;
}

.tmjr-hs-compliance-iso-row strong {
    min-width: 38px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    text-align: center;
}

@media (max-width: 1100px) {
    .tmjr-hs-compliance-snapshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tmjr-hs-compliance-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tmjr-hs-compliance-snapshot-grid {
        grid-template-columns: 1fr;
    }

    .tmjr-hs-compliance-due-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Compliance evidence library */
.tmjr-hs-evidence-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.tmjr-hs-evidence-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #f8fafc;
}

.tmjr-hs-evidence-item strong {
    display: block;
    color: #0f172a;
    font-size: 0.88rem;
}

.tmjr-hs-evidence-item span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 2px;
}

.tmjr-hs-evidence-item form {
    flex: 0 0 auto;
}

.tmjr-hs-evidence-upload-form input[type="file"] {
    padding: 10px;
    background: #fff;
    border: 1px dashed rgba(15, 23, 42, 0.22);
    border-radius: 12px;
}

.tmjr-hs-evidence-upload-details summary::-webkit-details-marker,
.tmjr-hs-raise-action-details summary::-webkit-details-marker {
    display: none;
}

/* Stage 2A Compliance Review History */
.tmjr-hs-review-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.tmjr-hs-review-list > strong {
    color: #0f2a44;
    font-size: 12px;
}

.tmjr-hs-review-item {
    display: grid;
    gap: 3px;
    padding: 8px 10px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.92);
    color: #41516b;
    font-size: 12px;
}

.tmjr-hs-review-item span:first-child {
    color: #0f2a44;
}

.tmjr-hs-review-details .tmjr-hs-raise-action-form,
.tmjr-hs-review-form {
    min-width: 360px;
}

.tmjr-hs-review-checklist {
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 12px;
    padding: 10px 12px;
    background: #ffffff;
}

.tmjr-hs-review-checklist legend {
    padding: 0 6px;
    font-weight: 700;
    color: #0f2a44;
}

.tmjr-hs-review-checklist label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 6px 0;
    font-weight: 500;
}

/* Stage 2A Compliance Review Due Queue */
.tmjr-hs-compliance-stats .tmjr-stat-card {
    text-decoration: none;
    color: inherit;
}

.tmjr-hs-compliance-stats .tmjr-stat-card:hover,
.tmjr-hs-compliance-stats .tmjr-stat-card:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.tmjr-hs-review-queue-panel {
    border-top: 4px solid #0f766e;
}

.tmjr-hs-quick-filter-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tmjr-hs-review-queue-list {
    display: grid;
    gap: 12px;
}

.tmjr-hs-review-queue-item {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) minmax(220px, 0.9fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-left: 5px solid #0f766e;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.tmjr-hs-review-queue-overdue,
.tmjr-hs-review-queue-action_required,
.tmjr-hs-review-queue-partially_compliant {
    border-left-color: #dc2626;
}

.tmjr-hs-review-queue-due-soon {
    border-left-color: #f97316;
}

.tmjr-hs-review-queue-no-review-date {
    border-left-color: #64748b;
}

.tmjr-hs-review-queue-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
}

.tmjr-hs-review-queue-main strong {
    display: block;
    color: #0f2a44;
    font-size: 15px;
}

.tmjr-hs-review-queue-main span:not(.tmjr-hs-status-pill),
.tmjr-hs-review-queue-meta span {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.tmjr-hs-review-queue-meta {
    display: grid;
    gap: 4px;
}

.tmjr-hs-review-queue-meta strong {
    color: #334155;
}

.tmjr-hs-review-queue-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 1100px) {
    .tmjr-hs-review-queue-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .tmjr-hs-review-queue-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .tmjr-hs-review-queue-main {
        grid-template-columns: 1fr;
    }
}

/* IMS Audit Register */
.tmjr-hs-checkbox-panel {
    border: 1px solid #dbe4ec;
    border-radius: 14px;
    padding: 14px 16px;
    background: #f8fafc;
}

.tmjr-hs-checkbox-panel legend {
    font-weight: 700;
    color: #102a43;
    padding: 0 6px;
}

.tmjr-hs-checkbox-panel label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 16px 6px 0;
    font-weight: 600;
}

.tmjr-hs-row-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.tmjr-hs-row-actions form {
    margin: 0;
}

.tmjr-hs-compliance-table td small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    line-height: 1.35;
}

.tmjr-hs-compliance-status-due-soon,
.tmjr-hs-compliance-status-due_soon {
    background: #fff7ed;
    color: #9a3412;
}

.tmjr-hs-compliance-status-overdue,
.tmjr-hs-compliance-status-major-findings,
.tmjr-hs-compliance-status-major_findings {
    background: #fee2e2;
    color: #991b1b;
}

.tmjr-hs-compliance-status-completed,
.tmjr-hs-compliance-status-compliant {
    background: #dcfce7;
    color: #166534;
}

.tmjr-hs-compliance-status-in-progress,
.tmjr-hs-compliance-status-in_progress {
    background: #dbeafe;
    color: #1d4ed8;
}

.tmjr-hs-compliance-status-awaiting-actions,
.tmjr-hs-compliance-status-awaiting_actions {
    background: #ffedd5;
    color: #c2410c;
}

/* v1.10.44 Compliance reminder settings */
.tmjr-hs-reminder-diagnostic {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.85);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px 12px;
    align-items: center;
}

.tmjr-hs-reminder-diagnostic small {
    grid-column: 1 / -1;
}

/* v1.10.45 IMS hardening and diagnostics */
.tmjr-hs-empty-card {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border: 1px dashed rgba(15, 42, 68, 0.24);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(239, 246, 255, 0.72));
    color: #334155;
}

.tmjr-hs-empty-card strong {
    color: #0f2a44;
    font-size: 16px;
}

.tmjr-hs-empty-card span {
    color: #64748b;
}

.tmjr-hs-empty-card-compact {
    margin-top: 10px;
}

.tmjr-hs-ims-diagnostics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.tmjr-hs-ims-diagnostic-card {
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-left: 5px solid #64748b;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.tmjr-hs-ims-diagnostic-card.is-ok {
    border-left-color: #0f766e;
}

.tmjr-hs-ims-diagnostic-card.is-missing {
    border-left-color: #dc2626;
}

.tmjr-hs-ims-diagnostic-card span,
.tmjr-hs-ims-diagnostic-card small {
    display: block;
}

.tmjr-hs-ims-diagnostic-card strong {
    display: block;
    margin: 4px 0;
    color: #0f2a44;
    font-size: 24px;
    line-height: 1;
}

/* v1.10.48 IMS NCR + document control alignment */
.tmjr-hs-ncr-page .tmjr-hs-row-actions,
.tmjr-hs-documents-page .tmjr-hs-row-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.tmjr-hs-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.tmjr-hs-status-monitoring,
.tmjr-hs-status-due-soon {
    background: #fef3c7;
    color: #92400e;
}

.tmjr-hs-status-action-required,
.tmjr-hs-status-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.tmjr-hs-status-compliant {
    background: #dcfce7;
    color: #166534;
}

.tmjr-hs-status-not-applicable {
    background: #e5e7eb;
    color: #374151;
}

/* IMS dashboard widgets - v1.10.51 */
.tmjr-hs-ims-dashboard-card {
    margin: 22px 0;
}

.tmjr-hs-ims-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.tmjr-hs-ims-kpi-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 118px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tmjr-hs-ims-kpi-card:hover,
.tmjr-hs-ims-register-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.tmjr-hs-ims-kpi-card span {
    font-size: 0.82rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tmjr-hs-ims-kpi-card strong {
    font-size: 2.05rem;
    line-height: 1;
}

.tmjr-hs-ims-kpi-card small {
    color: #64748b;
    line-height: 1.35;
}

.tmjr-hs-ims-kpi-card-red {
    border-color: rgba(220, 38, 38, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
}

.tmjr-hs-ims-kpi-card-amber {
    border-color: rgba(217, 119, 6, 0.24);
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.tmjr-hs-ims-kpi-card-blue {
    border-color: rgba(37, 99, 235, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.tmjr-hs-ims-register-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.tmjr-hs-ims-register-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tmjr-hs-ims-register-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tmjr-hs-ims-register-card-head span {
    font-size: 0.82rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tmjr-hs-ims-register-card-head strong {
    min-width: 42px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    text-align: center;
}

.tmjr-hs-ims-register-card p {
    margin: 0;
    color: #334155;
    font-weight: 700;
}

.tmjr-hs-ims-register-card-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tmjr-hs-ims-metric {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.tmjr-hs-ims-metric-red {
    background: #fee2e2;
    color: #991b1b;
}

.tmjr-hs-ims-metric-amber {
    background: #fef3c7;
    color: #92400e;
}

.tmjr-hs-ims-metric-blue {
    background: #dbeafe;
    color: #1e40af;
}

@media (max-width: 1100px) {
    .tmjr-hs-ims-kpi-grid,
    .tmjr-hs-ims-register-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tmjr-hs-ims-kpi-grid,
    .tmjr-hs-ims-register-grid {
        grid-template-columns: 1fr;
    }
}


.tmjr-hs-ims-detail-panel {
    border-left: 4px solid #1d4ed8;
}

.tmjr-hs-ims-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tmjr-hs-ims-detail-field {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    min-width: 0;
}

.tmjr-hs-ims-detail-field-wide {
    grid-column: 1 / -1;
}

.tmjr-hs-ims-detail-field span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.tmjr-hs-ims-detail-field strong {
    color: #0f172a;
    display: block;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

@media (max-width: 782px) {
    .tmjr-hs-ims-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* IMS cross-linking */
.tmjr-hs-linked-record-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.tmjr-hs-linked-record-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(24, 64, 122, 0.18);
    background: rgba(24, 64, 122, 0.06);
    color: #18407a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.tmjr-hs-linked-record-pill:hover,
.tmjr-hs-linked-record-pill:focus {
    background: rgba(24, 64, 122, 0.12);
    border-color: rgba(24, 64, 122, 0.35);
    color: #12315e;
    text-decoration: none;
}

.tmjr-hs-ims-detail-field.tmjr-hs-ims-detail-field-wide strong .tmjr-hs-linked-record-list {
    margin-top: 6px;
}

/* IMS Import / Export */
.tmjr-hs-import-template-grid .tmjr-hs-card-actions {
    margin-top: 14px;
}

.tmjr-hs-note-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 900px) {
    .tmjr-hs-note-grid {
        grid-template-columns: 1fr;
    }
}

/* v1.10.56 IMS role refinement */
.tmjr-ims-readonly .tmjr-hs-header-actions a[href*="#tmjr-hs-"][href*="-form"],
.tmjr-ims-readonly .tmjr-hs-row-actions a[href*="#tmjr-hs-"][href*="-form"],
.tmjr-ims-readonly .tmjr-hs-row-actions form[method="post"],
.tmjr-ims-readonly form[method="post"],
.tmjr-ims-readonly details:has(form[method="post"]) {
    display: none !important;
}

.tmjr-hs-readonly-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.tmjr-ims-readonly .tmjr-hs-compliance-panel form[method="post"] + *,
.tmjr-ims-readonly .tmjr-hs-form-grid[method="post"] {
    display: none !important;
}

/* v1.10.61: IMS UI consolidation pass.
   These rules normalise IMS register/admin pages so Compliance, Legal,
   Audits, Documents, Training, NCRs, Reports and Import/Export share the
   same spacing, card rhythm, buttons, tables and responsive behaviour. */
.tmjr-ims-register-page .tmjr-hs-hero,
.tmjr-ims-register-page .tmjr-hs-compliance-hero {
    margin-bottom: 22px;
}

.tmjr-ims-register-page .tmjr-ha-dashboard-header {
    gap: 20px;
    align-items: flex-start;
}

.tmjr-ims-register-page .tmjr-ha-dashboard-header h1,
.tmjr-ims-register-page .tmjr-ha-dashboard-header h2 {
    margin: 0 0 8px;
    line-height: 1.15;
}

.tmjr-ims-register-page .tmjr-dashboard-subtitle,
.tmjr-ims-register-page .tmjr-hs-card-subtitle {
    max-width: 980px;
    color: #60708a;
    line-height: 1.55;
}

.tmjr-ims-register-page .tmjr-hs-header-actions,
.tmjr-ims-register-page .tmjr-hs-card-actions,
.tmjr-ims-register-page .tmjr-hs-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tmjr-ims-register-page .tmjr-hs-header-actions {
    justify-content: flex-end;
}

.tmjr-ims-register-page .tmjr-button,
.tmjr-ims-register-page button.tmjr-button,
.tmjr-ims-register-page input[type="submit"].tmjr-button,
.tmjr-ims-register-page .tmjr-hs-action-link {
    min-height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
}

.tmjr-ims-register-page .tmjr-button-small,
.tmjr-ims-register-page .tmjr-hs-action-link {
    min-height: 32px;
    padding: 7px 11px;
    font-size: 12px;
}

.tmjr-ims-register-page .tmjr-hs-button-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    line-height: 1;
}

.tmjr-ims-register-page .tmjr-hs-compliance-panel,
.tmjr-ims-register-page .tmjr-card {
    border-radius: 18px;
    margin-bottom: 22px;
}

.tmjr-ims-register-page .tmjr-hs-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15, 35, 65, 0.08);
}

.tmjr-ims-register-page .tmjr-hs-section-header h3 {
    margin: 0 0 5px;
    font-size: 20px;
    line-height: 1.2;
}

.tmjr-ims-register-page .tmjr-hs-summary-grid,
.tmjr-ims-register-page .tmjr-stats-grid.tmjr-hs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.tmjr-ims-register-page .tmjr-stat-card,
.tmjr-ims-register-page .tmjr-hs-stat-card {
    min-height: 118px;
    border-radius: 14px;
    text-decoration: none;
}

.tmjr-ims-register-page .tmjr-stat-number {
    line-height: 1;
}

.tmjr-ims-register-page .tmjr-hs-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.tmjr-ims-register-page .tmjr-hs-form-grid label,
.tmjr-ims-register-page .tmjr-hs-form-grid .tmjr-hs-field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 700;
    color: #132a46;
}

.tmjr-ims-register-page .tmjr-hs-form-grid input[type="text"],
.tmjr-ims-register-page .tmjr-hs-form-grid input[type="url"],
.tmjr-ims-register-page .tmjr-hs-form-grid input[type="date"],
.tmjr-ims-register-page .tmjr-hs-form-grid input[type="email"],
.tmjr-ims-register-page .tmjr-hs-form-grid input[type="file"],
.tmjr-ims-register-page .tmjr-hs-form-grid select,
.tmjr-ims-register-page .tmjr-hs-form-grid textarea,
.tmjr-ims-register-page .tmjr-hs-filter-row input,
.tmjr-ims-register-page .tmjr-hs-filter-row select {
    width: 100%;
    border: 1px solid #cfd9e8;
    border-radius: 11px;
    background: #fff;
    color: #10233f;
    padding: 10px 12px;
    min-height: 42px;
    box-shadow: none;
}

.tmjr-ims-register-page .tmjr-hs-form-grid textarea {
    min-height: 110px;
    resize: vertical;
}

.tmjr-ims-register-page .tmjr-hs-form-grid input:focus,
.tmjr-ims-register-page .tmjr-hs-form-grid select:focus,
.tmjr-ims-register-page .tmjr-hs-form-grid textarea:focus,
.tmjr-ims-register-page .tmjr-hs-filter-row input:focus,
.tmjr-ims-register-page .tmjr-hs-filter-row select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
}

.tmjr-ims-register-page .tmjr-hs-field-hint,
.tmjr-ims-register-page small.tmjr-hs-field-hint {
    color: #6c7c92;
    font-weight: 500;
    line-height: 1.45;
}

.tmjr-ims-register-page .tmjr-hs-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    align-items: end;
}

.tmjr-ims-register-page .tmjr-hs-table-wrap,
.tmjr-ims-register-page .tmjr-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(15, 35, 65, 0.08);
    border-radius: 14px;
    background: #fff;
}

.tmjr-ims-register-page table.tmjr-table,
.tmjr-ims-register-page table.tmjr-hs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 880px;
}

.tmjr-ims-register-page table.tmjr-table th,
.tmjr-ims-register-page table.tmjr-hs-table th {
    background: #f5f8fc;
    color: #55667d;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 800;
    white-space: nowrap;
}

.tmjr-ims-register-page table.tmjr-table th,
.tmjr-ims-register-page table.tmjr-table td,
.tmjr-ims-register-page table.tmjr-hs-table th,
.tmjr-ims-register-page table.tmjr-hs-table td {
    padding: 13px 14px;
    vertical-align: top;
    border-bottom: 1px solid rgba(15, 35, 65, 0.075);
}

.tmjr-ims-register-page table.tmjr-table tbody tr:last-child td,
.tmjr-ims-register-page table.tmjr-hs-table tbody tr:last-child td {
    border-bottom: 0;
}

.tmjr-ims-register-page .tmjr-hs-empty-card {
    border-radius: 15px;
    border: 1px dashed #cbd7e6;
    background: #f8fbff;
    padding: 18px;
    color: #53657b;
}

.tmjr-ims-register-page .tmjr-hs-empty-card strong {
    display: block;
    color: #0f2542;
    margin-bottom: 5px;
}

.tmjr-ims-register-page .tmjr-hs-note-grid,
.tmjr-ims-register-page .tmjr-ims-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.tmjr-ims-register-page .tmjr-status-badge,
.tmjr-ims-register-page .tmjr-hs-status-badge,
.tmjr-ims-register-page .tmjr-ims-link-pill {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.tmjr-ims-register-page .tmjr-ims-detail-panel {
    border-radius: 18px;
    margin-bottom: 22px;
}

.tmjr-ims-register-page .tmjr-ims-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

@media (max-width: 1100px) {
    .tmjr-ims-register-page .tmjr-ha-dashboard-header,
    .tmjr-ims-register-page .tmjr-hs-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .tmjr-ims-register-page .tmjr-hs-header-actions,
    .tmjr-ims-register-page .tmjr-hs-card-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 782px) {
    .tmjr-ims-register-page .tmjr-hs-form-grid,
    .tmjr-ims-register-page .tmjr-hs-filter-row,
    .tmjr-ims-register-page .tmjr-hs-summary-grid,
    .tmjr-ims-register-page .tmjr-stats-grid.tmjr-hs-stats-grid,
    .tmjr-ims-register-page .tmjr-hs-note-grid,
    .tmjr-ims-register-page .tmjr-ims-link-grid {
        grid-template-columns: 1fr;
    }

    .tmjr-ims-register-page .tmjr-button,
    .tmjr-ims-register-page .tmjr-hs-action-link {
        width: 100%;
    }

    .tmjr-ims-register-page table.tmjr-table,
    .tmjr-ims-register-page table.tmjr-hs-table {
        min-width: 720px;
    }
}

/* v1.10.64 IMS KPI / Trend Reporting */
.tmjr-hs-kpi-panel .tmjr-hs-section-header {
    align-items: flex-start;
    gap: 18px;
}

.tmjr-hs-inline-filter {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.tmjr-hs-inline-filter label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.tmjr-hs-inline-filter select {
    min-width: 210px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 9px 11px;
    background: #fff;
    color: #0f172a;
}

.tmjr-hs-kpi-grid {
    margin: 14px 0 18px;
}

.tmjr-hs-kpi-table td,
.tmjr-hs-kpi-table th {
    vertical-align: middle;
}

.tmjr-hs-kpi-number {
    display: inline-flex;
    min-width: 34px;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    background: #e0f2fe;
    color: #075985;
    font-weight: 800;
}

.tmjr-hs-kpi-number.tmjr-hs-kpi-alert {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 900px) {
    .tmjr-hs-inline-filter {
        width: 100%;
        margin-left: 0;
    }

    .tmjr-hs-inline-filter label,
    .tmjr-hs-inline-filter select,
    .tmjr-hs-inline-filter .tmjr-button {
        width: 100%;
    }
}

/* v1.10.65 IMS drill-down links */
.tmjr-hs-kpi-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tmjr-button.tmjr-button-danger-soft {
    border-color: rgba(220, 38, 38, 0.32);
    background: rgba(254, 242, 242, 0.92);
    color: #991b1b;
}

.tmjr-button.tmjr-button-danger-soft:hover,
.tmjr-button.tmjr-button-danger-soft:focus {
    border-color: rgba(220, 38, 38, 0.55);
    background: #fee2e2;
    color: #7f1d1d;
}

/* IMS bulk maintenance tools */
.tmjr-hs-bulk-maintenance-panel {
    border-left: 4px solid rgba(185, 28, 28, 0.35);
}

.tmjr-hs-bulk-maintenance-form {
    align-items: end;
}

.tmjr-hs-bulk-maintenance-notes {
    margin-top: 16px;
}

/* v1.10.67 IMS Activity Log */
.tmjr-hs-ims-activity-page .tmjr-ims-activity-summary .tmjr-stat-card strong {
    display: block;
    margin-top: 8px;
}

.tmjr-ims-activity-table small {
    color: #64748b;
    font-weight: 600;
}

.tmjr-ims-activity-result-success {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.tmjr-ims-activity-result-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.tmjr-ims-activity-result-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.tmjr-ims-activity-result-info,
.tmjr-ims-activity-result- {
    background: #e0f2fe;
    color: #075985;
    border-color: #bae6fd;
}

/* v1.10.68 - H&S / IMS Stabilisation & QA diagnostics */
.tmjr-hs-qa-panel {
    overflow: hidden;
}

.tmjr-hs-qa-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.tmjr-hs-qa-summary > div,
.tmjr-hs-qa-permission {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.78);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.tmjr-hs-qa-summary strong {
    display: block;
    color: #0f172a;
    font-size: 1.2rem;
    line-height: 1.1;
}

.tmjr-hs-qa-summary span,
.tmjr-hs-qa-permission span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    margin-top: 4px;
}

.tmjr-hs-qa-table-wrap {
    margin-top: 14px;
}

.tmjr-hs-qa-table code {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 8px;
    color: #334155;
    font-size: 0.78rem;
    white-space: nowrap;
}

.tmjr-hs-qa-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid transparent;
    white-space: nowrap;
}

.tmjr-hs-qa-pill.is-ok,
.tmjr-hs-qa-permission.is-allowed {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.tmjr-hs-qa-pill.is-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.tmjr-hs-qa-pill.is-missing,
.tmjr-hs-qa-permission.is-denied {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.tmjr-hs-qa-permission-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.tmjr-hs-qa-permission strong {
    display: block;
    color: #0f172a;
    font-size: 0.92rem;
}

.tmjr-hs-qa-permission small {
    display: block;
    margin-top: 6px;
    font-size: 0.76rem;
}

@media (max-width: 1180px) {
    .tmjr-hs-qa-summary,
    .tmjr-hs-qa-permission-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .tmjr-hs-qa-summary,
    .tmjr-hs-qa-permission-grid {
        grid-template-columns: 1fr;
    }
}


/* v1.10.69 IMS Setup Wizard */
.tmjr-hs-ims-setup-page .tmjr-ims-setup-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tmjr-ims-setup-panel {
    margin-top: 18px;
}
.tmjr-ims-check-grid,
.tmjr-ims-readiness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.tmjr-ims-check-card,
.tmjr-ims-readiness-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.tmjr-ims-check-card input {
    margin-top: 3px;
}
.tmjr-ims-full-field {
    display: block;
    margin-top: 16px;
}
.tmjr-ims-setup-grid label,
.tmjr-ims-full-field {
    font-weight: 700;
    color: #172033;
}
.tmjr-ims-setup-grid select,
.tmjr-ims-full-field textarea {
    margin-top: 7px;
}
.tmjr-ims-setup-actions {
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.tmjr-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    font-weight: 700;
}
.tmjr-ims-readiness-card {
    flex-direction: column;
    gap: 4px;
}
.tmjr-ims-readiness-card.is-complete {
    border-color: rgba(22, 163, 74, 0.25);
    background: #f0fdf4;
}
.tmjr-ims-readiness-card.is-incomplete {
    border-color: rgba(245, 158, 11, 0.28);
    background: #fffbeb;
}
.tmjr-ims-readiness-card span {
    color: #64748b;
    font-size: 13px;
}
@media (max-width: 980px) {
    .tmjr-hs-ims-setup-page .tmjr-ims-setup-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .tmjr-hs-ims-setup-page .tmjr-ims-setup-summary-grid {
        grid-template-columns: 1fr;
    }
}


/* v1.10.70 - H&S / IMS visual correction pass
   Keeps the dashboard compact and brings the later IMS registers back in line with
   the Compliance Register form/filter rhythm. */
.tmjr-hs-dashboard .tmjr-hs-compliance-dashboard-card,
.tmjr-hs-dashboard .tmjr-hs-ims-dashboard-card,
.tmjr-hs-wrap .tmjr-hs-compliance-dashboard-card,
.tmjr-hs-wrap .tmjr-hs-ims-dashboard-card {
    min-height: auto !important;
}

.tmjr-hs-compliance-dashboard-card .tmjr-hs-compliance-dashboard-grid,
.tmjr-hs-ims-dashboard-card .tmjr-hs-ims-register-grid {
    align-items: stretch;
}

.tmjr-hs-compliance-dashboard-card .tmjr-hs-compliance-due-list,
.tmjr-hs-compliance-dashboard-card .tmjr-hs-compliance-iso-list {
    min-height: 0 !important;
}

.tmjr-hs-compliance-dashboard-card .tmjr-empty-state-small {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    padding: 18px;
    border: 1px dashed rgba(100, 116, 139, 0.22);
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.tmjr-hs-dashboard .tmjr-hs-compliance-dashboard-card,
.tmjr-hs-dashboard .tmjr-hs-ims-dashboard-card {
    padding-bottom: 22px !important;
}

.tmjr-ims-register-page .tmjr-hs-filter-grid,
.tmjr-ims-register-page .tmjr-hs-compliance-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 14px;
    align-items: end;
}

.tmjr-ims-register-page .tmjr-hs-filter-grid label,
.tmjr-ims-register-page .tmjr-hs-compliance-filter-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    color: #132a46;
    font-size: 13px;
    font-weight: 800;
}

.tmjr-ims-register-page .tmjr-hs-filter-grid input,
.tmjr-ims-register-page .tmjr-hs-filter-grid select,
.tmjr-ims-register-page .tmjr-hs-compliance-filter-grid input,
.tmjr-ims-register-page .tmjr-hs-compliance-filter-grid select {
    width: 100% !important;
    min-height: 42px;
    border: 1px solid #cfd9e8;
    border-radius: 11px;
    background: #fff;
    color: #10233f;
    padding: 10px 12px;
    box-shadow: none;
}

.tmjr-ims-register-page .tmjr-hs-compliance-form-grid,
.tmjr-ims-register-page form.tmjr-hs-form-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 18px;
    align-items: start;
}

.tmjr-ims-register-page .tmjr-hs-compliance-form-grid label,
.tmjr-ims-register-page form.tmjr-hs-form-grid label,
.tmjr-ims-register-page .tmjr-hs-compliance-form-grid .tmjr-hs-field-group,
.tmjr-ims-register-page form.tmjr-hs-form-grid .tmjr-hs-field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    color: #132a46;
    font-size: 13px;
    font-weight: 800;
}

.tmjr-ims-register-page .tmjr-hs-compliance-form-grid input[type="text"],
.tmjr-ims-register-page .tmjr-hs-compliance-form-grid input[type="url"],
.tmjr-ims-register-page .tmjr-hs-compliance-form-grid input[type="date"],
.tmjr-ims-register-page .tmjr-hs-compliance-form-grid input[type="email"],
.tmjr-ims-register-page .tmjr-hs-compliance-form-grid select,
.tmjr-ims-register-page .tmjr-hs-compliance-form-grid textarea,
.tmjr-ims-register-page form.tmjr-hs-form-grid input[type="text"],
.tmjr-ims-register-page form.tmjr-hs-form-grid input[type="url"],
.tmjr-ims-register-page form.tmjr-hs-form-grid input[type="date"],
.tmjr-ims-register-page form.tmjr-hs-form-grid input[type="email"],
.tmjr-ims-register-page form.tmjr-hs-form-grid select,
.tmjr-ims-register-page form.tmjr-hs-form-grid textarea {
    width: 100% !important;
    min-height: 44px;
    border: 1px solid #cfd9e8;
    border-radius: 12px;
    background: #fff;
    color: #10233f;
    padding: 10px 12px;
    box-shadow: none;
}

.tmjr-ims-register-page .tmjr-hs-compliance-form-grid textarea,
.tmjr-ims-register-page form.tmjr-hs-form-grid textarea,
.tmjr-ims-register-page .tmjr-hs-compliance-form-grid select[multiple],
.tmjr-ims-register-page form.tmjr-hs-form-grid select[multiple] {
    min-height: 118px;
}

.tmjr-ims-register-page .tmjr-hs-span-2,
.tmjr-ims-register-page .tmjr-hs-field-wide {
    grid-column: span 2;
}

.tmjr-ims-register-page .tmjr-hs-form-actions,
.tmjr-ims-register-page .tmjr-hs-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    align-self: end;
    min-height: 44px;
}

.tmjr-ims-register-page .tmjr-hs-compliance-form-grid input:focus,
.tmjr-ims-register-page .tmjr-hs-compliance-form-grid select:focus,
.tmjr-ims-register-page .tmjr-hs-compliance-form-grid textarea:focus,
.tmjr-ims-register-page form.tmjr-hs-form-grid input:focus,
.tmjr-ims-register-page form.tmjr-hs-form-grid select:focus,
.tmjr-ims-register-page form.tmjr-hs-form-grid textarea:focus,
.tmjr-ims-register-page .tmjr-hs-filter-grid input:focus,
.tmjr-ims-register-page .tmjr-hs-filter-grid select:focus,
.tmjr-ims-register-page .tmjr-hs-compliance-filter-grid input:focus,
.tmjr-ims-register-page .tmjr-hs-compliance-filter-grid select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
    outline: none;
}

.tmjr-ims-register-page .tmjr-button,
.tmjr-hs-dashboard .tmjr-button {
    text-decoration: none;
}

.tmjr-ims-register-page .tmjr-hs-compliance-panel {
    overflow: visible;
}

@media (max-width: 1350px) {
    .tmjr-ims-register-page .tmjr-hs-compliance-form-grid,
    .tmjr-ims-register-page form.tmjr-hs-form-grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }

    .tmjr-ims-register-page .tmjr-hs-filter-grid,
    .tmjr-ims-register-page .tmjr-hs-compliance-filter-grid {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

@media (max-width: 980px) {
    .tmjr-ims-register-page .tmjr-hs-compliance-form-grid,
    .tmjr-ims-register-page form.tmjr-hs-form-grid,
    .tmjr-ims-register-page .tmjr-hs-filter-grid,
    .tmjr-ims-register-page .tmjr-hs-compliance-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .tmjr-ims-register-page .tmjr-hs-compliance-form-grid,
    .tmjr-ims-register-page form.tmjr-hs-form-grid,
    .tmjr-ims-register-page .tmjr-hs-filter-grid,
    .tmjr-ims-register-page .tmjr-hs-compliance-filter-grid {
        grid-template-columns: 1fr;
    }

    .tmjr-ims-register-page .tmjr-hs-span-2,
    .tmjr-ims-register-page .tmjr-hs-field-wide {
        grid-column: 1 / -1;
    }
}


/* H&S / IMS v1.10.72 - reduce heavy IMS forms and dashboard blank space */
.tmjr-hs-clickable-card {
    cursor: pointer;
}

.tmjr-hs-clickable-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.32);
    outline-offset: 4px;
}

.tmjr-hs-dashboard .tmjr-hs-compliance-dashboard-card,
.tmjr-hs-dashboard .tmjr-hs-ims-dashboard-card {
    margin: 18px 0 !important;
    padding: 22px !important;
    min-height: 0 !important;
}

.tmjr-hs-dashboard .tmjr-hs-compliance-dashboard-grid,
.tmjr-hs-dashboard .tmjr-hs-ims-register-grid {
    margin-top: 14px !important;
    min-height: 0 !important;
}

.tmjr-hs-dashboard .tmjr-hs-compliance-due-list,
.tmjr-hs-dashboard .tmjr-hs-compliance-iso-list,
.tmjr-hs-dashboard .tmjr-hs-ims-register-card {
    min-height: 0 !important;
}

.tmjr-hs-dashboard .tmjr-empty-state-small {
    min-height: 56px !important;
    padding: 12px 14px !important;
}

/* Make IMS register filters look like proper Hatton Assist controls rather than browser defaults. */
.tmjr-ims-register-page .tmjr-hs-filter-grid,
.tmjr-ims-register-page .tmjr-hs-compliance-filter-grid,
.tmjr-ims-register-page .tmjr-hs-compliance-filters {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
    gap: 14px !important;
    align-items: end !important;
}

.tmjr-ims-register-page .tmjr-hs-filter-grid label,
.tmjr-ims-register-page .tmjr-hs-compliance-filter-grid label,
.tmjr-ims-register-page .tmjr-hs-compliance-filters label {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    font-weight: 800 !important;
    color: #10233f !important;
}

.tmjr-ims-register-page .tmjr-hs-filter-grid input,
.tmjr-ims-register-page .tmjr-hs-filter-grid select,
.tmjr-ims-register-page .tmjr-hs-compliance-filter-grid input,
.tmjr-ims-register-page .tmjr-hs-compliance-filter-grid select,
.tmjr-ims-register-page .tmjr-hs-compliance-filters input,
.tmjr-ims-register-page .tmjr-hs-compliance-filters select {
    appearance: none;
    width: 100% !important;
    min-height: 42px !important;
    border: 1px solid #cfd9e8 !important;
    border-radius: 12px !important;
    background-color: #fff !important;
    color: #10233f !important;
    padding: 10px 12px !important;
    box-shadow: none !important;
}

/* Reduce the visual weight of big IMS add/edit forms by using a tighter, readable layout. */
.tmjr-ims-register-page .tmjr-hs-compliance-form-grid,
.tmjr-ims-register-page form.tmjr-hs-form-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr)) !important;
    gap: 16px 18px !important;
}

.tmjr-ims-register-page .tmjr-hs-span-2,
.tmjr-ims-register-page .tmjr-hs-field-wide {
    grid-column: span 1 !important;
}

.tmjr-ims-register-page .tmjr-hs-span-full,
.tmjr-ims-register-page label.tmjr-hs-span-full,
.tmjr-ims-register-page .tmjr-hs-form-actions {
    grid-column: 1 / -1 !important;
}

.tmjr-ims-register-page .tmjr-hs-compliance-form-grid textarea,
.tmjr-ims-register-page form.tmjr-hs-form-grid textarea {
    min-height: 92px !important;
    resize: vertical;
}

.tmjr-ims-register-page .tmjr-hs-compliance-form-grid select[multiple],
.tmjr-ims-register-page form.tmjr-hs-form-grid select[multiple] {
    min-height: 96px !important;
}

.tmjr-ims-register-page .tmjr-hs-compliance-panel .tmjr-hs-section-header {
    margin-bottom: 16px !important;
}

.tmjr-ims-register-page .tmjr-hs-form-actions {
    justify-content: flex-end !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.tmjr-ims-register-page .tmjr-hs-form-actions .tmjr-button {
    min-width: 190px;
    justify-content: center;
}

/* Notes and narrative boxes should read as deliberate full-width sections, not stranded half-fields. */
.tmjr-ims-register-page label.tmjr-hs-span-full textarea[name="notes"],
.tmjr-ims-register-page label.tmjr-hs-span-full textarea {
    min-height: 110px !important;
}

@media (max-width: 1200px) {
    .tmjr-ims-register-page .tmjr-hs-compliance-form-grid,
    .tmjr-ims-register-page form.tmjr-hs-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .tmjr-ims-register-page .tmjr-hs-compliance-form-grid,
    .tmjr-ims-register-page form.tmjr-hs-form-grid {
        grid-template-columns: 1fr !important;
    }

    .tmjr-ims-register-page .tmjr-hs-span-2,
    .tmjr-ims-register-page .tmjr-hs-field-wide,
    .tmjr-ims-register-page .tmjr-hs-span-full,
    .tmjr-ims-register-page .tmjr-hs-form-actions {
        grid-column: 1 / -1 !important;
    }
}


/* H&S / IMS v1.10.72 - restore previous IMS form layout; polish notes only */
.tmjr-hs-clickable-card {
    cursor: pointer;
}

.tmjr-hs-clickable-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.32);
    outline-offset: 4px;
}

/* Keep dashboard sections from becoming overly deep when there is little data. */
.tmjr-hs-dashboard .tmjr-hs-compliance-dashboard-card,
.tmjr-hs-dashboard .tmjr-hs-ims-dashboard-card {
    margin: 18px 0 !important;
    padding: 22px !important;
    min-height: 0 !important;
}

.tmjr-hs-dashboard .tmjr-hs-compliance-dashboard-grid,
.tmjr-hs-dashboard .tmjr-hs-ims-register-grid {
    margin-top: 14px !important;
    min-height: 0 !important;
}

.tmjr-hs-dashboard .tmjr-hs-compliance-due-list,
.tmjr-hs-dashboard .tmjr-hs-compliance-iso-list,
.tmjr-hs-dashboard .tmjr-hs-ims-register-card,
.tmjr-hs-dashboard .tmjr-empty-state-small {
    min-height: 0 !important;
}

.tmjr-hs-dashboard .tmjr-empty-state-small {
    padding: 12px 14px !important;
}

/* Restore the earlier IMS form structure. Only Notes gets deliberate full-row handling. */
.tmjr-ims-register-page label.tmjr-hs-notes-field,
.tmjr-ims-register-page .tmjr-hs-notes-field,
.tmjr-ims-register-page label:has(textarea[name="notes"]) {
    grid-column: 1 / -1 !important;
}

.tmjr-ims-register-page label.tmjr-hs-notes-field textarea,
.tmjr-ims-register-page .tmjr-hs-notes-field textarea,
.tmjr-ims-register-page label:has(textarea[name="notes"]) textarea {
    width: 100% !important;
    min-height: 110px !important;
    resize: vertical;
}

.tmjr-ims-register-page .tmjr-hs-form-actions {
    align-self: end;
}

/* H&S Stage 2B - IMS Audit Programme usability */
.tmjr-hs-audit-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 18px;
    margin: 18px 0;
}

.tmjr-hs-audit-command-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.tmjr-hs-audit-command-card-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.tmjr-hs-audit-due-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.tmjr-hs-audit-due-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    color: inherit;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.tmjr-hs-audit-due-item:hover,
.tmjr-hs-audit-due-item:focus {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.26);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    outline: none;
}

.tmjr-hs-audit-due-item strong,
.tmjr-hs-audit-due-item small {
    display: block;
}

.tmjr-hs-audit-due-item small {
    margin-top: 3px;
    color: #64748b;
}

.tmjr-hs-audit-due-meta {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
    text-align: right;
    white-space: nowrap;
}

.tmjr-hs-audit-checklist {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.tmjr-hs-audit-checklist > div {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 2px;
    align-items: start;
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.tmjr-hs-audit-checklist .dashicons {
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: #047857;
    font-size: 18px;
}

.tmjr-hs-audit-checklist strong,
.tmjr-hs-audit-checklist small {
    display: block;
}

.tmjr-hs-audit-checklist small {
    color: #64748b;
    line-height: 1.45;
}

.tmjr-hs-audit-progress {
    height: 8px;
    min-width: 150px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
    margin-bottom: 8px;
}

.tmjr-hs-audit-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #10b981);
}

.tmjr-hs-audit-readiness-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 260px;
}

.tmjr-hs-audit-readiness-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
}

.tmjr-hs-audit-readiness-ok {
    background: #ecfdf5;
    color: #047857;
    border-color: #bbf7d0;
}

.tmjr-hs-audit-readiness-info {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.tmjr-hs-audit-readiness-warn {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.tmjr-hs-audit-readiness-risk {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

@media (max-width: 1100px) {
    .tmjr-hs-audit-command-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .tmjr-hs-audit-due-item,
    .tmjr-hs-audit-due-meta {
        align-items: flex-start;
        flex-direction: column;
        text-align: left;
    }

    .tmjr-hs-audit-progress {
        min-width: 100%;
    }
}

/* PAS 2080 Framework Matrix */
.tmjr-hs-pas-framework-page .tmjr-hs-compliance-stats {
    margin-top: 22px;
}

.tmjr-hs-pas-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
    margin: 18px 0;
}

.tmjr-hs-pas-command-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.tmjr-hs-pas-command-card-primary {
    background: linear-gradient(135deg, rgba(239, 253, 246, 0.96), rgba(255, 255, 255, 0.98));
}

.tmjr-hs-pas-guidance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.tmjr-hs-pas-guidance-grid div,
.tmjr-hs-pas-priority-list li {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    padding: 14px;
}

.tmjr-hs-pas-guidance-grid strong,
.tmjr-hs-pas-priority-list strong {
    display: block;
    color: #0f2f4a;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.tmjr-hs-pas-guidance-grid span,
.tmjr-hs-pas-priority-list span {
    display: block;
    color: #587083;
    font-size: 0.86rem;
    line-height: 1.45;
}

.tmjr-hs-pas-priority-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding-left: 0;
    list-style: none;
    counter-reset: pasPriority;
}

.tmjr-hs-pas-priority-list li {
    position: relative;
    padding-left: 50px;
}

.tmjr-hs-pas-priority-list li::before {
    counter-increment: pasPriority;
    content: counter(pasPriority);
    position: absolute;
    left: 14px;
    top: 14px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #0f6b50;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 800;
}

.tmjr-hs-pas-framework-table td:nth-child(2),
.tmjr-hs-pas-framework-table td:nth-child(3) {
    min-width: 240px;
    line-height: 1.45;
}

.tmjr-hs-pas-framework-table td:nth-child(4),
.tmjr-hs-pas-framework-table td:nth-child(5),
.tmjr-hs-pas-framework-table td:nth-child(6) {
    text-align: center;
    font-weight: 800;
    color: #0f2f4a;
}

.tmjr-hs-pas-framework-table .tmjr-hs-status-pill + small {
    display: block;
    margin-top: 6px;
    color: #587083;
    font-size: 0.78rem;
}

@media (max-width: 1100px) {
    .tmjr-hs-pas-command-grid,
    .tmjr-hs-pas-guidance-grid {
        grid-template-columns: 1fr;
    }
}

/* PAS 2080 management review */
.tmjr-hs-pas-management-review-page .tmjr-hs-pas-review-position-card {
    border-left: 5px solid #1f7a4d;
}

.tmjr-hs-pas-review-statement {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: #243447;
}

.tmjr-hs-pas-management-review-page .tmjr-hs-pas-priority-list .tmjr-button {
    margin-top: 8px;
    align-self: flex-start;
}

/* PAS 2080 Audit Pack */
.tmjr-hs-pas-audit-pack-page .tmjr-hs-pas-review-position-card {
    border-left: 5px solid #1f6f43;
}

.tmjr-hs-pas-audit-pack-page .tmjr-hs-pas-guidance-grid a.tmjr-button {
    align-self: flex-start;
    margin-top: 6px;
}

@media print {
    .tmjr-hs-pas-audit-pack-page .tmjr-topbar,
    .tmjr-hs-pas-audit-pack-page .tmjr-nav,
    .tmjr-hs-pas-audit-pack-page .tmjr-hs-header-actions,
    .tmjr-hs-pas-audit-pack-page .tmjr-button {
        display: none !important;
    }

    .tmjr-hs-pas-audit-pack-page.tmjr-wrap,
    .tmjr-hs-pas-audit-pack-page .tmjr-ha-dashboard-card,
    .tmjr-hs-pas-audit-pack-page .tmjr-card {
        box-shadow: none !important;
        border-color: #d6dde6 !important;
        break-inside: avoid;
    }

    .tmjr-hs-pas-audit-pack-page .tmjr-hs-table-wrap {
        overflow: visible !important;
    }
}


/* Process flow strips */
.tmjr-hs-process-strip {
    margin: 22px 0 12px;
}
.tmjr-hs-process-strip-head {
    margin-bottom: 12px;
}
.tmjr-hs-process-strip-head h3 {
    margin: 0 0 4px;
    color: #0f2f4a;
    font-size: 1.02rem;
}
.tmjr-hs-process-flow {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    padding: 6px 18px 10px 0;
    scrollbar-width: thin;
}
.tmjr-hs-process-step {
    --tmjr-step-color: #325fda;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 156px;
    min-height: 64px;
    padding: 12px 26px 12px 18px;
    background: var(--tmjr-step-color);
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
    z-index: 1;
}
.tmjr-hs-process-step + .tmjr-hs-process-step {
    margin-left: 18px;
}
.tmjr-hs-process-step::after {
    content: '';
    position: absolute;
    top: 0;
    right: -18px;
    width: 0;
    height: 0;
    border-top: 32px solid transparent;
    border-bottom: 32px solid transparent;
    border-left: 18px solid var(--tmjr-step-color);
    z-index: 3;
}
.tmjr-hs-process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 32px solid transparent;
    border-bottom: 32px solid transparent;
    border-left: 18px solid #f4f7fb;
    z-index: 2;
}
.tmjr-hs-process-step.is-first::before,
.tmjr-hs-process-step.is-last::after {
    display: none;
}
.tmjr-hs-process-step:hover {
    transform: translateY(-2px);
    filter: saturate(1.02);
}
.tmjr-hs-process-step.is-upcoming {
    opacity: 0.74;
}
.tmjr-hs-process-step.is-completed {
    opacity: 0.94;
}
.tmjr-hs-process-step.is-active {
    opacity: 1;
    box-shadow: 0 16px 30px rgba(15, 47, 74, 0.18);
    outline: 3px solid rgba(255, 255, 255, 0.52);
    outline-offset: -3px;
}
.tmjr-hs-process-step-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 4;
}
.tmjr-hs-process-step-inner small {
    margin: 0;
    font-size: 0.69rem;
    line-height: 1.1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.86;
    color: inherit;
}
.tmjr-hs-process-step-inner strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.25;
    color: inherit;
}
@media (max-width: 900px) {
    .tmjr-hs-process-step {
        min-width: 138px;
    }
}


/* v1.10.87 record detail workspace/process alignment */
.tmjr-hs-record-detail-page .tmjr-hs-detail-main .tmjr-hs-workspace-shell {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.tmjr-hs-record-detail-page .tmjr-hs-workspace-shell .tmjr-hs-process-strip {
    margin-top: 14px;
    margin-bottom: 18px;
}

.tmjr-hs-record-detail-page .tmjr-hs-management-sticky {
    display: block;
    width: 100%;
}

.tmjr-hs-record-detail-page .tmjr-hs-management-details {
    width: 100%;
}

.tmjr-hs-record-detail-page .tmjr-hs-management-panel-body {
    width: 100%;
    box-sizing: border-box;
}

.tmjr-hs-record-detail-page .tmjr-hs-journey-overview,
.tmjr-hs-record-detail-page .tmjr-hs-journey-path,
.tmjr-hs-record-detail-page .tmjr-hs-journey-steps {
    display: none !important;
}

.tmjr-hs-record-detail-page .tmjr-hs-detail-main .tmjr-hs-workspace-shell .tmjr-hs-process-strip,
.tmjr-hs-record-detail-page .tmjr-hs-detail-main .tmjr-hs-workspace-shell .tmjr-hs-process-flow,
.tmjr-hs-record-detail-page .tmjr-hs-detail-main .tmjr-hs-workspace-shell .tmjr-hs-management-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}


/* v1.10.88 record detail case journey polish */
.tmjr-hs-record-detail-page .tmjr-hs-workspace-shell .tmjr-hs-process-strip {
    margin: 12px 0 20px;
    padding: 0;
}

.tmjr-hs-record-detail-page .tmjr-hs-workspace-shell .tmjr-hs-process-strip-head {
    margin-bottom: 10px;
}

.tmjr-hs-record-detail-page .tmjr-hs-workspace-shell .tmjr-hs-process-strip-head .tmjr-module-eyebrow {
    display: none;
}

.tmjr-hs-record-detail-page .tmjr-hs-workspace-shell .tmjr-hs-process-strip-head h3 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.tmjr-hs-record-detail-page .tmjr-hs-workspace-shell .tmjr-hs-process-flow {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 8px 18px 12px 0;
}

.tmjr-hs-record-detail-page .tmjr-hs-workspace-shell .tmjr-hs-process-step {
    flex: 1 1 0;
    min-width: 0;
    min-height: 64px;
    padding: 12px 30px 12px 18px;
}

.tmjr-hs-record-detail-page .tmjr-hs-workspace-shell .tmjr-hs-process-step-inner strong {
    font-size: 0.92rem;
}

.tmjr-hs-record-detail-page .tmjr-hs-workspace-shell .tmjr-hs-process-step-inner small {
    font-size: 0.68rem;
}

@media (max-width: 1100px) {
    .tmjr-hs-record-detail-page .tmjr-hs-workspace-shell .tmjr-hs-process-flow {
        overflow-x: auto;
    }

    .tmjr-hs-record-detail-page .tmjr-hs-workspace-shell .tmjr-hs-process-step {
        flex: 0 0 160px;
    }
}


/* Linked action visibility */
.tmjr-hs-linked-action-summary {
    display: grid;
    gap: 12px;
    width: 100%;
}

.tmjr-hs-linked-action-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    gap: 10px;
}

.tmjr-hs-linked-action-metric {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: #ffffff;
    padding: 10px 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.tmjr-hs-linked-action-metric strong {
    display: block;
    color: #0f2f4a;
    font-size: 1.15rem;
    line-height: 1;
}

.tmjr-hs-linked-action-metric small {
    display: block;
    color: #587083;
    font-size: 0.76rem;
    margin-top: 4px;
}

.tmjr-hs-linked-action-metric-active {
    border-color: rgba(50, 95, 218, 0.24);
    background: #f4f8ff;
}

.tmjr-hs-linked-action-metric-attention {
    border-color: rgba(217, 119, 6, 0.25);
    background: #fff8ed;
}

.tmjr-hs-linked-action-metric-danger {
    border-color: rgba(220, 38, 38, 0.24);
    background: #fff1f2;
}

.tmjr-hs-linked-action-metric-complete {
    border-color: rgba(47, 168, 107, 0.24);
    background: #f0fbf5;
}

.tmjr-hs-linked-action-list {
    display: grid;
    gap: 8px;
}

.tmjr-hs-linked-action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 11px 12px;
    text-decoration: none;
    color: inherit;
}

.tmjr-hs-linked-action-item:hover {
    border-color: rgba(50, 95, 218, 0.28);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.tmjr-hs-linked-action-item strong {
    display: block;
    color: #0f2f4a;
    font-size: 0.9rem;
}

.tmjr-hs-linked-action-item small {
    display: block;
    color: #587083;
    margin-top: 3px;
    font-size: 0.78rem;
}

.tmjr-hs-linked-action-item em {
    font-style: normal;
    white-space: nowrap;
}

.tmjr-hs-action-summary-empty {
    border: 1px dashed rgba(15, 23, 42, 0.16);
    border-radius: 14px;
    background: #f8fafc;
    color: #587083;
    padding: 12px 14px;
}

@media (max-width: 980px) {
    .tmjr-hs-linked-action-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tmjr-hs-linked-action-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* H&S Attention Centre */
.tmjr-hs-attention-page .tmjr-hs-attention-hero {
    overflow: visible;
}

.tmjr-hs-attention-stats {
    margin-top: 22px;
}

.tmjr-hs-attention-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 18px;
    margin: 18px 0;
}

.tmjr-hs-attention-panel,
.tmjr-hs-attention-section-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.tmjr-hs-attention-priority-panel {
    border-left: 5px solid #2f80ed;
}

.tmjr-hs-attention-queue,
.tmjr-hs-attention-mini-list,
.tmjr-hs-attention-quick-links {
    display: grid;
    gap: 10px;
}

.tmjr-hs-attention-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #ffffff;
    color: #0f2f4a;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tmjr-hs-attention-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
    border-color: rgba(47, 128, 237, 0.25);
}

.tmjr-hs-attention-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #2f80ed;
    box-shadow: 0 0 0 5px rgba(47, 128, 237, 0.12);
}

.tmjr-hs-attention-item-danger .tmjr-hs-attention-status-dot {
    background: #dc2626;
    box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.12);
}

.tmjr-hs-attention-item-warning .tmjr-hs-attention-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.14);
}

.tmjr-hs-attention-item-main {
    min-width: 0;
}

.tmjr-hs-attention-kicker,
.tmjr-hs-attention-mini-list a span {
    display: block;
    color: #587083;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tmjr-hs-attention-item-main strong,
.tmjr-hs-attention-mini-list a strong,
.tmjr-hs-attention-quick-links a strong {
    display: block;
    color: #0f2f4a;
    font-size: 0.95rem;
    line-height: 1.35;
}

.tmjr-hs-attention-item-main small,
.tmjr-hs-attention-mini-list a small,
.tmjr-hs-attention-quick-links a span {
    display: block;
    color: #587083;
    font-size: 0.82rem;
    line-height: 1.35;
    margin-top: 3px;
}

.tmjr-hs-attention-date {
    color: #0f2f4a;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.tmjr-hs-attention-quick-links a,
.tmjr-hs-attention-mini-list a {
    display: block;
    padding: 12px 13px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(248, 251, 253, 0.86);
    text-decoration: none;
}

.tmjr-hs-attention-quick-links a:hover,
.tmjr-hs-attention-mini-list a:hover {
    border-color: rgba(47, 128, 237, 0.28);
    background: #ffffff;
}

.tmjr-hs-attention-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.tmjr-hs-attention-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.tmjr-hs-attention-metric {
    padding: 11px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: #f8fbfd;
    text-decoration: none;
}

.tmjr-hs-attention-metric span {
    display: block;
    color: #587083;
    font-size: 0.75rem;
    font-weight: 800;
}

.tmjr-hs-attention-metric strong {
    display: block;
    color: #0f2f4a;
    font-size: 1.35rem;
    line-height: 1.1;
    margin-top: 3px;
}

.tmjr-hs-attention-metric-danger {
    background: rgba(254, 242, 242, 0.92);
    border-color: rgba(220, 38, 38, 0.18);
}

.tmjr-hs-attention-metric-warning {
    background: rgba(255, 251, 235, 0.92);
    border-color: rgba(245, 158, 11, 0.22);
}

.tmjr-hs-attention-metric-good {
    background: rgba(240, 253, 244, 0.86);
    border-color: rgba(34, 197, 94, 0.18);
}

.tmjr-hs-attention-metric-info {
    background: rgba(239, 246, 255, 0.9);
    border-color: rgba(47, 128, 237, 0.18);
}

@media (max-width: 1100px) {
    .tmjr-hs-attention-layout,
    .tmjr-hs-attention-section-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .tmjr-hs-attention-metrics {
        grid-template-columns: 1fr;
    }

    .tmjr-hs-attention-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .tmjr-hs-attention-date {
        grid-column: 2;
    }
}


/* H&S usability hardening */
.tmjr-hs-attention-scope-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(50, 95, 218, 0.16);
    background: rgba(239, 246, 255, 0.82);
    color: #2b4860;
    font-size: 0.9rem;
}

.tmjr-hs-attention-item-main em,
.tmjr-hs-attention-mini-list a em {
    display: block;
    margin-top: 6px;
    color: #0f6b50;
    font-style: normal;
    font-size: 0.8rem;
    line-height: 1.35;
}

.tmjr-hs-dashboard-attention-callout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 16px 0 18px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(47, 168, 107, 0.18);
    background: linear-gradient(135deg, rgba(239, 253, 246, 0.96), rgba(255, 255, 255, 0.96));
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.tmjr-hs-dashboard-attention-callout strong {
    display: block;
    color: #0f2f4a;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.tmjr-hs-dashboard-attention-callout span {
    display: block;
    color: #587083;
    font-size: 0.88rem;
}

@media (max-width: 782px) {
    .tmjr-hs-dashboard-attention-callout {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Environmental Aspects & Impacts */
.tmjr-hs-environmental-aspects-page .tmjr-hs-compliance-table td:nth-child(3) strong {
    display: block;
    font-size: 1.15rem;
    color: #0f2f4a;
}

.tmjr-hs-environmental-aspects-page .tmjr-hs-compliance-table td small {
    display: block;
    margin-top: 4px;
    color: #587083;
    line-height: 1.4;
}

.tmjr-hs-environmental-aspects-page .tmjr-hs-ims-detail-field-wide .tmjr-hs-linked-action-summary {
    margin-top: 2px;
}


/* Training matrix / competence readiness */
.tmjr-hs-training-readiness-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
    margin: 18px 0;
}

.tmjr-hs-training-readiness-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.tmjr-hs-training-readiness-card-primary {
    background: linear-gradient(135deg, rgba(239, 253, 246, 0.96), rgba(255, 255, 255, 0.98));
}

.tmjr-hs-competence-readiness-cell small {
    display: block;
    margin-top: 6px;
    color: #587083;
    font-size: 0.76rem;
    font-weight: 700;
}

.tmjr-hs-competence-flag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tmjr-hs-competence-flag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    background: #edf7ff;
    color: #19517a;
    border: 1px solid rgba(25, 81, 122, 0.12);
}

.tmjr-hs-competence-flag-warning {
    background: #fff7df;
    color: #8a5a00;
    border-color: rgba(217, 119, 6, 0.18);
}

.tmjr-hs-competence-flag-danger {
    background: #fff1f2;
    color: #a32035;
    border-color: rgba(190, 18, 60, 0.18);
}

.tmjr-hs-competence-flag-info {
    background: #eaf6ff;
    color: #155e8a;
    border-color: rgba(14, 116, 144, 0.18);
}

.tmjr-hs-training-page .tmjr-hs-compliance-table td:nth-child(8) {
    min-width: 190px;
}

@media (max-width: 1100px) {
    .tmjr-hs-training-readiness-grid {
        grid-template-columns: 1fr;
    }
}


/* Audit / evidence pack output usability */
.tmjr-hs-print-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.96), rgba(255, 255, 255, 0.98));
}

.tmjr-hs-print-toolbar h3 {
    margin: 0 0 4px;
    color: #0f2f4a;
}

.tmjr-hs-print-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.tmjr-hs-print-cover {
    display: none;
}

.tmjr-hs-pack-index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tmjr-hs-pack-index-grid a {
    display: block;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.92);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tmjr-hs-pack-index-grid a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.tmjr-hs-pack-index-grid strong {
    display: block;
    color: #0f2f4a;
    margin-bottom: 5px;
}

.tmjr-hs-pack-index-grid span {
    display: block;
    color: #587083;
    font-size: 0.84rem;
    line-height: 1.4;
}

@media (max-width: 1000px) {
    .tmjr-hs-print-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .tmjr-hs-print-toolbar-actions {
        justify-content: flex-start;
    }

    .tmjr-hs-pack-index-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page {
        margin: 14mm;
    }

    .tmjr-hs-print-pack-page .tmjr-topbar,
    .tmjr-hs-print-pack-page .tmjr-nav,
    .tmjr-hs-print-pack-page .tmjr-hs-print-toolbar,
    .tmjr-hs-print-pack-page .tmjr-hs-header-actions,
    .tmjr-hs-print-pack-page .tmjr-hs-process-strip,
    .tmjr-hs-print-pack-page .tmjr-button,
    .tmjr-hs-print-pack-page .tmjr-hs-row-actions,
    .tmjr-hs-print-pack-page .tmjr-hs-pack-index-card {
        display: none !important;
    }

    .tmjr-hs-print-pack-page.tmjr-wrap {
        padding: 0 !important;
        background: #ffffff !important;
    }

    .tmjr-hs-print-pack-page .tmjr-hs-print-cover {
        display: block !important;
        min-height: 92vh;
        padding: 28mm 0 12mm;
        border-bottom: 4px solid #0f766e;
        page-break-after: always;
    }

    .tmjr-hs-print-cover h1 {
        margin: 8px 0 12px;
        font-size: 34px;
        line-height: 1.1;
        color: #0f172a;
    }

    .tmjr-hs-print-cover p {
        max-width: 720px;
        color: #334155;
        font-size: 14px;
        line-height: 1.55;
    }

    .tmjr-hs-print-cover dl {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        max-width: 720px;
        margin-top: 28px;
    }

    .tmjr-hs-print-cover dl div {
        border: 1px solid #d8e0ea;
        border-radius: 12px;
        padding: 12px;
    }

    .tmjr-hs-print-cover dt {
        color: #64748b;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .tmjr-hs-print-cover dd {
        margin: 5px 0 0;
        color: #0f172a;
        font-size: 18px;
        font-weight: 800;
    }

    .tmjr-hs-print-pack-page .tmjr-ha-dashboard-card,
    .tmjr-hs-print-pack-page .tmjr-card {
        box-shadow: none !important;
        border-color: #d8e0ea !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .tmjr-hs-print-pack-page .tmjr-ha-dashboard-card {
        padding-top: 0 !important;
    }

    .tmjr-hs-print-pack-page .tmjr-stats-grid,
    .tmjr-hs-print-pack-page .tmjr-hs-compliance-stats,
    .tmjr-hs-print-pack-page .tmjr-hs-pas-guidance-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .tmjr-hs-print-pack-page .tmjr-hs-pas-command-grid {
        display: block !important;
    }

    .tmjr-hs-print-pack-page .tmjr-hs-pas-command-card,
    .tmjr-hs-print-pack-page .tmjr-hs-compliance-panel {
        margin: 10px 0 !important;
    }

    .tmjr-hs-print-pack-page .tmjr-hs-table-wrap {
        overflow: visible !important;
    }

    .tmjr-hs-print-pack-page table {
        font-size: 10px !important;
        page-break-inside: auto;
    }

    .tmjr-hs-print-pack-page tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .tmjr-hs-print-pack-page a {
        color: #0f172a !important;
        text-decoration: none !important;
    }
}


/* IMS Readiness Centre */
.tmjr-hs-readiness-page .tmjr-hs-process-strip {
    margin-top: 18px;
}

.tmjr-hs-readiness-hero-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.tmjr-hs-readiness-score-card,
.tmjr-hs-readiness-stat {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    padding: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.tmjr-hs-readiness-score-card span,
.tmjr-hs-readiness-stat span {
    display: block;
    color: #587083;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tmjr-hs-readiness-score-card strong {
    display: block;
    color: #0f2f4a;
    font-size: 2.5rem;
    line-height: 1;
    margin: 8px 0;
}

.tmjr-hs-readiness-score-card em {
    color: #0f6b50;
    font-style: normal;
    font-weight: 800;
}

.tmjr-hs-readiness-stat strong {
    display: block;
    color: #0f2f4a;
    font-size: 1.85rem;
    line-height: 1.1;
    margin-top: 8px;
}

.tmjr-hs-readiness-stat-critical strong {
    color: #b42318;
}

.tmjr-hs-readiness-stat-attention strong {
    color: #b45309;
}

.tmjr-hs-readiness-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 18px;
    margin: 18px 0;
}

.tmjr-hs-readiness-priority-list,
.tmjr-hs-readiness-link-grid {
    display: grid;
    gap: 10px;
}

.tmjr-hs-readiness-priority-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    text-decoration: none;
    color: #0f2f4a;
}

.tmjr-hs-readiness-priority-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.tmjr-hs-readiness-priority-item strong,
.tmjr-hs-readiness-priority-item small {
    display: block;
}

.tmjr-hs-readiness-priority-item small {
    color: #587083;
    margin-top: 3px;
}

.tmjr-hs-readiness-priority-item em {
    min-width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #eef6ff;
    color: #0f2f4a;
    font-style: normal;
    font-weight: 900;
}

.tmjr-hs-readiness-priority-critical {
    border-left: 5px solid #b42318;
}

.tmjr-hs-readiness-priority-attention,
.tmjr-hs-readiness-priority-due {
    border-left: 5px solid #b45309;
}

.tmjr-hs-readiness-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tmjr-hs-readiness-section-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.tmjr-hs-readiness-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.tmjr-hs-readiness-section-head h4 {
    margin: 0 0 4px;
    color: #0f2f4a;
}

.tmjr-hs-readiness-section-head p {
    margin: 0;
    color: #587083;
    font-size: 0.88rem;
    line-height: 1.45;
}

.tmjr-hs-readiness-section-head > span {
    border-radius: 999px;
    background: #eef6ff;
    color: #0f2f4a;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.tmjr-hs-readiness-section-ready .tmjr-hs-readiness-section-head > span {
    background: #e7f8ef;
    color: #0f6b50;
}

.tmjr-hs-readiness-section-gap .tmjr-hs-readiness-section-head > span,
.tmjr-hs-readiness-section-attention .tmjr-hs-readiness-section-head > span {
    background: #fff7ed;
    color: #b45309;
}

.tmjr-hs-readiness-progress {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin: 14px 0;
}

.tmjr-hs-readiness-progress strong {
    color: #0f2f4a;
}

.tmjr-hs-readiness-progress div {
    height: 10px;
    border-radius: 999px;
    background: #e8eef6;
    overflow: hidden;
}

.tmjr-hs-readiness-progress div span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #325fda, #36b390);
}

.tmjr-hs-readiness-chip-row {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.tmjr-hs-readiness-chip {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 13px;
    background: #f7f9fc;
    text-decoration: none;
    color: #243447;
    font-size: 0.86rem;
}

.tmjr-hs-readiness-chip strong {
    color: #0f2f4a;
}

.tmjr-hs-readiness-chip-critical {
    background: #fff1f0;
}

.tmjr-hs-readiness-chip-attention,
.tmjr-hs-readiness-chip-due {
    background: #fff7ed;
}

@media (max-width: 1100px) {
    .tmjr-hs-readiness-hero-grid,
    .tmjr-hs-readiness-layout,
    .tmjr-hs-readiness-grid {
        grid-template-columns: 1fr;
    }
}


/* H&S Operating Guide */
.tmjr-hs-guide-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 18px;
    margin: 18px 0;
}

.tmjr-hs-guide-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.tmjr-hs-guide-card-primary {
    background: linear-gradient(135deg, rgba(239, 253, 246, 0.96), rgba(255, 255, 255, 0.98));
}

.tmjr-hs-guide-steps {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding-left: 0;
    list-style: none;
    counter-reset: guideStep;
}

.tmjr-hs-guide-steps li {
    position: relative;
    padding: 14px 14px 14px 52px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
}

.tmjr-hs-guide-steps li::before {
    counter-increment: guideStep;
    content: counter(guideStep);
    position: absolute;
    left: 14px;
    top: 14px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #0f6b50;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
}

.tmjr-hs-guide-steps strong,
.tmjr-hs-guide-link-grid strong,
.tmjr-hs-guide-rules strong {
    display: block;
    color: #0f2f4a;
    margin-bottom: 4px;
}

.tmjr-hs-guide-steps span,
.tmjr-hs-guide-link-grid span,
.tmjr-hs-guide-rules span {
    display: block;
    color: #587083;
    font-size: 0.86rem;
    line-height: 1.45;
}

.tmjr-hs-guide-link-grid,
.tmjr-hs-guide-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.tmjr-hs-guide-link-grid a,
.tmjr-hs-guide-rules div {
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #ffffff;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.tmjr-hs-guide-link-grid a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

@media (max-width: 1100px) {
    .tmjr-hs-guide-grid,
    .tmjr-hs-guide-link-grid,
    .tmjr-hs-guide-rules {
        grid-template-columns: 1fr;
    }
}

/* H&S Evidence Centre */
.tmjr-hs-evidence-centre-page .tmjr-hs-process-strip {
    margin-top: 22px;
}

.tmjr-hs-evidence-queue {
    display: grid;
    gap: 10px;
}

.tmjr-hs-evidence-queue-item {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 5px solid #49a6c7;
    border-radius: 16px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tmjr-hs-evidence-queue-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.tmjr-hs-evidence-severity-critical {
    border-left-color: #d94a4a;
}

.tmjr-hs-evidence-severity-warning {
    border-left-color: #f0a12a;
}

.tmjr-hs-evidence-queue-item strong,
.tmjr-hs-evidence-queue-item span,
.tmjr-hs-evidence-queue-item em,
.tmjr-hs-evidence-queue-item small {
    display: block;
}

.tmjr-hs-evidence-queue-item strong {
    color: #0f2f4a;
    font-size: 0.96rem;
}

.tmjr-hs-evidence-queue-item span,
.tmjr-hs-evidence-queue-item small {
    color: #587083;
    font-size: 0.82rem;
    margin-top: 3px;
}

.tmjr-hs-evidence-queue-item em {
    color: #243447;
    font-style: normal;
    font-weight: 800;
    font-size: 0.86rem;
}

.tmjr-hs-evidence-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tmjr-hs-evidence-section-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 253, 0.96));
    padding: 18px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.tmjr-hs-evidence-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.tmjr-hs-evidence-section-head h3 {
    margin: 0 0 5px;
    color: #0f2f4a;
    font-size: 1rem;
}

.tmjr-hs-evidence-section-head p {
    margin: 0;
    color: #587083;
    font-size: 0.86rem;
    line-height: 1.45;
}

.tmjr-hs-evidence-section-head > strong {
    color: #0f6b50;
    font-size: 1.35rem;
    line-height: 1;
}

.tmjr-hs-evidence-progress {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 47, 74, 0.1);
    margin-bottom: 14px;
}

.tmjr-hs-evidence-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #325fda, #36b390);
}

.tmjr-hs-evidence-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.tmjr-hs-evidence-metrics span {
    border-radius: 12px;
    background: rgba(15, 47, 74, 0.05);
    padding: 8px;
    color: #587083;
    font-size: 0.76rem;
}

.tmjr-hs-evidence-metrics strong {
    display: block;
    color: #0f2f4a;
    font-size: 0.95rem;
}

@media (max-width: 1000px) {
    .tmjr-hs-evidence-section-grid,
    .tmjr-hs-evidence-queue-item {
        grid-template-columns: 1fr;
    }

    .tmjr-hs-evidence-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media print {
    .tmjr-hs-evidence-centre-page .tmjr-nav,
    .tmjr-hs-evidence-centre-page .tmjr-hs-header-actions,
    .tmjr-hs-evidence-centre-page .tmjr-hs-process-strip,
    .tmjr-hs-evidence-centre-page .tmjr-button {
        display: none !important;
    }

    .tmjr-hs-evidence-centre-page .tmjr-card,
    .tmjr-hs-evidence-centre-page .tmjr-ha-dashboard-card,
    .tmjr-hs-evidence-centre-page .tmjr-hs-evidence-section-card,
    .tmjr-hs-evidence-centre-page .tmjr-hs-evidence-queue-item {
        box-shadow: none !important;
        break-inside: avoid;
    }
}


/* H&S Management Pack */
.tmjr-hs-management-pack-page .tmjr-hs-management-pack-position {
    border-left: 5px solid #2f7a5c;
}

.tmjr-hs-management-pack-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tmjr-hs-management-pack-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 47, 74, 0.12);
}

@media print {
    .tmjr-hs-management-pack-page .tmjr-topbar,
    .tmjr-hs-management-pack-page .tmjr-nav,
    .tmjr-hs-management-pack-page .tmjr-hs-header-actions,
    .tmjr-hs-management-pack-page .tmjr-button,
    .tmjr-hs-management-pack-page .tmjr-hs-process-strip {
        display: none !important;
    }

    .tmjr-hs-management-pack-page .tmjr-ha-dashboard-card,
    .tmjr-hs-management-pack-page .tmjr-card {
        break-inside: avoid;
        box-shadow: none !important;
        border-color: #d6dde6 !important;
    }
}


/* H&S dashboard command centre */
.tmjr-hs-dashboard-command-centre {
    margin: 20px 0 22px;
    padding: 18px;
    border: 1px solid rgba(15, 47, 74, 0.08);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(244, 248, 252, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 12px 28px rgba(15, 47, 74, 0.06);
}

.tmjr-hs-dashboard-command-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.tmjr-hs-dashboard-command-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 154px;
    padding: 16px;
    border: 1px solid rgba(15, 47, 74, 0.08);
    border-radius: 18px;
    background: #ffffff;
    color: #243447;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 47, 74, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tmjr-hs-dashboard-command-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 107, 80, 0.28);
    box-shadow: 0 16px 34px rgba(15, 47, 74, 0.12);
}

.tmjr-hs-dashboard-command-card.tmjr-hs-command-card-primary {
    background: linear-gradient(135deg, rgba(15, 107, 80, 0.96), rgba(31, 122, 77, 0.94));
    color: #ffffff;
}

.tmjr-hs-dashboard-command-card.tmjr-hs-command-card-accent {
    background: linear-gradient(135deg, rgba(15, 47, 74, 0.96), rgba(20, 82, 116, 0.94));
    color: #ffffff;
}

.tmjr-hs-command-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    opacity: 0.78;
}

.tmjr-hs-command-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    height: 100%;
}

.tmjr-hs-command-main strong {
    display: block;
    margin-bottom: 6px;
    color: inherit;
    font-size: 1.02rem;
}

.tmjr-hs-command-main em {
    display: block;
    color: inherit;
    font-size: 0.86rem;
    font-style: normal;
    line-height: 1.45;
    opacity: 0.82;
}

.tmjr-hs-command-metric {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    min-width: 58px;
    min-height: 58px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(15, 107, 80, 0.08);
    color: #0f6b50;
}

.tmjr-hs-command-card-primary .tmjr-hs-command-metric,
.tmjr-hs-command-card-accent .tmjr-hs-command-metric {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.tmjr-hs-command-metric b {
    display: block;
    font-size: 1.2rem;
    line-height: 1;
}

.tmjr-hs-command-metric small {
    display: block;
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.78;
}

@media (max-width: 1300px) {
    .tmjr-hs-dashboard-command-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .tmjr-hs-dashboard-command-grid {
        grid-template-columns: 1fr;
    }

    .tmjr-hs-dashboard-command-card {
        min-height: auto;
    }
}


/* My H&S Work */
.tmjr-hs-my-work-page .tmjr-hs-compliance-stats {
    margin-top: 18px;
}

.tmjr-hs-my-work-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
    gap: 18px;
    margin: 18px 0;
}

.tmjr-hs-my-work-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tmjr-hs-work-queue-list,
.tmjr-hs-mini-list,
.tmjr-hs-my-work-links {
    display: grid;
    gap: 10px;
}

.tmjr-hs-work-queue-card,
.tmjr-hs-mini-list a,
.tmjr-hs-my-work-links a {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #ffffff;
    text-decoration: none;
    color: #243447;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.tmjr-hs-work-queue-card:hover,
.tmjr-hs-mini-list a:hover,
.tmjr-hs-my-work-links a:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.tmjr-hs-work-queue-card.is-urgent {
    border-left: 5px solid #dc2626;
}

.tmjr-hs-work-queue-card.is-awaiting {
    border-left: 5px solid #f59e0b;
}

.tmjr-hs-work-queue-meta,
.tmjr-hs-work-queue-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #587083;
    font-size: 0.78rem;
}

.tmjr-hs-work-queue-meta strong,
.tmjr-hs-work-queue-title,
.tmjr-hs-mini-list strong,
.tmjr-hs-my-work-links strong {
    color: #0f2f4a;
}

.tmjr-hs-work-queue-title {
    font-weight: 800;
    font-size: 0.98rem;
}

.tmjr-hs-work-queue-card small,
.tmjr-hs-mini-list span,
.tmjr-hs-my-work-links span {
    color: #587083;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .tmjr-hs-my-work-grid,
    .tmjr-hs-my-work-grid-three {
        grid-template-columns: 1fr;
    }
}


/* H&S Review Queue */
.tmjr-hs-review-queue-page .tmjr-hs-access-note {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    border-left: 5px solid #4a7cf0;
}

.tmjr-hs-review-queue-page .tmjr-hs-access-note span {
    color: #587083;
    font-size: 0.9rem;
}

.tmjr-hs-review-rules span {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.tmjr-hs-review-rules span:last-child {
    border-bottom: 0;
}

.tmjr-hs-review-rules em {
    display: block;
    margin-top: 3px;
    color: #587083;
    font-style: normal;
    font-size: 0.84rem;
}


/* H&S close-out readiness checklist */
.tmjr-hs-closeout-readiness-card {
    margin: 14px 0;
    border-left: 5px solid #2fa86b;
    background: linear-gradient(135deg, rgba(239, 253, 246, 0.96), rgba(255, 255, 255, 0.98));
}

.tmjr-hs-closeout-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tmjr-hs-closeout-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    padding: 13px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.tmjr-hs-closeout-check > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #0f6b50;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
}

.tmjr-hs-closeout-check strong {
    display: block;
    color: #0f2f4a;
    margin-bottom: 4px;
}

.tmjr-hs-closeout-check small {
    display: block;
    color: #587083;
    line-height: 1.45;
}

.tmjr-hs-my-work-side .tmjr-hs-closeout-readiness-card {
    margin-top: 14px;
}

.tmjr-hs-my-work-side .tmjr-hs-closeout-check-grid {
    grid-template-columns: 1fr;
}

@media (max-width: 900px) {
    .tmjr-hs-closeout-check-grid {
        grid-template-columns: 1fr;
    }
}


/* v1.11.15 stabilisation diagnostics */
.tmjr-ims-diagnostic-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 18px;
}

.tmjr-ims-diagnostic-summary > div {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.tmjr-ims-diagnostic-summary strong {
    display: block;
    color: #0f2f4a;
    font-size: 1.25rem;
    line-height: 1.1;
}

.tmjr-ims-diagnostic-summary span {
    display: block;
    color: #587083;
    font-size: 0.84rem;
    margin-top: 5px;
}

.tmjr-ims-setup-diagnostics + .tmjr-ims-setup-diagnostics {
    margin-top: 18px;
}

.tmjr-ims-setup-diagnostics small {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 3px;
}

.tmjr-hs-qa-pill.is-warning {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.tmjr-hs-qa-pill.is-missing,
.tmjr-hs-qa-pill.is-critical {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.tmjr-hs-system-health-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0;
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-left: 5px solid #f97316;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.96));
    padding: 16px 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.tmjr-hs-system-health-callout.is-critical {
    border-color: rgba(220, 38, 38, 0.3);
    border-left-color: #dc2626;
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.96));
}

.tmjr-hs-system-health-callout strong,
.tmjr-hs-system-health-callout span {
    display: block;
}

.tmjr-hs-system-health-callout strong {
    color: #0f2f4a;
    font-size: 1rem;
}

.tmjr-hs-system-health-callout span {
    color: #587083;
    font-size: 0.88rem;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .tmjr-ims-diagnostic-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tmjr-hs-system-health-callout {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .tmjr-ims-diagnostic-summary {
        grid-template-columns: 1fr;
    }
}


/* v1.11.16 report submission usability */
.tmjr-hs-form-guidance-strong {
    border: 1px solid rgba(50, 95, 218, 0.14);
    border-left: 5px solid #325fda;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.tmjr-hs-new-report-helper,
.tmjr-hs-escalation-note,
.tmjr-hs-submit-readiness-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.tmjr-hs-new-report-helper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 18px 0;
    padding: 16px 18px;
}

.tmjr-hs-new-report-helper strong {
    color: #0f2f4a;
    min-width: 230px;
}

.tmjr-hs-new-report-helper span {
    color: #587083;
    line-height: 1.5;
}

.tmjr-hs-escalation-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 12px 0 18px;
    padding: 14px 16px;
    border-left: 5px solid #f97316;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.96));
}

.tmjr-hs-escalation-note strong {
    color: #9a3412;
    min-width: 105px;
}

.tmjr-hs-escalation-note span {
    color: #5f6f7b;
    line-height: 1.45;
}

.tmjr-hs-submit-readiness-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 18px;
    margin: 16px 0;
    padding: 18px;
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.94), rgba(255, 255, 255, 0.98));
}

.tmjr-hs-submit-readiness-card strong {
    display: block;
    color: #0f2f4a;
    font-size: 1rem;
    margin: 3px 0 6px;
}

.tmjr-hs-submit-readiness-card p {
    color: #587083;
    margin: 0;
    line-height: 1.5;
}

.tmjr-hs-submit-readiness-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tmjr-hs-submit-readiness-card li {
    position: relative;
    padding-left: 24px;
    color: #243447;
    line-height: 1.45;
}

.tmjr-hs-submit-readiness-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 17px;
    height: 17px;
    border-radius: 999px;
    background: #2fa86b;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 900;
}

@media (max-width: 850px) {
    .tmjr-hs-new-report-helper,
    .tmjr-hs-escalation-note,
    .tmjr-hs-submit-readiness-card {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .tmjr-hs-new-report-helper strong,
    .tmjr-hs-escalation-note strong {
        min-width: 0;
    }
}


/* v1.11.17 - Inspection usability and failed-item action flow */
.tmjr-hs-inspection-mini-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tmjr-hs-inspection-mini-flow span {
    position: relative;
    background: #e8f4ff;
    color: #0f2f57;
    border: 1px solid rgba(50, 95, 218, 0.16);
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 800;
}

.tmjr-hs-inspection-readiness-panel {
    border-left: 5px solid #2563eb;
}

.tmjr-hs-inspection-readiness-grid,
.tmjr-hs-inspection-record-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.tmjr-hs-inspection-readiness-grid span,
.tmjr-hs-inspection-record-summary span {
    background: #ffffff;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.tmjr-hs-inspection-readiness-grid strong,
.tmjr-hs-inspection-record-summary strong {
    display: block;
    color: #0f2f57;
    font-size: 26px;
    line-height: 1;
}

.tmjr-hs-inspection-readiness-grid small,
.tmjr-hs-inspection-record-summary small {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    margin-top: 6px;
    text-transform: uppercase;
}

.tmjr-hs-inspection-readiness-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    color: #1e3a8a;
    font-weight: 700;
    padding: 11px 13px;
}

.tmjr-hs-inspection-readiness-note.is-danger,
.tmjr-hs-inspection-record-summary .is-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.tmjr-hs-inspection-readiness-note.is-attention,
.tmjr-hs-inspection-record-summary .is-attention {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.tmjr-hs-checklist-item.is-fail {
    border-color: #fecaca;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
}

.tmjr-hs-checklist-item.is-observation {
    border-color: #fde68a;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.tmjr-hs-checklist-item.needs-decision {
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.tmjr-hs-inspection-action-guidance {
    display: grid;
    gap: 3px;
    margin-bottom: 10px;
}

.tmjr-hs-inspection-action-guidance strong {
    color: #0f2f57;
}

.tmjr-hs-inspection-action-guidance span,
.tmjr-hs-field-hint {
    color: #64748b;
    display: block;
    font-size: 12px;
    line-height: 1.45;
    margin-top: 4px;
}

.tmjr-hs-inspection-action-box.is-recommended {
    border-left-color: #dc2626;
    background: #fff7f7;
}

.tmjr-hs-inspection-action-box.is-observation {
    border-left-color: #d97706;
    background: #fffbeb;
}

@media (max-width: 800px) {
    .tmjr-hs-inspection-readiness-grid,
    .tmjr-hs-inspection-record-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* H&S report/export usability */
.tmjr-hs-report-filter-bar {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    align-items: end;
}
.tmjr-hs-report-command-card {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(320px, 2fr);
    gap: 18px;
    align-items: stretch;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.96));
}
.tmjr-hs-report-command-card h3 {
    margin: 0 0 6px;
    color: #0f2f4a;
}
.tmjr-hs-report-command-card p {
    margin: 0;
    color: #587083;
}
.tmjr-hs-report-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}
.tmjr-hs-report-metrics div {
    padding: 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 47, 74, 0.08);
    box-shadow: 0 10px 22px rgba(15, 47, 74, 0.06);
}
.tmjr-hs-report-metrics strong {
    display: block;
    font-size: 1.45rem;
    color: #174ea6;
}
.tmjr-hs-report-metrics span {
    display: block;
    margin-top: 2px;
    color: #587083;
    font-size: 0.82rem;
}
@media (max-width: 900px) {
    .tmjr-hs-report-command-card {
        grid-template-columns: 1fr;
    }
}
@media print {
    .tmjr-hs-report-filter-bar,
    .tmjr-hs-table-toolbar,
    .tmjr-hs-header-actions,
    .tmjr-navigation,
    .tmjr-sidebar {
        display: none !important;
    }
    .tmjr-hs-report-command-card {
        box-shadow: none;
        border-color: #d9e2ec;
        background: #fff;
    }
}

/* v1.11.19 - H&S Dashboard simplification */
.tmjr-hs-header-actions-simplified {
    grid-template-columns: repeat(2, minmax(0, auto));
    justify-content: end;
}

.tmjr-hs-start-here-panel {
    border-color: rgba(15, 107, 80, 0.14);
}

.tmjr-hs-start-guide-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.tmjr-hs-recommended-next-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.tmjr-hs-recommended-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 142px;
    padding: 15px 15px 48px;
    border: 1px solid rgba(15, 47, 74, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    color: #243447;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 47, 74, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tmjr-hs-recommended-step:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 107, 80, 0.28);
    box-shadow: 0 16px 34px rgba(15, 47, 74, 0.10);
}

.tmjr-hs-recommended-step strong {
    color: #102a43;
    font-size: 0.98rem;
}

.tmjr-hs-recommended-step em {
    color: #52606d;
    font-size: 0.85rem;
    font-style: normal;
    line-height: 1.42;
}

.tmjr-hs-recommended-step b {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 107, 80, 0.10);
    color: #0f6b50;
    font-size: 0.78rem;
}

.tmjr-hs-dashboard-compact .tmjr-hs-compliance-dashboard-card,
.tmjr-hs-dashboard-compact .tmjr-hs-ims-dashboard-card {
    margin-top: 18px;
}

.tmjr-hs-dashboard-compact .tmjr-hs-compliance-dashboard-grid,
.tmjr-hs-dashboard-compact .tmjr-hs-ims-register-grid {
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

@media (max-width: 1300px) {
    .tmjr-hs-recommended-next-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .tmjr-hs-header-actions-simplified,
    .tmjr-hs-start-guide-grid,
    .tmjr-hs-recommended-next-steps {
        grid-template-columns: 1fr;
    }
}

/* v1.11.23 - H&S Case Overview + Toolbox Talk recommendation */
.tmjr-hs-case-overview {
    scroll-margin-top: 24px;
}

.tmjr-hs-case-overview-header {
    align-items: flex-start;
    gap: 16px;
}

.tmjr-hs-case-readiness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
}

.tmjr-hs-case-readiness {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.72);
}

.tmjr-ha-dark .tmjr-hs-case-readiness,
.tmjr-user-appearance-dark .tmjr-hs-case-readiness {
    background: rgba(15, 23, 42, 0.72);
}

.tmjr-hs-case-readiness-good {
    border-color: rgba(34, 197, 94, 0.5);
    color: #166534;
    background: rgba(220, 252, 231, 0.92);
}

.tmjr-hs-case-readiness-warning {
    border-color: rgba(245, 158, 11, 0.55);
    color: #92400e;
    background: rgba(254, 243, 199, 0.94);
}

.tmjr-hs-case-readiness-danger {
    border-color: rgba(239, 68, 68, 0.55);
    color: #991b1b;
    background: rgba(254, 226, 226, 0.94);
}

.tmjr-hs-case-summary-grid,
.tmjr-hs-case-journey-grid,
.tmjr-hs-toolbox-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.tmjr-hs-case-journey-grid,
.tmjr-hs-toolbox-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tmjr-hs-case-summary-card,
.tmjr-hs-case-journey-card {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    padding: 16px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.tmjr-ha-dark .tmjr-hs-case-summary-card,
.tmjr-ha-dark .tmjr-hs-case-journey-card,
.tmjr-user-appearance-dark .tmjr-hs-case-summary-card,
.tmjr-user-appearance-dark .tmjr-hs-case-journey-card {
    background: rgba(30, 41, 59, 0.78);
    border-color: rgba(148, 163, 184, 0.22);
    color: #f8fafc;
}

.tmjr-hs-case-summary-card h4,
.tmjr-hs-case-journey-card h4,
.tmjr-hs-case-journey-card h5 {
    margin: 0 0 10px;
}

.tmjr-hs-case-actions-card,
.tmjr-hs-toolbox-card {
    margin-top: 14px;
}

.tmjr-hs-case-dl {
    gap: 7px 12px;
}

.tmjr-hs-case-dl dd {
    word-break: break-word;
}

.tmjr-hs-case-list {
    margin: 0;
    padding-left: 18px;
}

.tmjr-hs-case-list li + li {
    margin-top: 8px;
}

.tmjr-hs-case-note-good {
    border-left: 4px solid #22c55e;
    background: rgba(220, 252, 231, 0.8);
    color: #166534;
    border-radius: 10px;
    padding: 9px 11px;
    font-weight: 800;
}

.tmjr-hs-toolbox-recommendation {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    border: 1px solid rgba(148, 163, 184, 0.35);
    white-space: nowrap;
}

.tmjr-hs-toolbox-not_required {
    background: #f1f5f9;
    color: #334155;
}

.tmjr-hs-toolbox-recommended {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.35);
}

.tmjr-hs-toolbox-required {
    background: #fee2e2;
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.4);
}

.tmjr-hs-toolbox-meta {
    border-left: 4px solid var(--tmjr-primary, #2563eb);
    padding-left: 14px;
}


.tmjr-hs-standalone-toolbox {
    margin-top: 18px;
}

.tmjr-hs-standalone-toolbox .tmjr-hs-section-header {
    margin-bottom: 14px;
}

.tmjr-hs-toolbox-form {
    margin-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: 16px;
}

.tmjr-hs-toolbox-draft-readonly {
    white-space: pre-wrap;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.04);
    font-family: inherit;
}

.tmjr-hs-form-grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1100px) {
    .tmjr-hs-case-summary-grid,
    .tmjr-hs-case-journey-grid,
    .tmjr-hs-toolbox-layout,
    .tmjr-hs-form-grid.two {
        grid-template-columns: 1fr;
    }
}

@media print {
    .tmjr-hs-record-detail-page .tmjr-sidebar,
    .tmjr-hs-detail-actions,
    .tmjr-hs-detail-side,
    .tmjr-hs-management-form,
    .tmjr-hs-case-overview-header .tmjr-button {
        display: none !important;
    }

    .tmjr-hs-detail-grid,
    .tmjr-hs-detail-main,
    .tmjr-hs-case-summary-grid,
    .tmjr-hs-case-journey-grid,
    .tmjr-hs-toolbox-layout {
        display: block !important;
    }

    .tmjr-hs-case-summary-card,
    .tmjr-hs-case-journey-card,
    .tmjr-card {
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 12px;
    }
}

/* v1.11.25 - H&S record detail: restores Corrective / Preventive Actions before Closeout and moves Toolbox Talk after Management Workspace. */

/* v1.11.26 - Operating Guide role-aware content improvements. */
.tmjr-hs-operating-guide-page .tmjr-hs-guide-steps a,
.tmjr-hs-operating-guide-page .tmjr-hs-guide-rules a {
    color: #155de0;
    font-weight: 800;
    text-decoration: none;
}

.tmjr-hs-operating-guide-page .tmjr-hs-guide-steps a:hover,
.tmjr-hs-operating-guide-page .tmjr-hs-guide-rules a:hover {
    text-decoration: underline;
}

.tmjr-hs-guide-rules.tmjr-hs-guide-rules-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tmjr-hs-guide-rules.tmjr-hs-guide-rules-wide div {
    min-height: 112px;
}

@media (max-width: 1100px) {
    .tmjr-hs-guide-rules.tmjr-hs-guide-rules-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .tmjr-hs-guide-rules.tmjr-hs-guide-rules-wide {
        grid-template-columns: 1fr;
    }
}
