:root {
  --red: #a92f35;
  --red-dark: #84262b;
  --red-soft: #f9ecec;
  --rose: #d45f65;
  --ink: #35383a;
  --muted: #74787b;
  --line: #e2e3e3;
  --paper: #f7f7f6;
  --white: #fff;
  --shadow: 0 14px 40px rgba(45, 37, 38, .07);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, label[for="foto"] { cursor: pointer; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.topbar { height: 98px; background: #fff; border-bottom: 1px solid #ececec; box-shadow: 0 4px 18px rgba(54, 42, 43, .04); }
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: block; height: 82px; }
.brand img { display: block; height: 100%; width: auto; mix-blend-mode: multiply; }
.portal-label { display: flex; gap: 9px; align-items: center; color: #686b6e; font-size: 16.9px; font-weight: 600; }
.portal-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.portal-link { text-decoration: none; }
.portal-link:hover { color: var(--red); }

main { padding-block: 55px 90px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 0 2px 39px; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--red); font-size: 14.3px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0 0 12px; font-family: Georgia, serif; font-size: clamp(49.4px, 6.5vw, 72.8px); font-weight: 500; letter-spacing: -.035em; color: #393638; }
.hero p { max-width: 660px; margin: 0; color: var(--muted); font-size: 20.8px; line-height: 1.6; }
.security-badge { min-width: 265px; display: flex; align-items: center; gap: 12px; padding: 15px 17px; background: #fff; border: 1px solid #eadadb; border-radius: 12px; box-shadow: 0 8px 22px rgba(80, 45, 48, .05); }
.security-badge > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; }
.security-badge div { display: flex; flex-direction: column; gap: 3px; }
.security-badge strong { 15.6; }
.security-badge small { color: #888b8d; font-size: 13px; }

.page-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.steps { position: sticky; top: 24px; padding: 9px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.step { display: flex; align-items: center; gap: 11px; padding: 16px 13px; color: #929496; border-radius: 10px; }
.step + .step { border-top: 1px solid #f0f0ef; }
.step > span { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #dedede; border-radius: 50%; font-family: Georgia, serif; font-size: 14.3px; }
.step div { display: flex; flex-direction: column; gap: 3px; }
.step strong { color: #646668; font-size: 14.3px; }
.step small { 11.7; }
.step.active { background: var(--red-soft); }
.step.active > span { background: var(--red); border-color: var(--red); color: #fff; }
.step.active strong { color: var(--red-dark); }

.doctor-form { display: grid; gap: 18px; }
.card { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; padding-bottom: 23px; border-bottom: 1px solid #eeeeed; }
.section-heading > span { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--red); color: #fff; font-family: Georgia, serif; font-size: 15.6px; box-shadow: 0 7px 15px rgba(169, 47, 53, .18); }
.section-heading h2 { margin: 0 0 4px; font-family: Georgia, serif; color: #413c3d; font-size: 27.3px; font-weight: 500; }
.section-heading p { margin: 0; color: #8a8c8d; font-size: 14.3px; }

.profile-grid { display: grid; grid-template-columns: 145px 1fr; gap: 28px; align-items: start; }
.identity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.full { grid-column: 1 / -1; }
.field { position: relative; }
.field > label, .field-label, .label-row label, .choice-group legend { display: block; margin-bottom: 9px; color: #545556; font-size: 14.3px; font-weight: 750; }
.field b, .field-label b, .choice-group b { color: var(--red); }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label-row small { margin-bottom: 9px; color: #97999a; font-size: 11.7px; }
.field > input, .field textarea, .prefix-input, .tag-input, .multi-box { width: 100%; border: 1px solid #d9dbdb; border-radius: 9px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field > input { height: 46px; padding: 0 14px; }
input, textarea { color: #454647; }
input::placeholder, textarea::placeholder { color: #a8aaab; }
.field > input:focus, .field textarea:focus, .prefix-input:focus-within, .tag-input:focus-within, .multi-box:focus-within { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(169, 47, 53, .1); }

.photo-upload { width: 134px; height: 160px; position: relative; display: grid; place-items: center; overflow: hidden; background: #faf9f9; border: 1.5px dashed #d8b8ba; border-radius: 12px; text-align: center; }
.photo-upload:hover { background: var(--red-soft); border-color: var(--red); }
.photo-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-upload img { width: 100%; height: 100%; object-fit: cover; }
.upload-placeholder { display: flex; flex-direction: column; align-items: center; color: #888; }
.upload-placeholder i { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 9px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-size: 29.9px; font-style: normal; font-weight: 300; }
.upload-placeholder strong { color: var(--red); font-size: 13px; }
.upload-placeholder small { margin-top: 5px; font-size: 10.4px; line-height: 1.45; }
.change-photo { width: 134px; margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--red); font-size: 13px; font-weight: 700; }

.prefix-input { height: 46px; display: flex; align-items: center; overflow: hidden; }
.prefix-input span { height: 100%; min-width: 49px; display: grid; place-items: center; background: #f3f3f2; border-right: 1px solid #d9dbdb; color: #777; font-size: 13px; font-weight: 800; }
.prefix-input input { width: 100%; min-width: 0; height: 100%; padding: 0 13px; border: 0; outline: 0; }
.tag-input, .multi-box { min-height: 46px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 6px 7px; }
.tag-input input, .multi-box input { height: 31px; flex: 1 1 170px; min-width: 90px; padding: 0 5px; border: 0; outline: 0; }
.tag-input > button, .arrow { margin-left: auto; padding: 4px 7px; border: 0; background: transparent; color: var(--red); font-size: 27.3px; line-height: 1; }
.tags { display: contents; }
.tag { max-width: 100%; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 10px; background: var(--red-soft); border-radius: 7px; color: var(--red-dark); font-size: 13px; font-weight: 700; }
.tag button { padding: 0; border: 0; background: transparent; color: #a16b6e; font-size: 18.2px; line-height: .8; }

.fields-stack { display: grid; gap: 22px; }
.multi-box.open { border-color: var(--red); box-shadow: 0 0 0 3px rgba(169, 47, 53, .1); }
.dropdown { position: absolute; z-index: 30; top: calc(100% - 17px); left: 0; width: 100%; max-height: 280px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid #ddd; border-radius: 10px; box-shadow: 0 18px 45px rgba(55, 38, 40, .18); }
.dropdown button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 11px; border: 0; border-radius: 7px; background: transparent; color: #4d4d4e; text-align: left; font-size: 14.3px; }
.dropdown button:hover, .dropdown button:focus { outline: 0; background: var(--red-soft); color: var(--red-dark); }
.dropdown small { color: #929596; font-size: 11.7px; }
.dropdown .empty { padding: 14px 10px; color: #8e9091; font-size: 13px; }
.help { margin: 7px 0 0; color: #929596; font-size: 11.7px; }

.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 0 0 24px; padding: 0; border: 0; }
.choice-group legend { grid-column: 1 / -1; }
.choice-group label { min-height: 67px; display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid #dadcdc; border-radius: 10px; cursor: pointer; }
.choice-group label:hover { background: #faf9f9; border-color: #d0b5b7; }
.choice-group input { position: absolute; opacity: 0; }
.choice-group i { width: 18px; height: 18px; flex: 0 0 auto; border: 1.5px solid #babdbd; border-radius: 50%; }
.choice-group label:has(input:checked) { background: var(--red-soft); border-color: var(--red); }
.choice-group label:has(input:checked) i { background: #fff; border: 5px solid var(--red); }
.choice-group label > span { display: flex; flex-direction: column; gap: 3px; }
.choice-group strong { color: #4e4c4d; font-size: 14.3px; }
.choice-group small { color: #898b8c; font-size: 11.7px; line-height: 1.35; }
.field textarea { min-height: 132px; padding: 13px 14px; resize: vertical; line-height: 1.55; font-size: 15.6px; }

.alert { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 10px; font-size: 14.3px; }
.alert.error { background: #fff0f0; border: 1px solid #efc5c7; color: #8d272c; }
.alert > span { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; }
.alert p { margin: 0; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 5px 2px 0; }
.form-actions > p { max-width: 480px; margin: 0; color: #858788; font-size: 11.7px; line-height: 1.5; }
.submit-button, .modal-card a { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 22px; border: 0; border-radius: 9px; background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(169, 47, 53, .2); font-size: 14.3px; font-weight: 800; text-decoration: none; transition: .2s; }
.submit-button:hover, .modal-card a:hover { background: var(--red-dark); transform: translateY(-1px); }
.submit-button:disabled { opacity: .58; cursor: wait; transform: none; }
.submit-button span { 22.1; }

footer { border-top: 1px solid #e0e0df; background: #fff; }
.footer-inner { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner img { width: 150px; mix-blend-mode: multiply; }
.footer-inner p { color: #8d8f90; font-size: 11.7px; }
.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(57, 44, 45, .7); backdrop-filter: blur(6px); }
.modal-card { width: min(510px, 100%); padding: 44px; background: #fff; border-radius: 18px; box-shadow: 0 30px 90px rgba(0, 0, 0, .25); text-align: center; }
.success-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 0 0 9px var(--red-soft); font-size: 35.1px; }
.modal-card h2 { margin: 0 0 13px; font-family: Georgia, serif; color: #463f40; font-size: 36.4px; font-weight: 500; }
.modal-card p { margin: 0 0 25px; color: #777a7b; font-size: 15.6px; line-height: 1.65; }

@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: flex-start; }
  .security-badge { width: 100%; }
  .page-grid { grid-template-columns: 1fr; }
  .steps { position: static; display: grid; grid-template-columns: repeat(3, 1fr); }
  .step + .step { border-top: 0; border-left: 1px solid #f0f0ef; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 28px); }
  .topbar { height: 84px; }
  .brand { height: 72px; }
  .portal-label, .steps { display: none; }
  main { padding-top: 37px; }
  .hero { padding-bottom: 28px; }
  .hero h1 { 49.4; }
  .card { padding: 22px 18px; }
  .profile-grid { grid-template-columns: 1fr; }
  .photo-column { display: grid; justify-items: center; }
  .identity-grid, .choice-group { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .submit-button { width: 100%; }
  .footer-inner { flex-direction: column; justify-content: center; padding-block: 24px; text-align: center; }
  .modal-card { padding: 36px 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Instalador do banco de dados */
.install-page { min-height: 100vh; }
.install-main { min-height: calc(100vh - 218px); padding-block: 54px 80px; }
.install-hero { max-width: 760px; margin-bottom: 34px; }
.install-hero h1 { margin: 0 0 12px; font-family: Georgia, serif; font-size: clamp(46.8px, 6.5vw, 67.6px); font-weight: 500; letter-spacing: -.035em; color: #393638; }
.install-hero p { max-width: 680px; margin: 0; color: var(--muted); font-size: 19.5px; line-height: 1.65; }
.install-grid { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 28px; align-items: start; }
.install-card, .install-requirements { background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.install-card { padding: 30px; }
.install-requirements { padding: 25px; }
.install-requirements h2 { margin: -3px 0 22px; font-family: Georgia, serif; font-size: 28.6px; font-weight: 500; }
.requirement-list { display: grid; gap: 6px; }
.requirement { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; }
.requirement > span { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 14.3px; font-weight: 800; }
.requirement div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.requirement strong { color: #555758; font-size: 13px; }
.requirement small { overflow: hidden; color: #8e9192; font-size: 10.4px; text-overflow: ellipsis; }
.requirement.ok { background: #f1f8f2; }
.requirement.ok > span { background: #438653; }
.requirement.failed { background: #fff0f0; }
.requirement.failed > span { background: var(--red); }
.install-note { margin: 20px 0 0; padding: 13px; background: #f8f6f3; border-radius: 9px; color: #77797a; font-size: 11.7px; line-height: 1.55; }
.install-form { display: grid; gap: 22px; }
.install-form .section-heading { margin-bottom: 0; }
.install-fields { display: grid; grid-template-columns: minmax(0, 1fr) 125px; gap: 18px; }
.install-fields .field > input { height: 48px; }
.password-field { display: flex; height: 48px; overflow: hidden; background: #fff; border: 1px solid #d9dbdb; border-radius: 9px; transition: border-color .2s, box-shadow .2s; }
.password-field:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(169, 47, 53, .1); }
.password-field input { min-width: 0; flex: 1; padding: 0 14px; border: 0; outline: 0; }
.password-field button { padding: 0 14px; border: 0; background: var(--red-soft); color: var(--red-dark); font-size: 11.7px; font-weight: 800; }
.install-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; padding: 17px; background: #faf9f8; border: 1px solid #ece9e7; border-radius: 10px; color: #707273; font-size: 11.7px; }
.install-summary strong { grid-column: 1 / -1; color: #4f5051; font-size: 13px; }
.install-summary span::first-letter { color: #438653; }
.install-submit { width: 100%; }
.install-complete { max-width: 820px; display: flex; align-items: flex-start; gap: 28px; padding: 42px; }
.install-complete-icon { width: 68px; height: 68px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #438653; color: #fff; box-shadow: 0 0 0 10px #edf7ef; font-size: 35.1px; }
.install-complete h2 { margin: -3px 0 10px; font-family: Georgia, serif; color: #413c3d; font-size: 36.4px; font-weight: 500; }
.install-complete p { margin: 0 0 23px; color: #777a7b; font-size: 14.3px; line-height: 1.65; }

@media (max-width: 800px) {
  .install-grid { grid-template-columns: 1fr; }
  .install-requirements { order: 2; }
}
@media (max-width: 560px) {
  .install-main { padding-top: 38px; }
  .install-card { padding: 22px 18px; }
  .install-fields { grid-template-columns: 1fr; }
  .install-host, .install-port { grid-column: 1; }
  .install-summary { grid-template-columns: 1fr; }
  .install-summary strong { grid-column: 1; }
  .install-complete { flex-direction: column; padding: 32px 24px; }
}

/* Página principal institucional */
.home-page { background: #f5f2ef; }
.home-topbar { position: relative; z-index: 5; }
.home-nav { display: flex; align-items: center; }
.home-nav a { padding: 11px 17px; border: 1px solid #dfc8ca; border-radius: 9px; color: var(--red-dark); font-size: 14.3px; font-weight: 800; text-decoration: none; }
.home-nav a:hover { background: var(--red-soft); border-color: var(--red); }
.home-main { padding: 0; }
.home-hero { min-height: 630px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); align-items: center; gap: 70px; padding-block: 72px; }
.home-copy h1 { max-width: 680px; margin: 0 0 22px; font-family: Georgia, serif; color: #393638; font-size: clamp(62.4px, 8.32vw, 98.8px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.home-copy > p { max-width: 620px; margin: 0; color: #747576; font-size: 22.1px; line-height: 1.7; }
.home-actions { display: flex; align-items: center; gap: 20px; margin-top: 34px; }
.home-primary { min-height: 52px; display: inline-flex; align-items: center; gap: 18px; padding: 0 21px; border-radius: 9px; background: var(--red); color: #fff; box-shadow: 0 12px 28px rgba(169, 47, 53, .2); font-size: 14.3px; font-weight: 800; text-decoration: none; }
.home-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.home-primary span { 23.4; }
.home-actions > span { color: #929394; font-size: 11.7px; }
.home-brand-card { position: relative; min-height: 440px; display: grid; place-items: center; overflow: hidden; padding: 45px; border: 1px solid #ead9da; border-radius: 26px; background: rgba(255, 255, 255, .76); box-shadow: 0 30px 80px rgba(84, 47, 50, .1); }
.home-brand-card::before, .home-brand-card::after { content: ""; position: absolute; border-radius: 50%; background: var(--red-soft); }
.home-brand-card::before { width: 270px; height: 270px; top: -135px; right: -95px; }
.home-brand-card::after { width: 180px; height: 180px; bottom: -105px; left: -65px; }
.home-brand-card > span { position: absolute; top: 23px; left: 26px; color: var(--red); font-size: 13px; font-weight: 900; letter-spacing: .22em; }
.home-brand-card img { position: relative; z-index: 1; width: min(330px, 100%); mix-blend-mode: multiply; }
.home-brand-card p { position: absolute; right: 25px; bottom: 20px; margin: 0; color: #999; font-size: 10.4px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.home-next { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 42px; margin-bottom: 80px; padding: 32px 35px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.home-next .eyebrow { margin-bottom: 7px; }
.home-next h2 { margin: 0; font-family: Georgia, serif; color: #443f40; font-size: 29.9px; font-weight: 500; }
.home-next > p { margin: 0; color: #7c7e7f; font-size: 13px; line-height: 1.65; }
.home-next > a { white-space: nowrap; color: var(--red); font-size: 13px; font-weight: 800; text-decoration: none; }

@media (max-width: 880px) {
  .home-hero { min-height: auto; grid-template-columns: 1fr; gap: 42px; }
  .home-brand-card { min-height: 350px; }
  .home-next { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .home-nav a { padding: 9px 11px; font-size: 11.7px; }
  .home-hero { padding-block: 50px; }
  .home-copy h1 { 59.8; }
  .home-copy > p { 18.2; }
  .home-actions { align-items: flex-start; flex-direction: column; }
  .home-brand-card { min-height: 300px; padding: 28px; }
  .home-next { margin-bottom: 50px; padding: 25px; }
}

/* Área administrativa */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.admin-page { min-height: 100vh; background: #f5f3f1; }
.admin-main { min-height: calc(100vh - 220px); padding-block: 48px 75px; }
.admin-auth-main { min-height: calc(100vh - 220px); display: grid; place-items: center; padding-block: 55px 75px; }
.admin-auth-card { width: min(900px, 100%); display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: 0 24px 70px rgba(75, 50, 52, .11); }
.admin-auth-intro { padding: 48px 42px; background: linear-gradient(145deg, #9f2b32, #761f25); color: #fff; }
.admin-auth-intro .eyebrow { color: #f4cdd0; }
.admin-auth-intro h1 { margin: 12px 0 17px; font-family: Georgia, serif; font-size: 50.7px; font-weight: 500; line-height: 1.08; }
.admin-auth-intro > p { margin: 0; color: #f2dfe0; font-size: 15.6px; line-height: 1.7; }
.admin-security-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 45px; padding: 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(255,255,255,.08); }
.admin-security-note > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #fff; color: var(--red); font-weight: 900; }
.admin-security-note p { margin: 0; color: #f4e3e4; font-size: 11.7px; line-height: 1.55; }
.admin-security-note strong { color: #fff; font-size: 13px; }
.admin-auth-form { display: grid; align-content: center; gap: 20px; padding: 42px; }
.admin-auth-submit { width: 100%; margin-top: 3px; }
.admin-setup-success { align-self: center; text-align: center; }
.admin-setup-success > span { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: #438653; color: #fff; box-shadow: 0 0 0 9px #edf7ef; font-size: 31.2px; }
.admin-setup-success h2 { margin: 0 0 10px; font-family: Georgia, serif; color: #413c3d; font-size: 35.1px; font-weight: 500; }
.admin-setup-success p { margin: 0 0 25px; color: var(--muted); font-size: 14.3px; }
.admin-setup-success a { width: 100%; }
.admin-state-card { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 15px; color: #808283; }
.admin-state-card p { margin: 0; font-size: 14.3px; }
.admin-spinner { width: 33px; height: 33px; border: 3px solid #eadadd; border-top-color: var(--red); border-radius: 50%; animation: admin-spin .8s linear infinite; }
@keyframes admin-spin { to { transform: rotate(360deg); } }
.admin-session { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.admin-session > span { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.admin-session small { color: #97999a; font-size: 10.4px; }
.admin-session strong { color: #525354; font-size: 13px; }
.admin-session button { padding: 8px 13px; border: 1px solid #e4c7c9; border-radius: 8px; background: #fff; color: var(--red); font-size: 11.7px; font-weight: 800; }
.password-dialog { width: min(510px, calc(100% - 30px)); }
.password-success { background: #edf7ef; border: 1px solid #cce2d1; color: #39794a; }
.password-success > span { background: #438653; }
.admin-login { width: min(780px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: center; margin: 55px auto; padding: 45px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
.admin-login h1, .admin-heading h1 { margin: 9px 0 13px; font-family: Georgia, serif; color: #3f3a3b; font-size: 49.4px; font-weight: 500; letter-spacing: -.025em; }
.admin-login > div > p, .admin-heading > div > p { margin: 0; color: var(--muted); font-size: 14.3px; line-height: 1.65; }
.admin-login .admin-auth-form { padding: 0; }
.admin-config-link { color: var(--red); text-align: center; font-size: 11.7px; font-weight: 700; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; margin-bottom: 30px; }
.admin-heading h1 { 54.6; }
.admin-total { min-width: 165px; display: flex; flex-direction: column; padding: 18px 20px; border-left: 3px solid var(--red); background: #fff; border-radius: 0 10px 10px 0; }
.admin-total strong { color: var(--red-dark); font-family: Georgia, serif; font-size: 35.1px; font-weight: 500; }
.admin-total span { color: #919394; font-size: 10.4px; }
.admin-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.admin-search { width: min(510px, 100%); height: 46px; display: flex; overflow: hidden; border: 1px solid #d9dbdb; border-radius: 9px; background: #fff; }
.admin-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(169,47,53,.1); }
.admin-search input { min-width: 0; flex: 1; padding: 0 15px; border: 0; outline: 0; }
.admin-search button { padding: 0 20px; border: 0; background: var(--red); color: #fff; font-size: 11.7px; font-weight: 800; }
.admin-filter { display: flex; flex-direction: column; gap: 6px; color: #777; font-size: 11.7px; font-weight: 700; }
.admin-filter select, .admin-fields-grid select { height: 46px; padding: 0 35px 0 12px; border: 1px solid #d9dbdb; border-radius: 9px; background: #fff; color: #555; }
.admin-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 13px 14px; background: #f9f7f5; border-bottom: 1px solid #e9e6e4; color: #888a8b; text-align: left; font-size: 10.4px; letter-spacing: .07em; text-transform: uppercase; }
.admin-table td { padding: 14px; border-bottom: 1px solid #efedeb; color: #686a6b; font-size: 11.7px; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #fdfafa; }
.doctor-cell { min-width: 190px; display: flex; align-items: center; gap: 11px; }
.doctor-cell img { width: 43px; height: 43px; flex: 0 0 auto; object-fit: cover; border-radius: 50%; background: #eee; }
.doctor-cell span, .admin-actuation { display: flex; flex-direction: column; gap: 4px; }
.doctor-cell strong, .admin-actuation strong { max-width: 220px; overflow: hidden; color: #4a4849; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.doctor-cell small, .admin-actuation small { max-width: 260px; overflow: hidden; color: #999b9c; font-size: 10.4px; text-overflow: ellipsis; white-space: nowrap; }
.admin-yes { color: #39794a; font-weight: 800; }
.admin-no { color: #929394; }
.status-pill { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-size: 10.4px; font-weight: 800; }
.status-pill.pendente { background: #fff3d9; color: #8c681b; }
.status-pill.aprovado { background: #e8f5eb; color: #39794a; }
.status-pill.rejeitado { background: #fae8e9; color: #923238; }
.edit-doctor { padding: 8px 11px; border: 1px solid #dfc4c6; border-radius: 7px; background: #fff; color: var(--red); font-size: 10.4px; font-weight: 800; }
.edit-doctor:hover { background: var(--red-soft); }
.admin-table-loading { height: 130px; text-align: center; }
.admin-empty { padding: 55px 20px; text-align: center; }
.admin-empty > span { color: #c7a0a3; font-size: 45.5px; }
.admin-empty h2 { margin: 8px 0; font-family: Georgia, serif; color: #555; font-size: 27.3px; font-weight: 500; }
.admin-empty p { margin: 0; color: #999; font-size: 11.7px; }
.admin-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; color: #777; font-size: 11.7px; }
.admin-pagination button, .secondary-button { padding: 9px 13px; border: 1px solid #d8d8d7; border-radius: 8px; background: #fff; color: #656667; font-size: 11.7px; font-weight: 700; }
.admin-pagination button:disabled { opacity: .4; }
.admin-dialog { width: min(930px, calc(100% - 30px)); max-height: calc(100vh - 34px); padding: 0; border: 0; border-radius: 17px; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.admin-dialog::backdrop { background: rgba(48,35,36,.68); backdrop-filter: blur(4px); }
.admin-edit-form { padding: 30px; }
.admin-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.admin-dialog-head h2 { margin: 6px 0 0; font-family: Georgia, serif; color: #413d3e; font-size: 37.7px; font-weight: 500; }
.dialog-close { width: 35px; height: 35px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #f4f1ef; color: #777; font-size: 27.3px; }
.admin-edit-grid { display: grid; grid-template-columns: 145px 1fr; gap: 26px; margin-top: 22px; }
.admin-photo-edit { display: flex; flex-direction: column; align-items: center; }
.admin-photo-edit img { width: 125px; height: 145px; object-fit: cover; border-radius: 11px; background: #eee; }
.admin-photo-edit label { margin-top: 9px; color: var(--red); font-size: 11.7px; font-weight: 800; cursor: pointer; }
.admin-photo-edit input { width: 1px; height: 1px; opacity: 0; }
.admin-photo-edit small { color: #999; font-size: 9.1px; }
.admin-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.admin-fields-grid select { width: 100%; }
.admin-relations { margin-top: 24px; }
.admin-multi { position: relative; }
.admin-dialog textarea { min-height: 115px; }
.admin-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 25px; padding-top: 20px; border-top: 1px solid #ece9e7; }
.admin-dialog-actions .dialog-close { width: auto; height: auto; border-radius: 8px; }

/* Contato, locais comerciais e perfis de atendimento */
.commercial-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.commercial-heading h3 { margin: 0 0 4px; color: #4d4e4f; font-family: Georgia, serif; font-size: 23.4px; font-weight: 500; }
.commercial-heading p { margin: 0; color: #929496; font-size: 11.7px; }
.commercial-heading > button { padding: 9px 12px; border: 1px solid #ddbec1; border-radius: 8px; background: #fff; color: var(--red); font-size: 11.7px; font-weight: 800; white-space: nowrap; }
.commercial-heading > button:hover { background: var(--red-soft); }
.commercial-list { display: grid; gap: 12px; }
.commercial-empty { min-height: 70px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 25px; border: 1px dashed #d9cfd0; border-radius: 10px; background: #fbfaf9; color: #999; }
.commercial-empty > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red); }
.commercial-empty p { margin: 0; font-size: 11.7px; }
.commercial-card { padding: 17px; border: 1px solid #e5dfdd; border-radius: 11px; background: #fbfaf9; }
.commercial-card + .commercial-card { margin-top: 2px; }
.commercial-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.commercial-card-head strong { color: var(--red-dark); font-size: 13px; }
.commercial-card-head button { padding: 5px 8px; border: 0; background: transparent; color: #a05a5e; font-size: 10.4px; font-weight: 700; }
.commercial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.commercial-grid textarea { min-height: 75px; }
.service-profile { margin: 27px 0 0; padding: 25px 0 0; border: 0; border-top: 1px solid #eeeeed; }
.service-profile legend { padding: 0; color: #545556; font-size: 14.3px; font-weight: 750; }
.service-profile legend b { color: var(--red); }
.service-profile > p { margin: 5px 0 14px; color: #929496; font-size: 11.7px; }
.service-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.service-options label { cursor: pointer; }
.service-options input { position: absolute; opacity: 0; pointer-events: none; }
.service-options label > span { min-height: 78px; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 9px; padding: 13px; border: 1px solid #d9dbdb; border-radius: 10px; background: #fff; }
.service-options i { width: 27px; height: 27px; grid-row: 1 / 3; display: grid; place-items: center; align-self: center; border: 1px solid #d8c7c9; border-radius: 50%; color: var(--red); font-style: normal; font-size: 19.5px; }
.service-options strong { align-self: end; color: #555657; font-size: 13px; }
.service-options small { align-self: start; color: #939596; font-size: 10.4px; }
.service-options label:hover > span { border-color: #d3b3b6; background: #fdfafa; }
.service-options input:checked + span { border-color: var(--red); background: var(--red-soft); box-shadow: 0 0 0 2px rgba(169,47,53,.07); }
.service-options input:checked + span i { background: var(--red); border-color: var(--red); color: #fff; }
.service-options input:checked + span i::before { content: "✓"; }
.service-options input:checked + span i { font-size: 0; }
.service-options input:checked + span i::before { 15.6; }
.plans-field { margin-top: 20px; }
.admin-commercial-edit { margin-top: 3px; padding-top: 20px; border-top: 1px solid #ece9e7; }
.admin-service-profile { margin-top: 2px; }
.admin-dialog .commercial-empty { margin-bottom: 0; }
.admin-section-tabs { display: inline-flex; gap: 5px; margin-bottom: 30px; padding: 5px; border: 1px solid #e2dfdd; border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.admin-section-tabs button { min-width: 115px; padding: 10px 17px; border: 0; border-radius: 8px; background: transparent; color: #747677; font-size: 11.7px; font-weight: 800; }
.admin-section-tabs button.active { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(169,47,53,.18); }
.admin-notification-badge { min-width: 22px; height: 22px; display: inline-grid; place-items: center; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #9b6a12; color: #fff; font-size: 11px; }
.admin-section-tabs button.active .admin-notification-badge { background: #fff; color: var(--red-dark); }
.hospital-admin-table { min-width: 920px; }
.suggested-hospitals-panel { margin-bottom: 28px; padding: 22px; border: 2px solid #e2bd72; border-radius: 13px; background: #fffaf0; box-shadow: var(--shadow); }
.suggested-hospitals-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.suggested-hospitals-heading h2 { margin: 5px 0; color: #574f50; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.suggested-hospitals-heading p { margin: 0; color: var(--muted); }
.suggested-hospitals-heading > strong { min-width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #9b6a12; color: #fff; font-size: 22px; }
.suggested-hospitals-list { display: grid; gap: 14px; }
.suggested-hospital-card { padding: 17px; border: 1px solid #ead6ad; border-radius: 10px; background: #fff; }
.suggested-hospital-source { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.suggested-hospital-source strong { color: #4a4849; font-size: 16px; }
.suggested-hospital-source small { color: #89837b; }
.suggested-hospital-fields { display: grid; grid-template-columns: 2fr 1.2fr .7fr; gap: 12px; }
.suggested-hospital-fields label { display: flex; flex-direction: column; gap: 6px; color: #626465; font-size: 12px; font-weight: 750; }
.suggested-hospital-fields input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #d9dbdb; border-radius: 8px; font-size: 14px; }
.suggested-hospital-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 13px; }
.suggested-hospital-actions .submit-button { width: auto; padding: 10px 16px; }
.hospital-cell { min-width: 250px; display: flex; align-items: center; gap: 11px; }
.hospital-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--red-soft); color: var(--red); font-family: Georgia, serif; font-size: 20.8px; }
.hospital-cell > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.hospital-cell strong { max-width: 260px; overflow: hidden; color: #4a4849; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.hospital-cell small { color: #999b9c; font-size: 10.4px; }
.dialog-meta { margin: 7px 0 0; color: #929495; font-size: 11.7px; }
.hospital-edit-dialog { width: min(980px, calc(100% - 30px)); }
.hospital-admin-sections { display: grid; gap: 16px; margin-top: 22px; }
.hospital-admin-sections > section { padding: 20px; border: 1px solid #e7e3e1; border-radius: 11px; background: #fbfaf9; }
.hospital-admin-sections h3 { margin: 0 0 17px; color: #574f50; font-family: Georgia, serif; font-size: 23.4px; font-weight: 500; }
.hospital-admin-sections select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #d9dbdb; border-radius: 9px; background: #fff; color: #555; }
.hospital-admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hospital-admin-grid label { display: flex; flex-direction: column; gap: 7px; color: #626465; font-size: 11.7px; font-weight: 750; }
.hospital-admin-grid select { height: 40px; font-size: 11.7px; }
.hospital-admin-textarea { margin-top: 15px; }
.hospital-admin-sections textarea { min-height: 90px; }
.service-organization { margin-top: 5px; padding-top: 23px; border-top: 1px solid #eeeeed; }
.service-organization .commercial-heading { margin-bottom: 14px; }
.conditional-service-field { margin-top: 14px; }
.admin-service-organization { padding: 20px 0 4px; border-top: 1px solid #ece9e7; }
.admin-service-organization .admin-fields-grid { margin-bottom: 2px; }
.admin-service-organization .repeat-section { margin-top: 16px; }

/* Cadastro das características hospitalares */
.hospital-page-grid { grid-template-columns: 230px minmax(0, 1fr); }
.hospital-search-box { height: 50px; display: flex; overflow: hidden; border: 1px solid #d9dbdb; border-radius: 9px; background: #fff; }
.hospital-search-box:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(169,47,53,.1); }
.hospital-search-box input { min-width: 0; flex: 1; padding: 0 14px; border: 0; outline: 0; }
.hospital-search-box button { width: 48px; border: 0; background: var(--red-soft); color: var(--red); font-size: 24.7px; }
.hospital-results { top: calc(100% - 17px); }
.hospital-results button strong { 13; }
.selected-hospital { display: flex; align-items: center; gap: 12px; margin: 15px 0 25px; padding: 14px 15px; border: 1px solid #cfe1d2; border-radius: 10px; background: #f1f8f2; }
.selected-hospital > span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #438653; color: #fff; font-size: 13px; }
.selected-hospital > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.selected-hospital strong { overflow: hidden; color: #48584b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.selected-hospital small { color: #7f9182; font-size: 10.4px; }
.selected-hospital button { padding: 7px 9px; border: 0; background: transparent; color: #477b53; font-size: 10.4px; font-weight: 800; }
.hospital-choice-block { margin: 0; padding: 0; border: 0; }
.hospital-choice-block > legend { margin-bottom: 9px; color: #545556; font-size: 14.3px; font-weight: 750; }
.hospital-choice-block b { color: var(--red); }
.segmented-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmented-options label { cursor: pointer; }
.segmented-options input { position: absolute; opacity: 0; }
.segmented-options span { min-height: 43px; display: grid; place-items: center; padding: 8px; border: 1px solid #d9dbdb; border-radius: 8px; background: #fff; color: #6b6d6e; font-size: 11.7px; font-weight: 750; text-align: center; }
.segmented-options input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); box-shadow: 0 0 0 2px rgba(169,47,53,.07); }
.relation-box { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 15px; padding: 17px; border: 1px solid #eadcdd; border-radius: 10px; background: #fcf8f8; }
.relation-box > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.relation-box strong { color: #5e5556; font-size: 13px; }
.relation-box small { color: #96898a; font-size: 10.4px; }
.relation-inputs { display: flex; gap: 10px; }
.relation-inputs label { display: flex; align-items: center; gap: 7px; color: #777; font-size: 10.4px; font-weight: 700; }
.relation-inputs span { display: flex; align-items: center; overflow: hidden; height: 38px; border: 1px solid #ddd; border-radius: 7px; background: #fff; color: #999; }
.relation-inputs input { width: 55px; height: 100%; padding: 0 6px; border: 0; outline: 0; text-align: right; }
.binary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.binary-question { min-width: 0; margin: 0; padding: 15px; border: 1px solid #e1dfde; border-radius: 10px; background: #fbfaf9; }
.binary-question legend { max-width: 100%; padding: 0 4px; color: #555657; font-size: 13px; font-weight: 750; line-height: 1.4; }
.binary-question legend b { color: var(--red); }
.binary-question > small { display: block; margin: -2px 0 9px; color: #999; font-size: 9.1px; }
.binary-question > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.binary-question label { cursor: pointer; }
.binary-question input { position: absolute; opacity: 0; }
.binary-question label span { min-height: 34px; display: grid; place-items: center; border: 1px solid #dadada; border-radius: 7px; background: #fff; color: #777; font-size: 10.4px; font-weight: 800; }
.binary-question input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); }
.repeat-section { margin-top: 17px; padding: 17px; border: 1px solid #eadcdd; border-radius: 10px; background: #fcf9f9; }
.repeat-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.repeat-heading > div { display: flex; flex-direction: column; gap: 3px; }
.repeat-heading strong { color: #5d5556; font-size: 13px; }
.repeat-heading small { color: #968f90; font-size: 10.4px; }
.repeat-heading button { padding: 7px 10px; border: 1px solid #ddbec1; border-radius: 7px; background: #fff; color: var(--red); font-size: 10.4px; font-weight: 800; }
.repeat-list { display: grid; gap: 8px; }
.repeat-row { height: 41px; display: flex; overflow: hidden; border: 1px solid #d9dbdb; border-radius: 8px; background: #fff; }
.repeat-row input { min-width: 0; flex: 1; padding: 0 12px; border: 0; outline: 0; font-size: 11.7px; }
.repeat-row button { width: 39px; border: 0; background: var(--red-soft); color: var(--red); font-size: 19.5px; }
.diagnostic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.support-grid { margin-top: 20px; grid-template-columns: repeat(3, 1fr); }
.residency-question { max-width: 490px; }
.residency-details { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: start; margin-top: 18px; }
.residency-details .repeat-section { margin-top: 0; }
.beds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.service-types { margin: 26px 0 0; padding: 23px 0 0; border: 0; border-top: 1px solid #eeeeed; }
.service-types legend { padding: 0; color: #545556; font-size: 14.3px; font-weight: 750; }
.service-types legend b { color: var(--red); }
.service-types > p { margin: 5px 0 15px; color: #929496; font-size: 11.7px; }
.service-type-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.service-type-options label { cursor: pointer; }
.service-type-options input { position: absolute; opacity: 0; }
.service-type-options span { min-height: 43px; display: flex; align-items: center; padding: 9px 11px; border: 1px solid #ddd; border-radius: 8px; background: #fff; color: #6b6d6e; font-size: 10.4px; font-weight: 700; line-height: 1.35; }
.service-type-options input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); }
.service-type-options input:checked + span::before { content: "✓"; margin-right: 7px; color: var(--red); font-weight: 900; }
.custom-service { height: 43px; display: flex; margin-top: 12px; overflow: hidden; border: 1px solid #d9dbdb; border-radius: 8px; }
.custom-service input { min-width: 0; flex: 1; padding: 0 12px; border: 0; outline: 0; }
.custom-service button { padding: 0 14px; border: 0; background: var(--red-soft); color: var(--red); font-size: 10.4px; font-weight: 800; }
.custom-service-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.clinical-staff-block { margin-top: 22px; }
.doctor-reference-list { display: grid; gap: 9px; }
.doctor-reference-row { position: relative; display: grid; grid-template-columns: 1fr 38px; gap: 7px; }
.doctor-reference-row > div { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 125px; overflow: visible; border: 1px solid #d9dbdb; border-radius: 8px; background: #fff; }
.doctor-reference-row input { min-width: 0; height: 42px; padding: 0 11px; border: 0; outline: 0; font-size: 11.7px; }
.doctor-reference-row input + input { border-left: 1px solid #e5e5e4; }
.doctor-reference-row > button { border: 0; border-radius: 8px; background: var(--red-soft); color: var(--red); font-size: 20.8px; }
.doctor-reference-results { position: absolute; z-index: 45; top: 44px; left: 0; right: 0; overflow: hidden; padding: 5px; border: 1px solid #ddd; border-radius: 9px; background: #fff; box-shadow: 0 15px 35px rgba(55,38,40,.18); }
.doctor-reference-results button { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; text-align: left; }
.doctor-reference-results button:hover { background: var(--red-soft); }
.doctor-reference-results strong { color: #555; font-size: 11.7px; }
.doctor-reference-results small { color: #999; font-size: 10.4px; }
.existing-doctor-match { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #e8d2a5; border-radius: 9px; background: #fff8e8; }
.existing-doctor-match > span { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #b98520; color: #fff; font-size: 11.7px; font-weight: 900; }
.existing-doctor-match > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.existing-doctor-match strong { color: #72571f; font-size: 11.7px; }
.existing-doctor-match small { color: #9a7d43; font-size: 10.4px; }
.existing-doctor-match button { padding: 7px 9px; border: 1px solid #dfc88f; border-radius: 7px; background: #fff; color: #806323; font-size: 10.4px; font-weight: 800; }

@media (max-width: 820px) {
  .admin-auth-card, .admin-login { grid-template-columns: 1fr; }
  .admin-auth-intro { padding: 36px 30px; }
  .admin-security-note { margin-top: 25px; }
  .admin-table-wrap { overflow-x: auto; }
  .admin-table { min-width: 840px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-edit-grid { grid-template-columns: 1fr; }
  .admin-photo-edit { justify-self: center; }
  .hospital-admin-grid { grid-template-columns: 1fr 1fr; }
  .suggested-hospital-fields { grid-template-columns: 1fr; }
  .hospital-page-grid { grid-template-columns: 1fr; }
  .hospital-steps { position: static; display: grid; grid-template-columns: repeat(5, 1fr); }
  .hospital-steps .step { padding: 10px 7px; }
  .hospital-steps .step + .step { border-top: 0; border-left: 1px solid #eee; }
  .hospital-steps .step div { display: none; }
  .hospital-steps .step > span { margin: auto; }
  .beds-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .admin-auth-form { padding: 28px 21px; }
  .admin-login { gap: 30px; margin: 15px auto; padding: 26px 20px; }
  .admin-login .admin-auth-form { padding: 0; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-filter select { width: 100%; }
  .admin-session > span { display: none; }
  .admin-edit-form { padding: 22px 17px; }
  .admin-fields-grid { grid-template-columns: 1fr; }
  .admin-dialog-actions { flex-direction: column-reverse; }
  .admin-dialog-actions > * { width: 100%; }
  .admin-section-tabs { width: 100%; }
  .admin-section-tabs button { min-width: 0; flex: 1; }
  .hospital-admin-grid { grid-template-columns: 1fr; }
  .commercial-heading { align-items: flex-start; flex-direction: column; }
  .commercial-grid, .service-options { grid-template-columns: 1fr; }
  .binary-grid, .diagnostic-grid, .support-grid, .residency-details, .service-type-options { grid-template-columns: 1fr; }
  .beds-grid { grid-template-columns: 1fr 1fr; }
  .relation-box { align-items: flex-start; flex-direction: column; }
  .relation-inputs { width: 100%; flex-direction: column; }
  .relation-inputs label { justify-content: space-between; }
}
.service-chief-choice { display: inline-flex; align-items: center; gap: .45rem; margin-top: .55rem; color: var(--ink); font-size: 1.144rem; font-weight: 700; }
.service-chief-choice input { width: 1rem !important; min-height: auto !important; accent-color: var(--red); }
.clinical-chief-select { margin-top: 18px; max-width: 520px; }

/* ---- editor de conteúdo do site ---- */
.content-layout{display:grid;grid-template-columns:270px 1fr;gap:22px;align-items:start}
.content-sections{display:grid;gap:6px;position:sticky;top:18px}
.content-section{display:flex;gap:11px;align-items:center;text-align:left;padding:11px 13px;border-radius:11px;border:1px solid transparent;background:transparent;cursor:pointer;font:inherit;color:inherit;width:100%}
.content-section:hover{background:rgba(169,47,53,.06)}
.content-section.active{background:#fff;border-color:rgba(169,47,53,.35);box-shadow:0 6px 18px rgba(17,17,19,.06)}
.content-section i{font-style:normal;width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:9px;background:rgba(169,47,53,.1);color:#8B1E2D}
.content-section span{display:grid;min-width:0}
.content-section strong{font-size:.9rem}
.content-section small{font-size:.72rem;color:#6E6A6B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.content-editor{background:#fff;border:1px solid #E5DEDB;border-radius:16px;padding:22px}
.content-editor-head h2{margin:0 0 4px}
.content-editor-head p{margin:0 0 18px;color:#6E6A6B;font-size:.9rem}
.content-block{border:1px solid #E5DEDB;border-radius:13px;padding:16px;margin-bottom:16px}
.content-block-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.content-block-head h3{margin:0;font-size:1rem}
.content-block-head small{color:#9C9799;font-weight:400}
.content-add-bloco{display:flex;gap:8px;align-items:center}
.content-add-bloco select{height:38px;border-radius:9px;border:1px solid #E5DEDB;padding:0 10px}
.content-itens{display:grid;gap:8px}
.content-item{border:1px solid #EFE9E7;border-radius:11px;background:#FBF9F8}
.content-item>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 13px;cursor:pointer;font-size:.88rem;list-style:none}
.content-item>summary::-webkit-details-marker{display:none}
.content-item[open]>summary{border-bottom:1px solid #EFE9E7;background:#fff;border-radius:11px 11px 0 0}
.content-item .admin-fields-grid{padding:14px}
.content-item .content-block{margin:0 14px 14px;background:#fff}
.content-item-acoes{display:flex;gap:4px;flex:none}
.content-item-acoes button{width:28px;height:28px;border-radius:8px;border:1px solid #E5DEDB;background:#fff;cursor:pointer;font-size:.8rem;line-height:1}
.content-item-acoes button:hover{border-color:#A92F35;color:#A92F35}
.content-bloco>summary strong{font-family:Georgia,serif}
.content-vazio{color:#9C9799;font-size:.88rem;margin:6px 0}
.content-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap;padding-top:6px}
.content-status{margin-right:auto;font-size:.82rem;color:#6E6A6B}
.content-status.erro{color:#A92F35}
.field-arquivo{display:flex;gap:8px}
.field-arquivo input{flex:1}
.field-preview{max-height:96px;margin-top:8px;border-radius:9px;display:block}
.field-bool .switch{display:flex;gap:9px;align-items:center;font-size:.88rem;cursor:pointer}
.field-bool .switch input{width:auto}
.content-form textarea.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.83rem}
.media-dialog{max-width:840px;width:94vw}
.media-upload{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.media-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;max-height:48vh;overflow:auto}
.media-item{border:1px solid #E5DEDB;border-radius:11px;padding:10px;display:grid;gap:6px;justify-items:center;text-align:center}
.media-item img{max-width:100%;max-height:88px;object-fit:contain}
.media-item strong{font-size:.78rem;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.media-item small{font-size:.72rem;color:#9C9799}
.media-pdf{display:grid;place-items:center;width:64px;height:64px;border-radius:10px;background:rgba(169,47,53,.1);color:#8B1E2D;font-weight:700;font-size:.8rem}
.media-item-acoes{display:flex;gap:6px}
.media-item-acoes button{padding:5px 9px;font-size:.75rem}
@media(max-width:900px){.content-layout{grid-template-columns:1fr}.content-sections{position:static;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
