:root {
    --ws-accent: #673ab7;
}
html[data-ws-accent="blue"] {
    --ws-accent: #265ed7;
}
html[data-ws-accent="pink"] {
    --ws-accent: #f644a8;
}
html[data-ws-accent="red"] {
    --ws-accent: #f23737;
}
html,
body {
    font-size: 16px;
}
.user-img,
.user-profile-avatar {
    object-fit: cover;
}
.profile-avatar-picker {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin: 0;
}
.profile-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    opacity: 0;
    transition: opacity .15s ease;
}
.profile-avatar-picker:hover .profile-avatar-overlay,
.profile-avatar-picker:focus-within .profile-avatar-overlay {
    opacity: 1;
}
.profile-avatar-wrap {
    position: relative;
    display: inline-block;
}
.profile-avatar-remove {
    top: 4px;
    right: 4px;
    z-index: 2;
}
.profile-avatar-wrap.is-removed .profile-avatar-remove {
    display: none;
}
.sidebar-wrapper .metismenu a,
.dropdown-menu {
    font-size: 16px;
}
#menu li.menu-nested > a {
    padding-left: 30px !important;
}
#menu li.menu-nested > ul a {
    padding-left: 45px !important;
}
html[dir="rtl"] #menu li.menu-nested > a {
    padding-left: 15px !important;
    padding-right: 30px !important;
}
html[dir="rtl"] #menu li.menu-nested > ul a {
    padding-left: 15px !important;
    padding-right: 45px !important;
}
#menu .menu-nested > a .parent-icon i {
    margin-right: 0;
    margin-left: 0;
    transform: none;
}

/* Page utilities from the previous panel, mapped onto this kit. */
.radius-15,
.radius-12 {
    border-radius: 15px !important;
}
.radius-8 {
    border-radius: .5rem !important;
}
.radius-4 {
    border-radius: .25rem !important;
}
.p-40 { padding: 2.5rem !important; }
.p-24 { padding: 1.5rem !important; }
.p-16 { padding: 1rem !important; }
.py-16 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.px-24 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-11 { padding-top: .7rem !important; padding-bottom: .7rem !important; }
.py-12 { padding-top: .75rem !important; padding-bottom: .75rem !important; }
.px-8 { padding-left: .5rem !important; padding-right: .5rem !important; }
.px-40 { padding-left: 2.5rem !important; padding-right: 2.5rem !important; }
.py-4 { padding-top: .25rem !important; padding-bottom: .25rem !important; }
.mb-24 { margin-bottom: 1.5rem !important; }
.mb-16 { margin-bottom: 1rem !important; }
.mb-20 { margin-bottom: 1.25rem !important; }
.mb-12 { margin-bottom: .75rem !important; }
.mb-8 { margin-bottom: .5rem !important; }
.mb-4 { margin-bottom: .25rem !important; }
.mt-32 { margin-top: 2rem !important; }
.mt-24 { margin-top: 1.5rem !important; }
.mt-16 { margin-top: 1rem !important; }
.mt-12 { margin-top: .75rem !important; }
.mt-8 { margin-top: .5rem !important; }
.ms-8 { margin-left: .5rem !important; }
[dir="rtl"] .ms-8 { margin-left: 0 !important; margin-right: .5rem !important; }
.gap-12 { gap: .75rem !important; }
.text-secondary-light { color: #6c757d; }
.text-primary-light { color: #212529; }
.text-danger-main,
.text-danger-600 { color: #dc3545; }
.text-success-main { color: #198754; }
.text-sm { font-size: .875rem !important; }
.text-xs { font-size: .75rem !important; }
.text-md { font-size: 1rem !important; }
.bg-base { background-color: transparent; }
.bg-neutral-50 { background-color: #f8f9fa; }
.bg-success-focus { background-color: rgba(25, 135, 84, .12); }
.max-w-464-px { max-width: 464px; }
.h-56-px { height: 56px; }
.sidebar-header .logo-icon-2 {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.sidebar-header .logo-full {
    max-height: 36px;
    max-width: 168px;
    width: auto;
    object-fit: contain;
    display: block;
}
.sidebar-header .logo-full-light {
    display: none;
}
html.dark-theme .sidebar-header .logo-full-dark,
html.dark-sidebar .sidebar-header .logo-full-dark {
    display: none;
}
html.dark-theme .sidebar-header .logo-full-light,
html.dark-sidebar .sidebar-header .logo-full-light {
    display: block;
}
.settings-logos-divider {
    margin: 8px 0 24px;
    border-color: #e9ecef;
    opacity: 1;
}
.settings-logo-preview {
    display: block;
    max-height: 48px;
    max-width: 160px;
    object-fit: contain;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
}
html.dark-theme .settings-logos-divider {
    border-color: #3a3a3a;
}
html.dark-theme .settings-logo-preview {
    border-color: #3a3a3a;
    background: rgba(255, 255, 255, .04);
}
@media screen and (min-width: 1025px) {
    .sidebar-header.has-full-logo .logo-icon-2 {
        display: none;
    }

    /* Masaüstü ikon rayı — toggled (mobil overlay) ile karışmaz */
    .wrapper.sidebar-icons-only:not(.sidebar-hovered) .sidebar-header.has-full-logo .logo-icon-2,
    html.ws-sidebar-collapsed:not(.ws-sidebar-hovered) .sidebar-header.has-full-logo .logo-icon-2 {
        display: block !important;
        margin-left: 0;
        margin-right: 0;
    }
    .wrapper.sidebar-icons-only:not(.sidebar-hovered) .sidebar-header.has-full-logo .logo-full,
    html.ws-sidebar-collapsed:not(.ws-sidebar-hovered) .sidebar-header.has-full-logo .logo-full {
        display: none !important;
    }
    .wrapper.sidebar-icons-only:not(.sidebar-hovered) .sidebar-wrapper,
    html.ws-sidebar-collapsed:not(.ws-sidebar-hovered) .sidebar-wrapper {
        width: 80px !important;
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    html[dir="rtl"] .wrapper.sidebar-icons-only:not(.sidebar-hovered) .sidebar-wrapper,
    html[dir="rtl"].ws-sidebar-collapsed:not(.ws-sidebar-hovered) .sidebar-wrapper {
        left: auto !important;
        right: 0 !important;
    }
    .wrapper.sidebar-icons-only:not(.sidebar-hovered) .sidebar-header,
    html.ws-sidebar-collapsed:not(.ws-sidebar-hovered) .sidebar-header {
        width: 80px !important;
        left: 0 !important;
        right: auto !important;
        justify-content: center;
        padding: 0 8px;
    }
    html[dir="rtl"] .wrapper.sidebar-icons-only:not(.sidebar-hovered) .sidebar-header,
    html[dir="rtl"].ws-sidebar-collapsed:not(.ws-sidebar-hovered) .sidebar-header {
        left: auto !important;
        right: 0 !important;
    }
    .wrapper.sidebar-icons-only:not(.sidebar-hovered) .sidebar-header .toggle-btn,
    html.ws-sidebar-collapsed:not(.ws-sidebar-hovered) .sidebar-header .toggle-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
    }
    /* İçerik her zaman 80px rayına göre dursun; hover menüyü üzerine açar */
    .wrapper.sidebar-icons-only .top-header,
    html.ws-sidebar-collapsed .top-header {
        left: 80px !important;
    }
    html[dir="rtl"] .wrapper.sidebar-icons-only .top-header,
    html[dir="rtl"].ws-sidebar-collapsed .top-header {
        left: auto !important;
        right: 80px !important;
    }
    .wrapper.sidebar-icons-only .page-content-wrapper,
    .wrapper.sidebar-icons-only .footer,
    html.ws-sidebar-collapsed .page-content-wrapper,
    html.ws-sidebar-collapsed .footer {
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
    html[dir="rtl"] .wrapper.sidebar-icons-only .page-content-wrapper,
    html[dir="rtl"] .wrapper.sidebar-icons-only .footer,
    html[dir="rtl"].ws-sidebar-collapsed .page-content-wrapper,
    html[dir="rtl"].ws-sidebar-collapsed .footer {
        margin-left: 0 !important;
        margin-right: 80px !important;
    }
    .wrapper.sidebar-icons-only.sidebar-hovered .sidebar-wrapper,
    html.ws-sidebar-collapsed.ws-sidebar-hovered .sidebar-wrapper {
        z-index: 20;
        box-shadow: 0 0 24px rgba(0, 0, 0, .18);
    }
    .wrapper.sidebar-icons-only:not(.sidebar-hovered) .sidebar-wrapper .metismenu > li > a,
    html.ws-sidebar-collapsed:not(.ws-sidebar-hovered) .sidebar-wrapper .metismenu > li > a {
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .wrapper.sidebar-icons-only:not(.sidebar-hovered) .sidebar-wrapper .metismenu .menu-title,
    .wrapper.sidebar-icons-only:not(.sidebar-hovered) .sidebar-wrapper .metismenu > li > ul,
    .wrapper.sidebar-icons-only:not(.sidebar-hovered) .sidebar-wrapper .metismenu li.menu-label,
    .wrapper.sidebar-icons-only:not(.sidebar-hovered) .sidebar-wrapper .metismenu .has-arrow:after,
    .wrapper.sidebar-icons-only:not(.sidebar-hovered) .sidebar-wrapper .menu-label-toggle-btn,
    html.ws-sidebar-collapsed:not(.ws-sidebar-hovered) .sidebar-wrapper .metismenu .menu-title,
    html.ws-sidebar-collapsed:not(.ws-sidebar-hovered) .sidebar-wrapper .metismenu > li > ul,
    html.ws-sidebar-collapsed:not(.ws-sidebar-hovered) .sidebar-wrapper .metismenu li.menu-label,
    html.ws-sidebar-collapsed:not(.ws-sidebar-hovered) .sidebar-wrapper .metismenu .has-arrow:after,
    html.ws-sidebar-collapsed:not(.ws-sidebar-hovered) .sidebar-wrapper .menu-label-toggle-btn {
        display: none !important;
    }
    .wrapper.sidebar-icons-only:not(.sidebar-hovered) .sidebar-wrapper .metismenu .parent-icon,
    html.ws-sidebar-collapsed:not(.ws-sidebar-hovered) .sidebar-wrapper .metismenu .parent-icon {
        margin: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Hover ile geçici genişlet (içerik kaymaz) */
    .wrapper.sidebar-icons-only.sidebar-hovered .sidebar-wrapper,
    html.ws-sidebar-collapsed.ws-sidebar-hovered .sidebar-wrapper {
        width: 320px !important;
    }
    .wrapper.sidebar-icons-only.sidebar-hovered .sidebar-header,
    html.ws-sidebar-collapsed.ws-sidebar-hovered .sidebar-header {
        width: 320px !important;
        justify-content: flex-start;
        padding: 0 0 0 15px;
    }
}
.sidebar-wrapper,
.sidebar-header {
    width: 320px;
}
html:not([dir="rtl"]) .top-header {
    left: 320px;
}
html:not([dir="rtl"]) .page-content-wrapper,
html:not([dir="rtl"]) .footer {
    margin-left: 320px;
}
html[dir="rtl"] .top-header {
    right: 320px;
}
html[dir="rtl"] .page-content-wrapper,
html[dir="rtl"] .footer {
    margin-right: 320px;
}
@media screen and (max-width: 1024px) {
    html:not([dir="rtl"]) .sidebar-wrapper {
        width: 250px !important;
        left: -250px;
    }
    html[dir="rtl"] .sidebar-wrapper {
        width: 250px !important;
        right: -250px;
    }
    html:not([dir="rtl"]) .wrapper.toggled .sidebar-wrapper {
        left: 0;
    }
    html[dir="rtl"] .wrapper.toggled .sidebar-wrapper {
        right: 0;
    }
    html:not([dir="rtl"]) .page-content-wrapper,
    html:not([dir="rtl"]) .footer,
    html[dir="rtl"] .page-content-wrapper,
    html[dir="rtl"] .footer,
    html:not([dir="rtl"]) .wrapper.toggled .page-content-wrapper,
    html:not([dir="rtl"]) .wrapper.toggled .footer,
    html[dir="rtl"] .wrapper.toggled .page-content-wrapper,
    html[dir="rtl"] .wrapper.toggled .footer {
        margin-left: 0;
        margin-right: 0;
    }
    html:not([dir="rtl"]) .top-header,
    html[dir="rtl"] .top-header {
        left: 0;
        right: 0;
    }
}
.sidebar-wrapper .sidebar-inner {
    position: absolute;
    inset: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.sidebar-wrapper .metismenu {
    padding-bottom: 1.5rem;
}
.sidebar-wrapper .metismenu ul {
    display: none;
}
.sidebar-wrapper .metismenu li.mm-active > ul,
.sidebar-wrapper .metismenu ul.mm-show,
.sidebar-wrapper .metismenu ul.mm-collapsing {
    display: block;
}
.sidebar-wrapper .metismenu:not(.mm-animate) .mm-collapsing {
    transition: none;
}
.sidebar-wrapper .metismenu:not(.mm-animate) .has-arrow:after {
    transition: none;
}
.sidebar-wrapper .metismenu > li[data-fold-item] {
    min-height: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transition:
        max-height 0.34s cubic-bezier(.4, 0, .2, 1),
        opacity 0.22s ease,
        transform 0.28s cubic-bezier(.4, 0, .2, 1),
        visibility 0.34s;
}
.sidebar-wrapper .metismenu.is-people-open > li[data-fold-item="people"],
.sidebar-wrapper .metismenu.is-reports-open > li[data-fold-item="reports"],
.sidebar-wrapper .metismenu.is-settings-open > li[data-fold-item="settings"] {
    max-height: 4.75rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}
.sidebar-wrapper .metismenu.is-people-open > li[data-fold-item="people"].mm-active,
.sidebar-wrapper .metismenu.is-settings-open > li[data-fold-item="settings"].mm-active {
    max-height: 22rem;
}
.sidebar-wrapper .menu-label-toggle {
    list-style: none;
}
.sidebar-wrapper .menu-label-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-align: inherit;
    cursor: pointer;
    line-height: inherit;
}
.sidebar-wrapper .menu-label-toggle-btn [data-fold-icon] {
    flex-shrink: 0;
    font-size: 15px;
    line-height: 1;
    opacity: .8;
    transition: transform 0.28s cubic-bezier(.4, 0, .2, 1), opacity 0.2s ease;
}
.sidebar-wrapper .menu-label-toggle-btn:hover [data-fold-icon] {
    opacity: 1;
}
.sidebar-wrapper .menu-label-toggle.is-open [data-fold-icon] {
    transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
    .sidebar-wrapper .metismenu > li[data-fold-item],
    .sidebar-wrapper .menu-label-toggle-btn [data-fold-icon] {
        transition: none;
        transform: none;
    }
}
.table.bordered-table {
    margin-bottom: 0;
}
.btn-outline-primary-600 {
    color: #0d6efd;
    border: 1px solid #0d6efd;
    background: transparent;
}
.btn-outline-primary-600:hover {
    color: #fff;
    background: #0d6efd;
}
.btn-outline-danger-600,
.border.border-danger-600 {
    color: #dc3545;
    border-color: #dc3545 !important;
    background: transparent;
}
.btn-outline-danger-600:hover,
.bg-hover-danger-200:hover {
    color: #fff;
    background: #dc3545;
}
.btn-outline-success-600 {
    color: #198754;
    border: 1px solid #198754;
    background: transparent;
}
.btn-outline-success-600:hover {
    color: #fff;
    background: #198754;
}
.btn-outline-neutral-500 {
    color: #6c757d;
    border: 1px solid #ced4da;
    background: transparent;
}
.btn-outline-neutral-500:hover {
    color: #fff;
    background: #6c757d;
}
.dropdown-user-profile form {
    margin: 0;
}
.dropdown-user-profile .dropdown-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
}
.top-header {
    overflow: visible;
    z-index: 1050;
}
.top-header .navbar,
.top-header .right-topbar,
.top-header .navbar-nav {
    overflow: visible;
}
.top-header .dropdown-menu {
    z-index: 1050 !important;
}
.top-header .ws-workspace-name {
    font-size: 16px;
    font-weight: 400;
    font-family: inherit;
    vertical-align: middle;
}
.top-header .ws-quick-add {
    position: relative;
}
/*
 * Masaüstü: işletme adı ile aynı tipografi.
 * inline-flex kullanma — .top-header line-height:70px ile ikon+metin hizasını bozuyor.
 */
.top-header .right-topbar .navbar-nav .ws-quick-add > .ws-quick-add__toggle {
    font-family: inherit;
    font-weight: 400;
    font-size: 16px;
    line-height: 70px;
    white-space: nowrap;
}
.top-header .right-topbar .navbar-nav .ws-quick-add .ws-quick-add__text,
.top-header .right-topbar .navbar-nav .ws-quick-add .ws-quick-add__plus {
    display: inline;
    font: inherit;
    font-weight: inherit;
    line-height: inherit;
    vertical-align: middle;
}
@media (max-width: 767.98px) {
    .top-header .right-topbar .navbar-nav .ws-quick-add .ws-quick-add__text {
        display: none;
    }
    .top-header .right-topbar .navbar-nav .ws-quick-add > .ws-quick-add__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        font-weight: 700;
        line-height: 70px;
    }
    .top-header .right-topbar .navbar-nav .ws-quick-add .ws-quick-add__plus {
        font-size: 28px;
        font-weight: 700;
        line-height: 1;
    }
}
.top-header .ws-quick-add__menu {
    display: none;
    margin-top: 0;
    min-width: 10.5rem;
    padding-top: .35rem;
}
.top-header .ws-quick-add:hover > .ws-quick-add__menu,
.top-header .ws-quick-add:focus-within > .ws-quick-add__menu {
    display: block;
}
.top-header .ws-quick-add__menu .dropdown-item {
    font-weight: 500;
}
html.dark-theme .top-header .ws-quick-add__toggle {
    color: #e6eaee;
}
.top-header .search-bar {
    position: relative;
    padding-inline-start: 1.25rem;
    padding-inline-end: 1.5rem;
    min-width: 0;
}
.ws-header-search-results {
    position: absolute;
    top: calc(100% + .35rem);
    inset-inline-start: 1.25rem;
    inset-inline-end: 1.5rem;
    z-index: 1080;
    max-height: min(70vh, 22rem);
    overflow-y: auto;
    border-radius: .5rem;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
    padding: .4rem 0;
}
html.dark-theme .ws-header-search-results {
    background: #212529;
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
}
.ws-header-search-item {
    display: block;
    padding: .65rem 1.25rem;
    text-decoration: none;
    color: inherit;
}
.ws-header-search-path.breadcrumb {
    margin: 0;
    padding: 0;
}
.ws-header-search-item:hover,
.ws-header-search-item.is-active {
    background: rgba(13, 110, 253, .08);
}
html.dark-theme .ws-header-search-item:hover,
html.dark-theme .ws-header-search-item.is-active {
    background: rgba(255, 255, 255, .06);
}
.ws-header-search-path {
    flex-wrap: wrap;
    row-gap: .15rem;
    background: transparent;
    font-size: 14px;
}
.ws-header-search-path .breadcrumb-item {
    color: #8b949e;
}
.ws-header-search-path .ws-header-search-path-link {
    color: #0d6efd;
}
.ws-header-search-path .breadcrumb-item.active {
    color: #212529;
    font-weight: 500;
}
html.dark-theme .ws-header-search-path .breadcrumb-item {
    color: #9aa4af;
}
html.dark-theme .ws-header-search-path .ws-header-search-path-link {
    color: #6ea8fe;
}
html.dark-theme .ws-header-search-path .breadcrumb-item.active {
    color: #e6eaee;
}
.ws-header-search-path .breadcrumb-item + .breadcrumb-item::before {
    font-family: LineIcons, sans-serif;
    content: "\ea5c";
    color: #6c757d;
}
.ws-header-search-empty {
    padding: .7rem 1.25rem;
    color: #8b949e;
    font-size: 14px;
}
.top-header .btn-switcher {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: inherit;
    padding: 0 1.4rem;
}
.top-header .btn-switcher:hover,
.top-header .btn-switcher:focus {
    background: transparent;
    color: inherit;
}
@media (prefers-reduced-motion: no-preference) {
    .top-header .btn-switcher:hover .bx-cog,
    .top-header .btn-switcher:focus-visible .bx-cog {
        animation: spin 1.2s linear infinite;
    }
    .top-header .navbar-nav .nav-link:hover .bx-comment-detail,
    .top-header .navbar-nav .nav-link:focus-visible .bx-comment-detail {
        animation: burst 0.8s ease;
    }
    .top-header .navbar-nav .nav-link:hover .bx-bell,
    .top-header .navbar-nav .nav-link:focus-visible .bx-bell {
        animation: tada 1s ease;
    }
}
#themeCustomizer {
    z-index: 1065;
}
#themeCustomizer .theme-accent-swatches {
    display: flex;
    align-items: center;
    gap: .65rem;
}
#themeCustomizer .theme-accent-swatch {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 0;
    padding: 0;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}
#themeCustomizer .theme-accent-swatch:focus-visible {
    outline: 2px solid var(--ws-accent, #673ab7);
    outline-offset: 2px;
}
#themeCustomizer .theme-accent-swatch.is-selected {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ws-accent, #673ab7);
}
html.dark-theme #themeCustomizer .theme-accent-swatch.is-selected {
    box-shadow: 0 0 0 2px #2b2b2b, 0 0 0 4px var(--ws-accent, #673ab7);
}
#themeCustomizer .theme-locale-toggle {
    text-align: start;
}
#themeCustomizer .theme-locale-toggle .flag-icon,
#themeCustomizer .theme-locale-dropdown .dropdown-item .flag-icon {
    flex: 0 0 auto;
}
#themeCustomizer .theme-locale-dropdown .dropdown-menu {
    position: static;
    transform: none !important;
    margin-top: .35rem;
    max-height: 16.5rem;
    overflow-y: auto;
}
.offcanvas-backdrop {
    z-index: 1060;
}
.section-authentication-login .logo-login {
    max-height: 48px;
    width: auto;
}

html.dark-theme {
    color-scheme: dark;
}
html.dark-theme .text-secondary-light {
    color: #9aa4ad;
}
html.dark-theme .text-primary-light,
html.dark-theme .card-header,
html.dark-theme .card-header h6,
html.dark-theme .card-body h6,
html.dark-theme .form-label,
html.dark-theme .form-control-plaintext {
    color: #e6eaee;
}
html.dark-theme .bg-base {
    background-color: transparent;
}
html.dark-theme .bg-neutral-50 {
    background-color: #16191c;
    color: #c0c8d1;
}
html.dark-theme .bg-success-focus {
    background-color: rgba(25, 135, 84, .22);
}
html.dark-theme .form-control,
html.dark-theme .form-select,
html.dark-theme .form-control:disabled,
html.dark-theme .form-select:disabled {
    color: #c0c8d1;
    background-color: #16191c;
    border: 1px solid rgb(255 255 255 / 28%);
}
html.dark-theme .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c0c8d1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}
html.dark-theme .form-control:focus,
html.dark-theme .form-select:focus {
    color: #e6eaee;
    background-color: #16191c;
    border-color: #6ea8fe;
    box-shadow: 0 0 0 .25rem rgb(110 168 254 / 25%);
}
html.dark-theme .form-select option {
    background-color: #1a1e21;
    color: #c0c8d1;
}
html.dark-theme ::placeholder,
html.dark-theme input::placeholder,
html.dark-theme textarea::placeholder,
html.dark-theme .form-control::placeholder,
html.dark-theme .form-select::placeholder {
    color: #9aa4ad !important;
    opacity: 1 !important;
}
html.dark-theme ::-moz-placeholder,
html.dark-theme input::-moz-placeholder {
    color: #9aa4ad !important;
    opacity: 1 !important;
}
html.dark-theme .alert-success {
    color: #75b798;
    background-color: #051b11;
    border-color: #0f5132;
}
html.dark-theme .alert-danger {
    color: #ea868f;
    background-color: #2c0b0e;
    border-color: #842029;
}
html.dark-theme .alert-warning {
    color: #ffda6a;
    background-color: #332701;
    border-color: #664d03;
}
html.dark-theme .btn-outline-primary-600 {
    color: #6ea8fe;
    border-color: #6ea8fe;
    background-color: transparent;
}
html.dark-theme .btn-outline-primary-600:hover {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}
html.dark-theme .btn-outline-danger-600,
html.dark-theme .border.border-danger-600 {
    color: #ea868f;
    border-color: #ea868f !important;
    background-color: transparent;
}
html.dark-theme .btn-outline-success-600 {
    color: #75b798;
    border-color: #75b798;
    background-color: transparent;
}
html.dark-theme .btn-outline-neutral-500 {
    color: #adb5bd;
    border-color: rgb(255 255 255 / 28%);
    background-color: transparent;
}
html.dark-theme .page-breadcrumb .breadcrumb-title,
html.dark-theme .breadcrumb-item,
html.dark-theme .breadcrumb-item.active {
    color: #c0c8d1;
}
.page-breadcrumb .breadcrumb {
    flex-wrap: wrap;
    row-gap: .25rem;
}
.page-breadcrumb-trail {
    min-width: 0;
}
.page-heading-actions {
    margin-inline-start: auto;
}
.page-heading-actions .ws-daterange {
    width: auto;
}
.page-heading-actions .ws-daterange-trigger {
    width: auto;
}
html.dark-theme .offcanvas {
    background-color: #1a1e21;
    color: #ccced1;
}
html.dark-theme .offcanvas .offcanvas-title,
html.dark-theme .offcanvas h6,
html.dark-theme .form-check-label {
    color: #e6eaee;
}
html.dark-theme .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
html.dark-theme .page-link {
    background-color: #1a1e21;
    border-color: rgb(255 255 255 / 15%);
    color: #c0c8d1;
}
html.dark-theme .page-item.disabled .page-link {
    background-color: #1a1e21;
    border-color: rgb(255 255 255 / 15%);
    color: #6c757d;
}
html.dark-theme .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}
html.dark-theme .text-muted {
    color: #9aa4ad !important;
}
html.dark-theme .user-profile-page .table th,
html.dark-theme .user-profile-page .table td {
    color: #c0c8d1;
}
html.dark-theme .user-profile-page .nav-pills .nav-link:not(.active) {
    color: #c0c8d1;
}
html.dark-theme .border-end {
    border-color: rgb(255 255 255 / 14%) !important;
}

.expense-categories-layout {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.expense-category-sidebar {
    width: 320px;
    flex: 0 0 320px;
    min-width: 0;
}
.expense-category-form {
    flex: 1 1 auto;
    min-width: 0;
}
@media (max-width: 991.98px) {
    .expense-categories-layout {
        flex-direction: column;
    }
    .expense-category-sidebar {
        width: 100%;
        flex-basis: auto;
    }
}
.expense-tree .nested-sortable {
    list-style: none;
    margin: 0;
    padding-inline-start: 1.15rem;
    min-height: 0;
    padding-bottom: .15rem;
}
.expense-tree > .nested-sortable {
    padding-inline-start: 0;
}
.expense-tree .tree-item + .tree-item {
    margin-top: .15rem;
}
.expense-tree .tree-row {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem .35rem;
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid #e4e4e4;
    border-radius: 0;
    background: transparent;
}
.expense-tree .tree-row.is-active {
    background: #f4f7fb;
}
.expense-tree .tree-handle,
.expense-tree .tree-delete-btn {
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1;
    color: #8a8a8a;
}
.expense-tree .tree-handle {
    cursor: grab;
    font-size: 1.15rem;
}
.expense-tree .tree-icon {
    color: #8a8a8a;
    font-size: 1.05rem;
}
.expense-tree .tree-name {
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.expense-tree .tree-count {
    color: #6c757d;
}
.expense-tree .tree-delete-btn {
    color: #dc3545;
}
.expense-tree .tree-ghost {
    opacity: .45;
}
html.dark-theme .expense-tree .tree-row {
    background: transparent;
    border-bottom-color: rgb(255 255 255 / 14%);
}
html.dark-theme .expense-tree .tree-row.is-active {
    background: rgb(255 255 255 / 6%);
}

.accounts-toolbar-btn,
.accounts-action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.accounts-action-btn {
    width: 32px;
    height: 32px;
}
.accounts-toolbar-excel-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}
.accounts-search {
    position: relative;
    min-width: 220px;
    flex: 1 1 220px;
    max-width: 360px;
}
.accounts-search-btn {
    position: absolute;
    top: 50%;
    inset-inline-start: .35rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8a8a8a;
    padding: .15rem;
    line-height: 1;
    z-index: 1;
}
.accounts-search .form-control {
    padding-inline-start: 2.1rem;
}
.accounts-status-filter {
    width: auto;
    min-width: 110px;
}
.accounts-status-filter[name="payment_option_id"] {
    min-width: 150px;
}
.accounts-status-filter[name="due"] {
    min-width: 170px;
}
.accounts-status-filter[name="sort"] {
    min-width: 170px;
}
.ws-multi-filter > [data-bs-toggle="dropdown"] {
    display: flex;
    align-items: center;
    min-width: 160px;
    max-width: 240px;
}
.ws-multi-filter-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ws-multi-filter-menu {
    min-width: 240px;
    max-height: 280px;
    overflow-y: auto;
}
.ws-multi-filter-menu .dropdown-item {
    cursor: pointer;
    padding-inline-start: calc(0.75rem + (var(--ws-depth, 0) * 1.15rem));
}
.accounts-per-page {
    width: 72px;
}
.accounts-list-card .ws-daterange-trigger {
    min-width: 210px;
}
.accounts-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #8a8a8a;
    font-size: 1.2rem;
}
.accounts-form-preview-wrap {
    position: relative;
    display: inline-block;
    max-width: 120px;
}
.accounts-form-preview {
    display: block;
    max-height: 72px;
    max-width: 120px;
    object-fit: contain;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
}
html.dark-theme .accounts-form-preview {
    border-color: #3a3a3a;
    background: rgba(255, 255, 255, .04);
}
.accounts-form-preview-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.accounts-form-preview-remove:hover,
.accounts-form-preview-remove:focus-visible {
    background: #bb2d3b;
    color: #fff;
}
.accounts-image-current.is-removed {
    display: none;
}
.profile-avatar-wrap .profile-avatar-remove {
    top: 4px;
    right: 4px;
    z-index: 2;
}
.cashbook-history-item {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    line-height: 1.6;
}
.cashbook-history-item:last-child {
    border-bottom: 0;
}
html.dark-theme .cashbook-history-item {
    border-bottom-color: #3a3a3a;
}
.accounts-table thead th {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}
.accounts-table tbody td {
    vertical-align: middle;
}
.ws-due-overdue {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #dc3545;
    font-weight: 700;
    cursor: default;
    white-space: nowrap;
}
.ws-due-overdue-mark {
    font-weight: 700;
    line-height: 1;
}
.ws-due-overdue[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    z-index: 20;
    padding: 3px 7px;
    border-radius: 4px;
    background: #2b2f32;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
    pointer-events: none;
}
html.dark-theme .ws-due-overdue {
    color: #ff6b7a;
}
html.dark-theme .ws-due-overdue[data-tip]:hover::after {
    background: #111417;
}
@media print {
    .sidebar-wrapper,
    .sidebar-header,
    .top-header,
    .footer,
    .page-breadcrumb,
    .overlay,
    .back-to-top,
    .accounts-list-card .btn,
    .accounts-search,
    .accounts-status-filter,
    .ws-multi-filter,
    .accounts-per-page,
    .switcher-body,
    .btn-switcher {
        display: none !important;
    }
    .page-wrapper,
    .wrapper.layout-horizontal .page-wrapper,
    .wrapper.layout-horizontal.toggled .page-wrapper,
    .page-content-wrapper,
    .footer {
        margin: 0 !important;
        padding: 0 !important;
    }
    .page-content {
        padding: 0 !important;
    }
}

.ws-daterange {
    position: relative;
    z-index: 30;
}
.ws-daterange-trigger {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: .45rem .9rem;
    font-size: 14px;
    color: inherit;
    white-space: nowrap;
}
.ws-daterange-trigger:hover {
    border-color: #0d6efd;
}
.ws-daterange-panel {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .14);
    min-width: 720px;
    overflow: hidden;
}
.ws-daterange-body {
    display: flex;
}
.ws-daterange-presets {
    width: 180px;
    flex-shrink: 0;
    border-inline-end: 1px solid #eee;
    padding: .4rem 0;
}
.ws-daterange-preset {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    border: 0;
    background: transparent;
    padding: .42rem 1rem;
    text-align: start;
    font-size: 14px;
    color: inherit;
}
.ws-daterange-preset:hover {
    background: #f8f9fa;
}
.ws-daterange-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}
.ws-daterange-preset.is-active .ws-daterange-radio {
    border-color: #0d6efd;
}
.ws-daterange-preset.is-active .ws-daterange-radio::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: #0d6efd;
}
.ws-daterange-calendars {
    display: flex;
    align-items: flex-start;
    gap: .35rem;
    padding: 1rem 1.1rem 1rem .5rem;
    flex: 1;
}
.ws-daterange-nav {
    border: 0;
    background: transparent;
    width: 32px;
    height: 32px;
    margin-top: 2px;
    font-size: 1.4rem;
    color: #495057;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ws-daterange-month {
    flex: 1;
    min-width: 220px;
}
.ws-daterange-month-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: .75rem;
}
.ws-daterange-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.ws-daterange-dow {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    padding: .2rem 0 .45rem;
}
.ws-daterange-day {
    border: 0;
    background: transparent;
    height: 36px;
    padding: 0;
    position: relative;
    color: inherit;
}
.ws-daterange-day span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 13px;
}
.ws-daterange-day.in-range {
    background: #d1e7ff;
}
.ws-daterange-day.is-start {
    background: #d1e7ff;
    border-start-start-radius: 18px;
    border-end-start-radius: 18px;
}
.ws-daterange-day.is-end {
    background: #d1e7ff;
    border-start-end-radius: 18px;
    border-end-end-radius: 18px;
}
.ws-daterange-day.is-start.is-end {
    background: transparent;
    border-radius: 18px;
}
.ws-daterange-day.is-start span,
.ws-daterange-day.is-end span {
    background: #0d6efd;
    color: #fff;
}
.ws-daterange-day.is-outside {
    color: #adb5bd;
}
.ws-daterange-day.is-today span {
    box-shadow: inset 0 0 0 1px #0d6efd;
}
.ws-daterange-day.is-today.is-start span,
.ws-daterange-day.is-today.is-end span {
    box-shadow: none;
}
.ws-daterange-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1.25rem;
    border-top: 1px solid #eee;
}
.ws-daterange-summary {
    font-size: 14px;
}
.ws-daterange-tz {
    font-size: 12px;
    color: #6c757d;
    margin-top: .15rem;
}
.ws-daterange-actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}
html.dark-theme .ws-daterange-trigger,
html.dark-theme .ws-daterange-panel {
    background: #1f1f1f;
    border-color: #3a3a3a;
    color: #e9ecef;
}
html.dark-theme .ws-daterange-preset:hover {
    background: #2a2a2a;
}
html.dark-theme .ws-daterange-presets,
html.dark-theme .ws-daterange-footer {
    border-color: #3a3a3a;
}
html.dark-theme .ws-daterange-day.in-range,
html.dark-theme .ws-daterange-day.is-start,
html.dark-theme .ws-daterange-day.is-end {
    background: rgba(13, 110, 253, .28);
}
html.dark-theme .ws-daterange-tz,
html.dark-theme .ws-daterange-dow,
html.dark-theme .ws-daterange-day.is-outside {
    color: #9aa0a6;
}
@media (max-width: 768px) {
    .ws-daterange {
        width: 100%;
    }
    .ws-daterange-trigger {
        width: 100%;
        justify-content: space-between;
    }
    .ws-daterange-panel {
        min-width: 0;
        width: min(720px, calc(100vw - 1.5rem));
        inset-inline-end: 0;
    }
    .ws-daterange-body {
        flex-direction: column;
    }
    .ws-daterange-presets {
        width: 100%;
        border-inline-end: 0;
        border-bottom: 1px solid #eee;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .ws-daterange-calendars {
        flex-wrap: wrap;
        justify-content: center;
    }
    .ws-daterange-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .page-heading-actions .ws-daterange,
    .page-heading-actions .ws-daterange-trigger {
        width: auto;
    }
}

.settings-inner-card {
    box-shadow: 0 0 1px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .12);
    border: 1px solid #e9ecef;
}
.settings-inner-card .card-header {
    background-color: rgba(0, 0, 0, .03);
    font-weight: 600;
    border-bottom: 1px solid #eee;
}
.nav.flex-column.nav-pills .nav-link {
    text-align: start;
    margin-bottom: .35rem;
}
html.dark-theme .settings-inner-card {
    border-color: #3a3a3a;
}
html.dark-theme .settings-inner-card .card-header {
    background-color: rgba(255, 255, 255, .04);
    border-bottom-color: #3a3a3a;
}
@media (min-width: 1200px) {
    .cms-hero-aside {
        position: sticky;
        top: 140px;
    }
}
.role-permission-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.role-permission-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.role-permission-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.role-permission-list li:first-child {
    padding-top: 0;
}
html.dark-theme .role-permission-list li {
    border-bottom-color: #3a3a3a;
}

.lobibox-notify .lobibox-notify-icon > div > img {
    border-radius: 50%;
    object-fit: cover;
}

.account-statement-masthead {
    color: #212529;
}
.account-statement-logo {
    display: block;
    max-height: 48px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    margin-bottom: .75rem;
}
.account-statement-logo-light {
    display: none;
}
html.dark-theme .account-statement-logo-dark {
    display: none;
}
html.dark-theme .account-statement-logo-light {
    display: block;
}
.account-statement-line {
    margin-bottom: .2rem;
}
.payroll-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 1.25rem;
}
.payroll-stat-card {
    background: #f8f9fb;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.payroll-stat-label {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.2;
}
.payroll-stat-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}
.payroll-stat-hint {
    font-size: 12px;
    color: #8a8a8a;
    line-height: 1.3;
}
html.dark-theme .payroll-stat-card {
    background: #1a1e21;
    border-color: rgb(255 255 255 / 12%);
}
html.dark-theme .payroll-stat-label,
html.dark-theme .payroll-stat-hint {
    color: #9aa4ad;
}
html.dark-theme .payroll-stat-value {
    color: #e6eaee;
}
.payroll-slip-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 2.5rem;
    row-gap: 1.25rem;
    align-items: start;
}
.payroll-slip-employee {
    padding-inline-start: 1.5rem;
    border-inline-start: 1px solid #e9ecef;
}
html.dark-theme .payroll-slip-employee {
    border-inline-start-color: rgba(255, 255, 255, .12);
}
@media (max-width: 575.98px) {
    .payroll-slip-header {
        grid-template-columns: 1fr;
    }
    .payroll-slip-employee {
        padding-inline-start: 0;
        border-inline-start: 0;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }
}
html.dark-theme .account-statement-masthead {
    color: #e9ecef;
}

.fm-menu .list-group a.active {
    background: var(--ws-accent, #673ab7);
    color: #ffffff;
}
.fm-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: .25rem;
}
html.dark-theme .fm-menu .list-group a {
    color: #cfd3d8;
}
html.dark-theme .fm-menu .list-group a:hover,
html.dark-theme .fm-menu .list-group a.active {
    background: var(--ws-accent, #673ab7);
    color: #ffffff;
}
html.dark-theme .fm-file-box {
    background: #2a2a2a;
}
.ws-media-scope .dropdown-menu {
    min-width: 100%;
}
.ws-media-scope-list {
    max-height: 240px;
    overflow-y: auto;
}
.ws-media-explorer {
    display: flex;
    align-items: stretch;
    gap: 16px;
    min-height: 420px;
}
.ws-media-explorer__main {
    flex: 1;
    min-width: 0;
}
.ws-media-explorer__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.ws-media-explorer__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.ws-media-explorer__title i {
    font-size: 1.25rem;
}
.ws-media-explorer__tools {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.ws-media-explorer__sort {
    width: auto;
    min-width: 140px;
}
.ws-media-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.ws-media-explorer__views .btn.active {
    color: #fff;
    background: var(--ws-accent, #673ab7);
    border-color: var(--ws-accent, #673ab7);
}
.ws-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 16px;
}
.ws-media-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    user-select: none;
    outline: none;
}
.ws-media-tile__preview {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ws-media-tile__preview img,
.ws-media-tile__preview .fm-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.ws-media-tile__preview.is-icon i {
    font-size: 42px;
    color: #94a3b8;
}
.ws-media-tile.is-folder .ws-media-tile__preview.is-icon i {
    color: #64748b;
}
.ws-media-tile__name {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 3px 6px;
    font-size: 13px;
    line-height: 1.3;
    word-break: break-word;
    color: #475569;
    border-radius: 4px;
}
.ws-media-tile__check {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.ws-media-tile.is-selected .ws-media-tile__preview {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
}
.ws-media-tile.is-selected .ws-media-tile__check {
    display: inline-flex;
}
.ws-media-tile.is-selected .ws-media-tile__name {
    background: #2563eb;
    color: #fff;
}
.ws-media-list-row {
    cursor: pointer;
}
.ws-media-list-row.is-selected {
    background: rgba(37, 99, 235, .12);
}
.ws-media-details {
    width: 280px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.ws-media-explorer.is-sidebar-hidden .ws-media-details {
    display: none;
}
.ws-media-details__preview {
    height: 180px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ws-media-details__preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.ws-media-details__preview i {
    font-size: 56px;
    color: #94a3b8;
}
.ws-media-details__body {
    padding: 16px;
}
.ws-media-details__empty {
    margin: 0;
    color: #64748b;
}
.ws-media-details__count {
    margin: 0 0 12px;
    font-weight: 600;
}
.ws-media-preview-dialog {
    max-width: min(96vw, 1100px);
}
.ws-media-preview-image {
    display: block;
    width: 100%;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 8px;
    background: #111;
}
.ws-media-details__meta {
    margin: 0;
}
.ws-media-details__meta dt {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}
.ws-media-details__meta dt:first-child {
    margin-top: 0;
}
.ws-media-details__meta dd {
    margin: 2px 0 0;
    word-break: break-all;
    color: #64748b;
}
.ws-media-details__url {
    display: flex;
    gap: 6px;
    align-items: center;
}
.ws-media-details__url .form-control {
    min-width: 0;
}
@media (max-width: 991px) {
    .ws-media-explorer {
        flex-direction: column;
    }
    .ws-media-details {
        width: 100%;
    }
}
html.dark-theme .ws-media-tile__preview {
    background: #2a2a2a;
    border-color: #3a3a3a;
}
html.dark-theme .ws-media-tile__name {
    color: #cfd3d8;
}
html.dark-theme .ws-media-details {
    background: #2a2a2a;
    border-color: #3a3a3a;
}
html.dark-theme .ws-media-details__preview {
    background: #222;
}
html.dark-theme .ws-media-details__meta dt {
    color: #e9ecef;
}
html.dark-theme .ws-media-details__meta dd,
html.dark-theme .ws-media-details__empty {
    color: #cfd3d8;
}

.phone-dial-group .phone-dial-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-width: 3.25rem;
    background: #fff;
}
.phone-dial-group .phone-dial-btn .flag-icon,
.phone-dial-menu .flag-icon {
    width: 1.35em;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 8%);
}
.phone-dial-group .phone-dial-prefix {
    min-width: 3.4rem;
    justify-content: center;
    background: #fff;
    font-variant-numeric: tabular-nums;
}
.phone-dial-menu {
    max-height: 240px;
    overflow-y: auto;
    min-width: 8.5rem;
}
html.dark-theme .phone-dial-group .phone-dial-btn,
html.dark-theme .phone-dial-group .phone-dial-prefix {
    background-color: #16191c;
    color: #c0c8d1;
    border-color: rgb(255 255 255 / 28%);
}

.supplier-profile-avatar {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #8a8a8a;
    font-size: 2.4rem;
}
.supplier-profile-list .list-group-item {
    background: transparent;
    border-color: #e9ecef;
    font-size: .9rem;
}
.supplier-profile-list .list-group-item span {
    text-align: end;
    word-break: break-word;
}
.supplier-summary-rule {
    border-color: rgb(255 255 255 / 35%);
    opacity: 1;
}
.supplier-show-pills .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
html.dark-theme .supplier-profile-avatar {
    background: rgba(255, 255, 255, .06);
    color: #9aa4ad;
}
html.dark-theme .supplier-profile-list .list-group-item {
    border-color: rgb(255 255 255 / 14%);
}

.ec-attr-set-form .form-control-color {
    min-height: 38px;
    padding: 4px;
}
.ec-attr-set-form .ec-attr-col-num {
    width: 48px;
}
.ec-attr-set-form .ec-attr-col-default {
    width: 110px;
}
.ec-attr-set-form .ec-attr-col-color {
    width: 120px;
}
.ec-attr-set-form .ec-attr-col-remove {
    width: 70px;
}
.ec-attr-set-form .ec-attr-cat-tree {
    max-height: 260px;
    overflow-y: auto;
}
.ec-attr-set-form .ec-attr-cat-item--depth-1 .ec-attr-cat-check {
    padding-inline-start: 16px;
}
.ec-attr-set-form .ec-attr-cat-item--depth-2 .ec-attr-cat-check {
    padding-inline-start: 32px;
}
.ec-attr-set-form .ec-attr-cat-item--depth-3 .ec-attr-cat-check {
    padding-inline-start: 48px;
}
.ec-attr-set-form .ec-attr-cat-item--depth-4 .ec-attr-cat-check {
    padding-inline-start: 64px;
}
.ec-attr-set-form .ec-attr-cat-item--depth-5 .ec-attr-cat-check {
    padding-inline-start: 80px;
}
.ec-attr-set-form .ec-attr-cat-item--depth-6 .ec-attr-cat-check {
    padding-inline-start: 96px;
}

@media print {
    .supplier-show-pills,
    .supplier-show-toolbar,
    .payroll-show-toolbar,
    .purchase-show-toolbar {
        display: none !important;
    }
    html, body, .wrapper, .page-wrapper, .page-content-wrapper, .page-content, .card, .card-body {
        background: #fff !important;
        color: #212529 !important;
        box-shadow: none !important;
    }
    #payroll-print.card,
    #purchase-print.card {
        border: 0 !important;
    }
    .payroll-logo-screen {
        display: none !important;
    }
    .payroll-logo-print {
        display: block !important;
    }
    .account-statement-masthead {
        color: #212529 !important;
    }
    .payroll-slip-header {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        page-break-inside: avoid;
    }
    .payroll-slip-employee {
        border-inline-start-color: #dee2e6 !important;
    }
    .payroll-row-present,
    .payroll-row-total,
    .payroll-sign-minus,
    .payroll-sign-plus,
    .payroll-sign-eq {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    @page {
        size: A4;
        margin: 8mm;
    }
    #payroll-print .payroll-slip-body {
        padding: 0 !important;
    }
    #payroll-print .account-statement-logo {
        max-height: 32px;
        margin-bottom: .25rem;
    }
    #payroll-print .payroll-slip-heading {
        font-size: .95rem;
        margin-bottom: .15rem;
    }
    #payroll-print .account-statement-line {
        font-size: .72rem;
        line-height: 1.18;
    }
    #payroll-print .payroll-slip-header {
        margin-bottom: 8px;
        column-gap: 1rem;
    }
    #payroll-print .payroll-section-title {
        margin-bottom: 4px;
        font-size: .78rem;
    }
    #payroll-print .table th,
    #payroll-print .table td {
        padding: .16rem .35rem !important;
        font-size: .72rem;
    }
    #payroll-print .payroll-row-net th,
    #payroll-print .payroll-row-net td {
        font-size: .82rem;
    }
    #payroll-print .payroll-deduction-note {
        font-size: .7rem;
        margin-top: 6px;
    }
    #payroll-print .payroll-slip-signs {
        margin-top: 12px;
        justify-content: center;
    }
    #payroll-print.payroll-print-unsigned .payroll-slip-signs {
        display: none !important;
    }
    #payroll-print .payroll-slip-warning {
        padding: 6px 10px;
        font-size: .72rem;
        margin-bottom: 8px;
    }
}

.payroll-logo-print {
    display: none;
}

.purchase-show-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.purchase-show-company,
.purchase-show-supplier {
    min-width: 220px;
}
.purchase-show-due th,
.purchase-show-due td {
    background: #f8d7da;
    font-weight: 700;
}
html.dark-theme .purchase-show-due th,
html.dark-theme .purchase-show-due td {
    background: rgb(220 53 69 / 22%);
}
.purchase-show-totals th {
    width: 58%;
}
.badge {
    display: inline-block;
    padding: 1em 1em;
    font-size: .75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.3rem;
}

.modal-content.bg-warning,
html.dark-theme .modal-content.bg-warning {
    background-color: #ab2e2e !important;
    color: #e1e1e1;
}
.modal-content.bg-warning .modal-header,
.modal-content.bg-warning .modal-footer,
html.dark-theme .modal-content.bg-warning .modal-header,
html.dark-theme .modal-content.bg-warning .modal-footer {
    border-color: rgb(225 225 225 / 35%) !important;
}
.modal-content.bg-warning .modal-title,
.modal-content.bg-warning .modal-body,
.modal-content.bg-warning .modal-body p,
.modal-content.bg-warning .text-dark {
    color: #e1e1e1 !important;
}
.modal-content.bg-warning .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: .85;
}
.modal-content.bg-warning .btn-light {
    background-color: rgb(255 255 255 / 12%);
    border-color: #e1e1e1;
    color: #e1e1e1;
}
.modal-content.bg-warning .btn-light:hover,
.modal-content.bg-warning .btn-light:focus {
    background-color: rgb(225 225 225 / 18%);
    border-color: #e1e1e1;
    color: #e1e1e1;
}

.payroll-preview-sm {
    display: block;
    max-height: 48px;
    max-width: 64px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
}
.payroll-deduction-value {
    position: relative;
    display: inline-block;
}
.payroll-deduction-star {
    color: #dc3545;
    font-weight: 700;
    line-height: 1;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.payroll-totals {
    max-width: 420px;
    margin-inline-start: auto;
}
.payroll-totals-full {
    max-width: none;
    margin-inline-start: 0;
}
.payroll-section-title {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: .9rem;
}
.payroll-slip-body {
    padding: 16px;
}
.payroll-slip-heading {
    margin-bottom: .25rem;
    font-size: 1.05rem;
}
#payroll-print .account-statement-logo {
    max-height: 36px;
    margin-bottom: .35rem;
}
#payroll-print .account-statement-line {
    margin-bottom: 0;
    font-size: .82rem;
    line-height: 1.25;
}
#payroll-print .payroll-slip-header {
    margin-bottom: 10px;
    column-gap: 1.5rem;
    row-gap: .75rem;
}
#payroll-print .payroll-section-title {
    margin-bottom: 6px;
    font-size: .9rem;
}
#payroll-print .table th,
#payroll-print .table td {
    padding: .28rem .5rem;
    font-size: .82rem;
}
#payroll-print .payroll-row-net th,
#payroll-print .payroll-row-net td {
    font-size: .95rem;
}
.payroll-slip-warning {
    border: 1px solid #f5c2c7;
    background: #f8d7da;
    color: #842029;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .82rem;
    margin-bottom: 10px;
}
.payroll-deduction-note {
    font-size: .82rem;
    margin-top: 8px;
    margin-bottom: 0;
}
.payroll-slip-signs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    page-break-inside: avoid;
}
.payroll-slip-composite {
    position: relative;
    width: calc(var(--payroll-stamp-w, 40mm) * 0.5 + var(--payroll-sign-w, 45mm));
    min-height: var(--payroll-stamp-w, 40mm);
    height: auto;
}
.payroll-slip-stamp-layer,
.payroll-slip-signature-layer {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 0;
}
.payroll-slip-stamp-layer {
    inset-inline-start: 0;
    width: var(--payroll-stamp-w, 40mm);
    min-height: calc(var(--payroll-stamp-w, 40mm) * 0.75);
    z-index: 1;
}
.payroll-slip-signature-layer {
    inset-inline-start: calc(var(--payroll-stamp-w, 40mm) * 0.45);
    width: var(--payroll-sign-w, 45mm);
    z-index: 2;
}
.payroll-slip-stamp-layer.is-empty,
.payroll-slip-signature-layer.is-empty {
    border: 1px dashed #ced4da;
    border-radius: 6px;
    background: transparent;
    min-height: calc(var(--payroll-stamp-w, 40mm) * 0.75);
}
.payroll-slip-signs-help {
    margin: 8px 0 0;
    font-size: .8rem;
    text-align: center;
    color: #6c757d;
}
.payroll-slip-signs-help a {
    font-weight: 600;
}
.payroll-slip-stamp-layer img {
    width: var(--payroll-stamp-w, 40mm);
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    display: block;
}
.payroll-slip-signature-layer img {
    width: var(--payroll-sign-w, 45mm);
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    display: block;
}
html.dark-theme .payroll-slip-stamp-layer.is-empty,
html.dark-theme .payroll-slip-signature-layer.is-empty {
    border-color: rgba(255, 255, 255, .22);
}
html.dark-theme .payroll-slip-signs-help {
    color: #9aa4ad;
}
.payroll-row-net th,
.payroll-row-net td {
    font-weight: 700;
    font-size: 1.05rem;
}
.payroll-totals th {
    width: 62%;
}
.payroll-sign {
    display: inline-block;
    min-width: 1.1em;
    font-weight: 700;
}
.payroll-sign-minus {
    color: #dc3545;
}
.payroll-sign-plus {
    color: #198754;
}
.payroll-sign-eq {
    color: #0d6efd;
}
.payroll-row-present {
    background: #f4f6f9;
}
.payroll-row-total {
    background: #eef2ff;
    font-weight: 700;
}
html.dark-theme .payroll-preview-sm {
    border-color: rgb(255 255 255 / 14%);
    background: rgb(255 255 255 / 6%);
}
html.dark-theme .payroll-row-present {
    background: rgb(255 255 255 / 6%);
}
html.dark-theme .payroll-row-total {
    background: rgb(99 102 241 / 18%);
}

.product-kind-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.product-kind-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 14px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #f8f9fb;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
button.product-kind-card {
    width: 100%;
    text-align: start;
    color: inherit;
    font: inherit;
}
#payroll-print-modal .product-kind-card {
    align-items: center;
}
#payroll-print-modal .product-kind-copy {
    justify-content: center;
}
#payroll-print-modal .product-kind-title {
    margin: 0;
    line-height: 1.2;
}
.product-kind-card:hover {
    border-color: #487fff;
}
a.product-kind-card {
    text-decoration: none;
    color: inherit;
}
.product-kind-card.is-selected {
    border-color: #487fff;
    background: #f3f6ff;
    box-shadow: inset 0 0 0 1px #487fff;
}
.product-kind-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.product-kind-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    color: #487fff;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.product-kind-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.product-kind-title {
    font-weight: 600;
    line-height: 1.3;
}
.product-kind-desc {
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
}
.product-reveal {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: max-height .28s ease, opacity .22s ease, margin .22s ease;
}
.product-reveal.is-open {
    max-height: 280px;
    opacity: 1;
    margin-top: 4px;
}
.product-images-dropzone {
    width: 100%;
    min-height: 88px;
    border: 1px dashed #c5cdd8;
    border-radius: 10px;
    background: #f8f9fb;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    cursor: pointer;
}
.product-images-dropzone i {
    font-size: 1.6rem;
    color: #487fff;
}
.product-images-dropzone:hover {
    border-color: #487fff;
    background: #f3f6ff;
}
.product-images-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.product-var-images {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}
.product-var-images-body {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 16px;
}
.product-var-images-colors.d-none + .product-var-images-upload {
    grid-column: 1 / -1;
}
.product-var-images-body.is-flat {
    grid-template-columns: 1fr;
}
.product-var-images-colors {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px;
    max-height: 280px;
    overflow: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.product-var-color-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}
.product-var-color-item:hover,
.product-var-color-item.is-selected {
    border-color: #487fff;
    background: #f3f6ff;
}
.product-var-color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #d0d5dd;
    background: #e5e7eb;
    flex-shrink: 0;
}
.product-images-item {
    position: relative;
    width: 88px;
    height: 88px;
    cursor: grab;
}
.product-images-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}
.product-images-item .accounts-form-preview-remove {
    pointer-events: auto;
    cursor: pointer;
}
.product-images-item.is-dragging,
.product-images-item.is-chosen {
    opacity: 0.45;
}
.product-images-item.is-drag {
    cursor: grabbing;
}
.product-picker-folder,
.product-picker-file {
    width: 100%;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    text-align: center;
    cursor: pointer;
}
.product-picker-folder i {
    font-size: 2rem;
    color: #f6b51e;
    display: block;
    margin-bottom: 6px;
}
.product-picker-file img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 6px;
}
.product-picker-file span,
.product-picker-folder span {
    display: block;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-picker-file.is-selected {
    border-color: #487fff;
    box-shadow: inset 0 0 0 1px #487fff;
}
.product-attr-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f3f6ff;
    color: #487fff;
    font-size: 13px;
    font-weight: 500;
}
.product-attr-badge .btn-close-sm {
    width: 8px;
    height: 8px;
    padding: 0;
    opacity: .55;
}
.product-var-set-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
}
.product-var-set-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #f8f9fb;
    cursor: pointer;
}
.product-var-set-check:hover {
    border-color: #487fff;
}
.product-var-set-check:has(input:checked) {
    border-color: #487fff;
    background: #f3f6ff;
    box-shadow: inset 0 0 0 1px #487fff;
}
.product-var-set-label {
    flex: 1;
    min-width: 0;
    font-weight: 500;
}
.product-var-item-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.product-var-item-column {
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 14px 16px;
    max-height: 360px;
    overflow-y: auto;
    background: #f8f9fb;
}
.product-var-item-title {
    font-weight: 600;
    margin-bottom: 12px;
}
.product-var-item-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    cursor: pointer;
}
.product-var-item-option:last-child {
    margin-bottom: 0;
}
.product-var-item-all {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}
.product-var-bulk-row th {
    background: #f8f9fb;
    font-weight: 400;
    vertical-align: middle;
}
@media (max-width: 767.98px) {
    .product-kind-grid {
        grid-template-columns: 1fr;
    }
}
html.dark-theme .product-kind-card,
html.dark-theme .product-images-dropzone,
html.dark-theme .product-picker-file,
html.dark-theme .product-picker-folder {
    background: rgba(255, 255, 255, .03);
    border-color: #3a3a3a;
}
html.dark-theme .product-kind-card.is-selected {
    background: rgba(72, 127, 255, .12);
}
html.dark-theme .product-attr-badge {
    background: rgba(72, 127, 255, .14);
}
html.dark-theme .product-var-set-check,
html.dark-theme .product-var-item-column,
html.dark-theme .product-var-bulk-row th {
    background: rgba(255, 255, 255, .03);
    border-color: #3a3a3a;
}
html.dark-theme .product-var-set-check:has(input:checked) {
    background: rgba(72, 127, 255, .12);
}
html.dark-theme .product-var-images,
html.dark-theme .product-var-images-colors {
    background: rgba(255, 255, 255, .03);
    border-color: #3a3a3a;
}
html.dark-theme .product-var-color-item.is-selected,
html.dark-theme .product-var-color-item:hover {
    background: rgba(72, 127, 255, .12);
}
@media (max-width: 767.98px) {
    .product-var-images-body {
        grid-template-columns: 1fr;
    }
}

.appearance-layout-options {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.appearance-layout-options .form-check {
    margin: 0;
}

.wrapper.layout-horizontal .top-header {
    left: 0 !important;
    right: 0 !important;
    z-index: 1050;
}
.wrapper.layout-horizontal.toggled .top-header {
    left: 0 !important;
    right: 0 !important;
    z-index: 1050;
}
.wrapper.layout-horizontal .top-header .sidebar-header {
    position: relative;
    width: auto;
    left: auto;
    right: auto;
    top: auto;
    height: 70px;
    padding: 0;
    background: transparent;
    border-right: 0;
    border-bottom: 0;
    z-index: 1;
}
@media screen and (min-width: 1024px) {
    .wrapper.layout-horizontal .top-header .sidebar-header {
        width: 260px;
        border-right: 1px solid #e4e4e4;
        padding-right: 12px;
    }
}
.wrapper.layout-horizontal .page-wrapper {
    margin-top: 130px;
}
.wrapper.layout-horizontal .page-content-wrapper,
.wrapper.layout-horizontal .footer {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0;
}
.wrapper.layout-horizontal.toggled .page-content-wrapper,
.wrapper.layout-horizontal.toggled .footer {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.wrapper.layout-horizontal.toggled .page-wrapper {
    margin-top: 70px;
}
.wrapper.layout-horizontal .nav-container {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    z-index: 1030;
    border-bottom: 1px solid #e4e4e4;
    background: #fff;
    width: 100%;
    height: 60px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wrapper.layout-horizontal .mobile-topbar-header {
    display: none;
}
.wrapper.layout-horizontal .topbar-nav {
    background: transparent;
    width: 100%;
}
.wrapper.layout-horizontal .topbar-nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    background: transparent;
}
.wrapper.layout-horizontal .topbar-nav .metismenu {
    display: flex;
    flex-direction: column;
}
.wrapper.layout-horizontal .topbar-nav .metismenu > li {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.wrapper.layout-horizontal .topbar-nav .metismenu a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 15px;
    color: #5f5f5f;
    outline-width: 0;
    transition: all .3s ease-out;
    font-size: 16px;
}
.wrapper.layout-horizontal .topbar-nav .metismenu ul a {
    padding: 8px 15px;
    font-size: 15px;
    border: 0;
}
.wrapper.layout-horizontal .topbar-nav .metismenu ul a i {
    margin-right: 10px;
}
html[dir="rtl"] .wrapper.layout-horizontal .topbar-nav .metismenu ul a i {
    margin-right: 0;
    margin-left: 10px;
}
.wrapper.layout-horizontal .topbar-nav .metismenu a .parent-icon {
    font-size: 24px;
    line-height: 1;
}
.wrapper.layout-horizontal .topbar-nav .metismenu a .menu-title {
    margin-left: 10px;
}
html[dir="rtl"] .wrapper.layout-horizontal .topbar-nav .metismenu a .menu-title {
    margin-left: 0;
    margin-right: 10px;
}
.wrapper.layout-horizontal .topbar-nav .metismenu a:hover,
.wrapper.layout-horizontal .topbar-nav .metismenu a:focus,
.wrapper.layout-horizontal .topbar-nav .metismenu a:active,
.wrapper.layout-horizontal .topbar-nav .metismenu .mm-active > a {
    color: #fff;
    text-decoration: none;
    background: var(--ws-accent, #673ab7);
}
@media (min-width: 1000px) {
    .wrapper.layout-horizontal .topbar-nav .metismenu {
        flex-direction: row;
    }
    .wrapper.layout-horizontal .nav-container {
        overflow: visible;
    }
    .wrapper.layout-horizontal .topbar-nav .metismenu > li > ul {
        position: absolute;
        top: 100%;
        min-width: 220px;
        z-index: 1001;
        background: #fff;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
    }
    .wrapper.layout-horizontal .topbar-nav .metismenu > li > ul,
    .wrapper.layout-horizontal .topbar-nav .metismenu > li > ul.mm-show,
    .wrapper.layout-horizontal .topbar-nav .metismenu > li > ul.mm-collapse,
    .wrapper.layout-horizontal .topbar-nav .metismenu > li > ul.mm-collapsing {
        display: none !important;
        height: auto !important;
        overflow: visible;
    }
    .wrapper.layout-horizontal .topbar-nav.is-hoverable .metismenu > li:hover > ul,
    .wrapper.layout-horizontal .topbar-nav .metismenu > li.is-dropdown-open > ul {
        display: block !important;
    }
    .wrapper.layout-horizontal .topbar-nav.is-hoverable .metismenu > li:hover > a.has-arrow:after,
    .wrapper.layout-horizontal .topbar-nav .metismenu > li.is-dropdown-open > a.has-arrow:after {
        transform: rotate(-135deg);
    }
    .wrapper.layout-horizontal .topbar-nav.is-hoverable .metismenu > li:hover li.mm-active > ul,
    .wrapper.layout-horizontal .topbar-nav .metismenu > li.is-dropdown-open li.mm-active > ul {
        display: block !important;
        height: auto !important;
    }
    .wrapper.layout-horizontal .topbar-nav.is-hoverable .metismenu > li:hover li.mm-active > a.has-arrow:after,
    .wrapper.layout-horizontal .topbar-nav .metismenu > li.is-dropdown-open li.mm-active > a.has-arrow:after {
        transform: rotate(-135deg);
    }
    /* Eski toggled menüyü tamamen gizliyordu — masaüstünde kullanma */
    .wrapper.layout-horizontal.toggled .nav-container {
        display: flex;
    }

    /* Yatay menü: sadece metinleri gizle, ikonlar solda kalsın */
    .wrapper.layout-horizontal.sidebar-icons-only .topbar-nav .metismenu {
        justify-content: flex-start;
        gap: 2px;
    }
    .wrapper.layout-horizontal.sidebar-icons-only .topbar-nav .metismenu > li {
        flex: 0 0 auto;
    }
    .wrapper.layout-horizontal.sidebar-icons-only .topbar-nav .metismenu > li > a {
        justify-content: center;
        min-width: 48px;
        padding-left: 12px;
        padding-right: 12px;
    }
    .wrapper.layout-horizontal.sidebar-icons-only .topbar-nav .metismenu > li > a .menu-title,
    .wrapper.layout-horizontal.sidebar-icons-only .topbar-nav .metismenu > li > a.has-arrow:after {
        display: none !important;
    }
    .wrapper.layout-horizontal.sidebar-icons-only .topbar-nav .metismenu > li > a .parent-icon {
        margin: 0 !important;
        display: flex !important;
    }
}
@media screen and (max-width: 999px) {
    .wrapper.layout-horizontal .page-wrapper,
    .wrapper.layout-horizontal.toggled .page-wrapper {
        margin-top: 70px;
    }
    .wrapper.layout-horizontal .nav-container {
        position: fixed;
        width: 260px;
        right: auto;
        left: -260px;
        z-index: 1030;
        height: 100%;
        padding: 10px;
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
    }
    html[dir="rtl"] .wrapper.layout-horizontal .nav-container {
        left: auto;
        right: -260px;
    }
    .wrapper.layout-horizontal.toggled .nav-container {
        display: flex;
        left: 0;
    }
    html[dir="rtl"] .wrapper.layout-horizontal.toggled .nav-container {
        left: auto;
        right: 0;
    }
    .wrapper.layout-horizontal.toggled .mobile-topbar-header {
        display: flex;
        align-items: center;
        height: 70px;
        background: #fff;
        border-bottom: 1px solid #f1f1f1;
        position: fixed;
        width: 260px;
        left: 0;
        top: 0;
        right: auto;
        z-index: 10;
        padding-left: 15px;
    }
    html[dir="rtl"] .wrapper.layout-horizontal.toggled .mobile-topbar-header {
        left: auto;
        right: 0;
        padding-left: 0;
        padding-right: 15px;
    }
    .wrapper.layout-horizontal.toggled .overlay.toggle-btn-mobile {
        position: fixed;
        inset: 0;
        background: #000;
        opacity: .6;
        z-index: 1025;
        display: block;
        cursor: pointer;
    }
}

html.dark-theme .wrapper.layout-horizontal .nav-container,
html.dark-theme .wrapper.layout-horizontal .topbar-nav .metismenu > li > ul,
html.dark-theme .wrapper.layout-horizontal .topbar-nav .metismenu > li > ul ul,
html.dark-theme .wrapper.layout-horizontal.toggled .mobile-topbar-header {
    background: #1a1e21;
    border-color: rgb(255 255 255 / 12%);
}
html.dark-theme .wrapper.layout-horizontal .top-header .sidebar-header {
    border-color: rgb(255 255 255 / 12%);
}
html.dark-theme .wrapper.layout-horizontal .topbar-nav .metismenu a {
    color: #9ea4aa;
}
html.dark-theme .wrapper.layout-horizontal .topbar-nav .metismenu a:hover,
html.dark-theme .wrapper.layout-horizontal .topbar-nav .metismenu a:focus,
html.dark-theme .wrapper.layout-horizontal .topbar-nav .metismenu a:active,
html.dark-theme .wrapper.layout-horizontal .topbar-nav .metismenu .mm-active > a {
    color: #fff;
    background: rgb(255 255 255 / 18%);
}
html.dark-theme .wrapper.layout-horizontal .mobile-topbar-header .logo-text,
html.dark-theme .wrapper.layout-horizontal .top-header .sidebar-header .logo-text {
    color: #e7e9ec;
}

@media (max-width: 1444px) {
    html,
    body {
        font-size: 14px;
    }
    .profile-avatar-overlay {
        font-size: 26px;
    }
    .sidebar-wrapper .metismenu a,
    .dropdown-menu,
    .wrapper.layout-horizontal .topbar-nav .metismenu a,
    .accounts-form-preview-remove,
    .user-info .user-name,
    .page-breadcrumb .breadcrumb li.breadcrumb-item {
        font-size: 14px;
    }
    .wrapper.layout-horizontal .topbar-nav .metismenu a .parent-icon {
        font-size: 22px;
    }
    .font-13,
    .ws-daterange-day span,
    .payroll-stat-label,
    .product-attr-badge {
        font-size: 12px;
    }
    .font-15,
    .sidebar-wrapper .metismenu ul a,
    .wrapper.layout-horizontal .topbar-nav .metismenu ul a,
    .sidebar-wrapper .menu-label-toggle-btn [data-fold-icon],
    .profile-social a {
        font-size: 14px;
    }
    .font-18 { font-size: 14px; }
    .font-20,
    .breadcrumb-title,
    .search-bar .btn-search-back i,
    .dropdown-lg .msg-header .msg-header-title {
        font-size: 16px;
    }
    .font-22 { font-size: 20px; }
    .font-24 { font-size: 22px; }
    .font-30 { font-size: 28px; }
    .font-35 { font-size: 33px; }
    .font-40 { font-size: 38px; }
    .font-60 { font-size: 58px; }
    .sidebar-wrapper,
    .sidebar-header {
        width: 250px;
    }
    html:not([dir="rtl"]) .top-header {
        left: 250px;
    }
    html:not([dir="rtl"]) .page-content-wrapper,
    html:not([dir="rtl"]) .footer {
        margin-left: 250px;
    }
    html[dir="rtl"] .top-header {
        right: 250px;
    }
    html[dir="rtl"] .page-content-wrapper,
    html[dir="rtl"] .footer {
        margin-right: 250px;
    }
}

@media print {
    .no-print {
        display: none !important;
    }
    .nav-container {
        display: none !important;
    }
}

/* Dil ayarları paneli (Detay / Ayarlar) */
.ws-lang-panel .ws-lang-tabs {
    border-bottom: 0;
    gap: 0;
}

.ws-lang-panel .ws-lang-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: var(--text-secondary-light, #667085);
    font-weight: 600;
    padding: 0.75rem 1.1rem;
    background: transparent;
}

.ws-lang-panel .ws-lang-tabs .nav-link.active {
    color: var(--text-primary-light, #1d2939);
    background: #fff;
    border-color: var(--border-color, #e5e7eb) var(--border-color, #e5e7eb) #fff;
}

.ws-lang-panel .form-text {
    font-size: 0.75rem;
    color: var(--text-secondary-light, #98a2b3);
    margin-top: 6px;
}

.ws-lang-panel .ws-lang-settings-section > h6 {
    color: var(--text-primary-light, #1d2939);
}

.ws-lang-panel .ws-lang-info-alert {
    background: rgba(72, 127, 255, 0.08);
    border: 1px solid rgba(72, 127, 255, 0.2);
    color: var(--text-primary-light, #1d2939);
    border-radius: 8px;
    padding: 12px 14px;
}

.ws-lang-table td {
    vertical-align: middle;
}

html.dark-theme .ws-lang-panel.card {
    background: var(--white, #1b2430);
    border-color: var(--border-color, #323d4e);
}

html.dark-theme .ws-lang-panel .card-header {
    background: var(--neutral-50, #1f2937) !important;
    border-color: var(--border-color, #323d4e);
}

html.dark-theme .ws-lang-panel .card-body {
    background: var(--white, #1b2430);
    color: var(--text-primary-light, #e5e7eb);
}

html.dark-theme .ws-lang-panel .ws-lang-tabs .nav-link.active {
    background: var(--white, #1b2430);
    border-color: var(--border-color, #323d4e) var(--border-color, #323d4e) var(--white, #1b2430);
    color: var(--text-primary-light, #e5e7eb);
}

html.dark-theme .ws-lang-panel .ws-lang-info-alert {
    background: rgba(72, 127, 255, 0.15);
    border-color: rgba(72, 127, 255, 0.3);
    color: #e5e7eb;
}

.landing-header-lang-list {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-header-lang-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    font-size: 14px;
}

.landing-header-lang-code {
    text-transform: uppercase;
}

.hex-color-field {
    display: flex;
    align-items: stretch;
}
.hex-color-field .hex-color-swatch {
    width: 46px;
    min-width: 46px;
    height: 38px;
    padding: 4px;
    cursor: pointer;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.hex-color-field .hex-color-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
html[dir="rtl"] .hex-color-field .hex-color-swatch {
    border-radius: 0 var(--bs-border-radius, .375rem) var(--bs-border-radius, .375rem) 0;
}
html[dir="rtl"] .hex-color-field .hex-color-value {
    border-radius: var(--bs-border-radius, .375rem) 0 0 var(--bs-border-radius, .375rem);
}

.ws-sparkline-card,
.ws-sparkline-card .card-body {
    overflow: visible;
}
.ws-sparkline-card .apexcharts-inner,
.ws-sparkline-card .apexcharts-svg,
.ws-sparkline-card .apexcharts-canvas {
    overflow: visible !important;
}
.ws-sparkline-card .apexcharts-tooltip {
    z-index: 40;
    pointer-events: none;
    white-space: nowrap;
}

/* Registration wait overlay (tenant DB provision can take 30–60s) */
body.ws-register-waiting {
    overflow: hidden;
}
.ws-register-wait {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 18, 28, .55);
    backdrop-filter: blur(4px);
}
.ws-register-wait[hidden] {
    display: none !important;
}
.ws-register-wait__card {
    width: min(100%, 26rem);
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .22);
    text-align: center;
}
html.dark-theme .ws-register-wait__card {
    background: #1f1f1f;
    color: #e9ecef;
}
.ws-register-wait__spinner {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    border: 3px solid rgba(103, 58, 183, .18);
    border-top-color: var(--ws-accent, #673ab7);
    animation: ws-register-spin .8s linear infinite;
}
.ws-register-wait__title {
    margin: 0 0 .4rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
}
.ws-register-wait__help {
    margin: 0 0 1.35rem;
    color: #6c757d;
    font-size: .95rem;
    line-height: 1.45;
}
html.dark-theme .ws-register-wait__help {
    color: #adb5bd;
}
.ws-register-wait__track {
    height: .45rem;
    border-radius: 999px;
    background: rgba(103, 58, 183, .12);
    overflow: hidden;
}
.ws-register-wait__bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--ws-accent, #673ab7);
    transform-origin: left center;
}
html[dir="rtl"] .ws-register-wait__bar {
    transform-origin: right center;
}
.ws-register-wait__bar.is-running {
    animation: ws-register-progress 45s cubic-bezier(.22, .61, .36, 1) forwards;
}
@keyframes ws-register-spin {
    to { transform: rotate(360deg); }
}
@keyframes ws-register-progress {
    0% { width: 0; }
    20% { width: 28%; }
    55% { width: 62%; }
    85% { width: 84%; }
    100% { width: 92%; }
}
@media (prefers-reduced-motion: reduce) {
    .ws-register-wait__spinner {
        animation: none;
        border-top-color: var(--ws-accent, #673ab7);
    }
    .ws-register-wait__bar.is-running {
        animation: none;
        width: 70%;
    }
}
