html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}


@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.2/font/bootstrap-icons.css");
:root {
	--bs-primary: #05185a;
	--bs-secondary: #d4d2ff;
	--bs-success: #02a51c;
	--bs-info: #00bff3;
	--bs-light: #e9ebef;

	--bs-blue: #0d6efd;
	--bs-indigo: #6610f2;
	--bs-purple: #6f42c1;
	--bs-pink: #d63384;
	--bs-red: #dc3545;
	--bs-orange: #fd7e14;
	--bs-yellow: #ffc107;
	--bs-green: #198754;
	--bs-teal: #20c997;
	--bs-cyan: #0dcaf0;
	--bs-white: #fff;
	--bs-gray: #6c757d;
	--bs-gray-dark: #343a40;
	--bs-warning: #ffc107;
	--bs-danger: #dc3545;
	--bs-dark: #212529;
	--bs-font-sans-serif: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
	--bs-font-monospace: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
	--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
}
b, strong {
    font-family: "BariolBold", "Roboto", Sans-serif !important;
}
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9999;
}

#loader {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 6px solid #333;
  border-top-color: #a7a7a7;
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite;
}

body, h1, h2, h3, h4, h5, h6, p, h1 *, li, a{
    font-family: "Bariol", "Roboto", Sans-serif !important;
    color: var(--bs-primary);
}
h3 {
    font-family: "BariolBold", "Roboto", Sans-serif !important;
    font-size: 40px;
}
.capitilize{
    text-transform: capitalize;
}
.disabled-field,
input.disabled-field:disabled, 
input[readonly].disabled-field, 
select.disabled-field:disabled, 
select[readonly].disabled-field{
      background-color: #e9ecef !important;
}
.btn-primary{
    background-color: var(--bs-primary);
    color: #fff;
    border:0px;
}
.btn-warning {
    background-color: var(--bs-warning);
    color: #fff;
    border:0px;
}
.btn-danger {
    background-color: var(--bs-danger);
    color: #fff;
    border:0px;
}
.btn-info, .btn-info:hover {
    background-color: var(--bs-info);
    color: #fff;
    border:0px;
}
.btn-success, .btn-success:hover, .btn-success:active, .btn-success:focus{
    background-color: var(--bs-success);
    color: #fff;
    border:0px;
}
.btn-check:focus+.btn-primary,
.btn-primary:focus {
    color: #fff;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0rem var(--bs-primary);
}
.color-success{
    color: var(--bs-success);
}
#appwrapp{
    padding: 0px;
}
.btn{
    border-radius: 15px;
}
.btn-check:focus+.btn,
.btn:focus {
    outline: 0;
    box-shadow: none;
}
/* .btn-group-lg>.btn,
.btn-lg{
    min-height: 55px;
} */
#diginnerwrap {
    height: auto;
    padding-left: 0;
    padding-right: 0;
    background-image: url(../img/Digi_background.png);
    background-size: 100%;
    background-position: top;
    background-repeat: no-repeat;

    /* KEY FIX */
    width: calc(100% - 110px);
    margin-left: 110px;
}

.potrait {
    height: auto;
    padding-left: 0px;
    padding-right: 0px;
    background-image: url(../img/Digi_background.png);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: top;
    width: 100%;
}
#diginnerwrap > div{
    height: 100%;
}
 .left-side-bar{
    background: var(--bs-light);
	width: 110px;
    position: fixed;
}
#right-dash-wrapper {
	width: calc(100% - 0px);
    /*flex-direction: column; */
    justify-content: space-between;
}

.dashboard-footer-content-wrap{
    background: var(--bs-light);
background: linear-gradient(90deg, rgba(233,235,239,1) 0%, rgba(255,255,255,1) 60%, rgba(255,255,255,1) 100%);
        width: calc(100vw - 110px);
            margin-left: auto;
}
.dashboard-footer-content {
    /* height: 15vh; */
    padding-top: 20px;
    padding-bottom: 20px;
    background: rgb(219,58,92);
background: linear-gradient(90deg, rgba(219,58,92,1) 0%, rgba(55,153,240,1) 100%);
    width: 100%;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    position: fixed;
    bottom: 0px;
    z-index: 1;
}
#dashboard-content {
    width: 100%;
    height: auto;
    overflow-y: scroll;
}
h2.user-type{
	color: #fff;
}
h2.user-title{
	color: var(--bs-primary);
}
header{
	height: 25vh;
    background: transparent;
}
.btn-primary{
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-primary:hover{
    background-color: rgba(5,24,90, 0.9);
    border-color: var(--bs-primary);
}
.appwrapper {
    width: 100%;
    background: #fff;
    border-top-right-radius: 50px;
    border-top-left-radius: 50px;
    justify-content: space-between;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-top:30px;
    padding-bottom: 60px;
}
.left-menu-wrap {
    padding-bottom: 50px;
    height: 100vh;
    overflow-y: auto;
}
.member-nav-item {
	width: 100%;
	height: auto;
	padding-left: 20px;
	padding-right: 20px;
    margin: 20px auto 0px;
}
.member-nav-item a {
	width: 100%;
	height: 100%;
	display: block;
    text-align: center;
    margin: auto;
    font-weight: 600;
    text-decoration: none;
}
.member-nav-item a{
    filter: grayscale(100);
        opacity: 0.5;
}
.member-nav-item a.current {
    filter: grayscale(0);
    opacity: 1;
    color: var(--bs-primary);
}
.nav.logoutlogin {
    border: 1px solid #00980f;
    width: 100px;
    border-radius: 15px;
    margin: 10px auto;
    background: #baddc3;
    color: #00980f;
}
.nav.logoutlogin li a{
    color: #00980f;
}
.nav.logoutlogin li a .dot {
    width: 10px;
    height: 10px;
    background: #00980f;
    display: inline-block;
    border-radius: 30px;
    margin-right: 10px;
}
.member-nav-item a img {
    width: 100%;
    max-width: 60px;
}
.member-nav-item a span {
    display: block;
    font-size: 1.1rem;
    text-align: center;
}
.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #e9ebef;
    outline: 0;
    box-shadow: 0 0 0 .0rem rgba(13, 110, 253, .25);
}
input[type="search"] {
    width: 100%;
    padding: 15px 40px;
    border-radius: 30px;
    background: #e9ebef;
    border-color: #e9ebef;
    font-size: 20px;
}
.serviceinfo{
    margin: 10px;
    height: 30vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.serviceinfowrap{
    padding: 10px;
    background-color: #fff;
}
/* .serviceinfo .cover{
    position: absolute;
    top: 0px;
    bottom: 0px;
    left:0px;
    right:0px;
} */
.serviceinfowrap .serviceinfo{
    border-radius: 30px;
}
.serviceinfowrap:nth-child(1) .serviceinfo{
    background-color: #f30000;
}.serviceinfowrap:nth-child(2) .serviceinfo {
    background-color: #00980f;
}.serviceinfowrap:nth-child(3) .serviceinfo { 
    background-color: #00a4e6;
}
.row.dashboard-footer-content-wrap .btn-lg {
    padding: 15px 5px;
    width: 100%;
    border-radius: 15px;
    margin: 30px;
    font-weight: 600;
    display: flex;
        align-items: center;
        justify-content: center;
}
header h2 {
    font-size: 4.5rem;
    font-weight: 900;
    font-family: "BariolBold", "Roboto", Sans-serif !important;
}
.dropdown-menu.show {
    background: #baddc3;
    padding: 2px 0px;
    border-radius: 10px;
    width: 128px;
    min-width: unset;
    border: 1px solid #00980f;
}
/* .btn.btn-lg.btn-primary.admitpatientsbtn {
    background-image: url(../img/hospital-bed.png);
    background-size: 45px;
    background-position: 60px center;
    background-repeat: no-repeat;
    padding-left: 90px;
} */
/* .btn.btn-lg.btn-primary.createpatientfiles {
    background-image: url(../img/add.png);
    background-size: 45px;
    background-position: 44px 10px;
    background-repeat: no-repeat;
    padding-left: 90px;
    padding-right: 30px;
} */
/* .btn.btn-lg.btn-primary.updatedetails {
    background-image: url(../img/folder.png);
    background-size: 45px;
    background-position: 34px center;
    background-repeat: no-repeat;
    padding-left: 60px;
    padding-right: 0px;
}
.btn.btn-lg.btn-primary.uploadrecords {
    background-image: url(../img/Uploadrecords.png);
    background-size: 45px;
    background-position: 34px center;
    background-repeat: no-repeat;
    padding-left: 60px;
    padding-right: 0px;
}

 */
.toast {
    width: 300px;
    position: absolute;
    right: 0px;
}
.toast .close {
    font-size: 26px;
    padding: 0px;
    position: absolute;
    margin-left: 260px;
}
 .dashboard-footer-content.align-items-center.d-flex.flex-direction-row.justify-content-flex-start .btn.btn-lg.btn-primary {
     width: calc(100% - 30px);
    border-radius: 15px;
 }

 .spacefooterfix .btn.btn-lg.btn-primary {
    width: calc(100% - 30px);
    border-radius: 15px;
}
 .spacefooterfix .dash-footer-icon {
    width: 50px;
    position: relative;
    margin: auto;
}
                .dash-footer-icon{
                    width: 50px;
                    position: relative;
                    margin:auto;
                }
                img.dash-footer-icon.blue {
                    display: none;
                }
                .dashboard-footer-content a:hover img.dash-footer-icon.white{
                    display: none;
                }
                .dashboard-footer-content a:hover img.dash-footer-icon.blue {
                    display: inline-block;
                }
.dashboard-footer-content .btn.btn-lg.btn-primary img {

    margin-left: -10px;
    padding-right: 10px;
}
.dashboard-footer-content .btn.btn-lg.btn-primary img.notactive {
    display: none;
}
.dashboard-footer-content .btn.btn-lg.btn-primary img.active {
    display: inline-block;
}
.dashboard-footer-content .btn.btn-lg.btn-primary:hover img.active,
.dashboard-footer-content .current.btn.btn-lg.btn-primary img.active{
    display: none;
}
.dashboard-footer-content .btn.btn-lg.btn-primary:hover img.notactive,
.dashboard-footer-content .current.btn.btn-lg.btn-primary img.notactive{
    display: inline-block;
}
.dashboard-footer-content .current.btn.btn-lg.btn-primary{
    background-color: #fff;
    color: var(--bs-primary);
    border: 0px solid var(--bs-primary);
}
.dashboard-footer-content .btn.btn-lg.btn-primary:hover {
    background-color: #fff;
    color: var(--bs-primary);
    border: 0px solid var(--bs-primary);
}
/*.dashboard-footer-content .btn.btn-lg.btn-primary.admitpatientsbtn img {
    margin-left: 30px;
}*/
.serviceinfo p{
    color: #fff;
    font-size: 1.5rem;
}
.innernavlinks {
    color: var(--bs-primary);
    font-size: 60px;
    padding-left: 28px;
    position: relative;
    width: 100px;
    border: 0px;
    background: transparent;
}
.patientdetails1 > div.d-flex, .patientdetails4 > div.d-flex {
    background-color: #e9ebef;
    min-height: 130px;
    margin: 0px;
    border-radius: 30px;
    overflow: auto !important;
}
h4{
    font-size: 1.2rem;
}
.select.race{
    width: 300px;
    border:0px;
    padding: 10px;
    border-radius: 15px;
    margin-left: 50px;
}
.patientdetails2{
    padding-top: 2rem;
}
.patientdetails3 .form-label{
    margin-bottom: 0px;
    display: inline-block;
}
.patientdetails3 .form-control {
    margin: 0px 10px 0px 30px;
}
input[type="text"], 
input[type="text"]:focus, 
input[type="text"]:active ,
input[type="email"],
input[type="email"]:focus,
input[type="email"]:active,
input[type="date"],
input[type="date"]:focus,
input[type="date"]:active,
textarea{
    background: #e9ebef;
    padding: 10px 15px;
    border-radius: 15px;
    border: none;
}
input#appointment_date {
    background: #fff;
}
textarea{
    margin: auto;
    width: 100%;
    max-width: 500px;
}
h4{
    font-weight: bold;
}
input[type="text"].whitetheme,
input[type="text"].whitetheme:focus,
input[type="text"].whitetheme:active {
    background: #fff;
    padding: 10px 15px;
    border-radius: 15px;
    border: none;
    /* width: 85%; */
}
.spacefooterfix {
    display: block;
    height: 160px;
}
.address2blocks > input:nth-child(1){
    width:calc(100% - 90px);
}
.address2blocks>input:nth-child(2) {
    width: 80px;
    margin-left: 10px;
}
.d-flex.flex-row.p4-3.formnav {
    justify-content: flex-end;
}
.formnav .btn.btn-lg {
    margin: 30px 20px;
    max-width: 300px;
    border-radius: 15px;
    width: 100%;
}
.formnav .btn-info{
    color: #fff;
}
.patientdetails5 > div {
	background-color: #e9ebef;
	min-height: 0px;
	margin: -30px 0px;
	border-radius: 0px;
	border-bottom-left-radius: 30px;
	border-bottom-right-radius: 30px;
}
#step2formsect, #step3formsect, #step4formsect{
    display: none;
}
#step2formsect .container.patientdetails1.col-11 .col-3 h4:nth-child(2),
#step3formsect .container.patientdetails1.col-11 .col-3 h4:nth-child(2),
#step4formsect .container.patientdetails1.col-11 .col-3 h4:nth-child(2),
#step2formsect .container.patientdetails1.col-11 .col-2 h4:nth-child(2),
#step3formsect .container.patientdetails1.col-11 .col-2 h4:nth-child(2),
#step4formsect .container.patientdetails1.col-11 .col-2 h4:nth-child(2)
 {
    display: none;
}
#step2formsect .btn{
    margin: auto;
}
#printdowldnexbk .col-6:nth-child(2) {
    width: calc(50% - 10px);
    margin-left: auto;
    margin-right: 0px;
    padding: 0px;
}
#printdowldnexbk .col-6:nth-child(1) {
    width: calc(50% - 10px);
    margin-right: auto;
    margin-left: 0px;
    padding: 0px;
}
.completetask {
    width: 100%;
    max-width: 150px;
    margin: auto;
    display: block;
}
.ptnt-avatar {
    width: 110px;
    height: 110px;
    background-size: cover;
    border-radius: 50%;
    margin-right: 20px;
    background-position: center;
}
.innerhead {
    font-size: 1.6rem;
    line-height: 2rem;
}

#gender-select .input-hidden {
    position: absolute;
    left: -9999px;
}
#gender-select input[type=radio]+label {
    padding: 0px;
    margin-right: 10px;
    background-color: var(--bs-light);
    border-radius: 30px;
    cursor: pointer;
}
#gender-select input[type=radio]:checked+label{
    padding: 0px;
    background-color: rgba(229, 18, 5,0.1);
}
#gender-select input[type=radio]:checked+label>img {
    box-shadow: none;
    
}
#gender-select input[type=radio]+label>img:nth-child(2) {
    display: none;
}
#gender-select input[type=radio]:checked+label>img:nth-child(2){
    display: block;
}
#gender-select input[type=radio]+label>img:nth-child(1) {
    display: block;
}

#gender-select input[type=radio]:checked+label>img:nth-child(1) {
    display: none;
}

/* Stuff after this is only to make things more pretty */
#gender-select input[type=radio]+label>img {
    width: 90px;
    height: 90px;
    transition: 500ms all;
    padding: 20px;
}


#marital-select .input-hidden {
    position: absolute;
    left: -9999px;
}

#marital-select input[type=radio]+label {
    padding: 0px;
    margin-right: 10px;
    border-radius: 30px;
    background-color: var(--bs-light);
    cursor: pointer;
}

#marital-select input[type=radio]:checked+label {
    padding: 0px;
    background-color: rgba(229, 18, 5,0.1);
}

#marital-select input[type=radio]:checked+label>img {
    box-shadow:none;

}

#marital-select input[type=radio]+label>img:nth-child(2) {
    display: none;
}

#marital-select input[type=radio]:checked+label>img:nth-child(2) {
    display: block;
}

#marital-select input[type=radio]+label>img:nth-child(1) {
    display: block;
}

#marital-select input[type=radio]:checked+label>img:nth-child(1) {
    display: none;
}

/* Stuff after this is only to make things more pretty */
#marital-select input[type=radio]+label>img {
    width: 90px;
    height: 90px;
    padding: 10px;
    transition: 500ms all;
}
/*
table.dataTable tbody tr.odd td {
    background-color: #fce5e5;
}
table.dataTable tbody tr.even td{
    background-color:#e5f6e7;
}
*/
table.dataTable tbody tr td{
    border-top: 2px solid #fff;
    border-bottom: 1px solid #fff;
}
table.dataTable tbody tr td:nth-child(1) {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    padding-left: 30px;
}
table.dataTable tbody tr td:last-child {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}
table.dataTable tbody th,
table.dataTable tbody td {
    padding: 11px 15px;
}
#patientsview thead,
#patientsview tfoot {
    display: none;
}
table.dataTable {
    width: 100%;
    min-width: 100%;
}
table.dataTable tbody tr td {
    background: #f5f5f5;
}
/*
table.dataTable tbody tr:nth-child(3n+1) td {
    background: #e5f8fe;
}

table.dataTable tbody tr:nth-child(3n+2) td {
    background: #fce5e5;
}

table.dataTable tbody tr:nth-child(3n+3) td {
    background: #e5f6e7;
}
*/
table.dataTable tbody tr.emergency td{
   background: #fce5e5
}
table.dataTable tbody tr.chronic td{
   background: #e5f6e7
}
table.dataTable tbody tr.generic td{
   background: #e5f8fe
}
#patientsview tbody tr td:nth-child(1) {
    font-size: 20px;
    font-family: "BariolBold", "Roboto", Sans-serif !important;
    text-transform: capitalize;
}
.filterpatients .all{
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
}
.filterpatients .emergency{
   border: 1px solid var(--bs-danger);
    color: var(--bs-danger);
}
.filterpatients .chronic {
    border: 1px solid var(--bs-success);
    color: var(--bs-success);
}
.filterpatients .general {
    border: 1px solid var(--bs-info);
    color: var(--bs-info);
}
.filterpatients .all.current {
    border: 1px solid var(--bs-primary);
    background: var(--bs-primary);
    color: #fff;
}

.filterpatients .emergency.current {
    border: 1px solid var(--bs-danger);
    background: var(--bs-danger);
    color: #fff;
}

.filterpatients .chronic.current {
    border: 1px solid var(--bs-success);
    background: var(--bs-success);
    color: #fff;
}

.filterpatients .general.current {
    border: 1px solid var(--bs-info);
    background: var(--bs-info);
    color: #fff;
}
.vitalinfo .unselect {
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
}
.vitalinfo .select {
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
    background-color:#bbc1d1;
}
.vitalinfo .col-3{
    display: flex;
    justify-content: center;
    align-items: center;
}
.vitalinfo .col-3 button {
    text-align: left;
    min-height: 48px !important;
}
.vitalinfo{
    border-radius: 0px !important;
    min-height: 0px !important;
}
.vitalinfo:nth-child(1){
    border-top-left-radius: 30px !important;
    border-top-right-radius: 30px !important;
    padding-top:3rem !important;
}
.vitalinfo:last-child {
    border-bottom-left-radius: 30px !important;
    border-bottom-right-radius: 30px !important;
    padding-bottom:3rem !important;
}
#introadmit {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding-bottom: 50px;
}
#step2vitalscreate, 
#questvitals, 
#questvitalscompl, 
#completedetailupdatesucc,
#patientsystemadmitselect{
    display: none;
}
table#patientsview tr td {
    cursor: pointer;
}
.dropdown-item:focus,
.dropdown-item:hover {
    color: #1e2125;
    background-color: transparent;
}
#sig, #sig2 {
    background-color: #e9ebef;
    min-height: 150px;
    margin: 0px;
    border-radius: 30px;
    border:0px;
}
/* #signbuttons{
    width: 88%;
        margin-top: 20px;
} */
.dataTables_wrapper {
    width: 100%;
}
.dataTables_wrapper tfoot {
    display: none;
}
.dataTables_wrapper .dataTables_filter label {
    width: 100%;
    font-size: 20px;
}
.dataTables_wrapper .dataTables_filter label input[type="search"]{
    border: 0px;
}
.dataTables_wrapper .dataTables_length label select {
    word-wrap: normal;
    padding: 4px 20px;
    margin: 10px 0px;
    font-size: 16px;
}
.dataTables_wrapper .dataTables_length label {
    display: inline-block;
    font-size: 20px;
}
.dataTables_wrapper .dataTables_info {
    font-size: 20px;
    margin-top: 10px;
    visibility: hidden;
    display: none;
}
.dataTables_wrapper .dataTables_paginate a{
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    width: calc(100% - 30px);
    border-radius: 15px;
    padding: 10px 30px;
    margin-right: 10px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.paginate_button.disabled{
  /*  background: rgba(0, 0, 0, 0.1) !important;
    color: #ddd !important;*/
}
.dataTable tr th {
    background: var(--bs-primary);
    padding: 15px;
    color: #fff;
    text-transform: uppercase;
}
.dataTable tr th:first-child{
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}
.dataTable tr th:last-child {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}
.dataTable{
    margin-top: 15px;
}
/*.dataTable {
    margin-top: 30px;
}*/
.dataTable thead tr {
    background: transparent;
    border-left: 0px solid #fff;
    border-radius: 10px;
    height: 0px;
    border-right: 0px solid #fff;
    border-bottom: 6px solid transparent;
}
#iwkdinn .btn.btn-lg {
    margin: 30px 20px;
    max-width: 300px;
    border-radius: 15px;
    width: 100%;
    padding: 0px 40px;
    line-height: 50px;
}
#signbuttons {
    width: 100%;
    margin-top: 20px;
    justify-content: space-between;
    padding-right: 40px;
}
div .fixedBarVitalHeads {
    width: 300px;
    border-bottom-right-radius: 0px;
    border-top-right-radius: 0px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.scrollBarVitalContent.d-flex {
    overflow-x: auto;
    width: calc(100% - 300px);
    border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
}

div .fixedBarVitalHeads button,
div .scrollBarVitalContent button {
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
    text-align: left;
        min-height: 48px !important;
    margin-top: 15px;
    background: #bbc1d1;
}
div .fixedBarVitalHeads input[type="text"]{
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
    text-align: left;
    min-height: 48px !important;
    margin-top: 15px;
}
div .scrollBarVitalContent input[type="text"] {
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
    text-align: left;
    min-height: 48px !important;
    margin-top: 0px;
    margin-bottom: 15px;
}
.scrollBarVitalContent.d-flex .col {
    display: flex;
    flex-direction: column;
    justify-content: center;
/*    align-items: center;*/
}
div .scrollBarVitalContent .col-11.btn.btn-lg.vitals-btn.select {
    margin-bottom: 15px !important;
    max-width: 180px;
    margin-right: 10px;
}
div .fixedBarVitalHeads button:last-child {
    margin-bottom: 15px;
}
/*
#patientviewvitals tbody tr td:nth-child(1),
#patientviewvitals thead tr th:nth-child(1) {
    display: none;
}
*/
/*#patientcreatevitals, #patientcreateconsult, #patientcreatemedication {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
}
#patientcreatevitals input, #patientcreateconsult input, #patientcreatemedication input{
    max-width: 180px;
}*/
#patientcreateconsult .d-flex.flex-column.medication-wrap input,
#patientcreateconsult .d-flex.flex-column.alt-medication-wrap input {
    max-width: unset;
}
#doctorque tbody tr, #pharmacyque tbody tr{
    cursor: pointer;
}
.col-12.d-flex.vital-icons-doc {
    width: 360px;
}
.col-12.d-flex.vital-icons-doc label{
    font-weight: bold;
    font-size: 18px;
}
#patientcreateconsult select, #patientcreatemedication select{
    max-width: calc(100% - 20px);
    height: 40px;
}
#patientcreateconsult .btn, #patientcreatemedication .btn {
    min-height: 0;
/*    width: 40px;*/
/*    font-size: 35px;*/
/*    line-height: 0px;*/
    text-align: center;
/*    height: 40px;*/
    padding: 0px 0px 5px 1px;
    margin: 0px 0px 0px 10px !important;
}
#patientcreateconsult textarea.form-control, #patientcreatemedication textarea.form-control{
    max-width: 100%;
}
#symptoms-wrap .d-flex button, #diagnosis-wrap .d-flex button, #phc-wrap .d-flex button,
#diagnosis-wrap .d-flex button, #medication-wrap .d-flex button {
    display: none !important;
}
#symptoms-wrap .d-flex:nth-child(1) button, #diagnosis-wrap .d-flex:nth-child(1) button, 
#phc-wrap .d-flex:nth-child(1) button, #medication-wrap .d-flex:nth-child(1) button {
    display: block !important;
}
.prescribeimg {
    width: 100%;
    max-width: 180px;
}
.prescriptionbtns{
    display: flex;
    justify-content: center;
}
.prescriptionbtns .btn {
    width: 330px;
    margin: 0px 15px;
}
.col-3.medshead {
    font-size: 19px;
    background: #fff;
    padding: 5px;
    border-right: 1px solid #000;
}
.col-3.medshead:nth-child(1){
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.col-3.medshead:nth-child(4){
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-right: 0px;
}
.d-flex.medhistory.col>.col-12>div {
    padding: 10px 5px;
    border-bottom: 1px solid #000;
}
/* #symptoms-wrap .form-control.col-3{
    width: 25%;
} */
/*#patientcreateconsult #medication-wrap select, #patientcreatemedication  #medication-wrap select {
    width: calc(35% - 50px);
    height: 40px;
    margin: 0px 20px 0px 0px;
}
#medication-head-wrap .heading-med {
    width: calc(35% - 50px);
    height: 40px;
    margin: 0px 20px 10px 0px;
    background: #bbc1d1;
    text-align: center;
    line-height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--bs-primary);
    padding: 0px;
}*/
select.form-control {
    background-image: url(/img/Uploadrecords-blue.png);
    background-position: 96% 6px;
    background-size: 28px;
    background-repeat: no-repeat;
    padding-right: 50px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#patientviewvitals tr:nth-child(1) td {
    cursor: pointer;
}

#patientsrecords tr:nth-child(1) td {
    cursor: pointer;
}

#patientdiagnosisModal .col div {
    height: 80px;
    background: rgba(0, 0, 0, 0.05);
    margin-bottom: 5px;
    line-height: 30px;
    padding-left: 10px;
    padding-right: 10px;
            display: flex;
            padding-top: 5px;
}
#patientvitalsModal .col:nth-child(1) div,
#patientdiagnosisModal .col:nth-child(1) div{
        font-size: 20px;
            font-family: 'BariolBold';
            text-transform: capitalize;
}
.diagnosissubtitle{
    max-width: calc(200px);
}
h5.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 25px;
    text-transform: uppercase;
    font-family: 'BariolBold' !important;
}
#patientvitalsModal .col div{
        height: 40px;
        background: rgba(0, 0, 0, 0.05);
        margin-bottom: 5px;
            line-height: 30px;
            padding-left: 10px;
            display: flex;
            padding-top: 5px;
}
#patientmedicalhistory tr td,
#patientvitalmedicalhistory tr td,
#patientdiagnosishistory tr td{
    border-width: 0px;
    text-transform: capitalize;
    padding-top: 20px;
    padding-bottom: 20px;
}
#patientmedicalhistory tr:nth-child(2n),
#patientvitalmedicalhistory tr:nth-child(2n),
#patientdiagnosishistory tr:nth-child(2n) {
    background: rgba(0, 0, 0, 0.05);
}
#patientmedicalhistory_filter label,
#patientvitalmedicalhistory_filter label,
#patientdiagnosishistory_filter label,
#patientmedicalhistory_filter.dataTables_filter {
    font-size: 20px;
}
#patientmedicalhistory_filter input[type="search"],
#patientvitalmedicalhistory_filter input[type="search"],
#patientdiagnosishistory_filter input[type="search"] {
    width: 100%;
    /* padding: 6px 20px; */
    font-size: 20px;
}
#patientvitalshistoryModal .modal-footer{
    display: none;
}
.dignosis-info {
    background: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    height: 150px;
}
.dignosis-info.title{
    background: #fff;
        padding: 10px 15px;
        border-radius: 15px;
        height: auto;
        line-height: 1.5;
}
.breakheadings{
        font-size: 22px;
        padding-left: 25px;
        padding-top: 10px;
    
}
.d-flex.fullhistory.col .d-flex.flex-wrap.col-12:nth-child(1) .col-6.pe-4 > div:nth-child(1) h4,
.d-flex.fullhistory.col .d-flex.flex-wrap.col-12:nth-child(1) .col-6.ps-4>div:nth-child(1) h4 {
    padding-top: 0px;
}
h4.label{
    padding-top: 20px;
}
.modalcateg p {
    font-size: 18px;
    padding-left: 8px;
    font-family: "BariolBold";
    font-weight: bold;
}
.diagnosis-notes {
    background: #fff;
    padding: 10px;
    border-radius: 20px;
    height: 120px;
}
.diagnosistitle {
    background: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
}
#patientdiagnosisModal .col .modal-diagnosis-wrap {
    display: flex;
    flex-direction: column;
    height: auto;
}
.modal-diagnosis-wrap p {
    padding-bottom: 0px;
    margin-bottom: 2px;
    background: #fff;
    padding: 3px 5px;
}
#patientdiagnosisModal .modal-content {
    height: 80vh;
    overflow-y: scroll;
}
#patientsearchdbContainer,
#patientfacialContainer{
    display: none !important;
    margin:auto;
}
.admitoptions .col-6{
    justify-content: center;
    display: flex;
}
.admitoptions .col-6 button{
    max-width: 400px;
}

#patientsearchdbContainer.showadmitoption,
#patientfacialContainer.showadmitoption{
    display: flex !important;
}
.admitoptions{
    display: none;
}
#results{
    background: #05185a;
    width: 100%;
        height: 350px;
}
.vitals-date{
    min-width: calc(100% - 15px);
}
table.dataTable td{
    white-space: nowrap; /* Prevents text from wrapping */
    overflow: hidden; /* Hides any overflowing text */
    text-overflow: ellipsis; /* Displays "..." at the end of the text */
    max-width: 100px; /* Limits the width of the container to 200px */
  }
  
table.dataTable td:hover {
    white-space: normal; /* Allows the text to wrap to the next line */
  }
/*  .table-prof-pic {
    height: 35px;
    width: 35px;
    display: block;
    background-size: cover;
    border-radius: 50%;
    background-position: center;
    position: absolute;
margin-top: -5px;
}*/
.table-prof-pic {
    height: 35px;
    width: 35px;
    display: inline-block;
    background-size: cover;
    border-radius: 50%;
    background-position: center;
    position: relative;
    float: left;
}
.idclass {
    margin-left: 50px;
}
table.dataTable td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

table.dataTable td:hover {
    overflow: visible;
    z-index: 1;
    white-space: normal;
    word-wrap: break-word;
}
.dataTables_wrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
.dataTables_length {
    width: 100%;
    max-width: 250px;
    padding-top: 5px;
}
.dataTables_filter{
    width: 100%;
/*    max-width: calc(100% - 250px);*/
}
.dataTables_filter label[for="myTable_filter"] {
  display: none;
}
.progressbar {
    padding-top: 0px !important;
    padding-bottom: 30px !important;
}
.download-record{
    min-height: 50px;
}
.each-diag-on-records {
    padding: 10px 5px;
}
.doctor-que-wrap .appwrapper,
.patient-log-wrap  .appwrapper{
    min-height: 100vh;
    overflow: unset;
    
    height: auto;
}
.doctor-que-wrap .spacefooterfix,
.patient-log-wrap .spacefooterfix{
    display: block;
    height: 100px;
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    background-color: #121a5b;
    border-radius: 50%;
    padding: 20px;
    background-size: 60%;
    background-position: center;
}
p.number-of-patients {
    height: 30px;
    line-height: 30px;
    text-align: right;
    padding-right: 45px;
}
.dataTables_paginate {
    margin-top: 20px;
}
.btn.btn-lg.btn-primary.currentbtn {
    background: #fff;
    color: var(--bs-primary);
}
.btn.btn-lg.btn-primary.currentbtn .white{
    display: none;
}
.btn.btn-lg.btn-primary.currentbtn .blue{
    display: inline-block;
}

#toggleFullscreen {
    width: 50px;
    z-index: 9;
    background-image: url(../img/digiclinicl_icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
    position: relative;
    margin: 15px 20px 0px;
    padding: 30px;
    font-size: 76px;
    line-height: 10px;
    -webkit-transition: all .1s linear 0s;
    transition: all .1s linear 0s;
    display: block;
    border: 0px;
    background-size: contain;
}

#navtogglebtn button#clickbtnnavopen2,
#navtogglebtn button#clickbtnnavopen{
    background-image: url(../img/digiclinic_menu_button.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
}

#navtogglebtn button {
    margin: 10px 30px;
    background: transparent;
    color: #fff;
    font-size: 76px;
    line-height: 10px;
    padding: 30px;
    position: absolute;
    border: 0px;
}
button#clickbtnnavclose{
    margin: 0px 20px 0px 15px;
    background: transparent;
    color: #fff;
    font-size: 76px;
    line-height: 10px;
    padding: 30px;
    position: relative;
    border: 0px;
    background-image: url(../img/digiclinic_menu_button.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
}

/************/

@media screen and (orientation:landscape) and (min-width:768px) and (max-width:1120px){

table.dataTable tbody th, table.dataTable tbody td {
    padding: 15px 5px;
    font-size: 15px;
    vertical-align: middle;
}
.idclass {
    height: 35px;
    line-height: 35px;
}
.dataTable tr th {
    padding: 15px 5px;
    font-size: 15px;
}
.patientdetails3 h4, .patientdetails2 h4{
    font-size: 15px;
}
.form-label {
    font-size: 15px;
}
/* Stuff after this is only to make things more pretty */
#marital-select input[type=radio]+label>img {
    width: 80px;
    height: 80px;
    padding: 10px;
    transition: 500ms all;
}
/* Stuff after this is only to make things more pretty */
#gender-select input[type=radio]+label>img {
    width: 80px;
    height: 80px;
    transition: 500ms all;
    padding: 20px;
}
}


  @media (min-width: 576px) {
    .modal-dialog{
      max-width: 768px;
      margin: 1.75rem auto;
  }
}



/********
@font-face
********/



@font-face {
    font-family: 'Bariol';
    src: url('../fonts/Bariol-Regular.woff2') format('woff2'),
        url('../fonts/Bariol-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BariolItalic';
    src: url('../fonts/Bariol-Italic.woff2') format('woff2'),
        url('../fonts/Bariol-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BariolBold';
    src: url('../fonts/Bariol-Bold.woff2') format('woff2'),
        url('../fonts/Bariol-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Black.woff2') format('woff2'),
        url('../fonts/Inter-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'InterLighterLighter';
    src: url('../fonts/Inter-Thin.woff2') format('woff2'),
        url('../fonts/Inter-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'InterLighter';
    src: url('../fonts/Inter-ExtraLight.woff2') format('woff2'),
        url('../fonts/Inter-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'InterLight';
    src: url('../fonts/Inter-Light.woff2') format('woff2'),
        url('../fonts/Inter-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-ExtraBold.woff2') format('woff2'),
        url('../fonts/Inter-ExtraBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'InterNorm';
    src: url('../fonts/Inter-Medium.woff2') format('woff2'),
        url('../fonts/Inter-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'InterBold';
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2'),
        url('../fonts/Inter-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'InterBolder';
    src: url('../fonts/Inter-Regular.woff2') format('woff2'),
        url('../fonts/Inter-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html, body {
    overflow-x: hidden;
}

#appwrapp,
#right-dash-wrapper,
#dashboard-content {
    max-width: 100%;
    overflow-x: hidden;
}

/* ============================= */
/* FIX SERVICE TILE TITLES       */
/* ============================= */

.serviceinfo {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

/* Remove link underline everywhere */
.serviceinfo a,
.serviceinfo p {
    text-decoration: none !important;
}

/* Title overlay */
.serviceinfo p {
    position: absolute;
    top: 20px;
    left: 20px;

    margin: 0;
    padding: 0;

    font-size: 20px;
    font-weight: 600;
    color: #ffffff;

    text-align: left;
    z-index: 2;
}

/* Remove underline on hover */
a:hover .serviceinfo p {
    text-decoration: none !important;
}

/* Ensure consistent height */
.serviceinfo {
    min-height: 220px;
}

/* Optional: smooth hover */
.serviceinfo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 1;
}

.serviceinfo p,
.serviceinfo .cover p {
    line-height: 1.2;
    display: block;
}

/* ============================= */
/* MOBILE SPACING FIX – STEP 2   */
/* ============================= */
@media (max-width: 768px) {

    .container,
    .container-fluid,
    #appwrapp,
    #diginnerwrap,
    #right-dash-wrapper,
    #dashboard-content {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

}

/* ============================= */
/* MOBILE FIX — ADMIT PAGE */
/* ============================= */
@media (max-width: 768px) {

  /* Main wrappers */
  #appwrapp,
  #diginnerwrap,
  #right-dash-wrapper,
  #dashboard-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Intro admit container */
  #introadmit {
    padding: 15px !important;
  }

  /* QR Scan card */
  #introadmit > div:first-child {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px !important;
  }

  /* Service cards container */
  #introadmit .col-12.d-flex {
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* Each service card column */
  #introadmit .col-lg-6,
  #introadmit .col-md-12 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Service card itself */
  .serviceinfo {
    width: 100% !important;
    min-height: 160px !important;
    border-radius: 18px !important;
    background-size: cover !important;
    background-position: center !important;
    display: flex !important;
    align-items: flex-end !important;
    padding: 16px !important;
  }

  /* Service title text */
  .serviceinfo p {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    text-align: left !important;
  }

}


/* ============================= */
/* MOBILE SCROLL GREY BLOCK FIX */
/* ============================= */
@media (max-width: 768px) {

  /* The real culprit: scroll container background */
  .main-content {
    background: transparent !important;
  }

  .content {
    background: transparent !important;
  }

  /* This prevents background from stretching during scroll */
  #diginnerwrap,
  #right-dash-wrapper,
  #dashboard-content {
    background: transparent !important;
  }

  /* Critical: remove forced viewport height on mobile */
  .appwrapper {
    min-height: auto !important;
  }

}

/* ===================================================== */
/* GLOBAL SAFETY FIX                                     */
/* ===================================================== */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

#appwrapp,
#right-dash-wrapper,
#dashboard-content {
    max-width: 100%;
    overflow-x: hidden;
}

/* ===================================================== */
/* SERVICE CARD TITLE FIX (DESKTOP + MOBILE)             */
/* ===================================================== */
.serviceinfo {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

/* Remove underline everywhere */
.serviceinfo,
.serviceinfo p,
.serviceinfo a {
    text-decoration: none !important;
}

/* Card title overlay */
.serviceinfo p {
    position: absolute;
    top: 18px;
    left: 18px;

    margin: 0;
    padding: 0;

    font-size: 20px;
    font-weight: 600;
    color: #ffffff;

    z-index: 2;
    line-height: 1.2;
}

/* Optional subtle overlay for readability */
.serviceinfo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 1;
}

/* ===================================================== */
/* MOBILE LAYOUT FIX — CORE FIX                          */
/* ===================================================== */
@media (max-width: 768px) {

    /* Remove desktop offsets */
    #diginnerwrap {
        width: 100% !important;
        margin-left: 0 !important;
        background-size: cover !important;
    }

    /* Containers */
    .container,
    .container-fluid,
    #appwrapp,
    #right-dash-wrapper,
    #dashboard-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Admit wrapper spacing */
    #introadmit {
        padding: 10px !important;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* QR Scan card stacks nicely */
    #introadmit > .col-12:first-child > div {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    /* Service cards container */
    #introadmit .col-12.d-flex {
        flex-direction: column !important;
        gap: 16px !important;
    }

    /* Each card column becomes full width */
    #introadmit .col-lg-6,
    #introadmit .col-md-12 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Service card sizing */
    .serviceinfo {
        width: 100% !important;
        min-height: 180px !important;
        border-radius: 18px !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* Title sizing on mobile */
    .serviceinfo p {
        font-size: 18px !important;
    }

    /* Prevent bottom bar overlap */
    #dashboard-content {
        padding-bottom: 140px !important;
    }
}

/* ===================================================== */
/* MOBILE SCROLL STABILITY FIX                           */
/* ===================================================== */
@media (max-width: 768px) {

    /* Prevent scroll stretch artifacts */
    .appwrapper {
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    #dashboard-content {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* ======================================== */
/* MOBILE FIX — RESTORE ADMIT LAYOUT        */
/* ======================================== */
@media (max-width: 768px) {

    /* Stop vertical centering */
    #introadmit {
        height: auto !important;
        min-height: auto !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding-bottom: 200px !important; /* space for footer */
    }

}

@media (max-width: 768px) {

    /* Ensure service cards render */
    #introadmit .serviceinfo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

}

@media (max-width: 768px) {

    #dashboard-content {
        padding-bottom: 180px !important;
    }

}

/* ======================================== */
/* FINAL MOBILE POLISH — ADMIT PAGE         */
/* ======================================== */
@media (max-width: 768px) {

  /* ----------------------------- */
  /* 1. FIX LOGO CROPPING          */
  /* ----------------------------- */

  /* Header / top bar spacing */
  header,
  .tophead,
  .inner-head,
  .innerhead {
    padding-top: 20px !important;
    padding-bottom: 10px !important;
    min-height: auto !important;
  }

  /* Logo itself */
  .tophead img,
  .inner-head img {
    max-height: 48px !important;
    width: auto !important;
    display: block;
  }

  /* ----------------------------- */
  /* 2. REMOVE DEAD SPACE BELOW    */
  /* ----------------------------- */

  #introadmit {
    padding-bottom: 80px !important; /* reduced from 200 */
  }

  .appwrapper {
    padding-bottom: 0 !important;
    min-height: unset !important;
  }

  /* ----------------------------- */
  /* 3. MENU BUTTON SIZE & POSITION */
  /* ----------------------------- */

  #navtogglebtn button,
  #clickbtnnavopen,
  #clickbtnnavopen2 {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;

    background-size: contain !important;

    margin-left: 10px !important;   /* move left */
    margin-top: 10px !important;

    font-size: 0 !important; /* kills oversized font scaling */
  }

  /* If wrapped inside header */
  #navtogglebtn {
    left: 10px !important;
    right: auto !important;
  }

}

/* ======================================== */
/* MOBILE — LOGO ICON ALIGNMENT FIX        */
/* ======================================== */
@media (max-width: 768px) {

  /* LOGO ICON (background-image based) */
  #toggleFullscreen {
    width: 42px !important;
    height: 42px !important;

    padding: 0 !important;
    margin: 10px 0 0 12px !important;

    background-image: url(../img/digiclinicl_icon.png);
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;

    display: block !important;
  }

  /* MENU BUTTON — match logo size */
  #navtogglebtn button,
  #clickbtnnavopen,
  #clickbtnnavopen2 {
    width: 42px !important;
    height: 42px !important;

    padding: 0 !important;
    margin: 10px 0 0 12px !important;

    background-size: contain !important;
    font-size: 0 !important;
  }

  /* ENSURE BOTH SIT ON SAME ROW */
  #navtogglebtn,
  #toggleFullscreen {
    position: relative !important;
    top: 0 !important;
  }

}

/* ======================================== */
/* MOBILE — FORCE LOGO ICON INTO VIEW ONLY */
/* ======================================== */
@media (max-width: 768px) {

  /* LOGO ICON ONLY — DO NOT TOUCH MENU */
  #toggleFullscreen {
    width: 38px !important;
    height: 38px !important;

    padding: 0 !important;

    /* MOVE LEFT BY ~100px */
    transform: translateX(-100px) !important;

    background-image: url(../img/digiclinicl_icon.png);
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;

    z-index: 9999 !important;
  }

}

/* ================================================= */
/* MOBILE — ALIGN SERVICE CARDS WITH QR SCAN CARD */
/* ================================================= */
@media (max-width: 768px) {

  /* 1. Normalize main content width */
  #introadmit {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* 2. Remove Bootstrap column side padding */
  #introadmit .col-lg-6,
  #introadmit .col-md-12,
  #introadmit .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 3. Ensure service cards match QR card width */
  #introadmit .serviceinfo {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 4. Ensure QR scan card also respects same width */
  #introadmit > .col-12:first-child > div {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

}

/* ===================================================== */
/* MOBILE VITALS — FINAL CARD POLISH (≤ 768px)           */
/* ===================================================== */
@media (max-width: 768px) {

  /* Card container */
  table.dataTable tbody tr {
    background: #e5f8fe !important;
    border-radius: 18px !important;
    padding: 16px !important;
    margin-bottom: 16px;
    display: block !important;
  }

  /* Reset cells */
  table.dataTable tbody tr td {
    display: block !important;
    padding: 4px 0 !important;
    font-size: 15px;
    border: none !important;
  }

  /* Patient CODE */
  table.dataTable tbody tr td:first-child {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 8px;
    color: #05185a;
  }

  /* FIRST + LAST NAME */
  table.dataTable tbody tr td:nth-child(4),
  table.dataTable tbody tr td:nth-child(5) {
    font-size: 16px;
    font-weight: 600;
    color: #05185a;
  }

  /* Phone + Email */
  table.dataTable tbody tr td:nth-child(6),
  table.dataTable tbody tr td:nth-child(7) {
    font-size: 14px;
    color: #555;
    margin-top: 4px;
  }

  /* Icons for contact */
  table.dataTable tbody tr td:nth-child(6)::before {
    content: "📞 ";
  }

  table.dataTable tbody tr td:nth-child(7)::before {
    content: "✉️ ";
  }

  /* Hide internal columns */
  table.dataTable tbody tr td:nth-child(2),
  table.dataTable tbody tr td:nth-child(3) {
    display: none !important;
  }

  /* Action button (yellow) */
  table.dataTable tbody tr td:last-child {
    margin-top: 10px;
    display: flex !important;
    justify-content: flex-end;
  }

  table.dataTable tbody tr td:last-child button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 18px;
  }

}

/* ===================================================== */
/* MOBILE VITALS — HARD RESET TO CARD LAYOUT (≤768px)    */
/* ===================================================== */
@media (max-width: 768px) {

  /* Kill table behavior completely */
  table,
  thead,
  tbody,
  tr,
  td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Hide table header */
  table.dataTable thead {
    display: none !important;
  }

  /* Card wrapper */
  table.dataTable tbody tr {
    background: #e5f8fe !important;
    border-radius: 20px !important;
    padding: 16px !important;
    margin: 0 0 16px 0 !important;
    box-sizing: border-box;
  }

  /* Reset cell spacing */
  table.dataTable tbody tr td {
    padding: 6px 0 !important;
    border: none !important;
    white-space: normal !important;
    text-overflow: unset !important;
  }

  /* CODE (Top) */
  table.dataTable tbody tr td:nth-child(1) {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #05185a;
    margin-bottom: 8px;
  }

  /* FIRST + LAST NAME */
  table.dataTable tbody tr td:nth-child(4),
  table.dataTable tbody tr td:nth-child(5) {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #05185a;
  }

  /* PHONE */
  table.dataTable tbody tr td:nth-child(6) {
    font-size: 14px;
    color: #444;
  }

  table.dataTable tbody tr td:nth-child(6)::before {
    content: "📞 ";
  }

  /* EMAIL */
  table.dataTable tbody tr td:nth-child(7) {
    font-size: 14px;
    color: #444;
  }

  table.dataTable tbody tr td:nth-child(7)::before {
    content: "✉️ ";
  }

  /* Hide unused columns (#, DATE) */
  table.dataTable tbody tr td:nth-child(2),
  table.dataTable tbody tr td:nth-child(3) {
    display: none !important;
  }

  /* ACTION BUTTON */
  table.dataTable tbody tr td:last-child {
    margin-top: 12px;
    display: flex !important;
    justify-content: flex-end;
  }

  table.dataTable tbody tr td:last-child button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
  }

}

/* ===================================================== */
/* MOBILE VITALS — AVATAR + QR PLACEMENT (≤768px)        */
/* ===================================================== */
@media (max-width: 768px) {

  /* Ensure card is positioning context */
  table.dataTable tbody tr {
    position: relative;
  }

  /* =============================== */
  /* PROFILE PICTURE — TOP RIGHT     */
  /* =============================== */
  table.dataTable tbody tr .table-prof-pic {
    position: absolute !important;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    z-index: 2;
  }

  /* =============================== */
  /* NAME ROW WRAP                   */
  /* =============================== */
  table.dataTable tbody tr td:nth-child(4),
  table.dataTable tbody tr td:nth-child(5) {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }

  /* =============================== */
  /* QR CODE — NEXT TO NAME          */
  /* =============================== */
  table.dataTable tbody tr td:nth-child(4) img,
  table.dataTable tbody tr td:nth-child(5) img {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    flex-shrink: 0;
  }

  /* If QR is background-based */
  .patient-qr {
    width: 34px;
    height: 34px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 6px;
    display: inline-block;
  }

}

@media (max-width: 768px) {

  /* Force avatar column back */
  table.dataTable tbody tr td .table-prof-pic {
    display: block !important;
    visibility: visible !important;
  }

}

/* ===================================================== */
/* MOBILE VITALS — QR NEXT TO NAME (≤768px)              */
/* ===================================================== */
@media (max-width: 768px) {

  /* Name cell becomes a flex row */
  table.dataTable tbody tr td:nth-child(4) {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }

  /* QR image (already rendered) */
  table.dataTable tbody tr td:nth-child(4) img,
  table.dataTable tbody tr td:nth-child(4) .qr-code {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    border-radius: 6px;
  }

  /* Name text stays stacked */
  table.dataTable tbody tr td:nth-child(4) span,
  table.dataTable tbody tr td:nth-child(4) strong {
    display: block;
  }

}

