:root {
    --primary-color: #f99d1c;
    --secondary-color: #00c6ff;
    --background-gradient: linear-gradient(135deg, #1572e8, #00c6ff);
    --card-radius: 16px;
}

body,
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6,
p,
.navbar,
.brand,
.btn-simple,
.alert,
a,
.td-name,
td,
button.close {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-family: "Inter", sans-serif;
}

*:focus {
    outline: 0 !important;
    -webkit-box-shadow: none !important;
    /* box-shadow: none !important;  */
    border-color: #f99d1c !important;
    box-shadow: 0 0 0 0.1rem rgba(247, 160, 37, 0.329) !important;
}

body {
    font-size: 14px;
    color: #575962;
    --bs-bg-opacity: 1;
    background-color: rgba(
        var(--bs-white-rgb),
        var(--bs-bg-opacity)
    ) !important;
}

.bg-primary {
    background: var(--primary-color) !important;
    color: #fff;
}

.btn-primary {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select > select.mobile-device:focus + .dropdown-toggle {
    outline: none !important;
}

.bootstrap-select .dropdown-menu > .inner:focus {
    box-shadow: none !important;
}

.card {
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

.img-head {
    padding: 20px 0px 25px 10px;
}

.sidebar .nav-collapse li.active a .sub-item::before {
    background: #fff !important;
}

.content {
    margin-top: 70px !important;
    margin-left: 15px !important;
}

.page-item.active .page-link {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-color);
}

.custom-template {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: -325px;
    width: 325px;
    height: max-content;
    display: block;
    z-index: 1;
    background: #ffffff;
    transition: all 0.3s;
    z-index: 1003;
    box-shadow: -1px 1px 20px rgba(69, 65, 78, 0.15);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    transition: all 0.5s;
}

.custom-template.open {
    right: 0px;
}

.custom-template .custom-toggle {
    position: absolute;
    width: 45px;
    height: 45px;
    background: rgb(88, 103, 221);
    top: 50%;
    left: -45px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-right: 1px solid #177dff;
    cursor: pointer;
    color: #ffffff;
    box-shadow: -5px 5px 20px rgba(69, 65, 78, 0.21);
}

.custom-template .custom-toggle i {
    font-size: 20px;
    animation: 1.3s spin linear infinite;
}

.custom-template .title {
    padding: 15px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    border-top-left-radius: 5px;
    border-bottom: 1px solid #ebedf2;
    background: #5867dd;
}

.custom-template .custom-content {
    padding: 20px 15px;
    max-height: calc(100vh - 90px);
    overflow: auto;
}

.custom-template .switcher {
    padding: 5px 0;
}

.custom-template .switch-block h4 {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    line-height: 1.3;
    margin-bottom: 0;
    text-transform: uppercase;
}

.custom-template .btnSwitch {
    margin-top: 20px;
    margin-bottom: 25px;
}

.custom-template .btnSwitch button {
    border: 0px;
    height: 20px;
    width: 20px;
    outline: 0;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #eee;
    position: relative;
    transition: all 0.2s;
}

.custom-template .btnSwitch button:hover {
    border-color: #0bf;
}

.custom-template .btnSwitch button.selected {
    border-color: #0bf;
}

.custom-template .img-pick {
    padding: 4px;
    min-height: 100px;
    border-radius: 5px;
    cursor: pointer;
}

.custom-template .img-pick img {
    height: 100%;
    height: 100px;
    width: 100%;
    border-radius: 5px;
    border: 2px solid transparent;
}

.custom-template .img-pick:hover img,
.custom-template .img-pick.active img {
    border-color: #177dff;
}

.demo .btn,
.demo .progress {
    margin-bottom: 15px !important;
}

.demo .form-check-label,
.demo .form-radio-label {
    margin-right: 15px;
}

.demo .toggle,
.demo .btn-group {
    margin-right: 15px;
}

.demo #slider {
    margin-bottom: 15px;
}

.table-typo tbody > tr > td {
    border-color: #fafafa;
}

.table-typo tbody > tr > td:first-child {
    min-width: 200px;
    vertical-align: bottom;
}

.table-typo tbody > tr > td:first-child p {
    font-size: 14px;
    color: #333;
}

.demo-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    transition: all 0.2s;
}

.demo-icon:hover {
    background-color: #f4f5f8;
    border-radius: 3px;
}

.demo-icon .icon-preview {
    font-size: 1.8rem;
    margin-right: 10px;
    line-height: 1;
    color: #333439;
}

body[data-background-color="dark"] .demo-icon .icon-preview {
    color: #969696;
}

.demo-icon .icon-class {
    font-weight: 300;
    font-size: 13px;
    color: #777;
}

body[data-background-color="dark"] .demo-icon .icon-class {
    color: #a9a8a8;
}

.form-show-notify .form-control {
    margin-bottom: 15px;
}

.form-show-notify label {
    padding-top: 0.65rem;
}

.map-demo {
    height: 300px;
}

#instructions li {
    padding: 5px 0;
}

.row-demo-grid {
    margin-bottom: 15px;
}

.row-demo-grid [class^="col"] {
    text-align: center;
}

.row-demo-grid [class^="col"] .card-body {
    background: #ddd;
}

.btnSwitch button[data-color="white"] {
    background-color: #fff;
}

.btnSwitch button[data-color="grey"] {
    background-color: #f1f1f1;
}

.btnSwitch button[data-color="black"] {
    background-color: #191919;
}

.btnSwitch button[data-color="dark"] {
    background-color: #1a2035;
}

.btnSwitch button[data-color="blue"] {
    background-color: #f99d1c;
}

.btnSwitch button[data-color="purple"] {
    background-color: #6861ce;
}

.btnSwitch button[data-color="light-blue"] {
    background-color: #48abf7;
}

.btnSwitch button[data-color="green"] {
    background-color: #31ce36;
}

.btnSwitch button[data-color="orange"] {
    background-color: #ffad46;
}

.btnSwitch button[data-color="red"] {
    background-color: #f25961;
}

.btnSwitch button[data-color="dark2"] {
    background-color: #1f283e;
}

.btnSwitch button[data-color="blue2"] {
    background-color: #1269db;
}

.btnSwitch button[data-color="purple2"] {
    background-color: #5c55bf;
}

.btnSwitch button[data-color="light-blue2"] {
    background-color: #3697e1;
}

.btnSwitch button[data-color="green2"] {
    background-color: #2bb930;
}

.btnSwitch button[data-color="orange2"] {
    background-color: #ff9e27;
}

.btnSwitch button[data-color="red2"] {
    background-color: #ea4d56;
}

.btnSwitch button[data-color="bg1"] {
    background-color: #fafafa;
}

.btnSwitch button[data-color="bg2"] {
    background-color: #fff;
}

.btnSwitch button[data-color="bg3"] {
    background-color: #f1f1f1;
}

@media screen and (max-width: 550px) {
    .table-typo tr td {
        display: flex;
        align-items: center;
        word-break: break-word;
    }

    .table-typo tr td:first-child p {
        margin-bottom: 0px;
    }
}

@media screen and (max-width: 576px) {
    .custom-template .custom-content {
        overflow: auto;
    }

    .form-show-notify > .text-right,
    .form-show-validation > .text-right {
        text-align: left !important;
    }
}

@media screen and (max-width: 400px) {
    .custom-template {
        width: 85% !important;
        right: -85%;
    }
}

#mand {
    color: red;
}

.alert-msg-cls {
    position: absolute;
    top: 10vh;
    right: 20px;
    z-index: 9999;
}

.table-border {
    border: 1px solid #cdcdcd;
}

.last-feedback-cls {
    width: 250px;
    margin: 5px;
}

.last-feedback-cls .card-header {
    padding: 10px !important;
}

.last-feedback-cls .flex-container.card-body {
    padding: 10px !important;
    background: #cdcdcd87;
}

.last-feedback-cls .flex-container.card-body div {
    flex: 0 0 50%;
    max-width: 50%;
    font-size: 11px;
}

/* .table-bordered th, .table-bordered td { border: 0.5px solid #ecebeb!important }
.table th{ background: #f99d1c!important;color:#fff;padding: 0 16px !important;height: 40px;}
th.sorting_asc::before,th.sorting::before,th.sorting_asc::after,th.sorting::after{
	font-size: 12px !important;
} */
.sidebar.sidebar-style-2 .nav .nav-item .active a {
    background: #f99d1c !important;
    color: #fff !important;
}

.sidebar.sidebar-style-2 .nav .nav-item .active a::before {
    color: #fff !important;
}

.sidebar .nav-collapse li a .sub-item:before {
    color: #fff !important;
}

.btn.dropdown-toggle.btn-light {
    border: 1px solid #ebedf2 !important;
    border-radius: 0.25rem;
}

.btn-success i.fa.fa-phone {
    width: 10px;
    height: auto;
}

.btn-danger i.fa.fa-trash {
    width: 10px;
    height: auto;
}

.header-profile {
    margin: 0px;
    width: 50px;
    height: 50px;
    padding: 2px 0px 0px 2px;
    border: 3px solid black;
    border-radius: 50%;
    justify-content: center;
    display: flex;
}

.header-profile-lg {
    padding: 3px 0px 0px 2px;
    border: 3px solid black;
    border-radius: 50%;
    justify-content: center;
    display: flex;
    width: 50px;
    height: 50px;
}

.avatar-sm {
    width: 2.2rem !important;
    height: 2.2rem !important;
}

.avatar-lg {
    width: 2.2rem !important;
    height: 2.2rem !important;
}
.w-60 {
    width: 60px !important;
}
.text-end {
    text-align: end !important;
}
.nowrap {
    white-space: nowrap;
}
div.dt-buttons {
    position: relative;
    float: right;
    margin-left: 15px;
}

#is_eligible_Urja:focus {
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}
.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: #f99d1c !important;
}
.daterangepicker td.in-range {
    background-color: #fbc476 !important;
}
.sidebar .nav-collapse li a .sub-item {
    text-wrap-mode: nowrap !important;
}
.dataTables_length {
    display: block !important;
}

.dataTables_length select {
    width: auto;
    display: inline-block;
}
table.dataTable thead th {
    outline: none !important;
}

table.dataTable thead th:focus {
    outline: none !important;
    box-shadow: none !important;
}
.notif-box {
    min-width: 300px;
    min-height: 400px;
}

.notif-scroll {
    max-height: 800px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    padding: 0px 15px;
    border-bottom: 1px solid #f1f1f1;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    font-size: 12px !important;
}
.notif-item:hover {
    background: #f8f9fa;
}
.notif-item.unread {
    background: #fff8e7;
    border-left: 3px solid #f0ad4e;
}
.notif-content {
    flex: 1;
    margin-left: 10px;
}
.notif-content .time {
    display: block;
    font-size: 11px;
    color: #aaa;
    margin-top: 3px;
}
.read-more {
    font-size: 12px;
}
.pulse-button {
    font-size: 11px;
}
table.dataTable th,
table.dataTable td,
table.dataTable tr {
    text-wrap-mode: nowrap !important;
}
/* ── Overlay ── */
#canteen-loader {
    position: fixed;
    inset: 0;
    background: rgb(48 46 46 / 78%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    gap: 1.5rem;
}

/* ── Plate wrapper ── */
.plate-wrap {
    width: 110px;
    height: 110px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Spinning rings ── */
.ring {
    position: absolute;
    border-radius: 50%;
    border: 3.5px solid transparent;
    animation: spin 1.2s linear infinite;
}

.ring-outer {
    width: 110px;
    height: 110px;
    border-top-color: #1d9e75;
    border-right-color: #1d9e75;
    animation-duration: 1.3s;
    animation-direction: normal;
}

.ring-mid {
    width: 86px;
    height: 86px;
    border-bottom-color: #ef9f27;
    border-left-color: #ef9f27;
    animation-duration: 0.95s;
    animation-direction: reverse;
}

.ring-inner {
    width: 64px;
    height: 64px;
    border-top-color: #d85a30;
    border-right-color: #d85a30;
    animation-duration: 1.7s;
    animation-direction: normal;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Plate center ── */
.plate-center {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1.5px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* ── Utensils ── */
.utensils {
    display: flex;
    gap: 7px;
    align-items: flex-end;
    padding-bottom: 4px;
}

/* Fork */
.fork-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.fork-tines {
    display: flex;
    gap: 2px;
}

.tine {
    width: 2px;
    height: 8px;
    background: #888;
    border-radius: 1px;
}

.fork-handle {
    width: 2.5px;
    height: 14px;
    background: #888;
    border-radius: 2px;
}

/* Spoon */
.spoon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.spoon-bowl {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #888;
}

.spoon-handle {
    width: 2.5px;
    height: 14px;
    background: #888;
    border-radius: 2px;
}

/* ── Loading text ── */
.loader-text {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    font-family: sans-serif;
    animation: fade 1.6s ease-in-out infinite;
    letter-spacing: 0.02em;
}

.dots span {
    animation: fade 1.6s ease-in-out infinite;
}
.dots span:nth-child(2) {
    animation-delay: 0.3s;
}
.dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fade {
    0%,
    100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

.daterangepicker select.monthselect,
    .daterangepicker select.yearselect {
        border-radius: 6px;
        border: 1px solid #ccc;
        padding: 3px 6px;
        font-size: 13px;
    }