.app-shell {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-sidebar {
    width: 260px;
    flex-shrink: 0;
    min-height: 100vh;
    overflow-y: auto;
    z-index: 1040;
}

.app-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-header {
    flex-shrink: 0;
}

.app-content {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
}

.app-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1035;
}

.app-sidebar-backdrop.show {
    display: block;
}

.app-sidebar .nav-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-content .card,
.app-content .table-responsive,
.app-content form {
    max-width: 100%;
}

.app-content .form-control,
.app-content .form-select,
.app-content .btn {
    max-width: 100%;
}

.app-content .d-flex.justify-content-between.align-items-center {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.app-content .table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.25s ease-in-out;
    }

    .app-sidebar.show {
        transform: translateX(0);
    }

    .app-header {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .app-content {
        padding: 1rem !important;
    }

    .app-header-title {
        font-size: 1rem;
    }

    .app-header-user {
        display: none;
    }
}

@media (min-width: 992px) {
    .app-sidebar-toggle {
        display: none !important;
    }
}
