﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}


:root {
    --header-height: 64px;
    --sidebar-width: 260px;
}

body {
    overflow-x: hidden;
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
}
.navbar {
    background: #1E3A8A !important;
}

.navbar-container {
    background: transparent !important;
}

.navbar .container-fluid {
    background: transparent !important;
}

/*.navbar .navbar-brand,
.navbar .nav-link,
.navbar .dropdown-toggle,
.navbar i,
.navbar span {
    color: #fff !important;
}*/
/* HEADER */
.navbar {
    height: var(--header-height);
    background-color: #1E3A8A !important;
}/* 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: var(--sidebar-bg);
    color: var(--text-color);
    border-right: 1px solid var(--border-color);
    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);
}

.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);
    background: var(--bg-color);
    color: var(--text-color);
    min-height: calc(100vh - var(--header-height));
    transition: .3s;
}
.container-lg {
    background: transparent;
}

/* 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;
}




.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.6);
    z-index: 1056;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 0.8s linear infinite;
}

/* ✅ Clean animation (no translate) */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.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);
}




/* 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 CONTAINER */
#sidebar .submenu {
    list-style: none;
    margin: 0;
    padding-left: 52px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

    /* SUBMENU LINKS */
    #sidebar .submenu .nav-link {
        padding: 10px 0 !important;
        font-size: 15px;
        font-weight: 500;
        color: #212529;
    }
#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;
    }

/* DESKTOP COLLAPSE ONLY */
@media (min-width: 992px) {

    body.sidebar-collapsed #sidebar {
        width: 70px;
    }

    body.sidebar-collapsed #content {
        margin-left: 70px;
    }
}

/* MOBILE */
@media (max-width: 991px) {

    body.sidebar-collapsed #sidebar {
        width: var(--sidebar-width);
    }

    body.sidebar-collapsed #content {
        margin-left: 0;
    }
}

.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;
        }
}
.empty-screen {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 80px;
    font-weight: 700;
    color: gold;
    background: #00113a;
}
/* Dish list scroll */
.dish-list-scroll {
    max-height: 200px;
    overflow-y: auto;
}

@media (max-width:768px) {

    .dish-list-scroll {
        max-height: 150px;
    }
}


.search-box {
    width: 280px;
}

    .search-box .form-control {
        text-align: left !important;
        direction: ltr !important;
        unicode-bidi: plaintext;
        padding-left: 15px !important;
        padding-right: 15px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-box .btn {
        width: 50px;
        min-width: 50px;
        border-radius: 0 25px 25px 0 !important;
    }

    .search-box input:focus {
        outline: none !important;
        box-shadow: none !important;
    }
/* 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;
    }
}


#content {
    margin-left: var(--sidebar-width);
    margin-top: 70px;
    transition: 0.3s;
    padding: 20px;
}

/* MOBILE */
@media (max-width: 991px) {

    #content {
        margin-left: 0 !important;
        padding: 12px;
    }

    .container-lg {
        padding-left: 0;
        padding-right: 0;
    }
}

.table thead th {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    font-weight: 700;
    border-bottom: 2px solid #dbe3ea;
}

.table tbody tr:nth-child(even) {
    background: var(--card-bg);
}

.table tbody tr:hover {
    background: rgba(255,255,255,.05);
}

@media (max-width: 768px) {

    #content {
        padding: 10px !important;
    }

    .container-lg {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100%;
    }

    .card-body {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .table-responsive {
        padding: 0 !important;
    }

    .mobile-row .card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}



.role-select-group {
    width: 420px;
}

    .role-select-group .form-select {
        box-shadow: none !important;
    }

    .role-select-group .input-group-text {
        border-radius: 12px 0 0 12px;
    }

    .role-select-group .btn {
        border-radius: 0 12px 12px 0;
    }



.service-panel,
.token-panel {
    padding: 10px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 520px;
    overflow-y: auto;
}

.service-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    cursor: pointer;
    transition: 0.25s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    color: var(--text-color);
}

    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

    .service-card.active {
        border: 2px solid #0d6efd;
        background: #eef5ff;
    }

.token-preview-card {
    background: linear-gradient( 135deg, #0d6efd, #2563eb );
    color: #fff;
    border-radius: 24px;
    padding: 35px;
    text-align: center;
}

    .token-preview-card small {
        letter-spacing: 3px;
        opacity: 0.9;
    }

    .token-preview-card h1 {
        font-size: 72px;
        font-weight: 800;
        margin-top: 10px;
    }

.modern-input {
    height: 52px;
    border-radius: 14px;
}

    .modern-input:focus {
        box-shadow: none;
        border-color: #0d6efd;
    }

.generate-btn {
    height: 58px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
}
/* FULLSCREEN DISPLAY */
.display-container {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #020617, #111827);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 30px 40px;
}

/* ================= HEADER ================= */

.display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,.08);
}

.header-left h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #3b82f6;
}

.header-right {
    text-align: right;
}

.time {
    font-size: 26px;
    font-weight: bold;
}

.date {
    font-size: 15px;
    opacity: .75;
}

/* ================= CALLING ================= */

.calling-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.calling-title {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #3b82f6;
    text-transform: uppercase;
}

.calling-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* CALLING CARD */

.calling-card {
    width: 420px;
    height: 230px;
    border-radius: 24px;
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255,255,255,.15);
    animation: pulseCard 2s infinite;
}

/* TOKEN */

.token-text {
    font-size: 7rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: 4px;
}

/* COUNTER */

.counter-text {
    margin-top: 12px;
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
}

/* EMPTY CARD */

.empty-calling-card {
    background: rgba(255,255,255,.08);
    border: 2px dashed rgba(255,255,255,.2);
}

.empty-call-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.empty-call-subtitle {
    margin-top: 12px;
    font-size: 20px;
    opacity: .85;
    color: #ddd;
}

/* ANIMATION */

@keyframes pulseCard {

    0% {
        transform: scale(1);
        box-shadow: 0 20px 60px rgba(0,0,0,.45);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 25px 80px rgba(37,99,235,.55);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 20px 60px rgba(0,0,0,.45);
    }
}

/* ================= WAITING ================= */

.waiting-section {
    margin-top: 20px;
}

.waiting-title {
    text-align: center;
    font-size: 34px;
    color: #facc15;
    margin-bottom: 20px;
}

.waiting-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-top: 25px;
    justify-items: center;
    align-items: center;
}
.waiting-badge {
    width: 120px;
    height: 85px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffca28;
    color: #000;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 18px;
    box-shadow: 0 6px 15px rgba(0,0,0,.3);
    transition: .3s;
}
@media (max-width:1200px) {

    .waiting-grid {
        grid-template-columns: repeat(4,1fr);
    }
}

@media (max-width:900px) {

    .waiting-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width:600px) {

    .waiting-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

/* ================= EMPTY QUEUE ================= */

.empty-state {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.empty-card {
    width: 550px;
    padding: 60px;
    text-align: center;
    border-radius: 24px;
    background: rgba(255,255,255,.05);
    border: 2px solid rgba(255,255,255,.08);
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: #22c55e;
}

.empty-title {
    font-size: 48px;
    font-weight: bold;
}

.empty-subtitle {
    margin-top: 15px;
    font-size: 24px;
    opacity: .8;
}

/* ================= FOOTER ================= */

.display-footer {
    text-align: center;
    padding-top: 18px;
    border-top: 2px solid rgba(255,255,255,.08);
    font-size: 16px;
    opacity: .7;
    color: rgba(255,255,255,.75);
}

.dashboard-row {
    min-height: 420px;
}

.dashboard-card {
    height: 420px;
}

.queue-panel {
    height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
}

.token-display {
    font-size: 4rem;
    font-weight: 700;
}

.analytics-card {
    min-height: 90px;
}

.queue-panel::-webkit-scrollbar {
    width: 6px;
}

.queue-panel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}



.token-display {
    font-size: 6rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.customer-name {
    font-size: 1.8rem;
    font-weight: 600;
}

/* =========================
   PAGE
========================= */

.dashboard-page {
    padding: 10px;
}

/* =========================
   KPI CARDS
========================= */

.dashboard-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    height: 100%;
}

    .dashboard-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0,0,0,.12);
    }

.card-body-custom {
    padding: 22px;
}

.card-title-custom {
    font-size: .9rem;
    font-weight: 600;
    opacity: .9;
    margin-bottom: 10px;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.card-icon {
    font-size: 2.4rem;
    opacity: .25;
}

/* =========================
   GRADIENT COLORS
========================= */

.bg-org {
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: white;
}

.bg-branch {
    background: linear-gradient(135deg,#7c3aed,#6d28d9);
    color: white;
}

.bg-user {
    background: linear-gradient(135deg,#059669,#047857);
    color: white;
}

.bg-counter {
    background: linear-gradient(135deg,#ea580c,#c2410c);
    color: white;
}

.bg-service {
    background: linear-gradient(135deg,#0891b2,#0e7490);
    color: white;
}

.bg-appointment {
    background: linear-gradient(135deg,#dc2626,#b91c1c);
    color: white;
}

/* =========================
   QUEUE CARDS
========================= */

.queue-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: .3s;
}

    .queue-card:hover {
        transform: translateY(-4px);
    }

.waiting-card {
    border-left: 5px solid #facc15;
}

.serving-card {
    border-left: 5px solid #3b82f6;
}

.completed-card {
    border-left: 5px solid #10b981;
}

.missed-card {
    border-left: 5px solid #ef4444;
}

.queue-title {
    color: #64748b;
    font-size: .9rem;
    font-weight: 600;
}

.queue-value {
    font-size: 2rem;
    font-weight: 700;
}

/* =========================
   METRIC CARDS
========================= */

.metric-card {
    border: none;
    border-radius: 16px;
    background: var(--card-bg);
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
}

.metric-title {
    color: #64748b;
    font-size: .9rem;
}

/* =========================
   SECTION CARDS
========================= */

.section-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.section-header {
    padding: 18px;
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
}

/* =========================
   ACTIVITY FEED
========================= */

.activity-item {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .activity-item:last-child {
        border-bottom: none;
    }

.activity-text {
    font-weight: 500;
}

.activity-time {
    color: #94a3b8;
    font-size: .85rem;
}

/* =========================
   TABLES
========================= */

.dashboard-table {
    margin-bottom: 0;
}

    .dashboard-table th {
        background: var(--card-bg);
        color: var(--text-color);
        font-weight: 600;
    }

    .dashboard-table td {
        vertical-align: middle;
    }

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px) {

    .card-value,
    .queue-value {
        font-size: 1.5rem;
    }

    .metric-value {
        font-size: 1.4rem;
    }

    .card-icon {
        font-size: 2rem;
    }
}

.table tbody tr {
    border-bottom: 1px solid #dee2e6 !important;
}

.table tbody td {
    border-bottom: 1px solid #dee2e6 !important;
}
.theme-sub-item {
    padding-left: 45px !important;
    font-size: 14px;
    transition: .3s;
}

    .theme-sub-item:hover {
        background: #eef5ff;
        color: #2563eb;
    }

    .theme-sub-item i {
        width: 20px;
    }

.dropdown-item {
    transition: .25s;
}

    .dropdown-item:hover {
        background: #f4f6fb;
    }
.custom-profile-menu {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
    .custom-profile-menu .dropdown-item,
    .custom-profile-menu .dropdown-header {
        background-color: #ffffff !important;
        color: #212529 !important;
    }

        .custom-profile-menu .dropdown-item:hover {
            background-color: #f5f7fa !important;
        }

.user-dropdown .nav-link,
.navbar-toggler,
.notification-dropdown .nav-link {
    cursor: pointer;
}