/* Shared layout for the operational screens; Dashboard does not opt in. */
.admin-page.admin-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1rem !important;
    box-sizing: border-box;
    min-width: 0;
}

.admin-page.admin-page > .admin-page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #3b82f6;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    text-align: left;
}

.admin-page .admin-page-header .header-icon {
    color: #3b82f6 !important;
    flex-shrink: 0;
}

.admin-page .admin-page-header .header-text {
    flex: 1;
    min-width: 0;
}

.admin-page .admin-page-header :is(.header-title, .employee-list-title, .page-title) {
    color: #111827 !important;
    font-size: 1.5rem !important;
    line-height: 2rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.25rem !important;
    overflow-wrap: anywhere;
}

.admin-page .admin-page-header :is(.page-subtitle, .employee-list-subtitle) {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    line-height: 1.5;
    margin: 0 !important;
    padding: 0;
}

.admin-page .admin-page-header .header-with-selector {
    width: 100%;
    min-width: 0;
}

.admin-page .admin-page-header .header-content {
    min-width: 0;
}

/* Let the grid use the space remaining after a wrapped header. */
.admin-page.new-hires-container {
    display: flex;
    flex-direction: column;
}

.admin-page.new-hires-container > .mud-data-grid {
    flex: 1;
    min-height: 0;
    height: auto !important;
}

@media (max-width: 768px) {
    .admin-page.admin-page {
        padding: 0.75rem !important;
    }

    .admin-page.admin-page > .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .admin-page .admin-page-header .header-content {
        align-items: flex-start;
        gap: 0.75rem;
    }
}
