body{
        font-family: "Open Sans", sans-serif;
        height:100vh;
        overflow: hidden;
        padding: 0;
        margin:0;
}

@media (max-width: 720px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
    }
}
:root {
    --day-monday: #B0BEC5; /* Cool Gray */
    --day-tuesday: #4DB6AC; /* Teal */
    --day-wednesday: #81C784; /* Green */
    --day-thursday: #64B5F6; /* Sky Blue */
    --day-friday: #FFD54F; /* Golden Yellow */
    --day-saturday: #EF5350; /* Vibrant Red - Primary */
    --day-sunday: #FB8C00; /* Bold Orange - Secondary */
    --affiliBlue: #00488b; /* Your primary blue */
    --sl-input-border-color-focus: var(--affiliBlue) !important;
    --sl-input-focus-ring-color: hsl(160, 99%, 22% / 40%);
    --sl-input-label-color: #767676 !important;
    --toolbarColor: rgb(225, 225, 225);
    --trimColor: #e1e1e1;
    --window-bg-light: #ffff;
    --window-bg-dark: #767676;
    --text-color-dark: rgb(118, 118, 118);
    --sl-color-primary-600: #00488b;
    --text-color-light: var(--sl-color-gray-500);
    --text-color: var(--text-color-light);
    --wallpaper-bg-light: url('farmersmarket.svg') no-repeat center / cover, linear-gradient(180deg, rgb(255, 255, 255), rgb(209, 236, 255));
    --wallpaper-bg-dark: url('farmersmarket_dark.svg') no-repeat center / cover, linear-gradient(180deg, rgb(40, 40, 40), rgb(60, 60, 60));
    --border-color: var(--sl-color-neutral-200);
    --grayBackground: #fafafa;
}

:root { --sl-z-index-dropdown: 2000; }  /* or higher */

.day-dot[data-day="Monday"] { background-color: var(--day-monday); }
.day-dot[data-day="Tuesday"] { background-color: var(--day-tuesday); }
.day-dot[data-day="Wednesday"] { background-color: var(--day-wednesday); }
.day-dot[data-day="Thursday"] { background-color: var(--day-thursday); }
.day-dot[data-day="Friday"] { background-color: var(--day-friday); }
.day-dot[data-day="Saturday"] { background-color: var(--day-saturday); }
.day-dot[data-day="Sunday"] { background-color: var(--day-sunday); }

.day-color[data-day="Sunday"] { background-color: var(--day-sunday); }
.day-color[data-day="Monday"] { background-color: var(--day-monday); }
.day-color[data-day="Tuesday"] { background-color: var(--day-tuesday); }
.day-color[data-day="Wednesday"] { background-color: var(--day-wednesday); }
.day-color[data-day="Thursday"] { background-color: var(--day-thursday); }
.day-color[data-day="Friday"] { background-color: var(--day-friday); }
.day-color[data-day="Saturday"] { background-color: var(--day-saturday); }

.flexRow { display: flex; flex-direction: row; }
.flexColumn { display: flex; flex-direction: column; }
.flexFill { flex: 1; }

#volunteer_dashboard.volunteer-dashboard-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: stretch;
    align-content: flex-start;
    grid-auto-flow: dense;
    padding: 0 16px 32px;
    max-width: 1200px;
    margin: 32px auto 0;
}

@media (max-width: 720px) {
    #volunteer_dashboard.volunteer-dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 0 10px 40px;
        margin: 12px auto 0;
        width: 100%;
        max-width: 100%;
        justify-items: stretch;
    }
}

.dashboard-widget {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    user-select: none;
}

.dashboard-widget:hover,
.dashboard-widget:focus-within {
    transform: translateY(-2px);
}

.dashboard-widget--dragging {
    opacity: 0.7;
    cursor: grabbing;
    transform: scale(0.98);
    box-shadow: 0 12px 30px rgba(0, 72, 139, 0.2);
}

@media (max-width: 720px) {
    .dashboard-widget {
        cursor: default;
        width: 100%;
        margin: 0;
    }
    .dashboard-widget:hover,
    .dashboard-widget:focus-within {
        transform: none;
    }
}

.error-message {
    color: red;
    font-size: 11px;
    margin-top: -10px;
    margin-left: 18px;
    opacity: 0;
}

.imageInput_imageBox_deleteBtn {
    width: 24px;
    height: 24px;
    color: white;
    font-size: x-large;
    cursor: pointer;
}

.imageInput_imageBox_deleteRow {
    height: 24px;
    background-color: var(--affiliBlue);
}

.imageInput_imageBox {
    width: 150px;
    height: 125px;
    margin: 5px;
}

.application_imageuploadList {
    height: 135px;
}

.window_sub {
    background: #FAFCFE;
    height: 100vh;
}

.toolbar_sub {
    height: 40px;
}

.imageuploadBtn {
    width: 125px;
}

.text-theme {
    color: var(--text-color);
}

:root.sl-theme-dark {
    --trimColor: #4a4a4a; /* Dark mode trim color */
}

:root.sl-theme-light {
    --border-color: #e2e2e3; /* Light theme border color */
}

:root.sl-theme-dark h1,
:root.sl-theme-dark h2,
:root.sl-theme-dark .text {
    color: var(--text-color-dark);
}

:root.sl-theme-light h1,
:root.sl-theme-light h2,
:root.sl-theme-light .text {
    color: #767676;
}

:root.sl-theme-dark .menuSub {
    background-color: #252529;
}

:root.sl-theme-light .menuSub {
    background-color: var(--sl-color-primary-700);
}

:root.sl-theme-dark .menu {
    background-color: rgb(26, 26, 30);
    border-right: 2px solid var(--border-color);
}

:root.sl-theme-light .menu {
    background-color: var(--affiliBlue);
}

:root.sl-theme-dark .window {
    background: var(--window-bg-dark);
    border: 2px solid transparent;
    border-radius: 24px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

:root.sl-theme-light .window {
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(45.12deg, #217bfe, #078efb, #ac87eb, #ee4d5d) border-box;
    border: 2px solid transparent;
    border-radius: 24px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

:root.sl-theme-light .toolbar_sub {
    background: white;
}

:root.sl-theme-light .window_plain {
    background: #fff;
}

:root.sl-theme-dark .window_plain {
    background: #1B1B1F;
}

#volunteer_dashboard {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    background-color: #fff;
}

@media (max-width: 720px) {
    #volunteer_dashboard {
        padding: 12px clamp(10px, 5vw, 20px) 32px;
    }
}

.task_widget_card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(16, 49, 130, 0.08);
    border: 1px solid rgba(16, 49, 130, 0.08);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    cursor: pointer;
}
@media (max-width: 720px) {
    .task_widget_card {
        border-radius: 16px;
        padding: 16px 18px;
        box-shadow: 0 10px 18px rgba(16, 49, 130, 0.08);
        width: 100%;
    }
}

.task_widget_header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task_widget_title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #103182;
}

.task_widget_meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.task_widget_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.task_widget_badge--count {
    background: rgba(16, 49, 130, 0.9);
    color: #ffffff;
}

.task_widget_badge--average {
    background: rgba(255, 255, 255, 0.9);
    color: #103182;
    border: 1px solid rgba(16, 49, 130, 0.2);
}

.task_widget_body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task_widget_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.task_widget_list::-webkit-scrollbar {
    width: 6px;
}

.task_widget_list::-webkit-scrollbar-thumb {
    background: rgba(28, 113, 230, 0.25);
    border-radius: 999px;
}

.task_widget_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #f6f7fb;
    border: 1px solid #e5e9f4;
    border-radius: 12px;
}

.task_widget_item_title {
    font-weight: 600;
    color: #1d2849;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task_widget_due {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.task_widget_due--soon {
    color: #1C71E6;
}

.task_widget_due--overdue {
    color: #E03C31;
}

.task_widget_due--today {
    color: #F89C1C;
}

.task_widget_due--completed {
    color: #2FA628;
}

.task_widget_due--none {
    color: #6b7495;
}

.task_widget_empty {
    font-size: 13px;
    color: #6b7495;
}

.tabIcon {
    margin-right: 5px;
}

.application_field {
    margin-left: 20px;
    margin-right: 20px;
}

.helpText {
    font-size: 0.875rem;
}

.ql-font-serif {
    font-family: 'Times New Roman', serif;
}

.ql-font-monospace {
    font-family: 'Courier New', monospace;
}

.ql-font-arial {
    font-family: 'Arial', sans-serif;
}

.ql-editor {
    background-color: white;
}

.ql-size-huge {
    font-size: 2.5em;
}

.ql-size-large {
    font-size: 1.5em;
}

.ql-size-small {
    font-size: .75em;
}

.fieldNameToolbar {
    width: 25px;
    height: 25px;
    position: absolute;
    left: 0px;
    top: 0px;
    border-bottom-right-radius: 10px;
    font-size: 14px;
}

.fieldNameToolbarIcon {
    margin: auto;
}

.image_tempImageBox {
    width: 350px;
    height: 275px;
    margin: auto;
}

.image_tempImageInstructions {
    text-align: center;
}

.selected {
    background-color: var(--sl-color-primary-50);
    border-color: var(--sl-color-primary-300);
    color: var(--sl-color-primary-700);
    border: 1px solid;
    border-radius: 5px;
}

#volunteerUpcomingShiftCard .task_widget_body {
    gap: 0;
}

#volunteerUpcomingShiftCard .upcoming_shift_content {
    width: 100%;
}

#volunteerUpcomingShiftCard .upcoming_shift_panel {
    background: #f2f7fb;
    border: 1px solid rgba(16, 49, 130, 0.12);
    border-radius: 22px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#volunteerMessageCard .message_widget_body {
    gap: 14px;
}

#volunteerMessageCard .message_widget_empty {
    font-size: 13px;
    color: #6b7495;
}

#volunteerMessageCard .message_widget_content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#volunteerMessageCard .message_widget_sender {
    display: flex;
    align-items: center;
    gap: 12px;
}

#volunteerMessageCard .message_widget_icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f3f5fb;
    border: 1px solid #dbe2f3;
    padding: 6px;
    object-fit: contain;
    box-sizing: border-box;
}

#volunteerMessageCard .message_widget_sender_info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#volunteerMessageCard .message_widget_name {
    font-weight: 600;
    color: #1d2849;
}

#volunteerMessageCard .message_widget_time {
    font-size: 12px;
    color: #6b7495;
}

#volunteerMessageCard .message_widget_preview {
    font-size: 14px;
    line-height: 1.45;
    color: #4f5a7b;
}

#volunteerMessageCard .message_widget_text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#volunteerUpcomingShiftCard .upcoming_shift_role {
    font-size: 1.35rem;
    font-weight: 700;
    color: #103182;
    line-height: 1.25;
    word-break: break-word;
}

#volunteerUpcomingShiftCard .upcoming_shift_status {
    font-size: 1.1rem;
    font-weight: 700;
    color: #6b7495;
}

#volunteerUpcomingShiftCard .upcoming_shift_info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#volunteerUpcomingShiftCard .upcoming_shift_info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

#volunteerUpcomingShiftCard .upcoming_shift_info-label {
    font-weight: 600;
    color: #1d2849;
    min-width: 72px;
}

#volunteerUpcomingShiftCard .upcoming_shift_info-value {
    font-weight: 500;
    color: #1d2849;
}

#volunteerUpcomingShiftCard .upcoming_shift_info-row--volunteers {
    align-items: center;
}

#volunteerUpcomingShiftCard .upcoming_shift_volunteers {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

#volunteerUpcomingShiftCard .upcoming_shift_volunteer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(16, 49, 130, 0.12);
    color: #103182;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

#volunteerUpcomingShiftCard .upcoming_shift_info-empty {
    color: #6b7495;
    font-weight: 500;
    font-size: 12px;
}

#volunteerUpcomingShiftCard .upcoming_shift_status.task_widget_due--today {
    color: #F89C1C;
}

#volunteerUpcomingShiftCard .upcoming_shift_status.task_widget_due--soon {
    color: #1C71E6;
}

#volunteerUpcomingShiftCard .upcoming_shift_status.task_widget_due--overdue {
    color: #E03C31;
}

#volunteerUpcomingShiftCard .upcoming_shift_status.task_widget_due--none {
    color: #6b7495;
}

sl-button[selected]::part(base) {
    background-color: var(--sl-color-primary-50);
    border-color: var(--sl-color-primary-300);
    color: var(--sl-color-primary-700);
}

.fieldImagesUploadedBox,
#requiredItem {
    height: 75px;
    background-color: var(--sl-input-background-color-disabled);
    border: solid 1px var(--sl-input-border-color-disabled);
    opacity: 0.5;
    border-radius: 5px;
}

.venueAppHeader {
    font-size: 18px;
    font-weight: 900;
    margin: auto;
}

.vendorCatHeader {
    font-size: 14px;
    height: 27px;
}

.vendorCatHeaderText {
    font-size: 10px;
    line-height: 23px;
    font-weight: 800;
}

.downCatBtn {
    cursor: pointer;
}

#mySelect {
    width: 250px;
}

.multiselect-group {
    background-color: var(--affiliBlue);
    color: white;
}

.shadow_select,
.btn-group {
    max-width: 200px;
    width: 200px;
}

#applicationBackgroundPicker {
    margin: auto;
}

.applicationToolbarbtn {
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin: auto;
}

.applicationToolbarbtn:hover {
    color: var(--affiliBlue) !important;
}

.headerPosition_left {
    text-align: left;
}

.headerPosition_right {
    text-align: right;
}

.headerPosition_center {
    text-align: center;
}

.header_1 {
    font-size: var(--sl-font-size-4x-large);
}

.header_2 {
    font-size: var(--sl-font-size-3x-large);
}

.header_3 {
    font-size: var(--sl-font-size-2x-large);
}

.header_4 {
    font-size: var(--sl-font-size-x-large);
}

.header_5 {
    font-size: var(--sl-font-size-large);
}

.header_6 {
    font-size: var(--sl-font-size-medium);
}

#sortableList {
    background-color: white;
    height: 100%;
    flex: 1;
    list-style-type: none;
    padding: 0;
    margin: 0 50px;
    border-left: 1px solid var(--sl-input-border-color-disabled);
    border-right: 1px solid var(--sl-input-border-color-disabled);
    overflow-y: scroll;
}

.sortable-item {
    padding: 15px;
    margin: 5px;
    font-size: 18px;
    cursor: grab;
    border: 1px solid #ddd;
    position: relative;
}

.sortable-item:hover {
    background-color: #5BB7F7;
}

#fieldProperties_okBtn {
    margin-top: 20px;
    width: 100px;
    margin-left: auto;
    margin-right: 0px;
}

.headerIcon {
    color: rgb(33, 123, 254);
    font-size: 24px;
}

.text-gradient {
    background: linear-gradient(103deg, rgb(33, 123, 254), rgb(7, 142, 251), rgb(172, 135, 235), rgb(238, 77, 93));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
}

.headerIconBox {
    width: 24px;
    height: 24px;
    color: rgb(33, 123, 254);
    display: flex;
}

#builderScreen {
    overflow-y: scroll;
}

#background_panel {
    width: 100%;
}

#applications_base {
    height: 100vh;
}

#documentsListBase {
    width: 100% !important;
}

#documentsTable {
    width: 100% !important;
}

#documentsTable_filter {
    display: none !important;
}

#documentsIconBase {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

#searchableSelect + .select2-container .select2-selection--single {
    height: 40px !important;
    line-height: 40px !important;
    display: flex;
    align-items: center;
}

#searchableSelect + .select2-container .select2-selection__rendered {
    line-height: 40px !important;
}

#searchableSelect + .select2-container .select2-selection__arrow {
    height: 40px !important;
}

#searchableSelect + .select2-container .select2-selection__clear {
    height: 40px !important;
    line-height: 40px !important;
    display: flex;
    align-items: center;
}

.select-label {
    color: var(--sl-input-label-color);
}

#wait {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#wait-inner {
    display: flex;
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#users_base {
    height: 100vh;
}

#addUserButton {
    margin-left: 40px;
}

.smallText {
    font-size: 14px;
}



.extraSmallText {
    font-size: 10px;
}

.bold {
    font-weight: 900;
}

sl-tab-panel::part(base) {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.full-height {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.full-height sl-tab-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.full-height sl-tab-panel {
    flex: 1;
    overflow: auto;
}

.sw-theme-dots > .nav .nav-link.active::after {
    background-color: var(--affiliBlue) !important;
    box-shadow: 0 1px 7px 1px rgba(0, 0, 0, 0.3);
}

.sw-theme-dots > .nav .nav-link.active {
    color: var(--affiliBlue) !important;
    cursor: pointer;
}

.sw-theme-dots > .nav .nav-link.done {
    color: var(--sw-anchor-default-secondary-color);
    cursor: pointer;
}

.sw-theme-dots > .nav .nav-link.done::after {
    background-color: var(--sw-anchor-default-secondary-color) !important;
}

td.dt-control::before {
    content: "▼";
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 0.2s ease-in-out;
    margin-right: 5px;
    color: #555;
}

tr.details td.dt-control::before {
    transform: rotate(90deg);
}

.child-row {
    border-top: solid 1px rgb(113, 113, 122);
}

#wallPaper {
    background:
        radial-gradient(140% 85% at 50% 0%, rgba(255,255,255,0.9), rgba(231,242,255,0.85) 45%, rgba(211,232,255,0.95) 80%) ,
        var(--wallpaper-bg-light);
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(24px, 6vh, 64px) clamp(18px, 4vw, 48px) max(40px, env(safe-area-inset-bottom));
}

.windowContent {
    min-width: 100%;
    height: 100%;
}

#windowContent1{
        padding: 0px 20px 0px;
}

#loginContainer {
    width: min(100%, 500px);
    margin: 40px auto;
    background-color: transparent;
    border-radius: 24px;
    padding: 0 12px;
}

#loginContainer.window {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.login-container {
    justify-content: center;
    align-items: center;
    padding: 32px 0;
}

.login-card-wrapper {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

@media (min-width: 600px) {
    .login-card-wrapper {
        min-width: auto;
        width: 100%;
    }
}

.login-card {
    width: min(100%, 420px);
    background: linear-gradient(180deg, #ffffff, #fefefe);
    border-radius: 28px;
    padding: 44px 48px 38px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.28);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.login-card::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    pointer-events: none;
}

@media (max-width: 600px) {
    #wallPaper {
        padding: max(12px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
        align-items: flex-start;
        justify-content: center;
    }
    #loginContainer {
        width: 100%;
        margin: 12px auto;
        padding: 0;
    }
    .login-container {
        padding: 16px 0;
    }
    .login-card-wrapper {
        width: 100%;
    }
    .login-card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 30px 24px 32px;
        border-radius: 22px;
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    }
}

@media (max-width: 420px) {
    .login-card {
        padding: 26px 18px 30px;
    }
}

.create-account-card {
    gap: 8px;
    max-height: none;
    overflow: visible;
    padding: 14px 20px 12px;
}

.create-account-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2px;
}

.create-account-stepper__step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--affiliBlue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--affiliBlue);
    background: #fff;
    opacity: 0.4;
    transition: all 0.2s ease;
}

.create-account-stepper__step.is-active,
.create-account-stepper__step.is-complete {
    background: var(--affiliBlue);
    color: #fff;
    opacity: 1;
}

.create-account-stepper__connector {
    flex: 1;
    height: 2px;
    background: rgba(71, 85, 105, 0.2);
}

.create-account-stepper__step.is-complete + .create-account-stepper__connector {
    background: var(--affiliBlue);
}

.create-account-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.create-account-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.create-account-step[hidden] {
    display: none !important;
}

.create-account-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.password-rules {
    list-style: none;
    margin: 6px 0 8px;
    padding: 0;
    font-size: 0.85rem;
    color: #555;
}

.password-rules .listItem {
    display: block;
    width: fit-content;
    margin: 0 0 4px;
}

.password-rules .listItem.rule-met {
    background: linear-gradient(45deg, #217bfe, #078efb, #ac87eb, #ee4d5d);
    -webkit-background-clip: text;
    color: transparent;
    text-decoration-line: line-through;
    text-decoration-color: rgba(33, 123, 254, 0.8);
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: auto;
}

.create-account-nav {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
}

.create-account-nav .nav-btn::part(base) {
    min-width: 120px;
}

@media (max-width: 480px) {
    .create-account-stepper {
        gap: 8px;
    }
    .create-account-stepper__step {
        width: 32px;
        height: 32px;
    }
    .create-account-nav {
        flex-direction: column;
        align-items: stretch;
    }
}

.create-account-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: -10px 0 -4px;
}

.login-logo {
    display: flex;
    justify-content: center;
}

.login-card #affiliLogo_box {
    margin-top: 0;
}

.login-subtitle {
    margin: -4px 0 8px;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
}

.login-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.login-fields sl-input,
.login-fields .passwordinput {
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.login-fields sl-input::part(base) {
    width: 100%;
}

.login-links {
    display: flex;
    justify-content: flex-end;
}

.login-link {
    font-size: 0.85rem;
    color: var(--affiliBlue);
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

.login-actions {
    display: flex;
}

.login-submit::part(base) {
    width: 100%;
    height: 46px;
    font-weight: 600;
    font-size: 0.95rem;
}

.login-secondary {
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #475569;
    margin-top: 4px;
}

.login-secondary__cta {
    background: none;
    border: none;
    padding: 0;
    font-weight: 600;
    color: var(--affiliBlue);
    cursor: pointer;
}

.login-secondary__cta:hover {
    text-decoration: underline;
}

#affiliLogo_box {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    margin-left: 10px;
    margin-top: auto;
    margin-bottom: auto;
    border: 1px solid var(--trimColor);
}

#affiliLogo_logo {
    width: 90%;
    height: 90%;
    margin-left: 2px;
}

#loginText {
    font-family: "Open Sans", sans-serif;
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.75rem;
    text-align: center;
}


#welcomeText{
    margin: 20px;;
}


#verifyText{
    color: #767676;
    margin: 20px;
}

#obscureEmail {
    font-weight: 900;
    color: var(--affiliBlue);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#emailInput{
    width:275px;
}

#verifyBtn{
    margin-left: 10px;
}

#toomanyText{
    font-size: 18px;
    margin:20px;
    text-align: center;
    margin-top: 40px;
    font-weight: 500;
}

.passwordinput{
    width:325px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
}

#submitPasswordBtn{
    margin-left: auto;
    margin-right: 20px;
    margin-bottom: 20px;
}

.contentPanel{
    height:100%;
}

html, body, .container, sl-tab-group {
  height: 100%;
}

sl-tab-group {
  height: 100%;
  display: flex;
  flex-direction: column;
}

sl-tab-panel {
  height: 100%;
}


.contentPanel {
  flex: 1; /* take up remaining space */
  overflow: auto;
}


#tabContainer {
  display: flex;
  flex-direction: column;
  height: 100vh; /* or 100% if its parent is full-height */
}



sl-tab-group::part(body) {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0; /* allows shrinking inside flex */
}

sl-tab-group::part(base) {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0; /* allows shrinking inside flex */
}

#passwordInstructions{
    margin-left:40px;
    margin-right:40px;
}

.no-bullet,
.password-rules {
  list-style-type: none;
  padding-left: 0; /* optional, removes indent */
  margin-left:40px;
  margin-right: 40px;
}





.shepherd-header {
    background: var(--sl-color-primary-600) !important;
    color:white !important;
    padding: 1em;
}

.shepherd-title{
    color:white;
}
.shepherd-element.shepherd-has-title[data-popper-placement^=bottom]>.shepherd-arrow:before {
    background-color: var(--sl-color-primary-600) !important  ;
}

.button--outline.button--primary {
    border-color: var(--sl-color-primary-600);
    color: var(--sl-color-primary-600);
}

.button--medium {
    height: auto;
    min-height: var(--sl-input-height-medium);
    font-size: var(--sl-button-font-size-medium);
    line-height: calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2);
    border-radius: var(--sl-input-border-radius-medium);
}

.shepherd-button {
    background: none !important;
    border-width: 1px !important;
    border: solid !important;
    border-color: var(--sl-color-primary-600) !important;
    color: var(--sl-color-primary-600) !important;
    border-radius: var(--sl-input-border-radius-medium) !important;
    cursor: pointer !important;
    margin-right: .5rem !important;
    padding: .5rem 1.5rem !important;
    transition: all .5s ease !important;
}

.shepherd-button:hover{
    background-color: var(--sl-color-primary-600) !important;
    color: white !important;
    border-color: var(--sl-color-primary-600) !important;   
} 

#messagesContent{
    height:100%;
    overflow: hidden;
}
#layoutContainer {
    width: 100%;
    height: 100%;
}
#message_list {
    height: 100%;
}

.lm_tab:hover, .lm_tab.lm_active {
    background: var(--sl-color-primary-600) !important;
    color: white !important;
}

.lm_header .lm_tab .lm_close_tab {
    width: 11px;
    height: 11px;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAANUlEQVR4nGWNsQ0AMAzCHP7/mS5RRSkbsgVj28Dwx1rgBsBoSwp3SWFPgoamLlTguVBPpXAActAQCth5mLEAAAAASUVORK5CYII=) !important;
    background-position: center center;
    background-repeat: no-repeat;
    right: 6px;
    top: 3px !important;
    opacity: 1 !important;
}

.loading-spinnerBox {
    height: 100px;
    background-color: whitesmoke;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#logoutBox{
    min-width: 200px;
    min-height:45px;
    display:flex;
    align-items:center;
    gap:8px;
    margin-right: 20px;
    cursor: pointer;
}

.user-meta {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-width: 0;
    line-height: 1.2;
}

.user-name-row {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 4px;
}

.user-trigger::part(base) {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.user-trigger:hover::part(base) {
  background: none;
}

#logoutBox .avatar,
#userAvatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 50%;
  margin-right: 6px;
  object-fit: cover;
  display: block;
}

.user-name {
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.user-menu-arrow {
    font-size: 14px;
    color: var(--sl-color-neutral-500, #64748b);
    flex: 0 0 auto;
}

#menu-version::part(base) {
    font-size: 12px;
    color: var(--sl-color-neutral-500, #64748b);
    justify-content: flex-end;
}

.tab-spacer{
    flex:1;
}

.card-header{
    color:white;
    background: var(--sl-color-primary-600);
}

.grid-stack-item .card {
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 6px;
    background: #fff;
    height: auto !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#body_extra {
    display: none;
    position: absolute;
    top: 0;
    background:var(--grayBackground);
    z-index: 9999;
    height: 100vh;
}

.vnm-item-iconBox{
    width:40px;
    height:40px;
    border-radius:5px;
    overflow: hidden;
    margin-right:5px;
}
.vnm-item-icon{
    width: 100%;
    height: 100%;
    object-fit: cover;
}


    .ne-card{display:flex;align-items:center;gap:10px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
    .ne-cal{width:64px;border-radius:14px;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.12);overflow:hidden}
    .ne-cal-top{background:#e41d22;color:#fff;font-weight:600;font-size:12px;line-height:22px;text-align:center}
    .ne-cal-day{background:#fff;color:#000;font-weight:700;font-size:28px;line-height:42px;text-align:center}
    .ne-info .ne-name{font-weight:600}
    .ne-info .ne-time{font-size:12px;color:#666}

    .card-header{ cursor: move; user-select: none; }

    .message-image-dash{
    display: block;
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    margin: 5px 10px 5px 10px;
    border-radius: 8px;
    object-fit: contain;
}
    

.app-download-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-download-card__message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--sl-color-neutral-800);
}

.app-download-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.app-download-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.app-download-card__badge--apple {
    background: linear-gradient(135deg, #1c1c1e, #2a2a2c);
    color: #fff;
}

.app-download-card__badge--google {
    background: linear-gradient(135deg, #0f9d58, #4285f4);
    color: #fff;
}

.app-download-card__badge:hover,
.app-download-card__badge:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.6);
}

.app-download-card__badgeIcon {
    font-size: 1.2rem;
    line-height: 1;
}

.app-download-card__badgeText {
    font-size: 0.92rem;
}

#confirmPasswordInput::part(suffix) {
    display: none !important;
}

#main{
    background-color: #fff;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
#main_toolbar{
    height: 48px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 10px;
    border-bottom: 1px solid var(--trimColor);
    background: #fff;
}

#main_base{
    flex: 1;
    background-color: #fff;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

#main_base > .messages-panel {
    flex: 1;
    min-height: 0;
}

#AffiliText{
    font-size: 18px;
    line-height: 1.2;
    margin-left: 6px;
}

#mainBreadcrumb{
    margin: 6px 12px 0;
    border-bottom: 1px solid var(--trimColor);
}

@media (max-width: 720px) {
    #main_toolbar {
        flex-wrap: wrap;
        height: auto;
    }
    #AffiliText {
        flex: 1 1 100%;
        font-size: 16px;
        margin-left: 0;
    }
    #main_toolbar .flexFill {
        display: none;
    }
    #logoutBox {
        margin-left: auto;
        margin-right: 0;
    }
    #mainBreadcrumb {
        overflow-x: auto;
        white-space: nowrap;
        margin: 4px 12px 6px;
    }
    #mainBreadcrumb sl-breadcrumb-item::part(base) {
        font-size: 0.9rem;
    }
}

.shifts-detail-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shifts-detail-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.shifts-detail-value {
    font-weight: 600;
    color: #1f2937;
}

.shifts-volunteer-empty {
    font-size: 13px;
}

.venue-card{
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(16, 49, 130, 0.08);
    border: 1px solid rgba(16, 49, 130, 0.08);
}

.messages-panel {
    display: flex;
    gap: 24px;
    background: #f6f8fb;
    border-radius: 24px;
    padding: 24px;
    min-height: 520px;
    height: 100%;
    box-shadow: 0 14px 30px rgba(16, 49, 130, 0.08);
}

.messages-panel__sidebar {
    width: 320px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: inset 0 0 0 1px rgba(16, 49, 130, 0.06);
}

.messages-panel__sidebar-header {
    display: flex;
    justify-content: center;
}

.messages-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(16, 49, 130, 0.12);
    background: #ffffff;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #103182;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.messages-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.messages-button:hover {
    background: rgba(16, 49, 130, 0.08);
    border-color: rgba(16, 49, 130, 0.24);
}

.messages-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.messages-button--primary {
    background: linear-gradient(120deg, #2477f8, #1b53d0);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 20px rgba(36, 119, 248, 0.25);
}

.messages-button--primary:hover {
    background: linear-gradient(120deg, #1e64df, #153fb0);
}

.messages-panel__search {
    position: relative;
}

.messages-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(16, 49, 130, 0.05);
}

.messages-search svg {
    width: 16px;
    height: 16px;
    fill: rgba(16, 49, 130, 0.5);
}

.messages-search input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 0.9rem;
    outline: none;
    color: #1b1f3a;
}

.messages-panel__threads {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.messages-thread {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 14px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.messages-thread:hover {
    background: rgba(16, 49, 130, 0.08);
}

.messages-thread--active {
    background: linear-gradient(120deg, rgba(36, 119, 248, 0.12), rgba(36, 119, 248, 0.05));
    box-shadow: inset 0 0 0 1px rgba(36, 119, 248, 0.35);
}

.messages-thread__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.messages-thread__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #103182;
    min-width: 0;
}

.messages-thread__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messages-thread__time {
    font-size: 0.75rem;
    color: rgba(16, 49, 130, 0.55);
}

.messages-thread__preview {
    font-size: 0.85rem;
    color: rgba(16, 49, 130, 0.7);
    line-height: 1.3;
    max-height: 3.2em;
    overflow: hidden;
}

.messages-thread__preview--muted {
    color: rgba(16, 49, 130, 0.45);
}

.messages-thread__badge {
    background: #ef5350;
    color: #ffffff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.messages-panel__conversation {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: inset 0 0 0 1px rgba(16, 49, 130, 0.06);
}

.messages-panel__conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.messages-panel__participants-names {
    font-size: 1.1rem;
    font-weight: 600;
    color: #103182;
}

.messages-panel__participants-meta {
    font-size: 0.85rem;
    color: rgba(16, 49, 130, 0.6);
    margin-top: 4px;
}

.messages-panel__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.messages-panel__actions .messages-button {
    padding: 8px 12px;
}

.messages-panel__conversation-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.messages-conversation {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.messages-empty {
    text-align: center;
    padding: 40px 24px;
    background: rgba(16, 49, 130, 0.04);
    border-radius: 20px;
    color: rgba(16, 49, 130, 0.7);
}

.messages-empty__sub {
    font-size: 0.85rem;
    margin-top: 8px;
}

.messages-empty--small {
    padding: 20px;
}

.messages-panel__composer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(16, 49, 130, 0.08);
    padding-top: 12px;
}

.messages-panel__composer-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: rgba(16, 49, 130, 0.05);
    border-radius: 16px;
    padding: 10px 12px;
}

.messages-panel__composer-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.messages-panel__composer-attachments[hidden] {
    display: none !important;
}

.messages-icon-button {
    border: none;
    background: rgba(16, 49, 130, 0.1);
    border-radius: 12px;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.messages-icon-button svg {
    width: 18px;
    height: 18px;
    fill: #103182;
}

.messages-icon-button:hover {
    background: rgba(16, 49, 130, 0.18);
}

.messages-icon-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.messages-icon-button--primary {
    background: linear-gradient(120deg, #2477f8, #1b53d0);
}

.messages-icon-button--primary svg {
    fill: #ffffff;
}

.messages-panel__composer textarea {
    flex: 1;
    border: none;
    resize: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #1b1f3a;
    max-height: 180px;
    overflow-y: hidden;
}

.messages-textarea--scroll {
    overflow-y: auto !important;
}

.messages-panel__composer textarea:focus {
    outline: none;
}

.messages-bubble {
    max-width: 70%;
    align-self: flex-start;
    background: rgba(16, 49, 130, 0.07);
    border-radius: 18px;
    padding: 12px 16px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    position: relative;
    box-sizing: border-box;
}

.messages-bubble--own {
    align-self: flex-end;
    background: linear-gradient(120deg, #2477f8, #1b53d0);
}

.messages-bubble__meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(16, 49, 130, 0.7);
}

.messages-bubble--own .messages-bubble__meta {
    color: rgba(255, 255, 255, 0.75);
}

.messages-bubble__name {
    font-weight: 600;
}

.messages-bubble__read {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.messages-bubble__body p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: white;
    word-break: break-word;
}

.messages-bubble__body a {
    color: inherit;
    text-decoration: underline;
}

.messages-bubble__attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-start;
}

.messages-attachment {
    border: none;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.08);
    display: inline-block;
    max-width: 260px;
    width: auto;
}

.messages-attachment img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
}

.messages-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(16, 49, 130, 0.7);
}

.messages-typing__dots {
    display: inline-flex;
    gap: 4px;
}

.messages-typing__dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(16, 49, 130, 0.5);
    animation: typingBounce 1s infinite ease-in-out;
}

.messages-typing__dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.messages-typing__dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.messages-attachment-preview {
    position: relative;
    width: 88px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(16, 49, 130, 0.18);
}

.messages-attachment-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.messages-attachment-preview__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.messages-attachment-preview__remove svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.messages-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.messages-modal[hidden] {
    display: none;
}

.messages-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 23, 43, 0.35);
}

.messages-modal__dialog {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    width: min(520px, 90vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 24px 50px rgba(16, 49, 130, 0.25);
}

.messages-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.messages-modal__header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #103182;
}

.messages-modal__search input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(16, 49, 130, 0.12);
    padding: 10px 14px;
    font-size: 0.9rem;
}

.messages-modal__list {
    flex: 1;
    min-height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.messages-modal--groups .messages-modal__list {
    gap: 4px;
}

.messages-modal--groups .messages-modal__search {
    display: none;
}

.messages-participant {
    border: none;
    background: rgba(16, 49, 130, 0.06);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.messages-participant:hover {
    background: rgba(16, 49, 130, 0.12);
}

.messages-participant__avatar img {
    width: 28px;
    height: 28px;
}

.messages-participant__body {
    flex: 1;
    text-align: left;
}

.messages-participant__name {
    display: block;
    font-weight: 600;
    color: #103182;
}

.messages-participant__meta {
    font-size: 0.8rem;
    color: rgba(16, 49, 130, 0.6);
}

.messages-participant__check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(16, 49, 130, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.messages-participant__check span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
}

.messages-participant--selected {
    background: linear-gradient(120deg, rgba(36, 119, 248, 0.15), rgba(36, 119, 248, 0.05));
    box-shadow: inset 0 0 0 1px rgba(36, 119, 248, 0.35);
}

.messages-participant--selected .messages-participant__check {
    border-color: #2477f8;
    background: #2477f8;
}

.messages-participant--selected .messages-participant__check span {
    background: #ffffff;
}

.messages-group-option {
    border: 1px solid rgba(16, 49, 130, 0.15);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.messages-group-option:hover {
    border-color: rgba(36, 119, 248, 0.6);
    box-shadow: 0 6px 20px rgba(16, 49, 130, 0.08);
}

.messages-group-option__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(16, 49, 130, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #103182;
    flex-shrink: 0;
}

.messages-group-option__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.messages-group-option__body {
    flex: 1;
}

.messages-group-option__name {
    display: block;
    font-weight: 600;
    color: #103182;
}

.messages-group-option__meta {
    display: block;
    font-size: 0.85rem;
    color: rgba(16, 49, 130, 0.65);
    margin-top: 2px;
}

.messages-group-option--selected {
    background: rgba(36, 119, 248, 0.18);
    border-color: rgba(36, 119, 248, 0.85);
    box-shadow: inset 0 0 0 1px rgba(36, 119, 248, 0.45);
}

.messages-group-option--loading {
    justify-content: center;
    font-weight: 600;
    color: rgba(16, 49, 130, 0.6);
}

.messages-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 1100px) {
    .messages-panel {
        flex-direction: column;
        padding: 20px;
    }
    .messages-panel__sidebar {
        width: 100%;
        order: 2;
    }
    .messages-panel__conversation {
        order: 1;
    }
}

@media (max-width: 720px) {
    .messages-panel {
        padding: 16px;
    }
    .messages-panel__conversation-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .messages-panel__actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .messages-panel__actions .messages-button {
        flex: 1 1 45%;
        justify-content: center;
    }
    .messages-bubble {
        max-width: 85%;
    }
}
