﻿:root {
    --primary-color: #f39c12;
    --primary-light: #ffa959;
    --primary-super-light: #fff6ed;
    --primary-focus: #ffe2c4;
    --primary-dark: #d06b15;
    --text-dark: #333333;
    --text-light: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --success-color: #198754;
    --border-radius: 0.85rem;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.25s ease;
}

html, body {color:unset;font-size: 0.9rem}
table {color:#000 !important}
table th{vertical-align: middle !important;text-align:center; font-weight:bold }
table td {vertical-align: middle !important}

label{font-weight:600}
h1:focus {outline: none;}
a, .btn-link,.collapse-item {color: #0071c1;cursor:pointer}
input[type=number] {text-align: right}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
}

.text-primary-2 {
    color: var(--primary-color) !important;
}

.btn{
    color: #fff;
    background-color: var(--primary-color);
}

.nav-link.active{
    color: var(--primary-color) !important;
}

.btn:hover {
    background-color: var(--primary-color) !important;
}

.bg-primary{
    background-color: var(--primary-color) !important;
}
.btn:focus{
    background-color: var(--primary-color) !important;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: none;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.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."
}

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column, .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}

.modalconfig{position:absolute}
.modal button.close {border: none;background: none}
.modal-body 
{
    padding: 1rem !important;
    max-height: calc(100vh - 180px) !important;
}
.configsetup {margin:10px 0px}

.card-header{display:flex; justify-content: space-between;}
.card-title{margin:0px}

.tags label {float: left;}
.tags .tag {float: left;margin-left: 5px;margin-top: 5px;margin-bottom: 5px;background: #e0e0e0;padding: 5px;}
.tags img {width: 10px;}

.order-create-section hr{margin:0px; background:#ccc}
.auto-list-group {position: absolute;z-index: 1000;width: 100%;max-height: 200px;overflow-y: auto;border: 1px solid #ccc;background-color: #fff;top:22px;list-style-type:none;padding:0px;color:#000}
.auto-list-group-item {cursor: pointer;padding:3px}
.auto-list-group-item:hover {background-color: #f0f0f0;}
.order-create-section .auto-list-group{left:85px;}
.product-section .auto-list-group{left:68px;}

.ql-align .ql-picker-label{padding-top:0px !important}
.ql-formats .btn-img{padding-top:0px !important}
.ql-formats .btn-code {width: 24px !important;border: 1px solid !important;padding: 0px !important;font-size: 12px;height: 18px !important;margin-top: 3px;font-weight: 600;}

.submenu-open {padding-left:25px}
.input-group-text:has(> input.form-check-input) {padding-left: 25px}
.form-check-inline {margin-right: 7px;}

input[type="radio"]:disabled {
    opacity: 1 !important;
    filter: none !important;
    pointer-events: none;
}

    input[type="radio"]:disabled + label {
        opacity: 1 !important;
        color: inherit !important;
        cursor: default !important;
    }

.small-box {
    border-radius: .25rem;
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    display: block;
    margin-bottom: 20px;
    position: relative;
}
.small-box > .inner { padding: 10px;}
.small-box h3, .small-box p {z-index: 5;}
.small-box .icon {color: rgba(0, 0, 0, .15);z-index: 0;}
.small-box .icon > span {font-size: 70px; position: absolute;right: 15px;top: 15px;transition: -webkit-transform .3slinear;transition: transform .3slinear;transition: transform .3slinear, -webkit-transform .3slinear; }
.small-box .small-box-footer {background-color: rgba(0, 0, 0, .1);color: rgba(255, 255, 255, .8);display: block;padding: 3px 0;position: relative; text-align: center;text-decoration: none; }
.small-box a.button {display: block;width: 100%;height: 100%;text-align: center;vertical-align: middle;}
.small-box a.button i {font-size: 61px; margin: 15px; color: #000;}

@media (min-width: 768px) {
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
        transition: margin-left .3sease-in-out;
        margin-left: 250px;
    }
}
.sticky-footer {background-color: #fff;border-top: 1px solid #dee2e6;color: #869099;padding: 0.5rem !important;}
.input-group-sm > .input-group-text,.input-group-sm > .form-control,.input-group-sm > .form-select,.input-group-sm > .btn{border-radius:unset;height:unset}
.input-group-sm > .custom-select, .input-group-sm > .form-control:not(textarea){height:unset}
.input-group > .form-control, .input-group > .form-select {position: relative;flex: 1 1 auto;width: 1%; min-width: 0;}
.form-select {
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    -moz-padding-start: calc(0.75rem - 3px);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15sease-in-out, box-shadow .15sease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.bg-info, .bg-info > a { color: #fff !important;}
.content-header h1 {font-size: 1.8rem;margin: 0;float:left}
.content-header button {float:right}
.card-title {float: left;font-size: 1.1rem;font-weight: 400;margin: 0;}
.btn-xs {padding: .125rem .25rem;font-size: .75rem;line-height: 1.5;border-radius: .15rem;}
.collapse.show hr{border:1px solid #ccc;height:0px;margin:5px 0px}

.callout { border-radius: .25rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24); background-color: #fff;border-left: 5px solid #e9ecef; margin-bottom: 1rem;padding: 1rem;}
.callout.callout-danger {border-left-color: var(--primary-color)}
.content {clear:both}
.card .card-header[data-toggle=collapse]::after {line-height:40px}
.sidebar.toggled .nav-item .nav-link span{font-size: .9rem;}
.sidebar .nav-item .nav-link i{font-size: 1.2rem !important}

/*.bg-gradient-primary {background-color: #FF8C00;background-image: linear-gradient(180deg, #FFA500 10%, #FF8C00 100%);background-size: cover;}
.sidebar-dark hr.sidebar-divider{background-color:#D2691E}
.sidebar-dark .nav-item .nav-link, .sidebar-dark .nav-item .nav-link i{color:#2F4F4F}
.btn{background-color:#FF8C00}*/

.categoriesproduct{overflow-y:scroll;overflow-x:hidden; height:732px;}
.categoriesproduct .item{height:100%;border: 1px solid #ccc;text-align: center;vertical-align: middle;align-items: center;height: 100%;display: grid; cursor:pointer; color:#fff}
.categoriesproduct .item i{font-size:36px}
.categoriesproduct .item .producttext{background: black; opacity: 0.5;}
.btn-info{
    background-color: var(--primary-color) !important;
}
.btn-secondary{
    background-color: var(--primary-color) !important;
}
/* Global font improvements */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #333333 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

/* Global UI elements */
.card {
    border-radius: 0.85rem !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    overflow: hidden !important;
}

.btn {
    border-radius: 0.5rem !important;
    padding: 0.5rem 1.25rem !important;
    font-weight: 500 !important;
    transition: all 0.25s ease !important;
}

.btn-primary {
    background-color: #f39c12 !important;
    border-color: #f39c12 !important;
}

.btn-primary:hover {
    background-color: #d06b15 !important;
    border-color: #d06b15 !important;
}

/* Form controls */
.form-control {
    /* border-radius: 0.5rem !important; */
    padding: 0.55rem 0.85rem !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    font-size: 0.95rem !important;
}

/* Table styles */
.table th {
    font-weight: 600 !important;
    background-color: #ffe7d0 !important;
    border-bottom: 2px solid rgba(242, 140, 48, 0.2) !important;
}

.table td {
    vertical-align: middle !important;
}
/* End Global font improvements */

/* Index Styles */
/* Glassmorphism Styles */
.glass {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: var(--box-shadow);
}

.dashboard-header {
    padding: 1.75rem 2.5rem;
    margin: 1.5rem 3rem 2.5rem 3rem;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    background: #ffffff;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
}

.dashboard-header h1 {
    margin: 0;
    font-weight: 700 !important;
    font-size: 1.9rem;
    letter-spacing: 0.5px;
}

.stat-card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    overflow: hidden;
    /* Remove expensive transforms/transitions on hover */
    transform: translateZ(0); /* Force GPU acceleration */
}

    .stat-card .icon {
        font-size: 2.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 65px;
        height: 65px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.25);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-right: 1rem;
        color: var(--primary-color);
    }

.stat-card .card-body {
    padding: 1.75rem;
/*    color: var(--text-light);*/
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    color: var(--primary-color)
}

    .stat-card p {
        font-size: 1rem;
        margin-bottom: 0;
        font-weight: 600;
        color: #666;
        letter-spacing: 0.3px;
    }

    .stat-card .card-footer {
        background-color: rgb(243 156 18 / 5%);
        border-top: 1px solid rgb(243 156 18 / 5%);
        padding: 0.85rem 1.5rem;
    }

.stat-card .card-footer a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    letter-spacing: 0.3px;
}

    .stat-card.new-order {
        background: linear-gradient(135deg, transparent 0%, rgba(243, 156, 18, 0.05) 100%);
        display: flex;
        flex-direction: column;
        border-left: 5px solid var(--primary-color);
    }

.stat-card.alert {
    background: var(--primary-color);
    color: #fff;
    padding: unset !important;
    display: flex;
    flex-direction: column;
}

    .stat-card.create-order {
        background: linear-gradient(135deg, transparent 0%, rgba(243, 156, 18, 0.05) 100%);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.stat-card.create-order:hover {
    color: var(--primary-color);
}

    .stat-card.create-order a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #666666;
        padding: 2.25rem;
        font-weight: 600;
        width: 100%;
    }

    .stat-card.create-order i {
        font-size: 2.25rem;
        margin-bottom: 1rem;
        background: rgba(255, 255, 255, 0.2);
        width: 65px;
        height: 65px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
        color: var(--primary-color);
    }

.data-card {
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    transform: translateZ(0); /* Force GPU acceleration */
}

    .data-card .card-header {
        background: #fff;
        color: var(--primary-color);
/*        border-left: 5px solid var(--primary-color);*/
        font-weight: 700;
        padding: 1.25rem 1.75rem;
        font-size: 1.1rem;
        border-bottom: none;
        letter-spacing: 0.5px;
        border-radius: var(--border-radius);
    }

    .data-card.open .card-header {
        background: var(--primary-color);
        color: var(--text-light);
        font-weight: 600;
        letter-spacing: 0.5px;
    }

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    table-layout: fixed; /* Improve table rendering */
}

.data-table th, .data-table td {
    padding: 0.95rem 1.25rem;
    border: none;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    border-right: 1px solid rgba(224, 224, 224, 0.5);
}

.data-table th:last-child, .data-table td:last-child {
    border-right: none;
}


.data-table th {
    background-color: rgba(242, 140, 48, 0.1);
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    color: var(--text-dark);
    letter-spacing: 0.3px;
    border-bottom: 2px solid rgba(242, 140, 48, 0.2);
}

.data-table th[colspan] {
    background-color: rgba(242, 140, 48, 0.15);
    color: var(--primary-dark);
}

.money-value {
    text-align: right;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.money-value sup {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.85rem;
    position: relative;
    top: -2px;
    margin-left: 2px;
}

/* Container styling */
.content {
    padding: 0 1.5rem;
}

.container-fluid {
/*    max-width: 1600px;*/
    margin: 0;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    height: 1em;
    margin: 0.2em 0;
    overflow: hidden;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-header {
        margin: 1rem 0.5rem 1.5rem 0.5rem;
        padding: 1.25rem 1.5rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .stat-card .card-body {
        padding: 1.25rem;
    }

    .stat-card h3 {
        font-size: 1.6rem;
    }

    .data-table {
        font-size: 0.85rem;
    }

    .data-table th, .data-table td {
        padding: 0.75rem 0.5rem;
    }
}
/* End Index Styles */

/* Navbar Styles */
.topbar {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(0, 0, 0, 0.05) !important;
}

.navbar-search .form-control {
    background-color: var(--gray-light) !important;
    border: 1px solid var(--gray-medium) !important;
    border-radius: 0.5rem 0 0 0.5rem !important;
    color: var(--text-dark);
    transition: all 0.2s ease-in-out;
    padding: 0.6rem 1rem;
    box-shadow: none !important;
}

.navbar-search .form-control:focus {
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 0 0.2rem rgba(242, 140, 48, 0.15) !important;
    background-color: white !important;
}

.navbar-search .input-group-append .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    border-radius: 0 0.5rem 0.5rem 0 !important;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease-in-out;
}

.navbar-search .input-group-append .btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.navbar-search .input-group {
    border-radius: 0.5rem;
}

/* User Dropdown */
.dropdown-toggle::after {
    display: none;
}

.nav-link.dropdown-toggle {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.nav-link.dropdown-toggle:hover {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease-in-out;
}

.dropdown-item:hover {
    background-color: rgba(242, 140, 48, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 1.5rem;
    text-align: center;
    margin-right: 0.5rem;
    color: var(--gray-medium);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

.dropdown-divider {
    border-top: 1px solid rgba(242, 140, 48, 0.1);
    margin: 0.5rem 0;
}

.dropdown-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

/* Sidebar Styles */
.sidebar-custom {
    width: 64px;
    background: white;
    border-right: 1px solid #e5e7eb;
    transition: width 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

    .sidebar-custom.expanded {
        width: 210px;
    }

#wrapper {
    min-height: 100vh;
    padding-left: 64px;
    transition: padding-left 0.3s ease;
}

    #wrapper.sidebar-expanded {
        padding-left: 210px;
    }

/* Backdrop */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
    display: none;
    transition: opacity 0.3s ease;
}

    .sidebar-custom.expanded ~ .sidebar-backdrop,
    .sidebar-backdrop.show {
        display: block;
    }

/* Pin Container */
.pin-container {
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-bottom: 1px solid #e5e7eb;
    background: var(--primary-color);
}

.sidebar-brand-text {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.sidebar-custom.expanded .sidebar-brand-text {
    opacity: 1;
}

.pin-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    position: absolute;
    top: -5px;
    right: -5px;
}

    .pin-btn:hover {
        color: #6b7280;
    }

    .pin-btn.pinned {
        color: #ffffff;
        transform: rotate(45deg);
    }

        .pin-btn.pinned:hover {
            color: #6b7280;
        }

    .pin-btn i {
        font-size: 16px;
    }

/* Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: #374151;
    border-left: 3px solid transparent;
}

    .nav-link:hover {
        background: #f9fafb;
        text-decoration: none;
        color: #374151;
    }

    .nav-link.active {
        background: var(--primary-super-light);
        border-left-color: var(--primary-color);
    }

a.nav-link.home {
    background-color: rgba(242, 140, 48, 0.15);
    color: var(--primary-color) !important;
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 10px;
    padding: 12px 6px;
}

.nav-link-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    color: #f59e0b;
    text-align: center;
    width: 25px;
}

.nav-link.active .nav-icon {
    color: var(--primary-color);
}

.nav-label {
    white-space: nowrap;
    opacity: 0;
    font-size: 0.85rem;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.sidebar-custom.expanded .nav-label {
    opacity: 1;
}

.nav-arrow {
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #9ca3af;
    font-size: 12px;
}

.sidebar-custom.expanded .nav-arrow {
    opacity: 1;
    width: 10px;
    text-align: center;
}

.nav-arrow.rotated {
    transform: rotate(90deg);
}

/* Submenu */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.0s ease;
    background: #f9fafb;
}

    .submenu.open {
        max-height: 800px;
    }

.submenu-item {
    display: block;
    padding: 10px 16px 10px 52px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #3a3b45;
    white-space: nowrap;
    transition: background 0.2s ease, opacity 0.3s ease, color 0.2s ease;
    opacity: 0;
    text-decoration: none;
    text-wrap-mode: wrap;
}

.sidebar-custom.expanded .submenu-item {
    opacity: 1;
}

.submenu-item:hover {
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
}

/* Divider */
.sidebar-divider {
    height: 2px;
    background: #a9a9a9;
    margin: 8px 0;
    border: none;
}

/* Scrollbar */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

    .sidebar-nav::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar-custom {
        width: 0;
    }

        .sidebar-custom.expanded {
            width: 260px;
        }
}

/* Sidebar collapsed state - legacy support */
.sidebar-collapsed {
    width: 64px;
}

    .sidebar-collapsed.expanded {
        width: 260px;
    }

/*end sidebar css*/

.page-item.active .page-link {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

.page-link {
    color: #000 !important;
}

.input-group-text{min-width:unset!important}