/*
* custom.css
* File include item custom only specific css only
******************************************************************************/
/* table borderd */
.table-bordered {
    border: 1px solid #d9d9d9 !important;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #d9d9d9 !important;
}

[data-bs-theme=dark] .table-bordered {
    border: 1px solid var(--bs-border-color) !important;
}

[data-bs-theme=dark] .table-bordered th,
[data-bs-theme=dark] .table-bordered td {
    border: 1px solid var(--bs-border-color) !important;
}

div.dt-search {
    display: none;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 64px !important;
}

.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
    padding-top: 72px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
    z-index: auto;
}

/*
* Content
******************************************************************************/

.custom-blocks>* {
    display: block !important;
}

.custom-inline-spacing>* {
    margin: 1rem 0.375rem 0 0 !important;
}

/* ? .custom-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .custom-only-element class with .custom-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.custom-vertical-spacing>* {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

.custom-vertical-spacing.custom-only-element> :first-child {
    margin-top: 0 !important;
}

.custom-vertical-spacing-lg>* {
    margin-top: 1.875rem !important;
    margin-bottom: 0 !important;
}

.custom-vertical-spacing-lg.custom-only-element> :first-child {
    margin-top: 0 !important;
}

.custom-vertical-spacing-xl>* {
    margin-top: 5rem !important;
    margin-bottom: 0 !important;
}

.custom-vertical-spacing-xl.custom-only-element> :first-child {
    margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
    #dropdown-variation-custom .btn-group .text-truncate {
        width: 254px;
        position: relative;
    }

    #dropdown-variation-custom .btn-group .text-truncate::after {
        position: absolute;
        top: 45%;
        right: 0.65rem;
    }
}

/*
* Layout custom
******************************************************************************/

.layout-custom-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 1rem;
}

.layout-custom-placeholder img {
    width: 900px;
}

.layout-custom-info {
    text-align: center;
    margin-top: 1rem;
}

/*
* Sidebar brand logo
******************************************************************************/

.menu .app-brand.custom {
    height: 64px;
}

.app-brand-logo.custom svg {
    width: 34px;
    height: 24px;
}

.app-brand-text.custom {
    font-size: 1.375rem;
}

#layout-menu .app-brand.custom {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#layout-menu .app-brand.custom .app-brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
}

#layout-menu .app-brand.custom .app-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#layout-menu .app-brand.custom .layout-menu-toggle {
    position: absolute;
    right: 0.75rem;
}

#layout-menu .app-brand-logo .logo-dark-mode {
    display: none;
}

html[data-bs-theme="dark"] #layout-menu .app-brand-logo .logo-dark-mode {
    display: inline-block;
}

html[data-bs-theme="dark"] #layout-menu .app-brand-logo .logo-light-mode {
    display: none;
}

.layout-menu-collapsed:not(.layout-menu-hover, .layout-menu-offcanvas, .layout-menu-fixed-offcanvas) .layout-menu-toggle .menu-toggle-icon {
    display: none !important;
}

/*
* CSP-safe helpers
******************************************************************************/
.border-style-dashed {
    border-style: dashed !important;
}

.menu-icon-card {
    cursor: pointer;
    transition: all 0.2s ease;
    transform: translateY(0);
}

.menu-icon-card-hover {
    transform: translateY(-4px);
}

.menu-icon-preview {
    height: 60px;
}

.menu-icon-class {
    font-size: 0.7rem;
    font-family: monospace;
}

.menu-icon-col {
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.menu-icon-col-pending {
    opacity: 0;
    transform: translateY(20px);
}

.menu-icon-spinner {
    width: 3rem;
    height: 3rem;
}

.activity-json-key {
    color: #66d9ef;
}

.activity-json-string {
    color: #a6e22e;
}

.activity-json-boolean {
    color: #fd971f;
}

.activity-json-null {
    color: #f92672;
}

.activity-json-number {
    color: #ae81ff;
}
