@charset "UTF-8";

/*!
 * Licensed under the MIT license - http://opensource.org/licenses/MIT
 *
 * Copyright (c) 2026 Tri Untoro
 */

table.dataTable > tbody > tr > td {
    padding: 4px !important;
}

#crud_table > :not(caption) > * > * {
    border-top-color: var(--card-border-color);
}

table.dataTable > thead > tr > th, table.dataTable > tfoot > tr > th {
    padding: 4px !important;
}

div.dt-scroll-body {
    border-bottom-style: none !important;
}

div.dataTables_wrapper {
    width: 800px;
    margin: 0 auto;
}

#crud_table tbody tr > .dtfc-fixed-start,
#crud_table tbody tr > .dtfc-fixed-end {
    z-index: 1;
    background-color: var(--bs-card-bg);
    border-top: 1px solid var(--card-border-color);
}

#crud_table thead tr > .dtfc-fixed-start,
#crud_table thead tr > .dtfc-fixed-end,
#crud_table tfoot tr > .dtfc-fixed-start,
#crud_table tfoot tr > .dtfc-fixed-end {
    top: 0;
    bottom: 0;
    z-index: 3;
    background-color: var(--table-bg);
    border-top: 1px solid var(--card-border-color);
}

html[data-color-theme="dark"] #crud_table tbody tr > .dtfc-fixed-start,
html[data-color-theme="dark"] #crud_table tbody tr > .dtfc-fixed-end {
    background-color: var(--bs-card-bg);
}

html[data-color-theme="dark"] #crud_table thead tr > .dtfc-fixed-start,
html[data-color-theme="dark"] #crud_table thead tr > .dtfc-fixed-end,
html[data-color-theme="dark"] #crud_table tfoot tr > .dtfc-fixed-start,
html[data-color-theme="dark"] #crud_table tfoot tr > .dtfc-fixed-end {
    background-color: var(--table-bg);
}

form .form-group {
    margin-bottom: 1.1rem;
}

.layout-static .content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.layout-static .content-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: visible;
}
.layout-static .content {
    flex: 1 0 auto;
}

html[data-color-theme="dark"] .crud-form-actions {
    background: rgba(34, 35, 39, 0.96);
    border-top-color: #3a3b40;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
}

html[data-color-theme="dark"] .crud-form-tabs {
    border-bottom-color: #3a3b40;
}

html[data-color-theme="dark"] .crud-form-tabs .nav-link {
    color: #9ca3af;
}

html[data-color-theme="dark"] .crud-form-tabs .nav-link.active {
    color: #e5e7eb;
    background: #222327;
}

html[data-color-theme="dark"] .crud-form-tab-content {
    background: #222327;
    border-color: #3a3b40;
}

.h-80px {
    height: 8rem !important;
}
body[data-app-theme="classic-dark"] {
    --app-nav-bg: #252b36;
    --app-nav-bg-light: #252b36;
    --app-sidebar-bg: #252b36;
    --app-sidebar-border: rgba(255, 255, 255, 0.1);
    --app-nav-link: rgba(255, 255, 255, 0.78);
    --app-nav-link-hover: #ffffff;
    --app-sidebar-link: rgba(255, 255, 255, 0.72);
    --app-sidebar-link-hover: #ffffff;
    --app-sidebar-hover-bg: rgba(255, 255, 255, 0.08);
    --app-sidebar-active-bg: #0c83ff;
    --app-sidebar-active-color: #ffffff;
}

body[data-app-theme="ocean-teal"] {
    --app-nav-bg: #0f4c5c;
    --app-nav-bg-light: #0f4c5c;
    --app-sidebar-bg: #12343b;
    --app-sidebar-border: rgba(204, 251, 241, 0.16);
    --app-nav-link: rgba(236, 253, 245, 0.82);
    --app-nav-link-hover: #ffffff;
    --app-sidebar-link: rgba(236, 253, 245, 0.76);
    --app-sidebar-link-hover: #ffffff;
    --app-sidebar-hover-bg: rgba(20, 184, 166, 0.16);
    --app-sidebar-active-bg: #14b8a6;
    --app-sidebar-active-color: #052e2b;
}

body[data-app-theme="forest-emerald"] {
    --app-nav-bg: #1f4d3a;
    --app-nav-bg-light: #1f4d3a;
    --app-sidebar-bg: #17352b;
    --app-sidebar-border: rgba(220, 252, 231, 0.14);
    --app-nav-link: rgba(240, 253, 244, 0.82);
    --app-nav-link-hover: #ffffff;
    --app-sidebar-link: rgba(240, 253, 244, 0.76);
    --app-sidebar-link-hover: #ffffff;
    --app-sidebar-hover-bg: rgba(74, 222, 128, 0.14);
    --app-sidebar-active-bg: #86efac;
    --app-sidebar-active-color: #052e16;
}

body[data-app-theme="royal-indigo"] {
    --app-nav-bg: #263a73;
    --app-nav-bg-light: #263a73;
    --app-sidebar-bg: #1d2a55;
    --app-sidebar-border: rgba(224, 231, 255, 0.15);
    --app-nav-link: rgba(238, 242, 255, 0.82);
    --app-nav-link-hover: #ffffff;
    --app-sidebar-link: rgba(238, 242, 255, 0.76);
    --app-sidebar-link-hover: #ffffff;
    --app-sidebar-hover-bg: rgba(251, 191, 36, 0.15);
    --app-sidebar-active-bg: #fbbf24;
    --app-sidebar-active-color: #1e1b4b;
}

body[data-app-theme="neutral-warm"] {
    --app-nav-bg: #F6F0E5;
    --app-nav-bg-light: #F7F2E8;
    --app-sidebar-bg: #F7F2E8;
    --app-sidebar-border: #E8E2D8;
    --app-nav-link: #5F6675;
    --app-nav-link-hover: #111111;
    --app-sidebar-link: #5F6675;
    --app-sidebar-link-hover: #111111;
    --app-sidebar-hover-bg: #F5F5F5;
    --app-sidebar-active-bg: #111111;
    --app-sidebar-active-color: #FFFFFF;
}

body[data-app-theme="neutral-warm"] .navbar-dark .navbar-nav-link.active {
    background-color: #F5F5F5;
}

body[data-app-theme="neutral-warm"] .sidebar-dark .sidebar-section-body h5 {
    color: #2B2B2B;
}

body[data-app-theme="neutral-warm"] .sidebar-dark .btn-flat-white {
    --btn-color: #5F6675;
    --btn-bg: transparent;
    --btn-hover-color: #111111;
    --btn-hover-bg: #F5F5F5;
    --btn-active-color: #111111;
    --btn-active-bg: #E8E2D8;
    --btn-border-color: transparent;
    --btn-hover-border-color: transparent;
}

body[data-app-theme="neutral-warm"] .sidebar-dark .nav-sidebar {
    --nav-link-color: #5F6675;
    --nav-link-hover-color: #111111;
    --nav-link-hover-bg: #F5F5F5;
    --nav-link-hover-active-bg: #E8E2D8;
    --nav-link-active-color: #FFFFFF;
    --nav-link-active-bg: #111111;
    --nav-link-disabled-color: #8C94A5;
    --nav-sidebar-divider-color: #E8E2D8;
}

body[data-app-theme="neutral-warm"] .sidebar-dark .nav-sidebar .nav-link:not(.active) .nav-link-icon {
    color: #8C94A5;
}

body[data-app-theme="neutral-warm"] .nav-sidebar .nav-item-open > .nav-link:not(.disabled):not(:active), .nav-sidebar > .nav-item-expanded > .nav-link:not(:active){
    background-color: #574b4b;
    color: #F5F5F5;
}

body[data-app-theme="neutral-warm"] .card {
    --card-border-color: #E8E2D8;
}

body[data-app-theme="neutral-warm"] .line-text {
    background-color: #FAF7F2 !important;
    color: #2B2B2B !important;
}

body[data-app-theme="burgundy"] {
    --app-nav-bg: #7A1336;
    --app-nav-bg-light: #8E1B43;
    --app-sidebar-bg: #7A1336;
    --app-sidebar-border: rgba(255, 200, 220, 0.15);
    --app-nav-link: rgba(255, 240, 245, 0.82);
    --app-nav-link-hover: #ffffff;
    --app-sidebar-link: rgba(255, 240, 245, 0.76);
    --app-sidebar-link-hover: #ffffff;
    --app-sidebar-hover-bg: rgba(158, 30, 74, 0.35);
    --app-sidebar-active-bg: #9E1E4A;
    --app-sidebar-active-color: #ffffff;
}

body[data-app-theme="white"] {
    --app-nav-bg: #ffffff;
    --app-nav-bg-light: var(--gray-300);
    --app-sidebar-bg: #ffffff;
    --app-sidebar-border: #e2e8f0;
    --app-nav-link: #334155;
    --app-nav-link-hover: #000000;
    --app-sidebar-link: #475569;
    --app-sidebar-link-hover: #000000;
    --app-sidebar-hover-bg: #f1f5f9;
    --app-sidebar-active-bg: #e2e8f0;
    --app-sidebar-active-color: #000000;
}

body[data-app-theme="white"] .navbar-dark .navbar-nav-link.active {
    background-color: #f1f5f9;
}

body[data-app-theme="white"] .sidebar-dark .sidebar-section-body h5 {
    color: #334155;
}

body[data-app-theme="white"] .sidebar-dark .btn-flat-white {
    --btn-color: #475569;
    --btn-bg: transparent;
    --btn-hover-color: #000000;
    --btn-hover-bg: #f1f5f9;
    --btn-active-color: #000000;
    --btn-active-bg: #e2e8f0;
    --btn-border-color: transparent;
    --btn-hover-border-color: transparent;
}

body[data-app-theme="white"] .sidebar-dark .nav-sidebar {
    --nav-link-color: #475569;
    --nav-link-hover-color: #000000;
    --nav-link-hover-bg: #f1f5f9;
    --nav-link-hover-active-bg: #e2e8f0;
    --nav-link-active-color: #000000;
    --nav-link-active-bg: #e2e8f0;
    --nav-link-disabled-color: #9ca3af;
    --nav-sidebar-divider-color: #e2e8f0;
}

body[data-app-theme="white"] .sidebar-dark .nav-sidebar .nav-link:not(.active) .nav-link-icon {
    color: #94a3b8;
}

body[data-app-theme="white"] .card {
    --card-border-color: #e2e8f0;
}

body[data-app-theme="white"] .line-text {
    background-color: #f8fafc !important;
    color: #334155 !important;
}

body[data-app-theme] .navbar.navbar-dark {
    background-color: var(--app-nav-bg) !important;
}

body[data-app-theme] .navbar-dark .navbar-nav-link,
body[data-app-theme] .navbar-dark .navbar-brand a,
body[data-app-theme] .navbar-dark .navbar-toggler {
    color: var(--app-nav-link);
}

body[data-app-theme] .navbar-dark .navbar-nav-link:hover,
body[data-app-theme] .navbar-dark .navbar-nav-link:focus,
body[data-app-theme] .navbar-dark .navbar-toggler:hover,
body[data-app-theme] .navbar-dark .navbar-toggler:focus {
    color: var(--app-nav-link-hover);
}

body[data-app-theme] .sidebar.sidebar-dark {
    --sidebar-bg: var(--app-sidebar-bg);
    --sidebar-border-color: var(--app-sidebar-border);
    --nav-sidebar-divider-color: var(--app-sidebar-border);
    --nav-link-color: var(--app-sidebar-link);
    --nav-link-hover-color: var(--app-sidebar-link-hover);
    --nav-link-hover-bg: var(--app-sidebar-hover-bg);
    --nav-link-hover-active-bg: var(--app-sidebar-hover-bg);
    --nav-link-active-color: var(--app-sidebar-active-color);
    --nav-link-active-bg: var(--app-sidebar-active-bg);
    background-color: var(--app-sidebar-bg) !important;
    border-color: var(--app-sidebar-border) !important;
}

body[data-app-theme] .sidebar-dark .sidebar-content {
    background-color: var(--app-sidebar-bg);
}

body[data-app-theme] .sidebar-dark .sidebar-section-body {
    border-bottom: 1px solid var(--app-sidebar-border);
}

body[data-app-theme] .line-text{
    background-color: var(--app-nav-bg) !important;
    color: var(--app-nav-link) !important;
    padding: 15px;
}

body[data-app-theme] .badge.bg-primary{
    padding: 4px;
}

table.dataTable > tbody > tr > td:last-child {
    overflow: visible;
}

table.dataTable > tbody > tr > td.dtfc-fixed-end {
    overflow: visible;
}

div.dtfc-fixed-right {
    overflow: visible;
}

table.dataTable > tbody > tr > td .dropdown-menu.show {
    z-index: 1050;
}

table.dataTable > tbody > tr > td .dropdown {
    position: relative;
    display: inline-block;
}

/* Global loading overlay */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}
#global-loader .loader-content {
    background: #fff;
    border-radius: 12px;
    padding: 32px 48px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
html[data-color-theme="dark"] #global-loader .loader-content {
    background: #2a2b30;
    color: #e5e7eb;
}
#global-loader .loader-text {
    margin-top: 12px;
    font-size: 14px;
    color: #6c757d;
}
html[data-color-theme="dark"] #global-loader .loader-text {
    color: #9ca3af;
}

/* Avatar thumbnail for DataTable image columns */
.crud-thumb-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bs-gray-200, #e9ecef);
}
.crud-thumb-wrap .crud-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-sidebar .nav-link {    
    position: relative;
    -ms-flex-align: start;
    align-items: flex-start;
    background-color: transparent;
    margin: 4px 4px;
    border-radius: 8px;
}