html[data-bs-layout="boxed"] body { background: var(--laudos-canvas); }
html:has(body.auth-page) {
    min-height: 100%;
    background: var(--laudos-canvas);
}
html[data-bs-theme="dark"]:has(body.auth-page) {
    background: #050914;
}
html[data-bs-layout="boxed"] body.auth-page {
    background:
        radial-gradient(circle at 50% 0%, rgb(255 255 255 / 54%), transparent 44%),
        var(--laudos-canvas);
    background-color: var(--laudos-canvas);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
html[data-bs-theme="dark"][data-bs-layout="boxed"] body.auth-page {
    background:
        radial-gradient(circle at 50% 0%, rgb(19 72 160 / 42%), transparent 46%),
        #050914;
    background-color: #050914;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.dashboard-page .page { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.dashboard-page .app-topbar,
.dashboard-page .app-navigation { width: min(calc(100% - 32px), 1280px); margin-inline: auto; border: 1px solid color-mix(in srgb, var(--laudos-label) 10%, transparent); border-radius: var(--laudos-section-radius) !important; background: var(--laudos-surface); box-shadow: 0 1px 2px rgb(0 0 0 / 6%); overflow: hidden; }
.dashboard-page .app-topbar { overflow: visible; position: relative; z-index: 1000; }
.dashboard-page .app-navigation { position: relative; z-index: 1; }
.dashboard-page .app-topbar .account-dropdown { position: absolute; z-index: 1001; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.dashboard-metric-col { width: 100%; min-width: 0; padding: 0; flex: none; }
.dashboard-metric-card { width: 100%; min-height: 148px; border: 0; border-radius: var(--laudos-section-radius) !important; background: var(--laudos-surface); box-shadow: 0 1px 2px rgb(0 0 0 / 6%); }
.dashboard-metric-card .card-body { display: flex; flex-direction: column; justify-content: space-between; padding: var(--laudos-space-6); }
.dashboard-metric-label { max-width: 14ch; font-size: var(--laudos-caption-size); font-weight: 500; line-height: 1.35; }
.dashboard-metric-icon { width: 40px; height: 40px; color: var(--laudos-link); background: var(--laudos-surface-secondary); }
.dashboard-metric-value { color: var(--laudos-label); font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: 0; }
.dashboard-period { width: auto; min-width: 160px; }
@media (max-width: 991.98px) { .dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-period { width: 100%; } .dashboard-overview .d-flex.align-items-center.justify-content-between { align-items: stretch !important; flex-direction: column; } }
.dashboard-page .app-topbar { margin-top: 16px; }
.dashboard-page .app-navigation { margin-top: 8px; }
.dashboard-page .app-topbar .container-xl,
.dashboard-page .app-navigation .container-xl { width: 100%; max-width: none; }
.dashboard-page .page-wrapper { padding-top: 0; }
.auth-page {
    --auth-bg: #f2f2f7;
    --auth-phone-bg: #ffffff;
    --auth-text: #071226;
    --auth-muted: #6f7890;
    --auth-field: #ffffff;
    --auth-field-border: #e2e2e8;
    --auth-field-shadow: inset 0 1px 0 rgb(255 255 255 / 92%);
    --auth-blue: #1167ff;
    --auth-blue-hover: #045af1;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 0%, rgb(255 255 255 / 54%), transparent 44%),
        var(--auth-bg);
    background-attachment: fixed;
    background-color: var(--auth-bg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
html[data-bs-theme="dark"] .auth-page {
    --auth-bg: #050914;
    --auth-phone-bg: #080f1c;
    --auth-text: #f7f8fb;
    --auth-muted: #9aa6bd;
    --auth-field: #1c1c1e;
    --auth-field-border: #34343a;
    --auth-field-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
    --auth-blue: #0a84ff;
    --auth-blue-hover: #2f98ff;
    background:
        radial-gradient(circle at 50% 0%, rgb(19 72 160 / 42%), transparent 46%),
        var(--auth-bg);
    background-color: var(--auth-bg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.auth-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.auth-phone {
    position: relative;
    width: min(100%, 430px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 32px;
    overflow: hidden;
    border-radius: 34px;
    color: var(--auth-text);
    background: transparent;
    box-shadow: none;
}
html[data-bs-theme="dark"] .auth-phone {
    box-shadow: none;
}
.auth-theme-control {
    position: absolute;
    top: 28px;
    right: 26px;
}
.auth-theme-control .theme-toggle {
    width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--auth-field) 82%, transparent);
    opacity: .72;
}
.auth-brand-block {
    display: grid;
    justify-items: center;
    gap: 2px;
    margin-top: clamp(62px, 10.5vh, 96px);
}
.auth-doctor-icon {
    width: 136px;
    height: auto;
    display: block;
}
html[data-bs-theme="dark"] .auth-doctor-icon {
    filter: invert(1);
}
.auth-wordmark {
    color: var(--auth-text);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
}
.auth-form {
    width: 100%;
    margin-top: clamp(34px, 5.5vh, 52px);
}
.auth-form h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.auth-alert {
    margin-bottom: 16px;
    border-radius: 18px;
    font-size: .875rem;
}
.alert,
.admin-feedback,
.modelos-feedback {
    transition: opacity .18s ease, transform .18s ease;
}
.alert.is-dismissing,
.admin-feedback.is-dismissing,
.modelos-feedback.is-dismissing {
    opacity: 0;
    transform: translateY(-4px);
}
.auth-field + .auth-field {
    margin-top: 14px;
}
.auth-control {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--auth-field-border);
    border-radius: 18px;
    background: var(--auth-field);
    box-shadow: var(--auth-field-shadow);
}
.auth-control:focus-within {
    border-color: color-mix(in srgb, var(--auth-blue) 64%, var(--auth-field-border));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-blue) 16%, transparent), var(--auth-field-shadow);
}
.auth-control-icon {
    width: 24px;
    height: 24px;
    margin-left: 18px;
    opacity: .72;
}
.auth-control .form-control {
    min-height: 56px;
    flex: 1;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--auth-text);
    box-shadow: none;
    font-size: 1rem;
    font-weight: 500;
}
.auth-control .form-control::placeholder {
    color: var(--auth-muted);
    opacity: 1;
}
.auth-control .input-group-text {
    border: 0;
    background: transparent;
    padding: 0 6px 0 0;
}
.auth-control .password-toggle {
    color: var(--auth-muted);
    background: transparent;
}
.auth-submit {
    width: 100%;
    min-height: 58px;
    margin-top: 20px;
    border: 0;
    border-radius: 13px;
    background: var(--auth-blue);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgb(17 103 255 / 22%);
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.auth-submit:hover {
    background: var(--auth-blue-hover);
    color: #fff;
    box-shadow: 0 14px 30px rgb(17 103 255 / 28%);
    transform: translateY(-1px);
}
.auth-submit:active {
    box-shadow: 0 4px 14px rgb(17 103 255 / 20%);
    transform: translateY(1px);
}
.auth-forgot-wrap {
    display: grid;
    justify-items: center;
    gap: 3px;
    margin-top: 22px;
}
.auth-forgot-icon {
    width: 22px;
    height: 22px;
    opacity: .9;
}
.auth-forgot {
    display: inline-block;
    width: fit-content;
    margin: 0;
    color: var(--auth-text);
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    opacity: .78;
    outline: 0;
    transition: color .18s ease, opacity .18s ease, text-shadow .18s ease;
}
.auth-forgot:hover,
.auth-forgot:focus-visible {
    color: var(--auth-text);
    opacity: 1;
    outline: 0;
    box-shadow: none;
    text-decoration: none;
    text-shadow: 0 0 14px color-mix(in srgb, var(--auth-blue) 34%, transparent);
}
.page-center .container-tight { max-width: 424px; }
.page-center .card-body { padding: var(--laudos-space-8); }
.page-body { margin-block: var(--laudos-space-8); }
.breadcrumb-link, .breadcrumb-current { display: inline-flex; align-items: center; gap: var(--laudos-space-2); }
.breadcrumb-link { color: var(--laudos-link); text-decoration: none; }
.breadcrumb-link:hover { text-decoration: underline; }
.breadcrumb-current { color: var(--laudos-label); }
.breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--laudos-secondary-label); }
.app-breadcrumb { min-height: 48px; align-items: center; }
.navbar-brand { text-decoration: none; color: var(--tblr-body-color); }
.brand-name { font-size: 1.25rem; font-weight: 600; letter-spacing: 0; }
.brand-icon { width: 30px; height: 30px; }
.app-icon { flex-shrink: 0; vertical-align: middle; }
[data-bs-theme="dark"] .app-icon { filter: invert(1); }
.app-topbar { min-height: 72px; }
.app-topbar { position: relative; z-index: 1031; overflow: visible; }
.account-menu { position: relative; min-width: 0; }
.account-trigger { border: 0; background: transparent; color: var(--tblr-body-color); border-radius: var(--laudos-control-radius); padding: 8px; gap: 10px; max-width: 320px; min-height: 44px; text-align: left; }
.account-trigger:hover, .account-trigger[aria-expanded="true"] { background: var(--tblr-bg-surface-secondary); }
.account-label { min-width: 0; }
.account-name { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-role { display: block; font-size: var(--laudos-caption-size); color: var(--tblr-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-dropdown { inset: auto 0 auto auto !important; top: calc(100% + 8px) !important; left: auto !important; right: 0 !important; transform: none !important; width: min(272px, calc(100vw - 24px)); max-width: calc(100vw - 24px); z-index: 1032 !important; border-radius: var(--laudos-radius); }
.account-menu:focus-within .account-dropdown { display: block; }
.account-dropdown .dropdown-item { min-height: 44px; gap: 12px; }
.account-dropdown .dropdown-header { white-space: normal; text-transform: none; letter-spacing: 0; }
.app-navigation .nav-link { gap: 8px; min-height: 48px; }
.app-navigation .nav-item.active .nav-link { color: var(--laudos-link); }
.theme-toggle { width: 44px; height: 44px; flex-shrink: 0; }
.theme-sun { display: none; }
[data-bs-theme="dark"] .theme-sun { display: inline; }
[data-bs-theme="dark"] .theme-moon { display: none; }
.password-toggle { width: 44px; height: 44px; min-height: 44px; }
.min-width-0 { min-width: 0; }
.access-table { table-layout: fixed; width: 100%; }
.access-table td, .access-table thead th { white-space: normal; overflow-wrap: anywhere; }
.access-table thead th, .page-pretitle { letter-spacing: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 1100; }
.skip-link:focus { top: 8px; }
@media (max-width: 575.98px) {
    .account-label { display: none; }
    .account-trigger { padding: 4px; gap: 4px; }
    .app-topbar { min-height: 68px; }
    .page-center .card-body { padding: var(--laudos-space-6); }
    .page-body { margin-block: var(--laudos-space-6); }
    .access-table { font-size: var(--laudos-caption-size); }
    .access-table td, .access-table thead th { padding-inline: 8px; }
    .access-table th:first-child { width: 42%; }
}
