*{
    margin:0; padding:0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
}

body {
    position: relative;
    margin: 0%;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    background-color: rgb(245, 245, 245);
}


header {
    position: fixed;
    top:0; left:0; right:0;
    background-color: rgb(245, 245, 245);
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
    z-index: 1000;
}
.header1 {
    padding:1em 2em 1em 2em;display:flex;justify-content:space-between;align-items:center;
}

.header2 {
    padding:1em 2em 1em 2em;
    display:flex;
}

.header2 a {
    color:grey;
    text-decoration: none;
    font-size:15px;
    padding:0 .5em 0 .5em;
}

.header2 a:hover {
    opacity: 50%;
    transition: .3s;
}

header .appnavbar {
    padding: 0 5em 0 5em;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
}

header .appnavbar ul {
    list-style: none;
}

header .appnavbar ul li {
    position: relative;
    float: left;
}

header .appnavbar ul li a{
    font-size: 15px;
    padding: 10px;
    color: #333;
    display: block;
}

header .appnavbar ul li a:hover {
    background-color: rgba(220, 220, 220, 0.467);
    transition: .3s;
    text-decoration: none;
}


header .appnavbar ul li ul {
    position: absolute;
    left: 0;
    width: 200px;
    background: #fff;
    display: none;
}

header .appnavbar ul li ul li {
    width: 100%;
    border: 1px solid rgba(0,0,0,.1);

}

header .appnavbar ul li:focus-within > ul,
header .appnavbar ul li:hover > ul {
    display: initial;
}
.menu {
    border: 2px solid grey;
    width: 25px;
    margin-bottom: 4px;
    border-radius: 10px;
}
#menu-bar {
    display: none;
}

header label {
    font-size: 20px;
    color: #333;
    cursor: pointer;
    display: none;
}

nav ul {
    padding: 0;
    margin: 0;
}


.welcomeuser {
    font-family: 'Lato', serif;
    padding:1em;
    font-size: 20px;
    border-radius: 3px;
    background-color: rgba(242, 255, 61, 0.221);
    color: rgb(141, 141, 25);
}


.userfacility {
    font-family: 'Lato', serif;
    padding:1em;
    font-size: 15px;
    border-radius: 3px;
    background-color: rgba(0, 187, 255, 0.137);
    color: blue;
    font-weight:bold;
}

.contenttopmargin {
    padding-top:10em;
}

.welcomecontent {
    overflow: auto;
    opacity: 0; /* Initially set to transparent */
    animation: welcomecontentfadeIN .8s ease forwards; /* Apply animation */
}

.systemInfo {
    overflow: auto;
    opacity: 0; /* Initially set to transparent */
    animation: welcomecontentfadeIN 2s ease forwards; /* Apply animation */
}

.referralchart {
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);

}

.referralpiechart {
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);

}

.referralMenu {
    background-color: white;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
    font-family: 'Lato', serif;
    border-radius:3px;
    padding:1em;
}

.clinicalrefslip {
    background-color: rgba(91, 206, 78, 0.523);
    color: white;
}

.lactatingmemo {
    background-color: rgba(255, 169, 183, 0.801);
    color: white;
}

.clinicalrefslip:hover,.lactatingmemo:hover {
    opacity: 50%;
    transition: .3s;
    cursor: pointer;
}

.referralmenubtn:hover {
    box-shadow: 0 0 0 2px gainsboro;
    border-radius: 3px;
    transition: .3s;
}

.referralform {
    background-color: white;
    padding:1em;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
}

.aboutUs {
    background-color: white;
    padding:1em;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
    border-top: 3px solid blue;
    border-radius: 5px 5px 0 0;
}

#submitclinicalreferralMsg,#submitreturnslipMsg,#updatereturnslipMsg,#newpasswordMsg,#updateerrorMsg,#newcontactMsg,#interreferralSubmitfeedbackMsg {
    display:none;
    background-color: rgb(255, 213, 213);
    color: rgb(138, 42, 42);
    padding:.5em;
}

#loader-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid rgb(38, 102, 158);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}


.popup {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%);
    padding: 20px;
    border: 1px solid rgb(208, 69, 69);
    color: rgb(208, 69, 69);
    background-color: rgb(255, 232, 232);
    z-index: 2;
}
  
.popup-content {
    text-align: center;
}

.closeMsg {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    cursor: pointer;
}

.interreferralOutgoingRow {
    background-color:#fff;border-bottom:2px solid gainsboro;padding: .7em;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);

}

#referralrowLoader {
    text-align:center;
    padding:5em;background-color:#fff;
    border-bottom:2px solid gainsboro;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
    display:none;
}

#incoming_referralrowLoader {
    text-align:center;
    background-color:#fff;
    border-bottom:2px solid gainsboro;
    padding:5em;

}
.underlined-input {
    border-bottom: 1px solid #000; /* Adjust border properties as needed */
    display: inline-block; /* Ensures that the width of the div adjusts to the width of the input */
}
  
.underlined-input input[type="text"] {
    border: none;
    outline: none;
    width: 100%; /* Ensures that the input fills the width of its container */
}

.vitals-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.vital {
    margin-right: 10px;
}

.newaccountdiv {
    background-color: white;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
    border-radius: 3px;
    padding:1em;
}
.inputpasswordmsg {
    display: none;
    color:orange;
    font-size:12px;
}

#newaccountmsg {
    display:none;
    color: rgb(216, 52, 52);
    background-color: rgb(255, 230, 230);;
    padding: .5em;
    width: 100%;
}

.useraccountsdiv {
    background-color: #fff;
    padding: 1em;
    font-family: 'Lato', serif;
    border-top:3px solid blue;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
    overflow:auto;
}

#allreferralsDiv,#facilitiesDiv {
    background-color: white;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
    border-radius: 3px;
    padding: 1em;
    font-family: 'Lato', serif;
    overflow:auto;
}

#allreferralsPiechart {
    background-color: white;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
    border-radius: 3px;
    padding: 1em;
    font-family: 'Lato', serif;
}

.editReferral,.batanesFacilities {
    font-family: 'Lato', serif;
    padding:1em;
    font-size: 18px;
    border-radius: 3px;
    background-color: rgba(0, 193, 80, 0.382);
    color: white;
}

.newReferral,.genReports,.nurseProfile {
    font-family: 'Lato', serif;
    padding:1em;
    font-size: 18px;
    border-radius: 3px;
    background-color: rgba(0, 138, 193, 0.382);
    color: white;
}

.changePassword {
    font-family: 'Lato', serif;
    padding:1em;
    font-size: 18px;
    border-radius: 3px;
    background-color: rgba(255, 166, 0, 0.445);
    color: white;
}

.changeContact {
    font-family: 'Lato', serif;
    padding:1em;
    font-size: 18px;
    border-radius: 3px;
    background-color: rgba(0, 193, 80, 0.382);

    color: white;
}

#update-admincontact, #cancel-admincontact {
    display:none;
}

.referredPatients {
    padding:.5em;
    border-radius: 3px;
    background-color: #20ff6ab6;
}

.acceptedPatients {
    padding:.5em;
    border-radius: 3px;
    background-color: #ff60a2b6;

}

.referredPatients:hover,.acceptedPatients:hover {
    opacity: 75%;
    transition: .3s;
}

#autotableRefresh {
    font-family: 'Lato', serif;
    padding:1em;
    font-size: 12px;
    border-radius: 3px;
    background-color: rgba(237, 255, 73, 0.397);
    color: rgb(100, 85, 18);
    align-items: center;
    display: flex;
}
.switch-container {
  display: inline-block;
  position: relative;
  width: 32px;
  height: 18px;
}

.switch-input {
  display: none;
}

.switch-label {
  display: block;
  width: 100%;
  height: 100%;
  background: #ccc;
  border-radius: 999px; /* Ensures rounded appearance */
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.switch-input:checked + .switch-label {
  background: #2ecc71; /* Background color when switch is ON */
}

.switch-label::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px; /* Diameter of inner circle */
  height: 14px; /* Diameter of inner circle */
  background: #fff;
  border-radius: 50%; /* Ensures circular shape */
  transition: transform 0.3s ease;
}

.switch-input:checked + .switch-label::after {
  transform: translateX(100%); /* Moves inner circle to the right when ON */
}

@media screen and (max-width: 600px) {
    .vital {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@keyframes welcomecontentfadeIN {
    from {
        opacity: 0;
    }
    to {
        opacity: 1; /* Fade to fully opaque */
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media(max-width:991px) {
    .logo {
        height:50px;
    }

    .header1, .header2 {
        padding: .5em 1.5em .5em 1.5em;
    }

    .header2 a {
        padding: 0 .5em 0 0;
    }

    .contenttopmargin {
        padding-top:8em;
    }

    header label {
        display: initial;
    }

    header .appnavbar {
        position: absolute;
        top: 100%; left:0; right:0;
        background: #fff;
        border-top: 1px solid rgba(0,0,0,.1);
        display: none;
        padding: 0;
    }
   
    #hamburger {
        float: right;
        padding: .2em;
    }

    header .appnavbar ul li {
        width: 100%;
    }

    header .appnavbar ul li ul {
        position: relative;
        width: 100%;
    }

    header .appnavbar ul li ul li {
        background: #eee;
    }

    #menu-bar:checked ~ .appnavbar {
        display: initial;
    }

    .outgoingFilter {
        display: inline-block;
    }
}

#interreferralAccounts,#interReferrals,#interreferralIncomming,#generatedReferrals,#interRefFacilities {
    overflow-x: auto;
}

#interreferralAccounts,#interReferrals,#interreferralIncomming,#generatedReferrals,#interRefFacilities,#feedbackList,
#labRequests {
    overflow-x: auto;
    white-space: nowrap; /* Prevent line breaks within table cells */
    display: block; /* Ensure table doesn't expand beyond viewport */
    width: 100%; /* Ensure the table takes up the full width of the viewport */
}
