:root {
    --page-bg: #f5f7fb;
    --border: #d8dee9;
    --text-muted: #667085;
}

body {
    background: var(--page-bg);
    color: #1f2937;
}

.page-shell {
    max-width: 1440px;
    padding: 24px;
}

.flash-stack {
    margin-bottom: 16px;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 28px;
    margin: 0;
}

.page-header p {
    color: var(--text-muted);
    margin: 4px 0 0;
}

.section-panel,
.metric-card,
.login-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
}

.metric-label {
    color: var(--text-muted);
    font-size: 14px;
}

.metric-value {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    height: 100%;
}

.login-wrap {
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
}

.login-panel {
    width: min(420px, 100%);
}

.empty-state {
    min-height: 55vh;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    gap: 10px;
}

.status-code {
    color: #0d6efd;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.table th {
    white-space: nowrap;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.tabs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.site-footer {
  border-top: 1px solid #dbe3dd;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 0.9rem;
}

.footer-inner img {
  width: 104px;
  height: auto;
}

@media (max-width: 768px) {
    .page-shell {
        padding: 16px;
    }

    .page-header {
        display: block;
    }

    .actions,
    .form-actions {
        justify-content: flex-start;
    }
}
