:root {
    --rh-bg: #f4f6f8;
    --rh-card: #fff;
    --rh-border: #d8dde2;
    --rh-muted: #6a737d;
    --rh-primary: #007bff;
    --rh-primary-hover: #0056b3;
    --rh-error-bg: #fff4f4;
    --rh-error-border: #f0a0a0;
    --rh-error-fg: #a01e1e;
    --rh-radius: 6px;
    --rh-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--rh-bg);
    color: #222;
}

.rh-container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.rh-header {
    background: #fff;
    border-bottom: 1px solid var(--rh-border);
    padding: 12px 0;
}
.rh-header .rh-container { display: flex; align-items: center; gap: 24px; }
.rh-brand { font-weight: 600; text-decoration: none; color: #222; }
.rh-nav a { margin-right: 14px; text-decoration: none; color: #444; }
.rh-nav a:hover { color: var(--rh-primary); }

main.rh-container { padding-top: 24px; padding-bottom: 32px; }

.rh-hero { padding: 32px 0; text-align: left; }
.rh-card { background: var(--rh-card); border: 1px solid var(--rh-border); border-radius: var(--rh-radius); box-shadow: var(--rh-shadow); padding: 20px 24px; margin-bottom: 18px; }

.rh-form fieldset { border: 1px solid var(--rh-border); border-radius: var(--rh-radius); padding: 14px 16px; margin-bottom: 16px; }
.rh-form legend { font-weight: 600; padding: 0 6px; }
.rh-form label { display: block; margin: 8px 0; font-size: 14px; color: #333; }
.rh-form input[type=text], .rh-form input[type=date] { display: block; width: 100%; max-width: 360px; padding: 6px 8px; border: 1px solid var(--rh-border); border-radius: 4px; }
.rh-row { display: flex; flex-wrap: wrap; gap: 16px; }
.rh-row label { flex: 1 1 200px; }

.rh-actions { margin-top: 12px; }
.rh-btn { display: inline-block; padding: 8px 14px; border-radius: 4px; border: 1px solid var(--rh-border); background: #fff; color: #222; text-decoration: none; cursor: pointer; }
.rh-btn:hover { background: #f0f0f0; }
.rh-btn-primary { background: var(--rh-primary); border-color: var(--rh-primary); color: #fff; }
.rh-btn-primary:hover { background: var(--rh-primary-hover); }
.rh-btn[disabled], .rh-btn-primary[disabled] { opacity: 0.5; cursor: not-allowed; }

.rh-summary { font-size: 16px; margin: 8px 0 14px; }
.rh-table-wrap { overflow-x: auto; }
.rh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rh-table th, .rh-table td { padding: 8px 10px; border-bottom: 1px solid var(--rh-border); text-align: left; }
.rh-table thead th { background: #f8f9fa; }

.rh-error { background: var(--rh-error-bg); border-color: var(--rh-error-border); color: var(--rh-error-fg); }
.rh-muted { color: var(--rh-muted); }

.rh-progress-row { margin: 8px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rh-progress-row progress { width: 360px; max-width: 100%; height: 18px; }
.rh-label { font-weight: 600; color: #444; }
.rh-status { padding: 2px 8px; border-radius: 3px; background: #eef2f6; }

.rh-footer { padding: 16px 0; color: var(--rh-muted); font-size: 13px; border-top: 1px solid var(--rh-border); background: #fff; margin-top: 32px; }

/* --------------------------------------------------------------------------
   Login page
   -------------------------------------------------------------------------- */
.rh-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rh-bg);
    padding: 24px;
}
.rh-login-card {
    width: 100%;
    max-width: 380px;
    background: var(--rh-card);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius);
    padding: 32px 28px;
    box-shadow: 0 10px 40px rgba(16,24,40,0.08);
}
.rh-login-brand {
    text-align: center;
    margin-bottom: 24px;
}
.rh-brand-mark {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: var(--rh-primary); color: #fff;
    font-weight: 700; border-radius: var(--rh-radius);
    font-size: 14px;
}
.rh-brand-mark--lg { width: 48px; height: 48px; font-size: 20px; margin: 0 auto 12px; }
.rh-login-title { font-size: 18px; margin: 0 0 4px; color: #1f2430; }
.rh-login-sub { color: var(--rh-muted); font-size: 12px; margin: 0; }

.rh-login-form { display: flex; flex-direction: column; gap: 14px; }
.rh-login-field { display: flex; flex-direction: column; gap: 6px; }
.rh-login-field label { font-size: 12px; font-weight: 600; color: #1f2430; }
.rh-login-field input[type=text],
.rh-login-field input[type=password] {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--rh-border);
    border-radius: 4px;
    font-size: 14px;
    background: var(--rh-card);
    color: #1f2430;
}
.rh-login-field input:focus {
    outline: none;
    border-color: var(--rh-primary);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.12);
}
.rh-login-btn {
    width: 100%;
    padding: 10px 16px;
    background: var(--rh-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}
.rh-login-btn:hover { background: var(--rh-primary-hover); }
.rh-login-error {
    background: var(--rh-error-bg);
    border: 1px solid var(--rh-error-border);
    color: var(--rh-error-fg);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
}
.rh-nav-user { color: var(--rh-muted); font-size: 13px; margin-right: 4px; }
