html, body {
    height: 100%;
    margin: 0;
}

/* --- Admin shell (MainLayout) --- */

.admin-site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-site-header {
    border-bottom: 1px solid var(--rz-border-color, #e0e0e0);
    padding: 0.5rem 1rem;
}

.admin-site-header-inner {
    width: 100%;
}

.admin-site-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-site-username {
    color: var(--rz-text-secondary-color, #666);
    font-size: 0.9rem;
}

.admin-site-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

.admin-site-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.admin-site-content {
    flex: 1;
    padding: 1.5rem;
    overflow: auto;
}

/* --- Login (LoginLayout) --- */

.login-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--rz-base-background-color, #f5f5f5);
}

.login-card {
    width: 100%;
    max-width: 360px;
    padding: 2rem;
    border-radius: var(--rz-border-radius, 8px);
    background: var(--rz-white, #fff);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.login-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-card-header h1 {
    margin: 0 0 0.25rem;
    font-size: 1.4rem;
}

.login-card-header p {
    margin: 0;
    color: var(--rz-text-secondary-color, #666);
}

.login-submit {
    width: 100%;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.login-field label {
    font-size: 0.85rem;
    color: var(--rz-text-secondary-color, #666);
}

.login-field .rz-textbox {
    width: 100%;
    box-sizing: border-box;
}

/* --- Shared list-page states --- */

.page-loading, .page-empty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    color: var(--rz-text-secondary-color, #666);
}

/* --- Dashboard tiles --- */

.dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-tile {
    padding: 1.25rem;
    border-radius: var(--rz-border-radius, 8px);
    background: var(--rz-base-100, #fafafa);
    border: 1px solid var(--rz-border-color, #e0e0e0);
}

.dashboard-tile-value {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}

.dashboard-tile-label {
    color: var(--rz-text-secondary-color, #666);
    margin-top: 0.35rem;
}
