/* Switch Wrapper */
.switch-wrapper {
    position: relative;
    width: 31px;
    height: 12px;
    margin: 10px;
    display: inline-block;
    background: rgb(228, 228, 228);
    border-radius: 30px;
    border: var(--border-lite);
}

/* Hide the default checkbox */
.switch-wrapper input[type="checkbox"] {
    opacity: 0;
    width: 58px;
    height: 22px;
    z-index: 10;
    position: absolute;
    left: -4px;
    bottom: -8px;
}

/* Slider */
.switch-slider {
    position: absolute;
    top: -1px;
    left: -1px;
    height: 14px;
    width: 14px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Custom datetime picker */
.flatpickr-time input {
    font-size: 20px !important;
    font-weight: 500 !important;
    background: var(--accent-color-bg) !important;
    color: var(--white) !important;
    border-radius: 28px !important;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-day.selected,
span.flatpickr-weekday,
.flatpickr-weekdays {
    color: var(--white) !important;
    border: none !important;
    font-weight: 300;
}

.flatpickr-months .flatpickr-month {
    height: 46px !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    opacity: .6 !important;
}

.flatpickr-calendar.hasTime .flatpickr-time {
    min-height: 54px !important;
    padding: 6px 10px !important;
    gap: 10px !important;
}

/* Move the slider when checked */
.switch-wrapper input:checked+.switch-slider {
    transform: translateX(18px);
}

.switch-wrapper:has(input:checked) {
    background: var(--go-green);
}

.switch-wrapper input[type="checkbox"]:focus-visible+.switch-slider {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6), 0 0 0 6px rgba(161, 140, 209, 0.5);
}

.decorative {
    width: 84px;
    height: 54px;
    border-radius: 12px;
    opacity: 1;
    animation: smooth-open ease-in-out 1s;
}

.decorative.room-icon {
    background-image: url("/static/decorative_images/rooms-decorative.b519951f8aec.webp");
}

.decorative.location-icon {
    background-image: url("/static/icons/location.5a02c22e0ad7.svg");
}

.decorative.table-icon {
    background-image: url("/static/decorative_images/tables-decorative.15f664bc021d.webp");
}

.decorative.table-icon.list_icon_style,
.decorative.room-icon.list_icon_style {
    width: auto;
    height: 130px;
    border-radius: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

.graphic,
.food_type_NON_VEG,
.food_type_VEG {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    align-items: center;
}

.graphic::before,
.food_type_NON_VEG::before,
.food_type_VEG::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

.graphic.standard-size::before {
    width: 30px;
    height: 30px;
}

.graphic.edit-icon::before {
    background-image: url("/static/icons/edit.e0287e3bc268.svg");
}

.graphic.water-icon::before {
    background-image: url("/static/icons/water.abd37e615e1e.svg");
}

.graphic.liquor-icon::before {
    background-image: url("/static/icons/liquor.16dd435a7c86.svg");
}

.graphic.soda-icon::before {
    background-image: url("/static/icons/soda.4f9928360278.svg");
}

.graphic.tobacco-icon::before {
    background-image: url("/static/icons/tobacco.198200b4544f.svg");
}

.graphic.printer-icon::before {
    background-image: url("/static/icons/printer.198e8f854a95.svg");
}

.graphic.medal-icon::before {
    background-image: url("/static/icons/medal.415cf8ad419e.svg");
}

.graphic.history-icon::before {
    background-image: url("/static/icons/history.4b6ba807000a.svg");
}

.graphic.home-icon::before {
    background-image: url("/static/icons/home.91bf74cb3b55.svg");
}

.graphic.food-icon::before {
    background-image: url("/static/icons/food.a26246011d63.svg");
}

.graphic.phone-icon::before {
    background-image: url("/static/icons/phone.64706a081059.svg");
}

.graphic.bed-icon::before,
.graphic.room-icon::before {
    background-image: url("/static/icons/bed.1f311442ebea.svg");
}

.graphic.table-icon::before {
    background-image: url("/static/icons/table.75ffd56af56d.svg");
}

.graphic.sports-icon::before {
    background-image: url("/static/icons/sports.594c5a501bfa.svg");
}

.graphic.filter-icon::before {
    background-image: url("/static/icons/filter.6b00f8eebeb3.svg");
}

.graphic.chair-icon::before {
    background-image: url("/static/icons/chair.1a3a26597dfa.svg");
}

.graphic.pdf-icon::before {
    background-image: url("/static/icons/pdf.6fb947f49a56.svg");
}

.graphic.print-icon::before {
    background-image: url("/static/icons/printer.198e8f854a95.svg");
}

.graphic.user-icon::before {
    background-image: url("/static/icons/user.e9006b70bbf6.svg");
}

.graphic.cold-icon::before {
    background-image: url("/static/icons/cold.381e4d58f017.svg");
}

.graphic.plus-icon::before {
    background-image: url("/static/icons/plus.f06e74c42528.svg");
}

.graphic.time-icon::before {
    background-image: url("/static/icons/time.ddbc7f70ea67.svg");
}

.graphic.logout-icon::before {
    background-image: url("/static/icons/lock.f41155d81189.svg");
}

.graphic.users-icon::before,
.graphic.afm-icon::before,
.graphic.companion-icon::before {
    background-image: url("/static/icons/users.ff7365a71bfa.svg");
}

.graphic.setting-icon::before {
    background-image: url("/static/icons/setting.fcfc14608ecd.svg");
}

.graphic.clipboard-icon::before {
    background-image: url("/static/icons/clipboard.715430026e76.svg");
}

.graphic.calendar-icon::before {
    background-image: url("/static/icons/calendar.a8095f84cce0.svg");
}

.graphic.add-user-icon::before {
    background-image: url("/static/icons/add-user.d29514b35d4f.svg");
}

.graphic.organization-icon::before {
    background-image: url("/static/icons/organization.febc65182205.svg");
}

.graphic.document-icon::before {
    background-image: url("/static/icons/document.6bc6f632d65e.svg");
}

.graphic.hi-user-icon::before {
    background-image: url("/static/icons/hi-user.f418cb4c5978.svg");
}

.graphic.analytic-icon::before {
    background-image: url("/static/icons/analytic.6d4c4fb31889.svg");
}

.graphic.document-icon::before {
    background-image: url("/static/icons/document.6bc6f632d65e.svg");
}

.food_type_VEG::after {
    content: "Veg";
    padding-left: 3px;
    color: var(--go-green);
    font-size: var(--font-size-v-tiny);
}

.food_type_NON_VEG::before,
.food_type_VEG::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--danger-red);
}

.food_type_VEG::before {
    content: "";
    background-color: var(--go-green);
}

.food_type_NON_VEG::after {
    content: "Non veg";
    padding-left: 3px;
    color: var(--danger-red);
    font-size: var(--font-size-v-tiny);
}


.user_display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section-playground {
    overflow: hidden;
    width: 100%;
}

.object_table_paginated.filter_api {
    width: 100%;
}

.background_padding {
    background-color: #eeeeee96;
    padding: 2px 8px;
    border-radius: 12px;
    color: var(--lite-text-color);
    font-weight: 500;
}

.sweet_text,
.helptext,
.fatty_sweet_text {
    color: var(--lite-text-color);
    font-size: var(--font-size-vvs);
}

.helptext {
    font-size: var(--font-size-tiny);
    font-style: italic;
    opacity: .5;
}

.fatty_sweet_text {
    font-size: var(--font-size-s);
    font-weight: 600;
}

.wrapper_round_bg {
    width: auto;
    display: inline-block;
    padding: 4px;
    font-weight: 500;
    margin-left: 3px;
    border-radius: 8px;
    background: var(--gray-lite-bg);
}

p[data-available="false"] {
    color: var(--danger-red);
    background: var(--red-lite-bg);
}

.place_right {
    margin-left: auto;
}

.item_available_True::before {
    content: 'available';
    color: var(--go-green);
}

.item_available_False::before {
    content: 'unavailable';
    color: var(--danger-red);
}

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

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

.danger_btn {
    background-color: var(--danger-red);
    color: var(--white) !important;
    border-color: var(--danger-red) !important;
}

.flex_container {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 12px;
    max-width: 100%;
    align-items: flex-start;
}

.item_remove {
    top: 0;
    right: 0;
    padding-top: 0;
}

.item_remove::before {
    content: "Cancel";
    font-size: var(--font-size-tiny);
    color: var(--lite-shade-color);
    font-weight: 400;
}

/* WebKit Browsers (Chrome, Edge, Safari) */
.objects_items_container::-webkit-scrollbar {
    width: 1px;
    height: 2px;
}

.objects_items_container::-webkit-scrollbar-track {
    background: transparent;
}

.objects_items_container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0;
}

/* Firefox */
.objects_items_container {
    scrollbar-width: thin;
    scrollbar-color: rgba(109, 109, 109, 0.399) transparent;
}

/* Cards */

.coporate-card {
    max-width: 212px;
    width: auto;
}

.coporate-card .card-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
}

.coporate-card .card-body>div {
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: var(--border-lite);
}

.coporate-card .card-head img,
.coporate-card .card-head>div.decorative {
    width: 100px;
    height: 64px;
    border-radius: 6px;
}

.coporate-card .card-body>div p {
    margin: 4px 0;
    font-size: var(--font-size-vvs);
}

.coporate-card .card-container {
    padding: 10px 14px 30px;
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
}

.coporate-card .card-body>div span {
    width: 106px;
    font-size: var(--font-size-tiny);
    color: var(--lite-text-color);
}

.content-section-wrapper.series,
.object_listing_overflow {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 40px;
}

.objects_column {
    background: #f7f7f7d4;
    padding: 0 8px;
    min-width: 210px;
}

.objects_items_container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
    max-height: 77vh;
    border: var(--border-lite);
    border-radius: 12px;
}

.object_listing_overflow {
    overflow: auto;
    flex-wrap: nowrap;
    padding-bottom: 70px;
}

.table-head {
    display: table-header-group;
    background: #f4f4f4;
}

.table-body {
    display: table-row-group;
}

.table-row {
    display: table-row;
}

.table-row:hover {
    background-color: #e6d8ff;
}

.table-cell {
    display: table-cell;
    padding: 4px 18px;
    vertical-align: middle;
    white-space: nowrap;
}

.table-cell span {
    font-size: var(--font-size-vvs);
}

.table-cell.address span {
    white-space: normal;
}

.feedback-item {
    position: relative;
    width: auto;
    padding: 4px 20px 8px 10px;
    display: inline-block;
    background: var(--green-blue);
    border-radius: 12px;
    margin-left: 20px;
}

.feedback-item .username {
    color: var(--green-blue-text);
}

.feedback-item .username::before {
    margin-right: 12px;
    position: absolute;
    left: -33px;
}

.feedback-item .message {
    margin-right: 6px;
}

.feedback-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user_profile_img_features {
    flex-direction: column-reverse;
    flex-wrap: nowrap;
}

.table-cell.role span {
    text-transform: capitalize;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 18px;
}

/* Role-specific colors - Modern light backgrounds with bright text */
.table-cell.role[data-value="president"] span,
.table-cell.role[data-value="president"] .role_pill {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
}

.table-cell.role[data-value="vice_president"] span,
.table-cell.role[data-value="vice_president"] .role_pill {
    background-color: #fed7aa !important;
    color: #ea580c !important;
}

.table-cell.role[data-value="secretary"] span,
.table-cell.role[data-value="secretary"] .role_pill {
    background-color: #fef3c7 !important;
    color: #d97706 !important;
}

.table-cell.role[data-value="director"] span,
.table-cell.role[data-value="director"] .role_pill {
    background-color: #ede9fe !important;
    color: #7c3aed !important;
}

.table-cell.role[data-value="member"] span,
.table-cell.role[data-value="member"] .role_pill {
    background-color: #d1fae5 !important;
    color: #059669 !important;
}

.table-cell.role[data-value="manager"] span,
.table-cell.role[data-value="manager"] .role_pill {
    background-color: #dbeafe !important;
    color: #2563eb !important;
}

.table-cell.role[data-value="staff"] span,
.table-cell.role[data-value="staff"] .role_pill {
    background-color: #e0e7ff !important;
    color: #4f46e5 !important;
}

.table-cell.role[data-value="waiter"] span,
.table-cell.role[data-value="waiter"] .role_pill {
    background-color: #cffafe !important;
    color: #0891b2 !important;
}

.overflow_container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
    background-color: #fff;
}

.total-table-wrapper {
    margin-top: 34px;
}

.foreign_field_get_trigger {
    font-size: var(--font-size-tiny);
    text-decoration: underline;
}

.table-cell.heading {
    font-weight: 600;
    background-color: #f0f0f0;
    font-size: var(--font-size-vvs);
}

.table-row>.transaction_type[data-value=IN]>span,
.table-row>.transaction_type[data-value=OUT]>span {
    padding: 3px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.table-cell.name>span,
.table-cell.invoice_no>span,
.table-cell.product__name>span {
    padding: 2px 16px;
    background-color: var(--gray-lite-bg);
    border-radius: 12px;
    font-weight: 500;
}


.table-row>.transaction_type[data-value=IN]>span {
    color: var(--go-green);
    background-color: rgb(236, 255, 240);
}

.table-row>.transaction_type[data-value=OUT]>span {
    color: var(--danger-red);
    background-color: rgb(255, 236, 236);
}

.total_price,
.unit_price,
.mrp,
.discount_value {
    font-size: var(--font-size-vvs);
    font-weight: 500;
}

.table-row:has(.transaction_type[data-value=OUT]):hover {
    background-color: rgb(255, 227, 227);
}

.table-row:has(.transaction_type[data-value=IN]):hover {
    background-color: rgb(227, 255, 235);
}


.pagination {
    display: flex;
    gap: 20px;
    align-items: baseline;
    font-size: var(--font-size-vvs);
}

.object_table_paginated.filter_api form button {
    padding: 6px 12px;
    width: auto;
    border-radius: 4px;
}

.button-type-3 {
    background-color: var(--white);
    color: #2e2e2ec9;
    font-weight: 500;
    font-size: var(--font-size-tiny);
}

.search_and_filters {
    padding: 0;
    margin-bottom: 20px;
    gap: 40px;
    align-items: center;
}

.search_and_filters form input {
    padding: 3px 18px;
    border-radius: 28px;
}

.search_and_filters form button {
    border: 0;
}

.right_side_playground {
    align-items: baseline;
}

.right_side_playground form {
    display: flex;
    gap: 0 15px;
    align-items: normal;
    flex-wrap: wrap;
}

.corporate-section-wrapper.overlay_form {
    margin-bottom: 20px;
    max-width: 245px;
    background: #efefef;
    padding: 12px;
    border-radius: 12px;
}

.flex_space_btwn {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    width: 100%;
}

@media (min-width: 768px) {

    .decorative.table-icon.list_icon_style,
    .decorative.room-icon.list_icon_style {
        width: 190px;
        height: 98px;
        border-radius: 16px;
    }

    .flex_container {
        flex-wrap: nowrap;
    }
}

/* User Provided Order Modal Styles */
.ordered_items_view {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 70vh;
    overflow-y: auto;
}

.ordered_items_view span.background_padding_tiny {
    color: var(--black);
    font-weight: 600;
}

.ordered_items_view>div {
    padding: 10px 75px 10px 10px;
    border-radius: 12px;
    flex-wrap: nowrap;
    border: var(--border-lite);
    position: relative;
}

.ordered_items_view .item_status {
    position: absolute;
    padding: 0 8px;
    left: 12px;
    background-color: var(--danger-red);
    color: var(--white);
    font-size: 7px;
    top: 35px;
}

.ordered_items_view .item_status[data-value=preparing] {
    background-color: #6363ff;
}


.ordered_items_view .item_status[data-value=ready] {
    background-color: var(--go-green);
}

/* Custom Location Modal */
.afc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: baseline;
    z-index: 1100;
}

.afc-modal-content {
    position: relative;
    top: 20%;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: afcFadeIn 0.3s ease;
}

@keyframes afcFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.afc-modal-title {
    margin-top: 0;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.afc-modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1rem;
    box-sizing: border-box;
}

.afc-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.afc-modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.afc-modal-btn-cancel {
    background: #f0f0f0;
    color: #333;
}

.afc-modal-btn-cancel:hover {
    background: #e0e0e0;
}

.afc-modal-btn-update {
    background: #4747fd;
    color: #fff;
}

.afc-modal-btn-update:hover {
    background: #3636e0;
}