﻿/* ===== Base (keep Inter) ===== */
:root {
    --bs-font-sans-serif: 'Inter', sans-serif;
    /* QSR THEME */
    --qsr-charcoal: #0f172a; /* deep navy/charcoal */
    --qsr-ink: #111827; /* body text */
    --qsr-panel: #ffffff; /* cards, tables */
    --qsr-surface: #f7f7f0; /* app background */
    --qsr-red: #d5362a; /* spice */
    --qsr-yellow: #ffb703; /* saffron */
    --qsr-accent: linear-gradient(90deg, var(--qsr-yellow), var(--qsr-red));
    --qsr-border: rgba(17, 24, 39, .12);
    --qsr-muted: #6b7280;
    --qsr-link: #0ea5e9;
    --qsr-header-h: 60px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin-top: calc(var(--qsr-header-h) + 1px);
    background-color: var(--qsr-surface);
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--qsr-ink);
}

main {
    min-height: 75vh;
}

/* ===== Links ===== */
a {
    color: var(--qsr-link);
    text-decoration: none;
}

    a:hover, a:focus {
        color: #0284c7;
        text-decoration: underline;
    }

/* ===== Header / Navbar ===== */
.qsr-navbar {
    background: linear-gradient(180deg, rgba(15,23,42,.98) 0%, rgba(15,23,42,.92) 100%);
    backdrop-filter: saturate(140%) blur(6px);
    color: #fff;
    min-height: var(--qsr-header-h);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.qsr-header-underline {
    height: 3px;
    background: var(--qsr-accent);
}

.qsr-logo {
    width: 112px;
    height: auto;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.2));
}

.qsr-brandword {
    font-weight: 800;
    letter-spacing: .2px;
    color: #fff;
}

    .qsr-brandword .qsr-accent {
        background: var(--qsr-accent);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.qsr-toggler .navbar-toggler-icon {
    filter: invert(1);
}

.qsr-menu-btn {
    border: 0;
}

/* ===== Sidebar ===== */
.side-navbar {
    width: 200px;
    min-height: 50vh;
    position: fixed;
    margin-left: -300px;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(248,249,250,1) 100%);
    transition: 0.5s;
    border-right: 1px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.18) 100%);
    font-size: small;
}

.active-nav {
    margin-left: 0;
}

.my-container {
    transition: 0.4s;
}

.active-cont {
    margin-left: 200px;
}

.qsr-sidebar-pane {
    min-height: 75vh;
}

/* ===== Breadcrumb & Actionbar ===== */
.qsr-breadcrumb-bar {
    background: #eef2f6;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 0 0 16px 16px;
    border-bottom: 1px solid var(--qsr-border);
}

.qsr-breadcrumb {
    background: none !important;
}

.breadcrumb-item {
    color: rgba(0,0,0,.7) !important;
}

    .breadcrumb-item:hover {
        color: rgba(0,0,0,.9) !important;
    }

    .breadcrumb-item a {
        text-decoration: none !important;
        color: inherit;
    }

.qsr-actionbar {
    background: transparent;
}

/* ===== Headings ===== */
.qsr-heading {
    font-weight: 800;
    letter-spacing: .2px;
}

/* ===== Cards ===== */
.card {
    box-shadow: 0 0.5rem 1rem rgba(2, 6, 23, 0.12) !important;
    margin-bottom: 2rem !important;
    border-radius: .6rem; /* softer than .1rem */
    border: 1px solid var(--qsr-border);
    background: var(--qsr-panel);
}

.card-header {
    background: var(--qsr-charcoal);
    background-image: var(--qsr-accent);
    color: #fff;
    padding: .5rem .75rem;
}

.card-footer {
    text-align: right;
    background: #f8f9fa;
}

.card-rounded {
    border-radius: 20px;
    overflow: hidden;
}

/* ===== Buttons (add a QSR primary) ===== */
.btn {
    border-radius: 999px;
}
/* pill look */
.btn-qsr {
    background-image: var(--qsr-accent);
    color: #0b1020;
    border: none;
}

    .btn-qsr:hover {
        filter: saturate(110%) brightness(1.05);
        color: #0b1020;
    }

/* ===== Search input compact ===== */
.qsr-search .form-control {
    border-radius: 999px 0 0 999px;
}

.qsr-search .btn {
    border-radius: 0 999px 999px 0;
}

/* ===== Footer ===== */
.qsr-footer {
    background: #0b1020;
    line-height: normal !important;
    padding-top: 2em;
    padding-bottom: 2em;
    min-height: 25vh;
}

/* ===== Nav items (keep your behavior, tune active state) ===== */
.nav-item {
    padding: 0 .7em;
    margin: 0 2px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 190px;
}

    .nav-item:hover {
        border-radius: 4px;
    }


/* ===== Tables (keep your styled table with slight polish) ===== */
.styled-table thead tr {
    background-color: #009879;
    color: #fff;
    text-align: left;
}

.styled-table th, .styled-table td {
    padding: 6px 15px;
}
/* a hair more padding */
.styled-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

    .styled-table tbody tr:nth-of-type(even) {
        background-color: #f7fafc;
    }

    .styled-table tbody tr:last-of-type {
        border-bottom: 2px solid #009879;
    }

/* ===== Scrollbars ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 6px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #64748b;
    }

/* ===== Utilities you already had (kept) ===== */
.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.footer {
    width: 100%;
    white-space: nowrap;
}

.text-ellipsized {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.text-ellipsis-1, .text-ellipsis-2, .text-ellipsis-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-ellipsis-1 {
    -webkit-line-clamp: 1;
}

.text-ellipsis-2 {
    -webkit-line-clamp: 2;
}

.text-ellipsis-3 {
    -webkit-line-clamp: 3;
}

.soft-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
}

/* Keep print fixes */
@page {
    size: auto;
    margin: 0mm;
}

@media print {
    .active-cont {
        margin-left: 1px;
        font-size: 12px;
    }

    table tfoot, table thead {
        display: table-row-group;
    }
}



/* ===== Breadcrumb item colors kept ===== */
.breadcrumb-item {
    color: rgba(0, 0, 0, 0.7) !important;
}

    .breadcrumb-item:hover {
        color: rgba(0, 0, 0, 0.9) !important;
    }

    .breadcrumb-item a {
        text-decoration: none !important;
        color: inherit;
    }

/* ===== Small polish ===== */
.qsr-app .navbar .nav-link {
    color: #e5e7eb;
}

    .qsr-app .navbar .nav-link:hover {
        color: #fff;
    }

.qsr-app .navbar .dropdown-menu {
    border-radius: .75rem;
    overflow: hidden;
}

/* Input labels and errors (kept) */
.form-label {
    color: #6c757d !important;
    font-size: smaller;
    margin: 0;
    padding: 0;
}

.field-validation-error {
    font-size: smaller;
    color: #dc3545;
}

/* Keep your existing select2, jquery-ui, etc. rules as-is below… */

/* ===== Optional: Accent class you can use anywhere ===== */
.qsr-text-accent {
    background: var(--qsr-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* ===== QuickServe footer polish ===== */
.qsr-footer {
    background: #0b1020; /* same as before to match header depth */
    position: relative;
}

.qsr-footer-underline {
    height: 3px;
    background: linear-gradient(90deg, var(--qsr-yellow), var(--qsr-red));
}

/* Brand wordmark reuse */
.qsr-text-accent {
    background: var(--qsr-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Pills that match the login page vibe */
.qsr-pill {
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    padding: .35rem .6rem;
    font-weight: 600;
}

/* Footer logo size & look */
.qsr-footer-logo {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.25));
}

/* Footer links gentle hover */
.qsr-footer a {
    transition: color .15s ease, opacity .15s ease;
}

    .qsr-footer a:hover {
        color: #fff !important;
        opacity: .95;
    }

/* Make section titles consistent */
.qsr-footer h4 {
    letter-spacing: .08em;
    font-weight: 800;
}

/* Keep borders subtle in dark footer */
.qsr-footer .border-opacity-25 {
    --bs-border-opacity: .25;
}


/* Top nav on dark QSR header */
.qsr-navbar .nav-link {
    color: rgba(255,255,255,.82) !important;
    padding: .5rem .75rem;
    border-radius: .6rem;
    transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}

    .qsr-navbar .nav-link i {
        color: inherit;
        opacity: .95;
    }

    /* Hover/focus = brighter text + subtle glow */
    .qsr-navbar .nav-link:hover,
    .qsr-navbar .nav-link:focus {
        color: #fff !important;
        background-color: rgba(255,255,255,.08);
        text-decoration: none;
    }

/* Active item = gradient pill + dark text for contrast */
.qsr-navbar .nav-item.active > .nav-link {
    background-image: var(--qsr-accent);
    color: #0b1020 !important;
    font-weight: 700;
}

    .qsr-navbar .nav-item.active > .nav-link i {
        color: #0b1020 !important;
    }

/* Optional: make “Close day” stand out if visible */
#closeDayMenuItem .nav-link {
    color: #fbbf24 !important;
}
    /* amber */
    #closeDayMenuItem .nav-link:hover {
        background-color: rgba(251,191,36,.15);
    }

/* Keep dropdowns readable on dark header */
.qsr-navbar .dropdown-menu {
    border-radius: .75rem;
    overflow: hidden;
}

/* Right-side actions on dark header */
.qsr-nav-actions .nav-link {
    color: rgba(255,255,255,.85) !important;
}

.qsr-nav-actions .btn-outline-light.btn-sm {
    border-color: rgba(255,255,255,.6);
    color: #fff;
}

    .qsr-nav-actions .btn-outline-light.btn-sm:hover {
        background: rgba(255,255,255,.12);
    }

/* Anchor the dropdown to the trigger li */
.qsr-nav-actions .dropdown {
    position: relative;
}


/* Icon button style that matches QSR header */
.qsr-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: .6rem;
    color: rgba(255,255,255,.85) !important;
    transition: background-color .15s ease, color .15s ease;
}

    .qsr-iconbtn:hover {
        background-color: rgba(255,255,255,.08);
        color: #fff !important;
    }

/* Notification badge pin */
.qsr-badge-pin {
    position: absolute;
    top: 3px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    color: #0b1020;
    font-weight: 700;
    background-image: var(--qsr-accent);
    border: 1px solid rgba(0,0,0,.15);
}

/* More menu dropdown */
.qsr-moremenu {
    border-radius: .75rem;
    overflow: hidden;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}

    .qsr-moremenu .dropdown-header {
        font-weight: 700;
        color: #111827;
    }

    .qsr-moremenu .dropdown-item {
        padding: .55rem .9rem;
    }

        .qsr-moremenu .dropdown-item:hover {
            background: #f1f5f9;
        }

/* Grip icon (3 bars) */
.grip-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

    .grip-icon span {
        width: 100%;
        height: 3px;
        background-color: rgba(255,255,255,.9);
        border-radius: 2px;
    }



.more-items-menu {
    position: relative;
    display: inline-block;
}

.more-items-menu-button {
    background-color: transparent;
    border: none;
    color: black;
    padding: 8px;
    font-size: 16px;
    cursor: pointer;
}
    .more-items-menu-button .grip-icon span {
        width: 100%;
        height: 3px;
        background-color: rgba(255,255,255,.9);
        border-radius: 2px;
    }

    .more-items-menu-content {
        display: none;
        position: fixed; /* Change from absolute to fixed */
        top: 60px; /* Adjust this value based on your navbar height */
        right: 20px; /* Adjust if needed to align with the button */
        background-color: #f9f9f9;
        min-width: 200px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1050; /* Ensure it stays on top */
        padding: 8px;
        border-radius: 16px;
        overflow: hidden;
    }


    .more-items-menu-content.show {
        display: block;
    }

    .more-items-menu-content a {
        color: black;
        padding: 8px 0;
        text-decoration: none;
        display: block;
    }

        .more-items-menu-content a:hover {
            background-color: #f1f1f1;
        }

.grip-icon {
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

    .grip-icon span {
        width: 100%;
        height: 3px;
        background-color: #333;
    }


.more-items-menu:hover .more-items-menu-content {
    display: block;
}

.more-items-menu:hover .more-items-menu-button {
    background-color: #f1f1f1;
}




/* QuickServe left sidenav */
.qsr-sidenav {
    gap: 4px; /* slight breathing room between items */
}

    .qsr-sidenav .nav-link {
        display: flex;
        align-items: center;
        padding: .55rem .75rem;
        border-radius: .75rem;
        color: var(--qsr-ink);
        background: transparent;
        border: 1px solid transparent;
        transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
       /* font-weight: 600;*/
    }

        .qsr-sidenav .nav-link i {
            width: 1.25rem; /* keeps labels aligned even if icons vary */
            text-align: center;
            color: #6b7280; /* muted by default */
            transition: color .15s ease;
        }

    .qsr-sidenav .nav-item:hover .nav-link {
        background: rgba(2, 6, 23, 0.04);
        border-color: var(--qsr-border);
        text-decoration: none;
    }

        .qsr-sidenav .nav-item:hover .nav-link i {
            color: #374151;
        }

    /* Active = QSR gradient pill + dark text for contrast */
    .qsr-sidenav .nav-item.active > .nav-link {
        background-image: var(--qsr-accent);
        color: #0b1020;
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(2, 6, 23, 0.12);
    }

        .qsr-sidenav .nav-item.active > .nav-link i {
            color: #0b1020;
        }

/* Compact sidebars: slightly tighter padding */
@media (max-width: 991.98px) {
    .qsr-sidenav .nav-link {
        padding: .5rem .6rem;
    }
}


.qsr-topnav .nav-link {
    font-size: .9rem;
    padding-inline: .75rem;
    display: flex;
    align-items: center;
    opacity: .85;
}

.qsr-topnav .nav-item.active .nav-link {
    opacity: 1;
    font-weight: 600;
    border-bottom: 2px solid #ef4444;
}

.qsr-topnav .nav-link-cta {
    border-radius: 999px;
    padding-inline: 1rem;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff !important;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,.15);
}

.qsr-topnav .nav-item.active .nav-link-cta {
    border-bottom: none; /* already looks like a button */
}
