html, body { font-family: Roboto, "Segoe UI", Arial, sans-serif; }

.company-switcher { min-width: 280px; max-width: 360px; background: #fff; border-radius: 4px; }

/* Static account pages (login / change password) – no MudBlazor interactivity there */
.account-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #eef3f2; }
.account-card { width: 100%; max-width: 400px; background: #fff; border-radius: 8px; padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.account-card h1 { font-size: 1.5rem; margin: 0 0 4px; color: #0f5c4d; }
.account-card .subtitle { color: #666; margin: 0 0 24px; font-size: .9rem; }
.account-card label { display: block; font-size: .85rem; color: #444; margin: 12px 0 4px; }
.account-card input[type=text], .account-card input[type=password] {
    width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.account-card input:focus { outline: none; border-color: #0f5c4d; }
.account-card button { width: 100%; margin-top: 24px; padding: 11px; background: #0f5c4d; color: #fff; border: 0; border-radius: 4px; font-size: 1rem; cursor: pointer; }
.account-card button:hover { background: #0b463b; }
.account-card .error { background: #fdecea; color: #b3261e; padding: 10px 12px; border-radius: 4px; font-size: .9rem; margin-bottom: 8px; }
.account-card .info { background: #e8f1ef; color: #0f5c4d; padding: 10px 12px; border-radius: 4px; font-size: .9rem; margin-bottom: 8px; }
.account-card .validation-message { color: #b3261e; font-size: .8rem; }
.account-card a { color: #0f5c4d; }

#blazor-error-ui { background: #fff3cd; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 2000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* Public portal (static pages, PortalLayout) */
.portal-shell { min-height: 100vh; display: flex; flex-direction: column; background: #eef3f2; font-family: Roboto, Arial, sans-serif; color: #222; }
.portal-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 24px; background: #0f5c4d; }
.portal-header a { color: #fff; text-decoration: none; }
.portal-header nav a { margin-left: 20px; font-size: .95rem; }
.portal-header nav a:hover { text-decoration: underline; }
.portal-brand { font-size: 1.3rem; font-weight: 500; }
.portal-main { flex: 1; width: 100%; max-width: 760px; box-sizing: border-box; margin: 24px auto; padding: 28px 32px; background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.portal-footer { text-align: center; padding: 16px; color: #777; font-size: .8rem; }
.portal-main h1 { font-size: 1.5rem; margin: 0 0 4px; color: #0f5c4d; }
.portal-main h2 { font-size: 1.1rem; margin: 20px 0 8px; color: #0f5c4d; }
.portal-main .subtitle { color: #666; margin: 0 0 20px; font-size: .9rem; }
.portal-main fieldset { border: 1px solid #dde5e3; border-radius: 6px; margin: 0 0 18px; padding: 8px 16px 16px; }
.portal-main legend { padding: 0 6px; font-weight: 500; color: #0f5c4d; }
.portal-main label { display: block; font-size: .85rem; color: #444; margin: 12px 0 4px; }
.portal-main input[type=text], .portal-main input[type=tel], .portal-main input[type=email], .portal-main input[type=number],
.portal-main input[type=date], .portal-main select, .portal-main textarea {
    width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; font-family: inherit; background: #fff; }
.portal-main input:focus, .portal-main select:focus, .portal-main textarea:focus { outline: none; border-color: #0f5c4d; }
.portal-main input.invalid, .portal-main select.invalid, .portal-main textarea.invalid { border-color: #b3261e; }
.portal-main input[type=file] { margin-top: 4px; }
.portal-main .radio-row { display: flex; gap: 24px; margin-top: 8px; }
.portal-main .radio-row label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .95rem; }
.portal-main .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.portal-main button, .portal-main .button-link { display: inline-block; margin-top: 8px; padding: 11px 28px; background: #0f5c4d; color: #fff; border: 0; border-radius: 4px; font-size: 1rem; cursor: pointer; text-decoration: none; }
.portal-main button:hover, .portal-main .button-link:hover { background: #0b463b; }
.portal-main .error { background: #fdecea; color: #b3261e; padding: 10px 12px; border-radius: 4px; font-size: .9rem; margin-bottom: 12px; }
.portal-main .hint { color: #8a5a00; font-size: .8rem; margin-top: 6px; }
.portal-main .validation-message { color: #b3261e; font-size: .8rem; margin-top: 2px; }
.portal-main .captcha-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.portal-main .captcha-row img { border: 1px solid #dde5e3; border-radius: 4px; }
.portal-main .captcha-row > div { flex: 1; min-width: 160px; }
.portal-main .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.portal-main a { color: #0f5c4d; }
.portal-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.portal-tile { display: block; padding: 20px; border: 1px solid #dde5e3; border-radius: 6px; text-decoration: none; color: #333; }
.portal-tile:hover { border-color: #0f5c4d; background: #f6faf9; }
.portal-tile strong { display: block; color: #0f5c4d; font-size: 1.05rem; margin-bottom: 6px; }
.portal-tile span { font-size: .9rem; color: #555; }
.portal-reference { display: inline-flex; flex-direction: column; padding: 12px 20px; margin: 8px 0 16px; background: #e8f1ef; border-radius: 6px; }
.portal-reference span { font-size: .8rem; color: #555; }
.portal-reference strong { font-size: 1.4rem; color: #0f5c4d; letter-spacing: .5px; }
.portal-result { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #dde5e3; }
.portal-result dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.portal-result dt { color: #666; font-size: .9rem; }
.portal-result dd { margin: 0; }
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; background: #0f5c4d; color: #fff; font-size: .85rem; }
.portal-timeline { list-style: none; padding: 0; margin: 0; }
.portal-timeline li { padding: 8px 0 8px 14px; border-left: 3px solid #0f5c4d; margin-bottom: 6px; }
.portal-timeline .when { display: block; font-size: .8rem; color: #777; }
@media (max-width: 600px) {
    .portal-main { margin: 0; border-radius: 0; padding: 20px 16px; }
    .portal-main .two-col, .portal-tiles { grid-template-columns: 1fr; }
    .portal-header nav a { margin: 0 16px 0 0; }
}

/* Client portal (ClientLayout) */
.portal-main.wide { max-width: 1100px; }
.portal-header nav { display: flex; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; margin: 0 0 0 20px; }
.portal-header .link-button { background: none; border: 0; color: #fff; font-size: .95rem; cursor: pointer; padding: 0; margin: 0; }
.portal-header .link-button:hover { text-decoration: underline; }
.portal-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 16px; }
.portal-table th, .portal-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #dde5e3; }
.portal-table th { color: #0f5c4d; font-weight: 500; }
.portal-table .num { text-align: right; }
.portal-table td.expired { color: #b3261e; font-weight: 500; }
.portal-table td.expiring { color: #8a5a00; font-weight: 500; }
.portal-table input[type=number], .portal-table input[type=text] { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid #c5d0cd; border-radius: 4px; }
.period-picker { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.period-picker label { margin: 0; }
.period-picker input, .period-picker select { padding: 6px 8px; border: 1px solid #c5d0cd; border-radius: 4px; }
