:root { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #f5f7fb; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.login-page { display: grid; place-items: center; }
.login-card { width: min(420px, calc(100% - 32px)); background: white; padding: 40px; border-radius: 16px; box-shadow: 0 14px 45px rgba(20,30,55,.10); }
.brand { font-weight: 800; letter-spacing: .12em; font-size: 14px; }
h1 { margin: 8px 0 12px; }
.muted { color: #657087; }
.error { color: #a51d2d; margin-top: 18px; }
.topbar { height: 64px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid #e5e9f1; }
.user-area { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; }
.link-button { border: 0; background: transparent; cursor: pointer; text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 44px 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 30px; }
.card { background: white; padding: 24px; border-radius: 12px; border: 1px solid #e5e9f1; }
.card h2 { margin-top: 0; font-size: 18px; }
.card-link { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.card-link:hover { border-color: #9ba8c0; box-shadow: 0 8px 24px rgba(20,30,55,.08); }
.report-container { max-width: 720px; }
.back-link { color: #315ea8; }
.report-form { display: grid; gap: 10px; margin-top: 30px; padding: 28px; background: white; border: 1px solid #e5e9f1; border-radius: 12px; }
.report-form label { margin-top: 8px; font-weight: 650; }
.report-form input, .report-form select { width: 100%; padding: 11px 12px; border: 1px solid #cbd3e1; border-radius: 7px; background: white; color: #172033; font: inherit; }
.report-form input:disabled, .report-form select:disabled { background: #eef1f6; color: #7b8496; }
.primary-button { justify-self: start; margin-top: 16px; padding: 11px 18px; border: 0; border-radius: 7px; background: #244f96; color: white; font: inherit; font-weight: 650; cursor: pointer; }
.primary-button:disabled { background: #aeb7c7; cursor: not-allowed; }
.status-message { min-height: 24px; margin: 4px 0 0; color: #526078; }
.preview-section { margin-top: 28px; }
.preview-heading-row { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.preview-heading-row h2 { margin-bottom: 4px; }
.preview-heading-row p { margin-top: 0; }
.filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.filter-form label { grid-row: 1; }
.filter-form select, .filter-form input { grid-row: 2; }
.filter-form .form-actions, .filter-form .status-message { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.form-actions .primary-button { margin-top: 0; }
.secondary-button { padding: 11px 18px; border: 1px solid #244f96; border-radius: 7px; background: white; color: #244f96; font: inherit; font-weight: 650; cursor: pointer; }
.secondary-button:disabled { border-color: #aeb7c7; color: #8b94a4; cursor: not-allowed; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 30px 0; }
.summary-card { display: grid; gap: 8px; padding: 20px; background: white; border: 1px solid #e5e9f1; border-radius: 12px; }
.summary-card span { color: #657087; }
.summary-card strong { font-size: 24px; }
.table-wrapper { overflow-x: auto; margin-bottom: 32px; background: white; border: 1px solid #e5e9f1; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid #e5e9f1; text-align: left; vertical-align: top; }
th { background: #eef2f8; font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
.hourly-table { max-width: 420px; }
.totals-table { max-width: 720px; }
.client-total-button { padding: 0; border: 0; background: transparent; color: #315ea8; font: inherit; cursor: pointer; text-decoration: underline; }
@media (max-width: 680px) {
  .topbar { height: auto; padding: 16px; gap: 16px; align-items: flex-start; }
  .user-area { flex-wrap: wrap; justify-content: flex-end; }
  .filter-form { grid-template-columns: 1fr; }
  .filter-form label, .filter-form select, .filter-form input { grid-row: auto; }
}

.report-form .checkbox-label { display: flex; align-items: center; gap: 10px; }
.report-form .checkbox-label input { width: auto; margin: 0; }
