:root {
    --dark-text-color: #0B204C;
    --light-text-color: #9298A6;
    --payment-income-color: #2CC09C;
    --payment-debit-color: #DC2725;
    --payment-debit-opacity-color: #f7d0d0;
    --brown-color: #FBC30A;
    --default-background-color: #F0F4FD;
    --unread-background-color: #eaeaf8;
    --blue-color: #3794f5;
    --chat-loader-color: #a2d25d;
    --chat-loader-background-color: #e6f5d2;
    --button-height: 40px;
    --kidstime-green-color: #4CAF50;
    --kidstime-purple: #832D9B;
    --kidstime-purple-light: #c196cd;
    --kidstime-bluesteel : #979797;
    --kidstime-bluesteel-opacity : #d5d5d5;
    --light-green-color: #8CD130;
    --light-green-opacity-color: #d2edaf;
    
    --schedule-cell: var(--cell-small);
    --cell-small: 50px;
    --permission-cell: 55px;
    --cell-medium: 64px;
    --cell-big: 64px;
    --schedule-border: 1px solid var(--kidstime-bluesteel);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
}


* {
    touch-action: manipulation;
}

.brown-color {
    color: var(--brown-color)!important;
}

.brown-background-color {
    background-color: var(--brown-color)!important;
}

.btn.btn-comment {
    height: 50px;
    text-transform: capitalize;
}

.btn.btn-icon {
    padding: 8px;
    border-radius: 14px;
    display: grid;
    place-content: center;
    height: auto;
    gap: 0.5rem;
}

.btn-icon i {
    margin: 0!important;
}

.btn.btn-themed {
    background-color: var(--brown-color);
    color: var(--dark-text-color);
    font-family: "Poppins";
    font-weight: bold;
    border-radius: 14px;
    height: 54px;
    vertical-align: middle;
    text-transform: none;
    border-width: 0;
    box-shadow: none;
}

.btn-transparent {
    background-color: rgba(0,0,0,0.05);
    color: var(--dark-text-color);
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    border-radius: 14px;
    padding: 13px !important;
    vertical-align: middle;
    box-shadow: none;
}

.btn.btn-disabled {
    border-width: 0 !important;
    border-image-width: 0 !important;
}

.btn.btn-themed a {
    text-decoration: none;
    color: var(--dark-text-color);
}

.btn.btn-themed-small {
    font-family: "Poppins";
    background: var(--brown-color);
    color: var(--dark-text-color);
    font-weight: bold;
    border-radius: 14px;
    height: 24px;
    text-transform: none;
}

.btn.btn-themed-medium {
    font-family: "Poppins", sans-serif;
    background: #d4d3df;
    color: #9298a6;
    font-weight: bold;
    border-radius: 14px;
    height: 36px;
    text-transform: none;
    padding-top: 0;
    padding-bottom: 0;
    vertical-align: middle;
}

.jumping-img {
    animation: .8s linear jump infinite;
}

.btn.btn-themed-medium:hover,
.btn.btn-icon:hover {
    background: var(--brown-color);
    color: var(--dark-text-color);
}

.btn.btn-themed-medium > span {
    vertical-align: center;
}

.btn.btn-themed-negative {
    background: var(--payment-debit-color);
    color: white;
}

.text-wrap {
    text-overflow: ellipsis;
    white-space: nowrap !important;
    overflow: hidden;
}

.tag {
    display: inline-block;
    color: white;
    font-family: "Poppins";
    font-weight: bold;
    font-size: 12px;
    border-radius: 5px;
    padding: 5px 10px;
    width: max-content;
    max-width: calc(100vw - 300px);
    text-transform: uppercase;
}

@media (max-width: 800px){
    .tag{
        max-width: none;
        width: fit-content;
        text-align: left;
    }

    .text-wrap {
        text-overflow: clip;
        overflow: hidden;
        white-space: normal !important;
    }
}

.tag-green, .green-info {
    background-color: var(--payment-income-color);
}

.tag-red, .red-info {
    background-color: var(--payment-debit-color);
}

.tag-yellow {
    background-color: var(--brown-color);
    color: var(--dark-text-color);
}

.yellow-info {
    background-color: var(--brown-color);
}

.green-info, .red-info, .yellow-info {
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
    padding: 5px 10px;
    vertical-align: middle;
    font-family: "Poppins";
    text-align: start;
}

.institution-message,
.institution-message-title,
.institution-message-body,
.institution-message-sender-name,
.institution-message-date {
    font-weight: 700;
    font-family: "Poppins";
    color: var(--dark-text-color);
}

.institution-message-sender-name {
    font-size: 18px;
    vertical-align: middle;
}

.institution-message-date {
    font-weight: 500;
    font-size: 14px;
}

.institution-message-title {
    font-size: 18px;
    font-weight: 600;
}

.institution-message-body {
    color: var(--light-text-color);
    font-size: 13px;
}

.institution-message-who-read,
.institution-message-who-read-label,
.institution-message-who-read-value {
    font-family: "Poppins";
    color: var(--dark-text-color);
    font-size: 13px;
}

.institution-message-who-read-label {
    font-weight: 500;
}

.institution-message-who-read-value {
    font-weight: 700;
}

.mud-confirmation-dialog {
    border-radius: 20px;
    padding: 12px;
}

.mud-divider {
    border-color: var(--dark-text-color) !important;
}

.mud-confirmation-dialog-content-override-kidstime {
    padding: 12px;
}

.mud-confirmation-dialog-content-override-kidstime > p {
    text-align: center;
    font-weight: 500;
    font-family: "Poppins";
    font-size: 18px;
    color: var(--dark-text-color);
}

.mud-dialog-actions-override-kidstime {
    display: flex;
}

.mud-dialog-title {
    padding: 12px 24px 0 24px !important;
}

.mud-dialog.mud-dialog-title {
    padding-bottom: 50px;
}

.mud-dialog-title > h6 {
    color: var(--dark-text-color);
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    font-family: "Poppins", serif;
}

.mud-dialog-custom .mud-dialog-title > h6 {
    padding-right: 36px;
}

.mud-dialog-actions-override-kidstime > button {
    background-color: var(--brown-color);
    color: var(--dark-text-color);
    width: 50%;
    border-radius: 12px;
    height: 54px;
    font-weight: 800;
    font-size: 16px;
    font-family: "Poppins", serif;
}

.mud-alert-dialog-actions-override-kidstime > button {
    background-color: var(--brown-color);
    color: var(--dark-text-color);
    width: 100%;
    border-radius: 12px;
    height: 54px;
    font-weight: 800;
    font-size: 16px;
    font-family: "Poppins", serif;
}

.mud-dialog-actions-override-kidstime > button > span {
    font-weight: 800;
    font-family: "Poppins", serif;
    text-transform: none;
}

.mud-badge.mud-badge-default {
    color: var(--payment-debit-color);
    background-color: var(--payment-debit-color);
}

.unread-indicator-dot {
    height: 16px;
    width: 16px;
    background-color: var(--payment-debit-color);
    border-radius: 50%;
    display: inline-block;
}

.payment-income {
    background-color: var(--payment-income-color);
}

.payment-debit {
    background-color: var(--payment-debit-color);
}

.payment-income-color {
    color: var(--payment-income-color)!important;
}

.payment-debit-color {
    color: var(--payment-debit-color)!important;
}

.payment-debit-opacity-color {
    color: var(--payment-debit-opacity-color);
}

.payment-debit-opacity-background-color {
    background-color: var(--payment-debit-opacity-color);
}

.light-grey-background-color {
    background-color: var(--kidstime-bluesteel);
}

.light-grey-opacity-background-color {
    background-color: var(--kidstime-bluesteel-opacity);
}

.light-green-color {
    color: var(--light-green-color);
}

.light-green-background-color {
    background-color: var(--light-green-color);
}

.light-green-opacity-color {
    color: var(--light-green-opacity-color);
}

.light-green-opacity-background-color {
    background-color: var(--light-green-opacity-color);
}

.mud-button-filled.mud-button-filled-primary {
    color: var(--dark-text-color);
    background-color: var(--brown-color);
}

.mud-fab-tertiary,.mud-fab-tertiary:hover, .mud-fab-tertiary:focus-visible  {
    color: var(--dark-text-color);
    background-color: var(--brown-color);
}

.kidstime-dark-link {
    color: var(--dark-text-color);
    text-decoration: none!important;
    outline: none;
}

.kidstime-navigation-items {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    font-family: "Poppins";
    vertical-align: center;
    text-align: center;
    margin-left: 10px;
}

.kidstime-navigation-items-inactive {
    font-weight: 500;
}

.kidstime-navigation-items:hover {
    color: var(--light-text-color);
}

.kidstime-navigation-logo {
    max-height: 50px;
}

img.avatar {
    border-radius: 25px;
    width: 100%;
    height: 100%;
    object-fit: cover; /*magic*/
}

.avatar-container {
    width: 48px; /*any size*/
    height: 48px; /*any size*/
}

.avatar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #832D9B;
}

.avatar-user-type {
    font-size: 12px;
    color: #6B6D73;
}

.avatar-size {
    font-size: 16px;
}

.ul-avatar > li {
    display: inline-block;
    vertical-align: middle
}

.pre-poppins {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #565c64;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.main-background {
    background: var(--default-background-color);
    padding-top: 35px;
    padding-bottom: 60px;
    padding-left: 10px;
    padding-right: 10px;
}

.default-background-color {
    background: var(--default-background-color);
}

.unread-background-color {
    background: var(--unread-background-color);
}

.nav-link:hover, .nav-link:focus, .nav-link.current {
    color: var(--brown-color);
}

.sub-nav-link:hover, .sub-nav-link:focus, .sub-nav-link.current {
    color: var(--kidstime-purple);
}

.nav-link-active {
    color: var(--brown-color) !important;
}

.sub-nav-link-active {
    background-color: var(--unread-background-color);
}

.sub-nav-link-active a {
    color: var(--kidstime-purple) !important;
}

/*
=============================
INSTITUTION MESSAGES - MAIN CONTENT
=============================
*/

.attachment-wrapper {
    text-overflow: ellipsis;
    word-wrap: normal;
    text-transform: none;
}

.avatar-small {
    border-radius: 50%;
    height: 2rem;
    width: 2rem;
}

/*
=============================
INSTITUTION SETTINGS - MAIN CONTENT
=============================
*/

.institution-settings:first-child .mud-container {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.institution-settings .mud-checkbox .mud-typography-body1, 
.institution-settings .mud-container > span {
    color: var(--dark-text-color);
    font-size: 16px;
    font-weight: bold;
    font-family: "Poppins", sans-serif;
}

.institution-settings .label {
    color: var(--light-text-color);
}

.institution-settings .label,
.institution-settings .mud-radio > .mud-radio-content {
    font-size: 14px;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
}

.institution-settings .mud-list > .mud-input-control, .institution-settings .mud-list > .mud-container {
    margin-left: 0;
    padding-bottom: 1rem;
}

.institution-settings .mud-checkbox {
    max-width: fit-content;
}

.institution-settings * .mud-input-control > .mud-input-control-input-container > div.mud-input.mud-input-text {
    margin-top: 0;
}

.institution-settings-invoicing  .mud-typography-body1 {
    font-size: 14px !important;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
}

.institution-settings-invoicing .mud-icon-button {
    margin-left: -12px;
}

.institution-settings-invoicing .mud-radio-content-placement-end {
    margin: 0 !important;
}

.institution-radio-group .mud-radio-group {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}
/*
=============================
INSTITUTION MESSAGES_NEW - MAIN CONTENT
=============================
*/
.icon-center {
    position: relative;
}

.icon-center .mud-input-adornment .mud-svg-icon {
    position: absolute;
    top: 18.5px;
    right: 10px;
}

.form__new-message {
    background-color: #fff;
    border-radius: 1rem;
    padding: 2.5rem
}

.form__new-message h2 {
    margin-bottom: 2rem;
}

.overlay-container {
    position: relative;
}

.overlay-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

#dropdown {
    position: relative;
    display: inline-block;
}

#dropdown-content {
    display: none;
    position: fixed;
    top: 60px;
    right: 15px;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    z-index: 1;
    width: 400px;
    border-radius: 16px;
}

.kidstime-default-background {
    background-color: var(--blue-color);
}

.chat-upload-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}   
    
.chat-loader {
    color: var(--chat-loader-color);
    background-color: var(--chat-loader-background-color);
    border-radius: 14px;
    height: 40px !important;
    width: 40px !important;
    text-transform: none;
    cursor: pointer;
    padding: 0 !important;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.kidstime-title {
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-size: 24px;
    color: var(--dark-text-color);
}

.kidstime-section-title {
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: var(--dark-text-color);
}

.kidstime-meal-summary-value {
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: var(--dark-text-color);
}

.kidstime-tile-title {
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: var(--dark-text-color);
    vertical-align: middle;
    line-height: 24px;
    height: 24px
}

.kidstime-standard-big-label {
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: var(--dark-text-color);
    vertical-align: middle;
    line-height: 24px;
    height: 24px
}

.kidstime-meal-label, .kidstime-standard-small-label {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--dark-text-color);
    vertical-align: middle;
    line-height: 20px;
}

.kidstime-standard-semi-label {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-text-color);
}

.small-label {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 10px;
    vertical-align: middle;
    line-height: 1;
}

.kidstime-fs-14 {
    font-size: 14px;
}

.kidstime-fs-20 {
    font-size: 20px;
}

.td > div {
    border-radius: 16px;
    background: #ffffff;
    padding: 16px;
    display: flex;
}

.td-without-background > div {
    border-radius: 16px;
    background: transparent;
    padding: 0 16px;
    display: flex;
}

.kidstime-dark-text,
.kidstime-dark-text.pre-poppins>*  {
    color: var(--dark-text-color);
}

.kidstime-light-text {
    color: var(--light-text-color) !important;
}

.kidstime-dark-background {
    background: var(--dark-text-color);
}

.sticky {
    text-align: center;
    position: sticky;
    top: 20px;
    margin: 5px 5px 50px;
    z-index: 2;
}

.sticky-bottom {
    text-align: center;
    position: sticky;
    bottom: 20px;
    margin: 5px 5px 50px;
    z-index: 2;
}

.a-no-underline {
    text-decoration: none;
}

.spinner {
    border: 16px solid silver;
    border-top: 16px solid #337AB7;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 700ms linear infinite;
    top: 40%;
    left: 55%;
    position: absolute;
}

.kidstime-card {
    background-color: white;
    border-radius: 12px;
    padding: 12px;
    min-width: 0;
    /*margin-top: 10px;*/
}

.kidstime-card-small {
    background-color: white;
    border-radius: 15px;
    padding: 4px 8px;
    margin-top: 2px;
}

.kidstime-card-big {
    background-color: white;
    border-radius: 1rem;
    padding: 12px;
}

.kidstime-card > div > p {
    color: var(--dark-text-color);
    font-size: 1rem;
}

.kidstime-cookie-card {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 640px;
    width: calc(100% - 2rem);
    visibility: visible;
    transition: bottom 400ms ease, opacity 400ms ease, visibility 400ms;
    opacity: 1;
}

.kidstime-cookie-card.accept {
    bottom: -500px;
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 959px) {
    .kidstime-cookie-card {
        max-width: 100%;
        width: calc(100% - 1rem);
        bottom: 0.5rem;
    }
}

.poppins-regular {
    font-family: "Poppins";
    font-weight: 400;
}

.poppins-medium {
    font-family: "Poppins";
    font-weight: 500;
}

.poppins-bold {
    font-family: "Poppins";
    font-weight: 700;
}

.mud-radio-override > span,
.mud-checkbox-override p {
    color: var(--dark-text-color) !important;
    font-family: "Poppins", sans-serif;
    font-weight: 400 !important;
    font-size: 0.875rem !important; 
    padding: 8px
}

.mud-theme-primary {
    color: white !important;
    background-color: var(--brown-color) !important;
}

.mud-avatar-filled {
    background-color: transparent;
}

.mud-avatar-large {
    width: 100px !important;
    height: 100px !important;
}

.mud-progress-circular {
    color: var(--brown-color)
}

#chats {
    display: block;
    position: fixed;
    bottom: 0;
    right: 80px;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 16px 16px 0 0;
}

.chats-width-chat-unselected {
    width: 400px;
}

.chats-width-chat-selected {
    width: 800px;
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
    .chats-width-chat-selected {
        width: 300px
    }
}

@media only screen and (min-width: 767px) and (max-width: 1299px) {
    .chats-width-chat-selected {
        width: 500px
    }
}

@media only screen and (min-width: 1299px) {
    .chats-width-chat-selected {
        width: 800px
    }
}

.chat-settings-icon {
    height: 2.5rem;
    width: 2.5rem;
    display: grid;
    place-content: center;
    border-radius: 50%;
    color: var(--light-text-color);
    font-size: 1.25rem;
    cursor: pointer;
}

.chat-settings-icon:hover,
.chat-settings-icon:focus-visible {
    background-color: rgba(66,66,66,0.05);
}

.chat-options-hidden {
    opacity: 0;
    pointer-events: none;
}

.chat-reaction-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.7;
    padding: 2px 4px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.chat-reaction-btn:hover {
    transform: scale(1.3);
    opacity: 1;
}

.chat-reaction-badge {
    font-size: 0.8rem;
    cursor: default;
}

.chat-reaction-badge-btn {
    font-size: 0.8rem;
    cursor: pointer;
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 50rem;
    padding: 0.25em 0.65em;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.chat-reaction-badge-btn:hover {
    background-color: #e9ecef;
    transform: scale(1.05);
}

.chat-reaction-add-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    opacity: 0.6;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.chat-reaction-add-btn:hover {
    opacity: 1;
    background-color: #e4e6e9;
}

.chat-reaction-picker {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 0;
    display: flex;
    gap: 2px;
    padding: 8px 12px;
    background: #242526;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    z-index: 100;
    white-space: nowrap;
}

.chat-reaction-picker.picker-end {
    left: auto;
    right: 0;
}

.chat-msg-item.mud-list-item:hover,
.chat-msg-item.mud-list-item:focus {
    background-color: transparent !important;
}

.chat-reaction-picker .chat-reaction-btn {
    opacity: 1;
    font-size: 1.4rem;
}

.vh-25 {
    height: 25vh !important;
}

.vh-30 {
    height: 30vh !important;
}

.vh-35 {
    height: 35vh !important;
}

.vh-50 {
    height: 50vh !important;
}

.vh-60 {
    height: 60vh !important;
}

.vh-65 {
    height: 65vh !important;
}

.vh-75 {
    height: 75vh !important;
}

.vw-30 {
    width: 30vw !important;
}

.scroll-hidden {
    /*overflow: auto;*/
    overflow-x: hidden;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scroll-hidden::-webkit-scrollbar, .mud-layout #main-content::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scroll-hidden, .mud-layout #main-content {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.scroll-interceptor {
}

#chatCollapse {
    vertical-align: center;
    font-size: 30px
}

#chatCollapse:hover {
    color: white;
}

.chats-unread {
    animation: color-change 2s infinite;
    -webkit-animation: color-change 2s infinite;
    -moz-animation: color-change 2s infinite;
    -o-animation: color-change 2s infinite;
}

.chats-unread > span {
    animation: color-change 2s infinite;
    -webkit-animation: color-change 2s infinite;
    -moz-animation: color-change 2s infinite;
    -o-animation: color-change 2s infinite;
}

.chats-unread > a {
    animation: color-change 2s infinite;
    -webkit-animation: color-change 2s infinite;
    -moz-animation: color-change 2s infinite;
    -o-animation: color-change 2s infinite;
}

.brown-background {
    background-color: var(--brown-color)
}

@keyframes color-change {
    0% {
        background-color: var(--brown-color);
        color: var(--dark-text-color);
    }
    50% {
        background-color: var(--blue-color);
        color: white;
    }
    100% {
        background-color: var(--brown-color);
        color: var(--dark-text-color);
    }
}

@-webkit-keyframes color-change {
    0% {
        background-color: var(--brown-color);
        color: var(--dark-text-color);
    }
    50% {
        background-color: var(--blue-color);
        color: white;
    }
    100% {
        background-color: var(--brown-color);
        color: var(--dark-text-color);
    }
}

textarea {
    padding: 10px;
}

textarea,
textarea::placeholder {
    resize: none;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
}

textarea::placeholder {
    color: var(--light-text-color);
}

.mud-progress-circular {
    color: var(--brown-color);
}

#fileInput::file-selector-button {
    display: none;
}

#fileInput::-webkit-file-upload-button,
#fileInput::-ms-browse  {
    display: none;
}

.chat-sending-progress {
    color: var(--chat-loader-color);
}

.chat-sending-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--chat-loader-background-color);
    border-top-color: var(--chat-loader-color);
    border-radius: 50%;
    animation: chat-spin 0.8s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
}

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

.chat-elevated-card {
    background: var(--default-background-color);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
    height: 100%;
    overflow: hidden;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.chat-list-container {
    flex: 0 0 auto;
    width: 25%;
    height: calc(100vh - 120px);
    height: calc(100svh - 120px);
    padding: 16px 8px 16px 16px;
}

.chat-filter-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: none;
}

.chat-filter-pills::-webkit-scrollbar {
    display: none;
}

.chat-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    background: var(--mud-palette-background-gray);
    color: var(--mud-palette-text-primary);
    transition: all 0.15s ease;
    border: none;
    user-select: none;
}

.chat-filter-pill:hover {
    background: var(--mud-palette-gray-lighter);
}

.chat-filter-pill-active {
    background: var(--mud-palette-primary);
    color: white;
}

.chat-filter-pill-active:hover {
    background: var(--mud-palette-primary-darken);
}

.chat-filter-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.1);
}

.chat-filter-pill-active .chat-filter-pill-count {
    background: rgba(255, 255, 255, 0.25);
}

.chat-filter-pills-compact {
    gap: 4px;
    padding: 6px 8px 6px;
}

.chat-filter-pills-compact .chat-filter-pill {
    padding: 3px 10px;
    font-size: 11px;
}

.chat-filter-pills-compact .chat-filter-pill-count {
    min-width: 16px;
    height: 16px;
    font-size: 10px;
}

.chat-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.chat-message {
    flex: 0 0 auto;
    width: 75%;
    height: calc(100vh - 120px);
    height: calc(100svh - 120px);
    padding: 16px 16px 16px 8px;
}

.chat-message-full {
    flex: 0 0 auto;
    width: 100%;
    height: calc(100vh - 120px);
    height: calc(100svh - 120px);
    padding: 16px;
}

.chat-message-with-panel {
    flex: 0 0 auto;
    width: 50%;
    height: calc(100vh - 120px);
    height: calc(100svh - 120px);
    padding: 16px 8px;
}

.chat-settings-panel {
    flex: 0 0 auto;
    width: 25%;
    height: calc(100vh - 120px);
    height: calc(100svh - 120px);
    padding: 16px 16px 16px 0;
}

.chat-settings-panel-inner {
    background: var(--default-background-color);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    height: 100%;
}

.chat-message-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages-scroll-wrapper {
    flex: 1;
    min-height: 0;
}

.chat-messages-scroll-wrapper > .scroll-hidden {
    height: 100%;
}

.chat-settings-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.chat-settings-option:hover {
    background: #f0f2f5;
}

.chat-settings-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e4e6eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px 0;
}

.gallery-post-card {
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.gallery-post-header {
    padding: 12px 12px 8px 12px;
}

.gallery-post-clickable {
    padding: 0 12px;
    cursor: pointer;
    flex: 1;
}

.gallery-post-clickable:hover {
    opacity: 0.85;
}

.gallery-post-media {
    position: relative;
    width: 100%;
}

.gallery-post-thumbnail {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-post-media .photo-count-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gallery-post-card .mud-button-root:hover,
.gallery-post-card .mud-button-root:focus {
    background-color: transparent !important;
}

@media only screen and (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.chat-settings-option.danger {
    color: var(--payment-debit-color);
}

.chat-settings-option .danger-icon {
    background: var(--payment-debit-opacity-color);
    color: var(--payment-debit-color);
}

.chat-message-sender > * button {
    display: none;
}

.chat-message-body ,
.chat-message-name-time {
    font-family: "Poppins", sans-serif !important;
    font-weight: 400;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.chat-message-body {
    font-size: 16px;
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}

.chat-message-name-time {
    font-size: 14px;
    color: var(--light-text-color);
    opacity: 40%;
}

.chat-message-video, 
.chat-message-file {
    max-width: 40vw;
}

.chat-message-photo {
    object-fit: contain;
    max-height: 300px;
    max-width: 400px;
    border-radius: 20px;
}

.chat-message-video {
    max-width: 400px;
}

.chat-video-processing {
    position: relative;
    display: inline-block;
}

.chat-video-processing-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.chat-drop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 118, 210, 0.15);
    backdrop-filter: blur(2px);
    border: 3px dashed #1976d2;
    border-radius: 12px;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.chat-drop-active .chat-drop-overlay {
    display: flex;
}

.chat-drop-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #1976d2;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(25, 118, 210, 0.15);
}

.chat-drop-overlay-content i {
    font-size: 2.5rem;
}

@media (max-width: 600px) {
    .chat-message-video {
        max-width: 50vw;
    }
}

@media only screen and (max-width: 960px) {
    .chat-list-container,
    .chat-message,
    .chat-message-with-panel {
        flex: 0 0 auto;
        width: 100%;
        padding: 0;
    }

    .chat-elevated-card {
        border-radius: 0;
        box-shadow: none;
    }

    .chat-message-sender > * button {
        display: block;
    }

    .chat-settings-panel {
        width: 100%;
        position: absolute;
        right: 0;
        top: 0;
        z-index: 10;
        padding: 0;
    }

    .chat-settings-panel-inner {
        border-radius: 0;
    }
}

.chat-message-file {
    width: fit-content;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: normal !important;
}

.chat-message-system-information {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--light-text-color);
    opacity: 40%;
}

/* Link Preview Card */
.link-preview-card {
    display: block;
    color: inherit;
    transition: opacity 0.2s;
}

.link-preview-card:hover {
    opacity: 0.9;
}

.link-preview-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.input-text-area,
.input-text-area.valid.modified,
.input-text-area.invalid {
    min-height: 40px;
    max-height: 150px !important;
    padding: 8px 8px 8px 4px;
    overflow-y: auto;
    user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
    word-break: break-word;
    white-space: pre-wrap;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.5;
}

.autoExpand {
    width: 100%;
    min-height: 34px;
    resize: none;
}

.comment-dialog {
    flex: 0 0 auto;
    height: calc(100vh - 205px);
    height: calc(100svh - 205px);
}

@media (min-width: 768px){
    .mt-80 {
    margin-top: 80px !important;
    }
}

.mw-75 {
    max-width: 75%;
}

.mw-100 {
    max-width: 100%;
}

#back-button {
    cursor: pointer;
}

.mud-appbar {
    z-index: 999;
}

.blazored-modal-container {
    z-index: 9999;
}

.rodo-clause-message {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--dark-text-color);
}

.br-8 {
    border-radius: 8px;
}

.br-12 {
    border-radius: 12px;
}

.br-16 {
    border-radius: 16px;
}

.menu-navlink-icon {
    font-size: 16px;
}

.balance-card {
    display: flex;
    align-items: center;
    min-height: 54px;
    background-color: var(--kidstime-purple);
    border-radius: 8px;
    padding-inline: 16px;
}

.institution-logo {
    width: auto !important;
}

.prevent-select {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.dashboard-header {
    background-color: transparent;
    padding: 1.25rem;
    border-radius: 1rem 1rem 0 0 ;
}

.dashboard-header h2 {
    font-family: "Poppins", sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-text-color);
}

.dashboard-element {
    background-color: transparent;
    border-radius: 0 0 1rem 1rem;
    padding: 1.25rem 1rem;
}

.dashboard-element >* .mud-chart {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.dashboard-element >* .mud-chart-legend {
    flex-direction: column;
}

.dashboard-element >* .mud-typography-body2,
.dashboard-label {
    font-size: 0.875rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}

.mud-chart .mud-chart-legend  {
    max-width: max-content;
}

.mud-chart .mud-chart-legend .mud-chart-legend-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.35rem;
}

.dashboard-label {
    text-align: center;
}

.dashboard-text-important {
    color: var(--payment-income-color);
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
}

.alert-info {
    color: var(--dark-text-color);
    background-color: var(--brown-color);
    border-color: transparent;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    border-radius: 14px;
    font-size: 12px;
}

#layout {
    background-color: var(--default-background-color);
    display: grid;
    grid-template-areas:
            "nav header"
            "nav main";
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    height: 100vh;
    height: 100dvh;
}

.mud-layout header {
    grid-area: header;
    position: static !important;
}

.mud-main-content {
    grid-column-end: -1;
    padding-top: 0;
}

.mud-layout #main-content {
    grid-area: main;
    overflow-y: auto;
}

.mud-layout #main-content.institution-page {
    overflow-y: hidden;
}

.mud-layout aside {
    grid-area: nav;
    position: static !important;
}

@media(max-width: 959px){
    .mud-layout aside {
        position: fixed !important;
    }
}

.mud-alert-filled-success {
    background-color: var(--payment-income-color);
}

.mud-alert-filled-error {
    background-color: var(--payment-debit-color);
}

.mud-button-filled:hover.unclickable, .mud-button-filled:focus-visible.unclickable,
.mud-button:hover.unclickable, .mud-button:focus-visible.unclickable,
.unclickable.mud-list-item-clickable:hover,
.unclickable.mud-list-item-clickable:active {
    background-color: #fff !important;
    box-shadow: none !important;
    cursor: auto !important;
}

.cursor-pointer {
    cursor: pointer
}

.mud-button-full-height {
    height: calc(100% - 16px) !important;
    align-items: flex-start;
}

.button-center-content > span {
    display: flex !important;
    align-items: center;
}

.vh-90 {
    height: 90vh;
}

.vw-90 {
    width: 90vw;
}

.vh-80 {
    height: 80vh;
}

.vw-80 {
    width: 80vw;
}

.vw-75 {
    width: 75vw;
}

.breadcrumb-container-big {
    min-height: 205px;
}

.breadcrumb-container-small {
    min-height: 145px;
}

.breadcrumb a {
    max-width: 150px;
    text-overflow: ellipsis;
    overflow: clip;
    white-space: nowrap;
    display: inline-block;
}

.h-0 {
    height: 0;
}

.container-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.container-image img {
    position: absolute;
    height: 100%;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
}

.line-height-1 {
    line-height: 1 !important;
}

.radio-group .mud-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.radio-group .mud-icon-button {
    padding: 8px;
}

.radio-group .mud-icon-size-medium {
    font-size: 1.25rem;
}

.radio-group .mud-typography-body1 {
    font-size: 14px;
    font-weight: 600;
}

.survey .mud-radio > .mud-radio-content,
.survey .mud-checkbox > .mud-typography-body1 {
    font-size: 14px;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
}

.survey .mud-icon-button {
    padding: 10px;
}

.survey .mud-icon-root {
    font-size: 1.25rem;
}

.survey .mud-icon-root.mud-svg-icon {
    fill: var(--dark-text-color);
}

.schedule-header {
    display: flex;
    width: 100%;
    height: var(--schedule-cell);
    padding-left: 68px;
}

.schedule-header__day {
    width: 2.5em;
    padding: 0.1875em 1rem;
    flex: 1 0 auto;
    text-align: center;
    position: relative;
    border-left: var(--schedule-border);
    display: grid;
    place-content: center;
}

.schedule-wrapper {
    display: flex;
}

.schedule-events-container {
    display: flex;
    flex-grow: 1;
}

.schedule-time-container {
    width: 4.25rem;
    display: flex;
    flex-direction: column;
}

.schedule-events {
   position: absolute;
    height: 100%;
    width: 100%;
}

.schedule-day {
    width: 2.5em;
    flex: 1 0 auto;
    border-left: var(--schedule-border);
    position: relative;
}

.schedule-day:last-of-type,
.schedule-header__day:last-of-type {
    border-right: var(--schedule-border);
}

.schedule-item {
    border-top: var(--schedule-border);  
    position: relative;
    height: var(--schedule-cell);
    flex: 1 0 auto;
}

.event-box {
    position: absolute;
    display: grid;
    place-content: center;
    border-radius: 16px;
    min-height: 24px;
    padding: 4px 8px;
    text-align: center;
    cursor: pointer;
    z-index: 99;
    width: 100%;
    /*border-top: 1px solid var(--default-background-color);*/
}

.event-box div {
    overflow-wrap: anywhere;
}

.schedule-days {
    margin-left: 70px;
    display: flex;
    position: relative;
    height: calc(26 * var(--schedule-cell))
}

.schedule-hours {
    display: block;
    position: absolute;
    top: var(--schedule-cell);
    width: 100%;
    z-index: 1;
}

.schedule-hour {
    position: relative;
    height: var(--schedule-cell);
}

.schedule-hour .schedule-item {
    width: 100%;    
    border: none;
    
    display: grid;
    place-content: center;
    border-top: var(--schedule-border);
}

@media only screen and (max-width: 767px) {
    .schedule-header {
        padding-left: 3rem;
        height: 72px;
    }
    
    .schedule-header__day {
        padding: 0 0.25rem;
    }

    .schedule-header__day span,
    .schedule-item, .event-box div  {
        font-size: 11px;
    }

    .schedule-time-container {
        width: 3rem;
    }
    
    .event-box {
        border-radius: 6px;
        padding: 2px 4px;
    }
    
    :root {
        --schedule-cell: var(--cell-big);
        --permission-cell : 65px;
    }
}

@media only screen and (max-width: 991px) {
    :root {
        --permission-cell: 80px;
    }
}

.overlapping-previous {
    width: 50%;
    left: 50%;
}

.overlapping-next {
    width: 50%;
    left: 0;
}

.button-transparent-circle {
    border-radius: 50%;
    padding: 6px !important;
    margin: 0;
    height: 40px;
    width: 40px;
    background-color: transparent;
    box-shadow: none !important;
    
    min-width: 0;
}

.custom-mud-select  .mud-input {
    margin-top: 0 !important;
}

.custom-mud-select  .mud-input-slot {
    height: auto !important;
}

.mud-alert-filled-info {
    color: var(--dark-text-color);
    background-color: var(--brown-color);
    font-family: "Poppins", sans-serif;
}

.list-img-square {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
}

.list-small-img-square {
    max-width: 50px;
    max-height: 50px;
    object-fit: cover;
}

.faq-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 350px;
}

.faq-image-container-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 250px;
}

.mud-drop-item:not(.mud-drop-item-preview-start):active {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
    border-radius: 8px;
}

.mud-radio-override .mud-icon-size-medium, 
.mud-radio-override .mud-icon-root {
    font-size: 22px;
}

@media (max-width: 575px){
    .container {
        max-width: 95svw;
    }
}

.mud-chart-legend .mud-typography {
    color: var(--dark-text-color);
    font-size: 13px;
    font-weight: 500;
}

.mud-chart-bar {
    stroke-width: 10;
}

.app-new {
    background-color: var(--default-background-color);
    height: 100%;
}

.non-clickable,
.non-clickable.mud-list-item-clickable:hover,
.non-clickable.mud-list-item-clickable:active,
.non-clickable.mud-list-item-clickable:focus:not(.mud-selected-item) {
    background: none;
    cursor: default;
}

legend {
    float: none;
}

/* Floating Chat Widget */
.floating-chat-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    cursor: pointer;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--dark-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(11, 32, 76, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-chat-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 32, 76, 0.4);
}

.floating-chat-fab:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(11, 32, 76, 0.3);
}

.floating-chat-icon {
    color: #fff;
    font-size: 22px;
}

.floating-chat-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--payment-debit-color);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}

.floating-chat-panel {
    display: block;
    position: fixed;
    bottom: 0;
    right: 24px;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(11, 32, 76, 0.15);
    z-index: 1000;
    border-radius: 16px 16px 0 0;
    border: 1px solid #ECECEC;
    border-bottom: none;
    font-family: "Poppins", sans-serif;
}

.floating-chat-panel .mud-typography,
.floating-chat-panel .mud-list-item,
.floating-chat-panel pre {
    font-family: "Poppins", sans-serif !important;
}

.floating-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--dark-text-color);
    color: #fff;
    border-radius: 16px 16px 0 0;
    user-select: none;
}

.floating-chat-header-badge {
    background: var(--payment-debit-color);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    line-height: 1;
}

.floating-chat-header-action {
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.floating-chat-header-action:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Institution select dialog */
.institution-select-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.institution-select-card:hover {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(11, 32, 76, 0.08);
}

.institution-select-card-inactive {
    opacity: 0.55;
}

.institution-select-card-inactive:hover {
    opacity: 0.8;
}

.institution-logo-container {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.institution-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.institution-tab-count {
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    line-height: 1;
}

.institution-tab-count-active {
    background: var(--light-green-opacity-color);
    color: var(--payment-income-color);
}

.institution-tab-count-expiring {
    background: rgba(234, 179, 8, 0.15);
    color: #CA8A04;
}

.institution-tab-count-inactive {
    background: var(--payment-debit-opacity-color);
    color: var(--payment-debit-color);
}

.warning-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--brown-color);
    color: var(--dark-text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    width: 100%;
}

.warning-banner i {
    font-size: 18px;
    flex-shrink: 0;
}

.warning-banner-btn {
    background-color: var(--kidstime-green-color) !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 12px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.chat-guardians-readonly-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--brown-color);
    color: var(--dark-text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    margin: 8px auto;
    width: 95%;
    border-radius: 8px;
}

.chat-guardians-readonly-banner i {
    font-size: 14px;
    flex-shrink: 0;
}

.floating-chat-drag-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    cursor: grabbing;
    touch-action: none;
}

/* Floating Chat Widget – Messenger-style chat list */
.fcw-chat-list {
    padding: 4px 0;
}

.fcw-chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-radius: 8px;
    margin: 0 4px;
}

.fcw-chat-item:hover {
    background: var(--mud-palette-background-gray);
}

.fcw-chat-item:active {
    background: #e4e6ea;
}

.fcw-chat-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #e4e6ea;
}

.fcw-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fcw-chat-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fcw-chat-name {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcw-chat-item-unread .fcw-chat-name {
    font-weight: 700;
}

.fcw-chat-preview {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #65676b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcw-chat-item-unread .fcw-chat-preview {
    font-weight: 600;
    color: var(--dark-text-color);
}

.fcw-chat-typing {
    font-style: italic;
    color: var(--mud-palette-primary);
}

.fcw-chat-unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mud-palette-primary);
    flex-shrink: 0;
}

.fcw-favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.fcw-favorite-btn:hover {
    opacity: 1;
}

/* Floating Chat Widget – Search box */
.fcw-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 8px 2px;
    padding: 6px 10px;
    border-radius: 20px;
    background: #f0f2f5;
    border: 1px solid transparent;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.fcw-search-box:focus-within {
    background: #fff;
    border-color: var(--mud-palette-primary);
}

.fcw-search-icon {
    font-size: 12px;
    color: #65676b;
    flex-shrink: 0;
}

.fcw-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    color: var(--dark-text-color);
    min-width: 0;
}

.fcw-search-input::placeholder {
    color: #65676b;
}

.fcw-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #65676b;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transition: background 0.15s ease;
}

.fcw-search-clear:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Chats page – Messenger-style chat list */
.chats-list {
    padding: 4px 0;
}

.chats-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-radius: 8px;
    margin: 0 4px;
}

.chats-list-item:hover {
    background: var(--mud-palette-background-gray);
}

.chats-list-item:active {
    background: #e4e6ea;
}

.chats-list-avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #e4e6ea;
}

.chats-list-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chats-list-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chats-list-top-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.chats-list-name {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.chats-list-item-unread .chats-list-name {
    font-weight: 700;
}

.chats-list-time {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #65676b;
    white-space: nowrap;
    flex-shrink: 0;
}

.chats-list-item-unread .chats-list-time {
    color: var(--mud-palette-primary);
    font-weight: 600;
}

.chats-list-bottom-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chats-list-preview {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #65676b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.chats-list-item-unread .chats-list-preview {
    font-weight: 600;
    color: var(--dark-text-color);
}

.chats-list-typing {
    font-style: italic;
    color: var(--mud-palette-primary) !important;
}

.chats-list-indicators {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: var(--dark-text-color);
}

.chats-list-unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mud-palette-primary);
}

/* Registration wizard */
.register-step-indicator {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.register-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.register-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    background: #e8ecf4;
    color: var(--light-text-color);
    transition: all 0.2s ease;
}

.register-step-circle.active {
    background: var(--brown-color);
    color: var(--dark-text-color);
    box-shadow: 0 2px 8px rgba(251, 195, 10, 0.4);
}

.register-step-circle.completed {
    background: var(--payment-income-color);
    color: white;
}

.register-step-connector {
    flex: 1;
    height: 2px;
    background: #e8ecf4;
    margin-top: 19px;
    min-width: 20px;
    transition: background 0.2s ease;
}

.register-step-connector.completed {
    background: var(--payment-income-color);
}

.register-step-label {
    font-size: 11px;
    color: var(--light-text-color);
    margin-top: 6px;
    text-align: center;
    font-family: "Poppins", sans-serif;
    max-width: 90px;
}

.register-step-label.active {
    color: var(--dark-text-color);
    font-weight: 500;
}

.register-section-title {
    font-size: 18px;
    border-bottom: 2px solid var(--brown-color);
    padding-bottom: 8px;
}

.register-summary-section {
    background: var(--default-background-color);
    border-radius: 12px;
    padding: 16px;
}

@media (max-width: 576px) {
    .register-step-label {
        font-size: 9px;
        max-width: 60px;
    }

    .register-step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .register-step-connector {
        margin-top: 15px;
    }

    .register-step-item {
        min-width: 50px;
    }
}

/* Admin registered institutions */
.admin-map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* AI Assistant Widget */
.ai-assistant-fab {
    position: fixed;
    bottom: 100px;
    left: 24px;
    z-index: 1000;
    cursor: pointer;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-assistant-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.ai-assistant-fab:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.ai-assistant-icon {
    color: #fff;
    font-size: 22px;
}

.ai-assistant-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 380px;
    height: 520px;
    background-color: #fff;
    box-shadow: 0 8px 32px rgba(11, 32, 76, 0.15);
    z-index: 1000;
    border-radius: 16px;
    border: 1px solid #ECECEC;
    font-family: "Poppins", sans-serif;
    overflow: hidden;
}

.ai-assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    user-select: none;
    flex-shrink: 0;
}

.ai-assistant-header-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
    font-size: 14px;
}

.ai-assistant-header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-assistant-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 24px;
}

.ai-assistant-message {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.ai-assistant-message.user-message {
    flex-direction: row-reverse;
}

.ai-assistant-message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
}

.ai-assistant-message-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.ai-assistant-message-bubble.user-bubble {
    background: var(--dark-text-color);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ai-assistant-message-bubble.assistant-bubble {
    background: #f3f4f6;
    color: #1f2937;
    border-bottom-left-radius: 4px;
}

.ai-assistant-typing {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.ai-assistant-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9ca3af;
    animation: ai-typing-bounce 1.4s infinite ease-in-out both;
}

.ai-assistant-typing span:nth-child(1) { animation-delay: 0s; }
.ai-assistant-typing span:nth-child(2) { animation-delay: 0.16s; }
.ai-assistant-typing span:nth-child(3) { animation-delay: 0.32s; }

@keyframes ai-typing-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.ai-assistant-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #ECECEC;
    flex-shrink: 0;
}

.ai-assistant-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-family: "Poppins", sans-serif;
    resize: none;
    outline: none;
    max-height: 80px;
    line-height: 1.4;
}

.ai-assistant-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.ai-assistant-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}

.ai-assistant-send-btn:hover:not(:disabled) {
    opacity: 0.85;
}

.ai-assistant-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ai-assistant-drag-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    cursor: grabbing;
    touch-action: none;
}

@media (max-width: 480px) {
    .ai-assistant-panel {
        width: calc(100vw - 16px);
        left: 8px !important;
        bottom: 8px !important;
        height: 70vh;
    }
}