.hira-frontend-wrap{overflow-x:auto;margin:1em 0;}
.hira-register-table{border-collapse:collapse;width:100%;background:#ffffff;color:#111111;font-size:13px;}
.hira-register-table th,.hira-register-table td{border:1px solid #cccccc;padding:8px;vertical-align:top;text-align:left;}
.hira-register-table thead th{background:#f2f2f2;font-weight:700;}
.hira-badge{display:inline-block;padding:3px 8px;border-radius:4px;color:#fff;font-size:12px;font-weight:600;white-space:nowrap;}

/* Teks register & form edit: hitam */
.hira-frontend-wrap,
.hira-frontend-wrap .hira-register-table,
.hira-frontend-wrap .hira-register-table th,
.hira-frontend-wrap .hira-register-table td{color:#000 !important;}

/* ---- Edit & Hapus di register frontend ---- */
.hira-notice{padding:10px 15px;border-radius:6px;margin:0 0 16px;font-size:14px;color:#000;}
.hira-notice-success{background:#e6f4ea;border:1px solid #b7dfc1;}
.hira-notice-error{background:#fdecea;border:1px solid #f5c6c3;}
.hira-actions{white-space:nowrap;}
.hira-inline-form{display:inline;margin:0;}

/* Tombol */
.hira-reg-btn{
    display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;
    height:34px;padding:0 14px;border-radius:6px;border:1px solid transparent;
    font-family:inherit;font-size:13px;font-weight:600;letter-spacing:.01em;line-height:1;
    cursor:pointer;text-transform:none;text-decoration:none;box-shadow:none;
    transition:background-color .15s,color .15s,border-color .15s,box-shadow .15s;
}
.hira-reg-btn svg{flex:none;}
.hira-reg-btn:focus-visible{outline:2px solid #1e40af;outline-offset:2px;}
.hira-actions .hira-reg-btn + .hira-inline-form{margin-left:6px;}

.hira-reg-btn-edit{background:#fff;color:#1e40af;border-color:#1e40af;}
.hira-reg-btn-edit:hover{background:#1e40af;color:#fff;}

.hira-reg-btn-delete{background:#fff;color:#b91c1c;border-color:#b91c1c;}
.hira-reg-btn-delete:hover{background:#b91c1c;color:#fff;}

.hira-reg-btn-save{background:#1e40af;color:#fff;border-color:#1e40af;height:38px;padding:0 20px;box-shadow:0 1px 2px rgba(0,0,0,.15);}
.hira-reg-btn-save:hover{background:#1e3a8a;border-color:#1e3a8a;}

.hira-reg-btn-cancel{background:#fff;color:#374151;border-color:#9ca3af;height:38px;padding:0 20px;}
.hira-reg-btn-cancel:hover{background:#f3f4f6;color:#111;}

.hira-reg-btn-add{background:#f8fafc;color:#1e40af;border:1px dashed #1e40af;}
.hira-reg-btn-add:hover{background:#eff6ff;}

.hira-reg-btn-remove{background:#fff;color:#b91c1c;border-color:#e5b4b4;height:28px;padding:0 10px;font-size:12px;}
.hira-reg-btn-remove:hover{background:#fef2f2;border-color:#b91c1c;}

/* Baris & form edit */
.hira-register-table tr.hira-edit-row{display:none;}
.hira-register-table tr.hira-edit-row.is-open{display:table-row;}
.hira-register-table tr.hira-edit-row td{background:#f8f9fb;padding:18px;}
.hira-edit-form{max-width:900px;position:sticky;left:0;color:#000;}
.hira-edit-title{font-weight:700;font-size:16px;margin-bottom:14px;color:#000;}
.hira-edit-form .hira-field{display:flex;flex-direction:column;margin-bottom:14px;}
.hira-edit-form .hira-field label{font-weight:600;margin-bottom:6px;font-size:14px;color:#000 !important;}
.hira-edit-form input[type="text"],
.hira-edit-form input[type="date"],
.hira-edit-form textarea{
    padding:8px 10px;border:1px solid #9ca3af;border-radius:6px;font-size:14px;width:100%;
    box-sizing:border-box;background:#fff !important;color:#000 !important;line-height:1.4;
}
.hira-edit-form input::placeholder,.hira-edit-form textarea::placeholder{color:#6b7280;opacity:1;}
.hira-edit-form input:focus,.hira-edit-form textarea:focus{outline:none;border-color:#1e40af;box-shadow:0 0 0 1px #1e40af;}
.hira-edit-form .hira-field-buttons{flex-direction:row;gap:10px;margin:18px 0 0;padding-top:16px;border-top:1px solid #e5e7eb;}
.hira-edit-form strong,
.hira-edit-form .hira-radio-label,
.hira-edit-form .hira-fsr-col{color:#000 !important;}
.hira-edit-form .hira-fsr-group{display:flex;gap:28px;flex-wrap:wrap;}
.hira-edit-form .hira-fsr-col{min-width:170px;}
.hira-edit-form .hira-radio-label{display:block;padding:2px 0;font-weight:normal;}
.hira-edit-form .hira-r-badge{display:inline-block;padding:6px 14px;border-radius:6px;color:#fff;font-weight:600;margin-top:6px;}

/* Tambah hazard / work step */
.hira-x-extra{margin-top:8px;padding-top:12px;border-top:1px solid #e5e7eb;}
.hira-x-section-title{font-weight:700;font-size:14px;margin:6px 0 10px;color:#000;}
.hira-x-hazards,.hira-x-steps{display:flex;flex-direction:column;gap:14px;margin-bottom:12px;}
.hira-x-hazards:empty,.hira-x-steps:empty{display:none;}
.hira-x-hazard{border:1px dashed #9ca3af;border-radius:8px;padding:14px;background:#fff;}
.hira-x-step{border:1px solid #cbd5e1;border-radius:8px;padding:16px;background:#f1f5f9;}
.hira-x-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.hira-x-head strong{font-size:14px;color:#000;}
.hira-x-extra > .hira-x-section{margin-bottom:18px;}

/* ---- Ringkasan: Subject (Job Title) | HIRA No. | View ---- */
.hira-summary-table{table-layout:auto;}
.hira-summary-table > thead > tr > th.hira-col-no,
.hira-summary-table > tbody > tr > td.hira-col-no{width:60px;text-align:center;}
.hira-summary-table > thead > tr > th.hira-col-view,
.hira-summary-table > tbody > tr > td.hira-col-view{width:130px;text-align:center;white-space:nowrap;}
.hira-summary-table > tbody > tr.hira-summary-row > td{vertical-align:middle;}
.hira-reg-btn-view{background:#1e40af;color:#fff;border-color:#1e40af;}
.hira-reg-btn-view:hover,.hira-reg-btn-view.is-active{background:#1e3a8a;border-color:#1e3a8a;color:#fff;}
.hira-register-table tr.hira-detail-row{display:none;}
.hira-register-table tr.hira-detail-row.is-open{display:table-row;}
.hira-register-table tr.hira-detail-row > td{background:#f8f9fb;padding:14px;}
.hira-detail-wrap{overflow-x:auto;}
.hira-detail-wrap .hira-detail-table{margin:0;}
