:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; color: #172033; background: linear-gradient(135deg, #eaf2ff 0%, #f7f9fc 48%, #dceaf7 100%); font-family: "Segoe UI", Arial, sans-serif; }
.login-shell { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: clamp(.75rem, 2vh, 1.5rem); }
.login-card { width: min(100%, 430px); padding: clamp(1.35rem, 4vh, 2rem); border: 1px solid #d9e1ed; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 18px 45px rgba(28,52,84,.16); }
.portal-mark { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: .8rem; border-radius: 12px; color: #fff; background: #0756a6; font-size: 1.2rem; font-weight: 700; }
.eyebrow { margin: 0 0 .45rem; color: #0756a6; font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
h1 { margin: 0; font-size: 1.8rem; line-height: 1.2; }
.intro { margin: .6rem 0 1.15rem; color: #5a677a; line-height: 1.45; }
.field { margin: .8rem 0; }
label { display: block; margin-bottom: .45rem; font-size: .9rem; font-weight: 600; }
.form-control { width: 100%; padding: .72rem .8rem; border: 1px solid #b9c7d9; border-radius: 8px; color: #172033; font: inherit; }
.form-control:focus { outline: 3px solid rgba(7,86,166,.18); border-color: #0756a6; }
.sign-in { width: 100%; margin-top: .75rem; padding: .78rem 1rem; border: 0; border-radius: 8px; color: #fff; background: #0756a6; cursor: pointer; font: inherit; font-weight: 700; }
.sign-in:hover, .sign-in:focus { background: #064a8d; }
.message, .validation-summary { margin: 0 0 1rem; padding: .75rem .85rem; border-radius: 8px; color: #9b1c1c; background: #fff0f0; font-size: .9rem; }
.success-message, .error-message { margin: 0 0 1rem; padding: .75rem .85rem; border-radius: 8px; font-size: .9rem; }
.success-message { color: #166534; background: #effcf3; }
.error-message { color: #9b1c1c; background: #fff0f0; }
.validation-summary ul { margin: 0; padding-left: 1rem; }
.field-error { display: block; margin-top: .35rem; color: #9b1c1c; font-size: .8rem; }
.notice { margin: 1rem 0 0; color: #6b7789; font-size: .78rem; line-height: 1.45; }
.portal-shell { width: 100%; min-height: 100vh; margin: 0; padding: 2rem; }
.portal-card { padding: 2.5rem; border: 1px solid #d9e1ed; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 18px 45px rgba(28,52,84,.12); }
.portal-card h1 { color: #13223a; }
.portal-card h2 { margin: 2rem 0 .85rem; color: #18365e; font-size: 1.12rem; }
.portal-card > p, .portal-card > div > p { color: #526177; line-height: 1.55; }
.portal-card input:not(.form-control), .portal-card select { min-width: 180px; margin: .25rem .4rem .25rem 0; padding: .65rem .7rem; border: 1px solid #b9c7d9; border-radius: 7px; color: #172033; background: #fff; font: inherit; }
.portal-card input[type="checkbox"] { min-width: 0; width: 1rem; height: 1rem; margin: 0 .4rem 0 0; vertical-align: middle; accent-color: #0756a6; }
.portal-card button { margin: .5rem 0 .5rem .6rem; padding: .68rem 1rem; border: 0; border-radius: 7px; color: #fff; background: #0756a6; cursor: pointer; font: inherit; font-weight: 700; }
.portal-card button:hover, .portal-card button:focus { background: #064a8d; }
.portal-card table { width: 100%; margin: 1.25rem 0; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid #d9e1ed; border-radius: 10px; font-size: .9rem; }
.portal-card th, .portal-card td { padding: .8rem .9rem; border-bottom: 1px solid #e3eaf3; text-align: left; vertical-align: top; }
.portal-card th { color: #274263; background: #edf5ff; font-size: .77rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.portal-card tr:last-child td { border-bottom: 0; }
.portal-card tr:nth-child(even) td { background: #fbfdff; }
.portal-card a:not(.secondary-action) { color: #0756a6; font-weight: 600; }
.report-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.report-heading-row h1 { margin: 0; }
.portal-card .top-return { display: inline-flex; flex: 0 0 auto; padding: .55rem .8rem; border: 1px solid #ced9e7; border-radius: 7px; background: #f8fbff; color: #0756a6; text-decoration: none; font-size: .88rem; }
.portal-card .top-return:hover, .portal-card .top-return:focus { border-color: #0756a6; background: #edf5ff; }
.report-filter-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .9rem 1rem; margin: 1.4rem 0 1.2rem; padding: 1.2rem; border: 1px solid #d9e1ed; border-radius: 10px; background: #f8fbff; }
.report-filter-grid label { margin: 0; color: #3e4d63; }
.report-filter-grid label > span { display: block; margin-bottom: .38rem; font-size: .9rem; font-weight: 600; }
.report-filter-grid input, .report-filter-grid select { display: block; width: 100%; min-width: 0 !important; margin: 0 !important; }
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-12 { grid-column: 1 / -1; }
.filter-actions { display: flex; gap: .75rem; align-items: center; justify-content: flex-end; }
.filter-actions button { margin: 0; }
.portal-card .tenant-status-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; margin: 0; padding: 0; border: 0; background: transparent; }
.portal-card .tenant-status-toggle:hover, .portal-card .tenant-status-toggle:focus { background: transparent; outline: 3px solid rgba(7,86,166,.18); outline-offset: 2px; }
.tenant-status-toggle img { display: block; width: 42px; height: auto; }
.check-label { display: inline-flex !important; align-items: center; margin: 0 !important; }
.check-label input { width: auto !important; margin: 0 .4rem 0 0 !important; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: .7rem; margin: 1rem 0 0; color: #526177; font-size: .9rem; }
.pagination button { margin: 0; }
.portal-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin: 2rem 0; }
.portal-menu a, .secondary-action { display: block; padding: .85rem 1rem; border: 1px solid #ced9e7; border-radius: 8px; color: #0756a6; background: #f8fbff; font-weight: 600; text-decoration: none; }
.portal-menu a:hover, .portal-menu a:focus, .secondary-action:hover, .secondary-action:focus { border-color: #0756a6; background: #edf5ff; }
.admin-menu { display: contents; }
.portal-actions { display: flex; gap: .75rem; align-items: center; justify-content: flex-end; }
.portal-actions .sign-in { width: auto; margin: 0; }
@media (max-width: 700px) { .login-shell, .portal-shell { padding: 1rem; } .login-card, .portal-card { padding: 1.5rem; } .portal-actions, .report-heading-row { align-items: stretch; flex-direction: column; } .portal-actions .sign-in { width: 100%; } .portal-card table { display: block; overflow-x: auto; white-space: nowrap; } .portal-card input:not(.form-control), .portal-card select { width: 100%; margin: .25rem 0 .6rem; } .portal-card button { width: 100%; margin: .5rem 0; } .col-3, .col-4, .col-5, .col-6 { grid-column: 1 / -1; } .filter-actions, .pagination { align-items: stretch; flex-direction: column; } }
