/* ---------- master ---------- */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

:root {
    --primary: rgb(117, 69, 155);
    --secondary: rgb(211, 164, 182);
    --dark-primary: rgb(94, 39, 135);
    --gray: rgb(238, 238, 238);
    --dark-gray: rgb(138, 138, 138);
    --alert: rgb(230, 95, 95);
}

*,
*:before,
*:after {
    box-sizing: border-box;
    /*border: 1px black solid; */
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: black;
    background: rgb(255, 255, 255);
    overflow-x: hidden;
}

a {
    color: black;
    text-decoration: none;
}

a[href^=tel] {
    text-decoration: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: white;
    text-transform: uppercase;
    background: var(--primary);
    border: none;
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    transition: 0.35s;
}

button:hover {
    color: white;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

input {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    border: none;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.2);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    width: 100%;
}

input[type=checkbox] {
    accent-color: var(--primary);
    mix-blend-mode: multiply;
    transform: scale(1.75);
}

b {
    color: var(--primary);
    font-weight: 500;
}

.select {
    position: relative;
    border-radius: 1rem;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.2);
    overflow: hidden;
    width: 50%;
}

select:focus {
    outline: 0;
}

.select select {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    border: 0;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.2);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    width: 100%;
}

.select select option {
    font-size: 0.85rem;
    font-weight: 300;
    border-radius: 0;
}

.select .select-arrow {
    position: absolute;
    pointer-events: none;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.25rem;
    background: var(--primary);
    height: 100%;
    width: 2rem;
}

.textarea {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    box-shadow: 0 6px 10px 0 rgba(0,0,0,0.2);
    border: none;
    border-radius: 1rem;
    resize: none;
    padding: 0.5rem 1rem;
    height: 20vh;
    width: 75%;
    transition: 0.5s;   
}

/* ---------- tools ---------- */

.container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 15vh;
    height: inherit;
    min-height: 75vh;
    width: 100%;
}

.container.deactivate {
    display: none !important;
}

.container h1 {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 300;
}

.container h2 {
    font-size: 1.25rem;
    font-weight: 300;
}

.container h3 {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.1rem;
}

.container h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 300;
    background: var(--primary);
    border-radius: 2rem;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
}

.container p {
    font-size: 1rem;
    line-height: 1.5rem;
}

.container .title {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 2rem 0;
    height: inherit;
    width: 100%;
}

.padding {
    padding: 0 8rem;
}

.half-width {
    width: 50% !important;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: black;
    height: inherit;
}

.checkbox input[type=checkbox] {
    width: unset;
}

.clear-button {
    cursor: pointer;
}

.no-border {
    border: none !important;
}

.box-shadow {
    box-shadow: 0 2px 6px 0 rgba(39, 39, 39, 0.25);
    transition: 0.25s;
}

.box-shadow:hover {
    box-shadow: 0 4px 12px 0 rgba(23, 23, 23, 0.25);
}

.button-text {
    color: white;
    background: var(--primary);
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
}

.late-entry {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    background: var(--gray);
    border-radius: 1rem;
    padding: 1rem;
}

.add-row {
    cursor: pointer;
    float: right;
    font-size: 1.75rem;
}

.checkbox-item {
    display: flex;
    gap: 0.5rem;
}

.checkbox-item input {
    box-shadow: none;
    width: unset;
    scale: 1.5;
}

/* ---------- header ---------- */

.header {
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 15vh;
    width: 100%;
    z-index: 1;
}

.header .contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: white;
    background: var(--primary);
    height: 5vh;
    width: 100%;
}

.header .contact div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.header .contact div i {
    font-size: 1rem;
}

.header .navigation {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    height: 10vh;
    width: 100%;
}

.header .navigation i {
    font-size: 1.75rem;
    color: var(--primary);
}

.header .navigation .brand {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 35%;
}

.header .navigation .brand a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 1.85rem;
    color: var(--primary);
    text-transform: uppercase;
    gap: 0.5rem;
    width: 100%;
}

.header .navigation .brand a img {
    width: 2rem;
}

.header .navigation .toggle {
    cursor: pointer;
    display: none;
    font-size: 1.75rem;
    color: var(--primary);
}

.header .navigation .full-name {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 1rem;
    transition: 0.25s;
}

.header .navigation .full-name:hover {
    transform: translateY(-2px);
}

.header .navigation .full-name a {
    font-size: 1.25rem !important;
    color: var(--primary);
}

.header .navigation .email {
    cursor: pointer;
}

/* ---------- email ----------  */

.email-container {
    display: none;
    z-index: 99;
}

.email-container.active {
    position: absolute;
    top: 15vh;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: whitesmoke;
    height: 85vh;
    width: 100%;
 }

.email-popup {
    position: relative;
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    height: 75%;
    width: 75%;
}

.email-popup-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 6px var(--primary) solid;
    border-radius: 1rem;
    padding: 0.5rem;
}

.email-popup .message {
    margin: 1rem 0;
    padding: 2rem;
    overflow-y: scroll;
    height: inherit;
}

.email-popup h1 {
    font-size: 3rem;
    font-weight: 300;
    margin: 0.5rem 0;
}

.email-popup p {
    font-size: 1.5rem;
}

/* ---------- login ---------- */

.login {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15vh;
    height: 85vh;
    width: 100%;
}

.login form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
    background: var(--primary);
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.2);
    border-radius: 2rem;
    padding: 0 2rem;
    height: 50%;
    width: 30%;
}

.login form button {
    background: white;
    color: var(--primary);
}

.login form h2 {
    color: white;
    font-weight: 300;
}

.login form p {
    color: white;
}

.login form a {
    font-size: 0.85rem;
    color: white;
}

.password {
    position: relative;
    width: 100%;
}

#show_password_button {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

/* ---------- cards ---------- */

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 5rem;
    height: inherit;
    width: 100%;
}

.card {
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-radius: 2rem;
    height: 18rem;
    width: 20rem;
}

.card .image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 62%;
    width: 88%;
}

.card .image img {
    object-fit: contain;
    height: 100%;
    width: 100%;
}

.card .text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.card .progress-bar-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: white;
    background: white;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.2);
    border-radius: 1rem;
    height: 1.75rem;
    width: 75%;
}

.card .progress-bar-container .progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary);
    border-radius: 1rem;
    padding: 0 1rem;
    height: 100%;
    width: 100%;
}

/* ---------- page ---------- */

.page {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 5rem;
    width: 100%;
}

.page li {
    position: relative;
    left: 1rem;
    font-size: 1rem;
    padding: 0.25rem 0;
}

.page form {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.25rem;
    margin-bottom: 1rem;
    width: 100%;
}

.page .form {
    width: 75%;
}

.prn_display {
    background: var(--secondary) !important;
}

/* ---------- page-double ---------- */

.page-double {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 5rem;
    height: inherit;
    width: 100%;
}

.page-double .consumer-image {
    border-radius: 50%;
    overflow: hidden;
    height: 15rem;
    width: 15rem;
}

.page-double .consumer-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.page-double .text {
    padding-left: 2rem;
    width: 100%;
}

.page-double .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 75%;
}

/* ---------- tabs ----------  */

.tabs {
    position: absolute;
    top: 25vh;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    font-size: 5rem;
    color: var(--primary);
    margin: 2.5rem 0;
    height: inherit;
    width: 100%;
}

.tabs div {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#residential, #morning {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#toggleNursing, #toggleEvening, #toggleNight {
    color: gray;
}

#nursing, #evening, #night {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ---------- reports ---------- */

.residential, .nursing {
    margin-bottom: 8rem;
    width: 100%;
}

.residential .filter, .nursing .filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
    background: whitesmoke;
    border-radius: 1.5rem;
    padding: 0.75rem;
    width: 100%;
    height: inherit;
}

.residential .filter select, .nursing .filter select {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    border: none;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.2);
    border-radius: 2rem;
    padding: 0.5rem;
}

.residential .filter input, .nursing .filter input {
    font-size: 0.85rem;
    width: 20rem;
}

.residential .filter form, .nursing .filter form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.residential .filter p, .nursing .filter p {
    font-size: 0.85rem;
}

table {
    border-collapse: collapse;
    border: 1px black solid;
    margin-top: 1rem;
    left: 0;
    width: 100% !important;
    
}

table th {
    font-size: 0.85rem;
    font-weight: 300;
    color: white;
    background: var(--primary);
    border: 1px white solid;
    padding: 1rem;
}

table td {
    font-size: 0.85rem;
    border: 1px #e6e6e6 solid;
    padding: 0.5rem;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

table .wide {
    width: 75%;
}

table .small {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    width: 100%;
    height: 100%;
}

table .small i {
    cursor: pointer;
    color: var(--primary);
    border: 1px var(--primary) solid;
    border-radius: 0.5rem;
    padding: 0.5rem;
    transition: 0.25s;
}

table .small i:hover {
    color: white;
    background: var(--primary);
}

#pagination, #pagination-morning, #pagination-evening, #pagination-night {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
}

/* ---------- nursing notes ---------- */

.page .previous-note {
    background: var(--gray);
    border-radius: 1rem;
    padding: 1rem;
    height: inherit;
    width: 100%;
}

.page .previous-note-flex {
    display: flex;
    gap: 0.85rem;
    margin: 0.25rem 0;
}

.nursing-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: black;
    background: var(--primary);
    border-radius: 1rem;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.2);
    padding: 0 1.5rem;
    height: 5rem;
    width: 100%;
}

.nursing-content {
    background: whitesmoke;
    border-radius: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    min-height: inherit;
    width: 100%;
}

.nursing-content h2 {
    margin-bottom: 0.5rem;
}

.nursing-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: black;
    background: var(--gray);
    border-radius: 1rem;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.2);
    margin-bottom: 1rem;
    padding: 1rem;
    height: inherit;
}

.nursing-checkbox p {
    margin-left: 0.85rem;
    width: 75%;
}

.nursing-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: black;
    background: var(--gray);
    border-radius: 1rem;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.2);
    margin-bottom: 1rem;
    padding: 1rem;
    height: inherit;
}

.nursing-input p {
    width: 15%;
}

.nursing-input .signature-pad {
    border: none;
    border-radius: 2rem;
    background: white;
    height: 150px;
    width: 800px;
}

.nursing-checkbox input[type="checkbox"] {
    position: relative;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: white;
    mix-blend-mode: normal;
    border: none;
    border-radius: 1.75rem;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.2);
    padding: unset;
    height: 1.15rem;
    width: 1.15rem;
    transition: 0.25s;
}

.nursing-checkbox input[type="checkbox"]:hover {
    background: rgb(234, 234, 234);
}

.nursing-checkbox input[type="checkbox"]:checked {
    background: var(--primary);
}

.nursing-checkbox input[type="radio"] {
    box-shadow: none;
    padding: unset;
    width: unset;
    transform: scale(2);
}

.nursing-checkbox input[type="radio"]:checked::before {
    content: '';
    display: block;
    width: 0.82rem;
    height: 0.82rem;
    background-color: var(--primary);
    border-radius: 50%;
    position: relative;
    top: 0;
    left: 0;
}

.nursing-input textarea, .nursing-input input {
    font-size: 1rem;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.2);
    height: 100%;
    width: 75%;
}

.vp {
    width: 100%;
}

.vp_active {
    display: grid !important;
    page-break-before: always;
}

/* ---------- nursing-note-grid ---------- */

.nursing-note-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.nursing-note-grid .nursing-content {
    background: none;
    box-shadow: 0 2px 4px 0 rgba(133, 133, 133, 0.5);
    padding: 1rem;
    min-height: unset;
    height: inherit;
}

.nursing-note-grid .nursing-content p {
    font-size: 0.85rem;
}

.nursing-note-grid .nursing-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.nursing-note-grid .nursing-content .nursing-checkbox {
    background: none;
    border-bottom: 2px rgba(199, 199, 199, 0.2) solid;
    box-shadow: none;
    margin-bottom: 0.2rem;
    padding: 1.25rem;
    height: 1rem;
}

.nursing-note-grid .nursing-content .nursing-input {
    align-items: flex-start;
    justify-content: flex-start;
    background: none;
    border-bottom: 2px rgba(199, 199, 199, 0.2) solid;
    box-shadow: none;
    margin-bottom: 0.2rem;
    padding: 0.5rem;
    min-height: inherit;
}

.nursing-note-grid .nursing-content .nursing-checkbox input[type=checkbox] {
    cursor: default;
    height: 0.85rem;
    width: 0.85rem;
}

.nursing-note-grid .nursing-content .nursing-checkbox input[type=checkbox]:hover {
    background: white;
}

.nursing-note-grid .nursing-content .nursing-checkbox p {
    font-size: 0.85rem;
}

.nursing-note-grid .nursing-content .nursing-input p {
    font-size: 0.85rem;
    width: 40%;
}

.nursing-note-grid .nursing-content .nursing-input input, .nursing-note-grid .nursing-content .nursing-input textarea {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 0.95rem;
    background: none;
    box-shadow: none;
    padding: unset;
    height: fit-content;
    width: 60%;
} 

/* ---------- accordion ---------- */

.accordion {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 1rem;
    height: inherit;
}

.accordion-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 1.5rem;
    overflow: hidden;
    height: inherit;
    width: 100%;
}

.accordion-title {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    background: var(--primary);
    padding: 2rem;
    min-height: 2.5vh;
    width: 100%;
    transition: 0.25s;
}

.accordion-title:hover {
    background: var(--dark-primary);
}

.accordion-title i {
    cursor: pointer;
    font-size: 1.25rem;
    transition: 0.25s;
}

.accordion-title i:hover {
    transform: translateY(-1.5px);
}

.accordion-text {
    display: grid;
    grid-template-rows: 0fr;
    background: whitesmoke;
    width: 100%;
    transition: 0.5s;
}

.accordion-text > div {
    overflow: hidden;
}

.accordion-text.active {
    grid-template-rows: 1fr !important;
    padding: 1rem;
}

/* ---------- annual training ---------- */

.certificate {
    margin-top: 2.5rem;
    margin-bottom: 5rem;
    width: 100%;
}

.certificate .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.certificate .text h4 {
    width: inherit;
}

.certificate .text p {
    width: 100%;
}

.certificate img {
    width: 20%;
}

.search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray);
    border-radius: 1rem;
    padding: 1rem;
    width: 75%;
}

.incorrect {
    position: relative;
    color: red;
}
.incorrect::after {
    content: 'X';
    position: absolute;
    top: 0;
    left: -1rem;
    font-size: 1rem;
}
.correct {
    position: relative;
    color: green;
}
.correct::after {
    content: '\2713';
    position: absolute;
    top: 0;
    left: -1rem;
    font-size: 1rem;
}

/* ---------- footer bar ---------- */

.footer-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: white;
    background: var(--primary);
    height: 10vh;
    width: 100%;
}

.footer-bar.deactivate {
    display: none !important;
}

.footer-bar p {
    font-size: 1rem;
}

.footer-bar a {
    color: white;
    text-decoration: underline;
}

.security-seal {
    transform: scale(0.75);
}

/* ---------- print ---------- */

.print {
    display: none;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

@media print {
    /* master */
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        zoom: 50%;
    }
    @page {
        size: portrait; 
        margin: 5rem 0 0 0;
    }
    /* tools */
    .padding {
        padding: 0 5rem;
    }
    .container {
        margin-top: 10vh;
    }
    .page-break {
        page-break-after: always;
    }
    .hide-print {
        display: none !important;
    }
    /* header */
    .header {
        display: none;
        height: 10vh;
    }
    .header .contact {
        display: none;
    }
    .header .navigation {
        height: 100%;
    }
    /* tabs */
    .tabs {
        display: none;
    }
    /* nursing-notes */
    .nursing-note-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    /* footer-bar */
    .footer-bar {
        display: none;
    }
}