@import url("/static/brand-typographic.css?v=1.0.1");
/* Shared screen identity. Printable clinical documents keep their print rules. */
@media screen {
:root{--arkhe-font:"Segoe UI",Arial,sans-serif;--arkhe-purple:#7854ab;--arkhe-ink:#303347;--arkhe-line:#e7e1ee}
body,button,input,select,textarea,h1,h2,h3,h4,label,summary{font-family:var(--arkhe-font)!important}
.arkhe-chrome{background:#fff;color:var(--arkhe-ink);border-bottom:1px solid var(--arkhe-line);box-sizing:border-box}
.arkhe-heading-row{display:flex;align-items:center;gap:20px;min-width:0;padding:10px 0;flex:1}
.arkhe-heading-row .arkhe-logo{display:grid;flex:none;min-width:96px;text-align:center;text-decoration:none;color:var(--arkhe-purple)!important;line-height:1}
.arkhe-sidebar-brand-visible .arkhe-heading-row .arkhe-logo{display:none!important}
.arkhe-logo span{font:22px/1 Georgia,serif!important;letter-spacing:4px}
.arkhe-logo small{font:8px/1 var(--arkhe-font)!important;letter-spacing:2px;margin-top:9px;display:block}
.arkhe-heading-text{min-width:0}
.arkhe-heading-text .arkhe-kicker{font:400 9px/1.3 var(--arkhe-font)!important;letter-spacing:2px;color:#399a91;margin:0 0 3px;text-transform:uppercase}
.arkhe-heading-text h1{font:600 19px/1.25 var(--arkhe-font)!important;margin:0!important;color:var(--arkhe-ink)!important;letter-spacing:normal}
.arkhe-heading-text h1 small{font:500 10px/1.3 var(--arkhe-font)!important}
.arkhe-chrome > .brand,.arkhe-chrome > .heading > img{display:none!important}
.arkhe-chrome > .heading:empty{display:none}
header.arkhe-chrome{height:auto;min-height:58px;padding:0 22px;gap:20px;display:flex;align-items:center;flex-wrap:wrap}
header.arkhe-chrome > .actions{margin-left:auto}
.arkhe-panel-chrome .arkhe-heading-row{gap:10px;flex-wrap:wrap}
.arkhe-panel-chrome .arkhe-logo{min-width:88px}
.arkhe-panel-chrome .arkhe-heading-text h1{font-size:19px!important}
/* Help icon revised to a crisp 16 px vector after visual feedback.
   A transparent hit area preserves usability without enlarging the glyph. */
button.control-help,button.info-button,button.info,button.help-icon,button[data-arkhe-info]{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 24px!important;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:transparent!important;font-size:0!important;vertical-align:middle!important;border-radius:50%!important}
button.control-help::after,button.info-button::after,button.info::after,button.help-icon::after,button[data-arkhe-info]::after{content:'i';display:flex;align-items:center;justify-content:center;width:14px;height:14px;box-sizing:border-box;border:1px solid #bca6d2;border-radius:50%;background:transparent;color:#7854ab;font:italic 11px/1 Georgia,serif}
button.control-help:focus-visible,button.info-button:focus-visible,button.info:focus-visible{outline:2px solid #7854ab!important;outline-offset:1px}
@media(max-width:600px){header.arkhe-chrome{padding:0 14px;gap:8px}.arkhe-heading-row{gap:12px}.arkhe-heading-text h1{font-size:17px!important}.arkhe-heading-row .arkhe-logo{min-width:86px}.arkhe-sidebar-brand-visible .arkhe-heading-row .arkhe-logo{display:none!important}
.arkhe-logo span{font-size:20px!important}}
}
@media print {.arkhe-heading-row{display:none!important}}

@media screen{.arkhe-old-brand,.arkhe-print-title{display:none!important}}
@media print{.arkhe-print-title{display:block!important}}

@media screen{.arkhe-heading-row.arkhe-panel-chrome{gap:10px;flex-wrap:wrap}.access-card > .brand-symbol{display:none}.arkhe-heading-row + .heading > img{display:none!important}}

@media screen{.arkhe-heading-text > .muted,.arkhe-heading-text > .subtitle{font-size:11px;line-height:1.4;margin:4px 0 0}.profile-heading.arkhe-chrome,.topline.arkhe-chrome{gap:16px;padding:0 18px}.arkhe-heading-text{flex:1}.arkhe-chrome > div:has(> .arkhe-print-title):not(:has(> :not(.arkhe-print-title,.arkhe-old-brand))){display:none}}

/* Protocol reference table: reserve readable space for component names. */
body[data-arkhe-section="PROTOCOLO · REFERÊNCIAS"] table{table-layout:fixed}
body[data-arkhe-section="PROTOCOLO · REFERÊNCIAS"] th:first-child,body[data-arkhe-section="PROTOCOLO · REFERÊNCIAS"] td:first-child{width:180px;overflow-wrap:normal;word-break:normal}
body[data-arkhe-section="PROTOCOLO · REFERÊNCIAS"] td:first-child{font-weight:600;color:#684792}
body[data-arkhe-section="PROTOCOLO · REFERÊNCIAS"] td{line-height:1.65}
@media screen and (max-width:600px){
body[data-arkhe-section="PROTOCOLO · REFERÊNCIAS"] main{padding:14px!important}
body[data-arkhe-section="PROTOCOLO · REFERÊNCIAS"] section{padding:16px!important}
body[data-arkhe-section="PROTOCOLO · REFERÊNCIAS"] thead{display:none}
body[data-arkhe-section="PROTOCOLO · REFERÊNCIAS"] tr,body[data-arkhe-section="PROTOCOLO · REFERÊNCIAS"] td{display:block;width:100%!important;box-sizing:border-box}
body[data-arkhe-section="PROTOCOLO · REFERÊNCIAS"] td:first-child{border-bottom:0;padding-bottom:3px}
body[data-arkhe-section="PROTOCOLO · REFERÊNCIAS"] td+td{padding-top:3px}
}

/* Shared return navigation; original destinations and click handlers remain intact. */
@media screen {
body a.arkhe-back,body button.arkhe-back{display:inline-flex!important;align-items:center!important;justify-content:center;gap:8px!important;width:auto!important;min-height:34px;padding:7px 12px!important;border:1px solid #8bbfba!important;border-radius:8px!important;background:#e5f3f0!important;color:#205f5b!important;font:600 12px/18px "Segoe UI",Arial,sans-serif!important;text-decoration:none!important;box-shadow:none!important;cursor:pointer;vertical-align:middle;box-sizing:border-box}
body a.arkhe-back::before,body button.arkhe-back::before{content:"←";font:500 17px/1 "Segoe UI",Arial,sans-serif;flex:none}
body a.arkhe-back:hover,body button.arkhe-back:hover{background:#cfe9e4!important;border-color:#568f88!important;filter:none!important}
body a.arkhe-back:focus-visible,body button.arkhe-back:focus-visible{outline:2px solid #205f5b!important;outline-offset:3px}
}

@media screen{body[data-arkhe-section="PROTOCOLO · REFERÊNCIAS"] main{margin-top:4px;padding-top:8px}}

/* Recoverable deletion belongs at the end of the record, apart from routine work. */
.arkhe-delete-area{margin-top:28px;padding-top:16px;border-top:1px solid #e7e1ee;display:flex;justify-content:flex-end}
.arkhe-delete-area[hidden]{display:none!important}
body button.arkhe-trash{display:inline-flex;align-items:center;gap:8px;width:auto;padding:8px 12px!important;border:1px solid #d8a3a9!important;border-radius:8px!important;background:#fff2f3!important;color:#a32d40!important;font:600 12px/18px "Segoe UI",Arial,sans-serif!important;box-shadow:none!important;cursor:pointer}
body button.arkhe-trash::before{content:"";width:15px;height:16px;flex:none;background:currentColor;clip-path:polygon(30% 0,70% 0,70% 12%,95% 12%,95% 24%,5% 24%,5% 12%,30% 12%,30% 0,15% 32%,85% 32%,78% 100%,22% 100%,15% 32%)}
body button.arkhe-trash:hover{background:#f9dfe3!important;border-color:#b45866!important;filter:none!important}
body button.arkhe-trash:focus-visible{outline:2px solid #a32d40;outline-offset:3px}

.arkhe-trash-confirm{box-sizing:border-box;width:min(460px,calc(100vw - 32px));max-height:90vh;padding:24px;border:1px solid #e6d8dd;border-radius:16px;background:white;color:#303347;box-shadow:0 18px 60px #30204022}
.arkhe-trash-confirm::backdrop{background:#30284066}
.arkhe-trash-confirm h2{font-size:19px;margin:0 0 16px}
.arkhe-trash-confirm p{white-space:pre-line;font-size:14px;line-height:1.6}
.arkhe-trash-confirm form{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}
.arkhe-trash-confirm button[value=cancel]{border:1px solid #e7e1ee;border-radius:8px;background:#f4f1f7;color:#624689;padding:8px 12px;font:600 12px/18px "Segoe UI",Arial,sans-serif;cursor:pointer}

body button.arkhe-restore{display:inline-flex;align-items:center;gap:8px;width:auto;padding:8px 12px!important;border:1px solid #8ebda0!important;border-radius:8px!important;background:#e9f5ed!important;color:#25683e!important;font:600 12px/18px "Segoe UI",Arial,sans-serif!important;box-shadow:none!important;cursor:pointer}
body button.arkhe-restore::before{content:"↶";font-size:18px;line-height:1}
body button.arkhe-restore:hover{background:#d6ecde!important;border-color:#538c67!important;filter:none!important}
body button.arkhe-restore:focus-visible{outline:2px solid #25683e;outline-offset:3px}

/* Archiving: soft orange, distinct from restoring and deleting. */
body .arkhe-archive{background:#fff0df!important;color:#91521f!important;border:1px solid #e8bb88!important;border-radius:8px!important;box-shadow:none!important;font:600 12px/18px "Segoe UI",Arial,sans-serif!important;padding:8px 12px!important;text-decoration:none!important}
body .arkhe-archive:hover{background:#ffe4c4!important;border-color:#ce9659!important;filter:none!important}
body .arkhe-archive:focus-visible{outline:2px solid #a76126;outline-offset:3px}
body select.arkhe-archive option{background:white;color:#303347}

body select:is(.arkhe-state-active,.arkhe-state-trash,.arkhe-state-all){border-radius:8px;font:600 12px/18px "Segoe UI",Arial,sans-serif;padding:8px 12px;box-shadow:none}
body select.arkhe-state-active{background:#e9f5ed;color:#25683e;border:1px solid #8ebda0}
body select.arkhe-state-trash{background:#fff2f3;color:#a32d40;border:1px solid #d8a3a9}
body select.arkhe-state-all{background:#eee8f7;color:#624689;border:1px solid #cbb9df}
body select:is(.arkhe-state-active,.arkhe-state-trash,.arkhe-state-all):focus-visible{outline:2px solid currentColor;outline-offset:3px}
body select:is(.arkhe-state-active,.arkhe-state-trash,.arkhe-state-all) option{background:white;color:#303347}

body.embedded{height:100dvh;overflow:hidden}
body.embedded main{height:100%;box-sizing:border-box;display:flex;flex-direction:column;min-height:0}
body.embedded main>#viewer{flex:1;min-height:0!important;height:auto!important}
body.embedded main>.choose-local,body.embedded main>div:not(#viewer){flex:none}

/* Main logo on the access screen. */
@media screen{.access-card > .arkhe-heading-row{flex-direction:column;align-items:center;gap:16px;text-align:center;padding-top:0}.access-card .arkhe-access-logo img{display:block;width:130px;height:130px;object-fit:contain}.access-card .arkhe-heading-text{flex:auto}}
@media screen{.access-card .arkhe-access-logo{background:var(--arkhe-purple);mask:url("/static/logo-oficial.png") center/contain no-repeat}.access-card .arkhe-access-logo img{opacity:0}}

/* Shared confirmation layout across appointments, patients and assessments. */
body dialog.arkhe-trash-confirm{width:min(460px,calc(100vw - 32px));padding:24px;border:1px solid #e6deef;border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 18px 60px #30264326;color:#514362;font:14px/1.6 'Segoe UI',Arial,sans-serif}
body dialog.arkhe-trash-confirm::backdrop{background:#30264366;backdrop-filter:blur(3px)}
body dialog.arkhe-trash-confirm h2{font:600 19px/1.4 'Segoe UI',Arial,sans-serif;margin:0 0 14px}
body dialog.arkhe-trash-confirm p{font:14px/1.6 'Segoe UI',Arial,sans-serif;margin:0 0 18px;white-space:pre-line}
body dialog.arkhe-trash-confirm form{display:block;margin:0}
body dialog.arkhe-trash-confirm .arkhe-confirm-field{display:block;font-size:12px;color:#655672;margin:0 0 18px}
body dialog.arkhe-trash-confirm input{display:block;box-sizing:border-box;width:100%;margin:7px 0 0;padding:10px 12px;border:1px solid #dcd4e6;border-radius:9px;background:#fff;color:#302643;font:14px 'Segoe UI',Arial,sans-serif}
body dialog.arkhe-trash-confirm input:focus{outline:2px solid #af93cd;outline-offset:1px}
body dialog.arkhe-trash-confirm .arkhe-confirm-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
body dialog.arkhe-trash-confirm button{min-height:38px;margin:0}

body dialog.arkhe-trash-confirm .arkhe-confirm-field{text-transform:none;letter-spacing:normal}

/* Document issuance and download: approved blue action family. */
:root{--arkhe-document:#287ac1;--arkhe-document-hover:#2169a8;--arkhe-document-active:#195789}
body .arkhe-document{background:var(--arkhe-document)!important;color:#fff!important;border:1px solid var(--arkhe-document)!important;box-shadow:0 2px 6px #19578920!important;font-weight:600}
body .arkhe-document:hover:not(:disabled){background:var(--arkhe-document-hover)!important}
body .arkhe-document:active:not(:disabled){background:var(--arkhe-document-active)!important}
body .arkhe-document:focus-visible{outline:3px solid #a9d4fa;outline-offset:2px}
body .arkhe-document:disabled{opacity:.55}
