/* RepCentral GPSR Product Safety Risk Assessment Helper.
   Extends gpsr-labelling-checklist.css. */

.gra-progress-steps{grid-template-columns:repeat(5,minmax(0,1fr))}

.gra-option--check .gpsr-option-mark{border-radius:5px}
.gra-option--check input:checked+.gpsr-option-mark::after{inset:auto;left:3px;top:0;width:6px;height:10px;border:solid #fff;border-width:0 2px 2px 0;border-radius:0;background:transparent;transform:rotate(45deg)}

.gra-text-field{display:grid;gap:6px;max-width:680px;margin:0 0 27px;min-width:0}
.gra-text-field label{font-size:16.5px;line-height:1.45;font-weight:750;color:var(--gpsr-ink)}
.gra-text-field .gpsr-text-input{max-width:none}

.gra-hazard-group{margin:0 0 14px;padding:16px 18px;border:1px solid #e1e8f5;border-radius:12px;background:#fbfcff}
.gra-hazard-group legend{font-size:16px;margin-bottom:10px}
.gra-hazard-group .gpsr-option{background:#fff}

.gra-record{padding:18px 18px 16px;border:1px solid var(--gpsr-line);border-radius:14px;background:#fff;margin:0 0 16px}
.gra-record--error{border-color:#efb5af;box-shadow:0 0 0 3px #b4231810}
.gra-record-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid #eef2f9}
.gra-record-head h3{margin:0;font-size:17px;color:var(--gpsr-ink);font-weight:800}
.gra-remove-record{padding:5px 9px;border:1px solid #e6dce3;border-radius:7px;background:#fff;color:#8d1f49;font:inherit;font-size:11px;font-weight:700;cursor:pointer}
.gra-remove-record:hover{background:#fdf0f5;border-color:#d4a8ba}
.gra-record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 16px}
.gra-field{display:grid;gap:5px;min-width:0}
.gra-field--full{grid-column:1/-1}
.gra-field>span,.gra-field-label{font-size:12.5px;line-height:1.4;font-weight:700;color:var(--gpsr-ink)}
.gra-field small{color:var(--gpsr-muted);font-size:10.5px;line-height:1.45}
.gra-select,.gra-input,.gra-textarea{width:100%;min-width:0;border:1.5px solid #dce3ed;border-radius:8px;background:#fff;color:var(--gpsr-ink);font:inherit;font-size:13.5px;outline:none}
.gra-select,.gra-input{height:44px;padding:0 11px}
.gra-textarea{min-height:82px;padding:10px 11px;resize:vertical;line-height:1.5}
.gra-select:focus,.gra-input:focus,.gra-textarea:focus{border-color:var(--gpsr-blue);box-shadow:0 0 0 3px #3758f925}
.gra-record [aria-invalid="true"]{border-color:#b42318}
.gra-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.gra-check{display:flex;align-items:flex-start;gap:8px;padding:8px 9px;border:1px solid #e3e9f3;border-radius:8px;background:#fbfcff;color:#3c4c68;font-size:11.5px;line-height:1.45;cursor:pointer;min-width:0}
.gra-check:hover{border-color:#c4d0ea;background:#f7f9ff}
.gra-check.is-selected{border-color:var(--gpsr-blue);background:#eef2ff}
.gra-check input{flex:none;width:15px;height:15px;margin:1px 0 0;accent-color:var(--gpsr-blue)}
.gra-check span{min-width:0;overflow-wrap:anywhere}
.gra-record-error{display:none;margin:11px 0 0;color:#b42318;font-size:11.5px;font-weight:650;line-height:1.5}
.gra-record--error .gra-record-error{display:block}
.gra-record-add{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:4px 0 22px}
.gra-record-add p{margin:0;color:var(--gpsr-muted);font-size:11.5px}
.gra-empty-record{padding:18px 20px;border:1px dashed #d7dfec;border-radius:11px;background:#fbfcff;color:#5f6c82;font-size:12.5px;line-height:1.6;margin:0 0 14px}
.gra-empty-record strong{display:block;color:#3c4c68;margin-bottom:3px}
.gra-empty-record p{margin:0}

.gra-overall{padding:23px 25px;border:1px solid #e1e8f5;border-top:5px solid #8a99ad;border-radius:15px;background:#fafbfd;margin:22px 0 0}
.gra-overall--priority{border-color:#efc9c5;border-top-color:#b42318;background:#fef8f7}
.gra-overall--specialist{border-color:#ead3a6;border-top-color:#b77900;background:#fffaf0}
.gra-overall--completed{border-color:#bfe7d5;border-top-color:#178157;background:#f4fbf8}
.gra-overall--further{border-color:#d8d3f5;border-top-color:#6b5bd2;background:#f8f7ff}
.gra-overall--not-indicated{border-color:#d9e2ea;border-top-color:#8a99ad;background:#fafbfd}
.gra-overall-label{display:block;font-size:10px;font-weight:850;letter-spacing:.1em;text-transform:uppercase;color:#5b6b86}
.gra-overall h2{margin:8px 0 8px;font-size:clamp(24px,3vw,33px);color:var(--gpsr-ink);font-weight:800}
.gra-overall p{max-width:820px;margin:0;color:#3c4c68;font-size:13.5px;line-height:1.65}
.gra-dimensions{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.gra-dimensions span{display:inline-flex;gap:4px;padding:5px 9px;border-radius:99px;background:#ffffffc9;border:1px solid #dfe7f3;color:#4b5b78;font-size:10.5px;font-weight:600}
.gra-dimensions b{font-weight:850;color:#253654}

.gra-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;border:1px solid #e4eaf4;border-radius:9px;padding:4px 14px;background:#fff}
.gra-fact{display:grid;grid-template-columns:170px minmax(0,1fr);gap:10px;padding:9px 0;border-bottom:1px solid #eef2f9;min-width:0}
.gra-fact:last-child{border-bottom:0}
.gra-fact span{color:#6c7990;font-size:11px;font-weight:700;line-height:1.45}
.gra-fact strong{color:#253654;font-size:11.5px;font-weight:650;line-height:1.45;overflow-wrap:anywhere}

.gra-hazard-chips{display:flex;flex-wrap:wrap;gap:7px}
.gra-hazard-chip{display:inline-flex;padding:6px 10px;border-radius:99px;background:#f0f4fb;color:#3c4c68;font-size:11px;font-weight:650;line-height:1.4}
.gra-other-hazard{margin:12px 0 0;padding:11px 13px;border:1px solid #eadfbe;border-radius:8px;background:#fffdf5;color:#6b5b2f;font-size:11.5px;line-height:1.55}

.gra-register{display:grid;gap:13px}
.gra-register-card{border:1px solid var(--gpsr-line);border-radius:13px;background:#fff;overflow:hidden}
.gra-register-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px;padding:15px 17px 13px;border-bottom:1px solid #eef2f9;background:#fbfcff}
.gra-register-kicker{display:block;font-size:10px;font-weight:850;letter-spacing:.07em;text-transform:uppercase;color:var(--gpsr-blue);margin-bottom:4px}
.gra-register-head h4{margin:0;font-size:14.5px;line-height:1.5;color:var(--gpsr-ink);font-weight:750}
.gra-attention{display:inline-block;padding:4px 8px;border-radius:99px;font-size:9.5px;font-weight:850;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.gra-attention--priority{background:#fef0ef;color:#b42318}
.gra-attention--follow-up{background:#eef2ff;color:#244fc2}
.gra-attention--recorded{background:#e9f8f0;color:#13704b}
.gra-register-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;padding:15px 17px 17px}
.gra-register-field{min-width:0}
.gra-register-field--wide{grid-column:span 2}
.gra-register-field span{display:block;color:#6c7990;font-size:9.5px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;margin-bottom:3px}
.gra-register-field strong{display:block;color:#2b3b5c;font-size:11.5px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.gra-register-field small{display:block;margin-top:3px;color:#6c7990;font-size:10.5px;line-height:1.45}

.gra-notes{list-style:none;display:grid;gap:6px;margin:0;padding:0}
.gra-notes li{position:relative;padding-left:17px;color:#5b4b60;font-size:11.5px;line-height:1.6}
.gra-notes li::before{content:'';position:absolute;left:2px;top:7px;width:6px;height:6px;border-radius:50%;background:#9a5b00}

.gra-education{margin-top:22px;padding:19px 21px;border:1px solid #dbe3ff;border-radius:13px;background:#f7f9ff}
.gra-education h3{margin:5px 0 7px;font-size:19px;color:var(--gpsr-ink);font-weight:800}
.gra-education p{margin:0;max-width:850px;color:#4e5e7d;font-size:12.5px;line-height:1.65}

.gra-related{margin-top:22px;padding:19px 21px;border:1px solid #e1e8f5;border-radius:13px;background:#fbfcff}
.gra-related h3{margin:0 0 8px;font-size:17px;color:var(--gpsr-ink)}
.gra-related ul{list-style:none;display:grid;gap:6px;margin:0;padding:0}
.gra-related li a{color:var(--gpsr-blue);font-size:12px;font-weight:650}
.gra-related li a:hover{text-decoration:underline}
.gra-related p{margin:10px 0 0;color:#5f6c82;font-size:11px;line-height:1.55}

.gra-emergency{margin:0 0 24px;padding:16px 18px;border:1px solid #efb5af;border-left:5px solid #b42318;border-radius:10px;background:#fef8f7;color:#7a2a25}
.gra-emergency strong{display:block;margin-bottom:4px;color:#8f2019;font-size:13.5px}
.gra-emergency p{margin:0;font-size:12.5px;line-height:1.6}

.gra-explainer{background:#fff;border-top:1px solid var(--gpsr-line);padding:44px 0}
.gra-explainer-head{max-width:820px;margin-bottom:22px}
.gra-explainer-head h2{margin:0 0 8px;font-size:clamp(23px,2.6vw,30px);color:var(--gpsr-ink);font-weight:800}
.gra-explainer-head p{margin:0;color:var(--gpsr-muted);font-size:13.5px;line-height:1.65}
.gra-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.gra-role-card{padding:19px 20px;border:1px solid #e1e8f5;border-top:4px solid #3758f9;border-radius:12px;background:#fbfcff}
.gra-role-card:nth-child(2){border-top-color:#178157}
.gra-role-card:nth-child(3){border-top-color:#9a5b00}
.gra-role-card h3{margin:0 0 7px;font-size:15.5px;color:var(--gpsr-ink);font-weight:800}
.gra-role-card p{margin:0;color:#5b4b60;font-size:12.5px;line-height:1.62}
.gra-note{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:15px}
.gra-note>div{padding:17px 19px;border:1px solid #e3e9f3;border-radius:11px;background:#fafbfe}
.gra-note h3{margin:0 0 6px;font-size:14.5px;color:var(--gpsr-ink);font-weight:800}
.gra-note p{margin:0;color:#5b4b60;font-size:12px;line-height:1.6}

@media(max-width:1000px){
  .gra-facts{grid-template-columns:1fr}
  .gra-role-grid{grid-template-columns:1fr}
  .gra-register-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gra-register-field--wide{grid-column:1/-1}
}
@media(max-width:790px){
  .gra-record-grid{grid-template-columns:1fr}
  .gra-check-grid{grid-template-columns:1fr}
  .gra-record-add{align-items:flex-start;flex-direction:column}
  .gra-note{grid-template-columns:1fr}
  .gra-fact{grid-template-columns:1fr;gap:2px}
  .gra-register-grid{grid-template-columns:1fr}
  .gra-overall{padding:19px 18px}
  .gra-progress-steps{gap:3px}
  .gra-progress-steps .gpsr-progress-info small{display:none}
}
@media(max-width:620px){
  .gra-progress-steps{grid-template-columns:repeat(5,minmax(0,1fr))}
  .gra-progress-steps .gpsr-progress-step{display:block;text-align:center}
  .gra-progress-steps .gpsr-progress-num{margin:0 auto 4px;width:22px;height:22px;font-size:9.5px}
  .gra-progress-steps .gpsr-progress-info strong{font-size:9px;line-height:1.3}
  .gra-dimensions span{width:100%}
  .gra-hazard-group{padding:14px}
}
