.hse-workspace { padding:0; overflow:hidden; background:#fff; border:1px solid #dfe7df; border-radius:18px; }
.hse-workspace .section-heading { padding:28px 32px 24px; margin:0; }
.hse-workspace .section-heading h2 { margin:8px 0; font-size:25px; }
.hse-workspace .section-heading p { margin:0 0 9px; color:#687e70; line-height:1.9; }
.hse-workspace .section-heading small { color:#829085; font-size:11px; }
.hse-tabs { display:flex; gap:5px; flex-wrap:wrap; padding:0 28px; border-bottom:1px solid #e0e7df; }
.hse-tabs button { border:0; border-bottom:3px solid transparent; border-radius:0; background:transparent; padding:14px 12px; color:#718373; font:inherit; font-size:13px; }
.hse-tabs button[aria-selected="true"] { color:#2d654b; border-bottom-color:#418464; }
.hse-body { padding:26px 32px 32px; }
.hse-body > button { margin-bottom:18px; }
.hse-body > h3 { margin:25px 0 17px; font-size:17px; color:#486a4d; }
.hse-filters { display:grid; grid-template-columns:minmax(180px,2fr) repeat(2,minmax(145px,1fr)); gap:16px; padding:18px; margin:0 32px 22px; background:#f6f9f3; border:1px solid #e5eadf; border-radius:12px; }
.hse-filters label { display:grid; gap:7px; font-size:12px; color:#60785f; min-width:0; }
.hse-filters input,.hse-filters select { width:100%; min-width:0; min-height:43px; padding:8px 12px; border:1px solid #d4dfce; border-radius:8px; background:#fff; color:#315538; }
.hse-card { margin-bottom:18px; padding:22px; background:#fff; border:1px solid #dfe7d9; border-radius:12px; font-size:14px; line-height:2; }
.hse-card > a:first-child { font-size:17px; font-weight:600; }
.hse-card a { color:#387458; text-underline-offset:4px; }
.hse-card p { margin-top:12px; font-size:13px; color:#617560; line-height:1.95; }
.hse-card .record-actions { display:flex; flex-wrap:wrap; gap:10px; padding-top:16px; margin-top:18px; border-top:1px solid #edf0e9; }
.hse-card button { margin:7px 0 7px 10px; min-height:40px; padding:8px 14px; border:1px solid #d1deca; border-radius:8px; background:#fff; color:#457344; font:inherit; font-size:12px; }
.hse-card .record-actions button { margin:0; }
.hse-card details { color:#748470; font-size:12px; }
.hse-card summary { cursor:pointer; padding:5px 0; }
.hse-card details p,.hse-card details ul { margin-top:12px; }
.hse-intro { margin:0 0 22px; color:#718273; font-size:13px; line-height:1.9; }
.hse-workspace .empty-state { padding:22px; border:1px dashed #d6e2ce; border-radius:12px; color:#71866a; background:#fafcf7; line-height:2; font-size:13px; }
dialog.hse-dialog { width:min(860px,calc(100vw - 32px)); padding:0; border:1px solid #dce5d7; border-radius:18px; color:#34583b; background:#fff; overflow:hidden; }
.hse-dialog form[data-action^="save-"] { display:flex; flex-direction:column; max-height:calc(100dvh - 34px); gap:0; }
.hse-dialog header { flex:none; padding:26px 30px 24px; border-bottom:1px solid #e1e8db; background:#fafcf7; }
.hse-dialog h2 { margin:0 0 10px; font-size:23px; }
.hse-dialog header p { margin:0; font-size:14px; line-height:2; color:#73876a; }
.hse-dialog .hse-form-body { min-height:0; overflow-y:auto; overflow-x:hidden; padding:26px 30px; }
.hse-dialog .form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 24px; align-items:start; }
.hse-dialog .form-full { grid-column:1/-1; }
.hse-dialog label { display:grid; gap:9px; align-self:start; font-size:14px; color:#4f704c; }
.hse-dialog input,.hse-dialog select,.hse-dialog textarea { width:100%; min-width:0; margin:0; min-height:46px; padding:11px 13px; border:1px solid #cbdcc3; border-radius:9px; background:#fbfdf9; color:#315538; font:inherit; font-size:15px; line-height:1.7; }
.hse-dialog textarea { min-height:96px; resize:vertical; }
.hse-dialog label small { margin:0; font-size:11px; color:#819276; }
.hse-dialog .hse-field-hint { margin:0; font-size:12px; line-height:1.9; color:#7b8e71; }
.hse-dialog a { color:#387458; text-underline-offset:4px; }
.hse-dialog .hse-fixed-field { display:grid; gap:7px; padding:13px 15px; border:1px solid #e0e8d9; border-radius:9px; background:#f8faf4; color:#74866c; font-size:12px; }
.hse-dialog .hse-fixed-field strong { color:#36573c; font-size:14px; font-weight:550; }
.hse-dialog .hse-choice-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:-10px; color:#7b8e71; font-size:12px; }
.hse-dialog .hse-choice-actions button,.hse-dialog .hse-source-button { padding:8px 12px; font-size:12px; }
.hse-dialog .hse-field-group { display:grid; gap:9px; min-width:0; align-self:start; }
.hse-dialog .hse-choice-hint { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; color:#7b8e71; font-size:11px; line-height:1.8; }
.hse-dialog .hse-choice-hint .hse-source-button { min-height:32px; padding:5px 9px; font-size:11px; white-space:normal; }
.hse-extra { border:1px solid #e0e8d9; border-radius:10px; padding:15px 17px; background:#fcfdf9; }
.hse-extra > summary { cursor:pointer; color:#607a52; font-size:13px; }
.hse-extra > .form-grid,.hse-extra > .hse-checkbox-list { margin-top:20px; }
.hse-dialog .hse-checkbox-list { display:grid; gap:12px; }
.hse-dialog .hse-checkbox-list label { display:flex; align-items:center; gap:10px; }
.hse-dialog input[type="checkbox"] { width:18px; height:18px; min-height:18px; flex:0 0 auto; padding:0; accent-color:#387458; }
.hse-checklist { margin:0; padding:18px; border:1px solid #dce6d4; border-radius:11px; }
.hse-checklist legend { padding:0 8px; font-size:13px; color:#527448; }
.hse-checklist-row + .hse-checklist-row { margin-top:18px; padding-top:18px; border-top:1px solid #e7ecdf; }
.hse-dialog .dialog-actions { flex:none; display:flex; justify-content:flex-start; flex-direction:row-reverse; gap:12px; padding:20px 30px; margin:0; border-top:1px solid #e0e8d9; background:#fff; }
.hse-dialog .dialog-actions button { flex:0 1 150px; min-height:46px; height:auto; margin:0; border-radius:9px; font:inherit; font-size:14px; padding:10px 18px; line-height:1.75; }
.hse-dialog .dialog-actions button[type="submit"] { background:#306e4e; color:#fff; border:1px solid #306e4e; }
.hse-dialog .dialog-actions button[type="button"] { background:#fff; color:#527448; border:1px solid #cbdcc3; }
.hse-dialog .dialog-actions button:disabled { opacity:.5; cursor:not-allowed; }
@media(max-width:680px) {
  .hse-workspace .section-heading,.hse-body { padding:22px 18px; }
  .hse-tabs { padding:0 12px; }
  .hse-tabs button { font-size:12px; padding:12px 9px; }
  .hse-filters { grid-template-columns:1fr; padding:15px; margin:0 18px 20px; }
  .hse-card { padding:18px; }
  .hse-card .record-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hse-card .record-actions > * { width:100%; }
  .hse-dialog header,.hse-dialog .hse-form-body { padding:22px 20px; }
  .hse-dialog .form-grid { grid-template-columns:minmax(0,1fr); gap:19px; }
  .hse-dialog .dialog-actions { padding:17px 20px; }
  .hse-dialog .dialog-actions button { flex:1 1 0; }
}

.hse-page-heading { padding:28px 32px 24px; }
.hse-page-heading h2 { margin:8px 0; font-size:25px; }
.hse-page-heading p { margin:0 0 10px; color:#687e70; }
.hse-page-heading small,.hse-dialog header small { display:block; margin-top:10px; color:#829085; font-size:11px; }
.hse-filters { margin:0 0 24px; }
.hse-section-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px; margin-bottom:24px; }
.hse-section-heading h3 { margin:0; font-size:18px; }
.hse-section-heading p { margin:8px 0 0; color:#718273; font-size:14px; line-height:1.9; }
.hse-heading-actions { display:flex; flex-wrap:wrap; gap:10px; }
.hse-heading-actions button { min-height:44px; padding:10px 17px; border:1px solid #306e4e; border-radius:9px; background:#306e4e; color:#fff; font:inherit; font-size:14px; }
.hse-record-list { display:grid; gap:18px; }
.hse-card { margin:0; }
.hse-card > header { display:flex; justify-content:space-between; align-items:start; gap:16px; }
.hse-card h4 { margin:0; font-size:17px; font-weight:550; }
.hse-status { padding:3px 10px; font-size:12px; background:#edf3e8; border:1px solid #e0e8d8; border-radius:7px; white-space:nowrap; color:#637c53; }
.hse-record-details dl { display:grid; gap:13px; margin:18px 0; }
.hse-record-details dl > div { display:grid; grid-template-columns:150px minmax(0,1fr); gap:14px; }
.hse-record-details dt { color:#73866c; font-size:12px; }
.hse-record-details dd { margin:0; color:#3d5e42; font-size:14px; white-space:pre-wrap; overflow-wrap:anywhere; }
.hse-record-details ul { margin:0; padding-inline-start:22px; }
.hse-card .hse-reference { font-size:11px; color:#83917d; }
.hse-empty { padding:24px; border:1px dashed #d6e2ce; border-radius:12px; color:#71866a; background:#fafcf7; line-height:2; font-size:14px; }
.hse-subheading { margin:26px 0 17px; color:#486a4d; font-size:17px; }
.hse-dialog form[data-action="close-hse-action"] { display:flex; flex-direction:column; max-height:calc(100dvh - 34px); gap:0; }
@media(max-width:680px) {
  .hse-page-heading { padding:22px 18px; }
  .hse-filters { margin:0 0 22px; }
  .hse-record-details dl > div { grid-template-columns:minmax(0,1fr); gap:5px; }
  .hse-heading-actions { width:100%; }
  .hse-heading-actions button { flex:1; }
}
