/* ========================================
   PAGE LAYOUTS
   Shared layout styles for admin pages.
   ======================================== */

.admin-page-container {
    max-width: 1160px;
    margin: 0;
    margin-left: 0;
    padding: 0 0 2rem 0;
    transition: max-width 0.3s ease;
}

.sidebar.collapsed ~ .main-with-sidebar .admin-page-container {
    max-width: 1380px;
}

.page-header {
    margin: -1.1rem -1.5rem 1.5rem -1.5rem;
    padding: 0.8rem 1.5rem 0.8rem 1.5rem;
    min-height: 66px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.page-header h1 .bi,
.page-header h1 svg {
    color: var(--bs-gray-900) !important;
    flex-shrink: 0;
}

@media (max-width: 640.98px) {
    .page-header {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

main {
    flex: 1;
}

article {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

@media (max-width: 640.98px) {
    article {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.main-with-sidebar {
    margin-left: 280px;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-with-sidebar {
    margin-left: 60px;
}

@media (max-width: 768px) {
    .main-with-sidebar {
        margin-left: 0;
    }

    .sidebar.collapsed ~ .main-with-sidebar {
        margin-left: 60px;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.table-rounded {
    border-radius: 0.5rem;
    overflow: visible;
    background: var(--bs-white);
}

.table-rounded .table {
    margin-bottom: 0;
    border-radius: 0.5rem;
}

.table-rounded .table thead {
    background-color: var(--bs-gray-100);
}

.table-rounded .table tbody tr:last-child td {
    border-bottom: none;
}

.table-responsive.rounded {
    border-radius: 0.5rem;
    overflow: hidden;
}
