/* Mesmo sistema visual do portal administrativo Doutor Perito. */
:root {
    --dp-teal: #0F8A76;
    --dp-teal-hover: #0C7464;
    --dp-teal-soft: #E7F4F0;
    --dp-verde: #0A4F45;
    --dp-menta: #5FD9C2;
    --dp-ambar: #E8A04A;
    --dp-areia: #EFE9DD;
    --dp-carvao: #21302C;
    --dp-page-bg: #F4F1EA;
    --dp-surface: #FFFFFF;
    --dp-field-bg: #FFFDF8;
    --dp-border: #E3DDD0;
    --dp-border-input: #D8E3DF;
    --dp-text: #21302C;
    --dp-text-2: #5F7069;
    --dp-text-3: #7A8884;
    --dp-font-sans: 'Figtree', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --dp-font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --bs-primary: var(--dp-teal);
    --bs-primary-rgb: 15, 138, 118;
    --bs-body-bg: var(--dp-page-bg);
    --bs-body-color: var(--dp-text);
    --bs-body-font-family: var(--dp-font-sans);
    --bs-border-color: var(--dp-border);
    --bs-link-color: var(--dp-teal);
    --bs-link-hover-color: var(--dp-teal-hover);
    --bs-focus-ring-color: rgba(15, 138, 118, .25);
}

* { box-sizing: border-box; }
[ng-cloak] { display: none !important; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { min-height: 100vh; background: var(--dp-page-bg); color: var(--dp-text); font-family: var(--dp-font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--dp-verde); font-weight: 800; letter-spacing: -.02em; }
a { color: var(--dp-teal); }
a:hover { color: var(--dp-teal-hover); }
::selection { background: var(--dp-teal); color: #fff; }

.btn { border-radius: 11px; font-weight: 700; }
.btn-primary { --bs-btn-bg: var(--dp-teal); --bs-btn-border-color: var(--dp-teal); --bs-btn-hover-bg: var(--dp-teal-hover); --bs-btn-hover-border-color: var(--dp-teal-hover); box-shadow: 0 8px 22px rgba(15, 138, 118, .22); transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline-primary { --bs-btn-color: var(--dp-teal); --bs-btn-border-color: var(--dp-teal); --bs-btn-hover-bg: var(--dp-teal); --bs-btn-hover-border-color: var(--dp-teal); }
.form-control, .form-select { background-color: var(--dp-field-bg); border-color: var(--dp-border-input); border-radius: 11px; color: var(--dp-text); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--dp-teal); box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.form-check-input:checked { background-color: var(--dp-teal); border-color: var(--dp-teal); }
.form-label { color: var(--dp-text); font-size: 14px; font-weight: 700; }

.app-layout { display: block; min-height: 100vh; }
.sidebar { position: fixed; z-index: 1020; top: 0; bottom: 0; left: 0; width: 255px; display: flex; flex-direction: column; height: 100vh; padding: 24px 16px 18px; overflow: hidden; background: var(--dp-verde); color: #fff; }
.sidebar-logo { display: flex; align-items: center; gap: 12px; padding: 4px 8px 28px; color: #fff; text-decoration: none; }
.sidebar-logo:hover { color: #fff; }
.sidebar-logo-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: var(--dp-teal); color: #fff; }
.sidebar-logo-text { display: flex; flex-direction: column; min-width: 0; }
.sidebar-logo-text span { font-size: 1.08rem; font-weight: 700; }
.sidebar-logo-text strong, .app-topbar-brand strong, .public-brand strong { color: var(--dp-menta); }
.sidebar-logo-text small { color: rgba(255,255,255,.55); font-size: .72rem; }
.sidebar-menu { display: flex; flex: 1 1 auto; flex-direction: column; gap: 6px; min-height: 0; overflow-y: auto; }
.sidebar-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.72); font: inherit; font-size: .92rem; font-weight: 600; text-align: left; text-decoration: none; transition: background .15s ease, color .15s ease; }
.sidebar-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-link.active { background: rgba(15, 138, 118, .28); color: #fff; }
.sidebar-link-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: var(--dp-menta); font-size: 19px; }
.sidebar-link.active .sidebar-link-icon { background: var(--dp-teal); color: #fff; }
.sidebar-bottom { display: grid; flex: 0 0 auto; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { min-width: 0; }
.sidebar-user-link { display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; min-width: 0; padding: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.78); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.sidebar-user-link:hover { border-color: rgba(95,217,194,.36); background: rgba(15,138,118,.22); color: #fff; transform: translateY(-1px); }
.sidebar-user-link.dropdown-toggle::after { display: none; }
.sidebar-user-link[aria-expanded="true"] { border-color: rgba(95,217,194,.42); background: rgba(15,138,118,.26); color: #fff; }
.sidebar-user-link:focus-visible { outline: 2px solid var(--dp-menta); outline-offset: 2px; }
.sidebar-user-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--dp-teal); color: #fff; font-size: 21px; }
.sidebar-user-info { display: flex; min-width: 0; flex-direction: column; }
.sidebar-user-info strong, .sidebar-user-info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-info strong { color: #fff; font-size: .8rem; line-height: 1.2; }
.sidebar-user-info small { color: rgba(255,255,255,.56); font-size: .7rem; line-height: 1.35; }
.sidebar-user-action { color: var(--dp-menta); font-size: 18px; opacity: .72; transition: transform .15s ease, opacity .15s ease; }
.sidebar-user-link:hover .sidebar-user-action { opacity: 1; transform: translateX(2px); }
.sidebar-user-link[aria-expanded="true"] .sidebar-user-action { opacity: 1; transform: rotate(180deg); }
.sidebar-user-menu { width: 100%; min-width: 100%; padding: 6px; border: 1px solid rgba(95,217,194,.28); border-radius: 12px; background: #fff; box-shadow: 0 16px 36px rgba(0,0,0,.22); }
.sidebar-user-menu-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; border-radius: 9px; color: var(--dp-text); font-size: .86rem; font-weight: 700; }
.sidebar-user-menu-item:hover, .sidebar-user-menu-item:focus { background: var(--dp-teal-soft); color: var(--dp-verde); }
.sidebar-user-menu-item .material-icons-round { color: var(--dp-teal); font-size: 18px; }
.profile-modal .modal-dialog { max-width: 920px; }
.profile-modal .modal-content { overflow: hidden; border: 0; border-radius: 20px; background: var(--dp-surface); box-shadow: 0 22px 60px rgba(20, 40, 35, .22); }
.profile-loading { display: flex; min-height: 320px; align-items: center; justify-content: center; gap: 12px; background: var(--dp-surface); color: var(--dp-text-2); font-weight: 700; }
.profile-shell { position: relative; display: grid; grid-template-columns: 285px minmax(0, 1fr); min-height: 520px; }
.profile-close { position: absolute; z-index: 2; top: 18px; right: 18px; }
.profile-identity { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px 26px; background: var(--dp-verde); color: #fff; text-align: center; }
.profile-avatar { position: relative; display: grid; width: 108px; height: 108px; place-items: center; margin-bottom: 18px; border: 3px solid rgba(255,255,255,.2); border-radius: 28px; background: rgba(255,255,255,.12); color: var(--dp-menta); box-shadow: 0 18px 34px rgba(0,0,0,.16); }
.profile-avatar.has-photo { background: #fff; }
.profile-avatar img { width: 100%; height: 100%; border-radius: 25px; object-fit: cover; }
.profile-avatar .material-icons-round { font-size: 58px; }
.profile-photo-action { position: absolute; right: -8px; bottom: -8px; display: grid; width: 38px; height: 38px; place-items: center; border: 2px solid var(--dp-verde); border-radius: 12px; background: var(--dp-menta); color: var(--dp-verde); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.profile-photo-action:hover { background: #fff; transform: translateY(-1px); }
.profile-photo-action .material-icons-round { font-size: 19px; }
.profile-photo-input { display: none; }
.profile-kind { margin-bottom: 10px; color: var(--dp-menta); font-family: var(--dp-font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.profile-identity h2 { max-width: 100%; margin: 0 0 6px; overflow-wrap: anywhere; color: #fff; font-size: 1.32rem; line-height: 1.18; }
.profile-identity p { max-width: 100%; margin: 0 0 15px; overflow-wrap: anywhere; color: rgba(255,255,255,.72); font-size: .84rem; }
.profile-identity > strong { padding: 6px 12px; border: 1px solid rgba(95,217,194,.35); border-radius: 999px; background: rgba(15,138,118,.22); color: #fff; font-size: .78rem; }
.profile-edit-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding: 10px 14px; border: 1px solid rgba(95,217,194,.38); border-radius: 11px; background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.profile-edit-button:hover { border-color: var(--dp-menta); background: rgba(95,217,194,.18); transform: translateY(-1px); }
.profile-edit-button .material-icons-round { font-size: 18px; }
.profile-password-button { margin-top: 8px; }
.profile-details { min-width: 0; padding: 28px; overflow-y: auto; background: var(--dp-page-bg); }
.profile-section + .profile-section { margin-top: 18px; }
.profile-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.profile-section-title > .material-icons-round { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--dp-teal-soft); color: var(--dp-teal); font-size: 20px; }
.profile-section-title h3 { margin: 0; font-size: 1.05rem; }
.profile-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-field { min-width: 0; padding: 13px 14px; border: 1px solid var(--dp-border); border-radius: 12px; background: var(--dp-surface); }
.profile-field--wide { grid-column: 1 / -1; }
.profile-field small { display: block; margin-bottom: 5px; color: var(--dp-text-3); font-family: var(--dp-font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.profile-field strong { display: block; overflow-wrap: anywhere; color: var(--dp-text); font-size: .9rem; }
.profile-field p { margin: 0; color: var(--dp-text-2); font-size: .9rem; line-height: 1.5; }
.audit-list { display: grid; gap: 14px; }
.audit-card { overflow: hidden; border: 1px solid var(--dp-border); border-radius: 14px; background: var(--dp-surface); box-shadow: 0 .25rem .75rem rgba(20, 40, 35, .04); }
.audit-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--dp-border); background: var(--dp-field-bg); }
.audit-card-header > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.audit-card-header strong { color: var(--dp-text); font-size: .9rem; }
.audit-card-header small { color: var(--dp-text-3); font-family: var(--dp-font-mono); font-size: .72rem; }
.audit-empty { padding: 16px; color: var(--dp-text-3); font-size: .9rem; }
.audit-change-list { display: grid; gap: 10px; padding: 14px; }
.audit-change { display: grid; gap: 10px; padding: 13px; border: 1px solid var(--dp-border); border-radius: 12px; background: var(--dp-page-bg); }
.audit-change > strong { color: var(--dp-verde); font-size: .9rem; }
.audit-values { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.audit-values > div { min-width: 0; padding: 10px 12px; border: 1px solid var(--dp-border-input); border-radius: 10px; background: var(--dp-surface); }
.audit-values small { display: block; margin-bottom: 4px; color: var(--dp-text-3); font-family: var(--dp-font-mono); font-size: .68rem; text-transform: uppercase; }
.audit-values span:not(.material-icons-round) { display: block; overflow-wrap: anywhere; color: var(--dp-text-2); font-size: .86rem; }
.audit-values > .material-icons-round { align-self: center; color: var(--dp-teal); font-size: 18px; }
.sidebar-link.logout { color: #f4c074; cursor: pointer; }
.sidebar-link.logout:hover { color: #fff; }
.page-content { min-width: 0; margin-left: 255px; padding: 32px 38px; }

.app-topbar, .app-backdrop { display: none; }
.public-header { display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(20px, 7vw, 88px); background: #fff; border-bottom: 1px solid var(--dp-border); }
.public-brand { color: var(--dp-verde); font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.public-page { padding: 22px; }
.hero, .auth-card { border: 1px solid var(--dp-border); border-radius: 16px; background: var(--dp-surface); box-shadow: 0 12px 32px rgba(20, 40, 35, .06); }
.hero { padding: clamp(2rem, 6vw, 4.5rem); background: linear-gradient(135deg, #fff 0%, var(--dp-teal-soft) 100%); }
.eyebrow { color: var(--dp-teal); font-family: var(--dp-font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.metric-card, .content-card { height: 100%; padding: 1.3rem; border: 1px solid var(--dp-border); border-radius: 16px; background: var(--dp-surface); }
.metric-card { box-shadow: 0 .25rem .75rem rgba(20, 40, 35, .04); }
.metric-card strong { display: block; color: var(--dp-teal); font-size: 2rem; }
.content-card .table > :not(caption) > * > * { padding: 15px 16px; border-color: var(--dp-border); vertical-align: middle; }
.content-card .table > thead > tr > th { color: var(--dp-text-2); font-family: var(--dp-font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.content-card .table > tbody > tr:hover > * { background: var(--dp-teal-soft); }
.auth-card { max-width: 760px; margin: 2rem auto; padding: clamp(1.5rem, 5vw, 3rem); }
.status { display: inline-block; padding: .28rem .6rem; border-radius: 100px; background: var(--dp-teal-soft); color: var(--dp-verde); font-family: var(--dp-font-mono); font-size: .72rem; font-weight: 700; }
.choice-card { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--dp-border); border-radius: 11px; background: var(--dp-field-bg); cursor: pointer; }
.opportunity-card { padding: 1.5rem; border: 1px solid var(--dp-border); border-radius: 14px; background: var(--dp-field-bg); }
.opportunity-card__header { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; }
.opportunity-card__header-info { display: flex; flex-direction: column; }
.opportunity-card__tags { display: flex; width: 100%; gap: 0.5rem; }
.opportunity-card__tags > div { flex: 1; display: flex; flex-direction: column; text-align: left; }
.opportunity-card__tags label { font-size: 0.85rem; font-weight: 700; color: var(--dp-text, #212529); margin-bottom: 0.25rem; }
.opportunity-card__meta { display: flex; width: 100%; }
.opportunity-card__meta > div { flex: 1; display: flex; flex-direction: column; text-align: left; }
.opportunity-card__meta label { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 700; color: var(--dp-text, #212529); margin-bottom: 0.25rem; }
.opportunity-card__meta .material-icons-round { font-size: 1.1rem; line-height: 1; }
.opportunity-card__actions { display: flex; gap: 0.5rem; align-items: center; }
.opportunity-card__actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; }
.opportunity-card__actions .material-icons-round { font-size: 1.1rem; line-height: 1; }
.opportunity-card__description-group { display: flex; flex-direction: column; text-align: left; }
.opportunity-card__description-group label { font-size: 0.85rem; font-weight: 700; color: var(--dp-text, #212529); margin-bottom: 0.25rem; }
.acceptance-page { display: grid; gap: 18px; }
.acceptance-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 4px 2px 8px; }
.acceptance-header h1 { margin: 7px 0 8px; font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.1; }
.acceptance-header p { max-width: 680px; margin: 0; color: var(--dp-text-2); }
.acceptance-refresh { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 44px; }
.acceptance-refresh .material-icons-round { font-size: 19px; }
.acceptance-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.acceptance-summary-card { display: grid; min-height: 132px; gap: 5px; padding: 18px; border: 1px solid var(--dp-border); border-radius: 14px; background: var(--dp-surface); box-shadow: 0 .25rem .75rem rgba(20, 40, 35, .04); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.acceptance-summary-card:hover { border-color: #a9ded3; box-shadow: 0 .55rem 1.2rem rgba(20, 40, 35, .08); transform: translateY(-1px); }
.acceptance-summary-card:focus-visible { outline: 3px solid rgba(15, 138, 118, .22); outline-offset: 2px; }
.acceptance-summary-card.active { border-color: var(--dp-teal); box-shadow: 0 0 0 3px rgba(15, 138, 118, .12), 0 .55rem 1.2rem rgba(20, 40, 35, .08); }
.acceptance-summary-card--total { border-color: #a9ded3; background: linear-gradient(135deg, #f7fffd 0%, var(--dp-teal-soft) 100%); }
.acceptance-summary-card > .material-icons-round { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: auto; border-radius: 10px; background: var(--dp-teal-soft); color: var(--dp-teal); font-size: 21px; }
.acceptance-summary-card--total > .material-icons-round { background: var(--dp-teal); color: #fff; }
.acceptance-summary-card small { color: var(--dp-text-2); font-size: .82rem; font-weight: 700; }
.acceptance-summary-card strong { color: var(--dp-verde); font-size: 2rem; line-height: 1; }
.acceptance-state { display: grid; min-height: 250px; place-items: center; gap: 8px; padding: 28px; border: 1px dashed var(--dp-border-input); border-radius: 16px; background: var(--dp-surface); color: var(--dp-text-2); text-align: center; }
.acceptance-state > .material-icons-round { color: var(--dp-teal); font-size: 38px; }
.acceptance-state strong { color: var(--dp-verde); font-size: 1rem; }
.acceptance-state small { max-width: 420px; color: var(--dp-text-3); }
.acceptance-group-list { display: grid; gap: 16px; }
.acceptance-group { overflow: hidden; border: 1px solid var(--dp-border); border-radius: 16px; background: var(--dp-surface); box-shadow: 0 .35rem 1rem rgba(20, 40, 35, .05); }
.acceptance-group-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--dp-border); background: var(--dp-field-bg); }
.acceptance-group-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acceptance-group-title > .material-icons-round { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 11px; background: var(--dp-teal-soft); color: var(--dp-teal); font-size: 22px; }
.acceptance-group-title h2 { margin: 0 0 3px; overflow-wrap: anywhere; font-size: 1.08rem; line-height: 1.25; }
.acceptance-group-title small { display: block; overflow: hidden; color: var(--dp-text-3); font-family: var(--dp-font-mono); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.acceptance-count { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: var(--dp-teal-soft); color: var(--dp-verde); font-family: var(--dp-font-mono); font-size: .72rem; font-weight: 700; }
.acceptance-list { display: grid; gap: 10px; padding: 14px; }
.acceptance-item { display: grid; grid-template-columns: minmax(220px, 1.35fr) minmax(260px, 1fr) auto; gap: 14px; align-items: center; min-width: 0; padding: 14px; border: 1px solid var(--dp-border); border-radius: 12px; background: var(--dp-surface); }
.acceptance-doctor { display: flex; align-items: center; gap: 11px; min-width: 0; }
.acceptance-avatar { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--dp-verde); color: #fff; font-size: 21px; }
.acceptance-doctor strong { display: block; overflow: hidden; color: var(--dp-text); font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.acceptance-doctor small { color: var(--dp-text-3); font-size: .76rem; }
.acceptance-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; min-width: 0; }
.acceptance-meta > div { min-width: 0; padding: 9px 11px; border: 1px solid var(--dp-border); border-radius: 10px; background: var(--dp-field-bg); }
.acceptance-meta small { display: block; margin-bottom: 2px; color: var(--dp-text-3); font-family: var(--dp-font-mono); font-size: .64rem; text-transform: uppercase; }
.acceptance-meta strong { display: block; overflow: hidden; color: var(--dp-text-2); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.acceptance-status { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 120px; padding: 8px 10px; border-radius: 999px; font-family: var(--dp-font-mono); font-size: .72rem; font-weight: 700; }
.acceptance-status .material-icons-round { font-size: 17px; }
.acceptance-status--waiting { background: #fff4df; color: #7a4d10; }
.acceptance-status--accepted { background: var(--dp-teal-soft); color: var(--dp-verde); }
.acceptance-status--declined { background: #fde7e7; color: #8a2525; }
.acceptance-reason { grid-column: 1 / -1; margin: 0; padding: 11px 13px; border-radius: 10px; background: #fff8ec; color: var(--dp-text-2); font-size: .86rem; line-height: 1.45; }

/* Cadastro público em etapas, alinhado ao wizard usado no Web. */
.registration-wizard { width: min(1060px, 100%); margin: 24px auto 50px; }
.wizard-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 28px; padding: 8px 8px 0; }
.wizard-heading.wizard-heading--inside { margin: 0; padding: 30px clamp(24px, 5vw, 48px) 22px; border-bottom: 1px solid var(--dp-border); background: var(--dp-field-bg); }
.wizard-heading.wizard-heading--inside h1 { font-size: clamp(1.45rem, 2.2vw, 2rem); }
.wizard-heading.wizard-heading--inside .wizard-heading-icon { flex-basis: 62px; width: 62px; height: 62px; border-radius: 18px; }
.wizard-heading.wizard-heading--inside .wizard-heading-icon .material-icons-round { font-size: 31px; }
.wizard-heading h1 { max-width: 720px; margin: 7px 0 8px; font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.08; }
.wizard-heading p { max-width: 680px; margin: 0; color: var(--dp-text-2); font-size: 1rem; line-height: 1.6; }
.wizard-heading-icon { display: grid; flex: 0 0 82px; width: 82px; height: 82px; place-items: center; border: 1px solid #bfe4dc; border-radius: 24px; background: linear-gradient(145deg, #fff, var(--dp-teal-soft)); color: var(--dp-teal); box-shadow: 0 14px 30px rgba(15, 138, 118, .12); }
.wizard-heading-icon .material-icons-round { font-size: 40px; }
.wizard-progress { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 22px; padding: 0 30px; list-style: none; }
.wizard-progress::before { position: absolute; z-index: 0; top: 21px; right: 12%; left: 12%; height: 2px; background: var(--dp-border); content: ''; }
.wizard-progress li { position: relative; z-index: 1; }
.wizard-progress button { display: flex; width: 100%; align-items: center; flex-direction: column; gap: 8px; padding: 0 8px; border: 0; background: transparent; color: var(--dp-text-3); font: inherit; font-size: .76rem; font-weight: 700; text-align: center; }
.wizard-progress button:disabled { opacity: 1; cursor: default; }
.wizard-step-number { display: grid; width: 44px; height: 44px; place-items: center; border: 2px solid var(--dp-border); border-radius: 50%; background: var(--dp-page-bg); color: var(--dp-text-3); font-family: var(--dp-font-mono); font-size: .82rem; transition: all .2s ease; }
.wizard-step-number .material-icons-round { font-size: 20px; }
.wizard-progress li.active .wizard-step-number { border-color: var(--dp-teal); background: var(--dp-teal); color: #fff; box-shadow: 0 0 0 6px rgba(15, 138, 118, .12); }
.wizard-progress li.active .wizard-step-title { color: var(--dp-verde); }
.wizard-progress li.complete .wizard-step-number { border-color: var(--dp-teal); background: var(--dp-teal-soft); color: var(--dp-teal); }
.wizard-progress li.complete button { cursor: pointer; }
.wizard-card { min-height: 510px; overflow: hidden; border: 1px solid var(--dp-border); border-radius: 22px; background: var(--dp-surface); box-shadow: 0 18px 45px rgba(20, 40, 35, .08); }
.wizard-panel { padding: clamp(24px, 5vw, 48px); animation: wizard-panel-in .22s ease-out; }
.edit-profile-wizard .wizard-panel { padding-block: 22px; }
.edit-profile-wizard .wizard-panel + .wizard-panel { padding-top: 10px; }
@keyframes wizard-panel-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.wizard-panel-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--dp-border); }
.wizard-panel-heading.wizard-panel-heading--compact { gap: 10px; margin-bottom: 18px; padding-bottom: 12px; }
.wizard-panel-heading.wizard-panel-heading--compact > .material-icons-round { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; font-size: 19px; }
.wizard-panel-heading.wizard-panel-heading--compact h2 { margin: 0 0 2px; font-size: 1.05rem; }
.wizard-panel-heading.wizard-panel-heading--compact p { font-size: .82rem; line-height: 1.4; }
.wizard-panel-heading > .material-icons-round { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: var(--dp-teal-soft); color: var(--dp-teal); font-size: 23px; }
.wizard-panel-heading h2 { margin: 1px 0 5px; font-size: 1.3rem; }
.wizard-panel-heading p { margin: 0; color: var(--dp-text-2); font-size: .92rem; }
.wizard-panel .form-control, .wizard-panel .form-select { min-height: 48px; padding: .68rem .85rem; }
.wizard-panel textarea.form-control { min-height: auto; }
.wizard-panel .form-control.ng-touched.ng-invalid, .wizard-panel .form-select.ng-touched.ng-invalid { border-color: #dc3545; }
.wizard-panel .invalid-feedback:not(.ng-hide) { display: block; }
.optional-label { color: var(--dp-text-3); font-size: .7rem; font-weight: 500; }
.form-hint { margin-top: 6px; color: var(--dp-text-3); font-size: .75rem; text-align: right; }
.wizard-check { display: flex; width: 100%; min-height: 48px; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--dp-border-input); border-radius: 11px; background: var(--dp-field-bg); cursor: pointer; }
.wizard-check input { flex: 0 0 auto; margin: 0; }
.wizard-check span { display: flex; min-width: 0; flex-direction: column; }
.wizard-check strong { color: var(--dp-text); font-size: .82rem; }
.wizard-check small { color: var(--dp-text-3); font-size: .72rem; }
.field-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 7px 0 11px; }
.field-heading > div { display: flex; flex-direction: column; }
.field-heading small { margin-top: 2px; color: var(--dp-text-3); }
.selection-counter { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: var(--dp-teal-soft); color: var(--dp-teal); font-family: var(--dp-font-mono); font-size: .68rem; font-weight: 700; }
.specialty-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-height: 245px; padding: 2px; overflow-y: auto; }
.specialty-option { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 10px 12px; border: 1px solid var(--dp-border); border-radius: 11px; background: var(--dp-field-bg); color: var(--dp-text-2); font: inherit; font-size: .84rem; font-weight: 650; text-align: left; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.specialty-option:hover { border-color: #a9ded3; background: var(--dp-teal-soft); color: var(--dp-verde); }
.specialty-option.selected { border-color: var(--dp-teal); background: var(--dp-teal-soft); color: var(--dp-verde); }
.specialty-option .material-icons-round { color: var(--dp-teal); font-size: 19px; }
.security-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 13px 15px; border: 1px solid #bfe4dc; border-radius: 12px; background: var(--dp-teal-soft); color: var(--dp-verde); font-size: .82rem; }
.security-note .material-icons-round { color: var(--dp-teal); font-size: 20px; }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--dp-border); }
.wizard-actions .btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding-inline: 18px; }
.wizard-actions .material-icons-round { font-size: 18px; }
.btn-finish { min-width: 190px; }
.profile-edit-actions { margin-right: clamp(24px, 5vw, 48px); margin-bottom: clamp(24px, 5vw, 48px); margin-left: clamp(24px, 5vw, 48px); }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.upload-card { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px; border: 1px dashed #a9d9d0; border-radius: 16px; background: #fbfffe; }
.upload-card--wide { width: 100%; }
.upload-card h3 { margin: 0 0 5px; color: var(--dp-verde); font-size: 1rem; }
.upload-card p { margin: 0 0 12px; color: var(--dp-text-3); font-size: .78rem; line-height: 1.45; }
.upload-card file-uploader { display: block; min-width: 0; }
.upload-card .input-group { flex-wrap: nowrap; }
.upload-card .input-group .form-control { min-width: 0; height: 39px; min-height: 39px; padding: 6px 9px; font-size: .76rem; }
.upload-card .input-group .btn { min-height: 39px; padding: 6px 9px; font-size: .74rem; }
.upload-card-icon, .photo-preview { display: grid; flex: 0 0 72px; width: 72px; height: 72px; place-items: center; overflow: hidden; border-radius: 18px; background: var(--dp-teal-soft); color: var(--dp-teal); }
.upload-card-icon .material-icons-round, .photo-preview > .material-icons-round { font-size: 32px; }
.photo-preview.has-photo { border: 2px solid var(--dp-teal); background: #fff; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.pericia-wizard { width: min(1120px, 100%); }
.dp-date { position: relative; }
.dp-date .form-control { padding-right: 42px; }
.dp-date-icon { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--dp-text-3); font-size: 20px; pointer-events: none; }
.document-card { height: 100%; padding: 16px; border: 1px solid var(--dp-border); border-radius: 14px; background: var(--dp-field-bg); }
.documento-upload-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; min-height: 72px; padding: 12px; border: 1px dashed #a9d9d0; border-radius: 12px; background: #fff; }
.documento-upload-card__icone { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; background: var(--dp-teal-soft); color: var(--dp-teal); font-size: 24px; }
.documento-upload-card__conteudo { display: flex; min-width: 0; flex-direction: column; }
.documento-upload-card__conteudo strong { overflow: hidden; color: var(--dp-text); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.documento-upload-card__conteudo small { color: var(--dp-text-3); font-size: .74rem; }
.documento-upload-card file-uploader { display: block; min-width: 0; }
.documento-upload-card .input-group { flex-wrap: nowrap; }
.documento-upload-card .input-group .form-control { min-width: 0; height: 39px; min-height: 39px; padding: 6px 9px; font-size: .76rem; }
.documento-upload-card .input-group .btn { min-height: 39px; padding: 6px 9px; font-size: .74rem; }
.empty-documents { display: grid; min-height: 180px; place-items: center; padding: 24px; border: 1px dashed var(--dp-border-input); border-radius: 14px; background: var(--dp-field-bg); color: var(--dp-text-2); text-align: center; }
.empty-documents .material-icons-round { color: var(--dp-teal); font-size: 34px; }
.empty-documents strong { color: var(--dp-verde); }
.empty-documents small { max-width: 420px; color: var(--dp-text-3); }
.pericia-detail-modal .modal-content { max-height: calc(100vh - 3.5rem); overflow: hidden; border: 0; border-radius: 18px; background: var(--dp-page-bg); box-shadow: 0 22px 60px rgba(20, 40, 35, .22); }
.pericia-detail-modal .modal-dialog { max-width: 1120px; }
.detail-shell { display: flex; min-height: 0; flex-direction: column; }
.detail-loading { display: grid; min-height: 360px; place-items: center; background: var(--dp-surface); color: var(--dp-text-2); }
.detail-loading > div { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.detail-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 56px 18px 24px; background: var(--dp-verde); color: #fff; }
.detail-hero-title { min-width: 0; }
.detail-hero h2 { max-width: 760px; margin: 0 0 3px; overflow: hidden; color: #fff; font-size: 1.22rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.detail-hero p { max-width: 780px; margin: 0; color: rgba(255,255,255,.76); line-height: 1.55; }
.detail-kicker { color: var(--dp-menta); font-family: var(--dp-font-mono); font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.detail-close { position: absolute; top: 16px; right: 18px; opacity: .82; }
.detail-hero-status { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; min-width: 0; padding: 8px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.1); }
.detail-hero-status span { color: var(--dp-menta); font-family: var(--dp-font-mono); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.detail-hero-status strong { color: #fff; font-size: .94rem; }
.detail-body { min-height: 0; padding: 24px; overflow-y: auto; }
.detail-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.detail-summary-item { display: grid; min-width: 0; gap: 4px; padding: 16px; border: 1px solid var(--dp-border); border-radius: 14px; background: var(--dp-surface); }
.detail-summary-item > .material-icons-round { display: grid; width: 36px; height: 36px; place-items: center; margin-bottom: 7px; border-radius: 10px; background: var(--dp-teal-soft); color: var(--dp-teal); font-size: 20px; }
.detail-summary-item small, .detail-field small, .detail-document small, .doctor-profile small, .detail-empty small { color: var(--dp-text-3); font-size: .73rem; }
.detail-summary-item strong, .detail-field strong { overflow-wrap: anywhere; color: var(--dp-text); font-size: .92rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.detail-main, .detail-side { display: grid; gap: 18px; min-width: 0; }
.detail-section, .detail-side-panel { padding: 20px; border: 1px solid var(--dp-border); border-radius: 16px; background: var(--dp-surface); }
.detail-section--notes { margin-top: 18px; }
.detail-actions-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 16px 20px; border: 1px solid var(--dp-border); border-radius: 16px; background: var(--dp-surface); }
.detail-actions-footer .detail-section-title { margin-bottom: 0; }
.detail-actions-footer__buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.detail-actions-footer__buttons .btn { min-width: 150px; }
.detail-side-panel--doctor { background: linear-gradient(145deg, #fff 0%, #f7fffd 100%); }
.detail-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.detail-section-title > .material-icons-round { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--dp-teal-soft); color: var(--dp-teal); font-size: 19px; }
.detail-section-title h3 { margin: 0; font-size: 1rem; }
.detail-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-field { min-width: 0; padding: 13px 14px; border: 1px solid var(--dp-border); border-radius: 12px; background: var(--dp-field-bg); }
.detail-field--wide { grid-column: 1 / -1; }
.detail-field small { display: block; margin-bottom: 4px; font-family: var(--dp-font-mono); letter-spacing: .06em; text-transform: uppercase; }
.detail-field p { margin: 0; color: var(--dp-text-2); line-height: 1.55; }
.doctor-profile { display: grid; justify-items: center; padding: 10px 4px 4px; text-align: center; }
.doctor-avatar { display: grid; width: 68px; height: 68px; place-items: center; margin-bottom: 13px; border-radius: 18px; background: var(--dp-teal); color: #fff; box-shadow: 0 12px 26px rgba(15, 138, 118, .22); }
.doctor-avatar.has-photo { overflow: hidden; background: #fff; }
.doctor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor-avatar .material-icons-round { font-size: 34px; }
.doctor-profile strong { color: var(--dp-verde); font-size: 1.02rem; }
.doctor-profile span { margin-top: 6px; color: var(--dp-text-2); font-size: .86rem; }
.detail-document-list { display: grid; gap: 9px; }
.detail-document { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--dp-border); border-radius: 12px; background: var(--dp-field-bg); color: inherit; text-decoration: none; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.detail-document:hover { border-color: #a9ded3; background: var(--dp-teal-soft); color: inherit; transform: translateY(-1px); }
.detail-document > .material-icons-round { color: var(--dp-teal); font-size: 22px; }
.detail-document strong { display: block; overflow: hidden; color: var(--dp-text); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.detail-document small { display: block; margin-top: 1px; }
.detail-document-open { opacity: .65; }
.detail-empty { display: grid; justify-items: center; gap: 6px; min-height: 126px; padding: 18px; border: 1px dashed var(--dp-border-input); border-radius: 14px; background: var(--dp-field-bg); color: var(--dp-text-2); text-align: center; }
.detail-empty > .material-icons-round { color: var(--dp-teal); font-size: 30px; }
.detail-empty strong { color: var(--dp-verde); font-size: .94rem; }
.pericia-note-editor { padding: 14px; border-radius: 12px; background: #fff8ec; }
.pericia-note-editor textarea.form-control { min-height: 150px; resize: vertical; }
.pericia-note-editor .form-label { color: var(--dp-text-2); font-size: .8rem; font-weight: 700; }
.pericia-detail-modal .detail-document .btn-group { justify-self: end; white-space: nowrap; }
.pericia-detail-modal .detail-document .btn { min-height: 34px; padding: 5px 9px; font-size: .75rem; }
.review-card { margin-top: 20px; padding: 20px; border: 1px solid var(--dp-border); border-radius: 16px; background: var(--dp-field-bg); }
.review-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.review-card-heading > div { display: flex; align-items: center; gap: 9px; color: var(--dp-verde); }
.review-card-heading .material-icons-round { color: var(--dp-teal); font-size: 21px; }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin: 0; }
.review-grid > div { min-width: 0; }
.review-grid dt { margin-bottom: 3px; color: var(--dp-text-3); font-family: var(--dp-font-mono); font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; }
.review-grid dd { overflow: hidden; margin: 0; color: var(--dp-text); font-size: .84rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.wizard-login-link { margin: 18px 0 0; color: var(--dp-text-3); font-size: .84rem; text-align: center; }
.wizard-login-link a { font-weight: 700; }

/* Dashboard do cliente: composição própria usando os mesmos tokens do Web. */
.dashboard-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 2px 0 30px; }
.dashboard-header h1 { margin: 6px 0 8px; font-size: clamp(2rem, 3vw, 2.7rem); }
.dashboard-header p { max-width: 580px; margin: 0; color: var(--dp-text-2); font-size: 1.03rem; }
.dashboard-header-action { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 46px; padding-inline: 18px; }
.dashboard-spotlight { position: relative; display: flex; align-items: center; min-height: 255px; overflow: hidden; margin-bottom: 22px; padding: 38px 42px; border-radius: 22px; color: #fff; isolation: isolate; }
.contractor-spotlight { background: linear-gradient(120deg, #07584e 0%, #0f8a76 58%, #45baa7 100%); }
.doctor-spotlight { background: linear-gradient(120deg, #083f39 0%, #0a685d 58%, #189783 100%); }
.dashboard-spotlight::before, .dashboard-spotlight::after { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; content: ''; }
.dashboard-spotlight::before { width: 470px; height: 470px; top: -250px; right: -80px; }
.dashboard-spotlight::after { width: 330px; height: 330px; right: 100px; bottom: -250px; }
.dashboard-spotlight-content { max-width: 650px; }
.dashboard-spotlight-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--dp-menta); font-family: var(--dp-font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-spotlight-kicker .material-icons-round { font-size: 18px; }
.dashboard-spotlight h2 { max-width: 630px; margin: 13px 0 12px; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.12; }
.dashboard-spotlight p { max-width: 610px; margin: 0; color: rgba(255,255,255,.78); line-height: 1.6; }
.dashboard-text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: #fff; font-weight: 700; text-decoration: none; }
.dashboard-text-link:hover { color: var(--dp-menta); }
.dashboard-text-link .material-icons-round { font-size: 18px; transition: transform .18s ease; }
.dashboard-text-link:hover .material-icons-round { transform: translateX(4px); }
.spotlight-orbit { position: absolute; right: 8%; display: grid; width: 112px; height: 112px; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(255,255,255,.12); box-shadow: 0 0 0 18px rgba(255,255,255,.06), 0 0 0 38px rgba(255,255,255,.04); }
.spotlight-orbit .material-icons-round { color: #fff; font-size: 46px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.metric-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-card { position: relative; display: flex; flex-direction: column; min-height: 168px; padding: 22px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.metric-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(20, 40, 35, .08); }
.metric-card--teal { border-color: #a9ded3; background: linear-gradient(135deg, #f7fffd 0%, var(--dp-teal-soft) 100%); }
.metric-icon { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: auto; border-radius: 10px; background: var(--dp-teal-soft); color: var(--dp-teal); font-size: 22px; }
.metric-card--teal .metric-icon { background: var(--dp-teal); color: #fff; }
.metric-label { margin-top: 19px; color: var(--dp-text-2); font-size: .84rem; font-weight: 700; }
.metric-card strong { margin-top: 1px; color: var(--dp-verde); font-size: 2.35rem; line-height: 1.1; }
.metric-card small { margin-top: 6px; color: var(--dp-text-3); }
.dashboard-next-step { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; padding: 27px 30px; border: 1px solid var(--dp-border); border-radius: 16px; background: var(--dp-surface); }
.dashboard-next-step h2 { margin: 6px 0 5px; font-size: 1.18rem; }
.dashboard-next-step p { margin: 0; color: var(--dp-text-2); }

@media (max-width: 768px) {
    .app-topbar { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--dp-verde); color: #fff; }
    .app-topbar-toggle { padding: 4px 8px; border: 0; background: transparent; color: #fff; cursor: pointer; }
    .app-topbar-brand { color: #fff; font-weight: 800; text-decoration: none; }
    .app-layout { display: block; }
    .sidebar { position: fixed; z-index: 1045; top: 0; bottom: 0; left: 0; width: 82%; max-width: 300px; min-height: 100vh; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; }
    .sidebar.is-open { transform: translateX(0); }
    .app-backdrop.is-open { position: fixed; z-index: 1040; inset: 0; display: block; background: rgba(0,0,0,.5); }
    .page-content { margin-left: 0; padding: 20px 16px; }
    .public-header { padding: 16px 20px; }
    .public-page { padding: 4px 14px; }
    .dashboard-header { align-items: flex-start; flex-direction: column; margin-top: 6px; }
    .dashboard-header-action { width: 100%; justify-content: center; }
    .dashboard-spotlight { min-height: 0; padding: 28px 26px 94px; }
    .spotlight-orbit { right: 30px; bottom: 14px; width: 62px; height: 62px; box-shadow: 0 0 0 10px rgba(255,255,255,.06); }
    .spotlight-orbit .material-icons-round { font-size: 28px; }
    .metric-grid, .metric-grid--two { grid-template-columns: 1fr; }
    .metric-card { min-height: 150px; }
    .acceptance-header { align-items: flex-start; flex-direction: column; }
    .acceptance-refresh { width: 100%; justify-content: center; }
    .acceptance-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .acceptance-group-header { align-items: flex-start; flex-direction: column; padding: 16px; }
    .acceptance-group-title { width: 100%; }
    .acceptance-count { align-self: flex-start; }
    .acceptance-list { padding: 12px; }
    .acceptance-item { grid-template-columns: 1fr; align-items: stretch; }
    .acceptance-status { width: 100%; }
    .acceptance-meta { grid-template-columns: 1fr; }
    .dashboard-next-step { align-items: flex-start; flex-direction: column; padding: 24px; }
    .registration-wizard { margin-top: 18px; }
    .wizard-heading { align-items: flex-start; margin-bottom: 22px; padding-inline: 2px; }
    .wizard-heading-icon { flex-basis: 56px; width: 56px; height: 56px; border-radius: 17px; }
    .wizard-heading-icon .material-icons-round { font-size: 29px; }
    .wizard-heading p { font-size: .9rem; }
    .wizard-progress { padding: 0 4px; }
    .wizard-progress::before { right: 11%; left: 11%; }
    .wizard-step-title { display: none; }
    .wizard-card { min-height: 0; border-radius: 17px; }
    .wizard-panel { padding: 22px 18px; }
    .wizard-panel-heading { gap: 11px; margin-bottom: 22px; }
    .wizard-panel-heading > .material-icons-round { flex-basis: 39px; width: 39px; height: 39px; }
    .specialty-grid, .upload-grid, .review-grid { grid-template-columns: 1fr; }
    .upload-card { grid-template-columns: 1fr; }
    .upload-card-icon, .photo-preview { width: 62px; height: 62px; }
    .wizard-actions { align-items: stretch; flex-direction: column-reverse; }
    .wizard-actions .btn { width: 100%; }
    .pericia-detail-modal .modal-dialog { margin: 10px; }
    .detail-hero { align-items: flex-start; flex-direction: column; padding: 16px 44px 16px 18px; }
    .detail-hero h2 { max-width: 100%; padding-right: 0; font-size: 1.12rem; white-space: normal; }
    .detail-hero-status { width: 100%; justify-content: space-between; }
    .detail-body { padding: 16px; }
    .detail-summary-grid, .detail-layout, .detail-field-grid { grid-template-columns: 1fr; }
    .detail-section, .detail-side-panel { padding: 16px; }
    .detail-actions-footer { align-items: stretch; flex-direction: column; padding: 16px; }
    .detail-actions-footer__buttons { flex-direction: column; }
    .detail-actions-footer__buttons .btn { width: 100%; }
    .pericia-detail-modal .detail-document { grid-template-columns: auto minmax(0, 1fr); }
    .pericia-detail-modal .detail-document .btn-group { grid-column: 1 / -1; justify-self: stretch; }
    .pericia-detail-modal .detail-document .btn { flex: 1 1 0; }
    .profile-modal .modal-dialog { margin: 10px; }
    .profile-shell { grid-template-columns: 1fr; min-height: 0; }
    .profile-identity { padding: 30px 22px; }
    .profile-details { padding: 18px; }
    .profile-field-grid { grid-template-columns: 1fr; }
    .audit-card-header, .audit-card-header > div { align-items: flex-start; flex-direction: column; }
    .audit-values { grid-template-columns: 1fr; }
    .audit-values > .material-icons-round { justify-self: center; transform: rotate(90deg); }

    #modalPerfilUsuario.modal {
        position: fixed !important;
        top: 0;
        left: 0;
        z-index: 1055;
        display: none;
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        outline: 0;
    }

    #modalPerfilUsuario.modal.show {
        display: block;
    }
}

/* Dialog de filtros: cabeçalho e ações fixos, com rolagem apenas nos campos. */
.dialog-filtros-medicos {
    width: min(860px, calc(100vw - 2rem));
    max-width: none;
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 0;
    border-radius: 1rem;
    color: var(--bs-body-color, #212529);
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 25%);
}
.dialog-filtros-medicos::backdrop { background: rgb(15 23 42 / 55%); }
.dialog-filtros-medicos > form { display: flex; flex-direction: column; max-height: calc(100dvh - 2rem); }
.dialog-filtros-header, .dialog-filtros-footer { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; flex-shrink: 0; }
.dialog-filtros-header { justify-content: space-between; border-bottom: 1px solid var(--bs-border-color, #dee2e6); }
.dialog-filtros-body { padding: 1.5rem; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.dialog-filtros-footer { justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--bs-border-color, #dee2e6); }
@media (max-width: 575.98px) {
    .dialog-filtros-header, .dialog-filtros-body, .dialog-filtros-footer { padding: 1rem; }
}

/* Sugestões do UI Bootstrap dentro da camada nativa da dialog. */
.dialog-filtros-medicos .dropdown-menu { max-width: calc(100vw - 4rem); max-height: 240px; overflow-y: auto; }
.dialog-filtros-medicos .uib-typeahead-match a { display: block; padding: .5rem 1rem; color: inherit; text-decoration: none; white-space: normal; cursor: pointer; }
.dialog-filtros-medicos .uib-typeahead-match.active a { color: var(--bs-primary, #0d6efd); background: var(--bs-tertiary-bg, #f1f5f9); }
