/* .form-label {
            font-size:18px !important;
        } */
#cancer_screening {
    padding-left: 1%;
    padding-right: 1%;
}

.cercival-generalCode {
    margin-top: 35px;
}

.Ae-info {
    display: none;
}

.breast-label {
    text-align: left;
    font-size: 18px;
    margin-bottom: 20px;
}

.cercival-personalInfo,
.cercival-ObMenhis,
.cercival-breat,
.cercival-SpeculumEx,
.cercival-stiCom,
.cercival-viascreening,
.cercival-finding,
.cercival-thermal,
.cercival-eligible,
.cercival-adverse {
    
    margin-top: 10px;
    margin-bottom: 20px;
    padding-top: 10px;
    padding-bottom: 20px;
}
.cc_underline{
    display:inline-block;
    border-bottom: 2px solid #ffff00;
}

.cercival-btnBlock{
    justify-content: center;
}
.cercival-header{
    position: relative;
}
.cervical-historyBtn{
    position: absolute;
    left: 2%;
    top: 17px;
    display: none;
}
.cervical_refresh{
    position: absolute;
    right: 2%;
    top: 17px;
    
}
.cercivalHis-alert{
    position: absolute;
    left: 10%;
    top: 25px;
    display: none;
    color: #ded742;
}
.cercival_IDchangeBlock{
    width: 15%;
    text-align: left;
    position: absolute;
    left: 18%;
    top: 13px;
    display: none;
    
}
.cercival_IDchangeBlock label{
    position: absolute;
    display: inline-block;
    top: 10px;
    left: 10%;
}
.cercival_IDchangeBlock input[type='checkbox']{
    width: 8%;
}
.his_ListHead div{
    border: 1px solid #fff;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
}
.his_ListHead div:last-child{
    border: none;
}
.cercival-history{
    display: none;
}
.cercival-goHome{
    margin-top: 0;
    min-width: 110px;
}
.cercival-history-toolbar{
    margin-bottom: 10px;
}
.cercival-history-toolbar > div{
    padding-left: 0;
}
.cc-history-table-wrap{
    border: 1px solid #fff;
}
.cc-history-table{
    margin-bottom: 0;
    color: #fff;
    background: transparent;
}
.cc-history-table thead th{
    border: 1px solid #fff;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    vertical-align: middle;
    white-space: nowrap;
}
.cc-history-table tbody td{
    border: 1px solid #fff;
    font-size: 17px;
    vertical-align: middle;
}
.cc-history-table tbody td:nth-child(1){
    width: 80px;
    text-align: center;
}
.cc-history-table tbody td:nth-child(2),
.cc-history-table tbody td:nth-child(3),
.cc-history-table tbody td:nth-child(4){
    min-width: 180px;
}
.cc-history-table tbody td:nth-child(5){
    min-width: 220px;
}
.cercival-hisActionCol{
    width: 100%;
}
.cercival-hisActionWrap{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
}
.cercival-hisActionWrap .btn{
    min-width: 96px;
}
.cercival-hisData a{
    width: 50%;
    list-style: none;
    text-decoration: none;
    text-align: center;
    display: block;
    background-color: #d60be5;
    color: #fff;
}
.cercival-hisData a:hover{
    background-color: #ded742;
}
.export-ccBtn{
    margin-top:35px;
}
.cercival-his-detailBtn{
    margin-right: 0;
}

.cervical-screening-page .cercival-header {
    position: relative;
}

.cervical-screening-page .cervical-header-title-row {
    display: block;
    margin-bottom: 8px;
}

.cervical-screening-page .cervical-header-title-row h2 {
    margin-bottom: 0;
}

.cervical-screening-page .cervical-header-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-top: 0;
}

.cervical-screening-page .cervical-header-action-item {
    display: flex;
    align-items: center;
}

.cervical-screening-page .cercival-search-row {
    align-items: flex-end;
}

.cervical-screening-page .cercival-search-row #cercival_ptFind {
    min-height: 40px;
}

.cervical-screening-page .form-control,
.cervical-screening-page .form-select {
    min-height: 44px;
    height: 44px;
    box-sizing: border-box;
}

.cervical-screening-page .date-holder {
    position: relative;
    display: flex;
    align-items: center;
}

.cervical-screening-page .date-holder .form-control {
    width: 100%;
    padding-right: 36px;
}

.cervical-screening-page .date-holder .dateimg,
.cervical-screening-page .dateimg {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: auto;
    cursor: pointer;
    z-index: 2;
}

.cervical-screening-page .cercival-adverse .adverse-postpone-label br,
.cervical-screening-page .cercival-adverse .adverse-reason-label br {
    display: none;
}

.cervical-screening-page .cervical-historyBtn,
.cervical-screening-page .cervical_refresh,
.cervical-screening-page .cercivalHis-alert {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    float: none !important;
    margin: 0;
}

.cervical-screening-page .cervical_refresh {
    margin-left: 0;
}

.cervical-screening-page .cercival_IDchangeBlock {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    margin: 0;
    text-align: left;
}

.cervical-screening-page .cercival_IDchangeBlock label {
    position: static;
    display: inline-block;
    margin: 0 0 0 6px;
}

.cervical-screening-page .cercival_IDchangeBlock input[type='checkbox'] {
    width: 20px;
    height: 20px;
    margin: 0;
    vertical-align: middle;
}

.cervical-screening-page .cercival_IDchangeBlock[style*="display: block"] {
    display: inline-flex !important;
    align-items: center;
}







.cervical-screening-page .cc-top-tools-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 12px;
}

.cervical-screening-page .cc-top-tool-left,
.cervical-screening-page .cc-top-tool-right {
  flex: 0 0 auto;
}

.cervical-screening-page .cc-top-tool-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cervical-screening-page .cc-top-tool-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  padding-left: 12px;
  padding-right: 12px;
  min-width: 0;
}

.cervical-screening-page .cc-patient-summary {
  width: 100%;
  max-width: 760px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 6px 18px;
  background: rgba(0, 0, 0, 0.12);
}

.cervical-screening-page .cc-summary-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  color: #fff;
}

.cervical-screening-page .cc-summary-item strong {
  color: #8fe7ff;
  background: transparent !important;
}

.cervical-screening-page .cc-top-tool-right .cercivalHis-alert {
  margin: 0;
  color: #ded742;
  white-space: nowrap;
}

.cervical-screening-page #cc_patient_summary,
.cervical-screening-page #cc_patient_summary span,
.cervical-screening-page #cc_patient_summary strong {
  background: transparent !important;
}

.cervical-screening-page #cc_patient_summary span {
  text-align: left;
}

.cervical-screening-page .cc-summary-item > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkbox-container {
  display: flex; /* Establishes a flex container */
  flex-direction: column; /* Stacks the child elements vertically */
}


.checkbox-group {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  transition: background-color 0.2s ease;
}



/* Hide native checkbox and draw a stable custom box/tick beside wrapped labels */
.cervical-screening-page .custom-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.cervical-screening-page .custom-checkbox-label {
  position: relative;
  display: inline-block;
  min-height: 24px;
  padding-left: 34px;
  line-height: 1.35;
  margin: 0;
}

.cervical-screening-page .custom-checkbox-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border: 2px solid #6e88a8;
  border-radius: 3px;
  background: transparent;
}

.cervical-screening-page .custom-checkbox-label::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 5px;
  width: 6px;
  height: 12px;
  border: solid #ff9f1a;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cervical-screening-page .custom-checkbox:checked + .custom-checkbox-label::after {
  opacity: 1;
}

.cervical-screening-page .custom-checkbox:focus + .custom-checkbox-label::before {
  outline: 2px solid #ff9f1a;
  outline-offset: 2px;
}


.error-msg {
  color: red;
  font-size: 0.85em;
  display: none;
}

input.invalid, select.invalid, textarea.invalid{
  border-color: red !important;
  background: #ffecec;
}

.cc-yesno-select-hidden {
  display: none !important;
}

.cervical-screening-page .sti-select-hidden,
.cervical-screening-page .cc-yesno-select-hidden {
  display: none !important;
}

.cc-yesno-check-wrap,
.cervical-screening-page .sti-select-check-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background: #ffffff;
  padding: 6px 10px;
}

.cc-yesno-check-wrap.is-disabled {
  background: #eef1f4;
  opacity: 0.8;
}

.cc-yesno-check,
.cervical-screening-page .sti-select-check-input {
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}

.cc-yesno-check-label,
.cervical-screening-page .sti-select-check-label {
  margin: 0;
  font-weight: 600;
  color: #1f2d3a;
}

.cervical-screening-page .sti-select-check-input:focus,
.cervical-screening-page .sti-select-check-input:focus-visible {
  outline: 2px solid rgb(255, 106, 0);
  outline-offset: 2px;
  box-shadow: 0 0 4px rgba(255, 106, 0, 0.45);
}

@media screen and (min-width: 768px) and (max-width: 1280px) {
  .cervical-screening-page #cancer_screening {
    padding-left: 0;
    padding-right: 0;
  }

  .cervical-screening-page .cercival-header {
    padding: 10px 8px 8px;
  }

  .cervical-screening-page .cercival-header h2 {
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 1.25;
  }

  .cervical-screening-page .cercival_IDchangeBlock label {
    white-space: nowrap;
  }

  .cervical-screening-page .cercival-personalInfo {
    row-gap: 10px;
  }

  .cervical-screening-page #cercival_historyAlert {
    display: none !important;
  }

  .cervical-screening-page .cc-patient-summary {
    max-width: 600px;
    padding: 7px 10px;
    gap: 6px 14px;
    font-size: 15px;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .cervical-screening-page .cc-summary-item {
    justify-content: flex-start;
  }

  .cervical-screening-page #cc_patient_summary .cc-summary-item:nth-child(2),
  .cervical-screening-page #cc_patient_summary .cc-summary-item:nth-child(3) {
    justify-content: flex-end;
  }

  .cervical-screening-page #cc_patient_summary .cc-summary-item:nth-child(2) > span,
  .cervical-screening-page #cc_patient_summary .cc-summary-item:nth-child(3) > span {
    text-align: right;
  }

  .cervical-screening-page .cercival-search-row > .cercival-pid-col {
    flex: 0 0 30%;
    max-width: 30%;
  }

  .cervical-screening-page .cercival-search-row > .cercival-fid-col {
    flex: 0 0 30%;
    max-width: 30%;
  }

  .cervical-screening-page .cercival-search-row > .cercival-searchbtn-col {
    flex: 0 0 15%;
    max-width: 15%;
  }

  .cervical-screening-page .cercival-search-row > .cercival-vdate-col {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .cervical-screening-page .cercival-personalInfo:not(.cercival-search-row):not(.cercival-hiv-row):not(.cercival-hpv-row) > .col-sm-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .cervical-screening-page .cercival-personalInfo:not(.cercival-search-row):not(.cercival-hiv-row):not(.cercival-hpv-row) > .col-sm-2 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .cervical-screening-page .cercival-personalInfo:not(.cercival-search-row):not(.cercival-hiv-row):not(.cercival-hpv-row) > .col-sm-1 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  .cervical-screening-page .cercival-hiv-row {
    flex-wrap: nowrap;
    row-gap: 0;
  }

  .cervical-screening-page .cercival-hiv-row > .col-sm-2,
  .cervical-screening-page .cercival-hiv-row > .col-sm-1 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .cervical-screening-page .cercival-hpv-row {
    flex-wrap: nowrap;
    row-gap: 0;
  }

  .cervical-screening-page .cercival-hpv-row > .col-sm-2 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .cervical-screening-page .cercival-hpv-row > .col-sm-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .cervical-screening-page .cercival-generalCode {
    margin-top: 0;
    margin-bottom: 0;
  }

  .cervical-screening-page .cercival-personalInfo .input-group > .form-control,
  .cervical-screening-page .cercival-personalInfo .input-group-append .btn,
  .cervical-screening-page .cercival-personalInfo .form-select,
  .cervical-screening-page .cercival-personalInfo .date-holder .form-control {
    min-height: 40px;
  }

  .cervical-screening-page .cercival-btnBlock {
    row-gap: 10px;
  }

  .cervical-screening-page .cercival-btnBlock > .col-sm-2 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .cervical-screening-page .cercival-btnBlock .btn {
    width: 100%;
  }

  .cervical-screening-page .cc-yesno-check-wrap {
    min-height: 44px;
    padding: 8px 10px;
  }

  .cervical-screening-page .cc-yesno-check {
    width: 24px;
    height: 24px;
  }

  .cervical-screening-page .cercival-breat .col-sm-1 .cc-yesno-check-wrap,
  .cervical-screening-page .cercival-breat .col-sm-1 .sti-select-check-wrapper {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .cervical-screening-page .cercival-breat .breast-exam-label-col {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  .cervical-screening-page .cercival-breat .breast-exam-input-col {
    flex: 0 0 16.667%;
    max-width: 16.667%;
  }

  .cervical-screening-page .cercival-breat .col-sm-1 .cc-yesno-check-label,
  .cervical-screening-page .cercival-breat .col-sm-1 .sti-select-check-label {
    font-size: 13px;
  }

  .cervical-screening-page .cercival-finding .finding-scj-col {
    flex: 0 0 30%;
    max-width: 30%;
  }

  .cervical-screening-page .cercival-finding .finding-via-result-col {
    flex: 0 0 20%;
    max-width: 20%;
  }

  .cervical-screening-page .cercival-finding .finding-counselling-col {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .cervical-screening-page .cercival-finding .finding-confirm-by-col {
    flex: 0 0 55%;
    max-width: 55%;
  }

  .cervical-screening-page .cercival-finding .finding-confirm-result-col {
    flex: 0 0 45%;
    max-width: 45%;
  }

  .cervical-screening-page .cercival-finding .finding-confirm-result-label {
    white-space: nowrap;
  }

  .cervical-screening-page .cercival-eligible.thermal-top-row {
    row-gap: 10px;
  }

  .cervical-screening-page .cercival-eligible.thermal-top-row > .thermal-need-col {
    order: 1;
    flex: 0 0 22%;
    max-width: 22%;
  }

  .cervical-screening-page .cercival-eligible.thermal-top-row > .thermal-need-col .thermal-need-label {
    white-space: nowrap;
  }

  .cervical-screening-page .cercival-eligible.thermal-top-row > .thermal-date-col {
    order: 2;
    flex: 0 0 18%;
    max-width: 18%;
  }

  .cervical-screening-page .cercival-eligible.thermal-top-row > .thermal-eligible-col {
    order: 3;
    flex: 0 0 30%;
    max-width: 30%;
  }

  .cervical-screening-page .cercival-eligible.thermal-top-row > .eligibleNoReasons {
    order: 5;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .cervical-screening-page .gp_nonEligible_hide > .thermal-mam-col {
    order: 1;
    flex: 0 0 34%;
    max-width: 34%;
  }

  .cervical-screening-page .gp_nonEligible_hide > .thermal-mam-col .form-label {
    white-space: nowrap;
  }

  .cervical-screening-page .gp_nonEligible_hide > .thermal-result-col {
    order: 2;
    flex: 0 0 66%;
    max-width: 66%;
  }

  .cervical-screening-page .gp_nonEligible_hide > .thermal-counsel-col {
    order: 3;
    flex: 0 0 42%;
    max-width: 42%;
  }

  .cervical-screening-page .gp_nonEligible_hide > .thermal-performed-col {
    order: 4;
    flex: 0 0 34%;
    max-width: 34%;
  }

  .cervical-screening-page .gp_nonEligible_hide > .thermal-done-date-col {
    order: 5;
    flex: 0 0 24%;
    max-width: 24%;
  }

  .cervical-screening-page .gp_nonEligible_hide > .thermal-reason-col {
    order: 2;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .cervical-screening-page .cercival-adverse > .adverse-postpone-col {
    order: 1;
    flex: 0 0 18%;
    max-width: 18%;
  }

  .cervical-screening-page .cercival-adverse > .adverse-financial-col {
    order: 2;
    flex: 0 0 34%;
    max-width: 34%;
  }

  .cervical-screening-page .cercival-adverse > .adverse-refer-col {
    order: 3;
    flex: 0 0 20%;
    max-width: 20%;
  }

  .cervical-screening-page .cercival-adverse > .adverse-reason-col {
    order: 4;
    flex: 0 0 28%;
    max-width: 28%;
  }

  .cervical-screening-page .cercival-adverse {
    align-items: flex-end;
  }

  .cervical-screening-page .cercival-adverse > .adverse-postpone-col .form-label,
  .cervical-screening-page .cercival-adverse > .adverse-financial-col .form-label,
  .cervical-screening-page .cercival-adverse > .adverse-refer-col .form-label,
  .cervical-screening-page .cercival-adverse > .adverse-reason-col .form-label {
    min-height: 44px;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    line-height: 1.15;
  }

  .cervical-screening-page .cercival-adverse .adverse-postpone-label,
  .cervical-screening-page .cercival-adverse .adverse-reason-label {
    line-height: 1.1;
  }

  .cervical-screening-page .cercival-adverse .adverse-postpone-label br,
  .cervical-screening-page .cercival-adverse .adverse-reason-label br {
    display: block;
  }

  .cervical-screening-page .cercival-gy-row {
    align-items: flex-end;
  }

  .cervical-screening-page .cercival-gy-row > .gy-biopsy-done-col {
    flex: 0 0 22%;
    max-width: 22%;
  }

  .cervical-screening-page .cercival-gy-row > .gy-biopsy-result-col {
    flex: 0 0 28%;
    max-width: 28%;
  }

  .cervical-screening-page .cercival-gy-row > .gy-management-col {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .cervical-screening-page .cercival-gy-row > .gy-biopsy-done-col .form-label,
  .cervical-screening-page .cercival-gy-row > .gy-biopsy-result-col .form-label,
  .cervical-screening-page .cercival-gy-row > .gy-management-col .form-label {
    min-height: 44px;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    line-height: 1.15;
  }

  .cervical-screening-page .cercival-gy-row > .gy_manage_other {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .cervical-screening-page .cercival-followup-row {
    align-items: flex-end;
  }

  .cervical-screening-page .cercival-followup-row > .followup-date-col {
    flex: 0 0 30%;
    max-width: 30%;
  }

  .cervical-screening-page .cercival-followup-row > .followup-md-col {
    flex: 0 0 35%;
    max-width: 35%;
  }

  .cervical-screening-page .cercival-followup-row > .followup-csl-col {
    flex: 0 0 35%;
    max-width: 35%;
  }

  .cervical-screening-page .cercival-followup-row > .followup-date-col .form-label,
  .cervical-screening-page .cercival-followup-row > .followup-md-col .form-label,
  .cervical-screening-page .cercival-followup-row > .followup-csl-col .form-label {
    min-height: 44px;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    line-height: 1.15;
  }

  .cervical-screening-page .cercival-followup-row > .followup-validation-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .cervical-screening-page .cercival-history-toolbar {
    margin-bottom: 8px;
  }

  .cervical-screening-page .cercival-history-toolbar .cercival-goHome {
    min-width: 96px;
    padding: 6px 12px;
  }

  .cervical-screening-page .cc-history-table {
    table-layout: fixed;
    width: 100%;
  }

  .cervical-screening-page .cc-history-table thead th {
    font-size: 16px;
    padding: 8px 6px;
  }

  .cervical-screening-page .cc-history-table tbody td {
    font-size: 15px;
    padding: 8px 6px;
  }

  .cervical-screening-page .cc-history-table th:nth-child(1),
  .cervical-screening-page .cc-history-table td:nth-child(1) {
    width: 8%;
  }

  .cervical-screening-page .cc-history-table th:nth-child(2),
  .cervical-screening-page .cc-history-table td:nth-child(2) {
    width: 24%;
    min-width: 0;
  }

  .cervical-screening-page .cc-history-table th:nth-child(3),
  .cervical-screening-page .cc-history-table td:nth-child(3) {
    width: 22%;
    min-width: 0;
  }

  .cervical-screening-page .cc-history-table th:nth-child(4),
  .cervical-screening-page .cc-history-table td:nth-child(4) {
    width: 18%;
    min-width: 0;
  }

  .cervical-screening-page .cc-history-table th:nth-child(5),
  .cervical-screening-page .cc-history-table td:nth-child(5) {
    width: 28%;
    min-width: 0;
  }

  .cervical-screening-page .cercival-hisActionWrap {
    gap: 6px;
  }

  .cervical-screening-page .cercival-hisActionWrap .btn {
    min-width: 82px;
    font-size: 14px;
    padding: 6px 10px;
    line-height: 1.2;
    white-space: nowrap;
  }
}

@media screen and (max-width: 767px) {
  .cervical-screening-page .cc-top-tools-row {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .cervical-screening-page .cc-top-tool-center {
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .cervical-screening-page .cc-top-tool-right {
    gap: 8px;
  }

  .cervical-screening-page .cc-patient-summary {
    max-width: 100%;
    grid-template-columns: 1fr;
    justify-content: flex-start;
    padding: 8px 10px;
    gap: 6px 12px;
  }

  .cervical-screening-page .cc-summary-item {
    justify-content: flex-start;
  }
}
