#toshow {
    color: red;
}


.sti-tablet {
    display: none;
}

.sti-mobile {
    display: none;
}


#f44 h2 {
    text-align: center;
}

#sit_saveUpdate_btn{
    display: none;
}

#lastVisit_Date {
    margin-top: 15px;
    font-size: 18px;
    color: #808080;
    background-color: #f5f5dc;
    font-weight: 900;
}

#idchange_section label {
    display: inline-block;
    margin-top: 9px;
}

#idchange_section input {
    width: 5%;
    float: left;
    margin-right: 4%;
}

.sti-colist li a {
    color: #d4f6cc;
}

.sti-colist li {
    margin-right: 2.5%;
}

.assist-nav-ul li {
    width: 20%;
}

.assist-sti {
    background-color: #003865;
}

.LabTR-genital td {
    width: 25%;
}

.LabTR-genital td label {
    width: 100%;
}

.LabTR-genital td select {
    margin: 0px 45%;
}


.LabTR-genital {
    margin: 1px;
}

.LabTR-genital table tr th {
    text-align: center;
}

.sti-risk,
.sti-exam {
    margin-bottom: 20px;
}

/* asssist Register Css &&  assist Physical Exam Css */


.assist-parent-div {
    background-color: #003865;
}

.register-first-section.phyExam-section,
.LabRT-section,
.assist-history {
    padding: 0px 1%;
    border: 1px solid #e9f8f9;
    padding-bottom: 10px;
}

.register-second-section {
    padding: 10px 1%;
}

.register-second-section h2,
.LabRT-section h2,
.assist-history h2 {
    margin-top: 10px;
    font-size: 25px;
    font-weight: 900;
    color: #f5f5dc;
}

.sti-diagnosis {
    display: inline-block;
}

.sti-check {
    float: right;
    text-align: center;
}

.history,
.physical,
.labTreat .lab-tre-left,
.labTreat .lab-tre-right {
    float: left;
    width: 50%;
}

.male-Risk .lab-tre-left {
    width: 80%;
}

.diagnosis-section {
    float: left;
    border: 1px solid #ffffff;
    width: 33.333%;
}
.dianosis-persumptive,.diagnosis{
    border: 1px solid #ffffff;
}
.diagnosis label{
    text-align: left;
    margin-left: 1%;
}
.diagnosis-dateail{
    padding-left: 2%;
}
.male {
    display: none;
}

.assist-sti .male.sti-force-show {
    display: revert;
}

.assist-sti .male.sti-gender-hidden,
.assist-sti .female.sti-gender-hidden {
    display: none !important;
}


.diagnosis-dateail label{
    margin-top: 11px;
    display: inline-block;
}
.diagnosis-dateail select{
    float: right;
    margin:5px 2%;
   
}


.male-sti-section {
    padding: 15px 1%;
    border: 1px solid #ffffff;
}
.male-sti-section label{
    text-align: left;
    margin-right: 2%;
    width: 13%;
    float: left;
    margin-top: 10px;
}
.male-sti-section select,
.male-sti-section input,
.male-sti-section .sti-select-check-wrapper{
    width:16% ;
    float:left;
    margin-right: 2%;
    margin-bottom: 10px;
}

.male-sti-section input:last-child{
    width: 82%;
}





.lab-tre-right .risk-assentment {
    padding-left: 2%;
    border-left: 1px solid #ffffff;
}

.lab-tre-left .risk-assentment {
    padding-right: 2%;
}

.risk-assentment {
    padding-bottom: 20px;

}

.labTreat,
.riskhead,
.riskhead-right,
.risk-calculate-female {
    border-bottom: 1px solid #ffffff;
    margin-bottom: 10px;
}

.physical {
    float: right;
}

.history-physical section {
    border: 1px solid #ffffff;
    padding: 10px 2%;
}

.riskhead label,
.risk-assentment label {
    text-align: left;
    display: inline-block;
    margin-right: 3%;
    margin-top: 10px;
    padding-left:5px;
}

.assist-sti #menu2 .sti-risk-subtitle {
    color: #ffd97a;
}

.risk-assentment select,
.risk-assentment .sti-select-check-wrapper {
    float: right;
    width: 30%;

}

.male-Risk .lab-tre-left .risk-assentment select,
.male-Risk .lab-tre-left .risk-assentment .sti-select-check-wrapper {
    width: 15%;
}

.male-Risk{
    border: 1px solid #ffffff;
    padding-left: 1%;
}

.riskhead label:nth-child(2) {
    float: right;
}

.riskhead label:nth-child(1) {
    border-bottom: 1px solid #ffffff;
}

.history-physical label {
    width: 50%;
    float: left;
    text-align: left;
}

.label-block {
    margin-top: 18px;
    margin-bottom: 24px;
}

.section-block {
    margin-bottom: 20px;
}

.history-physical h2 {
    margin-bottom: 30px;
}

.history-physical input,
.history-physical select,
.history-physical .sti-select-check-wrapper {
    width: 30%;
    float: right;
   
}

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

.sti-select-check-wrapper {
    display: inline-flex;
    align-items: center;
   
    min-height: 38px;
    padding: 0 10px;
   
    border-radius: 0.25rem;
   
    color: #1f2d3a;
    line-height: 1.2;
}

.sti-select-check-input {
    width: 22px;
    height: 22px;
    margin: 0;
    flex: 0 0 auto;
    padding-right:3px;
    
}

.assist-sti input[type="checkbox"]:focus,
.assist-sti input[type="checkbox"]:focus-visible {
    outline: 2px solid rgb(255, 106, 0);
    outline-offset: 2px;
    box-shadow: 0 0 5px rgb(255, 106, 0) !important;
    border-color: rgb(255, 106, 0) !important;
}

.assist-sti .sti-select-check-wrapper .sti-select-check-input:focus,
.assist-sti .sti-select-check-wrapper .sti-select-check-input:focus-visible {
    outline: 3px solid rgb(255, 106, 0);
    outline-offset: 1px;
    box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.35);
}

.assist-sti .history-physical .sti-select-check-wrapper .sti-select-check-input {
    float: none !important;
    width: 22px !important;
    margin-right: 8px;
}

.sti-select-check-label {
    display: inline;
    margin: 0;
    text-align: left;
    font-weight: 600;
    color:#ffffff;
}

.sti-select-check-disabled {
    background-color: #f0f2f4;
    border-color: #d8dde2;
    opacity: 0.88;
}

.history-physical b {
    color: #7fffd4;
}

#f44 h2,
.sti-male h2,
.sti-female h2,
.sti-common h2,
.LabTR-patient label {
    font-size: 22px;
    padding-left:5px;
}

.sti-male h2,
.sti-female h2,
.sti-common h2,
.sti-phymale h2 {
    text-align: center;
    border-bottom: none;
    box-shadow: 0px 4px 5px #456a89;
}

.sti-male .row,
.sti-female .row,
.sti-common .row {
    margin-bottom: 20px;
}

.sti-cervical-infection {
    margin-bottom: 15px;
}

.LabRT-section h3 {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 900;
    color: #f5f5dc;
}

.LabTR-patient {
    /* border: 1px solid #E9F8F9; */
    /* padding: 5px 1%; */
    margin-bottom: 10px;
}

.LabTR-genital table,
.assist-history table {
    color: #ffffff;
    border: 1px solid #e9f8f9;
    margin-top: 20px;
}

.LabRDT-treatment-checkbox,
.LabRDT-treatment-allergy {
    margin-left: 1%;
    border: 1px solid #e9f8f9;
    margin-bottom: 20px;
    width: 98.2%;
    padding-bottom: 20px;
}

.LabRDT-treatment-allergy {
 padding-left: 1%;
 padding-right: 1%;
}
.LabRDT-treatment-checkbox input[type="checkbox"] {
    height: 15px;
    width: 18px;
}

/* Keep treatment checkbox size consistent with diagnosis checkbox UI */
.assist-sti .LabRDT-treatment-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 6px;
    vertical-align: middle;
}

.LabRDT-treatment-checkbox label {
    display: inline-block;
    text-align: left;
}

.LabRDT-treatment-checkbox label {
    font-size: 20px;
}

.LabRDT-treatment-checkbox div,.counselling-sti-check div {
    margin: 10px 0px;
    width: 33.333%;
    max-width: 100%;
}
.counselling-sti-check div
{
    width: 25%;
}

.counselling-sti-check div:nth-child(3){
    width: 35%;
}
.counselling-sti-check div:nth-child(n+4){
    width: 20%;
}

.counselling-sti-check input[type='checkbox']{
    height: 26px;
    width: 25px;
    margin-right: 2%;
}

.counselling-sti-check label{
    display: inline-block;
}
.assist-history ul {
    width: 20%;
    float: left;
}

.general-id {
    margin-top: 35px;
}

.female-row {
    margin-bottom: 20px;
}

.calculate-score {
    padding: 10px 0px;
    text-align: center;
    margin-bottom: 20px;
}

.calculate-score button {
    background-color: #dc3545;
}

.sti-risk-remark {
    margin-bottom: 20px;
}

.show-button {
    justify-content: center;
}

.sti-button {
    justify-content: center;
}

.hide {
    display: none;
}

.sti-female,
.sti-common,
.sti-phymale {
    border: 1px solid #c060a1;
    padding: 10px 1%;
    margin: 1px;
    margin-bottom: 20px;
}

.sti-common,
.sti-phymale {
    border: 1px solid #f0caa3;
}

.sti-male {
    padding: 10px 1%;
}

.sti-phySection {
    padding-left: 2%;
    padding-right: 2%;
}

.sti-score {
    width: 100%;
    height: 100%;
    padding: 14px 0px;
    font-size: 20px;
}

#stiUpdate td,
#menu3 td,
#menu4 td {
    font-size: 16px;
    color: #003865;
}

.sti-update-button {
    margin-right: 5%;
}

/* On smaller screens, where height is less than 450px, change the style of the sidebar (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

    .sidenav a {
        font-size: 18px;
    }
}

@media screen and (min-width: 600px) and (max-width: 1160px) {
    .sti-tablet {
        display: block;
    }

    .sti-mobile {
        display: none;
    }



    #toshow {
        color: red;
    }

    #f44 h2 {
        text-align: center;
    }

    #lastVisit_Date {
        margin-top: 15px;
        font-size: 16px;

    }

    .sti-colist li a {
        color: #d4f6cc;
    }

    .sti-colist li {
        margin-right: 2.5%;
    }

    .sti-Id .col-sm-2 {
        width: 50%;
    }

    .sti-Id .col-sm-3 {
        width: 50%;
    }

    .assist-nav-ul li {
        width: 20%;
    }

    .assist-sti {
        background-color: #003865;
    }

    .LabTR-genital td {
        width: 25%;
    }

    .LabTR-genital td label {
        width: 70%;
        font-size: 15px;
    }

    .LabTR-genital {
        margin: 1px;
    }

    .sti-risk,
    .sti-exam {
        margin-bottom: 20px;
    }

    .sti-risk div:nth-of-type(1) {
        width: 100%;
        text-align: left;
    }

    .sti-risk div:nth-of-type(1) label {
        width: 35%;
    }

    .sti-risk div:nth-of-type(1) select,
    .sti-risk div:nth-of-type(1) .sti-select-check-wrapper {
        width: 30.33%;
    }

    .sti-risk div:nth-of-type(n+2) {
        width: 33.33%;
    }

    /* asssist Register Css &&  assist Physical Exam Css */


    .assist-parent-div {
        background-color: #003865;
    }

    .register-first-section.phyExam-section,
    .LabRT-section,
    .assist-history {
        padding: 0px 1%;
        border: 1px solid #e9f8f9;
        padding-bottom: 10px;
    }

    .register-second-section {
        padding: 10px 1%;
    }

    .register-second-section h2,
    .LabRT-section h2,
    .assist-history h2 {
        margin-top: 10px;
        font-size: 25px;
        font-weight: 900;
        color: #f5f5dc;
    }

    .sti-diagnosis {
        display: inline-block;
    }

    .sti-check {
        width: 80%;
        text-align: center;
    }

    #f44 h2,
    .sti-male h2,
    .sti-female h2,
    .sti-common h2,
    .LabTR-patient label {
        font-size: 22px;
       
    }

    .LabTR-patient label {
        font-size: 18px;
    }

    .sti-male h2,
    .sti-female h2,
    .sti-common h2,
    .sti-phymale h2 {
        text-align: center;
        border-bottom: none;
        box-shadow: 0px 4px 5px #456a89;
    }

    .sti-male .row,
    .sti-female .row,
    .sti-common .row {
        margin-bottom: 20px;
    }

    .sti-cervical-infection {
        margin-bottom: 15px;
    }

    .LabRT-section h3 {
        margin-top: 10px;
        font-size: 20px;
        font-weight: 900;
        color: #f5f5dc;
    }

    .LabTR-patient {
        /* border: 1px solid #E9F8F9; */
        /* padding: 5px 1%; */
        margin-bottom: 10px;
    }

    .LabTR-genital table,
    .assist-history table {
        color: #ffffff;
        border: 1px solid #e9f8f9;
        margin-top: 20px;
    }

    .LabRDT-treatment-checkbox,
    .LabRDT-treatment-allergy {
        margin-left: 1%;
        border: 1px solid #e9f8f9;
        margin-bottom: 20px;
        width: 98.2%;
        padding-bottom: 20px;
    }

    /* .LabRDT-treatment-allergy {
      border: 1px solid #E9F8F9;
      margin-bottom: 20px;
    } */
    .LabRDT-treatment-checkbox input[type="checkbox"] {
        height: 22px;
        width: 22px;
    }

    .LabRDT-treatment-checkbox div {
        margin: 10px 0px;
        float: left;

    }

    .assist-history ul {
        width: 20%;
        float: left;
    }

    .general-id {
        margin-top: 35px;
    }

    .female-row {
        margin-bottom: 20px;
    }

    .disease-std li {
        width: 33.333%;
        float: left;
        text-align: center;
        padding: 5px 0px;
        background-color: #dc3545;
        margin-right: 2%;

    }


    .disease-std li:nth-of-type(2) {
        width: 44%;
    }

    .disease-std li:nth-of-type(3) {
        width: 18%;
        margin-right: 0px;
    }

    .ucler-list,
    .disharge-list,
    .otherStd-list {
        display: none;
    }

    .ucler-list ul li,
    .disharge-list ul li,
    .otherStd-list ul li {
        float: left;
        width: 50%;

    }

    .ucler-list ul li label,
    .disharge-list ul li label,
    .otherStd-list ul li label {
        font-size: 18px;
        display: inline-block;
        width: 70%;
    }

    .disharge-list ul li label {
        width: 80%;
    }

    .otherStd-list ul li label {
        width: 81%;
    }

    .ucler-list ul,
    .disharge-list ul,
    .otherStd-list ul {
        padding-left: 0px;
    }

    .disease-std {
        padding-left: 0px;
    }

    .calculate-score {
        padding: 10px 0px;
        text-align: center;
        margin-bottom: 20px;
    }

    .calculate-score button {
        background-color: #dc3545;
    }

    .sti-risk-remark {
        margin-bottom: 20px;
    }

    .show-button {
        display: none;
        justify-content: center;
    }

    .sti-button {
        justify-content: center;
    }

    .sti-button div {
        width: 40%;
    }

    .hide {
        display: none;
    }

    .sti-female,
    .sti-common,
    .sti-phymale {
        border: 1px solid #c060a1;
        padding: 10px 1%;
        margin: 1px;
        margin-bottom: 20px;
    }

    .sti-common,
    .sti-phymale {
        border: 1px solid #f0caa3;
    }

    .sti-male {
        border: 1px solid #e9f8f9;
        margin: 0px 1px 20px 1px;
        padding: 10px 2%;
    }

    .sti-registerMale div {
        width: 32.33%;
    }

    .sti-registerMale div:nth-child(4) {
        width: 100%;
    }

    .sti-registerMale div:nth-child(4) div:last-child {
        width: 35%;
    }

    .sti-registerFemale div:nth-child(2) div:nth-of-type(1),
    .sti-registerFemale div:nth-child(3) div:nth-of-type(1) select {
        width: 42.33%;
    }

    .sti-registerFemale div:nth-child(2) div:nth-of-type(2) {
        width: 33.33%;
    }

    .sti-registerFemale div:nth-child(3) div:nth-of-type(1) {
        width: 100%;
    }

    .sti-registerFemale div:nth-child(3) div:nth-of-type(1) label {
        text-align: left;
    }

    .sti-registerFemale div:nth-child(3) div:nth-of-type(n+2) {
        width: 33.33%;
    }

    .sti-registerFemale div:nth-child(4) div:nth-of-type(1) {
        width: 37%;
    }

    .sti-registerFemale div:nth-child(4) div:nth-of-type(2) {
        width: 35%;
    }

    .sti-registerFemale div:nth-child(4) div:nth-of-type(3) {
        width: 28%;
    }

    .sti-registerFemale div:nth-child(5) div:nth-of-type(1) {
        width: 29%;
    }

    .sti-registerFemale div:nth-child(5) div:nth-of-type(2) {
        width: 45%;
    }

    .sti-registerFemale div:nth-child(5) div:nth-of-type(3) {
        width: 26%;
    }

    .sti-registerCommon div:nth-child(4) div:nth-of-type(1) {
        width: 33.333%;
    }

    .sti-registerCommon div:nth-child(4) div:nth-of-type(2) {
        width: 25%;
    }

    .sti-registerCommon div:nth-child(4) div:nth-of-type(3) {
        width: 26%;
    }

    .sti-registerCommon div:nth-child(4) div:nth-of-type(4) {
        width: 25%;
    }

    .sti-registerCommon div:nth-child(4) div:nth-of-type(6) {
        width: 41%;
    }

    .sti-registerCommon div:nth-child(4) div:nth-of-type(7),
    .sti-registerCommon div:nth-child(4) div:nth-of-type(8) {
        width: 31.5%;
    }

    .sti-registerCommon div:nth-child(4) div:nth-of-type(9) {
        width: 37%;
    }

    .sti-registerCommon div:nth-child(n+5) div:nth-of-type(odd) {
        width: 33.33%;
    }

    .sti-registerCommon div:nth-child(n+5) div:nth-of-type(even) {
        width: 25%;
        margin-right: 9%;
    }

    .sti-registerCommon div:nth-child(5) div:last-of-type {
        width: 37%;
    }




    .sti-phySection {
        padding-left: 2%;
        padding-right: 2%;
    }

    .sti-phyFemale .row:nth-child(11) div:nth-of-type(1) {
        width: 37%;
        margin-right: 26%;
    }

    .sti-phyFemale .row:nth-child(11) div:nth-of-type(2),
    .sti-phyFemale .row:nth-child(11) div:nth-of-type(3),
    .sti-phyFemale .row:nth-child(12) div:nth-of-type(1) {
        width: 37%;
    }

    .sti-phyFemale .row:nth-child(12) div:nth-of-type(2) {
        width: 63%;
    }

    .sti-phyFemale div:nth-child(11) {
        justify-content: center;
    }

    .sti-phyFemale .row:nth-child(12) div:nth-of-type(1) .sti-score {
        width: 100%;
        height: 100%;
        padding: 14px 0px;
        font-size: 20px;
    }

    .sti-phyFemale div:nth-child(13) {
        width: 37%;
    }

    .sti-phyFemale div:nth-child(14) {
        width: 37%;
    }

    .sti-firstSecond div {
        width: 50%;
    }

    .wash-v3ah {
        width: 50%;
    }

    .stiPhysical-urinated {
        width: 100%;
    }

    .stiPhysical-urinated label {
        text-align: left;
    }

    .stiPhysical-urinated select,
    .stiPhysical-urinated .sti-select-check-wrapper {
        width: 25%;
    }

    #stiPhy-maleID div:nth-child(3) {
        width: 32%;
    }

    #stiPhy-maleID div:nth-child(6) {
        width: 32%;

    }

    #stiPhy-maleID {
        justify-content: center;
    }


    #stiPhy-maleID div:nth-child(4) {
        width: 42%;
    }

    #stiPhy-maleID div:nth-child(5) {
        width: 26%;
    }

    #stiPhy-maleID div:nth-child(n+7):nth-child(-n+10) {
        width: 33%;
    }

    #stiPhy-maleID div:nth-child(n+11):nth-child(-n+13) {
        width: 33.33%;
    }

    #stiPhy-maleID div:last-child {
        width: 68%;
    }

    .sti-phyCommon .row:nth-child(2) div {
        width: 50%;
    }

    .sti-phyCommon .row:last-child div {
        width: 33.333333%;
    }

    .stiPhy-anysexSecond div {
        width: 50%;
    }

    /* .stiPhy-anysexSecond div:last-child {
        width: 40%;

    } */

    .stiPhy-abomal div:nth-child(1n) {
        width: 100%;
    }

    .calculate-score button {
        padding-left: 0px;
        padding-right: 0px;
    }

    .sti-labMale div {
        width: 100%;

    }

    .sti-labMale div label {
        font-size: 16px;
    }

    .LabRDT-treatment-checkbox label {
        font-size: 18px;
    }

    .LabRDT-treatment-checkbox div:nth-child(n+9) {
        width: 50%;
    }

    .LabRDT-treatment-allergy div:first-child div {
        width: 50%;
    }

    #menu5 div:nth-child(2) div:nth-of-type(1) {
        width: 35%;
    }

}

@media screen and (max-width: 599.9px) {
    .sti-tablet {
        display: none;
    }

    #toshow {
        color: red;
    }

    #f44 h2 {
        text-align: center;
    }

    #lastVisit_Date {
        margin-top: 15px;
        font-size: 10px;
        color: rgb(244, 105, 169);
    }

    .sti-colist li a {
        color: #d4f6cc;
    }

    .sti-colist li {
        margin-right: 2.5%;
    }

    .sti-Id .col-sm-2 {
        width: 33.33%;
    }

    .sti-Id .col-sm-3 {
        width: 100%;
    }

    .assist-nav-ul li {
        width: 20%;
    }

    .assist-sti {
        background-color: #003865;
    }

    .LabTR-genital td {
        width: 25%;
    }

    .LabTR-genital td label {
        width: 70%;
        font-size: 15px;
    }

    .LabTR-genital {
        margin: 1px;
    }

    .sti-risk,
    .sti-exam {
        margin-bottom: 20px;
    }

    .sti-risk {
        padding-right: 0px;
    }

    .sti-risk div:nth-of-type(1n) {
        width: 50%;
        text-align: center;
    }

    .sti-risk div:nth-of-type(2) select,
    .sti-risk div:nth-of-type(2) .sti-select-check-wrapper {
        background-image: none;
        padding: 0px;
    }

    .sti-risk div:nth-of-type(n + 3) {
        width: 100%;
    }

    /* asssist Register Css &&  assist Physical Exam Css */


    .assist-parent-div {
        background-color: #003865;
    }

    .register-first-section.phyExam-section,
    .LabRT-section,
    .assist-history {
        padding: 0px 1%;
        border: 1px solid #e9f8f9;
        padding-bottom: 10px;
    }

    .register-second-section {
        padding: 10px 1%;
    }

    .register-second-section h2,
    .LabRT-section h2,
    .assist-history h2 {
        margin-top: 10px;
        font-size: 16px;
        font-weight: 900;
        color: #f5f5dc;
    }

    .sti-diagnosis {
        width: 50%;
    }

    .sti-check {
        width: 80%;
        text-align: center;
    }

    #f44 h2,
    .sti-male h2,
    .sti-female h2,
    .sti-common h2,
    .LabTR-patient label {
        font-size: 14px;
        margin-bottom: 10px;

        padding-bottom: 10px;
    }

    .LabTR-patient label {
        font-size: 12px;
        margin-bottom: 0px;

        padding-bottom: 0px;
    }


    .sti-male h2,
    .sti-female h2,
    .sti-common h2,
    .sti-phymale h2 {
        text-align: center;
        border-bottom: none;
        box-shadow: 0px 4px 5px #456a89;
    }

    .sti-male .row,
    .sti-female .row,
    .sti-common .row {
        margin-bottom: 20px;
    }

    .sti-cervical-infection {
        margin-bottom: 15px;
    }

    .LabRT-section h3 {
        margin-top: 10px;
        font-size: 20px;
        font-weight: 900;
        color: #f5f5dc;
    }

    .LabTR-patient {
        margin-bottom: 10px;
    }

    .LabTR-genital table,
    .assist-history table {
        color: #ffffff;
        border: 1px solid #e9f8f9;
        margin-top: 20px;
    }

    .assist-history table {
        font-size: 12px;
    }

    .LabRDT-treatment-checkbox,
    .LabRDT-treatment-allergy {
        margin-left: 1%;
        border: none;
        margin-bottom: 20px;
        width: 98.2%;
        padding-bottom: 20px;
    }

    .LabRDT-treatment-checkbox input[type="checkbox"] {
        height: 15px;
        width: 18px;
    }

    .LabRDT-treatment-checkbox div {
        width: 50%;
        margin: 10px 0px;
        float: left;
        padding: 0px;
    }

    .assist-history ul {
        width: 20%;
        float: left;
    }

    .general-id {
        margin-top: 20px;
    }

    .female-row {
        margin-bottom: 20px;
    }

    .disease-std li {
        width: 100%;
        float: none;
        text-align: center;
        padding: 5px 0px;
        background-color: #dc3545;
        margin-right: 2%;
        margin-top: 10px;

    }




    .ucler-list,
    .disharge-list,
    .otherStd-list {
        display: none;
    }

    .ucler-list ul li,
    .disharge-list ul li,
    .otherStd-list ul li {
        float: left;
        width: 100%;
        margin-bottom: 10px;

    }

    .ucler-list ul li label,
    .disharge-list ul li label,
    .otherStd-list ul li label {
        font-size: 14px;
        display: inline-block;
        width: 80%;
    }

    .disharge-list ul li label {
        width: 80%;
    }

    .otherStd-list ul li label {
        width: 81%;
    }

    .ucler-list ul,
    .disharge-list ul,
    .otherStd-list ul {
        padding-left: 0px;
    }

    .disease-std {
        padding-left: 0px;
    }


    .calculate-score {
        padding: 0px;
        text-align: none;
        margin-bottom: 20px;
        width: 50%;
    }

    .sti-score {
        width: 50%;
        height: 100%;
        padding: 14px 0px;
        font-size: 14px;
    }

    .calculate-score button {
        background-color: #dc3545;
    }

    .calculate-score:first-child {
        width: 100%;
        justify-content: center;
    }

    .sti-risk-remark {
        margin-bottom: 20px;
    }

    .show-button {
        display: none;
        justify-content: center;
    }

    .sti-button {
        justify-content: center;
    }

    .hide {
        display: none;
    }

    .sti-female,
    .sti-common,
    .sti-phymale {
        border: 1px solid #c060a1;
        padding: 10px 1%;
        margin: 1px;
        margin-bottom: 20px;
    }

    .sti-common,
    .sti-phymale {
        border: 1px solid #f0caa3;
    }

    .sti-male {
        border: 1px solid #e9f8f9;
        margin: 0px 1px 20px 1px;
        padding: 10px 0%;
    }

    .sti-registerMale div:nth-of-type(odd) {
        width: 52%;
    }

    .sti-registerMale div:nth-of-type(even) {
        width: 48%;
    }

    .sti-registerMale div:nth-child(4) {
        width: 100%;
        padding-right: 0px;
    }

    .sti-registerMale div:nth-child(4) div:last-child {
        width: 100%;
    }

    .sti-registerFemale div:nth-child(2) div:nth-of-type(1) {
        width: 67.33%;
    }

    .sti-registerFemale div:nth-child(3) div:nth-of-type(1) select {
        width: 100%;
    }

    .sti-registerFemale div:nth-child(2) div:nth-of-type(2) {
        width: 32.33%;
    }

    .sti-registerFemale div:nth-child(3) div:nth-of-type(1) {
        width: 66%;
    }

    .sti-registerFemale div:nth-child(3) div:nth-of-type(1) label {
        text-align: center;
    }

    .sti-registerFemale div:nth-child(3) div:nth-of-type(2) {
        width: 33.33%;
    }

    .sti-registerFemale div:nth-child(3) div:nth-of-type(2) select {
        padding: 0px;
        background-image: none;
    }

    .sti-registerFemale div:nth-child(3) div:nth-of-type(n + 3) {
        width: 50%;
    }

    .sti-registerFemale div:nth-child(4) div:nth-of-type(1) {
        width: 100%;
    }

    .sti-registerFemale div:nth-child(4) div:nth-of-type(2) {
        width: 54%;
    }

    .sti-registerFemale div:nth-child(4) div:nth-of-type(3) {
        width: 46%;
    }

    .sti-registerFemale div:nth-child(5) div:nth-of-type(1) {
        width: 29%;
    }

    .sti-registerFemale div:nth-child(5) div:nth-of-type(1) select {
        padding: 0px;
        background-image: none;
    }

    .sti-registerFemale div:nth-child(5) div:nth-of-type(2) {
        width: 71%;
    }

    .sti-registerFemale div:nth-child(5) div:nth-of-type(3) {
        width: 100%;
    }

    .sti-registerCommon div:nth-child(2) div {
        width: 100%;
    }

    .sti-registerCommon div:nth-child(4) div {
        width: 50%;
    }

    .sti-registerCommon div:nth-child(4) div:nth-of-type(5) {
        width: 100%;
    }

    .sti-registerCommon div:nth-child(4) div:nth-of-type(6) {
        width: 100%;
    }

    .sti-registerCommon div:nth-child(4) div:nth-of-type(7),
    .sti-registerCommon div:nth-child(4) div:nth-of-type(8) {
        width: 50%;
    }

    .sti-registerCommon div:nth-child(4) div:nth-of-type(9) {
        width: 100%;
    }

    .sti-registerCommon div:nth-child(n + 5) div:nth-of-type(1) {
        width: 55%;
    }

    .sti-registerCommon div:nth-child(n + 5) div:nth-of-type(2) {
        width: 45%;
    }

    .sti-registerCommon div:nth-child(5) div:nth-of-type(n + 3) {
        width: 100%;
    }

    .sti-phySection {
        padding-left: 2%;
        padding-right: 2%;
    }

    .sti-phyFemale .row:nth-child(11) div:nth-of-type(1) {
        width: 100%;
        margin-right: 0%;
    }


    .sti-phyFemale .row:nth-child(12) div:nth-of-type(1) {
        width: 50%;
    }

    .sti-phyFemale .row:nth-child(11) div:nth-of-type(2),
    .sti-phyFemale .row:nth-child(11) div:nth-of-type(3) {
        width: 100%;
    }

    .sti-phyFemale .row:nth-child(12) div:nth-of-type(2) {
        width: 100%;
    }

    .sti-phyFemale div:nth-child(11) {
        padding: 0px;
        margin-left: 1px;
        justify-content: none;
    }

    .sti-phyFemale .row:nth-child(12) div:nth-of-type(1) .sti-score {
        width: 100%;
        height: 100%;
        padding: 14px 0px;
        font-size: 20px;
    }

    .sti-phyFemale div:nth-child(13) {
        width: 50%;
    }

    .sti-phyFemale div:nth-child(14) {
        width: 50%;
    }

    .sti-firstSecond div {
        width: 50%;
    }

    .sti-firstSecond div:nth-of-type(n + 3) {
        width: 100%;
    }

    .wash-v3ah {
        width: 100%;
    }

    .stiPhysical-urinated {
        width: 100%;
    }

    .stiPhysical-urinated label {
        text-align: center;
    }

    .stiPhysical-urinated select,
    .stiPhysical-urinated .sti-select-check-wrapper {
        width: 100%;
    }

    #stiPhy-maleID div:nth-child(3) {
        width: 47%;
    }

    #stiPhy-maleID div:nth-child(6) {
        width: 50%;
    }

    #stiPhy-maleID {
        justify-content: center;
    }

    .sti-phymale select,
    .sti-phymale .sti-select-check-wrapper {
        padding: 0px;
        background-image: none;
    }

    #stiPhy-maleID div:nth-child(4) {
        width: 53%;
    }

    #stiPhy-maleID div:nth-child(5) {
        width: 50%;
    }

    #stiPhy-maleID div:nth-child(n + 7):nth-child(-n + 10) {
        width: 50%;
    }

    #stiPhy-maleID div:nth-child(n + 11):nth-child(-n + 13) {
        width: 50%;
    }

    #stiPhy-maleID div:last-child {
        width: 100%;
    }


    .sti-phyCommon .row:nth-child(2) div {
        width: 50%;
    }

    .sti-phyCommon .row:last-child div {
        width: 50%;
    }

    .stiPhy-anysexSecond div {
        width: 50%;
    }

    #g28,
    #g29 {
        width: 100%;
    }

    /* .stiPhy-anysexSecond div:last-child {
        width: 40%;

    } */

    .stiPhy-abomal div:nth-child(1n) {
        width: 100%;
    }

    .calculate-score button {
        padding-left: 0px;
        padding-right: 0px;
    }

    .sti-labMale div {
        width: 100%;
        margin-left: 0%;
        margin-bottom: 10px;
    }

    .sti-labMale div label {
        font-size: 12px;
    }

    .LabRDT-treatment-checkbox label {
        font-size: 14px;
    }

    .LabRDT-treatment-checkbox div:nth-child(9) {
        width: 100%;
    }

    .LabRDT-treatment-allergy div:first-child div {
        width: 50%;
    }

    #menu5 div:nth-child(2) div:nth-of-type(1) {
        width: 100%;
    }

    #menu5 div:nth-child(2) div:nth-of-type(2) {
        width: 50%;
        margin: 0px 25%;
    }
}

/* ------------------------------------------------------------------
   Responsive hardening for STI form
   Targets Lenovo M10-like 1280x800 first, then tablet/phone
------------------------------------------------------------------- */
.assist-sti {
    overflow-x: hidden;
}

.assist-sti .sti-colist {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.assist-sti .sti-colist li {
    flex: 0 0 auto;
}

.assist-sti .sti-colist .nav-link {
    white-space: nowrap;
}

.assist-sti .sti-tab-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 6px 0 10px;
}

.assist-sti #gChoice,
.assist-sti #toshow {
    margin: 0;
}

.assist-sti .sti-summary-row {
    align-items: end;
}

.assist-sti .sti-risk-update-inline {
    display: flex;
    align-items: flex-end;
}

.assist-sti .sti-risk-update-inner {
    width: 100%;
    margin: 0;
    border: 1px solid #4b79a1;
    border-radius: 8px;
    padding: 6px 4px 4px;
    background: rgba(8, 47, 85, 0.28);
}

.assist-sti .sti-risk-update-inner > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
}

.assist-sti .sti-risk-update-inline .form-label {
    margin-bottom: 4px;
}

.assist-sti .sti-risk-update-note {
    display: block;
    width: 100%;
    margin-top: 4px;
}

.assist-sti .sti-risk-update-hint {
    display: block;
    width: 100%;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #fff7d6;
    background: rgba(6, 31, 57, 0.55);
    border: 1px solid rgba(255, 231, 173, 0.6);
    border-radius: 6px;
    padding: 8px 10px;
    white-space: normal;
    word-break: break-word;
}

.assist-sti .sti-summary-item .form-label {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    white-space: nowrap;
}

.assist-sti .sti-summary-item .summary-value {
    display: inline;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    min-height: 0;
    height: auto;
    font-weight: 700;
    color: #f5f5dc;
}

.assist-sti .sti-patient-detail-col .form-label {
    margin-bottom: 6px;
}

.assist-sti .sti-patient-detail-line {
    display: block;
    min-height: 42px;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #9ec3dc;
    border-radius: 4px;
    background: rgba(10, 57, 95, 0.45);
    color: #f5f5dc;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.assist-sti .sti-patient-detail-line-top {
    display: none;
}

.assist-parent-div .assist-history table,
.assist-parent-div .LabTR-genital table,
.assist-parent-div #stiUpdate,
.assist-parent-div #menu3 table,
.assist-parent-div #menu4 table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

@media screen and (max-width: 1280px) and (max-height: 820px) {
    .assist-sti {
        padding-left: 10px;
        padding-right: 10px;
    }

    .assist-sti .header-text {
        font-size: 1.6rem;
    }

    .assist-sti .sti-colist .nav-link {
        padding: 0.45rem 0.75rem;
        font-size: 0.92rem;
    }

    .assist-sti .row {
        row-gap: 10px;
    }

    .assist-sti .sti-Id> [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .assist-sti .sti-firstSecond .sti-risk-update-inline {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .history,
    .physical,
    .labTreat .lab-tre-left,
    .labTreat .lab-tre-right,
    .diagnosis-section {
        float: none;
        width: 100%;
    }

    .male-sti-section label {
        width: 35%;
    }

    .male-sti-section select,
    .male-sti-section input,
    .male-sti-section .sti-select-check-wrapper {
        width: 30%;
    }
}

@media screen and (min-width: 700px) and (max-width: 1280px) {
    .assist-sti #lastVisit_Check {
        display: none !important;
    }

    .assist-sti .sti-summary-row .sti-summary-actions {
        flex: 0 0 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 10px;
        min-height: 44px;
    }

    .assist-sti .sti-summary-row .sti-summary-actions #btn_refresh,
    .assist-sti .sti-summary-row .sti-summary-actions .sti-report-link,
    .assist-sti .sti-summary-row .sti-summary-actions #sti_change_risk_btn {
        margin-top: 0 !important;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .assist-sti .sti-summary-row .sti-summary-actions .sti-report-link {
        margin-left: 0;
        z-index: 2;
    }

    .assist-sti .sti-summary-row .sti-summary-actions #sti_change_risk_btn {
        z-index: 2;
    }

    .assist-sti .sti-summary-row .sti-summary-actions .sti-patient-detail-line-top {
        display: block;
        position: static;
        transform: none;
        width: auto;
        flex: 1 1 auto;
        min-height: 38px;
        margin: 0 8px 0 0;
        padding: 7px 10px;
        background: rgba(10, 57, 95, 0.65);
        border-color: #7ea8c4;
        font-size: 0.86rem;
        line-height: 1.15;
        text-align: left;
        pointer-events: none;
        align-self: center;
    }

    .assist-sti .male-sti-section {
        display: grid;
        grid-template-columns: minmax(92px, max-content) minmax(48px, 72px) minmax(42px, max-content) minmax(110px, 1fr) minmax(44px, max-content) minmax(110px, 1fr);
        column-gap: 8px;
        row-gap: 8px;
        align-items: center;
    }

    .assist-sti .male-sti-section label,
    .assist-sti .male-sti-section select,
    .assist-sti .male-sti-section input,
    .assist-sti .male-sti-section .sti-select-check-wrapper {
        float: none;
        width: 100%;
        margin: 0;
    }

    .assist-sti .male-sti-section .sti-prev-sti-label { grid-column: 1; grid-row: 1; }
    .assist-sti .male-sti-section #previousSTI_male + .sti-select-check-wrapper { grid-column: 2; grid-row: 1; }
    .assist-sti .male-sti-section .sti-prev-what-label { grid-column: 3; grid-row: 1; }
    .assist-sti .male-sti-section .sti-prev-what-input { grid-column: 4; grid-row: 1; min-width: 0; }
    .assist-sti .male-sti-section .sti-prev-when-label { grid-column: 5; grid-row: 1; }
    .assist-sti .male-sti-section .sti-prev-when-input { grid-column: 6; grid-row: 1; min-width: 0; }

    .assist-sti .male-sti-section .sti-prior-sti-label { grid-column: 1; grid-row: 2; }
    .assist-sti .male-sti-section #priorsSTI_male + .sti-select-check-wrapper { grid-column: 2; grid-row: 2; }
    .assist-sti .male-sti-section .sti-prior-what-label { grid-column: 3; grid-row: 2; }
    .assist-sti .male-sti-section .sti-prior-what-input { grid-column: 4; grid-row: 2; min-width: 0; }
    .assist-sti .male-sti-section .sti-prior-when-label { grid-column: 5; grid-row: 2; }
    .assist-sti .male-sti-section .sti-prior-when-input { grid-column: 6; grid-row: 2; min-width: 0; }

    .assist-sti .male-sti-section .sti-prior-comment-label { grid-column: 1; grid-row: 3; }
    .assist-sti .male-sti-section .sti-prior-comment-input { grid-column: 2 / span 5; grid-row: 3; min-width: 0; }

    .assist-sti .male-sti-section #previousSTI_male,
    .assist-sti .male-sti-section #priorsSTI_male {
        display: none !important;
    }

    .assist-sti .male-sti-section #previousSTI_male + .sti-select-check-wrapper,
    .assist-sti .male-sti-section #priorsSTI_male + .sti-select-check-wrapper {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        min-height: 34px;
    }

    .assist-sti .male-sti-section #previousSTI_male + .sti-select-check-wrapper .sti-select-check-label {
        display: none;
    }

    .assist-sti .counselling-sti-check {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .assist-sti .counselling-sti-check h2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 6px;
    }

    .assist-sti .counselling-sti-check > div {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        margin: 6px 0;
    }

    .assist-sti .counselling-sti-check > div:nth-of-type(1),
    .assist-sti .counselling-sti-check > div:nth-of-type(2) {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50% !important;
    }

    .assist-sti .counselling-sti-check > div:nth-of-type(3),
    .assist-sti .counselling-sti-check > div:nth-of-type(4) {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50% !important;
    }

    .assist-sti .counselling-sti-check #counsel_disclosure,
    .assist-sti .counselling-sti-check #counsel_treat {
        flex: 0 0 auto;
        margin-right: 6px;
    }

    .assist-sti .counselling-sti-check #counsel_disclosure + label,
    .assist-sti .counselling-sti-check #counsel_treat + label {
        margin: 0;
        display: inline;
    }

    .assist-sti .counselling-sti-check #counsel_sti_sign,
    .assist-sti .counselling-sti-check #counsel_vaginalhygie {
        width: 30px;
        height: 30px;
        margin-right: 8px;
        flex: 0 0 auto;
    }

    .assist-sti .counselling-sti-check #counsel_sti_sign + label,
    .assist-sti .counselling-sti-check #counsel_vaginalhygie + label {
        margin: 0;
        display: inline;
        line-height: 1.2;
    }

    .assist-sti #menu2 .labTreat.female .riskhead {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 2px;
    }

    .assist-sti #menu2 .labTreat.female .riskhead .sti-risk-title {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0;
    }

    .assist-sti #menu2 .labTreat.female .riskhead .sti-risk-subtitle {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0;
        line-height: 1.2;
        font-weight: 700;
        color: #ffc857;
    }

    .assist-sti .sti-Id .sti-patient-detail-col {
        display: none;
    }

    .assist-sti .sti-Id .sti-id-main-col {
        flex: 0 0 68%;
        max-width: 68%;
    }

    .assist-sti .sti-Id .sti-id-clinic-col {
        flex: 0 0 32%;
        max-width: 32%;
    }

    .assist-sti .sti-Id .sti-id-main-col .input-group {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
    }

    .assist-sti .sti-Id .sti-id-main-col .date-holder.input-group-append {
        flex: 0 0 32%;
        max-width: 32%;
        min-width: 136px;
        display: flex;
        align-items: stretch;
    }

    .assist-sti .sti-Id .sti-id-main-col .input-group > #pid {
        flex: 1 1 48%;
        min-width: 0;
    }

    .assist-sti .sti-Id .sti-id-main-col .input-group > .input-group-append:last-child {
        flex: 0 0 20%;
        max-width: 20%;
        min-width: 92px;
    }

    .assist-sti .sti-Id .sti-id-main-col #pid,
    .assist-sti .sti-Id .sti-id-main-col #regdate,
    .assist-sti .sti-Id .sti-id-main-col #pid-search {
        height: 44px;
        min-height: 44px;
        box-sizing: border-box;
        margin: 0;
    }

    .assist-sti .sti-Id .sti-id-main-col .date-holder .dateimg {
        top: 50%;
        transform: translateY(-50%);
    }

    .assist-sti .sti-Id .sti-id-main-col #regdate,
    .assist-sti .sti-Id .sti-id-main-col #pid-search {
        width: 100%;
    }

    .assist-sti .sti-Id .sti-id-main-col #pid-search {
        white-space: nowrap;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .assist-sti .sti-firstSecond .sti-first-visit-col {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
    }

    .assist-sti .sti-firstSecond .sti-first-visit-col > .form-label {
        margin: 0;
        white-space: nowrap;
    }

    .assist-sti .sti-firstSecond .sti-first-visit-col > .sti-select-check-wrapper {
        margin-left: 2px;
        margin-bottom: 0;
        width: auto !important;
        min-height: 32px;
        padding: 0 4px;
    }

    .assist-sti #menu6 .sti-export-controls {
        display: grid;
        grid-template-columns: 130px 190px 46px minmax(170px, 1fr);
        gap: 10px 12px;
        align-items: end;
        justify-content: stretch;
    }

    .assist-sti #menu6 .sti-export-controls > [class*="col-"] {
        width: auto;
        max-width: none;
        flex: initial;
        margin: 0;
        padding-right: 0.4rem;
        padding-left: 0.4rem;
    }

    .assist-sti #menu6 .sti-export-sex {
        grid-column: 1;
        grid-row: 1;
    }

    .assist-sti #menu6 .sti-export-type {
        grid-column: 2;
        grid-row: 1;
    }

    .assist-sti #menu6 .sti-export-from-label {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
    }

    .assist-sti #menu6 .sti-export-from-date {
        grid-column: 4;
        grid-row: 1;
    }

    .assist-sti #menu6 .sti-export-to-label {
        grid-column: 3;
        grid-row: 2;
        align-self: center;
    }

    .assist-sti #menu6 .sti-export-to-date {
        grid-column: 4;
        grid-row: 2;
    }

    .assist-sti #menu6 .sti-export-submit {
        grid-column: 1 / span 2;
        grid-row: 2;
        justify-self: start;
    }

    .assist-sti #menu6 .sti-export-controls .form-control,
    .assist-sti #menu6 .sti-export-controls .btn {
        width: 100%;
        min-height: 42px;
    }

    .assist-sti #menu6 .sti-export-controls .date-holder .dateimg {
        top: 50%;
        transform: translateY(-50%);
    }

    .assist-sti #menu6 .sti-export-controls label {
        margin-bottom: 0;
        white-space: nowrap;
    }
}

@media screen and (min-width: 1281px) {
    .assist-sti .sti-summary-row .sti-summary-actions {
        flex: 0 0 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .assist-sti .sti-summary-row .sti-summary-actions #btn_refresh {
        margin: 0;
    }

    .assist-sti .sti-summary-row .sti-summary-actions .sti-report-link {
        margin-top: 0 !important;
        margin-left: auto;
    }

    .assist-sti .sti-summary-row .sti-summary-actions #sti_change_risk_btn {
        margin-top: 0 !important;
    }

    /* Keep desktop treatment grid sorted by JS order (Azythromycin first) */
    .assist-sti .LabRDT-treatment-checkbox {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .assist-sti .LabRDT-treatment-checkbox > div {
        float: none !important;
        width: 33.333%;
        margin: 8px 0;
        padding-right: 8px;
    }

    .assist-sti .LabRDT-treatment-checkbox > div.treatment-spacer {
        display: none !important;
    }
}

@media screen and (max-width: 1024px) {
    .register-first-section.phyExam-section,
    .register-second-section,
    .LabRT-section,
    .assist-history {
        padding-left: 10px;
        padding-right: 10px;
    }

    .assist-sti .sti-Id> [class*="col-"],
    .assist-sti .sti-firstSecond> [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .assist-sti .sti-firstSecond .sti-risk-update-inline {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .risk-assentment select,
    .risk-assentment .sti-select-check-wrapper {
        width: 45%;
    }
}

@media screen and (max-width: 768px) {
    .assist-sti .sti-Id> [class*="col-"],
    .assist-sti .sti-firstSecond> [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .assist-sti .sti-colist .nav-link {
        font-size: 0.86rem;
        padding: 0.4rem 0.6rem;
    }

    .male-sti-section label,
    .male-sti-section select,
    .male-sti-section input,
    .male-sti-section .sti-select-check-wrapper,
    .risk-assentment select,
    .risk-assentment .sti-select-check-wrapper,
    .history-physical .sti-select-check-wrapper,
    .history-physical label,
    .sti-diagnosis,
    .sti-check {
        width: 100%;
        float: none;
        margin-right: 0;
    }

    .history-physical .sti-select-check-wrapper {
        display: flex;
    }

    .calculate-score,
    .sti-score {
        width: 100%;
    }

    .assist-sti .sti-summary-row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .assist-sti .sti-risk-update-note {
        align-items: flex-start;
    }
}

@media screen and (min-width: 700px) and (max-width: 900px) {
    .assist-sti .sti-colist {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(44px, auto));
        gap: 8px;
        overflow: hidden;
        padding: 8px 0;
    }

    .assist-sti .sti-colist > li {
        display: block;
        margin-right: 0;
        min-width: 0;
    }

    .assist-sti .sti-colist > li:nth-child(-n + 6) .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 0.45rem 0.5rem;
        border: 1px solid #8fb8d8;
        border-radius: 10px;
        background: #0f4d7a;
        color: #f3f8fb;
        font-size: 0.88rem;
        line-height: 1.2;
        text-align: center;
    }

    .assist-sti .sti-colist > li:nth-child(-n + 6) .nav-link.active {
        background: #ffffff;
        border-color: #ffffff;
        color: #0b3b61;
        font-weight: 700;
    }

    .assist-sti .sti-tab-meta {
        justify-content: center;
    }

    .assist-sti #toshow {
        font-size: 0.95rem;
    }
}

.assist-sti .assist-parent-div {
    padding-bottom: 84px;
}

.assist-sti .sti-tab-nav-controls {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1040;
    pointer-events: none;
}

.assist-sti .sti-tab-nav-btn {
    min-width: 112px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.assist-sti .sti-tab-nav-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media screen and (max-width: 768px) {
    .assist-sti .assist-parent-div {
        padding-bottom: 92px;
    }

    .assist-sti .sti-tab-nav-controls {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .assist-sti .sti-tab-nav-btn {
        min-width: 98px;
        padding: 0.35rem 0.7rem;
        font-size: 0.86rem;
    }
}

@media screen and (max-width: 1160px) {
    .assist-sti .LabRDT-treatment-checkbox {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .assist-sti .LabRDT-treatment-checkbox > div {
        float: none !important;
        margin: 8px 0 !important;
        padding-right: 8px;
    }

    .assist-sti .LabRDT-treatment-checkbox > div.treatment-spacer {
        display: none !important;
    }

    .assist-sti .LabRDT-treatment-checkbox > div label {
        display: inline-block;
        width: auto;
        margin: 0 4px 0 0;
        text-align: left;
        vertical-align: middle;
    }

    .assist-sti .LabRDT-treatment-checkbox > div input[type="checkbox"] {
        margin-right: 6px;
        vertical-align: middle;
    }
}

@media screen and (min-width: 600px) and (max-width: 1160px) {
    .assist-sti .LabRDT-treatment-checkbox > div {
        width: 50%;
    }
}

@media screen and (max-width: 599.9px) {
    .assist-sti .LabRDT-treatment-checkbox > div {
        width: 100%;
    }
}

/* Gender-aware layout tuning for laptop/tablet */
.assist-sti .history-physical section {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 340px);
    column-gap: 14px;
    align-items: center;
}

.assist-sti .history-physical section > h2 {
    grid-column: 1 / -1;
    margin: 0 0 10px;
}

.assist-sti .history-physical section > .form-label {
    width: auto;
    float: none;
    margin: 10px 0;
}

.assist-sti .history-physical section > .form-control,
.assist-sti .history-physical section > .form-select,
.assist-sti .history-physical section > .sti-select-check-wrapper,
.assist-sti .history-physical section > textarea.form-control {
    width: 100%;
    float: none;
    margin: 6px 0;
}

@media screen and (min-width: 768px) and (max-width: 1280px) {
    .assist-sti .sti-Id .sti-id-main-col {
        flex: 0 0 68%;
        max-width: 68%;
    }

    .assist-sti .sti-Id .sti-id-clinic-col {
        flex: 0 0 32%;
        max-width: 32%;
    }

    .assist-sti .sti-Id .sti-patient-detail-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .assist-sti .history-physical {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 12px;
    }

    .assist-sti .history-physical .history,
    .assist-sti .history-physical .physical {
        width: 50%;
        float: none;
        min-width: 0;
    }

    /* Keep question text + input on the same row for tablet panels */
    .assist-sti .history-physical section {
        grid-template-columns: minmax(0, 1fr) minmax(120px, 36%);
        column-gap: 10px;
    }

    .assist-sti .sti-firstSecond {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
    }

    .assist-sti .sti-firstSecond .sti-first-visit-col,
    .assist-sti .sti-firstSecond .sti-last-visit-col,
    .assist-sti .sti-firstSecond .sti-about-clinic-col,
    .assist-sti .sti-firstSecond .sti-reason-visit-col {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .assist-sti .sti-firstSecond .sti-reason-visit-col {
        order: 4;
    }

    .assist-sti .sti-firstSecond .sti-risk-update-inline {
        order: 5;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .assist-sti .sti-firstSecond .sti-first-visit-col {
        order: 1;
    }

    .assist-sti .sti-firstSecond .sti-last-visit-col {
        order: 2;
    }

    .assist-sti .sti-firstSecond .sti-about-clinic-col {
        order: 3;
    }

    .assist-sti .sti-firstSecond .sti-first-visit-col {
        display: block;
    }

    .assist-sti .sti-firstSecond .sti-first-visit-col > .form-label {
        margin: 0 0 6px;
        white-space: nowrap;
    }

    .assist-sti .sti-firstSecond .sti-first-visit-col > .sti-select-check-wrapper {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        margin-left: 0;
        margin-bottom: 0;
    }
}

@media screen and (max-width: 767.98px) {
    .assist-sti .sti-Id .sti-patient-detail-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .assist-sti .sti-patient-detail-line {
        white-space: normal;
    }
}

@media screen and (min-width: 1281px) {
    .assist-sti .history-physical section.sti-abvagdischarge-details {
        grid-template-columns: minmax(280px, 1fr) minmax(240px, 330px);
        column-gap: 12px;
    }

    .assist-sti .history-physical section.sti-abvagdischarge-details > .form-label {
        white-space: nowrap;
        margin: 8px 0;
    }

    .assist-sti .history-physical section.sti-abvagdischarge-details > .form-control,
    .assist-sti .history-physical section.sti-abvagdischarge-details > .form-select,
    .assist-sti .history-physical section.sti-abvagdischarge-details > .sti-select-check-wrapper {
        margin: 4px 0;
    }

    .assist-sti .history-physical section.sti-male-scrotal-history,
    .assist-sti .history-physical section.sti-male-scrotal-physical {
        grid-template-columns: minmax(280px, 1fr) minmax(240px, 340px);
        column-gap: 12px;
        row-gap: 8px;
    }

    .assist-sti .history-physical section.sti-male-scrotal-history > .form-label,
    .assist-sti .history-physical section.sti-male-scrotal-history > .form-control,
    .assist-sti .history-physical section.sti-male-scrotal-history > .form-select,
    .assist-sti .history-physical section.sti-male-scrotal-history > .sti-select-check-wrapper,
    .assist-sti .history-physical section.sti-male-scrotal-physical > .form-label,
    .assist-sti .history-physical section.sti-male-scrotal-physical > .form-control,
    .assist-sti .history-physical section.sti-male-scrotal-physical > .form-select,
    .assist-sti .history-physical section.sti-male-scrotal-physical > .sti-select-check-wrapper {
        margin: 0;
        width: 100%;
        float: none;
    }

    .assist-sti .history-physical section.sti-male-scrotal-history > .sti-select-check-wrapper,
    .assist-sti .history-physical section.sti-male-scrotal-physical > .sti-select-check-wrapper {
        justify-self: stretch;
        align-self: center;
    }
}

@media screen and (min-width: 768px) {
    .assist-sti .history-physical section.sti-male-urethral-row,
    .assist-sti .history-physical section.sti-male-inguinal-row,
    .assist-sti .history-physical section.sti-male-urinated-row,
    .assist-sti .history-physical section.sti-male-erythema-row,
    .assist-sti .history-physical section.sti-male-discharge-physical,
    .assist-sti .history-physical section.sti-male-scrotal-history,
    .assist-sti .history-physical section.sti-male-scrotal-physical,
    .assist-sti .history-physical section.sti-male-drawing-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(90px, 34%);
        column-gap: 8px;
        row-gap: 6px;
        align-items: center;
    }

    .assist-sti .history-physical section.sti-male-urethral-row > .form-label,
    .assist-sti .history-physical section.sti-male-urethral-row > .form-control,
    .assist-sti .history-physical section.sti-male-urethral-row > .form-select,
    .assist-sti .history-physical section.sti-male-urethral-row > .sti-select-check-wrapper,
    .assist-sti .history-physical section.sti-male-inguinal-row > .form-label,
    .assist-sti .history-physical section.sti-male-inguinal-row > .form-control,
    .assist-sti .history-physical section.sti-male-inguinal-row > .form-select,
    .assist-sti .history-physical section.sti-male-inguinal-row > .sti-select-check-wrapper,
    .assist-sti .history-physical section.sti-male-urinated-row > .form-label,
    .assist-sti .history-physical section.sti-male-urinated-row > .form-control,
    .assist-sti .history-physical section.sti-male-urinated-row > .form-select,
    .assist-sti .history-physical section.sti-male-urinated-row > .sti-select-check-wrapper,
    .assist-sti .history-physical section.sti-male-erythema-row > .form-label,
    .assist-sti .history-physical section.sti-male-erythema-row > .form-control,
    .assist-sti .history-physical section.sti-male-erythema-row > .form-select,
    .assist-sti .history-physical section.sti-male-erythema-row > .sti-select-check-wrapper,
    .assist-sti .history-physical section.sti-male-discharge-physical > .form-label,
    .assist-sti .history-physical section.sti-male-discharge-physical > .form-control,
    .assist-sti .history-physical section.sti-male-discharge-physical > .form-select,
    .assist-sti .history-physical section.sti-male-discharge-physical > .sti-select-check-wrapper,
    .assist-sti .history-physical section.sti-male-scrotal-history > .form-label,
    .assist-sti .history-physical section.sti-male-scrotal-history > .form-control,
    .assist-sti .history-physical section.sti-male-scrotal-history > .form-select,
    .assist-sti .history-physical section.sti-male-scrotal-history > .sti-select-check-wrapper,
    .assist-sti .history-physical section.sti-male-scrotal-physical > .form-label,
    .assist-sti .history-physical section.sti-male-scrotal-physical > .form-control,
    .assist-sti .history-physical section.sti-male-scrotal-physical > .form-select,
    .assist-sti .history-physical section.sti-male-scrotal-physical > .sti-select-check-wrapper,
    .assist-sti .history-physical section.sti-male-drawing-row > .form-label,
    .assist-sti .history-physical section.sti-male-drawing-row > .form-control,
    .assist-sti .history-physical section.sti-male-drawing-row > .form-select,
    .assist-sti .history-physical section.sti-male-drawing-row > .sti-select-check-wrapper {
        width: 100%;
        float: none;
        margin: 0;
    }

    .assist-sti .history-physical section.sti-male-urethral-row > .sti-select-check-wrapper,
    .assist-sti .history-physical section.sti-male-inguinal-row > .sti-select-check-wrapper,
    .assist-sti .history-physical section.sti-male-urinated-row > .sti-select-check-wrapper,
    .assist-sti .history-physical section.sti-male-erythema-row > .sti-select-check-wrapper,
    .assist-sti .history-physical section.sti-male-discharge-physical > .sti-select-check-wrapper,
    .assist-sti .history-physical section.sti-male-scrotal-history > .sti-select-check-wrapper,
    .assist-sti .history-physical section.sti-male-scrotal-physical > .sti-select-check-wrapper,
    .assist-sti .history-physical section.sti-male-drawing-row > .sti-select-check-wrapper {
        align-self: center;
        display: inline-flex;
        justify-content: flex-start;
        gap: 8px;
    }

    .assist-sti .history-physical section .sti-select-check-wrapper .sti-select-check-label {
        width: auto !important;
        float: none !important;
        margin: 0 !important;
        display: inline-block;
        text-align: left;
    }

    .assist-sti .history-physical section.sti-male-inguinal-row .sti-other-lymph-label {
        grid-column: 1;
    }

    .assist-sti .history-physical section.sti-male-inguinal-row #other_lymph_nodes,
    .assist-sti .history-physical section.sti-male-inguinal-row #other_lymph_nodes + .sti-select-check-wrapper {
        grid-column: 2;
        width: 100%;
    }

    .assist-sti .history-physical section.sti-male-inguinal-row #other_lymph_nodes + .sti-select-check-wrapper {
        display: inline-flex !important;
        justify-content: flex-start !important;
        align-items: center;
        gap: 8px;
    }

    .assist-sti .history-physical section.sti-male-urethral-row > .form-label,
    .assist-sti .history-physical section.sti-male-inguinal-row > .form-label,
    .assist-sti .history-physical section.sti-male-urinated-row > .form-label,
    .assist-sti .history-physical section.sti-male-erythema-row > .form-label,
    .assist-sti .history-physical section.sti-male-discharge-physical > .form-label,
    .assist-sti .history-physical section.sti-male-scrotal-history > .form-label,
    .assist-sti .history-physical section.sti-male-scrotal-physical > .form-label,
    .assist-sti .history-physical section.sti-male-drawing-row > .form-label {
        min-width: 0;
        word-break: break-word;
    }
}

@media screen and (min-width: 1281px) {
    .assist-sti .history-physical section.sti-male-urethral-row,
    .assist-sti .history-physical section.sti-male-inguinal-row,
    .assist-sti .history-physical section.sti-male-urinated-row,
    .assist-sti .history-physical section.sti-male-erythema-row,
    .assist-sti .history-physical section.sti-male-discharge-physical,
    .assist-sti .history-physical section.sti-male-scrotal-history,
    .assist-sti .history-physical section.sti-male-scrotal-physical,
    .assist-sti .history-physical section.sti-male-drawing-row {
        grid-template-columns: minmax(280px, 1fr) minmax(250px, 360px);
        column-gap: 14px;
        row-gap: 8px;
    }
}

@media screen and (max-width: 767.9px) {
    .assist-sti .history-physical .history,
    .assist-sti .history-physical .physical {
        width: 100%;
        float: none;
    }
}

@media screen and (max-width: 767.9px) {
    .assist-sti .history-physical section {
        grid-template-columns: 1fr;
        row-gap: 2px;
    }
}

.assist-sti .diagnosis {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.assist-sti .diagnosis > .dianosis-persumptive {
    flex: 0 0 100%;
    width: 100%;
}

.assist-sti .diagnosis .diagnosis-section {
    float: none;
    width: 33.333%;
}

.assist-sti .diagnosis-dateail .sti-select-check-wrapper.sti-diagnosis-check {
    float: right;
    margin: 5px 2%;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.assist-sti .diagnosis-dateail .sti-select-check-wrapper.sti-diagnosis-check .sti-select-check-input {
    width: 22px;
    height: 22px;
    margin-right: 6px;
}

@media screen and (min-width: 768px) and (max-width: 1280px) {
    .assist-sti .diagnosis .diagnosis-section {
        width: 33.333%;
    }
}

@media screen and (max-width: 767.9px) {
    .assist-sti .diagnosis .diagnosis-section {
        width: 100%;
    }
}

@media screen and (min-width: 768px) and (max-width: 1280px) {
    .assist-sti .labTreat.female .risk-assentment {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .assist-sti .labTreat.female .risk-assentment > .form-label {
        flex: 1 1 auto;
        margin: 0;
        min-width: 0;
    }

    .assist-sti .labTreat.female .risk-assentment > select,
    .assist-sti .labTreat.female .risk-assentment > .sti-select-check-wrapper {
        float: none;
        width: auto;
        margin: 0;
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media screen and (min-width: 768px) and (max-width: 1280px) {
    .assist-sti .LabRDT-treatment-allergy > .row:first-child > [class*="col-"] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .assist-sti .LabRDT-treatment-allergy > .row:first-child > [class*="col-"] > .form-label {
        margin: 0;
        flex: 1 1 auto;
        min-width: 0;
    }

    .assist-sti .LabRDT-treatment-allergy > .row:first-child > [class*="col-"] > select,
    .assist-sti .LabRDT-treatment-allergy > .row:first-child > [class*="col-"] > .sti-select-check-wrapper {
        float: none;
        width: auto;
        margin: 0;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .assist-sti .LabRDT-treatment-allergy #remarkTreatment {
        width: 100% !important;
        max-width: 100%;
        float: none;
        display: block;
        box-sizing: border-box;
    }
}

.assist-sti .sti-child-collapsed {
    display: none !important;
}

.assist-sti .sti-child-section-collapsed {
    display: none !important;
}

.sti-tablet-number-pad {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 13000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(4, 20, 37, 0.42);
    padding: 12px;
}

.sti-tablet-number-pad.is-open {
    display: flex;
}

.sti-tablet-number-pad-card {
    width: min(680px, 100%);
    background: #e9f0f8;
    border: 2px solid #678cb3;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(2, 15, 33, 0.45);
    padding: 10px;
}

.sti-tablet-number-pad-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0b2d4f;
    font-weight: 700;
    margin-bottom: 8px;
}

.sti-tablet-number-pad-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.sti-number-pad-btn {
    height: 72px;
    font-size: 30px;
    font-weight: 700;
    color: #0b2d4f;
    border: 1px solid #8ea8c4;
    border-radius: 10px;
    background: #ffffff;
}

.sti-number-pad-action {
    font-size: 20px;
}

.assist-sti input[type="number"].sti-tablet-number-active {
    outline: 3px solid rgb(255, 106, 0);
    outline-offset: 1px;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.25);
}

@media screen and (min-width: 768px) and (max-width: 1366px) and (pointer: coarse) {
    .assist-sti input[type="number"].sti-tablet-number-target {
        min-height: 56px;
        font-size: 30px;
        line-height: 1.1;
        padding: 8px 12px;
    }
}

/* Risk change modal readability */
#stiRiskChangeModal .modal-content {
    background: #f5f7fa;
    color: #102a43;
}

#stiRiskChangeModal .modal-header,
#stiRiskChangeModal .modal-footer {
    border-color: #d0d7df;
}

#stiRiskChangeModal .modal-title,
#stiRiskChangeModal label,
#stiRiskChangeModal .close {
    color: #102a43 !important;
}

#stiRiskChangeModal .form-control,
#stiRiskChangeModal .custom-select,
#stiRiskChangeModal select,
#stiRiskChangeModal input {
    background: #ffffff;
    color: #102a43 !important;
    border-color: #b8c4d1;
}

#stiRiskChangeModal select option {
    color: #102a43;
    background: #ffffff;
}
