﻿:root {
    --header-height: 64px;
    --sidebar-width: 260px;
}

body {
    overflow-x: hidden;
    font-family: 'Segoe UI', sans-serif;
    background: #f6f9ff;
}

/* HEADER */
.navbar {
    height: var(--header-height);
}

/* LOGO */
.app-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .6px;
    color: #fff;
}

    .app-title span {
        color: #ffe082;
    }

/* PROFILE */
.profil-pic {
    height: 40px;
    width: 40px;
    border: 2px solid white;
    padding: 4px;
    border-radius: 50%;
}
/* Dropdown Container */
.user-dropdown-menu {
    width: 260px;
    border-radius: 12px;
    padding: 0.5rem 0;
}

/* Profile Header */
.dropdown-header {
    padding: 1rem;
}

.dropdown-profile-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0d6efd;
}

/* Items */
.user-dropdown-menu .dropdown-item {
    padding: 0.6rem 1.2rem;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .user-dropdown-menu .dropdown-item i {
        width: 20px;
    }

    /* Hover Effect */
    .user-dropdown-menu .dropdown-item:hover {
        background-color: #f5f7fa;
        padding-left: 1.5rem;
    }

    /* Logout */
    .user-dropdown-menu .dropdown-item.text-danger:hover {
        background-color: #ffecec;
    }




/* Badge */
.notification-badge {
    position: absolute;
    top: 0;
    right: -5px;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 50%;
}

/* Dropdown */
.notification-menu {
    width: 320px;
    border-radius: 12px;
    padding: 0;
}

    /* Header */
    .notification-menu .dropdown-header {
        padding: 0.8rem 1rem;
        font-size: 14px;
        font-weight: 600;
    }

/* Item */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.7rem 1rem;
    transition: background 0.2s ease;
}

    .notification-item i {
        font-size: 18px;
        margin-top: 3px;
    }

    .notification-item:hover {
        background-color: #f5f7fa;
    }

/* Content */
.notification-content {
    display: flex;
    flex-direction: column;
}

.notification-title {
    font-size: 14px;
    font-weight: 500;
}

/* Footer */
.dropdown-footer {
    padding: 0.7rem;
}

.select-btn-close {
    background: none;
    border: none;
}

.dropdown-grd {
    padding: 3px !important;
    width: 90px;
    font-size: 0.8em !important;
}

.btn-xs-custom {
    padding: 1px 6px;
    font-size: 0.78rem;
    line-height: 1.1;
    border-radius: 1rem;
}


.form-check-input {
    cursor: pointer;
}

/* TOGGLER */
.navbar-toggler {
    border: 2px solid #fff;
    color: #fff;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-toggler:hover {
        box-shadow: none;
        color: gainsboro;
        border: 2px solid gainsboro;
    }


/* SIDEBAR */
#sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: #fff;
    border-right: 1px solid #dee2e6;
    padding-top: 5px;
    overflow-y: auto;
    transition: .3s;
    z-index: 1050;
}

    #sidebar .nav-link {
        color: #495057;
        padding: 10px 10px;
        display: flex;
        align-items: center;
        gap: 10px;
        border-radius: 6px;
    }

        #sidebar .nav-link:hover {
            background: #e2e6ea;
            color: #0d6efd;
        }


li.nav-item {
    padding-left: 5px;
    padding-right: 5px;
}


/* SUBMENU */
.submenu {
    list-style: none;
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

    .submenu .nav-link {
        padding: 8px 20px;
        font-size: .9rem;
    }

/* ARROW */
/*.has-submenu::after {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: auto;
    transition: transform .3s;
}

.has-submenu.show::after {
    transform: rotate(90deg);F
}*/

.menu-toggle.active {
    background-color: rgba(255,255,255,0.1);
}

.menu-head {
    background-color: #0070fc;
    color: #ffffff;
    padding-left: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}
/* CONTENT */
#content {
    margin-left: var(--sidebar-width);
    padding-top: calc(var(--header-height) + 20px);
    transition: .3s;
}

/* COLLAPSE DESKTOP */
body.sidebar-collapsed #sidebar {
    transform: translateX(-100%);
}

body.sidebar-collapsed #content {
    margin-left: 0;
}

/* OVERLAY */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: none;
    z-index: 1049;
}

body.sidebar-open #overlay {
    display: block;
}

.entryarea {
    position: relative;
    height: 40px;
    margin-bottom: 15px;
}

    /* INPUT + SELECT COMMON */

    .entryarea input {
        color: black;
        position: absolute;
        width: 100%;
        height: 100%;
        background: transparent;
        outline: none;
        border: 1px solid #ccc;
        padding: 0 15px;
        transition: 0.2s ease;
        z-index: 1;
    }

    .entryarea select {
        color: black;
        position: absolute;
        width: 100%;
        height: 100%;
        outline: none;
        border: 1px solid #ccc;
        padding: 0 15px;
        transition: 0.2s ease;
        z-index: 1;
    }

        /* Focus */
        .entryarea input:focus,
        .entryarea select:focus {
            border-color: black;
        }

    /* LABEL */
    .entryarea .labelline {
        position: absolute;
        left: 5px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1em;
        color: #6e707e;
        background-color: white;
        padding: 0 6px;
        pointer-events: none;
        transition: 0.2s ease;
        z-index: 2;
    }

    /* INPUT FLOAT */
    .entryarea input:focus + .labelline,
    .entryarea input:not(:placeholder-shown) + .labelline,
    /* SELECT FLOAT */
    .entryarea select:focus + .labelline,
    .entryarea select:not([value=""]) + .labelline {
        top: 0;
        transform: translateY(-50%) scale(0.85);
        color: black;
    }


.validation-message {
    position: absolute;
    bottom: -25px; /* distance below the textbox */
    right: 0;
    background-color: #f44336; /* red for error */
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    /* Arrow */
    position: absolute;
}

    .validation-message::after {
        content: "";
        position: absolute;
        top: -10px; /* position above the tooltip */
        right: 10px; /* align with the textbox */
        border-width: 5px;
        border-style: solid;
        border-color: transparent transparent #f44336 transparent;
        z-index: 1000;
    }




.login-logo {
    height: 150px;
    width: 150px;
    background-color: white;
    border-radius: 50%;
    margin-top: -100px;
    border: #0000002d 1px solid;
}

.loginpanel {
    margin-top: 100px;
}





/* ================================
   CATERING LOADER
================================ */

.loader-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 250, 247, 0.65);
    z-index: 1056;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cloche-loader {
    width: 64px;
    height: 64px;
    overflow: visible;
}

/* Steam animation */

.cloche-steam {
    transform-origin: center bottom;
    animation: steamRise 1.4s ease-in-out infinite;
}

/* Dome animation */

.cloche-dome {
    transform-origin: center bottom;
    animation: clocheBounce 1.4s ease-in-out infinite;
}

@keyframes steamRise {
    0%, 100% {
        opacity: 0.45;
        transform: translateY(3px);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

@keyframes clocheBounce {
    0%, 100% {
        transform: translateY(2px);
    }

    50% {
        transform: translateY(-2px);
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .cloche-steam,
    .cloche-dome {
        animation: none;
    }
}


.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notify-toast {
    display: flex;
    align-items: center;
    width: 360px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    animation: slideIn .4s ease;
    overflow: hidden;
}

    .notify-toast::before {
        content: "";
        width: 6px;
        height: 100%;
    }

    .notify-toast.error::before {
        background: #e74c3c;
    }

    .notify-toast.warning::before {
        background: #f39c12;
    }

    .notify-toast.info::before {
        background: #3498db;
    }

    .notify-toast.success::before {
        background: #2ecc71;
    }

.toast-icon {
    width: 48px;
    height: 48px;
    margin: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.error .toast-icon {
    background: #e74c3c;
}

.warning .toast-icon {
    background: #f39c12;
}

.info .toast-icon {
    background: #3498db;
}

.success .toast-icon {
    background: #2ecc71;
}

.toast-body {
    flex: 1;
    padding: 12px 0;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.toast-text {
    font-size: 14px;
    color: #555;
}

.toast-close {
    border: none;
    background: transparent;
    font-size: 20px;
    padding: 0 12px;
    cursor: pointer;
    color: #999;
}

    .toast-close:hover {
        color: #000;
    }

.tbl-font13 {
    font-size: 13px;
}

.tbl-editbtn {
    height: 24px;
    width: 100px;
    font-size: 12px;
    padding: 3px 5px;
    text-align: center;
}

.tbl-chkstatus {
    height: 20px;
    width: 40px !important;
}

.card {
    border: none !important;
    margin-bottom: 10px;
}

.input-group {
    align-items: stretch;
}

    .input-group .entryarea {
        position: relative;
        flex: none;
    }



        /* FIRST item → remove RIGHT radius only */
        .input-group .entryarea:first-child .form-control,
        .input-group .entryarea:first-child .form-select,
        .input-group .entryarea:first-child button {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

        /* LAST item → remove LEFT radius only */
        .input-group .entryarea:last-child .form-control,
        .input-group .entryarea:last-child .form-select,
        .input-group .entryarea:last-child button {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }

        /* MIDDLE items (if any) */
        .input-group .entryarea:not(:first-child):not(:last-child) .form-control,
        .input-group .entryarea:not(:first-child):not(:last-child) .form-select,
        .input-group .entryarea:not(:first-child):not(:last-child) .button {
            border-radius: 0;
        }

        /* Remove double borders between controls */
        .input-group .entryarea:not(:first-child) .form-control,
        .input-group .entryarea:not(:first-child) .form-select,
        .input-group .entryarea:not(:first-child) .button {
            border-left: 0;
        }

.pfimage {
    text-align: center !important;
    padding: 20px !important;
}

.emp-profilepic {
    width: 200px;
    height: 200px;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Desktop view – never show overlay */
@media (min-width: 992px) {
    #overlay {
        display: none !important;
    }
}

/* MOBILE */
@media (max-width: 991px) {
    #sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-open #sidebar {
        transform: translateX(0);
    }

    #content {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .notification-menu {
        left: 0px !important;
        right: auto !important;
        transform: translateX(-50%);
        width: 75vw;
        max-width: 75vw;
        border-radius: 12px;
    }
}

@media (max-width: 402px) {
    .notification-menu {
        left: 45px !important;
        right: auto !important;
        transform: translateX(-50%);
        width: 85vw;
        max-width: 85vw;
        border-radius: 12px;
    }
}

@media (max-width: 354px) {
    .notification-menu {
        left: 65px !important;
        right: auto !important;
        transform: translateX(-50%);
        width: 85vw;
        max-width: 85vw;
        border-radius: 12px;
    }
}


@media (min-width: 768px) {
    .side-panel {
        width: 600px;
    }

    .hide-desktop {
        display: none;
    }

    .paynow-btn {
        display: none;
    }

    .Desktop-view {
        display: block;
    }

    .mobile-purchase-inv {
        display: none;
    }

    .Rep-carbody {
        padding-top: 20px;
        padding-bottom: 10px;
        overflow: auto;
    }

    .icm {
        margin-bottom: 10px;
    }
}



/* Mobile stacked view */


@media (max-width: 767px) {
    .mb-pd-0 {
        padding: 0px;
    }

    .bg_mbile {
        background: none !important;
        background-color: transparent;
        box-shadow: none !important;
        padding: 0px;
        margin-bottom: 0px !important;
        border: none;
    }

    .Rep-carbody {
        padding-top: 0px;
        padding-bottom: 0px;
        overflow: visible !important;
    }

    .mb-tblbg {
        --bs-table-bg: transparent; /* Use transparent instead of 'none' */
        margin-bottom: 0px;
    }

    .side-panel {
        padding-left: 40px !important;
    }

    .ft-right {
        float: right !important;
        margin-right: 5px !important;
    }

    .responsive-table thead {
        display: none; /* hide header */
    }

    td.hide-mobile {
        display: none !important;
    }

    .hide-mobile {
        display: none !important;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
        border: none;
        padding: 0px;
    }

        .responsive-table tr {
            padding: 5px 10px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 6px;
            display: flex;
            flex-wrap: wrap;
        }

        /* First row layout (#, Item, Total) */
        .responsive-table td[data-label="#"].cartslno {
            flex: 1 0 10%;
            font-weight: bold;
        }

        .responsive-table td[data-label="Item"].itemName {
            flex: 1 0 60%;
            font-weight: bold;
        }

        .responsive-table td[data-label="Total"].hide-desktop {
            flex: 1 0 30%;
            text-align: right;
            font-weight: bold;
        }


        /* Second row layout (Qty, Price, Disc, GST, Remove button) */
        .responsive-table td[data-label="Qty"].grdqty,
        .responsive-table td[data-label="Price"].grdprice,
        .responsive-table td[data-label="Disc"].grddisc,
        .responsive-table td[data-label="GST"].grdgst,
        .responsive-table .tblremovebtn {
            display: inline-block; /* force inline layout */
            width: auto !important; /* allow them to size naturally */
            padding-right: 10px; /* space between items */
            font-size: 11px;
            flex: 0 0 auto; /* prevent flex from stretching */
        }

        .responsive-table
        td.grdqty[data-label="Qty"]::before,
        td.grddisc[data-label="Disc"]::before,
        td.grdgst[data-label="GST"]::before,
        td.grdprice[data-label="Price"]::before {
            content: attr(data-label) " : ";
            font-weight: bold;
            font-size: 11px;
            display: inline-block;
            margin-right: 4px;
        }

        /* Remove button aligned to the right */
        .responsive-table .tblremovebtn {
            margin-left: auto;
            padding-right: 0;
        }


    .paynow-btn {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1030; /* Lower than modal's z-index */
        border-radius: 0; /* Optional: make it full width like a bar */
    }

    .Desktop-view {
        display: none;
    }

    .icm {
        background-color: #ffffff;
        --bs-card-border-color: var(--bs-border-color-translucent);
        border-radius: 5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        padding: 16px;
        margin-bottom: 10px;
    }
}



.sims-switch .form-check-input {
    width: 42px;
    height: 22px;
    cursor: pointer;
    transition: 0.25s ease;
}

    /* OFF (Red) */
    .sims-switch .form-check-input:not(:checked) {
        background-color: #dc3545;
        border-color: #dc3545;
    }

    /* ON (Green) */
    .sims-switch .form-check-input:checked {
        background-color: #198754;
        border-color: #198754;
    }

    /* Remove focus glow */
    .sims-switch .form-check-input:focus {
        box-shadow: none;
    }


/* Toast Wrapper */
.toast-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Base Toast */
.sims-toast {
    display: flex;
    align-items: center;
    min-width: 320px;
    max-width: 380px;
    padding: 15px 18px;
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    animation-duration: 0.3s;
}

/* Slide In */
.toast-show {
    animation: slideIn 0.3s ease-out forwards;
}

/* Slide Out */
.toast-hide {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Icon */
.toast-icon {
    font-size: 24px;
    margin-right: 12px;
}

/* Content */
.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
}

.toast-message {
    font-size: 13px;
    opacity: 0.9;
}

/* Close Button */
.toast-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    margin-left: 10px;
    cursor: pointer;
}

/* Progress Bar */
.toast-progress {
    height: 4px;
    margin-top: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    background: white;
    transition: width 0.03s linear;
}

/* Toast Colors */
.toast-success {
    background: linear-gradient(135deg, #28a745, #218838);
}

.toast-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
}


.toast-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.toast-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

/* Compact Mobile Toast */
@media (max-width: 576px) {

    .toast-wrapper {
        top: 12px;
        left: auto;
        right: 12px;
        width: calc(100% - 24px);
        max-width: 320px;
    }

    .sims-toast {
        width: 100%;
        min-width: 0;
        max-width: 320px;
        padding: 9px 11px;
        border-radius: 12px;
    }

    .toast-icon {
        width: 30px;
        height: 30px;
        margin: 0 8px 0 0;
        font-size: 17px;
        flex-shrink: 0;
    }

    .toast-content {
        min-width: 0;
    }

    .toast-title {
        font-size: 13px;
        line-height: 1.2;
    }

    .toast-message {
        font-size: 11px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .toast-close {
        font-size: 16px;
        margin-left: 5px;
        padding: 0 3px;
    }

    .toast-progress {
        margin-top: 4px;
    }
}


/* Menu */

.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    font-weight: 500;
    color: #333;
    transition: background 0.2s;
}

    .sidebar-menu .nav-link:hover {
        background: #f5f7fb;
    }

/* Arrow */

.submenu-arrow {
    margin-left: auto;
    transition: transform 0.3s;
}

.nav-link.show .submenu-arrow {
    transform: rotate(90deg);
}

/* Submenu */

.submenu {
    list-style: none;
    padding-left: 35px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

    .submenu .nav-link {
        padding: 8px 0;
        font-size: 14px;
        color: #555;
  
        }


/* Remove default list bullets */
#sidebar ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Sidebar menu links */
#sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

    /* Hover effect like SIMS */
    #sidebar .nav-link:hover {
        background: #f5f7fb;
    }

    /* Sidebar icons */
    #sidebar .nav-link i {
        width: 20px;
        text-align: center;
    }

body.sidebar-collapsed #sidebar {
    width: 70px;
}

body.sidebar-collapsed .page-content {
    margin-left: 70px;
}

.profil-notic {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notification circle */
.profil-notic {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.profil-notic {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* override bootstrap nav-link padding */
.notification-dropdown .nav-link {
    padding: 0 !important;
}

.notification-dropdown {
    margin-right: 15px;
}

/* Blur background smoothly */
body.modal-open #content > *:not(.modal) {
    filter: blur(6px) brightness(0.85);
    transition: filter 0.35s ease, transform 0.35s ease;
}

/* Dark overlay smoother */
.modal-backdrop.show {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    transition: opacity 0.009s ease;
}

/* Smooth modal zoom + fade */
.modal.fade .modal-dialog {
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.35s ease-out, opacity 0.35s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

.chart-container {
    position: relative;
    height: 220px;
}

/*.chart-container-sm {
    position: relative;
    height: 500px;
}*/



/* Mobile typography */
@media (max-width:768px) {

    .pagetitle h4 {
        font-size: 18px;
    }

    .pagetitle small {
        font-size: 12px;
    }

    /* allow search sizing control */
    .pagetitle .input-group {
        max-width: 220px;
    }

    .pagination {
        flex-wrap: wrap;
    }
}


/* Card divider */
.card-divider {
    margin: 8px 0 10px 0;
    border-top: 1px solid #e6e6e6;
}


/* Modal sizing */
@media (max-width:768px) {

    .user-modal {
        max-width: 500px;
        margin: auto;
    }

        .user-modal .modal-content {
            border-radius: 10px;
        }
}


/* Dish list scroll */
.dish-list-scroll {
    max-height: 200px;
    overflow-y: auto;
}

@media (max-width:768px) {

    .dish-list-scroll {
        max-height: 150px;
    }
}


/* Search box */
.search-box {
    max-width: 220px;
}



/* Add button (restore original style) */
.add-btn {
    padding: 6px 16px;
    border-radius: 50px;
}


/* Mobile adjustments */
@media (max-width:768px) {

    .search-box {
        max-width: 180px;
        flex: 1;
    }
}

@media print {

    body {
        background: white !important;
    }

    #sidebar,
    #header,
    .pagetitle,
    .btn,
    .dropdown,
    .navbar {
        display: none !important;
    }

    /* Print container */
    .print-container {
        width: 100%;
        max-width: 900px;
        margin: auto;
    }

    /* Remove card shadow */
    .card {
        box-shadow: none !important;
        border: none !important;
    }

    /* Prevent page shrink */
    table {
        width: 100%;
    }
}
@page {
    size: A4;
    margin: 10mm;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 320px;
}

@media (max-width:768px) {

    .chart-container {
        height: 240px;
    }
}

/* Desktop rows visible */
.desktop-row {
    display: table-row;
}

/* Mobile rows hidden */
.mobile-row {
    display: none;
}

/* Mobile view */
@media (max-width:768px) {

    .desktop-row {
        display: none !important;
    }

    /* Show mobile card rows */
    .mobile-row {
        display: table-row;
    }

        /* Remove table borders for mobile cards */
        .mobile-row td {
            border: none !important;
            padding: 0 !important;
        }
}

/* Hide desktop table header on mobile */
@media (max-width:768px) {

    .desktop-header {
        display: none;
    }
}




/* Search input focus and overflow fix */
.search-box {
    min-width: 0;
    box-sizing: border-box;
}

    .search-box .form-control {
        min-width: 0;
        box-sizing: border-box;
        outline: none;
    }

        .search-box .form-control:focus {
            outline: none;
            box-shadow: none;
            position: relative;
            z-index: 2;
        }


/* Search Box */
.search-box {
    max-width: 220px;
    border-radius: 50rem;
}

    .search-box .form-control {
        border-radius: 50rem 0 0 50rem !important;
        box-shadow: none;
        min-width: 0;
    }

        .search-box .form-control:focus {
            border-color: #0d6efd;
            box-shadow: none;
        }

    .search-box .btn {
        border-radius: 0 50rem 50rem 0 !important;
        padding-left: 14px;
        padding-right: 14px;
    }

/* Mobile */
@media (max-width: 768px) {
    .search-box {
        max-width: 180px;
        flex: 1;
    }
}



.dish-thumbnail {
    width: 65px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.dish-image-placeholder {
    width: 65px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #adb5bd;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 22px;
    flex-shrink: 0;
}


.dish-edit-image-container {
    width: 180px;
    height: 150px;
    margin-top: 8px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.dish-edit-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.dish-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #adb5bd;
    font-size: 14px;
    text-align: center;
}

    .dish-image-placeholder i {
        font-size: 32px;
    }


/* Mobile dish card image */
.dish-mobile-thumbnail,
.dish-mobile-image-placeholder {
    width: 84px;
    height: 84px;
    min-width: 84px;
    max-width: 84px;
    border-radius: 10px;
    flex-shrink: 0;
}

.dish-mobile-thumbnail {
    object-fit: cover;
    display: block;
}

.dish-mobile-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f3f5;
    border: 1px solid #dee2e6;
    color: #adb5bd;
}

    .dish-mobile-image-placeholder i {
        font-size: 28px;
    }

.dish-mobile-header {
    min-width: 0;
}

.dish-mobile-name {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

    .dish-mobile-name strong {
        display: block;
    }


.dish-mobile-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}

    .dish-mobile-description.expanded {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }

.dish-description-toggle {
    color: #0d6efd;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 4px;
}





/* Ingredient Summary - Mobile Responsive */
@media (max-width: 576px) {

    /* Modal fits mobile screen */
    .summary-modal {
        width: calc(100% - 16px);
        max-width: none;
        margin: 8px auto;
    }

        .summary-modal .modal-content {
            max-height: calc(100dvh - 16px);
            border-radius: 12px;
            overflow: hidden;
        }

        .summary-modal .modal-header {
            padding: 14px 16px;
        }

            .summary-modal .modal-header h5 {
                font-size: 18px;
                margin: 0;
            }

        .summary-modal .summary-modal-body {
            padding: 12px 14px;
            overflow-y: auto;
            min-height: 0;
        }

        /* Master adjustment panel */
        .summary-modal .card-body {
            padding: 14px !important;
        }

        .summary-modal .ingredient-slider-labels {
            align-items: center;
        }

        /* Ingredient table */
        .summary-modal .table-responsive {
            width: 100%;
            overflow: visible;
        }

        .summary-modal table {
            width: 100%;
            table-layout: auto;
            margin-bottom: 8px;
        }

            .summary-modal table thead {
                display: none;
            }

            .summary-modal table tbody tr {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 10px;
                padding: 12px;
                margin-bottom: 12px;
                background: #f8f9fa;
                border: 1px solid #e5e7eb;
                border-radius: 10px;
            }

            .summary-modal table tbody td {
                display: block;
                width: 100% !important;
                min-width: 0;
                padding: 0;
                border: 0;
                background: transparent;
                vertical-align: top;
                overflow-wrap: anywhere;
            }

                /* Ingredient name */
                .summary-modal table tbody td:nth-child(1) {
                    grid-column: 1 / -1;
                    font-weight: 600;
                    font-size: 15px;
                    padding-bottom: 8px;
                    border-bottom: 1px solid #dee2e6;
                }

                /* System and adjusted quantities */
                .summary-modal table tbody td:nth-child(2)::before {
                    content: "System Qty";
                }

                .summary-modal table tbody td:nth-child(3)::before {
                    content: "Adjusted Qty";
                }

                .summary-modal table tbody td:nth-child(2)::before,
                .summary-modal table tbody td:nth-child(3)::before {
                    display: block;
                    color: #6c757d;
                    font-size: 12px;
                    font-weight: 500;
                    margin-bottom: 4px;
                }

                .summary-modal table tbody td:nth-child(2),
                .summary-modal table tbody td:nth-child(3) {
                    font-size: 14px;
                    font-weight: 600;
                }

                /* Customer adjustment takes full width */
                .summary-modal table tbody td:nth-child(4) {
                    grid-column: 1 / -1;
                    padding-top: 8px;
                    border-top: 1px solid #dee2e6;
                }

    .customer-qty-controls {
        width: 100%;
        min-width: 0;
        gap: 8px !important;
    }

        .customer-qty-controls input[type="range"] {
            width: 100%;
            min-width: 0;
            margin: 4px 0;
        }

        .customer-qty-controls .ingredient-slider-labels {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 4px;
        }

        .customer-qty-controls .form-control {
            width: 100%;
            min-width: 0;
            min-height: 38px;
            font-weight: 600;
        }

    /* Footer buttons */
    .summary-modal .modal-footer {
        padding: 10px 12px;
        gap: 8px;
    }

        .summary-modal .modal-footer .btn {
            font-size: 13px;
            padding: 8px 12px;
        }
}


/* Hide search button on desktop */
.mobile-contact-search {
    display: none;
}

/* Show search button on mobile */
@media (max-width: 576px) {
    .mobile-contact-search {
        display: block;
    }
}

/* Remove default focus glow from contact input */
.input-group .form-control:focus {
    box-shadow: none;
    outline: none;
    border-color: #ced4da;
}

/* Keep search button visually consistent */
.mobile-contact-search {
    box-shadow: none;
}


.startup-screen {
    position: fixed;
    inset: 0;
    min-height: 100dvh;
    width: 100%;
    background: linear-gradient(145deg, #f8f9ff 0%, #ffffff 55%, #f1efff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 99999;
}

.startup-content {
    width: 100%;
    max-width: 360px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.startup-logo {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    background: linear-gradient(145deg, #6845ed, #512bdf);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 38px;
    box-shadow: 0 12px 30px rgba(81, 43, 223, 0.22);
    margin-bottom: 22px;
}

.startup-title {
    font-size: 29px;
    font-weight: 750;
    color: #20213a;
    letter-spacing: -0.8px;
    margin: 0;
}

.startup-subtitle {
    font-size: 13px;
    color: #85859a;
    margin-top: 7px;
    letter-spacing: 0.3px;
}

.startup-loader {
    margin-top: 48px;
    margin-bottom: 22px;
}

.loader-ring {
    width: 44px;
    height: 44px;
    border: 4px solid #e8e3ff;
    border-top-color: #512bdf;
    border-radius: 50%;
    animation: startupSpin 0.85s linear infinite;
}

@keyframes startupSpin {
    to {
        transform: rotate(360deg);
    }
}

.startup-status h5 {
    color: #292943;
    font-size: 16px;
    font-weight: 650;
    margin-bottom: 7px;
}

.startup-status p {
    color: #85859a;
    font-size: 13px;
    margin-bottom: 0;
}

.startup-progress {
    width: 190px;
    height: 4px;
    background: #e9e6f7;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 25px;
}

.startup-progress-bar {
    height: 100%;
    width: 40%;
    background: #512bdf;
    border-radius: 10px;
    animation: startupProgress 1.5s ease-in-out infinite;
}

@keyframes startupProgress {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(360%);
    }
}

.startup-footer {
    margin-top: 38px;
    font-size: 11px;
    color: #9998aa;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .startup-footer i {
        color: #512bdf;
        font-size: 14px;
    }

@media (max-width: 576px) {
    .startup-logo {
        width: 76px;
        height: 76px;
        border-radius: 22px;
        font-size: 35px;
    }

    .startup-title {
        font-size: 27px;
    }
}



.page-loader {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6c757d;
    width: 100%;
}

    .page-loader .spinner-border {
        width: 2.5rem;
        height: 2.5rem;
    }



.mobile-ingredient-card {
    border-radius: 12px;
    background: #fff;
}

    .mobile-ingredient-card .form-label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .mobile-ingredient-card .form-control,
    .mobile-ingredient-card .form-select {
        min-height: 46px;
        font-size: 15px;
    }

.mobile-ingredient-select {
    width: 100%;
    white-space: normal;
}

.mobile-ingredient-list {
    padding-bottom: 8px;
}

@media (max-width: 575.98px) {

    #configModal .modal-header {
        padding: 14px 16px;
    }

    #configModal .modal-title {
        font-size: 19px;
    }

    #configModal .modal-body {
        padding: 14px;
    }

    #configModal .modal-footer {
        padding: 12px;
        gap: 8px;
    }

        #configModal .modal-footer .btn {
            flex: 1;
        }
}

.required-star {
    color: #DC3545;
    font-weight: 700;
    margin-left: 3px;
}