@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');

:root {
    /** Main Colors */
    --font: "Rubik", sans-serif;
    --white-color: #fff;
    --black-color: #000;
    --black-50: rgba(0, 0, 0, 0.5);

    --primary-color: #1F4A3A;
    --primary-light: #1F4A3A33;
    --primary-bg: #1F4A3A0D;
    --body-bg-color: #F7FAF8;
    --assest-color: #fff;

    /** Design System — Text & Border */
    --text-heading: #0F172A;
    --text-secondary: #64748B;
    --border-color: #E2E8F0;
    --radius-md: 10px;
    --transition: all 0.22s ease;

    /* --partition-color: */
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --blue: #0d6efd;
    --green: #058f00;
    --red: #e3000b;
    --gray: #666;
    --cyan: #0dcaf0;
    --orange: #fd7e14;

}

[data-theme="dark"] {
    /** Typography */
    --font: "Rubik", sans-serif;
    --white-color: #111A17;
    --black-color: #F8FAFC;
    --black-50: rgba(248, 250, 252, 0.5);

    /** Brand Colors */
    --primary-color: #4F8B76;
    --primary-light: rgba(79, 139, 118, 0.18);
    --primary-bg: rgba(79, 139, 118, 0.10);
    --body-bg-color: #0F1714;
    --assest-color: #18231F;

    /** Design System — Text & Border */
    --text-heading: #F8FAFC;
    --text-secondary: #A8B5B0;
    --border-color: #2B3A35;
    --radius-md: 10px;
    --transition: all 0.22s ease;

    /* --partition-color: */
    --success: #22C55E;
    --danger: #EF4444;
    --warning: #FACC15;
    --blue: #60A5FA;
    --green: #22C55E;
    --red: #EF4444;
    --gray: #9CA3AF;
    --cyan: #22D3EE;
    --orange: #FB923C;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    background-color: var(--body-bg-color);
    font-size: 14px;
    overflow-x: hidden;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
}

.defaultfont {
    font-family: var(--font);
}

a {
    text-decoration: none !important;
}

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

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

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
}

.listitemClass {
    background-color: var(--body-bg-color);
    border: 1px solid var(--black-color);
    cursor: s-resize;
}

.text-gray {
    color: var(--black-color);
    opacity: 0.6;
}

.text-black {
    color: var(--black-color);
}

.btn:focus {
    outline: none;
    -webkit-box-shadow: 0 0 0;
    box-shadow: 0 0 0;
}

.btn-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    border-bottom: 1px solid var(--primary-color);
    display: inline-block;
    padding: 0 0 0px;
    border-radius: 0;
    font-size: 14px;
}

.btn-default {
    background: var(--primary-bg);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid transparent;
    -webkit-transition: all 0.3s;
    border: 1px solid var(--primary-color);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-default:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    box-shadow: 0 2px 8px var(--primary-light);
}


.mw-100 {
    min-width: 100px;
}

.mw-120 {
    min-width: 120px;
}

.mw-150 {
    min-width: 150px;
}

.btn-icon {
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--primary-color);
}

.btn-icon {
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--primary-color);
}

.dropright .dot-icon {
    height: 18px;
}

.dropright .dropdown-menu {
    top: 100% !important;
    right: 0;
    -webkit-transform: none !important;
    transform: none !important;
    left: auto !important;
}

.dropdown-menu {
    -webkit-box-shadow: 0 15px 35px var(--assest-color);
    box-shadow: 0 15px 35px var(--assest-color);
    padding: 4px;
    border: 0;
    border-radius: 12px;
}

.dropdown-menu .dropdown-item {
    font-weight: 500;
    border-bottom: 2px dashed var(--assest-color);
    padding: 7px 11px;
    font-size: 14px;
}

.dropdown-menu .dropdown-item:last-child {
    border-bottom: 0;
}

.breadcrumb {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: var(--assest-color);
    border-radius: .25rem
}

.breadcrumb a {
    color: var(--primary-color);
    font-weight: bold;
}

.breadcrumb-item+.breadcrumb-item::before {
    display: inline-block;
    padding-right: .5rem;
    padding-left: .5rem;
    content: "/"
}

.breadcrumb-item.active {
    color: var(--black-color)
}

.side-toggle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    background: transparent;
    padding: 0;
}

.side-toggle span {
    background: var(--primary-color);
    width: 22px;
    height: 3px;
    margin: 2px;
    border-radius: 50px;
}

.side-toggle span:nth-child(2) {
    width: 26px;
}

.custom-control .custom-control-label::before {
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 3px;
}

.custom-control .custom-control-input:checked~.custom-control-label::after {
    border-radius: 3px;
    background-color: var(--primary-color);
}

.custom-control.custom-radio .custom-control-label::before,
.custom-control.custom-radio .custom-control-label:after {
    border-radius: 50% !important;
}

.sidebar {
    background: var(--assest-color);
    padding: 30px 15px 30px 15px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 280px;
    max-width: 100%;
    overflow: auto;
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

@media (min-width: 1680px) {
    .sidebar {
        width: 300px;
    }
}

.sidebar.hide-sidebar {
    width: 80px;
    padding: 30px 10px;
}

@media (min-width: 1024px) {
    .sidebar.hide-sidebar .side-menu .partition {
        display: none;
    }

    .sidebar.hide-sidebar .side-head {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        /* margin: 6px 0 5px 2px; */
        width: 50px;
    }

    .sidebar.hide-sidebar .side-logo,
    .sidebar.hide-sidebar .partition,
    .sidebar.hide-sidebar .side-menu a>span {
        display: none;
    }

    .sidebar.hide-sidebar .side-menu .active a:after {
        content: none;
    }

    .sidebar.hide-sidebar .side-menu a {
        margin: 6px auto;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        padding: 13px 9px;
        height: 50px;
        width: 50px;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .sidebar.hide-sidebar .side-menu a .menu-icon {
        margin-right: 0;
    }

    .sidebar.hide-sidebar .side-menu a.dropdown-toggle:after {
        content: none;
    }

    .sidebar.hide-sidebar .side-menu .dropdown-menu {
        margin-left: 0;
        min-width: unset;
        padding: 0;
    }

    .sidebar.hide-sidebar .side-menu .dropdown-menu a {
        padding: 0;
    }

    .sidebar.hide-sidebar .side-menu .dropdown-menu .active {
        padding: 0;
        margin: 0px;
    }

    .sidebar.hide-sidebar .side-menu .dropdown-menu a svg {
        margin-right: 0;
    }
}

.sidebar .side-head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.sidebar .side-logo {
    width: 150px;
}

.sidebar .side-menu {
    padding: 0;
    list-style: none;
    margin: 40px 0 0;
    overflow-y: auto;
}

.sidebar .side-menu a {
    color: var(--black-color);
    display: block;
    padding: 10px 12px;
    position: relative;
    margin: 6px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    /* font-size: 16px; */
    font-weight: 500;
}

.sidebar.hide-sidebar .side-menu .side_line.active a:after {
    display: none;
}

.sidebar .side-menu .side_line.active a:after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 2px;
    height: 30px;
    background: var(--white-color);
}

.sidebar .side-menu a .menu-icon {
    margin-right: 12px;
}

.sidebar .side-menu .dropdown-menu a .submenu-icon {
    margin-right: 12px;
}

.sidebar .side-menu a:hover {
    color: var(--primary-color);
    font-weight: 600;

}

.sidebar .side-menu .active a {
    background: var(--primary-light);
    border-radius: 15px;
    color: var(--primary-color);
}

.sidebar .side-menu .active a .menu-icon {
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
}

.sidebar .side-menu .active .dropdown-menu .active .submenu-icon {
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
}

.sidebar .side-menu .dropdown-toggle::after {
    position: absolute;
    right: 10px;
    top: 22px;
}

.sidebar .side-menu .dropdown-menu {
    position: relative !important;
    -webkit-transform: none !important;
    transform: none !important;
    -webkit-box-shadow: 0 0 0;
    box-shadow: 0 0 0;
    float: none;
    background: transparent;
    margin-left: 15px;
}

.sidebar .side-menu .dropdown-menu .dropdown-item {
    padding: 4px 12px;
    background: transparent !important;
}

.right-content {
    margin-left: 280px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.sidebar .side-menu .side-submenu a {
    color: var(--black-color);
    display: block;
    padding: 10px 12px;
    position: relative;
    margin: 6px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    /* font-size: 16px; */
    font-weight: 500;
}

.sidebar .side-menu .side-submenu .active {
    background: var(--primary-color);
    border-radius: 15px;
    color: var(--white-color);
    padding: 1px 0px;
}

.sidebar .side-menu .side-submenu a:hover {
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar .side-menu .side-submenu .active a:hover {
    color: var(--white-color);
    font-weight: 600;
}

.sidebar .side-menu .side-submenu .active a {
    color: var(--white-color);
}

@media (min-width: 1680px) {
    .right-content {
        margin-left: 300px;
    }
}

.right-content.right-content-0 {
    margin-left: 80px;
}

.right-content.right-content-0 .header .title-control .side-toggle {
    display: none;
}

.avatar-img {
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.body-content {
    padding: 25px;
}

.box-title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--primary-light);
    padding-bottom: 10px;
    margin-top: 20px;
}

.box-title .title {
    font-size: 20px;
    font-weight: 600;
    margin: 5px 0;
    color: var(--black-color);
}

.box-title .header-text {
    color: var(--black-color);
}

.avatar-control {
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.avatar-control .avatar-img {
    height: 50px;
    width: 50px;
    border-radius: 20%;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: transparent;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: var(--primary-bg);
}


.table {
    border-color: var(--primary-bg);
    min-width: 650px;
}

.table thead th {
    font-size: 14px;
    font-weight: 600;
    border-top: 0;
    border-bottom: 1px solid var(--primary-bg);
    background-color: var(--primary-bg);
    color: var(--black-color);
}

.table td {
    font-size: 14px;
    border-bottom: 1px solid var(--primary-bg);
    color: var(--black-color);
    border-top: 0;
    vertical-align: middle;
}

.table .avatar-img {
    margin-right: 10px;
}

.table .clamp-text {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.table .btn {
    padding: 2px;
    background: transparent;
    margin: 0 3px;
}

.table .btn img {
    width: 16px;
}

.table tfoot {
    background-color: var(--primary-bg);
}

.dot {
    height: 8px;
    width: 8px;
    background: var(--red);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.custom-tabs {
    margin: 20px 0;
    background: var(--assest-color);
    border-radius: 100px;
}

.custom-tabs li.nav-item {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: center;
}

.custom-tabs .nav-link {
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--black-color);
    padding: 10px;
}

.custom-tabs .nav-link.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.custom-tabs .nav-link:hover {
    background-color: var(--primary-bg);
    color: var(--primary-color);
}

.summary-table-card .border-card {
    padding: 10px;
    border: 2px solid var(--assest-color);
    border-radius: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.summary-table-card .border-card:hover {
    border: 2px solid var(--primary-color);
}

.summary-table-card .border-card>.row {
    margin: 0;
}

.summary-table-card .border-card>.row .col,
.summary-table-card .border-card>.row .col-1,
.summary-table-card .border-card>.row .col-2,
.summary-table-card .border-card>.row .col-12 {
    padding: 0;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.summary-table-card .avatar-control {
    min-width: 120px;
    font-weight: 600;
}

.summary-table-card .avatar-control img {
    margin-right: 8px;
}

.summary-table-card .price {
    color: var(--red-color);
    font-weight: 600;
}

.video-box {
    padding: 25px;
    background: var(--assest-color);
}

.video-box .f600 {
    font-weight: 600;
}

.video-box .box-border-0 {
    border: 0;
    padding-bottom: 0;
}

.page-search {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: var(--primary-bg);
    border-radius: 8px;
    padding: 7px;
}

.page-search .input-group-text,
.page-search .form-control {
    border: 0;
    background: transparent;
    -webkit-box-shadow: 0 0 0;
    box-shadow: 0 0 0;
    font-size: 14px;
}

.page-search .input-group-text img,
.page-search .form-control img {
    width: 20px;
}

.page-search .sorting {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 290px;
    background-color: var(--white-color);
    padding: 2px 12px;
    border-radius: 8px;
}

.page-search .sorting label {
    min-width: 60px;
    margin: 0;
    font-weight: 600;
}

.pagination {
    padding: 5px;
    border: 1px solid var(--primary-light);
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    border-radius: 10px;
    margin: 35px auto 0;
}

.pagination .page-link {
    border: 0;
    height: 30px;
    width: 30px;
    background: var(--primary-light) !important;
    margin: 0 5px;
    border-radius: 50px !important;
    color: var(--black-color);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.pagination .page-link .right-arrow {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.pagination .page-link .dots {
    font-weight: 600;
    margin-top: -4px;
}

.pagination .arrow-icon {
    height: 20px;
    width: 20px;
    background-image: url("../../assets/imgs/left-arrow.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 7px;
}

.pagination .arrow-icon .next-arrow {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

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


.modal .close {
    font-size: 34px;
    color: var(--white-color);
    opacity: 1;
    position: absolute;
    right: 5px;
    top: 0px;
    font-weight: 200;
    z-index: 22;
    outline: none;
}

.inline-tabs {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    position: relative;
    z-index: 2;
}

.inline-tabs li.nav-item {
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
}

.inline-tabs .nav-link {
    padding: 10px 35px;
}

.app-right-btn {
    text-align: right;
    margin-top: -60px;
    margin-bottom: 30px;
}

.custom-border-card {
    background: var(--assest-color);
    /* -webkit-box-shadow: 0 15px 35px var(--assest-color); */
    /* box-shadow: 0 15px 35px var(--assest-color); */
    border: 1px solid var(--assest-color);
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.custom-border-card .card-header {
    font-size: 18px;
    background: transparent;
    padding: 0;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 15px;
    color: var(--black-color);
}

.custom-border-card .card-body {
    padding: 18px 0 10px;
}


.border-top {
    border-top: 1px solid var(--primary-light) !important;
}

.form-group label {
    font-weight: 500;
    color: var(--black-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.form-control,
.custom-select {
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 14px;
    height: auto !important;
}

.form-control:focus,
.custom-select:focus {
    -webkit-box-shadow: 0 0 0;
    box-shadow: 0 0 0;
    border-color: var(--primary-color);
}

.file-control {
    padding: 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    border-radius: 15px;
    cursor: pointer;
}

.file-control span {
    opacity: 0.6;
    display: inline-block;
    margin-top: 10px;
}

.thumbnail-img {
    position: relative;
    border: 1px solid var(--assest-color);
    display: inline-block;
    height: 100px;
    width: 130px;
    border-radius: 10px;
    padding: 4px;
}

.thumbnail-img img {
    border-radius: 8px;
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.thumbnail-img .close {
    position: absolute;
    top: 5px;
    right: 8px;
    color: var(--white-color);
    opacity: 1;
    font-weight: 300;
}

.radio-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 20px;
}

.radio-group .custom-control {
    padding-left: 0;
    margin-right: 15px;
}

.radio-group .custom-control-label {
    margin-bottom: 0;
    background: var(--body-bg-color);
    color: var(--black-color);
    padding: 6px 23px 6px 33px;
    border-radius: 100px;
    font-size: 16px;
}

.radio-group .custom-control-label::before,
.radio-group .custom-control-label:after {
    border-radius: 50%;
    top: 10px;
    left: 10px;
}

.radio-group .custom-control-label:after {
    display: none;
}

.radio-group .custom-control-label::before {
    background: transparent;
    border: 3px solid var(--primary-light);
}

.radio-group .custom-control-input:checked~.custom-control-label {
    background: var(--primary-color);
    color: var(--white-color);
}

.radio-group .custom-control-input:checked~.custom-control-label::before {
    background: var(--primary-color);
    border-color: var(--white-color);
}

.page-title-sm {
    display: none;
}

.border-bottom {
    border-color: var(--assest-color) !important;
}

table.dataTable>thead .sorting:before,
table.dataTable>thead .sorting_asc:before,
table.dataTable>thead .sorting_desc:before,
table.dataTable>thead .sorting_asc_disabled:before,
table.dataTable>thead .sorting_desc_disabled:before {
    content: "↑";
}

table.dataTable>thead .sorting:after,
table.dataTable>thead .sorting_asc:after,
table.dataTable>thead .sorting_desc:after,
table.dataTable>thead .sorting_asc_disabled:after,
table.dataTable>thead .sorting_desc_disabled:after {
    content: "↓";
}

div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: var(--primary-bg);
    border-radius: 8px;
    padding: 6px 18px;
    font-weight: 600;
}

div.dataTables_wrapper div.dataTables_length label .form-control,
div.dataTables_wrapper div.dataTables_filter label .form-control {
    padding: 6px 18px;
    text-align: center;
    margin: 0 13px;
}

div.dataTables_wrapper div.dataTables_length label input.form-control,
div.dataTables_wrapper div.dataTables_filter label input.form-control {
    margin-right: 0;
    text-align: left;
}

div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:first-child,
div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:last-child {
    overflow: auto;
}

div.dataTables_wrapper div.dataTables_info {
    color: var(--black-color);
}

@media (min-width: 1600px) {
    .counter-row {
        margin-bottom: 20px;
    }

    .table thead th,
    .table td {
        font-size: 16px;
    }

    .custom-tabs .nav-link,
    .summary-table-card .border-card {
        font-size: 16px;
    }

    .form-group label {
        font-size: 16px;
    }

    .custom-border-card .card-header {
        font-size: 20px;
    }
}

@media (max-width: 1280px) {
    .header .input-group {
        width: 280px;
    }
}

@media (max-width: 991px) {
    .sidebar {
        left: -280px;
    }

    .sidebar.hide-sidebar {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        left: 0;
        z-index: 99;
        width: 280px;
    }

    .sidebar.hide-sidebar .side-toggle span:first-child {
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .sidebar.hide-sidebar .side-toggle span:nth-child(2) {
        display: none;
    }

    .sidebar.hide-sidebar .side-toggle span:last-child {
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
        margin-top: -5px;
    }

    .right-content {
        margin-left: 0 !important;
    }

    .right-content .page-title {
        display: none;
    }

    .header {
        padding: 15px;
    }

    .header .title-control .side-toggle {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
    }

    .header .side-logo {
        display: block;
        width: 160px;
    }

    .header .mobile-close-search {
        display: none;
    }

    .counter-row .col-md {
        padding-right: 5px;
        padding-left: 5px;
    }

    .page-title-sm {
        font-size: 26px;
        font-weight: 600;
        margin: -10px 0 20px;
        display: block;
        border-bottom: 1px solid var(--assest-color);
        color: var(--black-color);
        padding-bottom: 5px;
    }

    .app-logo img {
        margin: 20px 0 10px;
    }
}

@media (max-width: 767px) {
    .btn-default {
        font-size: 14px;
    }

    .header .input-group {
        height: 45px;
        width: 45px;
        border-radius: 5px;
    }

    .header .input-group .input-group-text {
        padding: 7px;
    }

    .header .input-group .form-control {
        display: none;
    }

    .box-title {
        padding-bottom: 8px;
    }

    .box-title .title {
        font-size: 18px;
    }

    .avatar-control .avatar-img {
        height: 30px;
        width: 30px;
    }

    .table th,
    .table td {
        padding: 8px 5px;
    }

    .summary-table-card .border-card {
        padding: 10px 2px;
    }

    .summary-table-card .border-card .row .col {
        text-align: left;
    }

    .summary-table-card .border-card .row .col-12 {
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }

    .summary-table-card .avatar-control {
        margin: 0 14px 10px;
    }

    .pagination {
        margin-top: 20px;
    }

    .inline-tabs {
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        overflow: auto;
        margin-top: 0;
    }

    .inline-tabs::-webkit-scrollbar {
        display: none;
    }

    .inline-tabs .nav-link {
        padding: 8px 14px;
    }

    .app-right-btn {
        margin: 0 0 15px;
    }

    .form-group label {
        font-size: 14px;
    }

    .custom-border-card {
        padding: 16px 20px;
    }

    .custom-border-card .card-header {
        font-size: 18px;
        padding-bottom: 12px;
    }

    .file-control {
        padding: 16px;
    }

    .uf-form-actions {
        flex-direction: column;
        justify-content: stretch;
    }

    .uf-form-actions .btn {
        width: 100%;
        text-align: center;
    }

}

@media (max-width: 567px) {
    .page-search {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        margin-bottom: 15px;
    }

    .page-search .sorting {
        margin-top: 8px;
    }

    div.dataTables_wrapper div.dataTables_length label,
    div.dataTables_wrapper div.dataTables_filter label {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:first-child,
    div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:last-child {
        padding: 0;
        overflow: auto;
    }

    div.dataTables_wrapper div.dataTables_paginate ul.pagination {
        margin-top: 15px;
    }
}

@media (max-width: 340px) {
    .header .side-logo {
        width: 120px;
    }
}

/* Image Upload Preview */
.avatar-upload {
    position: relative;
    max-width: 205px;
}

.avatar-edit {
    position: absolute;
    right: 12px;
    z-index: 1;
}

.avatar-edit input {
    display: none;
}

.avatar-edit input+label {
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
    margin-right: 30px;
    margin-top: 125px;
    border-radius: 100%;
    background: var(--white-color);
    border: 1px solid transparent;
    box-shadow: 0px 2px 4px 0px var(--assest-color);
    cursor: pointer;
    font-weight: normal;
    transition: all .2s ease-in-out;
}

.avatar-edit input+label:hover {
    background: var(--assest-color);
    border-color: var(--primary-light);
}

.avatar-edit input+label:after {
    content: "\f0ee";
    font-family: 'FontAwesome';
    color: var(--primary-light);
    position: absolute;
    top: 130px;
    left: 0;
    right: 30px;
    text-align: center;
    margin: auto;
}

.avatar-upload .avatar-preview {
    width: 150px;
    height: 150px;
    position: relative;
    border-radius: 10%;
}

.avatar-upload .avatar-preview>img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    border-radius: 10px;
}

.avatar-upload .avatar-preview>img:hover {
    transform: scale(1.05);
}

/* Image Upload Preview (Landscape) */
.landscape-preview {
    width: 220px !important;
    height: 120px !important;
}

/* Image Upload Preview (Landscape) */
.avatar-upload-landscape {
    position: relative;
    max-width: 265px;
}

.avatar-edit-landscape {
    position: absolute;
    right: 0;
    bottom: -20px;
    z-index: 1;
}

.avatar-edit-landscape input {
    display: none;
}

.avatar-edit-landscape input+label {
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
    margin-right: 30px;
    margin-top: 125px;
    border-radius: 100%;
    background: var(--white-color);
    border: 1px solid transparent;
    box-shadow: 0px 2px 4px 0px var(--assest-color);
    cursor: pointer;
    font-weight: normal;
    transition: all .2s ease-in-out;
}

.avatar-edit-landscape input+label:hover {
    background: var(--assest-color);
    border-color: var(--primary-light);
}

.avatar-edit-landscape input+label:after {
    content: "\f0ee";
    font-family: 'FontAwesome';
    color: var(--primary-light);
    position: absolute;
    top: 130px;
    left: 0;
    right: 30px;
    text-align: center;
    margin: auto;
}

.avatar-upload-landscape .avatar-preview-landscape {
    width: 220px;
    height: 120px;
    position: relative;
    border-radius: 10%;
}

.avatar-upload-landscape .avatar-preview-landscape>img {
    width: 100%;
    height: 100%;
    background-size: cover;
    border-radius: 10%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Loader */
#dvloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white-color);
    z-index: 9999;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* --- Loader Image --- */
#dvloader img {
    width: 180px;
    height: 180px;
    max-width: 25vw;
    max-height: 25vw;
    animation: loaderSpin 1.2s linear infinite;
}

/* --- Spinner Animation --- */
@keyframes loaderSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Hide Loader (optional JS) --- */
#dvloader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* btn Cancel */
.btn-cancel {
    background: var(--black-color);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white-color);
    border: 1px solid transparent;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    padding: 8px 20px;
}

.btn-cancel:hover {
    color: var(--black-color);
    background: transparent;
    border-color: var(--black-color);
}

/* Edit-Delete btn */
.edit-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    border: 2px dashed transparent;
    /* color: var(--text-secondary); */
    background: var(--primary-light);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    box-shadow: none;
}

.edit-delete-btn:hover {
    background: var(--white-color);
    border: 2px dashed var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 12px var(--primary-color);
}

.edit-delete-btn i {
    /* font-size: 13px; */
    color: var(--primary-color);
}

.edit-delete-btn:focus {
    outline: none;
    box-shadow: none;
}

.cart-bg {
    background-color: var(--assest-color);
}

/* Import File */
/* .import-file {
    color: var(--black-color);
} */

.import-file::file-selector-button {
    border-radius: 4px;
    color: var(--partition-color);
    background-color: var(--primary-light);
    border: 1px solid var(--primary-light);
    height: 30px;
    cursor: pointer;
}

/* Dashboard Category */
.category-box {
    padding: 25px;
    background: var(--assest-color);
}

.category-box .f600 {
    font-weight: 600;
}

.category-box .box-border-0 {
    border: 0;
    padding-bottom: 0;
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    width: 100%;
    /* color: var(--partition-color); */
    padding-left: 25px;
}

.category-image {
    max-height: 105px;
    height: 105px;
    width: 100%;
    border-radius: 8px;
    filter: blur(1.2px);
    -webkit-filter: blur(1.2px);
}

/* Side Menu Partition */
.partition {
    width: 100%;
    border-bottom: 3px dashed var(--partition-color);
    line-height: 0.1em;
    margin: 20px 0px;
}

.partition span {
    background: var(--assest-color);
    margin: 10px 0;
    padding: 0px 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--black-50);
}

/* Demo Mode Box */
.demo-mode-box {
    background: var(--primary-color);
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white-color);
    border: 1px solid transparent;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    padding: 6px 18px;

}

.demo-mode-box:hover {
    color: var(--primary-color);
    background: transparent;
    border-color: var(--primary-color);
}

/* Color Picker */
.colorpicker-component {
    display: flex;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    overflow: hidden;
}

.colorpicker {
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.hexcolor {
    border: none;
    padding: 10px;
    width: 100px;
    outline: none;
}

/* Hide-Show Btn */
.show-btn,
.hide-btn,
.info-btn,
.pending-btn,
.approved-btn {
    font-weight: bold;
    font-size: 14px !important;
    padding: 6px 18px;
    border-radius: 5px;
    cursor: pointer;
    border: 2px dashed transparent;
    outline: none;
    color: var(--white-color);
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border 0.3s ease,
        box-shadow 0.3s ease;
}

.show-btn {
    background: var(--green);
}

.show-btn:hover {
    background: var(--white-color);
    border: 2px dashed var(--green);
    color: var(--green);
}

.hide-btn {
    background: var(--red);
}

.hide-btn:hover {
    background: var(--white-color);
    border: 2px dashed var(--red);
    color: var(--red);
}

.pending-btn {
    background: var(--warning);
}

.pending-btn:hover {
    background: var(--white-color);
    border: 2px dashed var(--warning);
    color: var(--warning);
}

.approved-btn {
    background: var(--blue);
}

.approved-btn:hover {
    background: var(--white-color);
    border: 2px dashed var(--blue);
    color: var(--blue);
}

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

.info-btn:hover {
    background: var(--white-color) !important;
    border: 2px dashed var(--primary-color) !important;
    color: var(--primary-color) !important;
}


.show-btn:focus,
.hide-btn:focus,
.info-btn:focus,
.pending-btn:focus,
.approved-btn:focus {
    outline: none;
    box-shadow: none;
}

/* Custom-Card */
.custom-card {
    background-color: var(--assest-color);
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out;
}

.custom-card .card-body h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.custom-card .card-body span {
    font-size: 1.2rem;
    color: var(--black-color);
    font-weight: bold;
}

.custom-card .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.card-icon-primary {
    padding: 15px;
    border-radius: 50%;
    color: var(--assest-color);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-color) !important;
}

.card-color-primary:hover {
    border-color: var(--primary-color);
}

.card-color-primary .card-body {
    color: var(--primary-color);
}

/* Earning-Card */
.card-earning {
    background-color: var(--assest-color);
    border-radius: 10px;
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    align-items: center;
    width: 100%;
}

.card-align {
    display: flex;
    justify-content: space-between;
}

.earning-title {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    color: var(--black-color);
}

.earning-amount {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    color: var(--primary-color);
}

.earning-divider {
    width: 2px;
    height: 60px;
    background-color: var(--primary-light);
    margin: 0 15px;
}


/* Landscape Card */
.landscape-card {
    background-color: var(--assest-color) !important;
    padding: 8px;
    margin: 10px 0;
    border: 3px solid transparent;
}

.landscape-card:hover {
    border: 3px solid var(--primary-color);
}

.modal-content {
    background-color: var(--assest-color);
}

.modal-header {
    border-bottom: 2px solid var(--primary-light);
}

.modal-title {
    color: var(--black-color);
}

.modal-footer {
    border-top: 2px solid var(--primary-light);

}

.wallet-image {
    height: 180px;
    width: 180px;
    border-radius: 10px;
}

.landscape-card-title {
    font-size: 16px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.landscape-card-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.landscape-card-border {
    border-top: 2px dashed var(--primary-color) !important;
    margin: 10px 0px;
}

.landscape-card .ribbon-top-left {
    top: -3px;
    left: -3px;
}

.system-note {
    font-weight: 600;
    font-size: 16px;
    color: var(--partition-color);
}

#map {
    height: 355px;
    width: 700px;
    position: relative;
    overflow: hidden;
}

.year-block {
    margin-bottom: 15px;
}

.year-title {
    font-size: 25px;
    color: var(--partition-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.month-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;

}

.month-card {
    background-color: var(--body-bg-color);
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);

}

.month-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    color: var(--black-color);
}

.vacation-entry {
    border-left: 5px solid var(--primary-color);
    margin-bottom: 10px;
    padding: 10px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 4px;
    color: var(--black-color);
}

.vacation-entry:last-child {
    margin-bottom: 0;
}


/* Responsive */
@media (max-width: 992px) {
    .month-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .month-card {
        width: 100%;
    }
}

.badge {
    display: inline-block;
    padding: 10px 10px;
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.badge-success,
.bg-success {
    color: var(--white-color);
    background: var(--success) !important;
}

.badge-danger,
.bg-danger {
    color: var(--white-color);
    background: var(--danger) !important;
}

.badge-warning,
.bg-warning {
    color: var(--white-color);
    background: var(--warning) !important;
}

/* Modal container */
.decision-modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* Modal content */
.decision-modal-content {
    background-color: var(--white-color);
    border-radius: 10px;
    width: 450px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Close button */
.decision-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Modal Body */
.decision-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Icon Styling */
.decision-icon-img {
    width: 60px;
    height: 60px;
}

.decision-modal-body .modal-style {
    font: bold;
    font-size: 16px;
    color: var(--text-secondary);
}

/* Error Text */
.decision-error-text {
    color: var(--red);
    font-size: 20px;
    font-weight: bold;
    margin: 20px 10px;
}

/* Success Text */
.decision-success-text {
    color: var(--green);
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0;
}

.schedule-group {
    border-radius: 10px;
    margin-bottom: 20px;
    background: var(--white-color);
    overflow: hidden;
}

.schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--assest-color);
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}

.schedule-header input[type="date"] {
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
}

/* .schedule-header label {
    color: var(--partition-color);
} */

.remove-date-btn {
    background-color: var(--red);
    color: var(--white-color);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.schedule-body {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0 20px;
}

.schedule-body.open {
    padding-top: 20px;
    padding-bottom: 20px;
    max-height: 1000px;
}

.slots-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slot-card {
    padding: 12px;
    border: 1px solid var(--primary-light);
    border-radius: 8px;
}

.slot-card label {
    color: var(--black-color);
}

.remove-slot-btn {
    background-color: var(--red);
    color: var(--white-color);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.add-slot-btn,
.add-date-btn {
    background-color: var(--green);
    color: var(--white-color);
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;

}

.slot-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.slot-times .badge {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 7px 11px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .slot-card {
        flex-direction: column;
    }
}

/*** Appointmet Details ***/
.profile-details-card {
    background: var(--assest-color);
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.04);
    padding: 15px;
    margin-bottom: 20px;

}

.profile-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-section {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--body-bg-color);
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
}

.profile-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-img--round {
    border-radius: 50%;
    border: 3px solid var(--assest-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-heading);
    margin: 0;
}

.profile-username {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.profile-type-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    background: var(--primary-bg);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 4px;
    width: fit-content;
}

.profile-location {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.profile-contact {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}


.appointment-card {
    background: var(--assest-color);
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.04);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 30px;
}

.main-prescription-card {
    background: var(--assest-color);
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.04);
    padding: 16px;
    margin-bottom: 20px;

}

.appointment-left {
    flex: 2;
}

.appointment-left h5 {
    color: var(--black-color);
}

.section-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--black-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-grid--2col {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

.info-card {
    background-color: var(--white-color);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    margin-top: 4px;
}

.notes {
    background: var(--assest-color);
    padding: 8px;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    color: var(--black-color);
}

.appointment-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.appointment-label {
    width: 200px;
    font-weight: 600;
    color: var(--black-color);
}

.appointment-value {
    flex: 1;
    color: var(--black-color);
}

.note-box {
    background: var(--primary-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin-top: 8px;
    color: var(--text-heading);
    font-size: 14px;
    line-height: 1.7;
}

.attachments .file {
    display: inline-block;
    background: var(--body-bg-color);
    padding: 6px 12px;
    border-radius: 6px;
    margin: 5px 8px 5px 0;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.attachments a {
    color: var(--primary-color);
    font-weight: 500;
}

.prescription-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

}

.prescription-card {
    flex: 0 0 calc(50% - 10px);
    /* Two in a row */
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 15px;
    background-color: var(--body-bg-color);
}

.prescription-section {
    margin-bottom: 15px;
}

.prescription-section h5 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 4px;
    color: var(--black-color);
}

.prescription-section p {
    margin: 0;
    color: var(--black-color);
}

.medicine-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.medicine-table th,
.medicine-table td {
    border: 1px solid var(--border-light);
    padding: 8px;
    text-align: left;
    color: var(--black-color);
}


@media screen and (max-width: 768px) {
    .prescription-card {
        flex: 0 0 100%;
    }

    .info-grid--2col {
        grid-template-columns: 1fr;
    }

    .appointment-right {
        flex: 0 0 100%;
        min-width: unset;
    }

    .appointment-card {
        flex-direction: column;
    }
}

/* ---- Profile Section Additions ---- */
.profile-section__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
}

.profile-section__badge--doctor {
    background: rgba(13, 110, 253, 0.1);
    color: var(--blue);
}

.profile-section__badge--patient {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success);
}

/* ---- Appointment Info Groups ---- */
.appt-group {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
}

.appt-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.appt-group__title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.appt-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ---- File Chips ---- */
.appt-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.file-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: var(--body-bg-color);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.file-chip:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.file-chip i {
    font-size: 12px;
}

/* ---- Right Payment Panel ---- */
.appointment-right {
    flex: 0 0 260px;
    min-width: 200px;
}

/* ---- Legacy (keep for backward compat) ---- */
.details-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    background-color: var(--green);
    color: var(--white-color);
}

.price-box {
    background: var(--body-bg-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    min-width: 220px;
}

.price-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-heading);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.price-row:last-child {
    border-bottom: none;
}

.price-row--total {
    margin-top: 4px;
    padding-top: 12px;
}

.price-label {
    color: var(--text-secondary);
}

.price-label.payable {
    font-weight: 600;
    color: var(--text-heading);
}

.price-value {
    font-weight: 600;
    color: var(--text-heading);
}

.price-value--discount {
    color: var(--success);
}

.price-value.payable {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.status-badge {
    margin: 6px;
    display: inline-block;
    padding: 0.35em 0.75em;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    text-transform: uppercase;
    border-radius: 0.375rem;
    transition:
        background-color 0.2s ease-in-out,
        color 0.2s ease-in-out,
        border-color 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out;
}

.status-badge.draft {
    background-color: color-mix(in srgb, var(--gray) 20%, white);
    color: color-mix(in srgb, var(--gray) 80%, black);

}

.status-badge.cancel {
    background-color: color-mix(in srgb, var(--danger) 20%, white);
    color: color-mix(in srgb, var(--danger) 80%, black);

}

.status-badge.approved {
    background-color: color-mix(in srgb, var(--green) 20%, white);
    color: color-mix(in srgb, var(--green) 80%, black);
}

.status-badge.completed {
    background-color: color-mix(in srgb, var(--blue) 20%, white);
    color: color-mix(in srgb, var(--blue) 80%, black);
}

.status-badge.absent {
    background-color: color-mix(in srgb, var(--red) 35%, white);
    color: color-mix(in srgb, var(--red) 65%, black);
}

.status-badge.pending {
    background-color: color-mix(in srgb, var(--warning) 20%, white);
    color: color-mix(in srgb, var(--warning) 80%, black);
}

.chart-btn-group {
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.chart-btn-group button {
    padding: 10px 20px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chart-btn-group button:hover {
    /* background-color: var(--bg-light-color); */
    /* color: var(--text-dark); */
}

.chart-btn-group button.active {
    background: var(--primary-color);
    color: var(--partition-color);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(78, 121, 167, 0.3);
}

.chart-btn-group button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(78, 121, 167, 0.5);
}

.package-info-title h6 {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
}

.count-badge {
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 16px;
    font-weight: bold;
    padding: 7px 20px;
    border-radius: 20px;
    line-height: 1;
    display: inline-block;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease-in-out;
}

.doctor-card {
    background-color: var(--assest-color);
    border-radius: 16px;
    transition: 0.3s ease;
    min-height: 100px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 16px;
    /* gap: 16px; */
    width: 100%;
}

.doctor-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.avatar-wrapper {
    flex-shrink: 0;
}

.avatar-wrapper img {
    width: 70px;
    height: 75px;
    object-fit: cover;
    border-radius: 50%;
    /* border: 3px solid var(--border-default); */
}

.doctor-details {
    flex: 1;
    min-width: 0;
}

.doctor-name {
    font-size: 16px;
    font-weight: bold;
    word-break: break-word;
    color: var(--partition-color);
}

.doctor-fullname {
    font-size: 14px;
    font-weight: 500;
    word-break: break-word;
    color: var(--partition-color);
}

.rating-fees {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
    font-weight: bold;
}

.rating-fees .badge {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 500;
    white-space: nowrap;
}

/* ✅ Mobile (up to 767px) */
@media (max-width: 767.98px) {
    .doctor-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .avatar-wrapper {
        margin-bottom: 12px;
    }

    .rating-fees {
        justify-content: center;
    }
}

/* ✅ Tablet Portrait (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .doctor-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rating-fees {
        justify-content: center;
    }
}

/* ✅ Tablet Landscape and small desktops (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .doctor-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .rating-fees {
        justify-content: flex-start;
    }
}

/* ✅ Large desktop (1200px and up) */
@media (min-width: 1200px) {
    .doctor-card {
        flex-direction: row;
        align-items: flex-start;
    }

    .rating-fees {
        justify-content: flex-start;
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

/* Hide the default checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-light);
    transition: .4s;
    border-radius: 34px;
}

/* Slider before checked (inactive state) */
.slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 4px;
    bottom: 3px;
    background-color: var(--white-color);
    transition: .4s;
    border-radius: 50%;
}

/* When checked */
input:checked+.slider {
    background: var(--primary-color);

}

/* Move the slider when checked */
input:checked+.slider:before {
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.add-more-pading {
    padding-top: 35px;
}

.medicine-card {
    /* border: 1px solid var(--border-default); */
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: var(--assest-color);
}

.medicine-info-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 10px;
    background: var(--body-bg-color);
    /* border: 1px solid var(--border-light); */
    padding: 15px;
    border-radius: 10px;
}

.medicine-image-wrapper img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    /* border: 1px solid var(--border-default); */
    background-color: var(--assest-color);
}

.medicine-meta {
    flex-grow: 1;
}

.medicine-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    /* color: var(--text-dark); */
}

.meta-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.meta-details-row .left {
    font-size: 14px;
    color: var(--text-dark);
}

.meta-details-row .right {
    display: flex;
    align-items: center;
    gap: 10px;
}


/** Medicine Grid Layout css **/
.profile-products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.profile-product-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
    position: relative;
}

.profile-product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.profile-product-card:hover {
    transform: scale(1.05);
}

.profile-product-name {
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
    color: var(--black-color);
}

.profile-product-price {
    color: var(--primary-color);
    font-weight: bold;
}

.action-buttons {
    display: none;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 10;
    gap: 10px;

}

.profile-product-card:hover .action-buttons {
    display: flex;

}

.action-buttons .action-btn {
    padding: 5px 10px;
    border-radius: 5px;
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed transparent;
    /* ✅ prevents jump */
    transition: none;
    /* ✅ optional — removes animation */
}

.action-buttons .action-btn:hover {
    background: var(--white-color);
    border: 2px dashed var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 12px var(--primary-color);
}

.order-details {
    border-radius: 8px;
    max-width: 100%;
}

.order-details .order-badge {
    color: var(--white-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.order-number strong {
    color: var(--partition-color);
}

.order-number p {
    color: var(--partition-color);
    font-size: 24px;
    margin: 0;
}

.order-date-invoice {
    display: flex;
    gap: 15px;
    align-items: center;
}


.order-invoice-btn {
    background-color: var(--red);
    color: var(--white-color);
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    outline: none;
}

.order-invoice-btn:hover {
    background-color: color-mix(in srgb, var(--red) 80%, black);
    transform: translateY(-1px);
}

.order-invoice-btn:focus-visible {
    outline: 2px solid var(--white-color);
    outline-offset: 2px;
}

.order-invoice-btn:focus:not(:focus-visible) {
    outline: none;
}

.order-info-section {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.order-info-cards {
    background-color: var(--body-bg-color);
    /* border: 1px solid var(--border-light); */
    border-radius: 8px;
    padding: 15px;
    width: 50%;
}

.order-info-cards h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--black-color);
}

.order-info-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-info-text {
    flex: 1;
    padding-right: 10px;
    color: var(--partition-color);
}

.order-info-text p {
    margin: 5px 0;
    color: var(--black-color);
}

.order-info-cards img {
    border-radius: 4px;
    width: 65px;
    height: 65px;
}

.order-summary {
    background-color: var(--body-bg-color);
    padding: 20px;
    border-radius: 8px;
    max-width: 300px;
    font-family: Arial, sans-serif;

}

.order-summary h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--black-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--black-color);
}

.summary-item.total {
    font-weight: bold;
    font-size: 16px;
}


/* Container holding the tracking steps */
.order-tracking {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 20px;
    padding: 0 10px;
}

.step {
    display: flex;
    flex-direction: column;
    position: relative;
}

.step .icon {
    background-color: var(--primary-light);
    color: var(--text-secondary);
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.step .icon i {
    font-size: 35px;
}

.step.active .icon {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.step .label {
    text-align: center;
    margin-top: 10px;
    color: var(--text-secondary);
}

.step .label p {
    font-weight: bold;
    margin: 0;
    color: var(--partition-color);
}

.step .label span {
    font-size: 13px;
    font-weight: 500;
    color: var(--partition-color);
}

.step .icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 400%;
    height: 3px;
    background-color: inherit;
    z-index: 0;
}

.step:last-child .icon::before {
    display: none;
}

.delivery-status p {
    margin: 0;
    font-size: 17px;
    font-weight: bold;
    color: var(--partition-color);
}

.delivery-status strong {
    color: var(--partition-color);
}

hr {
    border-top: 1px solid var(--primary-color);
    margin: 10px 0;
}

.general-badge {
    font-weight: bold;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.general-pending {
    background-color: var(--warning);
    color: var(--white-color);
}

.general-placed {
    background-color: var(--cyan);
    color: var(--white-color);
}

.general-preparing {
    background-color: var(--orange);
    color: var(--white-color);
}

.general-ontheway {
    background-color: var(--blue);
    color: var(--white-color);
}

.general-delivered {
    background-color: var(--green);
    color: var(--white-color);
}

.general-rejected {
    background-color: var(--red);
    color: var(--white-color);
}

.header-profile {
    display: flex;
    justify-content: flex-end;
    align-items: center;

}

.header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--black-color);
}

.header-profile:hover .header-profile-name {
    color: var(--primary-color);
}

.header-profile-image {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.header-profile-image:hover {
    transform: scale(1.05);
}

.header-profile-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--black-color);
    white-space: nowrap;
    transition: color 0.3s ease;
}

@media (max-width: 480px) {
    .header-profile-name {
        display: none;
    }
}

/** Bed Allocation css **/
.appointment-box {
    background-color: var(--primary-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 24px 32px;
    transition: box-shadow 0.3s ease;
}

.appointment-box:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.appointment-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black-color);
    /* border-bottom: 1px solid var(--border-light); */
    padding-bottom: 14px;
}

.appointment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    /* border-bottom: 1px dashed var(--border-light); */
}

.appointment-item:last-child {
    border-bottom: none;
}

.appointment-box-label {
    font-weight: 500;
    color: var(--black-color);
    font-size: 16px;
}

.appointment-box-value {
    font-weight: 600;
    color: var(--black-color);
    font-size: 16px;
    text-align: right;
    max-width: 60%;
    word-wrap: break-word;
}

.truncate-text {
    display: inline-block;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

/* Container */
/* .notif-wrapper {
    position: relative;
    display: inline-block;
    font-family: var(--font);
    font-size: 14px;
    user-select: none;
}

.notif-bell {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
    outline: none;
    transition: color 0.3s ease, background-color 0.3s ease;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.notif-bell:hover,
.notif-bell:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;

}

.bell-icon {
    width: 34px;
    height: 34px;
    stroke: currentColor;
    transition: stroke 0.3s ease;
    color: var(--partition-color);
}

.notif-count {
    position: absolute;
    top: 3px;
    right: 3px;
    background: color-mix(in srgb, var(--red) 80%, white);
    color: var(--white-color);
    font-weight: 700;
    font-size: 11px;
    border-radius: 12px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
    user-select: none;
    pointer-events: none;
    transform-origin: center;
    transition: transform 0.3s ease;
    will-change: transform;
    min-width: 20px;
    text-align: center;
}

.notif-dropdown {
    position: absolute;
    right: 0;
    margin-top: 12px;
    width: 360px;
    max-height: 460px;
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    font-size: 14px;
    color: var(--text-dark);
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.notif-dropdown[hidden] {
    display: none;
    opacity: 0;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-default);
    font-weight: 600;
    font-size: 16px;
}


.mark-all-read-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 6px 10px;
    border-radius: 6px;
}
.mark-all-read-btn:hover,
.mark-all-read-btn:focus {
    background-color: var(--bg-hover-color);
    color: var(--black-50);
    outline: none !important;


}

.notif-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    overflow-y: auto;
    flex-grow: 1;
    max-height: 380px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
}

.notif-list::-webkit-scrollbar {
    width: 8px;
}

.notif-list::-webkit-scrollbar-track {
    background: transparent;
}

.notif-list::-webkit-scrollbar-thumb {
    background-color: var(--border-light);
    border-radius: 20px;
    border: 2px solid transparent;
}

.notif-item {
    display: flex;
    gap: 12px;
    margin-top: 7px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-default);
    cursor: pointer;
    transition: background-color 0.25s ease;
    white-space: normal;
    align-items: center;
    position: relative;
    background-color: var(--white-color);
    border-left: 4px solid transparent;
}

.notif-item:hover,
.notif-item:focus {
    background-color: color-mix(in srgb, var(--blue) 10%, white);
    outline: none;
}

.notif-item.unread {
    background-color: var(--bg-highlight);
    border-left-color: var(--primary-color);
}

.notif-item.unread .notif-title-time strong {
    font-weight: 700;
    color: var(--black-color);
}

.notif-item.unread::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.notif-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--gray);
}

.notif-title-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    gap: 12px;
}

.notif-time {
    font-size: 12px;
    color: color-mix(in srgb, var(--text-muted) 70%, white);
    white-space: nowrap;
    flex-shrink: 0;
}

.notif-desc {
    font-size: 13px;
    line-height: 1.3;
    color: var(--text-muted);
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.3em * 2);
}

.notif-read-mark {
    flex-shrink: 0;
    font-size: 16px;
    color: var(--green-color);
    margin-left: 10px;
    align-self: center;
}

.notif-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    background-color: var(--bg-light-color);
}

.view-all-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

@media (max-width: 400px) {
    .notif-dropdown {
        width: 90vw;
        max-height: 60vh;
        right: 5vw;
    }
}

.toast-popup {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px 18px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 280px;
    font-family: var(--font);
    font-size: 14px;
    word-wrap: break-word;
}

.toast-popup.visible {
    opacity: 1;
    transform: translateY(0);
} */

/* ============================================================
   APP HEADER — SaaS redesign
   ============================================================ */

.app-header {
    position: sticky;
    top: 0;
    z-index: 22;
    height: 64px;
    background: var(--assest-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 16px;
}

/* ---- Left side ---- */

.app-header__left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.app-header__toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background 200ms ease;
}

.app-header__toggle:hover {
    background: var(--primary-bg);
}

.app-header__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: background 200ms ease;
}

.app-header__toggle:hover span {
    background: var(--primary-color);
}

.app-header__logo {
    display: none;
    flex-shrink: 0;
    text-decoration: none !important;
}

.app-header__logo h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.app-header__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Right side ---- */

.app-header__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Demo Badge */
.app-header__demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--primary-bg);
    color: var(--primary-color);
    /* font-size: 12px; */
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid var(--primary-light);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.app-header__panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: color-mix(in srgb, var(--primary-color) 80%, #000 20%);
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
    white-space: nowrap;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.app-header__panel-badge i {
    font-size: 11px;
}

[data-theme="dark"] .app-header__panel-badge {
    background: color-mix(in srgb, var(--primary-color) 18%, transparent);
    color: color-mix(in srgb, var(--primary-color) 55%, #fff 45%);
    border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
}

@media (max-width: 575px) {
    .app-header__panel-badge {
        display: none;
    }
}

/* Icon buttons (language, panel, theme) */
.app-header__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    font-size: 16px;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 200ms ease, color 200ms ease;
}

.app-header__icon-btn:hover,
.app-header__icon-btn:focus {
    background: var(--primary-light);
    color: var(--primary-color);
    text-decoration: none !important;
}

/* Language button — wider for icon + locale code */
.app-header__icon-btn--lang {
    width: auto;
    padding: 0 12px;
    gap: 6px;
}

.app-header__lang-code {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Suppress Bootstrap dropdown caret */
.app-header__icon-btn.dropdown-toggle::after,
.app-header__profile.dropdown-toggle::after {
    display: none;
}

/* Dropdown panel */
.app-header__dropdown {
    min-width: 184px;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
    background: var(--white-color) !important;
    padding: 4px !important;
    margin-top: 8px !important;
}

.app-header__dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 12px !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-heading) !important;
    transition: background 150ms ease, color 150ms ease;
}

.app-header__dropdown-item:hover {
    background: var(--primary-bg) !important;
    color: var(--primary-color) !important;
}

.app-header__dropdown-item--danger {
    color: var(--red) !important;
}

.app-header__dropdown-item--danger:hover {
    background: var(--primary-bg) !important;
    color: var(--red) !important;
}

.app-header__dropdown .dropdown-divider {
    margin: 4px 0;
    border-color: var(--border-color);
}

/* Profile button */
.app-header__profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 4px 10px 4px 4px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none !important;
    transition: border-color 200ms ease, background 200ms ease;
}

.app-header__profile:hover,
.app-header__profile:focus {
    border-color: var(--primary-light);
    background: var(--primary-bg);
    text-decoration: none !important;
}

.app-header__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
    flex-shrink: 0;
}

.app-header__profile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-header__chevron {
    font-size: 10px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* ---- Responsive ---- */

@media (max-width: 991px) {
    .app-header {
        padding: 0 16px;
        gap: 8px;
    }

    .app-header__toggle {
        display: inline-flex;
    }

    .app-header__logo {
        display: block;
    }

    .app-header__title {
        display: none;
    }
}

@media (max-width: 575px) {

    .app-header__profile-name,
    .app-header__chevron {
        display: none;
    }

    .app-header__profile {
        padding: 4px;
        border: none;
    }

    .app-header__lang-code {
        display: none;
    }

    .app-header__icon-btn--lang {
        width: 40px;
        padding: 0;
    }
}


/* # sourceMappingURL=style.css.map */

/* ============================================================
   SIDEBAR — sdb-* redesign
   ============================================================ */

/* ---- Override legacy: partition label ---- */
.partition {
    border-bottom: none;
    line-height: 1;
    margin: 0;
}

.partition span {
    background: none;
    padding: 0;
}

/* ---- Layout dimensions ---- */
.sidebar.sdb-nav {
    width: 264px;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    overflow: hidden;
}

@media (min-width: 1680px) {
    .sidebar.sdb-nav {
        width: 280px;
    }
}

.right-content {
    margin-left: 264px;
}

@media (min-width: 1680px) {
    .right-content {
        margin-left: 280px;
    }
}

.right-content.right-content-0 {
    margin-left: 72px;
}

/* ---- Scrollbar ---- */
/* .sdb-nav::-webkit-scrollbar {
    width: 4px;
}

.sdb-nav::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
} */

/* ---- Logo header — aligns with app-header height ---- */
.sdb-nav__head {
    height: 64px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sdb-nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    overflow: hidden;
    max-width: 210px;
    transition: opacity 250ms ease, max-width 250ms ease;
}

.sdb-nav__logo h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

/* ---- Admin Panel Sidebar logo image — driven by logo_type ---- */
.sdb-nav__logo-img {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

/* Logo Only — square/icon-style sitting next to the App Name text */
.sdb-nav__logo-img--icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    margin-right: 10px;
}

/* Logo with App Name — landscape brand mark, name text is not rendered */
.sdb-nav__logo-img--brand {
    height: 44px;
    width: auto;
    max-width: 190px;
    max-height: 48px;
    border-radius: 6px;
    margin-right: 0;
}

@media (max-width: 991px) {
    .sdb-nav__logo-img--icon {
        width: 38px;
        height: 38px;
    }

    .sdb-nav__logo-img--brand {
        height: 40px;
        max-width: 170px;
    }
}

/* Collapsed sidebar — hide the logo entirely so only the toggle icon remains */
.sidebar.sdb-nav.hide-sidebar .sdb-nav__logo-img {
    display: none;
}

/* On small screens (<= 991px) the sidebar logic is inverted: hide-sidebar means
   the sidebar is OPEN (slid in from the left), so the logo must be visible. */
@media (max-width: 991px) {
    .sidebar.sdb-nav.hide-sidebar .sdb-nav__logo-img {
        display: block;
    }
}

.sdb-nav__collapse-btn span {
    background: var(--text-secondary) !important;
    transition: background 180ms ease !important;
}

.sdb-nav__collapse-btn:hover span {
    background: var(--primary-color) !important;
}

/* ---- Scrollable list ---- */
.sdb-nav .side-menu.sdb-nav__list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 12px 16px;
    margin: 0 !important;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
    box-sizing: border-box;
}

/* ---- Section labels ---- */
.sdb-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px 6px;
    margin: 0;
    list-style: none;
    min-width: 0;
    overflow: hidden;
}

.sdb-section-label:first-child {
    padding-top: 2px;
}

.sdb-section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
    min-width: 0;
}

.sdb-section-label>span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
    background: none !important;
    padding: 0 !important;
    margin: 0;
}

/* ---- Nav item ---- */
.sdb-nav__item {
    list-style: none;
    position: relative;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.sdb-nav__link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 44px;
    padding: 0 12px !important;
    border-radius: 10px;
    color: var(--text-heading) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    margin: 2px 0 !important;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    background: transparent !important;
    box-shadow: none;
    min-width: 0;
    box-sizing: border-box;
    transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.sdb-nav__link:hover {
    background: var(--primary-bg) !important;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--primary-color) 12%, transparent),
            color-mix(in srgb, var(--primary-color) 5%, transparent)) !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.sdb-nav__link:hover .sdb-nav__icon {
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 14%, transparent);
}

.sdb-nav__icon {
    font-size: 15px !important;
    width: 30px;
    min-width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
    border-radius: 8px;
    background: transparent;
    transition: background 220ms ease, color 220ms ease;
    line-height: 1;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    filter: none !important;
}

.sdb-nav__icon::before {
    display: block;
    line-height: 1;
    text-align: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
}

.sdb-nav__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 200ms ease;
}

/* Dropdown caret */
.sdb-nav .side-menu .dropdown-toggle::after {
    position: static;
    top: auto;
    margin-left: 8px;
    flex-shrink: 0;
    opacity: 0.4;
    transition: transform 200ms ease;
    align-self: center;
}

.sdb-nav .side-menu li.dropdown.show>.sdb-nav__link.dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ---- Active state — strongest highlight, primary gradient pill ---- */
.sdb-nav__item.active>.sdb-nav__link {
    background: var(--primary-color) !important;
    background: linear-gradient(135deg,
            var(--primary-color),
            color-mix(in srgb, var(--primary-color) 78%, #000 22%)) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow:
        0 6px 16px color-mix(in srgb, var(--primary-color) 32%, transparent),
        0 2px 4px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.sdb-nav__item.active>.sdb-nav__link:hover {
    background: var(--primary-color) !important;
    background: linear-gradient(135deg,
            var(--primary-color),
            color-mix(in srgb, var(--primary-color) 78%, #000 22%)) !important;
    color: #fff !important;
}

.sdb-nav__item.active>.sdb-nav__link .sdb-nav__icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    filter: none !important;
}

.sdb-nav__item.active>.sdb-nav__link::before {
    content: none !important;
}

/* Dropdown caret contrast when parent row is active */
.sdb-nav__item.active>.sdb-nav__link.dropdown-toggle::after {
    opacity: 0.8;
    border-top-color: #fff;
}

/* Remove old right-side indicator */
.sdb-nav .side-menu .side_line.active a::after {
    content: none !important;
}

/* ---- Submenu ---- */
.sdb-submenu {
    position: relative !important;
    transform: none !important;
    float: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2px 0 4px 16px !important;
    margin: 0 !important;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
    display: block !important;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 260ms ease, opacity 200ms ease;
}

.sdb-submenu.show {
    max-height: 400px;
    opacity: 1;
}

.sdb-submenu__item {
    list-style: none;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0;
    min-width: 0;
}

.sdb-submenu__link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 38px;
    padding: 0 12px !important;
    border-radius: 10px;
    color: var(--text-secondary) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    background: transparent !important;
    margin: 1px 0;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: none;
    min-width: 0;
    box-sizing: border-box;
    transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.sdb-submenu__link>span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sdb-submenu__link:hover {
    background: var(--primary-bg) !important;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--primary-color) 12%, transparent),
            color-mix(in srgb, var(--primary-color) 5%, transparent)) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 1px 3px color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.sdb-submenu__link:hover .sdb-submenu__icon {
    background: color-mix(in srgb, var(--primary-color) 14%, transparent);
    color: var(--primary-color);
}

.sdb-submenu__icon {
    font-size: 12px !important;
    width: 24px;
    min-width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: inherit;
    border-radius: 6px;
    background: transparent;
    line-height: 1;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    filter: none !important;
    transition: background 220ms ease, color 220ms ease;
}

.sdb-submenu__icon::before {
    display: block;
    line-height: 1;
    text-align: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
}

/* Submenu active — shared styling for Light Mode + Dark Mode.*/
.sdb-nav .sdb-submenu__item.active .sdb-submenu__link {
    background: var(--primary-light) !important;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--primary-color) 36%, transparent),
            color-mix(in srgb, var(--primary-color) 16%, transparent)) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.sdb-nav .sdb-submenu__item.active .sdb-submenu__icon {
    background: color-mix(in srgb, var(--primary-color) 40%, transparent) !important;
    filter: none !important;
}

/* ---- Logout ---- */
.sdb-nav__link--logout {
    color: var(--red) !important;
}

.sdb-nav__link--logout .sdb-nav__icon {
    color: var(--red) !important;
}

.sdb-nav__link--logout:hover {
    background: color-mix(in srgb, var(--red) 10%, transparent) !important;
    color: var(--red) !important;
    box-shadow: 0 1px 3px color-mix(in srgb, var(--red) 10%, transparent);
}

.sdb-nav__link--logout:hover .sdb-nav__icon {
    background: color-mix(in srgb, var(--red) 12%, transparent);
    color: var(--red);
}

/* ============================================================
   SIDEBAR — Sticky account / profile footer
   ============================================================ */
.sdb-nav__account {
    flex-shrink: 0;
    padding: 8px 12px 12px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 12px color-mix(in srgb, var(--text-heading) 5%, transparent),
        0 -1px 3px color-mix(in srgb, var(--text-heading) 3%, transparent);
}

.sdb-nav__account-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--primary-bg);
    background: color-mix(in srgb, var(--primary-color) 5%, transparent);
    transition: background 220ms ease;
}

.sdb-nav__account-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none !important;
}

.sdb-nav__account-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    transition: border-color 220ms ease;
}

/* Fallback — first-letter initial circle shown when no image is uploaded */
.sdb-nav__account-avatar--initial {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    user-select: none;
}

.sdb-nav__account-profile:hover .sdb-nav__account-avatar {
    border-color: var(--primary-color);
}

.sdb-nav__account-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sdb-nav__account-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    display: block;
}

.sdb-nav__account-role {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    display: block;
}

.sdb-nav__account-logout {
    width: 32px;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 20px;
    color: var(--text-secondary);
    text-decoration: none !important;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--text-secondary) 7%, transparent);
    border: 1px solid var(--border-color);
    transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.sdb-nav__account-logout:hover {
    background: color-mix(in srgb, var(--red) 14%, transparent);
    border-color: color-mix(in srgb, var(--red) 30%, transparent);
    color: var(--red) !important;
}

/* Collapsed — icon-only state */
@media (min-width: 1024px) {
    .sidebar.sdb-nav.hide-sidebar .sdb-nav__account {
        padding: 8px 6px 10px;
    }

    .sidebar.sdb-nav.hide-sidebar .sdb-nav__account-inner {
        flex-direction: column;
        padding: 8px 4px;
        gap: 6px;
        justify-content: center;
    }

    .sidebar.sdb-nav.hide-sidebar .sdb-nav__account-profile {
        justify-content: center;
    }

    .sidebar.sdb-nav.hide-sidebar .sdb-nav__account-info {
        display: none;
    }

    .sidebar.sdb-nav.hide-sidebar .sdb-nav__account-avatar {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .sidebar.sdb-nav.hide-sidebar .sdb-nav__account-logout {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }
}

/* Dark mode */
[data-theme="dark"] .sdb-nav__account {
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35),
        0 -1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .sdb-nav__account-inner {
    background: color-mix(in srgb, var(--primary-color) 8%, transparent);
}

[data-theme="dark"] .sdb-nav__account-name {
    color: var(--text-heading);
}

[data-theme="dark"] .sdb-nav__account-role {
    color: var(--text-secondary);
}

[data-theme="dark"] .sdb-nav__account-logout {
    background: color-mix(in srgb, var(--text-secondary) 10%, transparent);
    border-color: color-mix(in srgb, var(--border-color) 60%, transparent);
}

/* ============================================================
   SIDEBAR — Legacy-class compatibility overrides
   New markup keeps legacy classes (.menu-icon, .submenu-icon,
   .side-menu, .side-submenu, .side_line) alongside the new
   .sdb-nav__* system, so the old rules (defined earlier in
   this file) still apply. Neutralise the properties that
   break the new layout — everything else stays untouched.
   ============================================================ */
.sdb-nav .side-menu a .menu-icon,
.sdb-nav .side-menu .dropdown-menu a .submenu-icon,
.sdb-nav .side-menu .side-submenu a .submenu-icon {
    margin-right: 0;
}

.sdb-nav .side-menu a,
.sdb-nav .side-menu .side-submenu a {
    padding: 0;
    margin: 0;
}

.sdb-nav .side-menu a:hover,
.sdb-nav .side-menu .side-submenu a:hover,
.sdb-nav .side-menu .side-submenu .active a:hover {
    font-weight: 500;
}

.sdb-nav .side-menu .active a {
    background: transparent;
    color: inherit;
    border-radius: 10px;
}

.sdb-nav .side-menu .active a .menu-icon {
    filter: none;
}

.sdb-nav .side-menu .side-submenu .active {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.sdb-nav .side-menu .side-submenu .active a {
    border-radius: 10px;
}

.sdb-nav .side-menu .side-submenu .active a,
.sdb-nav .side-menu .side-submenu .active a:hover {
    color: inherit;
}

.sdb-nav .side-menu .active .dropdown-menu .active .submenu-icon {
    filter: none;
}

.sdb-nav .side-menu .side_line.active a::after,
.sdb-nav .side-menu .side_line.active a::before {
    content: none;
}

.sdb-nav .side-menu .dropdown-menu {
    margin-left: 0;
}

.sdb-nav .side-menu .dropdown-menu .dropdown-item {
    padding: 0 12px;
}

.sdb-nav .side-menu .dropdown-toggle::after {
    position: static;
    top: auto;
    right: auto;
}

/* ============================================================
   SIDEBAR — Collapsed state (desktop: hide-sidebar)
   ============================================================ */
@media (min-width: 1024px) {
    .sidebar.sdb-nav.hide-sidebar {
        width: 72px;
        padding: 0;
    }

    .sidebar.sdb-nav.hide-sidebar .sdb-nav__logo {
        opacity: 0;
        max-width: 0;
        pointer-events: none;
    }

    .sidebar.sdb-nav.hide-sidebar .sdb-nav__head {
        padding: 0;
        justify-content: center;
    }

    .sidebar.sdb-nav.hide-sidebar .sdb-section-label {
        padding: 14px 8px 4px;
        gap: 0;
    }

    .sidebar.sdb-nav.hide-sidebar .sdb-section-label>span {
        display: none;
    }

    .sidebar.sdb-nav.hide-sidebar .sdb-section-label::after {
        opacity: 0.5;
    }

    .sidebar.sdb-nav.hide-sidebar .sdb-nav__text {
        opacity: 0;
        max-width: 0;
        pointer-events: none;
        overflow: hidden;
    }

    .sidebar.sdb-nav.hide-sidebar .side-menu .dropdown-toggle::after {
        display: none;
    }

    .sidebar.sdb-nav.hide-sidebar .sdb-nav__link {
        justify-content: center;
        padding: 0 !important;
        width: 44px;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: visible;
    }

    .sidebar.sdb-nav.hide-sidebar .sdb-nav__item.active>.sdb-nav__link::before {
        display: none;
    }

    .sidebar.sdb-nav.hide-sidebar .side-menu.sdb-nav__list {
        padding: 8px 4px 24px;
    }

    .sidebar.sdb-nav.hide-sidebar .sdb-submenu {
        display: none !important;
    }

    /* Tooltip on icon hover */
    .sidebar.sdb-nav.hide-sidebar .sdb-nav__link[data-tooltip]:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        left: calc(100% + 10px);
        top: 50%;
        transform: translateY(-50%);
        background: var(--text-heading);
        color: var(--white-color);
        font-size: 12px;
        font-weight: 500;
        padding: 6px 10px;
        border-radius: 6px;
        white-space: nowrap;
        z-index: 200;
        pointer-events: none;
    }
}

/* ============================================================
   SIDEBAR — Mobile responsive
   ============================================================ */
@media (max-width: 991px) {
    .sidebar.sdb-nav {
        left: -264px;
        width: 264px;
    }

    .sidebar.sdb-nav.hide-sidebar {
        left: 0;
        width: 264px;
    }

    .right-content {
        margin-left: 0;
    }

    .sdb-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--black-50);
        z-index: 29;
    }

    .sdb-overlay.active {
        display: block;
    }
}

/* ============================================================
   SIDEBAR — Dark mode state overrides
   ============================================================ */
[data-theme="dark"] .sdb-nav__link:hover {
    background: var(--primary-light) !important;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--primary-color) 24%, transparent),
            color-mix(in srgb, var(--primary-color) 10%, transparent)) !important;
    color: color-mix(in srgb, var(--primary-color) 55%, #fff 45%) !important;
    box-shadow: 0 1px 4px color-mix(in srgb, var(--primary-color) 22%, transparent);
}

[data-theme="dark"] .sdb-nav__link:hover .sdb-nav__icon {
    background: color-mix(in srgb, var(--primary-color) 26%, transparent);
    color: color-mix(in srgb, var(--primary-color) 55%, #fff 45%);
}

[data-theme="dark"] .sdb-nav__item.active>.sdb-nav__link,
[data-theme="dark"] .sdb-nav__item.active>.sdb-nav__link:hover {
    background: var(--primary-color) !important;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--primary-color) 92%, #fff 8%),
            color-mix(in srgb, var(--primary-color) 60%, #000 40%)) !important;
    color: #fff !important;
    box-shadow:
        0 6px 18px color-mix(in srgb, var(--primary-color) 45%, transparent),
        0 2px 6px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

[data-theme="dark"] .sdb-nav__item.active>.sdb-nav__link .sdb-nav__icon {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

[data-theme="dark"] .sdb-submenu__link:hover {
    background: var(--primary-light) !important;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--primary-color) 24%, transparent),
            color-mix(in srgb, var(--primary-color) 10%, transparent)) !important;
    color: color-mix(in srgb, var(--primary-color) 55%, #fff 45%) !important;
    box-shadow: 0 1px 4px color-mix(in srgb, var(--primary-color) 22%, transparent);
}

[data-theme="dark"] .sdb-submenu__link:hover .sdb-submenu__icon {
    background: color-mix(in srgb, var(--primary-color) 26%, transparent);
    color: color-mix(in srgb, var(--primary-color) 55%, #fff 45%);
}

[data-theme="dark"] .sdb-submenu__item.active .sdb-submenu__link {
    background: var(--primary-light) !important;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--primary-color) 36%, transparent),
            color-mix(in srgb, var(--primary-color) 16%, transparent)) !important;
    color: color-mix(in srgb, var(--primary-color) 45%, #fff 55%) !important;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color) 25%, transparent);
}

[data-theme="dark"] .sdb-submenu__item.active .sdb-submenu__icon {
    background: color-mix(in srgb, var(--primary-color) 40%, transparent);
    color: color-mix(in srgb, var(--primary-color) 45%, #fff 55%);
}

[data-theme="dark"] .sdb-nav__link--logout:hover {
    background: color-mix(in srgb, var(--red) 22%, transparent) !important;
    color: var(--red) !important;
}

/* ============================================================
   SPECIALITY MODULE — Page Header
   ============================================================ */

.spl-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.spl-page-header__left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spl-page-header__left .page-title-sm {
    margin-bottom: 4px;
}

.spl-page-header__left .breadcrumb {
    margin-bottom: 0;
    padding: 4px 0;
    background: transparent;
    /* font-size: 13px; */
}

.spl-page-header__right {
    display: flex;
    align-items: center;
    padding-top: 4px;
}

/* ============================================================
   SPECIALITY MODULE — Buttons
   ============================================================ */

.spl-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    /* padding: 10px 20px; */
    background: var(--primary-bg);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.spl-sort-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    box-shadow: 0 2px 8px var(--primary-light);
}

.spl-btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* font-size: 14px; */
    font-weight: 600;
    border-radius: 50px;
    /* padding: 10px 20px; */
    background: transparent;
    color: var(--black-color);
    border: 1px solid var(--black-color);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.spl-btn-cancel:hover {
    background: var(--black-50);
    color: var(--white-color);
    border-color: var(--white-color);
}

/* ============================================================
   SPECIALITY MODULE — Form
   ============================================================ */

.spl-form-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* .spl-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
} */

/* @media (max-width: 767px) {
    .spl-form-grid {
        grid-template-columns: 1fr;
    }
} */

.spl-form-field {
    display: flex;
    flex-direction: column;
}

/* ============================================================
   SPECIALITY MODULE — Image Upload Zone
   ============================================================ */

.spl-upload-wrapper {
    max-width: 100%;
}

.spl-upload-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Size */
    width: 220px;
    /* same as image */
    height: 170px;
    /* same as image */
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: var(--primary-bg);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
    padding: 24px 16px;
    margin: 0;
}

.spl-upload-zone {
    width: 100%;
    max-width: 210px;
    height: 160px;
}

.spl-upload-zone:hover,
.spl-upload-zone.dragover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.spl-upload-zone.spl-has-file {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.spl-upload-icon {
    font-size: 28px;
    color: var(--primary-color);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.spl-upload-zone:hover .spl-upload-icon {
    transform: translateY(-3px);
}

.spl-upload-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    pointer-events: none;
}

.spl-upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
    pointer-events: none;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.spl-upload-zone.spl-has-file .spl-upload-hint {
    color: var(--primary-color);
    font-weight: 500;
}

.spl-upload-preview-img {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Compact info note used under image uploaders (App Settings, etc.) */
.stg-info-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: var(--primary-bg);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-secondary);
    max-width: 100%;
}

.stg-info-note__icon {
    color: var(--primary-color);
    font-size: 13px;
    margin-top: 2px;
    flex-shrink: 0;
}

.stg-info-note__text {
    color: var(--text-heading);
    font-weight: 500;
    word-break: break-word;
}

/* Brand Logo landscape upload variant — used when logo_type = 2 */
.spl-upload-zone--brand {
    width: 100%;
    max-width: 100%;
    height: 110px;
    padding: 16px 20px;
}

.spl-upload-zone--brand .spl-upload-preview-img {
    object-fit: contain;
    padding: 8px;
    background: var(--primary-bg);
}

@media (max-width: 575px) {
    .spl-upload-zone--brand {
        height: 96px;
    }
}

/* ============================================================
   PANEL SETTINGS — Login Background Cards
   ============================================================ */

.pnl-bg-grid {
    row-gap: 16px;
}

.pnl-bg-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pnl-bg-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pnl-bg-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pnl-bg-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 13px;
    flex-shrink: 0;
}

.pnl-bg-card__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.pnl-bg-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pnl-bg-wrapper .pnl-bg-zone {
    width: 100%;
    max-width: 100%;
    height: 180px;
    padding: 14px 12px;
}

.pnl-bg-wrapper .spl-upload-preview-img {
    object-fit: cover;
    border-radius: 6px;
}

@media (max-width: 767px) {
    .pnl-bg-wrapper .pnl-bg-zone {
        height: 190px;
    }
}

@media (max-width: 575px) {
    .pnl-bg-wrapper .pnl-bg-zone {
        height: 160px;
    }
}

/* ============================================================
   SPECIALITY MODULE — Table
   ============================================================ */

.spl-table-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 0;
    overflow: hidden;
}

.spl-table-toolbar {
    padding: 16px 20px;
    /* border-bottom: 1px solid var(--border-color); */
    background: var(--assest-color);
}

.spl-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    transition: border-color 0.2s ease;
}

.spl-search-wrap:focus-within {
    border-color: var(--primary-color);
    background: var(--assest-color);
}

.spl-search-icon {
    color: var(--text-secondary);
    font-size: 14px;
    flex-shrink: 0;
}

.spl-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-heading);
    width: 100%;
    font-family: var(--font);
}

.spl-search-input::placeholder {
    color: var(--text-secondary);
}

.spl-table-card .table-responsive {
    padding: 0;
}

.spl-table-card .table thead th {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
}

.spl-table-card .table td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-heading);
}

.spl-table-card .table tbody tr:hover td {
    background-color: var(--primary-bg) !important;
}

/* Action icon buttons — scoped to speciality table */
.spl-table-card .edit-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    border: 2px dashed transparent;
    /* color: var(--text-secondary); */
    background: var(--primary-light);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    box-shadow: none;
}

.spl-table-card .edit-delete-btn:hover {
    background: var(--white-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 12px var(--primary-color);
}


.spl-table-card .edit-delete-btn i {
    /* font-size: 13px; */
    color: var(--primary-color);
}

.spl-table-card .d-flex.justify-content-around {
    gap: 6px;
    justify-content: center !important;
}

/* Toggle switch — scoped to speciality table */
.spl-table-card .show-btn,
.spl-table-card .hide-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 2px 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    outline: none;
    transition: color 0.25s ease;
}

.spl-table-card .show-btn:focus,
.spl-table-card .hide-btn:focus {
    outline: none;
    box-shadow: none;
}

/* Track pseudo-element */
.spl-table-card .show-btn::before,
.spl-table-card .hide-btn::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 40px;
    height: 22px;
    border-radius: 11px;
    transition: background 0.25s ease;
}

/* Thumb pseudo-element — positioned inside track */
.spl-table-card .show-btn::after,
.spl-table-card .hide-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: left 0.25s ease;
}

/* Active — green track, thumb right */
.spl-table-card .show-btn {
    color: var(--success);
}

.spl-table-card .show-btn::before {
    background: var(--success);
}

.spl-table-card .show-btn::after {
    left: 21px;
}

/* Inactive — red track, thumb left */
.spl-table-card .hide-btn {
    color: var(--danger);
}

.spl-table-card .hide-btn::before {
    background: var(--danger);
}

.spl-table-card .hide-btn::after {
    left: 3px;
}

/* ============================================================
   SPECIALITY MODULE — Modals
   ============================================================ */

.spl-modal-content {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.spl-modal-header {
    padding: 20px 24px 16px;
}

.spl-modal-body {
    padding: 20px 24px;
}

.spl-modal-footer {
    padding: 16px 24px 20px;
    gap: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ============================================================
   SPECIALITY MODULE — Sortable Items
   ============================================================ */

.spl-sortable-body {
    padding: 16px 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.spl-sort-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--assest-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    cursor: grab;
    transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    user-select: none;
}

.spl-sort-item:last-child {
    margin-bottom: 0;
}

.spl-sort-item:hover {
    background: var(--primary-bg);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.spl-sort-handle {
    color: var(--text-secondary);
    font-size: 14px;
    cursor: grab;
    flex-shrink: 0;
}

.spl-sort-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-heading);
}

@media (max-width: 575px) {
    .spl-sort-btn span {
        display: none;
    }
}

.uf-form-actions {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 13px 0;
    margin-top: 4px;
    background: var(--white-color);
    border-top: 1px solid var(--primary-light);
    /* box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04); */
}

/* ─── Promotion Module ───────────────────────────────── */

/* URL chip */
.prm-url-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    max-width: 260px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.prm-url-chip:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.prm-url-icon {
    color: var(--primary-color);
    font-size: 11px;
    flex-shrink: 0;
}

.prm-url-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    display: inline-block;
    vertical-align: middle;
    text-decoration: none;
    transition: color 0.15s ease;
}

.prm-url-chip:hover .prm-url-text {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ─── Roles & Permissions Module ──────────────────────────── */

/* Table — inherits from .spl-table-card */
/* Layout — section cards in a 3-col responsive grid */
.rp-sections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: start;
}

@media (max-width: 991px) {
    .rp-sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .rp-sections-grid {
        grid-template-columns: 1fr;
    }
}

/* Permission Section Cards */
.rp-section {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--assest-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.rp-section-header {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: var(--primary-bg);
    border-bottom: 1px solid var(--border-color);
}

.rp-section-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

/* Permission Row — name left, toggle right */
.rp-perm-list {
    display: flex;
    flex-direction: column;
}

.rp-perm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    margin: 0;
    transition: background 0.15s ease;
}

.rp-perm-row:last-child {
    border-bottom: none;
}

.rp-perm-row:hover {
    background: var(--primary-bg);
}

.rp-perm-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rp-perm-row__name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.rp-perm-row:hover .rp-perm-row__name {
    color: var(--text-heading);
}

/* Permission Toggle — CSS-driven via :checked sibling selector */
.rp-row-toggle {
    flex-shrink: 0;
}

.rp-row-toggle__track {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: var(--border-color);
    transition: background 0.25s ease;
}

.rp-row-toggle__track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: left 0.25s ease;
}

.rp-perm-checkbox:checked~.rp-row-toggle .rp-row-toggle__track {
    background: var(--primary-color);
}

.rp-perm-checkbox:checked~.rp-row-toggle .rp-row-toggle__track::after {
    left: 18px;
}

/* Select All Toggle */
.rp-select-all-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.rp-select-all-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
}

.rp-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.rp-toggle__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rp-toggle__track {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--border-color);
    transition: background 0.25s ease;
}

.rp-toggle__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: left 0.25s ease;
}

.rp-toggle__input:checked+.rp-toggle__track {
    background: var(--primary-color);
}

.rp-toggle__input:checked+.rp-toggle__track::after {
    left: 23px;
}


/* ============================================================
   Appointment Module — Toolbar, Filters & Tabs
   ============================================================ */

.apt-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.apt-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.apt-filter-item {
    flex: 1 1 220px;
    min-width: 0;
}

.apt-filter-item .form-control,
.apt-filter-item .select2-container {
    width: 100% !important;
    height: 38px;
    font-size: 13px;
    border-color: var(--border-color);
    border-radius: 8px;
}

.apt-filter-date .form-control {
    height: 38px;
    font-size: 13px;
    border-color: var(--border-color);
    border-radius: 8px;
}

.apt-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.apt-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.apt-tab-link:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--text-heading);
}

.apt-tab-link:focus,
.apt-tab-link:active {
    outline: none;
    box-shadow: none;
}

.apt-tab-link.active {
    background: var(--primary-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.apt-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
}

.apt-tab-link.active .apt-tab-count {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* ============================================================
   Appointment Module — User Cell
   ============================================================ */

.apt-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.apt-user-avatar {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.apt-user-info {
    display: flex;
    flex-direction: column;
    /* text-align: left; */
    min-width: 0;
}

.apt-user-name {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apt-user-fullname {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   Appointment Module — Chips & Badges
   ============================================================ */

.apt-appt-no {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--primary-bg);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.apt-type-chip {
    display: inline-block;
    margin-top: 3px;
    padding: 2px 8px;
    border-radius: 10px;
    /* background: var(--primary-bg); */
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 500;
}

.apt-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: var(--border-color);
    color: var(--text-secondary);
}

.apt-type-badge.apt-type--online {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
}

.apt-type-badge.apt-type--physical {
    background: rgba(14, 165, 233, 0.12);
    color: var(--blue);
}

.apt-type--homecare {
    background-color: rgba(227, 0, 11, 0.1);
    /* based on your --red */
    color: var(--red);
}

/* ============================================================
   Appointment Module — Amount
   ============================================================ */

.apt-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.apt-footer-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.apt-footer-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    vertical-align: middle;
}

/* ============================================================
   Appointment Transaction — Earning Cards
   ============================================================ */

.apt-earn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .apt-earn-grid {
        grid-template-columns: 1fr;
    }
}

.apt-earn-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--assest-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 24px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.apt-earn-card:hover {
    box-shadow: 0 4px 18px var(--primary-light);
    transform: translateY(-2px);
}

.apt-earn-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 22px;
}

.apt-earn-body {
    min-width: 0;
}

.apt-earn-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
}

.apt-earn-label {
    /* font-size: 12px; */
    color: var(--text-secondary);
    margin-top: 3px;
}

/* ============================================================
   Appointment Module — Status Display Pills (read-only column)
   ============================================================ */

.apt-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    /* font-size: 12px; */
    font-weight: 500;
    white-space: nowrap;
    background: var(--primary-bg);
    color: var(--text-secondary);
}

.apt-status-pill i {
    font-size: 11px;
}

.apt-status--draft {
    background: rgba(100, 116, 139, 0.1);
    color: var(--gray);
}

.apt-status--pending {
    background: rgba(255, 193, 7, 0.12);
    color: var(--gray);
}

.apt-status--approved {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success);
}

.apt-status--cancel {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.apt-status--absent {
    background: rgba(253, 126, 20, 0.1);
    color: var(--orange);
}

.apt-status--completed {
    background: rgba(13, 110, 253, 0.1);
    color: var(--blue);
}

/* ============================================================
   Appointment Module — Action Dropdown (status changer)
   ============================================================ */

.apt-action-dropdown {
    display: inline-flex;
    justify-content: center;
}

.apt-action-trigger {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--assest-color);
    color: var(--text-secondary);
    font-size: 14px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.apt-action-trigger:hover,
.apt-action-trigger:focus {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    outline: none;
    box-shadow: none;
}

.apt-action-menu {
    min-width: 150px;
    padding: 6px 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.apt-action-menu>div {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0;
    gap: 2px;
}

.apt-action-menu a {
    display: flex !important;
    align-items: center;
    padding: 7px 14px;
    text-decoration: none;
    transition: background 0.12s ease;
    margin: 0 !important;
    border-radius: 0;
}

.apt-action-menu a:hover {
    background: var(--primary-light);
}

.apt-action-menu .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 0;
    background: none !important;
    border-radius: 0;
    /* color: var(--text-heading); */
}

.apt-action-menu .status-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    flex-shrink: 0;
}

.apt-action-menu .status-badge.approved::before {
    background: var(--success);
}

.apt-action-menu .status-badge.cancel::before {
    background: var(--danger);
}

.apt-action-menu .status-badge.absent::before {
    background: var(--orange);
}

.apt-action-menu .status-badge.completed::before {
    background: var(--blue);
}

.apt-action-menu .status-badge.pending::before {
    background: var(--warning);
}

/* ============================================================
   Doctor Module — KYC / Panel status pills
   ============================================================ */

.spl-table-card .pending-btn,
.spl-table-card .approved-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.spl-table-card .pending-btn {
    background: rgba(255, 193, 7, 0.12);
    color: var(--gray);
}

.spl-table-card .pending-btn:hover {
    background: rgba(255, 193, 7, 0.22);
}

.spl-table-card .approved-btn {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success);
}

.spl-table-card .approved-btn:hover {
    background: rgba(25, 135, 84, 0.2);
}

/* ============================================================
   Doctor Module — Export toolbar row
   ============================================================ */

.dr-export-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
    /* border-top: 1px solid var(--border-color); */
}

.dr-export-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dr-export-label .fa-circle-info {
    color: var(--primary-color);
    font-size: 14px;
}

.dr-export-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
   Doctor Module — Login type icon
   ============================================================ */

.dr-login-icon {
    color: var(--text-secondary);
    font-size: 18px;
}

/* ============================================================
   Doctor Module — Pill selector (Yes / No)
   ============================================================ */

.dr-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.dr-pill-input {
    display: none;
}

.dr-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    user-select: none;
}

.dr-pill-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--text-heading);
}

.dr-pill-input:checked+.dr-pill-btn {
    background: var(--primary-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================================
   Doctor Module — Schedule / Vacation data indicator dot
   ============================================================ */

.dr-indicator-wrap {
    position: relative;
    display: inline-flex;
}

.dr-indicator-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: var(--green);
    border: 2px solid var(--white-color);
    animation: dr-pulse 1.8s ease-in-out infinite;
}

@keyframes dr-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

/* ============================================================
   Doctor Module — Info banner (vacation / schedule notes)
   ============================================================ */

.dr-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #1E40AF;
    margin-bottom: 20px;
    line-height: 1.5;
}

.dr-info-banner .dr-info-icon {
    color: var(--primary-color);
    font-size: 15px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ============================================================
   Schedule Page — modern slot rows & icon buttons
   ============================================================ */

.schedule-group {
    border: 1px solid var(--border-color);
}


.sch-date-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    display: block;
}

.slot-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--primary-bg);
    padding: 12px 16px;
    margin-bottom: 0;
    transition: border-color 0.15s ease;
}

.slot-card:hover {
    border-color: var(--primary-color);
}

.slot-times .badge {
    background: var(--primary-bg);
    color: var(--primary-color);
    border: 1px solid var(--primary-light);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
}

.sch-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.sch-icon-btn.sch-btn-add {
    background: color-mix(in srgb, var(--green) 14%, transparent);
    color: var(--green);
}

.sch-icon-btn.sch-btn-add:hover {
    background: color-mix(in srgb, var(--green) 25%, transparent);
}

.sch-icon-btn.sch-btn-remove {
    background: color-mix(in srgb, var(--red) 14%, transparent);
    color: var(--red);
}

.sch-icon-btn.sch-btn-remove:hover {
    background: color-mix(in srgb, var(--red) 25%, transparent);
}

.sch-icon-btn.sch-btn-delete {
    background: color-mix(in srgb, var(--red) 14%, transparent);
    color: var(--red);
    border-radius: 8px;
    padding: 7px 14px;
}

.sch-icon-btn.sch-btn-delete:hover {
    background: color-mix(in srgb, var(--red) 25%, transparent);
}

.sch-btn-add:focus,
.sch-btn-add:active,
.sch-btn-remove:focus,
.sch-btn-remove:active,
.sch-btn-delete:focus,
.sch-btn-delete:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* ============================================================
   KYC Module — Action pill toggle
   ============================================================ */

.kyc-action-pills {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.kyc-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background-color: var(--primary-bg);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.kyc-pill--approve:hover,
.kyc-pill--approve-active {
    background: #DCFCE7;
    border-color: #22C55E;
    color: #15803D;
}

.kyc-pill--reject:hover,
.kyc-pill--reject-active {
    background: #FEE2E2;
    border-color: #EF4444;
    color: #DC2626;
}

/* ============================================================
   KYC Detail Page — structured field layout
   ============================================================ */

.kyc-detail-section {
    margin-bottom: 24px;
}

.kyc-detail-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.kyc-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--body-bg-color);
}

.kyc-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.kyc-detail-label {
    min-width: 150px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    flex-shrink: 0;
    padding-top: 1px;
}

.kyc-detail-value {
    font-size: 14px;
    color: var(--text-heading);
    font-weight: 500;
    word-break: break-word;
    flex: 1;
}

/* ============================================================
   KYC Detail Page — document box
   ============================================================ */

.kyc-doc-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--body-bg-color);
    text-decoration: none;
    color: var(--text-heading);
    transition: border-color 0.15s ease, background 0.15s ease;
    margin-bottom: 10px;
}

.kyc-doc-box:last-child {
    margin-bottom: 0;
}

.kyc-doc-box:hover {
    border-color: var(--primary-color);
    background: var(--primary-bg);
    text-decoration: none;
    color: var(--text-heading);
}

.kyc-doc-box--empty {
    opacity: 0.6;
    cursor: default;
}

.kyc-doc-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.kyc-doc-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.kyc-doc-info {
    flex: 1;
    overflow: hidden;
}

.kyc-doc-title {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2px;
}

.kyc-doc-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kyc-doc-box:hover .kyc-doc-name {
    color: var(--primary-color);
}

/* ============================================================
   Patient Module — Toolbar search + filter inline row
   ============================================================ */

.pt-toolbar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pt-toolbar-row .spl-search-wrap {
    flex: 1;
    min-width: 0;
    width: auto;
}

.pt-toolbar-row .apt-filter-row {
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.pt-toolbar-row .apt-filter-item {
    flex: 0 0 auto;
    min-width: 150px;
}

@media (max-width: 768px) {
    .pt-toolbar-row {
        flex-wrap: wrap;
    }

    .pt-toolbar-row .spl-search-wrap,
    .pt-toolbar-row .apt-filter-row {
        width: 100%;
        flex-wrap: wrap;
    }

    .pt-toolbar-row .apt-filter-item {
        flex: 1 1 140px;
    }
}

/* ============================================================
   Patient Dashboard Detail — Info Panels (pdd-*)
   ============================================================ */

.pdd-section-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.pdd-section-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

.pdd-section-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.pdd-info-panel {
    background: var(--assest-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pdd-info-panel:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-color);
}

.pdd-panel-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.pdd-panel-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 20px;
    transition: background 0.2s ease;
}

.pdd-info-panel:hover .pdd-panel-icon-wrap {
    background: var(--primary-light);
}

.pdd-panel-text {
    min-width: 0;
}

.pdd-panel-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0 0 4px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdd-panel-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

.pdd-panel-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.pdd-panel-count {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .pdd-section-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .pdd-section-grid--2col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {

    .pdd-section-grid--3col,
    .pdd-section-grid--2col {
        grid-template-columns: 1fr;
    }

    .pdd-panel-count {
        font-size: 20px;
    }
}

/* ============================================================
   CONTENT MODULE — Article, Blog, FAQ  (cms-*)
   ============================================================ */

/* ── Shared: Empty state ────────────────────────────────── */
.cms-content-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
}

.cms-content-empty i {
    display: block;
    margin-bottom: 12px;
    opacity: 0.35;
    color: var(--text-secondary);
}

.cms-content-empty p {
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* ── Article: Horizontal card list ─────────────────────── */
.cms-article-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.cms-article-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--assest-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cms-article-card:hover {
    border-color: var(--primary-color);
    background: var(--primary-bg);
    box-shadow: 0 4px 16px rgba(255, 109, 0, 0.07);
}

.cms-article-thumb-wrap {
    flex-shrink: 0;
}

.cms-article-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    display: block;
}

.cms-thumb-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 22px;
}

.cms-article-body {
    flex: 1;
    min-width: 0;
}

.cms-article-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cms-article-meta {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.cms-article-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 575px) {
    .cms-article-card {
        flex-wrap: wrap;
    }

    .cms-article-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ── Blog: Grid card layout ─────────────────────────────── */
.cms-blog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding-top: 4px;
}

@media (max-width: 991px) {
    .cms-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .cms-blog-grid {
        grid-template-columns: 1fr;
    }
}

.cms-blog-card {
    display: flex;
    flex-direction: column;
    background: var(--assest-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cms-blog-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 109, 0, 0.1);
    transform: translateY(-2px);
}

.cms-blog-cover-wrap {
    height: 160px;
    overflow: hidden;
    background: var(--primary-bg);
    flex-shrink: 0;
}

.cms-blog-cover-wrap.cms-blog-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 28px;
    opacity: 0.5;
}

.cms-blog-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.cms-blog-card:hover .cms-blog-cover {
    transform: scale(1.04);
}

.cms-blog-body {
    padding: 14px 16px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cms-blog-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

.cms-blog-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.cms-blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--border-color);
    gap: 8px;
    flex-wrap: wrap;
}

/* ── FAQ: Accordion management UI ─────────────────────── */
.cms-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.cms-faq-item {
    background: var(--assest-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cms-faq-item.open {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(255, 109, 0, 0.07);
}

.cms-faq-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.cms-faq-header:hover {
    background: var(--primary-bg);
}

.cms-faq-item.open .cms-faq-header {
    background: var(--primary-bg);
}

.cms-faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-bg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid var(--primary-light);
    transition: background 0.15s ease;
}

.cms-faq-item.open .cms-faq-icon {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.cms-faq-question {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0;
    min-width: 0;
    line-height: 1.45;
}

.cms-faq-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cms-faq-toggle {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    outline: none;
}

.cms-faq-toggle:hover {
    background: var(--primary-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cms-faq-toggle:focus,
.cms-faq-toggle:active {
    outline: none;
    box-shadow: none;
}

.cms-faq-item.open .cms-faq-toggle {
    background: var(--primary-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cms-faq-item.open .cms-faq-toggle i {
    transform: rotate(180deg);
    display: inline-block;
    transition: transform 0.2s ease;
}

.cms-faq-body {
    display: none;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
    background: var(--primary-bg);
}

.cms-faq-item.open .cms-faq-body {
    display: block;
}

.cms-faq-body-hint {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.8;
}

@media (max-width: 575px) {
    .cms-faq-header {
        flex-wrap: wrap;
    }

    .cms-faq-actions {
        width: 100%;
        justify-content: flex-start;
        padding-left: 44px;
    }
}

/* ============================================================
   Settings Modules — stg-*
   (Appointment Control, Notification, Panel Settings,
    App Settings, Payment Gateway, System Settings)
   ============================================================ */

/* --- Info Banner --- */
.stg-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--primary-bg);
    border: 1px solid var(--primary-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 16px 20px;
}

.stg-info-banner__icon {
    font-size: 18px;
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.stg-info-banner__body {
    flex: 1;
}

.stg-info-banner__title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stg-guide-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stg-guide-pill {
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
    background: var(--assest-color);
    border: 1px solid var(--primary-light);
    border-radius: 99px;
    padding: 5px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.stg-guide-pill strong {
    color: var(--text-heading);
}

/* --- Section Label --- */
.stg-section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 10px;
    display: block;
}

/* --- Booking Options (selectable cards) --- */
.stg-booking-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stg-booking-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.stg-booking-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 116px;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--assest-color);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    user-select: none;
    margin: 0;
}

.stg-booking-option:hover {
    border-color: var(--primary-color);
    background: var(--primary-bg);
}

.stg-booking-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-bg);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.stg-booking-option-icon {
    font-size: 20px;
    color: var(--text-secondary);
    transition: color 0.18s ease;
}

.stg-booking-option.selected .stg-booking-option-icon,
.stg-booking-option:hover .stg-booking-option-icon {
    color: var(--primary-color);
}

.stg-booking-option-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
    transition: color 0.18s ease;
}

.stg-booking-option.selected .stg-booking-option-label {
    color: var(--primary-color);
    font-weight: 600;
}

.stg-days-input {
    max-width: 200px;
}

/* --- Date Card --- */
.stg-date-card {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--primary-bg);
    border: 1px solid var(--primary-light);
    border-radius: 10px;
    padding: 14px 20px;
    min-width: 220px;
    margin-bottom: 16px;
}

.stg-date-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stg-date-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stg-date-card__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stg-date-card__value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
}

.stg-date-hidden {
    display: none !important;
}

/* --- Status Summary --- */
.stg-status-summary {
    background: var(--primary-bg);
    border: 1px dashed var(--primary-light);
    border-radius: 8px;
    padding: 16px 20px;
}

.stg-status-summary__row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stg-status-summary__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stg-status-summary__icon {
    font-size: 18px;
    color: var(--primary-color);
}

.stg-status-summary__key {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stg-status-summary__val {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-heading);
}

.stg-status-summary__note {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    width: 100%;
}

/* Status Pills */
.stg-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
}

.stg-status-active {
    background: #ecfdf5;
    color: var(--green);
    border: 1px solid #bbf7d0;
}

.stg-status-inactive {
    background: #fef2f2;
    color: var(--red);
    border: 1px solid #fecaca;
}

/* --- Toggle Switch --- */
.stg-toggle-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.stg-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.stg-toggle-track {
    display: block;
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background: var(--border-color);
    position: relative;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.stg-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.stg-toggle-input:checked+.stg-toggle-track {
    background: var(--primary-color);
}

.stg-toggle-input:checked+.stg-toggle-track::after {
    transform: translateX(18px);
}

.stg-toggle-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Master Toggle --- */
.stg-master-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.stg-master-toggle__info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stg-master-toggle__icon {
    font-size: 18px;
    color: var(--primary-color);
    background: var(--primary-bg);
    border: 1px solid var(--primary-light);
    border-radius: 10px;
    padding: 10px 12px;
    flex-shrink: 0;
}

.stg-master-toggle__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0 0 3px 0;
}

.stg-master-toggle__desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* --- Notification List Table --- */
.stg-notif-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-light);
}

.stg-notif-list-header>span:first-child {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stg-notif-list-header__toggles {
    display: flex;
    gap: 12px;
}

.stg-notif-list-header__toggles span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 42px;
    text-align: center;
    display: block;
}

.stg-notif-table-wrap {
    padding: 0;
    overflow-x: auto;
}

.stg-notif-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.stg-notif-table thead {
    display: none;
}

.stg-notif-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.stg-notif-table tbody tr:last-child {
    border-bottom: none;
}

.stg-notif-table tbody tr:hover {
    background-color: var(--primary-light);
}

.stg-notif-table td {
    padding: 13px 20px;
    vertical-align: middle;
}

.stg-notif-table td:first-child {
    width: 100%;
}

.stg-notif-table td:nth-child(2),
.stg-notif-table td:nth-child(3) {
    width: 66px;
    text-align: center;
}

.stg-notif-table tbody tr:nth-of-type(odd) {
    background-color: transparent;
}

.stg-notif-table tbody tr:nth-of-type(even) {
    background-color: var(--primary-bg);
}

.stg-notif-type-badge {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-heading);
    display: block;
    text-align: left;
}

.stg-notif-save-bar {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
    background: var(--primary-bg);
}

/* --- Login Type Preview Cards --- */
.stg-login-type-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stg-login-type-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.stg-login-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    background: var(--assest-color);
    margin: 0;
}

.stg-login-type-card:hover {
    border-color: var(--primary-color);
}

.stg-login-type-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.stg-login-type-card__preview {
    width: 100%;
    height: 96px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
    color: var(--primary-color);
    transition: background 0.2s ease;
}

.stg-login-type-card.selected .stg-login-type-card__preview {
    background: var(--primary-light);
}

.stg-login-preview-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stg-login-preview-lines span {
    display: block;
    height: 4px;
    border-radius: 3px;
    background: var(--primary-color);
    opacity: 0.35;
}

.stg-login-preview-lines span:nth-child(1) {
    width: 48px;
}

.stg-login-preview-lines span:nth-child(2) {
    width: 32px;
}

.stg-login-preview-lines span:nth-child(3) {
    width: 40px;
}

.stg-login-preview-chip {
    display: block;
    width: 34px;
    height: 48px;
    border-radius: 6px;
    background: var(--primary-color);
    opacity: 0.3;
}

.stg-login-type-card__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 9px 8px;
    text-align: center;
    width: 100%;
    border-top: 1px solid var(--border-color);
    background: var(--assest-color);
    transition: color 0.2s ease;
    box-sizing: border-box;
}

.stg-login-type-card.selected .stg-login-type-card__label {
    color: var(--primary-color);
    background: var(--primary-bg);
}

/* --- Provider Cards (Payment Gateway) --- */
.stg-payment-search-bar {
    padding: 16px 20px 4px;
}

.stg-provider-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 15px;
    min-height: 80px;
}

.stg-provider-card {
    flex: 1 1 200px;
    max-width: 280px;
    background: var(--assest-color);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stg-provider-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(255, 109, 0, 0.08);
}

.stg-provider-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stg-provider-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-bg);
    border: 1px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.stg-provider-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    flex: 1;
    min-width: 0;
}

.stg-provider-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.stg-env-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 99px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.stg-env-badge.live {
    background: #ecfdf5;
    color: var(--green);
    border: 1px solid #bbf7d0;
}

.stg-env-badge.sandbox {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.stg-provider-status {
    display: inline-flex;
    align-items: center;
    border-radius: 99px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 600;
}

.stg-provider-status.active {
    background: #ecfdf5;
    color: var(--green);
    border: 1px solid #bbf7d0;
}

.stg-provider-status.inactive {
    background: #fef2f2;
    color: var(--red);
    border: 1px solid #fecaca;
}

.stg-provider-actions {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* --- System Setting Cards --- */
.stg-system-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stg-system-card {
    background: var(--assest-color);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stg-system-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(255, 109, 0, 0.06);
}

.stg-system-card-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    text-decoration: none !important;
}

.stg-system-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.stg-system-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--primary-bg);
    border: 1px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.stg-system-card:hover .stg-system-icon {
    background: var(--primary-light);
}

.stg-system-info-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0 0 3px 0;
}

.stg-system-info-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.stg-system-expand-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-bg);
    border: 1px solid var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.stg-system-card-trigger[aria-expanded="true"] .stg-system-expand-btn {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.stg-system-card-trigger[aria-expanded="true"] .stg-system-expand-btn i {
    transform: rotate(180deg);
}

.stg-system-card-body {
    padding: 0 24px 20px;
    border-top: 1px solid var(--border-color);
}

.stg-system-body-note {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 14px 0 12px;
    line-height: 1.6;
    margin: 0;
}

.stg-system-body-action {
    display: flex;
    justify-content: flex-end;
}

/* --- App Settings Block (section grouping) --- */
.stg-settings-block {
    background: var(--assest-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.stg-settings-block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--border-color);
    /* background: var(--primary-bg); */
}

.stg-settings-block-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.stg-settings-block-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}

.stg-settings-block-body {
    padding: 20px;
}

/* Social provider row */
.stg-social-row {
    background: var(--assest-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

@media (max-width: 575px) {
    .stg-booking-option {
        min-width: 100px;
        padding: 10px 12px;
    }

    .stg-login-type-card {
        width: 130px;
    }

    .stg-provider-card {
        max-width: 100%;
    }

    .stg-system-card-trigger {
        padding: 16px;
    }

    .stg-system-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .stg-system-card-body {
        padding: 0 16px 16px;
    }
}

/* ============================================================
   Payment Gateway — Premium Featured Layout  (stg-pay-*)
   ============================================================ */

/* Summary Bar */
.stg-pay-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    background: var(--primary-bg);
}

.stg-pay-summary__info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.stg-pay-summary__icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.stg-pay-summary__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 2px 0;
}

.stg-pay-summary__desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.stg-pay-summary__stats {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.stg-pay-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    background: var(--assest-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 60px;
}

.stg-pay-stat__val {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1;
}

.stg-pay-stat__val--green {
    color: var(--green);
}

.stg-pay-stat__val--blue {
    color: var(--blue);
}

.stg-pay-stat__lbl {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Section Divider Label */
.stg-pay-section {
    padding: 20px 24px 12px;
}

.stg-pay-section__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.stg-pay-section__label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Featured Active Gateway */
.stg-pay-featured {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: var(--assest-color);
    border: 1.5px solid var(--primary-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 109, 0, 0.07);
    transition: box-shadow 0.2s ease;
    flex-wrap: wrap;
    margin: 0 24px;
}

.stg-pay-featured:hover {
    box-shadow: 0 6px 28px rgba(255, 109, 0, 0.13);
}

.stg-pay-featured__left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 180px;
}

.stg-pay-featured__icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: var(--primary-bg);
    border: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    flex-shrink: 0;
    letter-spacing: -1px;
}

.stg-pay-featured__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 6px 0;
}

.stg-pay-featured__sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.stg-pay-featured__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.stg-pay-featured__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Unified Provider Grid */
/* .stg-pay-grid-wrap {
    padding: 0 24px 24px;
} */

.stg-pay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* Premium horizontal card — same style as featured, used for ALL gateways */
.stg-pay-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--assest-color);
    border: 1.5px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(255, 109, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stg-pay-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 22px rgba(255, 109, 0, 0.11);
}

.stg-pay-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-bg);
    border: 1.5px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-color);
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.stg-pay-card__body {
    flex: 1;
    min-width: 0;
}

.stg-pay-card__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 3px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stg-pay-card__sub {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0 0 7px 0;
}

.stg-pay-card__badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

.stg-pay-card__right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* empty / loading state */
.stg-pay-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

@media (max-width: 991px) {
    .stg-pay-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .stg-pay-grid {
        grid-template-columns: 1fr;
    }

    .stg-pay-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .stg-pay-grid-wrap {
        padding: 0 16px 20px;
    }

    .stg-pay-card {
        flex-wrap: wrap;
    }

    .stg-pay-card__right {
        width: 100%;
    }
}

/* ============================================================
   AUTH / LOGIN PAGE — Premium Healthcare SaaS Redesign
   ============================================================ */

/* Page root */
.auth-page {
    min-height: 100vh;
    /* display: flex; */
    overflow: hidden;
    position: relative;
}

/* Top-left floating logo — aligned to the same horizontal padding as .auth-left__content
   and .auth-card, so the whole left branding column reads on one vertical rhythm. */
.auth-page-logo {
    position: absolute;
    top: 32px;
    left: 60px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-page-logo__img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.auth-page-logo__name {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}

@media (max-width: 1199px) {
    .auth-page-logo {
        left: 44px;
        top: 28px;
    }
}

@media (max-width: 991px) {
    .auth-page-logo {
        left: 24px;
        top: 20px;
    }

    .auth-page-logo__name {
        color: var(--text-heading);
    }
}

/* Brand-logo variant — landscape logo image already contains the App Name,
   so hide the standalone name text and let the image scale as a full brand mark. */
.auth-page-logo--brand .auth-page-logo__img {
    height: 55px;
    width: auto;
    max-width: 320px;
    max-height: 72px;
    object-fit: contain;
    border-radius: 8px;
}

.auth-page-logo--brand .auth-page-logo__name {
    display: none;
}

@media (max-width: 1199px) {
    .auth-page-logo--brand .auth-page-logo__img {
        height: 56px;
        max-width: 280px;
    }
}

@media (max-width: 991px) {
    .auth-page-logo--brand .auth-page-logo__img {
        height: 48px;
        max-width: 240px;
    }
}

@media (max-width: 575px) {
    .auth-page-logo--brand .auth-page-logo__img {
        height: 42px;
        max-width: 200px;
    }
}

/* Centered brand block inside auth card */
.auth-card__brand {
    text-align: center;
    margin-bottom: 22px;
    padding-top: 4px;
}

.auth-card__app-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 6px;
}

.auth-card__portal-name {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

/* ── LEFT PANEL ── */
.auth-left {
    position: relative;
    overflow: hidden;
    flex-direction: column;
}

.auth-left__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #0F172A;
    opacity: 0.92;
    transition: opacity 0.4s ease;
}

.auth-left__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg,
            rgba(15, 23, 42, 0.82) 0%,
            rgba(15, 23, 42, 0.70) 45%,
            color-mix(in srgb, var(--primary-color) 32%, transparent) 100%);
}

[data-theme="dark"] .auth-left__bg {
    opacity: 0.85;
}

[data-theme="dark"] .auth-left__overlay {
    background:
        linear-gradient(145deg,
            rgba(2, 6, 23, 0.88) 0%,
            rgba(2, 6, 23, 0.74) 45%,
            color-mix(in srgb, var(--primary-color) 28%, transparent) 100%);
}

/* Decorative glow shapes */
.auth-left__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    pointer-events: none;
}

.auth-left__shape--1 {
    width: 480px;
    height: 480px;
    background: var(--primary-color);
    opacity: 0.13;
    bottom: -120px;
    left: -100px;
}

.auth-left__shape--2 {
    width: 260px;
    height: 260px;
    background: var(--primary-color);
    opacity: 0.09;
    top: -60px;
    right: -50px;
}

.auth-left__shape--3 {
    width: 160px;
    height: 160px;
    background: var(--primary-color);
    opacity: 0.07;
    top: 42%;
    right: 12%;
}

/* Content above overlay — anchored to the bottom-left of the left panel */
.auth-left__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 28px;
    height: 100%;
    padding: 64px 60px 80px;
    color: #fff;
}

@media (max-width: 1399px) {
    .auth-left__content {
        padding: 56px 52px 72px;
        gap: 26px;
    }
}

@media (max-width: 1199px) {
    .auth-left__content {
        padding: 48px 44px 60px;
        gap: 22px;
    }
}

.auth-left__bottom {
    margin-top: auto;
}

/* Logo row */
.auth-left__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 52px;
}

.auth-left__logo-icon {
    width: 40px;
    height: 40px;
    /* background: var(--primary-bg); */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    flex-shrink: 0;
}

.logo-img {
    width: 50px;
    /* adjust as needed */
    height: 50px;
    object-fit: contain;
}

.auth-left__logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}

/* Headline */
.auth-left__headline {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.6px;
}

.auth-left__headline span {
    color: var(--primary-color);
    background: linear-gradient(
        90deg,
        var(--primary-color),
        color-mix(in srgb, var(--primary-color) 80%, #000)
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-left__desc {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.65;
    margin: 0;
    max-width: 460px;
}

/* Feature list */
.auth-left__features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.auth-feature__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary-color) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 32%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-color) 22%, transparent);
}

.auth-feature__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 2px;
}

.auth-feature__text strong {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    display: block;
}

.auth-feature__text span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.50);
    display: block;
}

/* Floating glass stats card */
.auth-left__glass-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    padding: 18px 24px;
    max-width: 360px;
}

.auth-glass-stat {
    flex: 1;
    text-align: center;
}

.auth-glass-stat__num {
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.auth-glass-stat__lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.50);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 500;
}

.auth-glass-divider {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.13);
    margin: 0 6px;
}

/* Panel image (view_status == 2) */
.auth-panel-image {
    max-height: 460px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
}

/* ── RIGHT PANEL ── */
.auth-right {
    background: var(--body-bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    overflow-y: auto;
}

/* Auth card */
.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--assest-color);
    border-radius: 20px;
    padding: 32px 30px;
    box-shadow:
        0 20px 60px -20px rgba(15, 23, 42, 0.18),
        0 8px 24px -12px rgba(15, 23, 42, 0.10);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .auth-card {
    box-shadow:
        0 20px 60px -20px rgba(0, 0, 0, 0.5),
        0 8px 24px -12px rgba(0, 0, 0, 0.35);
}

/* Mobile brand */
.auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    justify-content: center;
}

.auth-mobile-brand__name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
}

/* Panel badge */
.auth-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-bg);
    border: 1px solid var(--primary-light);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 12.px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: 0.1px;
}

.auth-panel-badge--doctor {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.25);
    color: #0EA5E9;
}

.auth-panel-badge--drugstore {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.25);
    color: #22C55E;
}

.auth-panel-badge--receptionist {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.25);
    color: #A855F7;
}

/* Card title / subtitle */
.auth-card__title {
    font-size: 23px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 5px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.auth-card__subtitle {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Form groups */
.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 7px;
    display: block;
    letter-spacing: 0.1px;
}

/* Input wrapper — owns the border, radius, focus ring; icon + input + toggle are flex siblings */
.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    background: var(--body-bg-color);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition:
        border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover state */
.auth-input-wrapper:hover {
    border-color: color-mix(in srgb, var(--primary-color) 45%, var(--border-color));
}

/* Focus state — active field */
.auth-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
    background: var(--assest-color);
}

/* Filled state — user typed something but field isn't focused */
.auth-input-wrapper:has(.auth-form-control:not(:placeholder-shown):not(:focus)) {
    border-color: color-mix(in srgb, var(--primary-color) 35%, var(--border-color));
}

/* Disabled state */
.auth-input-wrapper:has(.auth-form-control:disabled) {
    opacity: 0.65;
    background: color-mix(in srgb, var(--border-color) 25%, var(--body-bg-color));
    cursor: not-allowed;
}

/* Dedicated icon container — a real <span> holding an <i>; sits flush against the wrapper's left */
.auth-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    flex: 0 0 52px;
    width: 52px;
    background: var(--primary-bg);
    color: var(--text-secondary);
    font-size: 15px;
    border-right: 1px solid var(--border-color);
    pointer-events: none;
    transition:
        color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        border-right-color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-input-icon>i,
.auth-input-icon>svg {
    font-size: inherit;
    color: inherit;
    line-height: 1;
    display: block;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover — softly brighten the icon box */
.auth-input-wrapper:hover .auth-input-icon {
    background: color-mix(in srgb, var(--primary-color) 12%, var(--body-bg-color));
    color: color-mix(in srgb, var(--primary-color) 70%, var(--text-secondary));
}

/* Focus (active field) — icon lights up in primary */
.auth-input-wrapper:focus-within .auth-input-icon {
    color: var(--primary-color);
    background: var(--primary-light);
    border-right-color: color-mix(in srgb, var(--primary-color) 45%, var(--border-color));
}

.auth-input-wrapper:focus-within .auth-input-icon>i {
    transform: scale(1.06);
}

/* Filled state — value present but not focused */
.auth-input-wrapper:has(.auth-form-control:not(:placeholder-shown):not(:focus)) .auth-input-icon {
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 14%, var(--body-bg-color));
}

/* Disabled — desaturate the icon box */
.auth-input-wrapper:has(.auth-form-control:disabled) .auth-input-icon {
    background: color-mix(in srgb, var(--border-color) 45%, var(--body-bg-color));
    color: var(--text-secondary);
}

/* Input — flex-grows, no own border/radius/bg (wrapper owns them) */
.auth-form-control {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 14px !important;
    padding-right: 14px !important;
    height: 48px !important;
    border-radius: 0 !important;
    font-size: 13.5px !important;
    border: none !important;
    background: transparent !important;
    color: var(--text-heading) !important;
    box-shadow: none !important;
    outline: none !important;
    width: 100%;
    transition: color 0.25s ease !important;
}

.auth-form-control:hover,
.auth-form-control:focus,
.auth-form-control:active {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.auth-form-control::placeholder {
    color: rgba(100, 116, 139, 0.55) !important;
    font-size: 13px !important;
}

/* Password toggle — now a flex sibling on the right */
.auth-pwd-toggle {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 14px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: color 0.2s ease;
}

.auth-pwd-toggle:hover {
    color: var(--primary-color);
}

.auth-pwd-toggle:focus,
.auth-pwd-toggle:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--primary-color);
}

/* Submit button */
.auth-submit-btn {
    position: relative;
    height: 50px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--primary-color) 92%, #fff) 0%,
            var(--primary-color) 55%,
            color-mix(in srgb, var(--primary-color) 82%, #000) 100%) !important;
    background-size: 180% 180% !important;
    background-position: 0% 50% !important;
    color: #fff !important;
    border: none !important;
    letter-spacing: 0.15px;
    overflow: hidden;
    box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--primary-color) 55%, transparent) !important;
    transition:
        background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* No hover animation — the button stays calm at rest; the click/loading state is the interaction */
.auth-submit-btn:hover,
.auth-submit-btn:focus,
.auth-submit-btn:active {
    color: #fff !important;
    outline: none !important;
}

.auth-submit-btn__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Loading state — animated 3-dot loader, disable repeat clicks */
.auth-submit-btn.is-loading {
    pointer-events: none;
    cursor: wait;
    background-position: 100% 50% !important;
    animation: authBtnShimmer 1.6s linear infinite;
}

.auth-submit-btn.is-loading .auth-submit-btn__label {
    opacity: 0;
    transform: translateY(4px);
}

.auth-submit-btn.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    color: #fff;
    background: #fff;
    box-shadow: -14px 0 0 rgba(255, 255, 255, 0.35),
        14px 0 0 rgba(255, 255, 255, 0.35);
    animation: authBtnDots 1s infinite linear;
}

@keyframes authBtnDots {
    0% {
        background: #fff;
        box-shadow: -14px 0 0 rgba(255, 255, 255, 0.35), 14px 0 0 rgba(255, 255, 255, 0.35);
    }

    33% {
        background: rgba(255, 255, 255, 0.35);
        box-shadow: -14px 0 0 #fff, 14px 0 0 rgba(255, 255, 255, 0.35);
    }

    66% {
        background: rgba(255, 255, 255, 0.35);
        box-shadow: -14px 0 0 rgba(255, 255, 255, 0.35), 14px 0 0 #fff;
    }

    100% {
        background: #fff;
        box-shadow: -14px 0 0 rgba(255, 255, 255, 0.35), 14px 0 0 rgba(255, 255, 255, 0.35);
    }
}

@keyframes authBtnShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ── DEMO PANEL ── */
/* .demo-panel {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
} */

.demo-panel__divider {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.demo-panel__divider::before,
.demo-panel__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.demo-panel__desc {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

/* 2-column grid — two compact role cards per row */
.demo-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

/* Role card — horizontal, compact (~48px tall); icon on the left, name on the right */
.demo-role-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 48px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: var(--assest-color);
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition:
        border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none !important;
    color: inherit !important;
}

.demo-role-card:hover {
    border-color: var(--primary-color);
    background: var(--primary-bg);
    transform: translateX(3px);
    box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--primary-color) 40%, transparent);
    color: inherit !important;
    text-decoration: none !important;
}

.demo-role-card--active,
.demo-role-card--active:hover {
    border-color: var(--primary-color);
    background: var(--primary-bg);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.demo-role-card__icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition:
        background 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-role-card:hover .demo-role-card__icon-wrap {
    transform: scale(1.06);
}

.demo-role-card__icon-wrap--admin {
    background: var(--primary-light);
    color: var(--primary-color);
}

.demo-role-card__icon-wrap--doctor {
    background: rgba(14, 165, 233, 0.14);
    color: #0EA5E9;
}

.demo-role-card__icon-wrap--drugstore {
    background: rgba(34, 197, 94, 0.14);
    color: #22C55E;
}

.demo-role-card__icon-wrap--receptionist {
    background: rgba(168, 85, 247, 0.14);
    color: #A855F7;
}

.demo-role-card__info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.demo-role-card__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.1px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Credentials are never shown in the UI — auto-fill still works via the onclick handler */
.demo-role-card__email {
    display: none !important;
}

.demo-role-card__badge {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: var(--primary-color);
    color: transparent;
    text-indent: -9999px;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 22%, transparent);
}

/* Arrow indicator no longer needed in the compact vertical layout */
.demo-role-card__arrow {
    display: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .auth-right {
        min-height: 100vh;
        width: 100%;
        padding: 32px 16px;
    }

    .auth-card {
        max-width: 480px;
        padding: 28px 22px;
    }
}

/* Laptop only (992px–1366px) — give the right form column ~7% more breathing room,
   trim the left branding column by the same amount. Desktop / tablet / mobile untouched. */
@media (min-width: 992px) and (max-width: 1366px) {
    .auth-left.col-lg-8 {
        flex: 0 0 60%;
        max-width: 60%;
    }

    .auth-right.col-lg-4 {
        flex: 0 0 40%;
        max-width: 40%;
    }
}

@media (max-width: 575px) {
    .auth-card {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .auth-card__title {
        font-size: 20px;
    }

    .auth-left__headline {
        font-size: 28px;
    }
}

@media (max-width: 575px) {
    .demo-role-card {
        min-height: 44px;
        padding: 8px 12px;
        gap: 10px;
    }
}

/* ============================================================
   AUTH LOGIN — Visual Enhancements (animations + divider)
   ============================================================ */

/* 1. App Name — premium font + fade/letter-spacing reveal */
@keyframes authAppNameReveal {
    from {
        opacity: 0;
        letter-spacing: 6px;
    }

    to {
        opacity: 1;
        letter-spacing: -0.3px;
    }
}

.auth-card__app-name {
    animation: authAppNameReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 2. Auth card — premium fade + translate + scale, runs once, plays after left section */
@keyframes authCardReveal {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
        filter: blur(1px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.auth-card {
    animation: authCardReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
    will-change: transform, opacity;
}

/* Card children stagger in after the card itself */
.auth-card>* {
    animation: dl-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-card>*:nth-child(1) {
    animation-delay: 0.55s;
}

.auth-card>*:nth-child(2) {
    animation-delay: 0.62s;
}

.auth-card>*:nth-child(3) {
    animation-delay: 0.68s;
}

.auth-card>*:nth-child(4) {
    animation-delay: 0.74s;
}

.auth-card>*:nth-child(5) {
    animation-delay: 0.80s;
}

.auth-card>*:nth-child(n+6) {
    animation-delay: 0.86s;
}

/* 3. Brand divider — themed to primary palette (adapts to light/dark) */
.dl-brand-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 20px 0 24px;
}

.dl-brand-divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            color-mix(in srgb, var(--primary-color) 55%, transparent),
            transparent);
}

.dl-brand-divider-icon {
    color: var(--primary-color);
    font-size: 19px;
}

.dl-form-box {
    width: 100%;
    max-width: 380px;
    animation: dl-fade-up 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.15s;
}

@keyframes dl-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 5. LEFT panel — premium slide-in from the bottom-end, runs once on load.
   Content starts noticeably lower (large Y offset) and rises up while easing in from the right. */
@keyframes authLeftReveal {
    from {
        opacity: 0;
        transform: translate3d(48px, 90px, 0) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes authFeatureReveal {
    from {
        opacity: 0;
        transform: translate3d(28px, 60px, 0) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.auth-left__headline-wrap,
.auth-left__features,
.auth-left__glass-card {
    opacity: 0;
    transform-origin: bottom right;
    animation: authLeftReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
}

.auth-left__headline-wrap {
    animation-delay: 0.05s;
}

.auth-left__features {
    animation-delay: 0.20s;
}

.auth-left__glass-card {
    animation-delay: 0.40s;
}

/* Stagger the individual feature rows so they cascade in from bottom-right */
.auth-left__features .auth-feature {
    opacity: 0;
    transform-origin: bottom right;
    animation: authFeatureReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.auth-left__features .auth-feature:nth-child(1) {
    animation-delay: 0.28s;
}

.auth-left__features .auth-feature:nth-child(2) {
    animation-delay: 0.38s;
}

.auth-left__features .auth-feature:nth-child(3) {
    animation-delay: 0.48s;
}

/* Reduce motion preference — keep it accessible */
@media (prefers-reduced-motion: reduce) {

    .auth-card,
    .auth-card__app-name,
    .auth-left__headline-wrap,
    .auth-left__features,
    .auth-left__glass-card,
    .auth-left__features .auth-feature,
    .auth-card>*,
    .auth-theme-toggle__sun,
    .auth-theme-toggle__moon {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ============================================================
   AUTH — Floating Light / Dark theme toggle (top-right)
   Tokenized to var(--assest-color)/var(--border-color)/var(--text-heading)
   so it stays visible against the right column in BOTH themes.
   ============================================================ */
.auth-theme-toggle {
    position: absolute;
    top: 24px;
    right: 28px;
    z-index: 30;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    color: var(--text-heading);
    background: color-mix(in srgb, var(--assest-color) 85%, transparent);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow:
        0 8px 24px -10px rgba(15, 23, 42, 0.22),
        0 2px 6px -2px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent);
    outline: none !important;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

.auth-theme-toggle:hover {
    transform: scale(1.06);
    background: var(--primary-bg);
    border-color: color-mix(in srgb, var(--primary-color) 55%, var(--border-color));
    color: var(--primary-color);
}

/* Kill the browser default focus ring / dark outline on click.
   Replace it with a theme-colored soft glow only when keyboard-focused. */
.auth-theme-toggle:focus,
.auth-theme-toggle:active,
.auth-theme-toggle:focus-visible,
.auth-theme-toggle::-moz-focus-inner {
    outline: none !important;
    border: 1px solid var(--border-color);
}

.auth-theme-toggle:focus-visible {
    border-color: var(--primary-color);
    box-shadow:
        0 8px 24px -10px rgba(15, 23, 42, 0.22),
        0 0 0 4px var(--primary-light);
}

.auth-theme-toggle:active {
    transform: scale(0.96);
}

/* Dark mode — same tokens, but the shadow needs a heavier, warmer bloom to stay visible */
[data-theme="dark"] .auth-theme-toggle {
    background: color-mix(in srgb, var(--assest-color) 78%, transparent);
    box-shadow:
        0 10px 30px -10px rgba(0, 0, 0, 0.55),
        0 2px 6px -2px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent);
}

[data-theme="dark"] .auth-theme-toggle:hover {
    background: color-mix(in srgb, var(--primary-color) 22%, var(--assest-color));
    color: #fff;
}

.auth-theme-toggle__sun,
.auth-theme-toggle__moon {
    position: absolute;
    font-size: 16px;
    line-height: 1;
    transition:
        opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

/* Light theme: show moon (invitation to switch to dark) */
[data-theme="light"] .auth-theme-toggle__sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.35);
}

[data-theme="light"] .auth-theme-toggle__moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Dark theme: show sun (invitation to switch to light) */
[data-theme="dark"] .auth-theme-toggle__sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .auth-theme-toggle__moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.35);
}

/* On mobile / smaller screens just pull the toggle in a bit tighter */
@media (max-width: 991px) {
    .auth-theme-toggle {
        top: 18px;
        right: 20px;
    }
}

/* Smooth theme transition on the surface elements only — leaves entrance & loading animations untouched */
.auth-right,
.auth-card__title,
.auth-card__subtitle,
.auth-card__app-name,
.auth-form-label,
.auth-panel-badge,
.demo-panel__desc,
.demo-panel__divider,
.demo-role-card__name,
.auth-page-logo__name {
    transition: background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 4. Demo panel — cleaner visual separation */
.demo-panel {
    margin-top: 28px;
}

.demo-panel__divider {
    margin-bottom: 6px;
}

/* ===================================================
   DASHBOARD PREMIUM REDESIGN  (ds-* namespace)
   =================================================== */

/* Section spacing */
.ds-section {
    margin-bottom: 20px;
}

/* ── Stats Grid ────────────────────────────────────── */
.ds-stats-grid {
    display: grid;
    gap: 16px;
}

.ds-stats-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ds-stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ds-stats-grid-7 {
    grid-template-columns: repeat(7, 1fr);
}

.ds-stats-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.ds-stats-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ── Premium Stat Card ─────────────────────────────── */
.ds-stat-card {
    --_accent: var(--primary-color);
    background: color-mix(in srgb, var(--_accent) 4%, var(--assest-color));
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--_accent);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--_accent) 22%, transparent);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    min-height: 88px;
}

.ds-stat-card:hover {
    border-color: var(--_accent);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--_accent) 18%, transparent), inset 0 -2px 0 color-mix(in srgb, var(--_accent) 40%, transparent);
    transform: translateY(-3px);
}

.ds-stat-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--_accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--_accent) 35%, transparent);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.ds-stat-card:hover .ds-stat-card__icon {
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--_accent) 48%, transparent);
}

.ds-stat-card__body {
    flex: 1;
    min-width: 0;
}

.ds-stat-card__value {
    font-size: 28px;
    font-weight: 700;
    color: var(--black-color);
    line-height: 1.1;
    margin: 0 0 4px;
}

.ds-stat-card__label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

/* ── Stat Card Color Variants ─────────────────────── */
.ds-stat-card--success { --_accent: var(--success); }
.ds-stat-card--warning { --_accent: var(--warning); }
.ds-stat-card--danger  { --_accent: var(--danger);  }
.ds-stat-card--green   { --_accent: var(--green);   }
.ds-stat-card--orange  { --_accent: var(--orange);  }
.ds-stat-card--gray    { --_accent: var(--gray);    }
.ds-stat-card--cyan    { --_accent: var(--cyan);    }

/* ── Stat Card Small Variant ─────────────────────── */
.ds-stat-card--sm {
    padding: 12px 14px;
    min-height: 68px;
    gap: 10px;
    border-radius: 10px;
}

.ds-stat-card--sm .ds-stat-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    font-size: 15px;
}

.ds-stat-card--sm .ds-stat-card__value {
    font-size: 20px;
    margin: 0 0 2px;
}

.ds-stat-card--sm .ds-stat-card__label {
    font-size: 10px;
    letter-spacing: 0.5px;
}

.ds-stat-card__meta {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Today Badge ─────────────────────────────────── */
.ds-today-badge {
    position: absolute;
    top: 9px;
    right: 11px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    color: var(--_accent);
    background: color-mix(in srgb, var(--_accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--_accent) 22%, transparent);
    padding: 2px 8px;
    border-radius: 20px;
    line-height: 1.6;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

[data-theme="dark"] .ds-today-badge {
    background: color-mix(in srgb, var(--_accent) 16%, transparent);
    border-color: color-mix(in srgb, var(--_accent) 30%, transparent);
}

/* ── Chart Card Container ──────────────────────────── */
.ds-chart-card {
    background: var(--assest-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.ds-chart-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.ds-chart-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--black-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ds-chart-card__title i {
    color: var(--primary-color);
}

.ds-chart-card__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ── Chart Filter Buttons ──────────────────────────── */
.ds-filter-btn {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.6;
}

.ds-filter-btn:hover {
    background: var(--primary-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.ds-filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.ds-filter-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-light);
}

/* ── View-all link inside chart header ─────────────── */
.ds-link-btn {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.ds-link-btn:hover {
    background: var(--primary-bg);
    color: var(--primary-color);
    text-decoration: none;
}

/* ── Canvas height wrapper (earningLineChart) ──────── */
.ds-chart-canvas-lg {
    height: 450px;
    position: relative;
}

/* ── Section heading (doctors row) ────────────────── */
.ds-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ds-section-header__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--black-color);
    margin: 0;
}

/* ── Speciality mosaic grid ────────────────────────── */
.ds-speciality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ds-speciality-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.ds-speciality-item img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    filter: blur(1px) brightness(0.62);
    display: block;
    border-radius: 8px;
}

.ds-speciality-item__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    padding: 6px;
    line-height: 1.3;
}

/* ── Premium Doctor Card ───────────────────────────── */
.ds-doctor-card {
    background: var(--assest-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
}

.ds-doctor-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px var(--primary-bg);
    transform: translateY(-2px);
}

.ds-doctor-card__avatar img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.ds-doctor-card__info {
    flex: 1;
    min-width: 0;
}

.ds-doctor-card__username {
    font-size: 13px;
    font-weight: 700;
    color: var(--black-color);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-doctor-card__fullname {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-doctor-card__badges {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1199px) {
    .ds-stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ds-stats-grid-7 {
        grid-template-columns: repeat(4, 1fr);
    }

    .ds-stats-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .ds-stats-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ds-stats-grid-7 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ds-stats-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ds-stats-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {

    .ds-stats-grid-4,
    .ds-stats-grid-3,
    .ds-stats-grid-7,
    .ds-stats-grid-5,
    .ds-stats-grid-2 {
        grid-template-columns: 1fr;
    }

    .ds-stat-card__value {
        font-size: 22px;
    }

    .ds-chart-card {
        padding: 16px;
    }

    .ds-chart-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ds-doctor-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ds-doctor-card__badges {
        justify-content: center;
    }
}

/* ===================================================
   TOP RATED DOCTOR — Portrait Card  (drd-* namespace)
   =================================================== */

/* Card shell */
.drd-card {
    background: var(--assest-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 0px 20px;
    text-align: center;
    position: relative;
    height: 100%;
    overflow: hidden;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

/* Top accent bar */
.drd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.drd-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 28px var(--primary-bg);
    transform: translateY(-3px);
}

.drd-card:hover::before {
    opacity: 1;
}

/* ── Rank badge ──────────────────────────────────── */
.drd-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--primary-bg);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    letter-spacing: 0.3px;
    line-height: 1;
}

.drd-rank--gold {
    background: #FEF3C7;
    color: #D97706;
}

.drd-rank--silver {
    background: #F1F5F9;
    color: #64748B;
}

.drd-rank--bronze {
    background: #FFF7ED;
    color: #C2410C;
}

/* ── Avatar ──────────────────────────────────────── */
.drd-avatar-link {
    display: block;
    margin: 0 auto 14px;
    width: fit-content;
}

.drd-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    display: block;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.drd-card:hover .drd-avatar {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-bg);
}

/* ── Name & handle ───────────────────────────────── */
.drd-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--black-color);
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drd-username {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 0 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Star rating row ─────────────────────────────── */
.drd-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.drd-rating__stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.drd-rating__star {
    font-size: 13px;
    color: #D1D5DB;
}

.drd-rating__star--filled {
    color: #F59E0B;
}

.drd-rating__star--half {
    color: #F59E0B;
}

.drd-rating__value {
    font-size: 13px;
    font-weight: 700;
    color: var(--black-color);
    line-height: 1;
}

/* ── Consultation fee chip ───────────────────────── */
.drd-fee {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-bg);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    transition: background 0.2s ease;
}

.drd-card:hover .drd-fee {
    background: var(--primary-light);
}

/* ── Empty state ─────────────────────────────────── */
.drd-empty {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    padding: 24px 0;
    margin: 0;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 575px) {
    .drd-card {
        padding: 20px 14px 16px;
    }

    .drd-avatar {
        width: 68px;
        height: 68px;
    }
}

/* ============================================================
   PROMOCODE MODULE
   ============================================================ */

/* Radio group row inside form */
.promo-radio-row {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 38px;
}

/* Promo code badge in table */
.promo-code-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--primary-bg);
    border: 1px solid var(--primary-light);
    border-radius: 6px;
    padding: 4px 10px;
    letter-spacing: 0.04em;
}

/* Status select — base */
.promo-status-select {
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    padding: 5px 8px;
    cursor: pointer;
    min-width: 100px;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    border: 1.5px solid var(--border-color);
    background: transparent;
}

/* Status select — inactive (red) */
.promo-status-select.promo-status-inactive {
    background: rgba(220, 53, 69, 0.08);
    border-color: var(--danger);
    color: var(--danger);
}

/* Status select — active (green) */
.promo-status-select.promo-status-active {
    background: rgba(25, 135, 84, 0.08);
    border-color: var(--success);
    color: var(--success);
}

/* Status select — expired (warning) */
.promo-status-select.promo-status-expired {
    background: rgba(255, 193, 7, 0.12);
    border-color: var(--warning);
    color: #b08400;
}

/* Upload zone — full width inside modal column */
.spl-modal-body .spl-upload-zone {
    width: 100%;
}

/* ─── Package / Plans Module ──────────────────────────────────────────── */

/* Info pills container */
.pkg-info-pills {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

/* Individual metric pill */
.pkg-info-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.pkg-info-pill:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

/* Icon */
.pkg-info-pill__icon {
    font-size: 12px;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

/* Label */
.pkg-info-pill__label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Value badge */
.pkg-info-pill__value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-heading);
    background: var(--assest-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 8px;
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
}

/* Price display in table and footer */
.pkg-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Transaction footer total label */
.txn-foot-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
}

/* ============================================================
   Reports Module — Chart Cards
   ============================================================ */

.rpt-chart-card {
    padding: 0;
    overflow: hidden;
    margin-bottom: 24px;
}

.rpt-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border-color);
}

.rpt-chart-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rpt-chart-title i {
    color: var(--primary-color);
}

.rpt-chart-area {
    height: 420px;
    padding: 16px 12px 12px;
}

.rpt-chart-area--lg {
    height: 520px;
}

.lq-token-box {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.lq-token-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    background: var(--primary-bg, #f8f9fa);
    border-radius: 8px;
    border: 1px solid var(--border-color, #dee2e6);
    min-width: 52px;
}

.lq-token-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.lq-token-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.3;
}

.lq-token-stat--waiting .lq-token-value {
    color: var(--orange, #fd7e14);
}

.lq-token-stat--done .lq-token-value {
    color: var(--success, #198754);
}

.lq-token-stat--current .lq-token-value {
    color: var(--blue, #0d6efd);
}

.lq-doctor-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lq-doctor-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color, #dee2e6);
    flex-shrink: 0;
}

.lq-doctor-info {
    display: flex;
    flex-direction: column;
}

.lq-doctor-username {
    font-size: 12px;
    color: var(--text-secondary);
}

.lq-doctor-fullname {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
}

.lq-detail-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.lq-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lq-detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-secondary);
}

.lq-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
}

.lq-apt-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.lq-apt-id {
    font-size: 11px;
    color: var(--text-secondary);
}

.lq-apt-no {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
}

.lq-est-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.lq-est-time i {
    color: var(--primary, #007bff);
    font-size: 12px;
}

/* ─── Pharmacy / Drugstore Module ──────────────────────────────────────── */

/* Medicine availability status pills (product grid) */
.med-avail-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.med-avail-btn:hover {
    opacity: 0.85;
}

.med-avail-btn.is-available {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success);
}

.med-avail-btn.is-unavailable {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.med-avail-btn a:focus,
.med-avail-btn a:active,
.med-avail-btn a:hover {
    outline: none !important;
    box-shadow: none !important;
}

/* for safety (some browsers apply on parent) */
.med-avail-btn:focus-within {
    outline: none;
    box-shadow: none;
}

/* Stock status pills (inventory table) */
.stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    /* font-size: 12px; */
    font-weight: 600;
    white-space: nowrap;
}

.stock-pill--in {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success);
}

.stock-pill--out {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

/* Generate Order — two-column panel layout */
.pharm-order-panel {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    min-height: 320px;
}

.pharm-panel-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

/* Each medicine select row (left panel) */
.pharm-select-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pharm-select-row .form-control {
    flex: 1;
}

/* Order summary item cards (right panel) */
.pharm-item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 10px;
    background: var(--body-bg-color);
    transition: box-shadow 0.2s ease;
}

.pharm-item-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pharm-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.pharm-item-meta {
    flex: 1;
    min-width: 0;
}

.pharm-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pharm-item-price {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.pharm-item-qty {
    flex-shrink: 0;
    width: 90px;
}

.pharm-item-qty .form-control {
    text-align: center;
    font-weight: 600;
}

/* Empty state (no items selected) */
.pharm-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* ── Medicine List — Empty State ──────────────────────────── */
.med-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.med-empty-state__icon-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.med-empty-state__icon-wrap i {
    font-size: 38px;
    color: var(--primary-color);
    opacity: 0.55;
}

.med-empty-state__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.med-empty-state__desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 320px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .pharm-order-panel {
        min-height: auto;
        margin-bottom: 16px;
    }

    .profile-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── Orders Module ─────────────────────────────────────── */

/* Order number + Rx ID cell */
.ord-info-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.ord-rx-id {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Is-assigned circle pill */
.ord-assign-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 13px;
}

.ord-assign-pill--yes {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success);
}

.ord-assign-pill--no {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

/* Price breakdown mini-table */
.ord-price-breakdown {
    min-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ord-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    gap: 8px;
    white-space: nowrap;
}

.ord-price-row>span:first-child {
    color: var(--text-secondary);
}

.ord-price-row>span:last-child {
    font-weight: 600;
}

.ord-price-total {
    border-top: 1px solid var(--border-color);
    padding-top: 4px;
    margin-top: 2px;
}

.ord-price-total>span:first-child {
    color: var(--text-heading);
    font-weight: 700;
}

/* Compact items list (list page) */
.ord-items-compact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 180px;
}

.ord-item-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ord-item-img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.ord-item-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    flex: 1;
}

.ord-item-qty {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.ord-items-more {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 600;
    padding: 1px 7px;
    background: var(--primary-bg);
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
}

/* Order summary — full-height inside its card */
.order-summary {
    max-width: 100%;
}

/* Default */
.sidebar-toggle {
    display: inline-flex !important;
    align-items: center;
}

.header-toggle {
    display: none !important;
}

/* Mobile */
@media (max-width: 991px) {

    .header-toggle {
        display: inline-flex !important;
    }

    .sidebar-toggle {
        display: none !important;
    }

    /* 🔥 Sidebar open → show sidebar toggle as close button */
    body.sidebar-open .sidebar-toggle {
        display: inline-flex !important;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 999;
    }
}

/* START: SEARCH & FILTER BAR */
.search-filter-bar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.search-input-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: var(--primary-bg);
    border: 1.5px solid var(--primary-bg);
    border-radius: var(--radius-md);
    padding: 4px 14px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 200px;
    -webkit-transition: var(--transition);
    transition: var(--transition);
}

.search-input-group:focus-within {
    border-color: var(--primary-color);
    background: var(--white-color);
}

.search-input-group i {
    color: var(--text-secondary);
    margin-right: 8px;
    font-size: 14px;
    flex-shrink: 0;
}

.search-input-group .form-control {
    border: none;
    background: transparent;
    padding: 7px 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-size: 14px;
    color: var(--text-secondary);
    height: auto !important;
    border-radius: 0;
}

.search-input-group .form-control:focus {
    border-color: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.filter-select-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    padding: 4px 14px;
    min-width: 180px;
    border: 1.5px solid var(--primary-bg);
    -webkit-transition: var(--transition);
    transition: var(--transition);
}

.filter-select-group:focus-within {
    border-color: var(--primary-color);
    background: var(--white-color);
}

.filter-select-group .filter-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.filter-select-group .form-control {
    border: none;
    background: transparent;
    padding: 7px 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-size: 14px;
    color: var(--text-secondary);
    height: auto !important;
    cursor: pointer;
    border-radius: 0;
}

.filter-select-group .form-control:focus {
    border-color: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.filter-select-group-select2 {
    min-width: 200px;
    padding: 1px 14px;
}

.filter-select-group-select2 .select2-container {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.filter-select-group-select2 .select2-container .select2-selection--single {
    border: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    height: auto !important;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.filter-select-group-select2 .select2-container .select2-selection__rendered {
    padding: 7px 24px 7px 0;
    line-height: 1.5;
    color: var(--text-secondary);
    font-size: 14px;
}

.filter-select-group-select2 .select2-container .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 0;
}

/* END: SEARCH & FILTER BAR  */

/* Installation */
.list-group-item {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
    background-color: transparent;
}

.install-bg-img {
    text-align: center;
}

.install-bg-img img {
    max-width: 100%;
    height: auto;
}

.install-title {
    font-size: 42px;
    font-weight: bold;
}

.install_sub_title {
    font-size: 24px;
}

.install_text {
    font-size: 20px;
    margin-bottom: 30px;
    margin-top: 30px;
}

.install-list li {
    font-size: 20px;
    margin-bottom: 10px;
}

.install-list li:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.install-card {
    margin-left: 100px;
    margin-right: 100px;
}

@media (max-width: 1024px) {
    .install-bg-img {
        display: none !important;
    }
}

.install-footer {
    padding: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--black-color);
    background: var(--primary-color);
}

.install-footer a {
    color: var(--white-color);
    margin: 0 15px;
    text-decoration: none;
    font-size: 18px;
}

.install-footer a:hover {
    color: var(--black-color);
}

.install-social-icons {
    margin-top: 10px;
}

.install-social-icons a {
    color: var(--white-color);
    font-size: 20px;
    text-decoration: none;
}

.install-social-icons a:hover {
    color: var(--black-color);
}

.install-footer .content {
    position: relative;
    z-index: 1;
}

/* btn Install */
.btn-install {
    background: var(--primary-color);
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    color: var(--white-color);
    border: 1px solid transparent;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    padding: 10px 40px;
}

.btn-install:hover {
    color: var(--primary-color);
    background: transparent;
    border-color: var(--primary-color);
}

/* btn Install Cancel */
.btn-install-cancel {
    background: var(--black-color);
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    color: var(--white-color);
    border: 1px solid transparent;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    padding: 10px 40px;
}

.btn-install-cancel:hover {
    color: var(--black-color);
    background: transparent;
    border-color: var(--black-color);
}

/* ==========================================================================
   Page-Load Animations — Sidebar, Header, Body Content
   Scope: .app-header | .sdb-nav sidebar items | .body-content
   Must NOT affect forms, modals, dropdowns, tables, or interactive components.
   ========================================================================== */

/* --- Keyframes --- */
@keyframes pa-header-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pa-sidebar-item-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* pa-section-in: ends with transform:none so no stacking context persists after animation.
   This is critical — modals inside body-content remain position:fixed against the viewport. */
@keyframes pa-section-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pa-submenu-item-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Header entrance --- */
.app-header {
    animation: pa-header-in 280ms ease-out both;
}

/* --- Body Content page-section entrance (JS sets .pa-section + animation-delay on each card) ---
   Applied to direct .custom-border-card children of .body-content only.
   Siblings (.modal) are unaffected. transform:none at end = no persistent stacking context. */
.pa-section {
    animation: pa-section-in 360ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* --- Sidebar account section entrance --- */
.sdb-nav__account {
    animation: pa-sidebar-item-in 220ms ease-out both;
    animation-delay: 960ms;
}

/* --- Sidebar menu item staggered entrance (fast one-by-one, ~20ms stagger, 220ms duration)
       Base rule also acts as a cap: any item beyond position 48 (or the last explicit
       nth-child rule below) falls back to the capped 940ms delay so the bottom of a
       very long menu doesn't drift past the ~1.2s finish window. */
.sdb-nav .sdb-nav__list>li {
    animation: pa-sidebar-item-in 220ms ease-out both;
    animation-delay: 940ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(1) {
    animation-delay: 0ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(2) {
    animation-delay: 20ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(3) {
    animation-delay: 40ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(4) {
    animation-delay: 60ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(5) {
    animation-delay: 80ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(6) {
    animation-delay: 100ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(7) {
    animation-delay: 120ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(8) {
    animation-delay: 140ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(9) {
    animation-delay: 160ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(10) {
    animation-delay: 180ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(11) {
    animation-delay: 200ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(12) {
    animation-delay: 220ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(13) {
    animation-delay: 240ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(14) {
    animation-delay: 260ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(15) {
    animation-delay: 280ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(16) {
    animation-delay: 300ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(17) {
    animation-delay: 320ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(18) {
    animation-delay: 340ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(19) {
    animation-delay: 360ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(20) {
    animation-delay: 380ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(21) {
    animation-delay: 400ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(22) {
    animation-delay: 420ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(23) {
    animation-delay: 440ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(24) {
    animation-delay: 460ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(25) {
    animation-delay: 480ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(26) {
    animation-delay: 500ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(27) {
    animation-delay: 520ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(28) {
    animation-delay: 540ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(29) {
    animation-delay: 560ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(30) {
    animation-delay: 580ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(31) {
    animation-delay: 600ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(32) {
    animation-delay: 620ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(33) {
    animation-delay: 640ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(34) {
    animation-delay: 660ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(35) {
    animation-delay: 680ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(36) {
    animation-delay: 700ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(37) {
    animation-delay: 720ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(38) {
    animation-delay: 740ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(39) {
    animation-delay: 760ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(40) {
    animation-delay: 780ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(41) {
    animation-delay: 800ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(42) {
    animation-delay: 820ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(43) {
    animation-delay: 840ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(44) {
    animation-delay: 860ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(45) {
    animation-delay: 880ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(46) {
    animation-delay: 900ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(47) {
    animation-delay: 920ms;
}

.sdb-nav .sdb-nav__list>li:nth-child(48) {
    animation-delay: 940ms;
}

/* --- Submenu items: staggered on expand (.show added by Bootstrap) --- */
.sdb-nav .sdb-submenu.show>.sdb-submenu__item {
    animation: pa-submenu-item-in 180ms ease-out both;
}

.sdb-nav .sdb-submenu.show>.sdb-submenu__item:nth-child(1) {
    animation-delay: 0ms;
}

.sdb-nav .sdb-submenu.show>.sdb-submenu__item:nth-child(2) {
    animation-delay: 35ms;
}

.sdb-nav .sdb-submenu.show>.sdb-submenu__item:nth-child(3) {
    animation-delay: 70ms;
}

.sdb-nav .sdb-submenu.show>.sdb-submenu__item:nth-child(4) {
    animation-delay: 105ms;
}

.sdb-nav .sdb-submenu.show>.sdb-submenu__item:nth-child(5) {
    animation-delay: 140ms;
}

.sdb-nav .sdb-submenu.show>.sdb-submenu__item:nth-child(6) {
    animation-delay: 175ms;
}

/* --- Accessibility: respect reduced-motion preference --- */
@media (prefers-reduced-motion: reduce) {

    .app-header,
    .pa-section,
    .sdb-nav__account,
    .sdb-nav .sdb-nav__list>li,
    .sdb-nav .sdb-submenu.show>.sdb-submenu__item {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Dashboard Welcome Card  —  .dash-welcome (light theme-based)
   ========================================================================== */

/* ── Keyframes (scoped to Admin Welcome Section) ── */
@keyframes dw-ring-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes dw-entrance {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dw-wave {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60%,
    100% {
        transform: rotate(0deg);
    }
}

/* ── Card (soft light primary gradient) ── */
.dash-welcome {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
    box-shadow: 0 6px 24px color-mix(in srgb, var(--primary-color) 10%, transparent),
        0 1px 3px rgba(15, 23, 42, 0.04);
    margin-bottom: 20px;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--primary-color) 14%, var(--white-color)) 0%,
            color-mix(in srgb, var(--primary-color) 5%, var(--white-color)) 55%,
            color-mix(in srgb, var(--primary-color) 12%, var(--white-color)) 100%);
    color: var(--text-heading);
}

.dash-welcome.dash-reveal {
    animation: dw-entrance 520ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ── Radial glow decoration ── */
.dash-welcome-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle,
            color-mix(in srgb, var(--primary-color) 18%, transparent) 0%,
            transparent 70%);
    top: -140px;
    right: 40px;
    pointer-events: none;
    z-index: 0;
}

/* ── Inner row ── */
.dash-welcome-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 26px;
}

/* ── Left side ── */
.dash-welcome-left {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
    min-width: 0;
}

/* ── Avatar wrapper ── */
.dash-welcome-avatar {
    position: relative;
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Inner circle: image or initial (stays static) ── */
.dash-welcome-avatar-inner {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            color-mix(in srgb, var(--primary-color) 72%, #000) 100%);
    border: 2px solid color-mix(in srgb, var(--primary-color) 20%, var(--white-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    letter-spacing: 0;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 26%, transparent);
}

.dash-welcome-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* ── Spinning dashed outer ring (rotates only) ── */
.dash-welcome-avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed color-mix(in srgb, var(--primary-color) 55%, transparent);
    animation: dw-ring-spin 12s linear infinite;
    z-index: 1;
    pointer-events: none;
}

/* ── Info text area ── */
.dash-welcome-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.dash-welcome-greet {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.dash-welcome-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 2px 0 0;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
}

/* ── Waving hand (rotates in place, does NOT move text) ── */
.dash-welcome-wave {
    font-style: normal;
    font-size: 26px;
    font-weight: 700px;
    display: inline-block;
    transform-origin: 70% 80%;
    animation: dw-wave 2.4s ease-in-out infinite;
    line-height: 1;
    will-change: transform;
}

.dash-welcome-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.dash-welcome-email {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    gap: 6px;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color) 10%, var(--white-color));
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Right side ── */
.dash-welcome-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

/* ── Date / time card ── */
.dash-welcome-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    background: color-mix(in srgb, var(--primary-color) 6%, var(--white-color));
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
    border-radius: 12px;
    padding: 12px 18px;
    text-align: right;
    min-width: 190px;
    backdrop-filter: blur(4px);
}

.dash-welcome-meta-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.dash-welcome-meta-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
    margin-top: 2px;
}

.dash-welcome-meta-time {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    margin-top: 2px;
    line-height: 1.2;
}

/* ── Overview + CTA row ── */
.dash-welcome-overview {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-welcome-overview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: color-mix(in srgb, var(--primary-color) 6%, var(--white-color));
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
    border-radius: 10px;
    padding: 8px 16px;
    backdrop-filter: blur(4px);
}

.dash-welcome-overview-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--primary-color) 24%, transparent);
}

.dash-welcome-overview-body {
    display: flex;
    flex-direction: column;
}

.dash-welcome-overview-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
}

.dash-welcome-overview-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* ── CTA button ── */
.dash-welcome-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--primary-color) 60%, transparent);
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 24%, transparent);
}

.dash-welcome-cta:hover {
    background: color-mix(in srgb, var(--primary-color) 88%, #000);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary-color) 30%, transparent);
    text-decoration: none;
}

/* ── Dark mode adjustments (adapts using existing dark theme vars) ── */
[data-theme="dark"] .dash-welcome {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--primary-color) 24%, var(--assest-color)) 0%,
            color-mix(in srgb, var(--primary-color) 8%, var(--assest-color)) 55%,
            color-mix(in srgb, var(--primary-color) 20%, var(--assest-color)) 100%);
    border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
    box-shadow: 0 6px 24px color-mix(in srgb, var(--primary-color) 18%, transparent),
        0 1px 4px rgba(0, 0, 0, 0.30);
}

[data-theme="dark"] .dash-welcome-meta,
[data-theme="dark"] .dash-welcome-overview-item {
    background: color-mix(in srgb, var(--primary-color) 10%, var(--assest-color));
    border-color: color-mix(in srgb, var(--primary-color) 26%, transparent);
}

[data-theme="dark"] .dash-welcome-email {
    background: color-mix(in srgb, var(--primary-color) 18%, var(--assest-color));
    color: color-mix(in srgb, var(--primary-color) 35%, #fff);
    border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
}

[data-theme="dark"] .dash-welcome-greet,
[data-theme="dark"] .dash-welcome-meta-time {
    color: color-mix(in srgb, var(--primary-color) 45%, #fff);
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
    .dash-welcome.dash-reveal {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .dash-welcome-avatar-ring {
        animation: none !important;
    }

    .dash-welcome-wave {
        animation: none !important;
    }
}

/* ── Tablet ── */
@media (max-width: 991px) {
    .dash-welcome-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
        gap: 18px;
    }

    .dash-welcome-right {
        align-items: flex-start;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .dash-welcome-meta {
        align-items: flex-start;
        text-align: left;
        flex: 1;
        min-width: 180px;
    }

    .dash-welcome-meta-label {
        justify-content: flex-start;
    }

    .dash-welcome-overview {
        flex: 1;
    }
}

/* ── Mobile ── */
@media (max-width: 575px) {
    .dash-welcome-inner {
        padding: 18px 16px;
        gap: 16px;
    }

    .dash-welcome-left {
        flex-direction: row;
        align-items: center;
    }

    .dash-welcome-name {
        font-size: 18px;
    }

    .dash-welcome-meta {
        min-width: 0;
        width: 100%;
    }

    .dash-welcome-meta-time {
        font-size: 20px;
    }

    .dash-welcome-right {
        flex-direction: column;
    }

    .dash-welcome-overview {
        width: 100%;
        flex-direction: column;
    }

    .dash-welcome-overview-item,
    .dash-welcome-cta {
        width: 100%;
        justify-content: center;
    }
}

.prm-url-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.prm-url-link {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    display: inline-block;
    vertical-align: middle;
    text-decoration: none;
    transition: color 0.15s ease;
}

.prm-url-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.prm-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 5px;
    flex-shrink: 0;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.5;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.prm-copy-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.prm-copy-btn i {
    font-size: 11px;
}

.prm-copy-btn.prm-copied {
    background: rgba(25, 135, 84, 0.10);
    border-color: rgba(25, 135, 84, 0.30);
    color: var(--success);
    pointer-events: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.prm-copy-btn:focus,
.prm-copy-btn:focus-visible,
.prm-copy-btn:active {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* ── DARK MODE: FORM INPUTS ── */
[data-theme="dark"] .form-control,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] input[type="month"],
[data-theme="dark"] input[type="week"],
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .custom-select {
    background-color: var(--assest-color) !important;
    color: var(--text-heading) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-secondary) !important;
    opacity: 1;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="email"]:focus,
[data-theme="dark"] input[type="password"]:focus,
[data-theme="dark"] input[type="number"]:focus,
[data-theme="dark"] input[type="tel"]:focus,
[data-theme="dark"] input[type="url"]:focus,
[data-theme="dark"] input[type="search"]:focus,
[data-theme="dark"] input[type="date"]:focus,
[data-theme="dark"] input[type="time"]:focus,
[data-theme="dark"] input[type="datetime-local"]:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] .custom-select:focus {
    background-color: var(--assest-color) !important;
    color: var(--text-heading) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem var(--primary-light) !important;
}

[data-theme="dark"] .form-control:disabled,
[data-theme="dark"] .form-control[readonly],
[data-theme="dark"] input:disabled,
[data-theme="dark"] input[readonly],
[data-theme="dark"] textarea:disabled,
[data-theme="dark"] textarea[readonly],
[data-theme="dark"] select:disabled,
[data-theme="dark"] .custom-select:disabled {
    background-color: var(--body-bg-color) !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
    opacity: 0.7;
}

[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill:hover,
[data-theme="dark"] input:-webkit-autofill:focus,
[data-theme="dark"] input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--assest-color) inset !important;
    -webkit-text-fill-color: var(--text-heading) !important;
    caret-color: var(--text-heading) !important;
}

/* ── DARK MODE: SELECT2 ── */
[data-theme="dark"] .select2-container--default .select2-selection--single,
[data-theme="dark"] .select2-container--default .select2-selection--multiple {
    background-color: var(--assest-color) !important;
    border-color: var(--border-color) !important;
    color: var(--text-heading) !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-heading) !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-secondary) transparent transparent transparent !important;
}

[data-theme="dark"] .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--text-secondary) transparent !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--primary-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-heading) !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .select2-dropdown {
    background-color: var(--assest-color) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .select2-results__option {
    background-color: var(--assest-color) !important;
    color: var(--text-heading) !important;
}

[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected],
[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"],
[data-theme="dark"] .select2-container--default .select2-results__option[data-selected="true"] {
    background-color: var(--primary-bg) !important;
    color: var(--primary-color) !important;
}

[data-theme="dark"] .select2-search--dropdown .select2-search__field {
    background-color: var(--body-bg-color) !important;
    border-color: var(--border-color) !important;
    color: var(--text-heading) !important;
}

[data-theme="dark"] .select2-search--dropdown .select2-search__field::placeholder {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .select2-container--default.select2-container--focus .select2-selection--multiple,
[data-theme="dark"] .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary-color) !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: var(--text-heading) !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--multiple input.select2-search__field {
    background-color: transparent !important;
    color: var(--text-heading) !important;
}

/* ── DARK MODE: SEARCH BAR BACKGROUNDS ── */
[data-theme="dark"] .spl-search-wrap {
    background: var(--assest-color) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .spl-search-wrap:focus-within {
    background: var(--assest-color) !important;
    border-color: var(--primary-color) !important;
}

[data-theme="dark"] .page-search {
    background: var(--assest-color) !important;
}

[data-theme="dark"] .search-input-group {
    background: var(--assest-color) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .search-input-group:focus-within {
    background: var(--assest-color) !important;
    border-color: var(--primary-color) !important;
}

[data-theme="dark"] .spl-search-wrap .spl-search-input,
[data-theme="dark"] .spl-search-wrap .spl-search-input:hover,
[data-theme="dark"] .spl-search-wrap .spl-search-input:focus,
[data-theme="dark"] .spl-search-wrap .spl-search-input:active,
[data-theme="dark"] .page-search .form-control,
[data-theme="dark"] .page-search .form-control:hover,
[data-theme="dark"] .page-search .form-control:focus,
[data-theme="dark"] .page-search .input-group-text,
[data-theme="dark"] .search-input-group .form-control,
[data-theme="dark"] .search-input-group .form-control:hover,
[data-theme="dark"] .search-input-group .form-control:focus {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: var(--text-heading) !important;
}

[data-theme="dark"] .spl-search-input::placeholder,
[data-theme="dark"] .page-search .form-control::placeholder,
[data-theme="dark"] .search-input-group .form-control::placeholder {
    color: var(--text-secondary) !important;
    opacity: 1;
}

[data-theme="dark"] .spl-search-wrap .spl-search-input:-webkit-autofill,
[data-theme="dark"] .spl-search-wrap .spl-search-input:-webkit-autofill:hover,
[data-theme="dark"] .spl-search-wrap .spl-search-input:-webkit-autofill:focus,
[data-theme="dark"] .spl-search-wrap .spl-search-input:-webkit-autofill:active,
[data-theme="dark"] .page-search .form-control:-webkit-autofill,
[data-theme="dark"] .page-search .form-control:-webkit-autofill:hover,
[data-theme="dark"] .page-search .form-control:-webkit-autofill:focus,
[data-theme="dark"] .search-input-group .form-control:-webkit-autofill,
[data-theme="dark"] .search-input-group .form-control:-webkit-autofill:hover,
[data-theme="dark"] .search-input-group .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--assest-color) inset !important;
    -webkit-text-fill-color: var(--text-heading) !important;
    caret-color: var(--text-heading) !important;
}
/* ============================================================
   Appointment Module — Stat Cards
   ============================================================ */

.apt-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1199px) {
    .apt-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .apt-stat-grid {
        grid-template-columns: 1fr;
    }
}

.apt-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--assest-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px 20px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.apt-stat-card:hover {
    box-shadow: 0 4px 16px var(--primary-light);
    transform: translateY(-2px);
}

.apt-stat-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
}

.apt-stat-body {
    min-width: 0;
}

.apt-stat-count {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
}

.apt-stat-title {
    /* font-size: 12px; */
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   Orders Module — Newly Ported UI (matching Admin Panel)
   ============================================================ */

/* ── 6-column summary cards grid ────────────────────────── */
.ds-stats-grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* ── Blue accent variant (used by On The Way card) ───────── */
.ds-stat-card--blue { --_accent: var(--blue); }

/* ── Active / selected state for clickable summary cards ─── */
.ds-stat-card.is-active,
a.ds-stat-card.is-active {
    border-color: var(--_accent);
    background: color-mix(in srgb, var(--_accent) 10%, var(--assest-color));
    box-shadow: 0 8px 28px color-mix(in srgb, var(--_accent) 22%, transparent),
                inset 0 -2px 0 var(--_accent);
}

/* Clickable summary stat cards */
.ord-summary-card {
    cursor: pointer;
    user-select: none;
}

.ord-summary-card:focus-visible {
    outline: 2px solid var(--_accent);
    outline-offset: 2px;
}

/* ── Orders filter row (search + dropdowns on one line) ───── */
.ord-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ord-filter-row .ord-search-wrap {
    flex: 2 1 260px;
    width: auto;
}

.ord-filter-row .apt-filter-item {
    flex: 1 1 200px;
}

.ord-filter-row .apt-filter-date {
    flex: 1 1 155px;
    max-width: 175px;
}

@media (max-width: 767px) {
    .ord-filter-row .ord-search-wrap,
    .ord-filter-row .apt-filter-item {
        flex: 1 1 100%;
    }

    .ord-filter-row .apt-filter-date {
        max-width: none;
    }
}

/* ── Action button group (aligns icon buttons side by side) ── */
.apt-action-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin: 0 auto;
}

/* ── Payment method badge ─────────────────────────────────── */
.ord-payment-badge {
    gap: 6px;
}



/* ── Compact items column ─────────────────────────────────── */
.apt-items-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    max-width: 280px;
}

.apt-items-compact__row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.apt-items-compact__img {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex: 0 0 26px;
}

.apt-items-compact__name {
    flex: 1 1 0%;
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-heading);
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
}

.apt-items-compact__qty {
    font-size: 11px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.apt-items-compact__more {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
}

/* ── Responsive: ds-stats-grid-6 ────────────────────────── */
@media (max-width: 1199px) {
    .ds-stats-grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .ds-stats-grid-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .ds-stats-grid-6 { grid-template-columns: 1fr; }
}

/* ============================================================
   Orders Module — Order Details: Main Info Card Layout
   (ported from Admin Panel style.css)
   ============================================================ */

.ord-main-info-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px 32px;
    padding: 20px 24px;
}

.ord-main-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
}

/* Right-aligned meta block (date + status) */
.ord-main-info-corner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.ord-main-info-corner__item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.ord-main-info-corner__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ord-main-info-corner__label i {
    font-size: 12px;
    color: var(--primary-color);
}

.ord-main-info-corner__value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
}

/* Icon + body info item (order number, payment method, etc.) */
.ord-main-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ord-main-info-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-bg);
    color: var(--primary-color);
    font-size: 16px;
    flex-shrink: 0;
}

.ord-main-info-item__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ord-main-info-item__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ord-main-info-item__value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.3;
}

/* Responsive: stack corner below info row on small screens */
@media (max-width: 575px) {
    .ord-main-info-top {
        flex-direction: column;
        align-items: stretch;
    }

    .ord-main-info-corner {
        align-items: flex-start;
    }

    .ord-main-info-corner__item {
        align-items: flex-start;
    }
}
/* Status pill — trigger badge & read-only display */
.ord-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1px;
    border: none;
    background: var(--border-color);
    color: var(--text-secondary);
    line-height: 1;
    vertical-align: middle;
}

.ord-status-pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.ord-status-pill__caret {
    font-size: 9px;
    margin-left: 2px;
    opacity: 0.75;
}

.ord-status-pill--pending {
    background: rgba(255, 193, 7, 0.14);
    color: var(--warning);
}

.ord-status-pill--placed {
    background: rgba(13, 202, 240, 0.14);
    color: var(--cyan);
}

.ord-status-pill--preparing {
    background: rgba(253, 126, 20, 0.14);
    color: var(--orange);
}

.ord-status-pill--ontheway {
    background: rgba(13, 110, 253, 0.14);
    color: var(--blue);
}

.ord-status-pill--delivered {
    background: rgba(34, 197, 94, 0.14);
    color: var(--success);
}

.ord-status-trigger {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.ord-status-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    filter: brightness(0.96);
}

.ord-status-trigger:focus {
    outline: none;
    box-shadow: none;
}

/* Status dropdown menu */
.ord-status-menu {
    /* min-width: 190px; */
    background: var(--assest-color);
    z-index: 1060;
    will-change: transform, opacity;
}

@keyframes ordStatusMenuIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ordStatusMenuInUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ord-status-menu.show {
    animation: ordStatusMenuIn 0.16s ease;
}

.ord-status-menu--up.show {
    animation: ordStatusMenuInUp 0.16s ease;
}

.ord-status-item {
    justify-content: space-between !important;
    gap: 10px;
}

.ord-status-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ord-status-item__dot--pending {
    background: var(--warning);
}

.ord-status-item__dot--placed {
    background: var(--cyan);
}

.ord-status-item__dot--preparing {
    background: var(--orange);
}

.ord-status-item__dot--ontheway {
    background: var(--blue);
}

.ord-status-item__dot--delivered {
    background: var(--success);
}

.ord-status-item__label {
    flex: 1 1 auto;
    color: var(--text-heading);
    font-size: 13px;
    font-weight: 500;
}

.ord-status-item__check {
    font-size: 12px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.ord-status-item.active {
    background: var(--primary-bg);
}

.ord-status-item.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
