/* Cabinet adaptations for the AdminLTE layout. */
.lk-list-table {
    font-size: 0.875rem;
}

.lk-list-table > thead > tr > th {
    background: #f2f5f7;
    color: #49545f;
    border-bottom-color: #d5dde4;
    font-weight: 600;
    white-space: nowrap;
}

.lk-list-table > :not(caption) > * > * {
    padding: 0.65rem 0.75rem;
}

.lk-row-actions-cell,
.lk-actions-column {
    width: 3rem;
    min-width: 3rem;
    text-align: center;
}

.lk-list-table [data-lk-row-url] {
    cursor: pointer;
}

.lk-list-table [data-lk-row-url]:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

.lk-row-menu-toggle {
    padding: 0.1rem 0.35rem;
    border-color: transparent;
    color: #596b78;
}

.lk-row-menu-toggle[aria-expanded="true"] {
    background: #e4ebf1;
    border-color: #c6d2dc;
}

.lk-row-menu {
    position: fixed;
    z-index: 1080;
    min-width: 10rem;
    padding: 0.3rem;
    border: 1px solid #d1dae2;
    border-radius: 0.375rem;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 0.4rem 1.2rem rgb(0 0 0 / 15%);
    text-align: left;
}

.lk-row-menu[hidden] {
    display: none;
}

.lk-row-menu form {
    margin: 0;
}

.lk-row-menu-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.45rem 0.65rem;
    border: 0;
    border-radius: 0.2rem;
    background: transparent;
    color: var(--bs-body-color, #212529);
    font-size: 0.875rem;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
}

.lk-row-menu-item:hover:not(:disabled),
.lk-row-menu-item:focus-visible {
    background: #edf2f6;
}

.lk-row-menu-item:disabled {
    color: var(--bs-secondary-color, #6c757d);
    cursor: not-allowed;
    opacity: 0.55;
}

.lk-list-pagination {
    padding: 1rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    background: #fafbfc;
}

body.lk-layout .app-sidebar {
    width: max-content;
    min-width: min(var(--lte-sidebar-width), calc(100vw - 3rem));
    max-width: calc(100vw - 3rem);
}

body.lk-layout .app-main {
    min-width: 0;
}

body.lk-layout .sidebar-menu .nav-link > p {
    min-width: 0;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.lk-layout .sidebar-menu > .nav-item > .nav-link > p {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.75rem;
}

body.lk-layout .sidebar-menu > .nav-item > .nav-link .nav-arrow {
    position: static;
    inset: auto !important;
    flex: none;
    margin-left: auto;
    transform: none;
}

body.lk-layout .sidebar-menu > .menu-open > .nav-link .nav-arrow {
    transform: rotate(90deg);
}

@media (min-width: 992px) {
    body.lk-layout.sidebar-collapse:not(.sidebar-mini) .app-sidebar {
        width: 0;
        min-width: 0;
        max-width: 0;
        margin-left: 0;
        overflow: hidden;
    }
}

@media (max-width: 991.98px) {
    body.lk-layout.sidebar-expand-lg .app-sidebar {
        left: 0;
        margin-left: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    body.lk-layout.sidebar-expand-lg.sidebar-open .app-sidebar {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.lk-layout.sidebar-expand-lg .app-sidebar {
        transition: none;
    }
}
