.checkbox-wrapper-4 * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.checkbox-wrapper-4 .cbx {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    overflow: hidden;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    display: inline-block;
}
.checkbox-wrapper-4 .cbx:not(:last-child) {
    margin-right: 6px;
}
.checkbox-wrapper-4 .cbx:hover {
    background: rgba(0,119,255,0.06);
}
.checkbox-wrapper-4 .cbx span {
    float: left;
    vertical-align: middle;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}
.checkbox-wrapper-4 .cbx span:first-child {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    border: 1px solid #cccfdb;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    -webkit-box-shadow: 0 1px 1px rgba(0,16,75,0.05);
    box-shadow: 0 1px 1px rgba(0,16,75,0.05);
}
.checkbox-wrapper-4 .cbx span:first-child svg {
    position: absolute;
    top: 3px;
    left: 2px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-transition-delay: 0.1s;
    transition-delay: 0.1s;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}
.checkbox-wrapper-4 .cbx span:last-child {
    padding-left: 8px;
    line-height: 18px;
}
.checkbox-wrapper-4 .cbx:hover span:first-child {
    border-color: var(--onPrimary);
}
.checkbox-wrapper-4 .inp-cbx {
    position: absolute;
    visibility: hidden;
}
.checkbox-wrapper-4 .inp-cbx:checked + .cbx span:first-child {
    background: var(--onPrimary);
    border-color: var(--onPrimary);
    -webkit-animation: wave-4 0.4s ease;
    animation: wave-4 0.4s ease;
}
.checkbox-wrapper-4 .inp-cbx:checked + .cbx span:first-child svg {
    stroke-dashoffset: 0;
}
.checkbox-wrapper-4 .inline-svg {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
@media screen and (max-width: 640px) {
    .checkbox-wrapper-4 .cbx {
        width: 100%;
        display: inline-block;
    }
}
@-webkit-keyframes wave-4 {
    50% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }
}
@keyframes wave-4 {
    50% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }
}
/*FANCY LINK*/
.fancy {
    margin: 15px 0 0 0;
    align-self: center;
    background-color: transparent;
    border: 2px solid #000;
    border-radius: 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    float: right;
    font-weight: 700;
    letter-spacing: 0.05em;
    /*margin: 0;*/
    outline: none;
    overflow: visible;
    padding: 1.25em 2em;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    transition: all 0.3s ease-in-out;
    user-select: none;
    font-size: 13px;
}

.fancy::before {
    content: " ";
    width: 1.5625rem;
    height: 2px;
    background: black;
    top: 50%;
    left: 1.5em;
    position: absolute;
    transform: translateY(-50%);
    transform-origin: center;
    transition: background 0.3s linear, width 0.3s linear;
}

.fancy .text {
    font-size: 1.125em;
    line-height: 1.33333em;
    padding-left: 2em;
    display: block;
    text-align: left;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    text-decoration: none;
    color: black;
}

.fancy .top-key {
    height: 2px;
    width: 1.5625rem;
    top: -2px;
    left: 0.625rem;
    position: absolute;
    background: #e8e8e8;
    transition: width 0.5s ease-out, left 0.3s ease-out;
}

.fancy .bottom-key-1 {
    height: 2px;
    width: 1.5625rem;
    right: 1.875rem;
    bottom: -2px;
    position: absolute;
    background: #e8e8e8;
    transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy .bottom-key-2 {
    height: 2px;
    width: 0.625rem;
    right: 0.625rem;
    bottom: -2px;
    position: absolute;
    background: #e8e8e8;
    transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy:hover {
    color: white;
    background: black;
}

.fancy:hover::before {
    width: 0.9375rem;
    background: white;
}

.fancy:hover .text {
    color: white;
    padding-left: 1.5em;
}

.fancy:hover .top-key {
    left: -2px;
    width: 0;
}

.fancy:hover .bottom-key-1,
.fancy:hover .bottom-key-2 {
    right: 0;
    width: 0;
}

/*HEART CHECKBOX*/
.love-heart:before,#switch {
    display: none;
}

.love-heart, .love-heart::after {
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    width: 10px;
    height: 8px;
    border: 1px solid hsl(231deg 28% 86%);
    border-bottom-width: 0;
}

.round {
    position: absolute;
    z-index: 1;
    width: 8px;
    height: 8px;
    background: hsl(0deg 0% 100%);
    -webkit-box-shadow: rgb(0 0 0 / 24%) 0 0 4px 0;
    box-shadow: rgb(0 0 0 / 24%) 0 0 4px 0;
    border-radius: 100%;
    left: 0;
    bottom: -1px;
    -webkit-transition: all .5s ease;
    transition: all .5s ease;
    -webkit-animation: check-animation2 .5s forwards;
    animation: check-animation2 .5s forwards;
}

input:checked + label .round {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0);
    -webkit-animation: check-animation .5s forwards;
    animation: check-animation .5s forwards;
    background-color: hsl(0deg 0% 100%);
}

@-webkit-keyframes check-animation {
    0% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }

    50% {
        -webkit-transform: translate(0, 7px);
        transform: translate(0, 7px);
    }

    100% {
        -webkit-transform: translate(7px, 7px);
        transform: translate(7px, 7px);
    }
}

@keyframes check-animation {
    0% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }

    50% {
        -webkit-transform: translate(0, 7px);
        transform: translate(0, 7px);
    }

    100% {
        -webkit-transform: translate(7px, 7px);
        transform: translate(7px, 7px);
    }
}

@-webkit-keyframes check-animation2 {
    0% {
        -webkit-transform: translate(7px, 7px);
        transform: translate(7px, 7px);
    }

    50% {
        -webkit-transform: translate(0, 7px);
        transform: translate(0, 7px);
    }

    100% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }
}

@keyframes check-animation2 {
    0% {
        -webkit-transform: translate(7px, 7px);
        transform: translate(7px, 7px);
    }

    50% {
        -webkit-transform: translate(0, 7px);
        transform: translate(0, 7px);
    }

    100% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }
}

.love-heart {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
    -webkit-transform: rotate(-45deg) translate(-50%, -33px) scale(4);
    -ms-transform: rotate(-45deg) translate(-50%, -33px) scale(4);
    transform: rotate(-45deg) translate(-50%, -33px) scale(4);
    display: block;
    border-color: hsl(231deg 28% 86%);
    cursor: pointer;
    top: 0;
}

input:checked + .love-heart, input:checked + .love-heart::after, input:checked + .love-heart .bottom {
    border-color: hsl(347deg 81% 61%);
    -webkit-box-shadow: inset 6px -5px 0 2px hsl(347deg 99% 72%);
    box-shadow: inset 6px -5px 0 2px hsl(347deg 99% 72%);
}

.love-heart::after, .love-heart .bottom {
    content: "";
    display: block;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    border-color: hsl(231deg 28% 86%);
}

.love-heart::after {
    right: -9px;
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    top: 7px;
}

.love-heart .bottom {
    width: 11px;
    height: 11px;
    border-left: 1px solid;
    border-bottom: 1px solid;
    border-color: hsl(231deg 28% 86%);
    left: -1px;
    top: 5px;
    border-radius: 0 0 0 5px;
}

/*<div class="love">
  <input id="switch" type="checkbox">
  <label class="love-heart" for="switch">
    <i class="left"></i>
    <i class="right"></i>
    <i class="bottom"></i>
    <div class="round"></div>
  </label>
</div>*/
/* The switch - the box around the slider */
.switch {
    --width-of-switch: 3.5em;
    --height-of-switch: 2em;
    /* size of sliding icon -- sun and moon */
    --size-of-icon: 1.4em;
    /* it is like a inline-padding of switch */
    --slider-offset: 0.3em;
    position: relative;
    width: var(--width-of-switch);
    height: var(--height-of-switch);
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f4f4f5;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: var(--size-of-icon,1.4em);
    width: var(--size-of-icon,1.4em);
    border-radius: 20px;
    left: var(--slider-offset,0.3em);
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    background: linear-gradient(40deg,#ff0080,#ff8c00 70%);
;
    -webkit-transition: .4s;
;
    transition: .4s;
}

input:checked + .slider {
    background-color: #303136;
}

input:checked + .slider:before {
    left: calc(100% - (var(--size-of-icon,1.4em) + var(--slider-offset,0.3em)));
    background: #303136;
    /* change the value of second inset in box-shadow to change the angle and direction of the moon  */
    -webkit-box-shadow: inset -3px -2px 5px -2px #8983f7, inset -10px -4px 0 0 #a3dafb;
    box-shadow: inset -3px -2px 5px -2px #8983f7, inset -10px -4px 0 0 #a3dafb;
}

/*table {
    border-spacing: 0;
    border-radius: 6px;
    overflow: hidden;
    width: calc(100% - 10px);
    margin: 5px;
    position: relative;
    padding: 2px;
}

tr {
    width: 100%;
}

td, tr {
    border-bottom: 1px solid var(--onPrimary);
}

table * {
    position: relative;
}

table thead tr {
    height: 48px;
    font-size: 14px;
}
table tbody tr {
    height: 24px;
    font-size: 12px;
}

table thead tr th {
    background-color: var(--primary);
    color: var(--onPrimary);
}

!*table tbody tr td {
    background-color: var(--background);
    color: var(--onBackground);
}*!

table tbody tr:last-child {
    border: 0;
}
table td, table th {
    text-align: left;
    padding-left: 4px;
}

table td.l, table th.l {
    text-align: right;
}

table td.c, table th.c {
    text-align: center;
}

table td.r, table th.r {
    text-align: right;
}*/

blockquote {
    color: white;
    text-align: center;
}

.action-group {
    display: flex;
    align-items: center;
    border-radius: 10px;
    background-color: var(--background);
    color: var(--onBackground);
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.action-group input {
    background-color: transparent;
    color: var(--onBackground);
}

.action-group:hover {
    border-color: var(--secondary);
}

.action-group img {
    border-radius: 50%;
    margin: 0 1px;
    border: 1px solid transparent;
}

.action-group img:hover {
    border-color: var(--secondary);
}

.radio-input input, .radio-input1 input, .radio-input2 input {
    display: none;
}

.radios {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 10px;
    background-color: var(--background);
    color: var(--onBackground);
    width: var(--container_width);
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 4px;
}

.radio-input {
    --container_width: 700px;
}

.radio-input1, .radio-input2 {
    --container_width: 238px;
    max-width: 100%;
}

.radio-input label, .radio-input1 label, .radio-input2 label {
    width: 100%;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    font-weight: 600;
    letter-spacing: -1px;
    font-size: 14px;
}

.selections {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 0;
    left: 0;
    top: 0;
    transition: .15s ease;
}

.selection {
    width: calc(var(--container_width) / 7);
    --width_divider: 7;
}

.selection1 {
    width: calc(var(--container_width) / 2);
    --width_divider: 2;
}

.selection2 {
    width: calc(var(--container_width) / 4);
    --width_divider: 4;
}

.radio-input label:has(input:checked), .radio-input1 label:has(input:checked), .radio-input2 label:has(input:checked) {
    color: #fff;
}

.radio-input label:has(input:checked) ~ .selection, .radio-input1 label:has(input:checked) ~ .selection1, .radio-input2 label:has(input:checked) ~ .selection2 {
    background-color: rgb(11 117 223);
    display: inline-block;
}

.radio-input1 label:nth-child(1):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 0/var(--width_divider)));
}

.radio-input1 label:nth-child(2):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 1/var(--width_divider)));
}

.radio-input2 label:nth-child(1):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 0/var(--width_divider)));
}

.radio-input2 label:nth-child(2):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 1/var(--width_divider)));
}

.radio-input2 label:nth-child(3):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 2/var(--width_divider)));
}

.radio-input2 label:nth-child(4):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 3/var(--width_divider)));
}

.radio-input label:nth-child(1):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 0/var(--width_divider)));
}

.radio-input label:nth-child(2):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 1/var(--width_divider)));
}

.radio-input label:nth-child(3):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 2/var(--width_divider)));
}

.radio-input label:nth-child(4):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 3/var(--width_divider)));
}

.radio-input label:nth-child(5):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 4/var(--width_divider)));
}

.radio-input label:nth-child(6):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 5/var(--width_divider)));
}

.radio-input label:nth-child(7):has(input:checked) ~ .selections {
    transform: translateX(calc(var(--container_width) * 6/var(--width_divider)));
}

/*! ARTICLE CARD*/
.card-article {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background-color: var(--background);
    color: var(--onBackground);
    overflow: hidden;
    margin: 4px;
    cursor: pointer;
    box-shadow: 0 4px 8px 0 var(--shadow);
}

.card-article .image-article {
    height: 200px;
    width: 100%;
    border-radius: 12px 12px 0 0;
}

.card-article .tag-article {
    font-size: 12px;
    font-weight: 600;
    border-radius: 16px;
    padding: 2px 6px;
    background-color: var(--primary);
    color: var(--onPrimary);
    margin-right: 2px;
}

.card-article span {
    font-size: 12px;
    font-weight: 600;
}

.padded {
    padding: 10px;
}

.content-group {
    padding: 10px;
}

/*!TEETH*/
.dental-charting {
    border: 1px solid #cacaca;
    padding: 30px;
    margin: 50px;
}

.dental-chart {
    background: #fff;
    text-align: center;
}

.dental-codes {
    border: 1px solid #cacaca;
}

.dental-input {
    height: 30px;
    width: 100%;
    margin: 5px 0;
}

.dental-input:focus {
    outline: none;
    border: 2px solid #2199e8;
}

.cls-1:hover .cls-1 .cls2 {
    fill: #ec1c1c;
}

/* From Uiverse.io by gharsh11032000 */
.radio-buttons-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.radio-button {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.radio-button__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-button__label {
    display: inline-block;
    padding-left: 30px;
    margin-bottom: 10px;
    position: relative;
    font-size: 16px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.radio-button__custom {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #555;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.radio-button__input:checked + .radio-button__label .radio-button__custom {
    transform: translateY(-50%) scale(0.9);
    border: 5px solid #004cff;
    color: #004cff;
}

.radio-button__input:checked + .radio-button__label {
    color: #004cff;
}

.radio-button__label:hover .radio-button__custom {
    transform: translateY(-50%) scale(1.2);
    border-color: #004cff;
    box-shadow: 0 0 10px #4c8bf580;
}

/* From Uiverse.io by CheekyTurtle */
.days-btn-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.day-btn {
    display: none; /* Hide the original checkbox */
}

.day-label {
    background-color: transparent;
    font-size: 10px;
    font-weight: 600;
    color: #008cff;
    cursor: pointer;
    border: 2px solid #008cff;
    border-radius: 20px;
    height: 28px;
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1px 5px 1px 2px;
}

/* Apply styles for the selected state */
.day-btn:checked + .day-label {
    background-color: #008cff;
    background-image: linear-gradient(147deg, #00ccff 0%, #004cff 74%);
    border: none;
    color: white;
}

.selector-group, .multi-selector-group {
    padding: 5px 12px;
}

.multi-selector-group span, .selector-group span {
    font-size: 13px;
    font-weight: bold;
    margin-left: 8px;
}

.circle-span {
    height: 15px;
    width: 15px;
    border-radius: 50%;
}

/*!MODERN TABLES*/
table:not(.data-table) {
    border-collapse: collapse;
    width: 100%;
    background: var(--background);
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
    overflow: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-size: 12px;
    table-layout: fixed;
}

table:not(.data-table) td,
table:not(.data-table) th {
    padding: 6px 8px;
    text-align: left;
    white-space: normal;
    word-break: break-all;
}

table:not(.data-table) thead tr {
    background-color: var(--secondary);
    color: var(--white);
}

table:not(.data-table) tbody tr:nth-child(odd) {
    background-color: var(--background);
}

table:not(.data-table) tbody tr:nth-child(even) {
    background-color: var(--infoContainer);
}

table:not(.data-table) tbody tr:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Alignment classes still work */
td.l, th.l { text-align: left; }
td.c, th.c { text-align: center; }
td.r, th.r { text-align: right; }

/* Safari/WebKit fix - but this is very specific and may not be needed */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        table:not(.data-table) {
            height: auto !important;
        }
    }
}

/*!TABLE SORTING*/
th.sortable {
    cursor: pointer;
    user-select: none; /* Prevents text highlighting on rapid clicks */
    transition: background-color 0.2s ease;
}

th.sortable:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Slight highlight on hover */
}

.sort-icon {
    font-size: 12px;
    margin-left: 4px;
    transition: opacity 0.2s;
}

th.sort-asc .sort-icon::before { content: "↑"; }
th.sort-desc .sort-icon::before { content: "↓"; }
th.sort-asc .sort-icon,
th.sort-desc .sort-icon {
    opacity: 1;
    font-weight: bold;
}

/*!MODERN TABLE*/
.data-table-wrapper {
    overflow-x: auto;
    padding: 0 4px 4px 4px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: var(--surfaceVariant);
}

.data-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mutedTextColor);
    border-bottom: 2px solid var(--outline);
    white-space: nowrap;
}

.data-table tbody tr {
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--outline);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--surfaceVariant);
}

.data-table tbody td {
    padding: 14px 16px;
    color: var(--textColor);
    vertical-align: middle;
}

.table-separator td {
    background: var(--surfaceVariant);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--onSurface);
    padding: 0.75rem 0.75rem;
    border-top: 2px solid var(--border);
}

.table-separator td:first-child {
    border-radius: 8px 0 0 8px;
}

/*!TABLE COLUMN MANAGEMENT*/
/*!PATIENT TABLES*/
.patient-table td, .patient-table th {
    width: 9.125%;
}

.patient-table td:nth-child(1), .patient-table th:nth-child(1) {
    width: 3%;
}

.patient-table td:nth-child(5), .patient-table th:nth-child(5) {
    width: 15%;
}

.patient-table td:nth-child(8), .patient-table th:nth-child(8) {
    width: 9%;
}

/*!QUEUE TABLE*/
.queue-table td, .queue-table th {
    width: 7%;
}

.queue-table td:nth-child(1), .queue-table th:nth-child(1){
    width: 3%;
}

.queue-table td:nth-child(2), .queue-table th:nth-child(2){
    width: 6%;
}

.queue-table td:nth-child(9), .queue-table th:nth-child(9),
.queue-table td:nth-child(12), .queue-table th:nth-child(12),
.queue-table td:nth-child(13), .queue-table th:nth-child(13),
.queue-table td:nth-child(14), .queue-table th:nth-child(14),
.queue-table td:nth-child(15), .queue-table th:nth-child(15){
    width: 5%;
}

.queue-table td:nth-child(3), .queue-table th:nth-child(3){
    width: 12%;
}

.queue-table td:nth-child(8), .queue-table th:nth-child(8) {
    width: 12%;
}

/*!LLDD*/
.lldd-table {
    font-size: 8px;
}

.lldd-table td, .lldd-table th {
    width: 7.6%;
}

.lldd-table th:nth-child(1), .lldd-table td:nth-child(1),
.lldd-table th:nth-child(6), .lldd-table td:nth-child(6),
.lldd-table th:nth-child(7), .lldd-table td:nth-child(7),
.lldd-table th:nth-child(10), .lldd-table td:nth-child(10),
.lldd-table th:nth-child(11), .lldd-table td:nth-child(11),
.lldd-table th:nth-child(14), .lldd-table td:nth-child(14),
.lldd-table th:nth-child(15), .lldd-table td:nth-child(15),
.lldd-table th:nth-child(16), .lldd-table td:nth-child(16){
    width: 3%;
}

/*!INVOICE TABLE*/
.invoice-table {
    position: relative;
}

.invoice-table th, .invoice-table td {
    width: 11.1%;
}

.invoice-table th:nth-child(1), .invoice-table td:nth-child(1),
.invoice-table th:nth-child(5), .invoice-table td:nth-child(5),
.invoice-table th:nth-child(6), .invoice-table td:nth-child(6) {
    width: 3%;
}

.invoice-table th:nth-child(10), .invoice-table td:nth-child(10),
.invoice-table th:nth-child(11), .invoice-table td:nth-child(11),
.invoice-table th:nth-child(12), .invoice-table td:nth-child(12),
.invoice-table th:nth-child(13), .invoice-table td:nth-child(13) {
    width: 6%;
}

/*!CLAIMS TABLE*/
.invoice-table th, .invoice-table td {
    width: 7.85%;
}

.invoice-table th:nth-child(1), .invoice-table td:nth-child(1) {
    width: 3%;
}

.invoice-table th:nth-child(2), .invoice-table td:nth-child(2),
.invoice-table th:nth-child(3), .invoice-table td:nth-child(3),
.invoice-table th:nth-child(4), .invoice-table td:nth-child(4),
.invoice-table th:nth-child(10), .invoice-table td:nth-child(10),
.invoice-table th:nth-child(11), .invoice-table td:nth-child(11),
.invoice-table th:nth-child(12), .invoice-table td:nth-child(12),
.invoice-table th:nth-child(13), .invoice-table td:nth-child(13) {
    width: 6%;
}

/*!MONITORING TABLE*/
.monitoring-table {
    overflow: scroll;
    max-height: 40vh;
}

.monitoring-table td, .monitoring-table th {
    width: 13%;
}

.monitoring-table td:nth-child(1), .monitoring-table th:nth-child(1) {
    width: 4%;
}

.monitoring-table td:nth-child(8), .monitoring-table th:nth-child(8) {
    width: 16%;
}

/*!SUPPORT TABLE*/
.support-table {
    max-width: 100%;
}

.support-table th, .support-table td {
    width: 21%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.support-table th:nth-child(1), .support-table td:nth-child(1),
.support-table th:nth-child(8), .support-table td:nth-child(8) {
    width: 3%;
}

.support-table th:nth-child(4), .support-table td:nth-child(4),
.support-table th:nth-child(6), .support-table td:nth-child(6) {
    width: 5%;
}

/*!BILLING TABLE*/
.billing-table th, .billing-table td {
    width: 5%;
}

.billing-table th:nth-child(1), .billing-table td:nth-child(1) {
    width: 3%;
}

.billing-table th:nth-child(3), .billing-table td:nth-child(3){
    width: 52%;
}

/*!PRESCRIPTION TABLE*/
.prescription-table th, .prescription-table td {
    width: 15%;
}

.prescription-table th:nth-child(1), .prescription-table td:nth-child(1) {
    width: 55%;
}

.timeline-card table {
    width: 100%;
    table-layout: fixed;
}

.timeline-card table th, .timeline-card table td {
    white-space: normal;
    word-break: break-all;
}

/*!CLAIMS TABLE*/
.claims-table th:nth-child(1), .claims-table td:nth-child(1),
.claims-table th:nth-child(5), .claims-table td:nth-child(5),
.claims-table th:nth-child(4), .claims-table td:nth-child(4){
    width: 4%;
}

.claims-table th:nth-child(7), .claims-table td:nth-child(7),
.claims-table th:nth-child(8), .claims-table td:nth-child(8),
.claims-table th:nth-child(9), .claims-table td:nth-child(9),
.claims-table th:nth-child(10), .claims-table td:nth-child(10){
    width: 7%;
}

.claims-table th:nth-child(2), .claims-table td:nth-child(2),
.claims-table th:nth-child(3), .claims-table td:nth-child(3){
    width: 13%;
}

.claims-table th:nth-child(7), .claims-table td:nth-child(7){
    width: 10%;
}

.claims-table th:nth-child(6), .claims-table td:nth-child(6){
    width: 24%;
}
:root {
    --darkGray: #222;
    --tertiary: tomato;
    --tertiary98: #fff8f6;
    --onPrimary: #003256;
    --primary: #9ccaff;
    --text-color: #334155;
    --muted-text: #64748b;

    --white: #FFF;
    --black: #000;

    --secondary: #0B75DF; /*keep as secondar*/
    --secondaryDark: #003d80; /*keep as secondaryDark*/
    --secondaryLight: #16A1FB;

    /* Error Colors */
    --error: #ef4444;
    --onError: #FFFFFF;
    --errorContainer: #fee2e2;
    --onErrorContainer: #991b1b;

    /* Success Colors */
    --success: #10b981;
    --onSuccess: #FFFFFF;
    --successContainer: #d1fae5;
    --onSuccessContainer: #065f46;

    /* Warning Colors */
    --warning: #f59e0b;
    --onWarning: #FFFFFF;
    --warningContainer: #fef3c7;
    --onWarningContainer: #92400e;

    /* Info Colors */
    --info: #0B75DF;
    --onInfo: #FFFFFF;
    --infoContainer: #dbeafe;
    --onInfoContainer: #1e40af;

    --pill-width-effective: calc(80px + 15px + 15px);
    --axis-offset: calc(var(--pill-width-effective) + 15px);
    --dot-size: 8px;
    --line-width: 2px;
    --dot-center-vertical-offset: 18px;
    --line-start-vertical-offset: calc(var(--dot-center-vertical-offset) + var(--dot-size) / 2);
}

body {
    background-color: var(--background);
    color: var(--onBackground);
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
}

.body1 {
    overflow-y: hidden;
}

* {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    text-decoration: none;
}

.tele-content {
    width: 100vw;
    height: calc(100vh - 60px);
}

/*!HIDE SPINNER IN NUMBER INPUT FIELD*/
input[type=number] {
    -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="file"] {
    position: absolute;
    left: 0;
    opacity: 0;
    top: 0;
    bottom: 0;
    right: 0;
}

textarea:focus, input:focus {
    outline: none;
}

input, button {
    font-family: 'Poppins', sans-serif;
    border: none;
}

button:hover, img:hover, a:hover {
    cursor: pointer;
}

textarea {
    resize: vertical;
}

img {
    outline: none;
    border: none;
}

.dp {
    margin-left: 8px;
    border-radius: 50%;
}

/*.header-actions {
    color: var(--onHighlight);
    cursor: pointer;
    margin: 0 8px;
}

.header-actions:hover {
    color: var(--tertiary);
}*/

.header-group-right {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.header-group-right span {
    color: var(--onHighlight);
    cursor: pointer;
    margin: 0 8px;
}

.header-group-right span:hover {
    color: var(--secondary);
}

/*!TODO - CONSOLIDATE
    TITLE, SUBTITLE, PROFILE-SECTION0TITLE-SUBTITLE TEST, INFO-TITLE,
    TEST-SECTION-TITLE, CATEGORY-TITLE*/

.title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    padding: 0.75rem 1rem 0.5rem 1rem;
    border-left: 3px solid #3b82f6;
    margin: 0.5rem;
}

.title:hover {
    cursor: pointer;
    background-color: var(--highlight);
    color: var(--onPrimaryContainer);
}

.subtitle {
    font-size: 0.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    padding: 0.55rem 0.75rem 0.25rem 0.75rem;
    border-left: 3px solid #3b82f6;
    margin: 0.5rem;
}

.subtitle:hover {
    cursor: pointer;
    background-color: var(--highlight);
    color: var(--onPrimaryContainer);
}

.singleline, .consultation-div .small-font {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

/*!COMMON FLEX CONFIGS*/
.flexwrap {
    flex-wrap: wrap;
}

.flexrow {
    display: flex;
    flex-direction: row;
}

.frvc {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.flexrowreverse {
    display: flex;
    flex-direction: row-reverse;
}

.flexcolumn {
    display: flex;
    flex-direction: column;
}

.horizontalcenter {
    justify-content: center;
}

.verticalcenter {
    align-items: center;
}

.vhcenter/*, .fab*/ {
    justify-content: center;
    align-items: center;
}

.spacebetween {
    justify-content: space-between;
    width: 100%;
}

.sb {
    align-content: space-between;
    width: 100%;
}

.frspvc {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.flexstart {
    align-self: flex-start;
}

.flexend {
    justify-content: flex-end;
}

.circular {
    border-radius: 50%;
    padding: 5px;
}

.dynamic {
    display: flex;
    flex-wrap: wrap;
    overflow-y: auto;
}

.dynamic2 {
    display: flex;
    flex-wrap: wrap;
}

.disclaimer {
    font-weight: bold;
    font-size: 12px;
    font-style: italic;
}

.column-index {
    min-width: 48px;
}

.column-detail {
    min-width: calc((100% - 48px) / 8);
}

/*!snackbar*/
#snackbar {
    visibility: hidden;
    min-width: 250px;
    max-width: 40vw;
    background-color: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 16px;
    position: fixed;
    z-index: 7;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 30px;
    border-radius: 48px;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 2.5s;
    animation: fadein 0.5s, fadeout 2.5s;
}

/*!FAB*/
.fab-group {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    font-size: 24px;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.fab-primary {
    background: var(--primary);
    color: var(--onPrimary);
}

.fab-primary:hover .material-symbols-rounded {
    color: var(--white);
}

.fab-secondary {
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.fab-primary:hover {
    background: var(--secondaryDark);
}

.fab-secondary:hover {
    background: var(--infoContainer);
}

.fab-label {
    position: absolute;
    right: 66px;
    background: var(--surface);
    color: var(--textColor);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.fab:hover .fab-label {
    opacity: 1;
}

.fab-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}
/*.fab {
    border-radius: 50px;
    background: linear-gradient(145deg, #00365c, #002d4d);
    position: fixed;
    bottom: 48px;
    right: 48px;
    z-index: 7;
    padding: 12px;
    color: var(--primary);
}

.fab:hover {
    cursor: pointer;
    transition: 300ms ease-in-out;
}*/

/*!BUTTONS*/
.icon-button  {
    border-radius: 50%;

}

/*!CARD*/
.card-color {
    transition: 0.3s;
    padding: 4px;
    border-radius: 4px;
    background-color: var(--background);
    color: var(--onBackground);
    cursor: pointer;
    margin: 1px;
    font-size: 12px;
}

.card-primary {
    transition: 0.3s;
    padding: 4px;
    border-radius: 4px;
    background-color: var(--primaryContainer);
    color: var(--onPrimaryContainer);
    cursor: pointer;
    margin: 1px;
    font-size: 12px;
}

.card:hover {
    box-shadow: 0 4px 8px 0 var(--primary);
}

.card-light {
    transition: 0.3s;
    padding: 8px;
    border-radius: 8px;
    background-color: var(--surface);
    cursor: pointer;
    width: 150px;
    margin: 1px;
}

.card-light:hover {
    box-shadow: 0 4px 8px 0 var(--highlight);
}

.card-basic {
    transition: 0.3s;
    background-color: var(--background);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.12);
    margin-bottom: 12px;
}

.card-basic h4, .card-basic h5, .card-basic h6 {
    margin-left: 10px;
}

.card-input-wide textarea {
    resize: both;
}

.card-input, .card-input-wide  {
    background: linear-gradient(145deg, var(--dbcard), var(--primaryContainer));
    border-radius: 12px;
    color: var(--onPrimaryContainer);
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    border: 1px solid var(--highlight);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.card-input-group {
    display: flex;
    flex-wrap: wrap;
}

.card-input-group ul {
    width: 100%;
    max-height: 40vw;
}

.card-input::before, .card-input-wide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary), var(--primary));
    border-radius: 12px 0 0 12px;
}

.card-input:hover, .card-input-wide:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

/* Input Fields */
.card-input input,
.card-input select,
.card-input textarea,
.card-input .input-select label,
.card-input .custom-select__trigger,
.card-input button,
.card-input-wide textarea,
header select {
    border: 2px solid var(--highlight);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--onPrimaryContainer);
    border-radius: 24px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 1px;
    width: 100%;
    box-sizing: border-box;
}

.card-input .input-select {
    position: relative;
}

.card-input .input-select label {
    position: absolute;
    left: 0;
    right: 0;
}

.card-input textarea, .card-input-wide textarea{
    min-height: 260px;
}

.card-input input:focus,
.card-input select:focus,
.card-input textarea:focus,
.card-input-wide textarea:focus{
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 74, 123, 201), 0.15);
    background-color: var(--highlight);
}

/* Labels */
.card-input .small-font, .card-input-wide .small-font {
    font-size: 12px;
    font-weight: 600;
    color: var(--onPrimaryContainer);
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.card-input .small-font::before,.card-input-wide .small-font::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    display: inline-block;
}

.card-input.status-success .small-font::before,
.card-input-wide.status-success .small-font::before {
    background: var(--success);
}

.card-input.status-warning .small-font::before,
.card-input-wide.status-warning .small-font::before {
    background: var(--warning);
}

.card-input.status-critical .small-font::before,
.card-input-wide.status-critical .small-font::before {
    background: var(--warning);
}

.card-input.status-error .small-font::before,
.card-input-wide.status-error .small-font::before {
    background: var(--error);
}

.card-input.status-info .small-font::before,
.card-input-wide.status-info .small-font::before {
    background: var(--info);
}

.card-input.status-crisis .small-font::before,
.card-input-wide.status-crisis .small-font::before {
    background: var(--muted-text);
}

.card-input .required.small-font::before,.card-input-wide .required .small-font::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--error);
    border-radius: 50%;
    display: inline-block;
}

/* For read-only patient info */
.card-input .medium-font.bold, .card-input-wide .medium-font.bold {
    font-size: 15px;
    font-weight: 600;
    color: var(--onPrimaryContainer);
    padding: 10px 0;
    min-height: 22px;
    border-bottom: 1px solid rgba(var(--onPrimaryContainer-rgb, 255, 255, 255), 0.1);
}
/*!CARDS ENDS*/
.image-selectors {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin: 10px 20px;
    border-radius: 8px;
}

.image-selectors img {
    background-color: var(--primaryContainer);
}

.image-selectors label {
    position: relative;
}

.squircle-image {
    border-radius: 8px;
    height: 50px;
    width: 50px;
}

.activecard {
    box-shadow: 0 4px 8px 0 var(--primaryContainer);
}

.activecard:hover {
    box-shadow: 0 8px 16px 0 var(--primaryContainer);
}

.agreement {
    padding: 0 20px;
    margin-top: 20px;
}

.agreement a {
    color: var(--onHighlight);
    font-weight: 700;
}

.agreement input {
    margin-right: 10px;
}

.centered {
    text-align: center;
}

/*!TEXT FIELDS*/
/*!TODO - REPLACE WITH CARD-INPUT*/
.text-field, .text-field-half, .text-field-double {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border-top-left-radius: 6px;
    background-color: var(--tfbg);
    border: 1px solid var(--primary);
    margin-top: 10px;
}

.text-field input, .text-field textarea, .text-field-double textarea {
    padding: 5px 10px;
    color: var(--onHighlight);
    background-color: transparent;
    width: 100%;
    font-size: 14px;
    font-weight: 400;
}

.text-field textarea, .text-field-double textarea {
    border: none;
}

.text-field-half input {
    padding: 5px 10px;
    color: var(--onHighlight);
    background-color: transparent;
    width: 50%;
    font-size: 15px;
    font-weight: 400;
}

.text-field span, .text-field-half span, .text-field-double span {
    margin-left: 10px;
    font-size: 12px;
    background-color: transparent;
    opacity: 1;
}

/*!DROP DOWN MENU*/
/*!REPLACE WITH NATIVE SELECT*/
.fields {
    padding-right: 10px;
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
    border-radius: 3px;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px;
    color: var(--onPrimaryContainer);
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    transition: all 0.5s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9999 !important;
    max-height: 117px;
    overflow-y: auto;
    border: 1px solid var(--primary);
    border-radius: 3px;
}

.card-input,
.custom-select-wrapper,
.custom-select{
    overflow: visible !important;
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.custom-option {
    position: relative;
    display: block;
    padding: 10px;
    cursor: pointer;
    transition: all 0.5s;
    font-size: 12px;
    font-weight: 400;
    color: var(--onPrimaryContainer);
}

.custom-option:hover {
    cursor: pointer;
    background-color: var(--highlight);
    color: var(--onPrimaryContainer);
}

.custom-option.selected {
    color: var(--onPrimaryContainer);
    background-color: var(--primaryContainer);
}

.arrow {
    position: relative;
    height: 15px;
    width: 15px;
}

header .text-field {
    margin-right: 20px;
    margin-top: 0;
}

header .arrow {
    margin-left: 20px;
}

.header .pill {
    margin: 0 2px;
}

.arrow::before, .arrow::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 0.15rem;
    height: 100%;
    transition: all 0.5s;
}

.arrow::before {
    left: -5px;
    transform: rotate(45deg);
    background-color: var(--onPrimaryContainer);
}

.arrow::after {
    left: 5px;
    transform: rotate(-45deg);
    background-color: var(--onPrimaryContainer);
}

.open .arrow::before {
    left: -5px;
    transform: rotate(-45deg);
}

.open .arrow::after {
    left: 5px;
    transform: rotate(45deg);
}

/*!SYMPTOMS*/
.symptom-list {
    height: 112px;
    overflow-y: auto;
    direction: rtl;
}

.symptom-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surfaceVariant);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    direction: ltr;
}

.symptom-item:hover {
    background: var(--surface);
    border-color: var(--outline);
}

.symptom-item.checked {
    background: var(--infoContainer);
    border-color: var(--primary);
}

.symptom-item input[type="checkbox"] {
    display: none;
}

.symptom-item .check-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--outline);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.symptom-item.checked .check-box {
    background: var(--secondaryLight);
    border-color: var(--secondaryLight);
}

.symptom-item .check-box .material-symbols-rounded {
    font-size: 14px;
    color: var(--white);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
}

.symptom-item.checked .check-box .material-symbols-rounded {
    opacity: 1;
    transform: scale(1);
}

.symptom-item .symptom-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--textColor);
    user-select: none;
}

/*!SELECT CLASS*/
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 4px 24px 4px 10px;
    font-size: 12px;
    font-weight: 400;
    color: var(--onPrimaryContainer);
    background: transparent;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

select:hover {
    background-color: var(--highlight);
}

select:focus {
    outline: none;
}

select option {
    background: var(--background);
    color: var(--onPrimaryContainer);
    padding: 10px;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
}

select option:checked {
    background: var(--primary);
    color: var(--onPrimary);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23334155%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%276 9 12 15 18 9%27%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

/* For Firefox */
@-moz-document url-prefix() {
    select {
        padding: 4px 24px 4px 10px;
    }
}

/* For IE */
select::-ms-expand {
    display: none;
}

/* Disabled state */
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/*!ANIMATION*/
@keyframes tilt-shaking {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

/*!HEADER*/
.header {
    padding: 10px 20px;
    height: 60px;
    color: var(--darkGray);
    box-shadow: 1px 4px 4px 0 var(--highlight);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.index-header {
    padding: 10px 20px;
}

header img {
    margin-right: 10px;
}

header .borderless {
    margin-right: 10px;
}

header h1 {
    color: var(--primaryContainer);
}

header select {
    width: fit-content;
    max-width: fit-content;
}

.navigation a {
    color: var(--onHighlight);
    padding: 4px 8px;
    font-size: 3vh;
    opacity: 0.7;
}

.navigation a:hover {
    text-decoration: underline;
    text-underline-offset: 10px;
    opacity: 1;
}

/*!BUTTONS*/
/*!TEXT NAVIGATION BUTTON*/
.button-animate {
    padding: 14px 24px;
    border: unset;
    border-radius: 15px;
    color: #212121;
    z-index: 1;
    background: var(--primary);
    position: relative;
    font-weight: 1000;
    font-size: 15px;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    transition: all 250ms;
    overflow: hidden;
    margin: 12px 0 16px 12px;
    min-width: 200px;
    min-height: 50px;
}

.button-animate::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 15px;
    background-color: var(--secondary);
    z-index: -1;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    transition: all 250ms
}

.button-animate:hover {
    color: #ffffff;
}

.button-animate:hover::before {
    width: 100%;
}

/*!BUTTON PILL*/
.button-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.116);
    background-color: var(--secondaryLight);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    padding: 8px 12px;
    transition-duration: .5s;
    align-self: center;
}

.button-pill:hover {
    background-color: var(--secondaryLight);
    transition-duration: .5s;
}

.button-pill .icon {
    font-size: 20px;
    transition-duration: 1.5s;
}

.button-pill:hover .icon {
    transform: rotate(250deg);
    transition-duration: 1.5s;
}

/*!CONSULT CARD*/
/*!TODO REPLACE WITH CARD-INPUT*/
.pill, .pill2, .consult-card input, .consult-search input, .consult-card-full input,
.consult-card-history input, .consult-group, .consult-card-full-row input, .vital-card input {
    border: 1px solid var(--highlight);
    background-color: var(--highlight);
    color: var(--onHighlight);
    border-radius: 32px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.consult-card-wide textarea {
    border: 1px solid var(--highlight);
    background-color: var(--highlight);
    color: var(--onHighlight);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    min-height: 50px;
}

.support-tier {
    border-radius: 100px;
    padding: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 200px;
    text-align: center;
    margin: 16px 0;
}

.consult-group input {
    margin-bottom: 5px;
}

.bc-class span {
    margin-top: 10px;
    margin-right: 5px;
}

.square-pill {
    background-color: var(--highlight);
    color: var(--onHighlight);
    border-radius: 4px;
    padding: 2px;
    margin-top: 2px;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    margin-right: 2px;
}

/*!TODO REMOVE*/
.squircle-pill {
    border: 1px solid rgb(33 150 243);
    padding: 5px 10px;
    font-size: 9px;
    font-weight: 600;
    margin-right: 5px;
    border-radius: 4px;
    margin-top: 1px;
}

.squircle-pill:hover {
    background-color: rgb(33 150 243);
    color: white;
    cursor: pointer;
}

.pill a {
    color: var(--onHighlight);
}

.pill:hover, .pill2:hover {
    background-color: transparent;
    border-color: var(--primary);
}

.pill-div {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: var(--primary);
    color: var(--onHighlight);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 18px;
}

.pill-div a:hover {
    cursor: pointer;
}

.image-button {
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--highlight);
    border-radius: 8px;
    border: 2px solid var(--highlight);
    margin: 5px 2px 2px 2px;
}

.image-button:hover, .icon-button:hover {
    cursor: pointer;
    background-color: transparent;
    border-color: var(--onInfoContainer);
    transition: 0.3s;
}

.icon-button {
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 5px;
    background: var(--infoContainer);
    color: var(--onInfoContainer);
    border: 1px solid transparent;
}

.icon-button:hover {
    color: var(--onInfoContainer);
}

.wide {
    width: 80%;
    margin-left: 10%;
    margin-top: 20px;
}

.border {
    border: 1px solid ;
}

.borderless {
    background-color: transparent;
    border: 1px solid transparent;
    color: var(--onHighlight);
    border-radius: 16px;
    padding: 5px 10px;
}

.borderless:hover {
    background-color: var(--highlight);
    border-color: var(--primary);
}

.google {
    border-radius: 16px;
    padding: 5px;
    font-weight: 700;
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: var(--background);
    border: 1px solid transparent;
}

/*!MENU*/
.menu {
    height: calc(100vh - 60px);
    box-shadow: 1px 4px 4px 0 var(--highlight);
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-home {
    width: 180px;
}

.menu ul li {
    display: flex;
    flex-direction: row;
    padding: 5px 10px;
}

.menu ul li img {
    margin-right: 10px;
}
.menu ul li.active, .menu ul li:hover {
    color: var(--onHighlight);
    border-top-right-radius: 8px;
    cursor: pointer;
}

.menu ul li.active {
    background-color: var(--highlight);
}

.menu ul li:hover {
    background-color: var(--primary98);
}

/*CONTENT*/
.content {
    height: 100vh;
    width: 100vw;
}

.contents {
    height: calc(100vh - 60px);
    overflow-y: auto;
    width: calc(100vw - 180px);
}

.contents section {
    overflow-y: scroll;
}

.content-div {
    width: 100%;
    height: 100%;
    padding: 10px;
}

.generic-div {
    padding: 4px;
    height: 100%;
    width: 100%;
    overflow-y: auto;
}

.consultation-div {
    padding: 24px 48px;
}

.consultation-body {
    overflow-y: hidden;
    position: relative;
}

.consultation {
    height: calc(100vh - 60px);
    width: 100vw;
    padding: 24px 48px;
    overflow-y: auto;
}
.consultation .card4 {
    margin-bottom: 16px;
}

.tooth-parent:hover {
    fill: tomato;
}

.teeth-inputs {
    width: calc(100% - 290px);
    display: flex;
    flex-wrap: wrap;
}

.tooth-key {
    margin-top: 20px;
    padding: 16px;
    background: var(--surfaceVariant);
    border-radius: 12px;
    border: 1px solid var(--outline);
}

.key-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 8px;
}

.key-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.key-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.key-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--textColor);
}

/*.key-color {*/
/*    width: 18px;*/
/*    height: 18px;*/
/*    border-radius: 4px;*/
/*    border: 1px solid var(--outline);*/
/*    flex-shrink: 0;*/
/*}*/

/* Tooth State Colors */
.state-missing { background: #64748b; }
.state-filling { background: #3b82f6; }
.state-crown { background: #f59e0b; }
.state-rootcanal { background: #8b5cf6; }
.state-implant { background: #10b981; }
.state-decay { background: #ef4444; }

/* Tooth Wear Colors */
.wear-at { background: #fcd34d; }
.wear-ab { background: #f97316; }
.wear-er { background: #ec4899; }

.key-color {
    width: 30px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--outline);
    flex-shrink: 0;
}

/* Tooth Wear - Stroke dash pattern previews */
.key-stroke-dash {
    background: transparent !important;
    height: 18px;
    width: 30px;
    border-radius: 4px;
}

.key-stroke-dash.wear-at {
    border: 3px double #fcd34d;
}

.key-stroke-dash.wear-ab {
    border: 1px dotted #f97316;
}

.key-stroke-dash.wear-er {
    border-spacing: 2px 4px;
    border: 1px dashed #ec4899;
}

/* Pulp Status Colors */
.pulp-reversible { background: #34d399; }
.pulp-irreversible { background: #f87171; }

.vaccination-container {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: calc(100vh - 60px);
}

.vaccination-left {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 6px;
    overflow-y: auto;
    overflow-x: hidden;
}

.vaccination-right {
    width: calc(100% - 220px);
    padding: 12px 6px;
    overflow-y: auto;
}

.button-vertical-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--secondary);
    color: var(--onSecondary);
    padding: 8px;
    border-radius: 64px;
    position: absolute;
    cursor: pointer;
    right: 24px;
    top: 100px;
    border: 3px solid transparent;
}

.button-vertical-group:hover {
    cursor: pointer;
    transition: 0.6s;
}

.button-vertical-group button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
    width: 48px;
    height: 48px;
    padding: 2px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--dbcard), var(--primaryContainer));
    position: relative;
    overflow: visible;
    color: var(--onPrimaryContainer);
}

.button-vertical-group button:hover {
    background-color: var(--secondaryDark);
    color: var(--secondary);
}

/* Add title that appears on hover */
.button-vertical-group button::before {
    content: attr(data-title);
    position: absolute;
    right: 100%;
    margin-right: 12px;
    white-space: nowrap;
    background-color: var(--secondary);
    color: var(--white);
    padding: 10px 12px;
    border-radius: 48px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.button-vertical-group button::after {
    content: '';
    position: absolute;
    right: 100%;
    margin-right: 2px;
    border: 5px solid transparent;
    border-left-color: var(--secondaryDark);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
    pointer-events: none;
}

.button-vertical-group button:hover::before,
.button-vertical-group button:hover::after {
    opacity: 1;
    visibility: visible;
}

.facilities {
    max-height: calc(100vh - 120px);
    padding: 50px 9%;
}

.facilities h2, .auth h2, .whyus h2, .pricing h2 {
    margin-bottom: 20px;
    text-align: center;
}

.add-facilities {
    width: 100%;
    padding: 10px 50px;
    z-index: 10;
}

.add-facilities h2, .add-facilities h3, .add-facilities h4 {
    margin-left: 15px;
}

.add-facilities .pill {
    align-self: end;
    width: 10vw;
    margin-top: 20px;
}

.consult-card span, .consult-card-wide span, .consult-card-history span, .consult-card-days span, .vital-card span {
    font-size: 12px;
}

.facilities-name  {
    padding: 30px 20px;
    text-align: center;
    background-color: var(--onPrimaryContainer);
    color: var(--primaryContainer);
}

.facilities-bold {
    font-weight: 700;
    font-size: 1.2em;
    line-height: 1.5;
}

.schemes {
    padding: 10px 20px 50px 10px;
}

.schemes label {
    margin-right: 20px;
}

/*!FONT SIZES*/
.smallest-font {
    font-size: 0.6rem;
}

.small-font {
    font-size: 0.8rem;
}

.medium-font {
    font-size: 1rem;
}

.large-font {
    font-size: 1.2rem;
}

.larger-font {
    font-size: 2.4rem;
}

.largest-font, .quote {
    font-size: 5rem;
}

.bold {
    font-weight: 700;
}

.max80 {
    max-width: 80%;
}

.actions span:hover {
    cursor: pointer;
    color: var(--primaryContainer);
}

/*CALENDAR*/
.calendar-div {
    width: 100%;
    height: 100%;
    overflow-y: hidden;
}

.calendar, .appointments {
    padding: 0 10px;
}

.appointments {
    overflow: hidden;
}

.appointments-manager {
    height: calc(100vh - 137px);
    overflow: hidden;
}

.appointments-manager ul {
    height: 100%;
    overflow-y: auto;
}

.calendar-item {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid transparent;
    position: relative;
}

.appointment-number {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--primaryContainer);
    color: var(--onPrimaryContainer);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 12px;
    text-align: center;
    font-weight: 500;
}

.calendar-item h3 {
    font-size: 200%;
}

.calendar-container {
    gap: 12px;
    padding: 12px;
    display: flex;
    flex-direction: row;
    height: calc(100vh - 84px);
    width: 100vw;
}

.calendar-page-left {
    width: 70vw;
    height: 100%;
    overflow-y: auto;
}

.calendar-page-right {
    width: 30vw;
    height: 100%;
    overflow-y: auto;
}

/*INDEX EXCLUSIVE*/
.content-index {
    overflow-y: scroll;
}
/*ABOUT*/
.about {
    color: var(--onHighlight);
    text-align: center;
}

.about-background {
    height: calc(100vh - 120px);
    margin-top: calc(120px - 100vh);
    background-image: url(238917dcf440c1fd88cf.svg);
    background-repeat: no-repeat;
    background-position: 50% 85%, 50% 50%, bottom center;
    opacity: 0.1;
}

.whyus {
    background-color: var(--onHighlight);
    color: var(--primary);
}

.listed {
    background-color: #000;
}

.why h2 {
    font-size: 9vh;
    margin-bottom: 20px;
}

.whyus li {
    background-color: var(--primaryContainer);
    padding: 50px;
    display: flex;
}

.whyus span {
    background-color: var(--onPrimaryContainer);
    color: var(--primaryContainer);
    text-align: center;
    padding: 25px;
    font-weight: 700;
    width: 100%;
}

.pricing {
    background-color: var(--black);
}

.pricing h2 {
    color: var(--background);
}

.tier {
    border-radius: 16px;
    padding: 20px;
}

.tier:hover {
    animation: tilt-shaking 0.15s 100ms;
    cursor: pointer;
}

.tier hr {
    opacity: 0.2;
    margin: 20px;
}

.tier button {
    border-radius: 24px;
    font-weight: 700;
    color: var(--black);
    padding: 10px 0;
    margin-top: 25px;
}

.feature {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.feature p {
    margin-left: 15px;
}

.free {
    background-color: var(--background);
    color: var(--black);
}

.paid {
    background-color: var(--onPrimaryContainer);
    color: var(--primaryContainer);
}

.free button {
    background-color: var(--onPrimaryContainer);
    color: var(--primaryContainer);
}

.paid button {
    background-color: var(--black);
    color: var(--background);
}

.price {
    font-size: 6vh;
    font-weight: 700;
}

/*booking*/
.book {
    width: 20%;
    margin-right: 10px;
    padding: 50px 9%;
    background-color: var(--primaryContainer);
}

.book h2 {
    font-size: 9vh;
    margin-bottom: 20px;
    text-align: center;
    color: var(--background);
}

.auth {
    background-color: var(--highlight);
}

.auth .text-field {
    margin: 2px;
}

.auth .borderless {
    background-color: var(--background);
}

.auth .pill {
    border: 1px solid var(--primaryContainer);
}

.auth button {
    min-width: 200px;
    max-width: 200px;
}

/*CHILDREN*/
.children-div {
    height: calc(100vh - 60px);
}

.children {
    width: 300px;
    padding: 0 10px;
}

.children ul {
    height: 100%;
    padding: 5px;
}

.children ul li {
    align-self: flex-start;
}

.children button {
    margin-top: 10px;
}

.children-content {
    width: calc(100vw - 500px);
}

.vaccination {
    height: 100%;
    overflow-y: scroll;
}

.schedule-left {
    width: 55%;
    font-size: 0.625rem;
    padding: 1px 5px;
    border-right: 1px solid black;
}

.schedule-right {
    width: 45%;
    font-size: 0.625rem;
    padding: 1px 5px;
}

.schedule-right input {
    font-size: 0.625rem;
}

.schedule-right .tt {
    width: 16.7%;
    border-right: 1px solid black;
}

.separator {
    background-color: var(--secondary);
    margin: 5px 3px;
    border-radius: 4px;
}

.vac-interval {
    width: 15%;
}

.vac-vaccine {
    width: 25%;
}

.vac-1dose {
    width: 20%;
}

.vac-2dose {
    width: 20%;
}

.vac-3dose {
    width: 20%;
}

.no-dose {
    background-color: #999;
}

.unread {
    background-color: #ff8080;
    padding: 5px;
    border-radius: 50%;
}

.account-update button {
    margin: 10px;
}

.profile-div.logo input {
    max-width: 130px;
}

.logo {
    position: relative;
}

.account-dashboard .group {
    padding-top: 5px;
}

.account-dashboard span {
    font-size: 16px;
    margin-left: 10px;
}

.profile-div ul li, .dashboard-card, .consult-card, .consult-search, .consult-card-history, .consult-card-days, .vital-card {
    background-color: var(--dbcard);
    border-radius: 3px;
    color: var(--onPrimaryContainer);
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
}

.consult-card-wide, .consult-card-history-wide {
    background-color: var(--primaryContainer);
    border-radius: 3px;
    color: var(--onPrimaryContainer);
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
}

.consult-card-full, .consult-card-full-row {
    background-color: var(--primaryContainer);
    border-radius: 3px;
    color: var(--onPrimaryContainer);
    display: flex;
    padding: 10px 15px;
    margin: 10px 10px 0 10px;
}

.consult-card-full {
    flex-direction: column;
}

.consult-card-full-row input {
    width: 100%;
}

.consult-card-full .material-symbols-rounded {
    color: var(--secondary);
}

.dashboard-card p {
    font-size: 22px;
}

.patients-div {
    overflow-y: auto;
}

.patients-div .dashboard-card {
    position: relative;
}

.dashboard-card input {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
}

/*PERSONNEL*/
.personnel-div {
    padding: 10px;
    width: 100%;
    height: 100%;
}

.personnel-div img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 1px solid var(--onHighlight);
    align-self: center;
    z-index: 2;
}

.personnel-list ul {
    max-height: calc(100% - 61px);
    padding: 10px 0;
}

.personnel-name  {
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--onPrimaryContainer);
    color: var(--primaryContainer);
    margin-top: -10px ;
}

.add-personnel {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    border-radius: 16px 0 0 0;
}

.add-personnel button {
    margin: 10px;
    padding: 5px 10px;

}

.add-personnel .text-field {
    width: 100%;
}

.personnel-list .text-field {
    width: 30%;
}

.margin-10 {
    margin-top: 10px;
}

.material-symbols-rounded:hover {
    cursor: pointer;
}

/*!APPOINTMENTS*/
.appointments {
    height: 100%;
    overflow-y: auto;
}

.appointments-set, .prescription-set {
    height: calc(100vh - 60px);
    overflow-y: auto;
    background-color: var(--background);
    box-shadow: 0 4px 8px 0 var(--surface);
    border-top-left-radius: 16px;
    padding: 20px;
}

.appointments-set button, .prescription-set button {
    margin: 20px;
}

.appointments-set-facility {
    overflow-y: auto;
    height: 100%;
    gap: 4px;
    padding: 0 24px;
}

.appointments-div, .prescriptions-div {
    width: calc(100vw - 180px);

}

.appointment-actions {
    gap: 10px;
}

/*.appointment-item span {
    margin-right: 10px;
}*/

.appointment-item a {
    color: var(--primary);
}

.appointment-item div {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.highlight-name {
    padding: 3px 7px;
    background-color: var(--onPrimaryContainer);
    color: var(--primaryContainer);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin: -7px -7px 5px -7px;
    font-weight: 700;
}

.headers {
    width: 100%;
}

.headers li, .schedule ul {
    flex: 0 0 14.286%;
    margin: 4px;
    max-width: calc(14.286% - 10px);
    font-size: 12px;
    font-weight: 500;
    padding: 5px;
    text-align: center;
}

.headers li {
    background-color: var(--primary);
    color: var(--onHighlight);
}

.map {
    width: 100%;
    height: calc(100vh - 60px);
}

.inputfile {
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.call-action {
    color: var(--onHighlight);
    font-size: 12px;
}

.inputfile + label {
    font-size: 1.25em;
    font-weight: 700;
    color: white;
    background-color: var(--primary98);
    display: flex;
}

.inputfile:focus + label,
.inputfile + label:hover {
    background-color: var(--primary98);
}

.prescription, .list, .tests {
    width: 20%;
    max-width: 300px;
    margin: 5px 10px;
}

/*!HISTORY*/
.history {
    height: calc(100vh - 60px);
    width: 100%;
    display: flex;
    flex-direction: row;
    overflow-y: hidden;
}

/*!HISTORY - PATIENT DETAILS*/
.patient-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 280px;
    overflow: hidden;
    margin: 20px;
    border: 1px solid #e0e0e0;
}

.card-header {
    background-color: #007bff; /* A nice blue for the header */
    color: white;
    padding: 18px 25px;
    text-align: center;
    border-bottom: 1px solid #0056b3;
}

.card-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
    align-items: baseline;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    font-weight: 600;
    color: #333333;
    flex-basis: 35%; /* Adjust as needed */
    margin-right: 15px;
    font-size: 0.95em;
}

.info-item .value {
    color: #555555;
    flex-basis: 65%; /* Adjust as needed */
    text-align: right;
    font-size: 0.95em;
    line-height: 1.4;
}

/*!HISTORY - PATIENT HISTORY*/
.patient-history {
    width: calc(65vw - 280px);
    overflow-y: scroll;
    padding: 24px 0;
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    display: flex;
    position: relative;
    margin-bottom: 40px;
    align-items: flex-start;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: var(--axis-offset);
    transform: translateX(-50%);
    width: var(--line-width);
    background-color: #ddd;
    z-index: 0;
    top: var(--line-start-vertical-offset);
    height: calc(100% - var(--line-start-vertical-offset) + 40px + var(--dot-center-vertical-offset) - (var(--dot-size) / 2));
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: var(--axis-offset);
    top: var(--dot-center-vertical-offset);
    transform: translate(-50%, -50%);
    width: var(--dot-size);
    height: var(--dot-size);
    background-color: #007bff;
    border: 1px solid #0056b3;
    border-radius: 50%;
    z-index: 1;
}

.timeline-pill {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.75em;
    width: 106px;
    text-align: center;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    margin-right: 15px;
    flex-shrink: 0;
}

.timeline-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 12px;
    margin-left: calc(var(--dot-size) / 2 + 15px);
    flex-grow: 1;
    border: 1px solid #e0e0e0;
}

.timeline-card h3 {
    margin-top: 0;
    color: #007bff;
    margin-bottom: 10px;
    font-size: 1em;
}

.timeline-card p {
    margin-bottom: 0;
    color: #666;
}

.timeline-card-details {
    font-weight: bold;
    padding: 12px 3px;
}

.timeline-card-details span {
    font-size: 0.6rem;
}

.timeline-card-details p {
    font-size: 0.8rem;
}

.history-vital {
    font-size: 12px;
    padding: 4px 8px;
    margin-right: 4px;
    border-radius: 12px;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    :root {
        --pill-width-effective: calc(70px + 12px + 12px);
        --axis-offset: calc(var(--pill-width-effective) + 15px);
        --dot-center-vertical-offset: 16px;
        --line-start-vertical-offset: calc(var(--dot-center-vertical-offset) + var(--dot-size) / 2);
    }
    h1 {
        font-size: 2em;
    }
    .timeline-item::before {
        left: var(--axis-offset);
        top: var(--line-start-vertical-offset);
        height: calc(100% - var(--line-start-vertical-offset) + 40px + var(--dot-center-vertical-offset) - (var(--dot-size) / 2));
    }
    .timeline-item::after {
        left: var(--axis-offset);
        top: var(--dot-center-vertical-offset);
    }
    .timeline-pill {
        padding: 6px 12px;
        font-size: 0.85em;
        min-width: 70px;
    }
    .timeline-card {
        margin-left: calc(var(--dot-size) / 2 + 15px);
        padding: 20px;
    }
    .timeline-card h3 {
        font-size: 1.2em;
    }
    .timeline-card p {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    :root {
        --pill-width-effective: calc(60px + 10px + 10px);
        --axis-offset: calc(var(--pill-width-effective) + 10px);
        --dot-center-vertical-offset: 14px;
        --line-start-vertical-offset: calc(var(--dot-center-vertical-offset) + var(--dot-size) / 2);
    }
    body {
        padding: 10px;
    }
    h1 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .timeline-item::before {
        left: var(--axis-offset);
        top: var(--line-start-vertical-offset);
        height: calc(100% - var(--line-start-vertical-offset) + 40px + var(--dot-center-vertical-offset) - (var(--dot-size) / 2));
    }
    .timeline-item::after {
        left: var(--axis-offset);
        top: var(--dot-center-vertical-offset);
    }
    .timeline-pill {
        padding: 5px 10px;
        font-size: 0.8em;
        min-width: 60px;
        margin-right: 10px;
    }
    .timeline-card {
        margin-left: calc(var(--dot-size) / 2 + 10px);
        padding: 15px;
    }
    .timeline-card h3 {
        font-size: 1.1em;
    }
    .fab-group {
        bottom: 16px;
        right: 16px;
    }

    .fab {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

.patient-files {
    width: 35vw;
    height: calc(100vh - 60px);
}

.history-list {
    width: 15%;
    height: 100%;
    overflow-y: auto;
}

.history ul {
    width: 100%;
}

.history-view {
    width: 50%;
    height: 100%;
    overflow-y: auto;
}

.history-files {
    width: 35%;
    height: 100%;
    overflow-y: auto;
}

.file-names {
    height: 30px;
}

.file-viewer {
    width: 100%;
    height: calc(100% - 30px);
}

.vitals {
    font-size: 12px;
    color: var(--onPrimaryContainer);
    background-color: rgba(0, 140, 255, 0.082);
    padding: 2px 4px;
}

.diagnosis {
    font-size: 13px;
    padding: 4px 0;
}

.doctor {
    font-size: 12px;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    background-color: rgb(33 150 243);
    color: white;
}

/*!LEARN*/
.tag {
    align-content: flex-start;
    margin-top: 4px;
}

.tags {
    max-width: 65%;
    display: block;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow: hidden;
    max-height: 1.1em;
    line-height: 1.1em;
}

.max-lines {
    display: block;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow: hidden;
    max-height: 3.3em;
    line-height: 1.1em;
}

.one-line {
    display: block;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow: hidden;
    min-height: 1.1em;
    line-height: 1.1em;
}

.two-lines {
    display: block;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow: hidden;
    min-height: 2.2em;
    line-height: 1.1em;
}

.topLeft {
    margin-top: 4px;
    margin-left: 5px;
}

.columnStart {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
}

.patient-info {
    width: 100%;
}

.consult-header {
    margin-left: 30px;
}

.header2 {
    position: relative;
}

.facility-banner {
    position: absolute;
    width: 80vw;
    left: 10vw;
    top: 0;
    border: none;
    object-fit: cover;
}

.facility-logo {
    position: absolute;
    right: 0;
    left: 0;
    margin-left: auto;
    margin-right: auto;
    top: 165px;
    border-radius: 50%;
}

.facility-name {
    position: absolute;
    right: 0;
    left: 0;
    margin-left: auto;
    margin-right: auto;
    top: 50px;
    width: fit-content;
}

.facility-contacts {
    padding: 10px 15%;
    margin-top: 250px;
    background-color: #FFED86;
}

.terms {
    padding: 10px 15%;
    margin-top: 50px;
}

.coloured-background {
    background-color: #e0e0e0;
}

.invoice-body {
    height: 100vh;
    width: 100vw;
    overflow-y: hidden;
}

/*!FORM-BUTTON*/

/*!NEW FILTER SWITCH*/
.filter-switch {
    border: 2px solid var(--secondaryLight);
    border-radius: 30px;
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    background: var(--white);
}

.filter-switch input {
    display: none;
}

.filter-switch label {
    flex: 1;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 30px;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
    color: var(--text-color);
}

.filter-switch .background {
    position: absolute;
    height: 38px;
    background-color: var(--secondaryLight);
    top: 4px;
    left: 4px;
    border-radius: 30px;
    transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.filter-switch input:checked + label {
    color: var(--white);
    font-weight: 700;
}

.filter-switch[data-count="2"] .background {
    width: calc(50% - 4px);
}

.filter-switch[data-count="2"] input:nth-child(1):checked ~ .background { left: 4px; }
.filter-switch[data-count="2"] input:nth-child(3):checked ~ .background { left: 50%; }

.filter-switch[data-count="3"] .background {
    width: calc(33.333% - 4px);
}

.filter-switch[data-count="3"] input:nth-child(1):checked ~ .background { left: 4px; }
.filter-switch[data-count="3"] input:nth-child(3):checked ~ .background { left: 33.333%; }
.filter-switch[data-count="3"] input:nth-child(5):checked ~ .background { left: 66.666%; }

.filter-switch[data-count="4"] .background {
    width: calc(25% - 4px);
}

.filter-switch[data-count="4"] input:nth-child(1):checked ~ .background { left: 4px; }
.filter-switch[data-count="4"] input:nth-child(3):checked ~ .background { left: 25%; }
.filter-switch[data-count="4"] input:nth-child(5):checked ~ .background { left: 50%; }
.filter-switch[data-count="4"] input:nth-child(7):checked ~ .background { left: 75%; }

/* Responsive */
@media (max-width: 480px) {
    .filter-switch {
        height: 40px;
    }
    .filter-switch .background {
        height: 30px;
        top: 3px;
        left: 3px;
    }
    .filter-switch label {
        font-size: 11px;
    }
}

/*!INVOICE V4*/
.invoice-body {
    height: 100vh;
    width: 100vw;
    overflow-y: hidden;
    background-color: var(--surface);
}

.invoice-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.invoice-view {
    background-color: var(--white);
    width: 100vw;
    height: calc(100vh - 60px);
}

.invoice-center {
    background-color: var(--whiteBlack);
    width: calc(100vw - 520px);
    height: calc(100vh - 60px);
    max-width: 210mm;
    padding: 5mm;
    margin: 20px 0;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
}

.invoice-right, .invoice-left {
    width: 250px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 5px;
    overflow-y: auto;
}

.invoice-right .button-pill {
    width: 100%;
}

/*!INVOICE V3*/
.invoice-view {
    background-color: var(--backgroundInvoice);
    width: 100vw;
    height: calc(100vh - 60px);
}

.pdfa4 {
    background-color: var(--whiteBlack);
    width: calc(100vw - 556px);
    height: calc(100vh - 60px);
    max-width: 210mm;
    padding: 25mm;
    margin: 20px 0;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
}

.right-options, .left-options {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: scroll;
}

.right-options .consult-card-full, .left-options .consult-card-full {
    width: 278px;
}

.consult-card-full-row {
    width: 278px;
}

.left-options ul {
    width: 278px;
    max-height: 300px;
}

.left-options button {
    width: 100%;
    background-color: var(--secondary);
    color: white;
    border: none;
    margin-top: 5px;
}

.left-options button:hover {
    background-color: tomato;
    color: whitesmoke;
}

.left-options button.active {
    background-color: tomato;
    color: whitesmoke;
}

.right-align span {
    text-align: right;
}

.report-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
}

.report-footer hr {
    width: 200px;
}

.leave-form input {
    border: 1px solid var(--primary);
    padding: 5px 10px;
    border-radius: 6px;
    width: 175px;
    margin: 1px 0;
}

.leave-bottom {
    align-items: end;
}

.leave-bottom hr {
    width: 200px;
    margin: 10px 0;
    height: 2px;
}

.leave-form h3, .leave-form h2, .prescription-form h3, .prescription-form h2 {
    margin: 20px 0;
}

.stamp {
    width: 100px;
    height: 100px;
    border: 1px solid var(--primary);

}

.personnel-item {
    padding: 20px 15px;
}

.appointment-item hr {
    height: 2px;
}

.patient-page {
    overflow-y: hidden;
    height: calc(100vh - 60px);
}

.patient-page-left {
    width: 15vw;
    margin-right: 10px;
}

.patient-page-right {
    overflow-y: scroll;
    width: 85vw;
}

.patient-page-right h2 {
    padding-left: 20px;
    margin-top: 8px;
}

.patient-page-left a {
    color: var(--secondary);
    font-weight: 700;
}

.patient-page-right .small-font {
    margin-left: 22px;
}

.patient-button {
    width: 200px;
    align-self: end;
    margin-right: 15px;
    margin-top: 24px;;
}

/*PATIENTS CARDS START*/
/*!PATIENTS END*/

/*!CALENDAR*/
.calendar ul {
    padding: 3px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

/*!FOOTER*/
footer {
    padding: 56px;
    color: var(--onBackground);
}

footer hr {
    margin: 36px 0;
}

footer a:hover {
    text-decoration: underline;
}

footer a {
    margin-left: 10px;
    color: var(--onBackground);
}

.help {
    padding: 20px 50px;
}

.help h2 {
    font-weight: 700;
    padding: 10px 0;
}

.account-security button {
    width: 100%;
    margin-top: 10px;
}

.page_404 {
    padding: 40px;
    background: var(--background);
}

.page_404 h2 {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.page_404 img {
    width:100%;
}

.four_zero_four_bg{
    background-image: url(https://cdn.dribbble.com/users/285475/screenshots/2083086/dribbble_1.gif);
    height: 400px;
    background-position: center;
    background-repeat: no-repeat;
}

.four_zero_four_bg h1{
    font-size:80px;
    text-align: center;
}

.four_zero_four_bg h3 {
    font-size:80px;
}

.link_404 {
    color: var(--onPrimaryContainer);
    padding: 10px 20px;
    background: var(--primaryContainer);
    margin: 20px 0;
    display: inline-block;
}

.health-day {
    font-family: 'Rubik Bubbles', sans-serif;
    font-size: 22px;
    margin-right: 20px;
    color: var(--onSurface);
}

.invoice-link:hover {
    cursor: pointer;
    color: var(--tertiary);
    font-weight: 700;
}

.charts {
    width: 100%;
    height: 350px;
    margin-bottom: 10px;
}

.chart, .chart-wide {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart h3 {
    text-align: center;
}

.canvas {
    width: 100%;
    height: calc(100% - 16px);
    padding: 4px 0;
}

.claimed {
    background-color: var(--secondary);
    color: #FFF;
}

.quotedelete {
    background-color: tomato;
    color: #FFF;
}

/*.red {
    background-color: #FDBCB4;
    color: #FF0800;
    border-radius: 8px;
}

.blue {
    background-color: #F0F8FF;
    color: #007FFF;
}*/


.yellow {
    background-color: #FFFDD0;
    color: #FFBF00;
    border-radius: 8px;
}


.center-padding {
    text-align: center;
    padding: 5px 0;
}

.cursor {
    cursor: pointer;
}

.half {
    width: 50%;
}

.latest {
    font-size: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/*!ACCOUNT DIV*/
.account-div h4 {
    padding: 10px;
}

.account-div h5 {
    margin-left: 12px;
}

.invoice-explainer {
    margin-left: 12px;
}

.menu-facility img {
    padding: 2px;
}

/*!SUPPORT*/
.support-div {
    padding: 24px;
}

.support-div .card-light {
    margin: 10px;
    max-width: calc(33.3% - 20px);
}

.support-div .card-light a {
    color: var(--secondary);
    text-decoration: underline;
}

.help-indicator {
    font-weight: bold;
    color: tomato;
}

.support-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.support-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--onSurface);
    margin-bottom: 0.25rem;
}

.support-header p {
    font-size: 14px;
    color: var(--neutral);
}

/* Info card spacing */
.info-card-content {
    margin-top: 0.5rem;
}

.info-line {
    border-bottom: 1px solid var(--outline);
    padding: 0.5rem 0;
}

.info-line a {
    color: var(--secondary);
}

.info-line:last-child {
    border-bottom: none;
}

/* Tier Headers */
.tier-section {
    margin-top: 2rem;
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.tier-1 { border-left: 4px solid var(--error); }
.tier-1 .material-symbols-rounded,
.tier-1 h3 { color: var(--error); }

.tier-2 { border-left: 4px solid var(--warning); }
.tier-2 .material-symbols-rounded,
.tier-2 h3 { color: var(--warning); }

.tier-3 { border-left: 4px solid var(--secondary); }
.tier-3 .material-symbols-rounded,
.tier-3 h3 { color: var(--secondary); }

.tier-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

/* Ticket List */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ticket-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    transition: 0.3s;
}

.ticket-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
}

.ticket-header {
    margin-bottom: 0.75rem;
}

.ticket-badge {
    background: var(--primary);
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.ticket-feature {
    background: var(--surfaceVariant);
    color: var(--onSurface);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ticket-description {
    background: var(--surfaceVariant);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--secondary);
}

.ticket-meta {
    margin-bottom: 0.75rem;
}

.ticket-meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-right: 1rem;
    font-size: 11px;
}

.ticket-meta-label {
    color: var(--neutral);
    font-weight: 700;
}

.ticket-meta-value {
    color: var(--onSurface);
    font-weight: 500;
}

.ticket-qr {
    background: var(--successContainer);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 11px;
    color: var(--onSuccessContainer);
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--success);
}

.report-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 16px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.report-btn:hover {
    background: var(--errorContainer);
    color: var(--onErrorContainer);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--neutral);
}

.empty-state .material-symbols-rounded {
    font-size: 48px;
    margin-bottom: 0.5rem;
}

/*!TELEMEDICINE*/
.conferencing {
    width: 60%;
    position: relative;
}

.conferencing-appointments, .conferencing-consult {
    width: 20%;
}

.conferencing-appointments h4 {
    text-align: center;
    margin: 12px 0;
}

.feed-other {
    width: 100%;
    height: 100%;
    background-color: black;
    border-radius: 8px;
}

.feed-self {
    width: 200px;
    height: 175px;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 8px;
    border: 1px solid white;
}

.feed-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, -50%);
}

.feed-controls span {
    border-radius: 50%;
    padding: 8px;
    margin: 0 4px;
}

.feed-status {
    position: absolute;
    left: 12px;
    top: 12px;
}

/*.black {
    background-color: var(--lightGray);
    color: var(--darkGray);
}*/

/*!PROFILE REDESIGN*/
.profile-container {
    max-width: 1200px;
    margin: 2rem;
    padding: 0 1rem;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.profile-card {
    background-color: var(--background);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section-title span {
    color: var(--secondaryDark);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.profile-picture {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 4px solid var(--secondaryDark);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--secondary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-info-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-info-group button, .profile-security-form button {
    max-width: 300px;
    min-width: 190px;
}

.profile-info-label {
    font-size: 0.875rem;
    color: var(--onSurfaceVariant);
    font-weight: 500;
}

.profile-info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--onSurfaceVariant);
}

.profile-editable-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-editable-field input {
    border: 1px solid var(--outline);
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
}

.profile-editable-field input:focus {
    outline: none;
    border-color: var(--secondary);
}

.profile-edit-btn {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    font-size: 1rem;
}

.profile-verify-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--surface);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.profile-verify-email.unverified {
    background-color: #fee2e2;
    color: var(--error);
}

.profile-security-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-form-group label {
    font-size: 0.875rem;
    color: var(--outline);
    font-weight: 500;
}

.profile-form-group input {
    border: 1px solid var(--muted-text);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 1rem;
    width: 100%;
    background-color: var(--background);
    color: var(--outline);
}

.profile-form-group input:focus {
    outline: none;
    border-color: var(--secondary);
}

/*.profile-save-btn {
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.2s;
}

.profile-save-btn:hover {
    background-color: var(--secondaryDark);
}*/

.profile-version-info {
    font-size: 0.875rem;
    color: var(--outline);
    text-align: center;
    margin-top: 2rem;
}

/* Modal for image upload */
.profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.profile-modal-content {
    background-color: var(--background);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
}

.profile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.profile-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--outline);
}

.profile-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.profile-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-btn-primary {
    background-color: var(--secondary);
    color: white;
    border: none;
}

.profile-btn-primary:hover {
    background-color: var(--secondaryDark);
}

.profile-btn-outline {
    background-color: transparent;
    border: 1px solid var(--muted-text);
    color: var(--outline);
}

.profile-btn-outline:hover {
    background-color: var(--muted-text);
}

/*!ALERTS*/
/*.alerts-div {
    overflow-y: hidden;
    width: 100%;
    height: 100%;
}*/

.alerts-list {
    height: 100%;
    width: 80%;
    overflow-y: auto;
}

.alerts-controls {
    height: 100%;
    width: 20%;
}

.alert-item {
    transition: 0.3s;
    padding: 12px 16px;
    border-radius: 12px;
    background-color: var(--background);
    cursor: pointer;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.alert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.12);
}

.alert-item h3 {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alert-item h3::before {
    content: "notifications";
    font-family: 'Material Symbols Rounded';
    font-size: 18px;
}

.alert-item .max-lines {
    color: var(--text-color);
    font-size: 14px;
}

/*.alert-item .max-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}*/

.alert-item .frspvc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted-text);
}

.alert-item .small-font {
    font-size: 12px;
    color: var(--muted-text);
}

.alert-item .flexrow {
    display: flex;
    gap: 8px;
}

.alert-item .material-symbols-rounded {
    font-size: 18px;
    color: var(--muted-text);
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px;
    border-radius: 4px;
}

.alert-item .material-symbols-rounded:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.alert-item .material-symbols-rounded:active {
    transform: scale(0.92);
}

/* Unread state styling */
.alert-item.unread {
    border-left-color: var(--error);
}

.alert-item.unread h3 {
    color: var(--error);
}

.alert-item.unread .material-symbols-rounded {
    color: var(--error);
}

/*!POPUP EMAIL*/
/* ---------- Popup Overlay ---------- */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.popup-overlay.active {
    display: flex;
}

/* ---------- Popup Container ---------- */
.popup-container {
    background: var(--surface);
    border-radius: 16px;
    max-width: 600px;
    width: 92%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--elevation4);
    animation: popIn 0.25s ease;
    overflow: hidden;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ---------- Popup Header ---------- */
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.popup-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--onSurface);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popup-header h3 .material-symbols-rounded {
    color: var(--primary);
    font-size: 1.5rem;
}

.popup-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--neutral);
    padding: 0.375rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.popup-close:hover {
    background: var(--errorContainer);
    color: var(--error);
}

/* ---------- Popup Body ---------- */
.popup-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--onSurface);
}

.form-label .required {
    color: var(--error);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: var(--surface);
    color: var(--onSurface);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 117, 223, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--neutral);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
}

/* ---------- Popup Footer ---------- */
.popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--surfaceVariant);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-cancel {
    background: var(--surface);
    color: var(--onSurface);
    border-color: var(--border);
}

.btn-cancel:hover {
    background: var(--surfaceVariant);
}

.btn-send {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-send:hover {
    background: var(--primaryContainer);
    color: var(--onPrimaryContainer);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Loading State ---------- */
.btn-send .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-send.loading .spinner {
    display: inline-block;
}

.btn-send.loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .popup-container {
        width: 95%;
        border-radius: 12px;
    }

    .popup-header {
        padding: 1rem 1.25rem;
    }

    .popup-body {
        padding: 1.25rem;
    }

    .popup-footer {
        flex-direction: column;
    }

    .popup-footer .btn {
        justify-content: center;
    }
}

/*!HELP AND SUPPORT*/
.report-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: flex-end;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.report-sheet-overlay.active {
    display: flex;
    opacity: 1;
}

.report-sheet {
    background: var(--surface);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.2);
    padding: 8px 24px;
    z-index: 10;
}

.report-sheet-overlay.active .report-sheet {
    transform: translateY(0);
}

/* Handle */
.report-sheet::before {
    content: '';
    width: 40px;
    height: 4px;
    background: var(--outlineVariant);
    border-radius: 2px;
    margin: 12px auto;
    display: block;
}

.report-sheet-content {
    overflow-y: scroll;
    flex: 1;
    margin: 10px 0;
    z-index: 10;
}

.report-sheet-content .card-input {
    margin-bottom: 8px;
    transform: none !important;
    opacity: 1 !important;
}

/*!POLICIES*/
/*
.terms-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.terms-container h1 {
    font-size: 2.5rem;
    color: var(--black);
    text-align: center;
    margin-bottom: 10px;
}

.terms-container .effective-date {
    font-size: 0.9rem;
    color: var(--lightGray);
    text-align: center;
    margin-bottom: 40px;
}

.terms-container h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.terms-container h3 {
    font-size: 1.2rem;
    color: var(--darkGray);
    margin-top: 20px;
    margin-bottom: 10px;
}

.terms-container p, .terms-container ul {
    font-size: 1rem;
    color: var(--darkGray);
    margin-bottom: 15px;
}

.terms-container ul {
    list-style-type: none;
    padding-left: 20px;
}

.terms-container ul li {
    position: relative;
    margin-bottom: 8px;
}

.terms-container ul li::before {
    content: "•";
    color: var(--secondary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.terms-container a {
    color: var(--secondary);
    text-decoration: none;
}

.terms-container a:hover {
    text-decoration: underline;
}
*/

/* ---------- DPA & Policies Page Styles ---------- */
.policy-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.policy-container h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--onSurface);
    text-align: center;
    margin-bottom: 0.25rem;
}

.policy-container .policy-subtitle {
    font-size: 0.95rem;
    color: var(--neutral);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 500;
}

.policy-container .effective-date {
    font-size: 0.85rem;
    color: var(--muted-text);
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--outlineVariant);
}

.policy-container h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primaryContainer);
}

.policy-container h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--onSurface);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.policy-container h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--onSurfaceVariant);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.policy-container p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.policy-container ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.25rem;
}

.policy-container ul li {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    border-bottom: 1px solid var(--outlineVariant);
}

.policy-container ul li:last-child {
    border-bottom: none;
}

.policy-container ul li::before {
    content: "▹";
    color: var(--primary);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.policy-container .policy-highlight {
    background: var(--primaryContainer);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1.25rem 0;
}

.policy-container .policy-highlight p {
    margin-bottom: 0;
    color: var(--onPrimaryContainer);
}

.policy-container .policy-highlight strong {
    color: var(--primary);
}

.policy-container .pillar-box {
    background: var(--surfaceVariant);
    border: 1px solid var(--outlineVariant);
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1rem 0;
}

.policy-container .pillar-box h4 {
    color: var(--primary);
    margin-top: 0;
}

.policy-container .pillar-box ul {
    margin-bottom: 0;
}

.policy-container .pillar-box ul li {
    border-bottom: none;
    padding: 0.25rem 0 0.25rem 1.5rem;
}

.policy-container .pillar-box ul li::before {
    top: 0.25rem;
}

.policy-container .pillar-box ul li:last-child {
    border-bottom: none;
}

.policy-container .pillar-box ul li strong {
    color: var(--onSurface);
}

.policy-container .pillar-box + .pillar-box {
    margin-top: 0.75rem;
}

.policy-container a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.policy-container a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Back to top / navigation */
.policy-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--surfaceVariant);
    border-radius: 10px;
    border: 1px solid var(--outlineVariant);
}

.policy-nav a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--onSurfaceVariant);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.policy-nav a:hover {
    background: var(--primaryContainer);
    color: var(--primary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .policy-container {
        padding: 1.25rem;
        margin: 1rem;
        border-radius: 12px;
    }

    .policy-container h1 {
        font-size: 1.5rem;
    }

    .policy-container h2 {
        font-size: 1.15rem;
    }

    .policy-container h3 {
        font-size: 1rem;
    }

    .policy-container .pillar-box {
        padding: 1rem;
    }

    .policy-nav {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .policy-container {
        padding: 1rem;
        margin: 0.75rem;
    }

    .policy-container h1 {
        font-size: 1.25rem;
    }
}

/*!TESTS PAGE*/
.tests-main-container {
    max-width: 960px; /* max-w-4xl */
    margin: 15px auto;
    background-color: #fff;
    padding: 2.5rem; /* p-10 */
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* shadow-2xl */
    max-height: calc(100vh - 60px);
    overflow-y: scroll;
}

/*.subtitle {
    color: #6b7280; !* text-gray-500 *!
    margin-bottom: 1.5rem;
}*/

/* --- Auth/Message Bars --- */
.auth-status {
    font-size: 0.875rem; /* text-sm */
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 1rem;
}

.message {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

/* --- Patient Info Box --- */
.info-box {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #eff6ff; /* bg-blue-50 */
    border-radius: 0.75rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); /* shadow-inner */
}

.info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 1rem;
    border-bottom: 1px solid #bfdbfe;
    padding-bottom: 0.5rem;
}

/* Flexbox Grid for Info Display */
.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem; /* gap-y-2 gap-x-4 */
    font-size: 0.875rem; /* text-sm */
}

.info-grid > div {
    width: 100%; /* Default to full width on mobile */
}

.info-grid .label {
    font-weight: 600;
    color: #4b5563; /* text-gray-600 */
}

.info-grid .value {
    font-weight: 500;
    color: #1f2937; /* text-gray-800 */
}

.info-grid .value-report {
    color: #1d4ed8; /* text-blue-700 */
}

/* Tablet/Desktop adjustments for info grid */
@media (min-width: 640px) { /* sm breakpoint */
    .info-grid > div {
        width: calc(33.333% - 1rem); /* 3 columns */
    }
}

/* --- Facility Details Inputs --- */
.facility-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
}

.facility-details input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    flex-grow: 1;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.facility-details input:focus {
    outline: none;
    border-color: #3b82f6; /* focus:border-blue-500 */
    box-shadow: 0 0 0 1px #3b82f6; /* focus:ring-blue-500 */
}

@media (min-width: 768px) { /* md breakpoint */
    .facility-details input {
        width: calc(50% - 0.5rem);
    }
}

/* --- Test Selection Section --- */
/*.test-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}*/

.tests-container {
    /* space-y-6 */
}

.category-block {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05); /* shadow-lg */
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--onSurface);
    border-bottom: 1px solid var(--highlight);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Flexbox for individual test item */
.test-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background-color 0.15s;
}

.test-label:hover {
    background-color: rgba(239, 246, 255, 0.5); /* hover:bg-blue-50/50 */
}

.test-checkbox {
    height: 1.25rem;
    width: 1.25rem;
    color: #3b82f6;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
}

.test-name {
    font-weight: 500;
    color: #374151; /* text-gray-700 */
    width: 12rem; /* w-48 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.test-normal {
    font-size: 0.875rem;
    color: #6b7280; /* text-gray-500 */
    margin-left: 1rem;
    flex-grow: 1;
}

/* Hide Normal range on smaller screens */
@media (max-width: 767px) {
    .test-normal {
        display: none;
    }
}

/* --- Action Button --- */
.action-area {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: row;
    justify-content: end;
}

/* Dental Section */
.dental-header {
    padding: 16px;
    border-bottom: 1px solid var(--outline);
    background: var(--surface);
}

.dental-container {
    flex: 1;
    overflow: hidden;
    min-height: 600px;
}

.tooth-chart-section {
    width: 400px;
    min-width: 400px;
    border-right: 1px solid var(--outline);
    padding: 16px;
    overflow-y: auto;
}

.dental-history-section {
    flex: 1;
    min-width: 400px;
    border-right: 1px solid var(--outline);
    padding: 16px;
    overflow-y: auto;
}

.tooth-details-section {
    width: 300px;
    min-width: 300px;
    padding: 16px;
    overflow-y: auto;
}

/* Tooth Chart */
.tooth-chart-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--outline);
}

.tooth-chart-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    padding: 16px;
    background: var(--surfaceVariant);
    border-radius: 12px;
}

.tooth-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--outline);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    user-select: none;
}

.tooth-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.tooth-item.selected {
    border-color: var(--primary);
    background: var(--primaryContainer);
    color: var(--onPrimaryContainer);
}

.tooth-status-missing { background: var(--errorContainer); color: var(--onErrorContainer); }
.tooth-status-filling { background: var(--infoContainer); color: var(--onInfoContainer); }
.tooth-status-crown { background: var(--warningContainer); color: var(--onWarningContainer); }
.tooth-status-rootcanal { background: var(--successContainer); color: var(--onSuccessContainer); }
.tooth-status-implant { background: var(--surfaceVariant); color: var(--textColor); }
.tooth-status-decay { background: var(--error); color: var(--onError); }

/*!STATUS INDICATORS*/
.small-badge {
    padding: 1px 3px;
    border-radius: 100px;
    font-weight: 500;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 48px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.card-basic .status-badge {
    border-radius: 8px;
    width: 100%;
}

.status-success {
    background: var(--successContainer);
    color: var(--onSuccessContainer);
}

.status-warning {
    background: var(--warningContainer);
    color: var(--onWarningContainer);
}

.status-critical {
    background: var(--warning);
    color: var(--onWarning);
}

.status-error {
    background: var(--errorContainer);
    color: var(--onErrorContainer);
}

.status-info {
    background: var(--infoContainer);
    color: var(--onInfoContainer);
}

.status-crisis {
    background: var(--muted-text);
    color: var(--black);
}

.status-missing {
    background: var(--surfaceVariant);
    color: var(--mutedTextColor);
}

.card-input.status-success::before,
.card-input-wide.status-success::before {
    background: linear-gradient(to bottom, var(--success), var(--successContainer));
}

.card-input.status-warning::before,
.card-input-wide.status-warning::before {
    background: linear-gradient(to bottom, var(--warning), var(--warningContainer));
}

.card-input.status-critical::before,
.card-input-wide.status-critical::before {
    background: linear-gradient(to bottom, var(--warning), var(--warningContainer));
}

.card-input.status-error::before,
.card-input-wide.status-error::before {
    background: linear-gradient(to bottom, var(--error), var(--errorContainer));
}

.card-input.status-info::before,
.card-input-wide.status-info::before {
    background: linear-gradient(to bottom, var(--info), var(--infoContainer));
}

.card-input.status-crisis::before,
.card-input-wide.status-crisis::before {
    background: linear-gradient(to bottom, var(--muted-text), var(--black));
}

/*! Dental Timeline */
.history-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--outline);
}

.dental-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dental-exam-card {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
}

.dental-exam-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.exam-date {
    font-size: 0.75rem;
    color: var(--mutedTextColor);
    margin-bottom: 8px;
    font-weight: 600;
}

.exam-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.exam-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: var(--surfaceVariant);
    border-radius: 6px;
    min-width: 60px;
}

.stat-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--mutedTextColor);
}

/* Tooth Details */
.selected-tooth {
    margin-bottom: 16px;
}

.tooth-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--outline);
}

.tooth-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tooth-info {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: var(--surfaceVariant);
    border-radius: 6px;
}

.info-label {
    font-size: 0.875rem;
    color: var(--mutedTextColor);
}

.info-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--textColor);
}

/* Current Exam */
.current-exam {
    margin-top: 20px;
}

.exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--outline);
}

.exam-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.exam-field {
    display: flex;
    flex-direction: column;
}

.field-label {
    font-size: 0.75rem;
    color: var(--mutedTextColor);
    margin-bottom: 4px;
}

.field-value {
    font-size: 0.875rem;
    color: var(--textColor);
    min-height: 20px;
    padding: 4px 0;
}

.exam-actions {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--outline);
}

/* Responsive */
@media (max-width: 1280px) {
    .tooth-chart-section { width: 350px; min-width: 350px; }
    .dental-history-section { min-width: 350px; }
    .tooth-details-section { width: 280px; min-width: 280px; }
}

@media (max-width: 960px) {
    .dental-container { flex-direction: column; }
    .tooth-chart-section,
    .dental-history-section,
    .tooth-details-section {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--outline);
    }
    .tooth-chart-container { grid-template-columns: repeat(16, 1fr); }
}

@media screen and (min-width: 1px) {
    .three-items, .one-items, .six-items, .five-items, .icd-item, .facility-item, .card-input-group .card-input,
    .diary-item, .child-item, .consult-card-days, .email-item/*, .alert-item*/,
    .invoice-item, .history-item, .consult-card-history-wide, .consult-card-history,
    .patient-item, .add-facilities .text-field-double, .tier, .prescription-item,
    .test-item, .facilities-item, .add-facilities .text-field, .add-facilities .text-field-half,
    .whyus li, .appointment-item, .appoint-item, .prescription-item, .learn-item, .personnel-item,
    .consult-card-wide, .four-items, .card-input-wide {
        flex: 0 0 100%;
        max-width: calc(100% - 10px);
        margin: 5px;
    }
    .profile-div ul li, .dashboard-card, .consult-card/*, .minor-item*/ {
        flex: 0 0 50%;
        max-width: calc(50% - 10px);
        margin: 5px;
    }
    .body-composition {
        flex: 0 0 25%;
        max-width: calc(25% - 10px);
        margin: 5px;
    }
    .navigation {
        display: none;
    }
    .about, .pricing {
        padding: 20px;
    }
    .about h1 {
        font-size: 3vh;
    }
    .about h2 {
        font-size: 2vh;
        margin-bottom: 20px;
    }
    .facilities h2, .auth h2, .whyus h2, .pricing h2 {
        font-size: 4vh;
    }
    .auth {
        padding: 50px;
        background-color: var(--highlight);
    }
    .auth .squeezed {
        margin: 0 25px;
    }
    .auth button {
        margin: 5px;
        width: 100%;
    }
    .menu-facility {
        width: 40px;
    }
    .contents {
        width: calc(100vw - 40px);
    }
    .menu-facility ul li p, .logout, .add-personnel, .calendar {
        display: none;
    }
    .personnel-list, .appointments, .appointments-set-facility {
        width: 100%;
    }
    .facility-contacts, .invoice-radios, .claims-radios {
        display: flex;
        flex-direction: column;
    }
    .account-security {
        width: 100%;
    }
    .login-details, .login-buttons, .footer {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-self: center;
    }
    .charts {
        display: flex;
        flex-direction: column;
        height: 1050px;
    }
    .chart, .chart-wide, .chart-widest, .chart-half {
        width: 100%;
        height: 350px;
        margin: 5px;
    }
    .appointments-list, .prescription-list {
        width: 20%;
    }

    .appointments-set, .prescription-set {
        width: 80%;
    }
}

@media screen and (min-width: 640px) {
    .three-items, .six-items, .five-items, .icd-item, .profile-div ul li, .dashboard-card, .consult-card,
    /*.minor-item, */.card-input-group .card-input {
        flex: 0 0 33.333%;
        max-width: calc(33.333% - 10px);
        margin: 5px;
    }
    .diary-item, .consult-card-days, .email-item/*, .alert-item*/, .invoice-item, .prescription-item,
    .test-item, .facilities-item, .add-facilities .text-field, .add-facilities .text-field-half,
    .card-input-group .card-input, .four-items {
        flex: 0 0 50%;
        margin: 5px;
        max-width: calc(50% - 10px);
    }
    .account-security {
        width: 40%;
    }
    .appointments-list, .prescription-list {
        width: 30%;
    }

    .appointments-set, .prescription-set {
        width: 70%;
    }
    .terms-container {
        padding: 30px;
    }
}

@media screen and (min-width: 960px) {
    .six-items, .five-items, .icd-item, .consult-card-days, .profile-div ul li, .dashboard-card,
    .consult-card, /*.minor-item, */.card-input-group .card-input, .four-items {
        flex: 0 0 25%;
        max-width: calc(25% - 10px);
        margin: 5px;
    }
    .diary-item, .email-item/*, .alert-item*/, .invoice-item, .prescription-item, .test-item, .facilities-item, .add-facilities .text-field-half {
        flex: 0 0 33.333%;
        margin: 5px;
        max-width: calc(33.333% - 10px);
    }
    .consult-card-history, .add-facilities .text-field-double, .whyus li, .tier, .appoint-item, .appointment-item,
    .learn-item, .personnel-item, .consult-card-wide, .card-input-wide {
        flex: 0 0 50%;
        max-width: calc(50% - 10px);
        margin: 5px;
    }
    .navigation {
        display: flex;
    }
    .login {
        margin: 10px 30%;
    }
    .add-personnel {
        display: flex;
    }
    .account-security {
        width: 30%;
    }
    .appointments-list, .prescription-list {
        width: 50%;
    }

    .appointments-set, .prescription-set {
        width: 50%;
    }
}

@media screen and (min-width: 1280px) {
    .six-items, .five-items, .icd-item/*, .alert-item*/, .invoice-item, .profile-div ul li,
    .dashboard-card, .consult-card, .card-input-group .card-input {
        flex: 0 0 20%;
        max-width: calc(20% - 10px);
        margin: 5px;
    }
    .diary-item, .learn-item, .email-item, .prescription-item, .consult-card-history, .test-item,
    .facilities-item, .add-facilities .text-field, .add-facilities .text-field-half, .card-input-group .card-input {
        flex: 0 0 25%;
        margin: 5px;
        max-width: calc(25% - 10px);
    }
    .tier, .add-facilities .text-field-double, .appoint-item, .personnel-item, .consult-card-wide {
        flex: 0 0 33.333%;
        max-width: calc(33.333% - 10px);
        margin: 5px;
    }
    /*.minor-item {
        flex: 0 0 16.667%;
        max-width: calc(16.667% - 10px);
        margin: 5px;
    }*/
    .consult-card-days {
        flex: 0 0 12.5%;
        max-width: calc(12.5% - 10px);
        margin: 5px;
    }
    .appointments/*, .appointments-set-facility*/ {
        width: 40%;
    }
    .calendar {
        display: flex;
        flex-direction: column;
        width: 60%;
    }
    .facility-contacts {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    .login-details, .login-buttons, .footer {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-self: center;
    }
    .menu-facility {
        width: 180px;
    }
    .contents {
        width: calc(100vw - 180px);
    }
    .menu-facility ul li p, .logout, .calendar {
        display: flex;
    }
    .about, .whyus {
        padding: 20px 15%;
    }
    .pricing {
        padding: 20px 5%;
    }
    .about h1 {
        font-size: 60px;
    }
    .about p {
        font-size: 44px;
    }
    .account-security {
        width: 20%;
    }
    .charts {
        display: flex;
        flex-direction: row;
        height: 350px;
    }
    .chart {
        width: 33.3%;
        height: 100%;
        margin: 5px;
    }
    .chart-half {
        width: 50%;
        height: 350px;
        margin: 5px;
    }
    .chart-wide {
        width: 66.6%;
        height: 350px;
        margin: 5px;
    }
    .appointments-list, .prescription-list {
        width: 75%;
    }

    .appointments-set, .prescription-set {
        width: 25%;
    }
}

@media screen and (min-width: 1440px) {
    .six-items, .icd-item, .invoice-item, .profile-div ul li, .dashboard-card, .consult-card
    , .card-input-group .card-input{
        flex: 0 0 16.667%;
        max-width: calc(16.667% - 10px);
        margin: 5px;
    }
    .five-items, .diary-item, .learn-item, .email-item, .prescription-item, .consult-card-history, .test-item, .facilities-item, .add-facilities .text-field, .add-facilities .text-field-half {
        flex: 0 0 20%;
        margin: 5px;
        max-width: calc(20% - 10px);
    }
    .appoint-item, .personnel-item, .consult-card-wide {
        flex: 0 0 25%;
        max-width: calc(25% - 10px);
        margin: 5px;
    }
    .add-facilities .text-field-double, .card-input-wide {
        flex: 0 0 33.333%;
        max-width: calc(33.333% - 10px);
        margin: 5px;
    }
    .whyus li, .appointment-item {
        flex: 0 0 50%;
        max-width: calc(50% - 10px);
        margin: 5px;
    }
    /*.minor-item {
        flex: 0 0 12.5%;
        max-width: calc(12.5% - 10px);
        margin: 5px;
    }*/
    .invoice-radios, .claims-radios {
        display: flex;
        flex-direction: row;
    }
    .appointments-list, .prescription-list {
        width: 80%;
    }

    .appointments-set, .prescription-set {
        width: 20%;
    }
}

@media (max-width: 600px) {
    .patient-card {
        margin: 10px;
        border-radius: 8px;
    }

    .card-header {
        padding: 15px 20px;
    }

    .card-header h2 {
        font-size: 1.5em;
    }

    .card-body {
        padding: 20px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }

    .info-item .label {
        flex-basis: auto;
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 0.9em;
    }

    .info-item .value {
        flex-basis: auto;
        text-align: left;
        width: 100%;
        font-size: 0.9em;
    }
}

