html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #0c66e4;
    --secondary-color: ;
    --border-color: #d8dbdf;
    --font-color: #111111;
    --white-color: #fff;
    --dark-color: #000;
    --label-color: #344054;
}

body {
    font-family: "Inter", sans-serif;
    position: relative;
}

.main-body {
    background-color: #f3f4f6;
}

a {
    display: inline-block;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

button {
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--font-color);
}

h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 30px;
    color: var(--dark-color);
    letter-spacing: -0.16px;
}

h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 30px;
    color: var(--dark-color);
    letter-spacing: -0.16px;
}

/* Authentication Pages  */

.auth-section .row {
    min-height: 100vh;
    height: 100%;
    overflow: hidden;
}

.auth-section .layout-col {
    background-color: #eef3f7;
    min-height: 100vh;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    padding-left: 0;
}

.auth-section .layout-col .layout-img img {
    width: 100%;
    max-width: 500px;
    padding: 0 100px;
    max-height: 400px;
    height: 400px;
    object-fit: contain;
    object-position: bottom center;
    margin: auto;
    margin-top: 20px;
    text-align: center;
}

.auth-section .layout-contents {
    padding: 45px 50px;
}

.auth-section .layout-contents h2 {
    font-weight: 600;
    font-size: 28px;
    text-align: center;
    padding-bottom: 16px;
    color: #222529;
}

.auth-section .layout-contents p {
    font-weight: 400;
    font-size: 18px;
    color: #344054;
}

.auth-section .login-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    height: fit-content;
    width: 100%;
    padding: 30px 0;
}

.auth-section .slick-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    /* position: absolute; */
    /* bottom: 100px;
  left: 0;
  right: 0; */
    margin: 0;
    padding: 0;
}

.auth-section .slick-dots button {
    border: 0;
    font-size: 0;
    background-color: none;
    display: none;
}

.auth-section .slick-dots li {
    width: 8px;
    height: 8px;
    border-radius: 45px;
    background-color: #d4dcdf;
    cursor: pointer;
    margin: 0 8px;
}

.auth-section .slick-dots li.slick-active {
    background-color: var(--primary-color);
}

.auth-section .auth-col .logo {
    width: 185px;
    height: 50px;
    object-fit: contain;
}

.auth-section .auth-col h3 {
    font-weight: 600;
    font-size: 24px;
    margin: 25px 0;
}

.auth-section .auth-col .form-group input.form-control {
    width: 380px;
    height: 40px;
    border: 1px solid #b1b4b6;
    border-radius: 8px;
    padding: 10px;
}

input.form-control:focus {
    box-shadow: none;
}

.auth-section .auth-col .btn-submit {
    background-color: var(--primary-color);
    padding: 8px;
    width: 100%;
    color: var(--white-color);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    border-radius: 8px;
}

.auth-section .auth-col .form-group {
    margin-bottom: 16px;
}

.auth-section .auth-col .form-group label {
    font-weight: 500;
    font-size: 13px;
    color: var(--dark-color);
}

.auth-section .auth-col .forgot-link {
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    color: #25272c;
    padding: 8px;
    margin-top: 16px;
    display: inline-block;
    width: 100%;
    text-decoration: none;
}

.form-group .pass-col {
    position: relative;
}

.form-group .toggle-password {
    position: absolute;
    right: 12px; /* space from the right edge */
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
    height: fit-content;
}
.form-group .toggle-password:hover {
    color: #000;
}

/* Header  */
header {
    padding: 10px 16px;
    border-bottom: 1px solid #d1d7db;
    background-color: var(--white-color);
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 9;
    height: 65px;
}

header .logo {
    width: 135px;
    height: 42px;
    object-fit: contain;
    line-height: 0;
    vertical-align: middle;
}

/* Searchbar with icon inside input, icon on left */
header .searchbar {
    position: relative;
    width: 275px;
    border-radius: 45px;
}

header .searchbar .form-control {
    padding: 8px;
    padding-left: 38px; /* space for icon */
    height: 32px;
    border-radius: 45px;
    font-weight: 400;
    font-size: 14px;
    border: 1px solid var(--border-color);
}

header .searchbar .form-control::placeholder {
    font-weight: 400;
    font-size: 14px;
    color: #506079;
}

header .searchbar .btn-search {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    z-index: 2;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .searchbar .btn-search img {
    width: 20px;
    height: 20px;
}

header .searchbar .btn-search:focus {
    box-shadow: none;
}

/* Notification icon with count badge above icon */
header .notification-col {
    position: relative;
    display: inline-block;
    margin-left: 8px;
}

header .notification-col img {
    width: 22px;
    height: 22px;
    display: block;
}

header .notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #b91c1c;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    width: 18px;
    text-align: center;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .profile-col a {
    font-weight: 500;
    font-size: 14px;
    color: #25272c;
    text-decoration: none;
    padding: 0px 15px;
}

header .h-border {
    height: 30px;
    width: 1px;
    background-color: var(--border-color);
    margin: 0 15px;
    /* border-right: 1px solid var(--border-color); */
}

/* Sidebar  */

.left-container {
    background-color: var(--white-color);
    border-right: 1px solid #d9dcde;
    padding-top: 12px;
    padding-bottom: 100px;
    width: fit-content;
    box-sizing: border-box;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 65px;
    z-index: 9;
    overflow-x: auto;
    height: 100%;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.left-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.sidebar ul {
    list-style-type: none;
}

.sidebar li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
}

.sidebar li a.aside-link img {
    width: 22px;
    min-width: 22px;
    height: 22px;
    object-fit: contain;
}

.sidebar li a.aside-link:hover,
.sidebar li.active a.aside-link {
    background-color: #eef9ff;
    border-radius: 6px;
    position: relative;
}

.sidebar li a.aside-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.sidebar li a.aside-link::after {
    content: "";
    position: absolute;
    left: -15px;
    top: 0;
    width: 3px;
    height: 100%;
    background: #1380fd;
    border-radius: 2px;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.sidebar li a.aside-link:hover::after,
.sidebar li.active a.aside-link::after {
    transform: scaleY(1);
    opacity: 1;
}

/* Submenu styles */
.sidebar .r-sidebar-inner {
    position: fixed;
    left: 62px;
    top: 65px;
    width: 200px;
    height: 100%;
    background-color: var(--white-color);
    border: 1px solid #d9dcde;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 10;
}

/* Show submenu */
.sidebar li.submenu-open .r-sidebar-inner {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Submenu list items */
.sidebar .r-sidebar-inner li {
    padding: 4px 12px;
    justify-content: flex-start;
}

/* Submenu links */
.sidebar .r-sidebar-inner a {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--font-color);
    font-weight: 500;
    display: block;
    text-decoration: none;
}

.sidebar .r-sidebar-inner a:hover {
    background-color: #eef9ff;
}

.r-sidebar-inner p {
    color: #3d4043;
    font-size: 12px;
    padding-left: 15px;
    padding-top: 10px;
    font-weight: 600;
}

/* Profile Dropdown */
.profile-col {
    position: relative;
}

.profile-dropdown {
    background: var(--white-color);
    border-radius: 6px;
    width: 250px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: absolute;
    right: -12px;
    z-index: 9;
    top: 44px;
    display: none;
}

.profile-dropdown .profile-header {
    display: flex;
    align-items: center;
    padding: 16px;
}

.profile-dropdown .profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.profile-dropdown .profile-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--font-color);
}

.profile-dropdown .profile-email {
    font-size: 12px;
    font-weight: 400;
    color: #767676;
    margin-top: 4px;
}

.profile-dropdown .profile-divider {
    border-top: 1px solid var(--border-color);
    margin: 0 0;
}

.profile-dropdown .profile-link {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--font-color);
    text-decoration: none;
    transition: background 0.2s;
}

.profile-dropdown .profile-link:hover {
    background: #f3f4f6;
}

/* Main section  */

.main-section {
    margin-left: 63px;
    /* margin-top: 65px; */
    position: relative;
    /* padding: 15px; */
}

.header-fixed {
    position: fixed;
    top: 65px;
    width: 100%;
    left: 60px;
    background-color: var(--white-color);
    padding-top: 15px;
    z-index: 5;
    padding-left: 20px;
    border-bottom: 1px solid #d9dcde;
}

.custom-tab-list {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 16px;
    border-bottom: 0 !important;
}

.tab-link {
    font-size: 14px;
    color: #0c0d0e !important;
    text-decoration: none;
    position: relative;
    font-weight: 500;
    padding: 0 0 10px 0 !important;
    border: 0 !important;
    position: relative;
}

.tab-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ececef;
    color: #626168;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 4px;
}

.main-section .container-fluid {
    padding: 16px;
    margin-top: 158px;
}

.main-section-v2 .container-fluid {
    padding: 16px;
    margin-top: 130px;
}

.select-col .form-select {
    min-width: 135px;
    height: 32px;
    border: none;
    border-radius: 6px 0px 0px 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    line-height: normal;
}

.select-col .form-select:focus {
    box-shadow: none;
}

.select-search-row {
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.search-col .searchbar {
    width: 200px;
    border-radius: 45px;
    /* margin-right: 15px; */
    position: relative;
}

.search-col .searchbar .form-control {
    padding: 8px 12px;
    padding-right: 40px; /* space for icon */
    height: 32px;
    border-radius: 0 6px 6px 0;
    font-weight: 400;
    font-size: 14px;
    border: 0;
    border-left: 1px solid var(--border-color);
}

.search-col .searchbar .form-control::placeholder {
    font-weight: 400;
    font-size: 14px;
    color: #6b7280;
}

.search-col .searchbar .btn-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    z-index: 2;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Add to Tabs section */

.custom-tabs {
    display: flex;
    background: var(--white-color);
    border-radius: 6px;
    width: fit-content;
    border: 1px solid var(--border-color);
    /* margin-right: 5px; */
}

.tab-radio {
    position: relative;
    margin: 0;
}

.tab-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.tab-radio span {
    display: block;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #25272c;
    /* border-radius: 4px; */
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-left: 1px solid var(--border-color);
}

.tab-radio:first-child span {
    border-left: none;
    border-radius: 6px 0 0 6px;
}

.tab-radio input[type="radio"]:checked + span {
    background: #edeef1;
    /* box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.1), 0px 1px 2px rgba(16, 24, 40, 0.06); */
}

.tab-radio:last-child input[type="radio"]:checked + span {
    border-radius: 0 6px 6px 0;
}

/* Buttons  */
.cta-button {
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.cta-button img {
    vertical-align: middle;
    min-width: 14px;
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.primary-btn {
    color: var(--white-color);
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.primary-btn:hover {
    background-color: #0a58c0;
    border: 1px solid #0a58c0;
}

.secondary-btn {
    color: var(--font-color);
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
}

.secondary-btn:hover,
.cancel-cta:hover {
    background-color: #edeef1;
}

.right-btns {
    gap: 8px;
}

.cancel-cta {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #25272c;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    text-decoration: none;
}

/* Scrollbar  */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: #d1d7db;
}

/* Modal css  */

.filter-modal {
    background-color: var(--white-color);
    width: 380px !important;
    max-width: 380px;
    height: calc(100vh - 65px);
    bottom: 0;
    top: unset !important;
    /* border-top: ; */
}

.filter-modal .offcanvas-body,
.filter-modal form {
    height: 100%;
}

.modal-footer-fixed {
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: var(--white-color);
    padding: 16px 24px;
    z-index: 5;
    width: 100%;
}

.offcanvas-header {
    padding-top: 25px;
    padding-bottom: 0;
}

.xn-modal .modal-body,
.xn-modal .modal-header {
    padding: 24px;
}

.xn-modal .modal-footer {
    padding-top: 20px;
    /* border-top: 0; */
}

/* .modal-footer {
  padding-top: 20px;
} */

/* Detail-modal  */
.offcanvas-end.detail-page {
    max-width: 85%;
    width: 85%;
    background: #f6f7f8;
}

.detail-page .offcanvas-header {
    position: sticky;
    top: 0;
    width: 100%;
    left: 0;
    height: fit-content;
    background-color: var(--white-color);
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e6e9;
}

.detail-page .offcanvas-body {
    padding: 16px 10px;
}

/* Roles and Permission Page  */
.main-section-v3 .container-fluid {
    margin-top: 126px;
}

.roles-row .roles-col ul {
    list-style-type: none;
    padding-left: 0;
    /* border-right: 1px solid var(--border-color); */
    max-height: calc(100vh - 210px); /* or any specific height you want */
    overflow-y: auto;
    height: 100%;
}

.roles-row .roles-col ul li {
    padding: 16px;
    background-color: #f6f7f8;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.roles-row .roles-col ul li:hover {
    background-color: var(--white-color);
}

.roles-row .roles-col ul li:hover h4 {
    color: var(--primary-color);
}

.roles-row .roles-col ul li h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-color);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.roles-row .roles-col ul li p {
    font-size: 12px;
    font-weight: 400;
    color: #767676;
    line-height: 20px;
}

.roles-row .roles-col {
    position: relative;
    background-color: #f6f7f8;
    border-right: 1px solid var(--border-color);
    height: 100%;
}

.roles-row .roles-col h5 {
    background-color: #f0f2f3;
    padding: 10px 16px;
    color: var(--dark-color);
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    /* border-right: 1px solid var(--border-color); */
    line-height: 30px;
    text-transform: uppercase;
    z-index: 10; /* ensure it sits above list items */
}

.role-title-row .cta-button {
    height: 40px;
}

.checkbox-row .check-header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
}

.checkbox-row {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.checkbox-row .multiple-checkboxes {
    padding: 24px 16px;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
}

.checkbox-row .multiple-checkboxes:last-child {
    border-bottom: 0;
}

.checkbox-row .multiple-checkboxes .form-group {
    margin-bottom: 0;
    min-width: 150px;
}

.form-group label.check-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-color);
    margin-left: 6px;
    cursor: pointer;
}

.checkbox-outer {
    max-height: calc(100vh - 270px);
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding-right: 5px;
}

.form-col-main {
    position: relative;
}

.role-title-row {
    position: sticky;
    top: 0;
}
.text-danger {
    font-size: small !important;
}

select:focus,
a:focus {
    outline: none;
    box-shadow: none !important;
    cursor: pointer;
}

.clickable-td {
    cursor: pointer;
}

.row-grid .file-outer {
    cursor: pointer;
}

.img-popup-inner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-popup-inner img {
    min-width: 300px;
    max-width: 80%;
    margin: auto;
    max-height: 80%;
    min-height: 300px;
}

.modal-footer .btn-delete {
    background-color: #dc3545;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 3px;
}

.modal-footer .btn-delete:hover {
    background-color: #c82333;
}

.repeater-row-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px !important;
}

.filter-modal .offcanvas-body {
    overflow-y: auto;
    max-height: calc(
        100vh - 200px
    ); /* Adjust based on header + footer height */
}

/* Alternative: Make offcanvas body flex to fill available space */
.filter-modal {
    display: flex;
    flex-direction: column;
}

.filter-modal .modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.filter-modal .offcanvas-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.filter-modal .modal-footer-fixed {
    flex-shrink: 0;
}

.modal-body .table-section.filter-open {
    margin-right: 0 !important;
}

.file-name-container {
    max-height: 42px;
    padding: 8px 10px !important;
    margin-bottom: 0px !important;
    min-height: 40px;
}

.edit-col .select-view-inner .form-control {
    border: 1px solid #d0d5dd !important;
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none) !important;
        background-repeat: no-repeat !important;
    background-position: right .75rem center !important;
    background-size: 16px 12px !important;
}

.text-red{
    color: red !important;
}

