.workspace { --sidebar-width:208px; --header-height:57px; margin:0; background:var(--bg-app); color:var(--text-primary); font:14px/1.45 "Segoe UI",sans-serif; }
[hidden],.is-hidden { display:none!important; }
.icon-definitions { position:absolute; width:0; height:0; overflow:hidden; }
.workspace svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.workspace button,.workspace input,.workspace select { font:inherit; }
.workspace button { cursor:pointer; }
.workspace button:disabled { opacity:.55; cursor:not-allowed; }
.workspace :focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.sidebar { position:fixed; inset:0 auto 0 0; width:208px; padding:26px 14px 14px; background:var(--nav-bg); color:var(--nav-text); display:flex; flex-direction:column; z-index:20; }
.brand { display:flex; gap:10px; align-items:center; margin:0 9px 32px; color:var(--bg-surface); }
.workspace-content { position:relative; isolation:isolate; }
.workspace-content::before { content:""; position:fixed; left:calc(var(--sidebar-width) + (100vw - var(--sidebar-width)) / 2); top:calc(var(--header-height) + (100dvh - var(--header-height)) / 2); width:min(44vw,520px); height:min(44vw,520px); transform:translate(-50%,-50%); background:url('../assets/branding/logo-empresa.png') center/contain no-repeat; opacity:.06; pointer-events:none; z-index:-1; }
.workspace.portal-mode .workspace-content::before { display:none; }
#userMenu { position:relative; }
#userMenu summary { list-style:none; cursor:pointer; border:1px solid var(--nav-hover); border-radius:8px; padding:12px 8px; }
#userMenu summary::-webkit-details-marker { display:none; }
.account-menu { position:absolute; bottom:calc(100% + 8px); left:0; width:100%; min-width:150px; padding:6px; background:var(--nav-bg); border:1px solid var(--nav-hover); border-radius:8px; box-shadow:var(--shadow-lg); }
.account-menu .nav-item { justify-content:flex-start; }
.workspace.internal-mode .workspace-content { height:calc(100dvh - 57px); display:flex; flex-direction:column; }
#view-internal { flex:1; min-height:0; }
#internalPage { width:100%; height:100%; border:0; display:block; }
.workspace.internal-mode .page-mark { display:none; }
.workspace .icon-definitions { width:0; height:0; }
.brand strong { display:block; font-size:18px; font-weight:650; letter-spacing:-.4px; white-space:nowrap; }
.brand small { display:block; margin-top:3px; color:var(--nav-muted); font-size:11px; font-weight:400; letter-spacing:0; }
.nav-caption { color:var(--nav-muted); font-size:10px; font-weight:600; letter-spacing:1.3px; margin:20px 12px 9px; }
.sidebar nav { display:grid; gap:4px; }
.nav-item { display:flex; align-items:center; gap:12px; width:100%; min-height:43px; padding:10px 12px; border:0; border-radius:var(--radius-sm); background:none; color:inherit; text-align:left; transition:background .15s; }
.nav-item:hover { background:var(--nav-hover); color:var(--bg-surface); }
.nav-item.active { background:var(--primary); color:var(--bg-surface); box-shadow:inset 3px 0 var(--focus); }
.sidebar-bottom { margin-top:auto; padding-top:24px; }
.account-button { display:flex; gap:10px; align-items:center; border:0; border-top:1px solid var(--nav-hover); background:none; color:inherit; width:100%; padding:18px 8px; text-align:left; min-width:0; }
.account-button>span:last-child { min-width:0; }
.account-button strong { display:block; font-size:13px; color:var(--bg-surface); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:130px; }
.account-button small { color:var(--nav-muted); }
.avatar { width:32px; height:32px; border-radius:50%; background:var(--nav-hover); display:grid; place-items:center; flex-shrink:0; font-weight:600; font-size:12px; }
.main-workspace { margin-left:var(--sidebar-width); min-width:0; }
.workspace-header { height:57px; display:flex; align-items:center; justify-content:space-between; padding:0 30px; border-bottom:1px solid var(--border); background:var(--bg-surface); color:var(--text-secondary); font-size:12px; }
.workspace-header strong { color:var(--text-primary); font-weight:500; }
.breadcrumb-separator { padding:0 12px; color:var(--border); }
.header-label { letter-spacing:1px; font-size:10px; border:1px solid var(--border); padding:4px 8px; border-radius:4px; }
.workspace-content { max-width:1640px; margin:auto; padding:24px 30px 18px; }
.page-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.eyebrow { color:var(--primary); font-size:10px; font-weight:700; letter-spacing:1.6px; }
.page-heading h1 { font-family:"Segoe UI Variable Display","Segoe UI",sans-serif; font-size:27px; font-weight:650; letter-spacing:-.7px; line-height:1.25; margin:5px 0; }
.page-heading p { margin:0; color:var(--text-secondary); font-size:13px; }
.page-mark { display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--border); border-radius:10px; background:var(--bg-surface); color:var(--primary); }
.guide-layout { display:grid; grid-template-columns:minmax(0,1.85fr) minmax(270px,1fr); gap:16px; }
.work-panel { min-width:0; padding:20px; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--bg-surface); box-shadow:var(--shadow-sm); }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.section-heading h2 { display:flex; align-items:center; gap:8px; font-size:15px; font-weight:650; margin:0; }
.section-heading h2 svg { color:var(--primary); width:18px; height:18px; }
.section-heading>span { font-size:11px; color:var(--text-secondary); }
.section-heading h3 { font-size:13px; margin:0; font-weight:600; }
.form-row { display:flex; flex-direction:column; gap:6px; min-width:0; }
.workspace label { font-weight:600; color:var(--text-primary); font-size:12px; }
.workspace input:not([type=radio]):not([type=checkbox]),.workspace select { width:100%; min-width:0; height:38px; border:1px solid var(--border-input); border-radius:var(--radius-sm); padding:7px 10px; color:var(--text-primary); background:var(--bg-surface); }
.workspace input::placeholder { color:var(--text-secondary); opacity:1; }
.workspace input[readonly] { background:var(--bg-subtle)!important; color:var(--text-secondary)!important; }
.workspace input:focus,.workspace select:focus { border-color:var(--primary); }
.workspace input:disabled,.workspace select:disabled { background:var(--bg-subtle); opacity:.7; }
.workspace input:user-invalid,.workspace select:user-invalid { border-color:var(--danger); }
.fields-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.patient-picker { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid var(--border); }
.input-addon-group { display:flex; align-items:stretch; min-width:0; }
.workspace .input-addon-main { border-radius:var(--radius-sm) 0 0 var(--radius-sm); }
.input-addon-btn { display:grid; place-items:center; width:34px; padding:0; flex-shrink:0; background:var(--bg-subtle); color:var(--text-secondary); border:1px solid var(--border-input); border-left:0; }
.input-addon-btn:last-child { border-radius:0 var(--radius-sm) var(--radius-sm) 0; }
.input-addon-btn:hover { color:var(--primary); background:var(--primary-soft); }
.workspace .input-addon-btn svg { width:16px; height:16px; }
.preselection-summary { margin-top:20px; }
.preselection-summary .section-heading { margin-bottom:10px; }
.text-button { display:inline-flex; gap:5px; align-items:center; background:none; color:var(--primary); border:0; padding:3px; font-size:12px!important; }
.text-button svg { width:14px; height:14px; }
.day-chips { display:flex; flex-wrap:wrap; gap:7px; min-height:30px; }
.day-chip { padding:6px 10px; border-radius:6px; background:var(--primary-soft); color:var(--primary); font-size:12px; font-weight:600; border:1px solid var(--primary-border); }
.field-note { color:var(--text-secondary); font-size:11px; margin:10px 0 0; }
.request-note { display:flex; gap:9px; padding-top:14px; margin-top:16px; border-top:1px solid var(--border); color:var(--text-secondary); font-size:12px; }
.request-note p { margin:0; }
.request-note svg { width:17px; height:17px; }
.procedures-panel { grid-column:1/-1; padding-bottom:8px; }
.procedure-entry { display:grid; grid-template-columns:minmax(200px,2fr) minmax(100px,1fr) minmax(105px,.85fr) minmax(90px,.65fr) auto; gap:12px; align-items:end; margin-bottom:18px; }
.btn-primary,.btn-secondary,.btn-danger { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:38px; padding:8px 16px; border-radius:var(--radius-sm); border:1px solid transparent; font-weight:600!important; font-size:13px!important; white-space:nowrap; }
.btn-primary { color:var(--bg-surface); background:var(--primary); }
.btn-primary:hover { background:var(--primary-hover); }
.btn-secondary { color:var(--text-primary); background:var(--bg-surface); border-color:var(--border-input); }
.btn-secondary:hover { background:var(--bg-subtle); }
.btn-danger { color:var(--danger); background:var(--danger-soft); border-color:var(--danger-border); }
.table-wrap { max-width:100%; overflow:auto; }
.workspace table { width:100%; border-collapse:collapse; text-align:left; }
.workspace th { padding:10px 12px; background:var(--bg-subtle); color:var(--text-secondary); font-size:11px; font-weight:600; border-bottom:1px solid var(--border); }
.workspace td { padding:10px 12px; border-bottom:1px solid var(--border); font-size:13px; overflow-wrap:anywhere; }
.workspace tbody tr:last-child td { border-bottom:0; }
.workspace tbody tr:hover { background:var(--bg-subtle); }
#tabelaItens th:nth-child(2),#tabelaItens td:nth-child(2) { width:26%; font-variant-numeric:tabular-nums; }
#tabelaItens td:nth-child(3) { width:20%; font-variant-numeric:tabular-nums; }
#tabelaItens td:last-child { width:46px; }
.removerItem,.registry-edit { display:grid; place-items:center; min-width:32px; min-height:32px; border:0; border-radius:5px; background:transparent; color:var(--text-secondary); }
.removerItem:hover { background:var(--danger-soft); color:var(--danger); }
.registry-edit:hover { background:var(--primary-soft); color:var(--primary); }
.empty-state { padding:24px 16px; text-align:center; color:var(--text-secondary); font-size:12px; }
.guide-footer { position:sticky; bottom:0; z-index:10; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; background:var(--bg-app); }
.guide-footer>span { color:var(--text-secondary); font-size:12px; }
.footer-actions { display:flex; gap:10px; }
#btnGerarGuia { min-width:153px; }
.automation-status { display:flex; gap:10px; align-items:flex-start; color:var(--text-secondary); padding:12px 14px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-surface); font-size:12px; }
.automation-status strong { display:block; margin-bottom:2px; color:var(--text-primary); font-size:12px; font-weight:600; }
.status-indicator { width:8px; height:8px; border-radius:50%; background:var(--text-secondary); flex-shrink:0; margin-top:5px; }
.automation-status[data-state=processing] .status-indicator { width:13px; height:13px; background:transparent; border:2px solid var(--primary-border); border-top-color:var(--primary); animation:spin .8s linear infinite; }
.automation-status[data-state=error] { border-color:var(--danger-border); background:var(--danger-soft); }
.automation-status[data-state=error] .status-indicator { background:var(--danger); }
.automation-status[data-state=success] .status-indicator { background:var(--success); }
.automation-status[data-state=warning] .status-indicator { background:var(--warning); }
.automation-status[data-state=cancelled] .status-indicator { background:var(--warning); }
#notificationCenter { position:relative; margin-left:16px; }
#notificationCenter summary { cursor:pointer; color:var(--text-primary); padding:7px; border-radius:var(--radius-sm); }
#notificationCount { color:var(--primary); margin-left:5px; }
#notificationList { position:absolute; right:0; top:100%; z-index:90; width:min(360px,75vw); max-height:360px; overflow:auto; padding:12px; margin:6px 0 0; list-style:none; background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--radius-md); box-shadow:var(--shadow-lg); }
.notification-toolbar { position:absolute; right:0; top:100%; z-index:91; display:flex; align-items:center; justify-content:space-between; gap:12px; width:min(360px,75vw); box-sizing:border-box; padding:12px 12px 0; margin:6px 0 0; transform:translateY(0); background:var(--bg-surface); border:1px solid var(--border); border-bottom:0; border-radius:var(--radius-md) var(--radius-md) 0 0; color:var(--text-secondary); font-size:11px; }
.notification-toolbar button { border:0; padding:4px 0; background:none; color:var(--primary); cursor:pointer; font:600 11px inherit; }
.notification-toolbar button:hover { color:var(--primary-hover); text-decoration:underline; }
#notificationCenter:not([open]) .notification-toolbar { display:none; }
#notificationCenter[open] #notificationList { margin-top:6px; padding-top:42px; }
#notificationList li { display:grid; gap:5px; padding:10px; border-bottom:1px solid var(--border); }
#notificationList small { color:var(--text-secondary); }
.workspace-header .header-label { margin-left:auto; }
#statusDetails { margin-top:8px; }
#statusDetails summary { cursor:pointer; color:var(--primary); }
#statusTechnical { max-height:180px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font-size:11px; }
.registry-toolbar { display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.search-field { display:flex; align-items:center; position:relative; flex:1; max-width:480px; }
.search-field>svg { position:absolute; left:11px; color:var(--text-secondary); width:17px; height:17px; }
.workspace .search-field input[type=search] { padding-left:38px; height:42px; }
.registry-toolbar .btn-primary { margin-left:auto; }
#registryTable td:first-child { font-weight:600; }
.registry-actions { display:flex; justify-content:flex-end; gap:8px; }
.settings-options { max-width:880px; display:grid; gap:12px; }
.setting-option { display:flex; align-items:center; gap:16px; padding:20px; background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--radius-md); text-align:left; color:var(--primary); }
.setting-option>span { flex:1; }
.setting-option strong { display:block; color:var(--text-primary); font-weight:600; }
.setting-option small { display:block; color:var(--text-secondary); margin-top:4px; }
#view-configuracoes,#view-cadastros { margin-bottom:20px; }
.muted { color:var(--text-secondary); font-size:12px; }
.modal { display:none; position:fixed; inset:0; z-index:100; align-items:center; justify-content:center; padding:24px; background:var(--overlay); }
.modal.show { display:flex; }
.modal-content { display:flex; flex-direction:column; width:min(100%,520px); max-height:calc(100dvh - 48px); min-width:0; background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); overflow:hidden; }
.modal-content.wide { width:min(100%,760px); }
.modal-content.small { width:min(100%,460px); }
.modal-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 22px; border-bottom:1px solid var(--border); }
.modal-header h3 { font-size:18px; margin:0; font-weight:650; letter-spacing:-.3px; }
.modal-close { width:32px; height:32px; display:grid; place-items:center; flex-shrink:0; border:0; background:var(--bg-subtle); color:var(--text-secondary); border-radius:5px; }
.modal-body { padding:20px 22px; overflow:auto; min-height:0; }
.modal-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; padding:16px 22px; border-top:1px solid var(--border); background:var(--bg-subtle); }
.modal-actions-split { justify-content:space-between; }
.modal-actions-right,.modal-actions-left { display:flex; gap:8px; flex-wrap:wrap; }
.form-group { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; min-width:0; }
.form-group-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.form-hint,.preselection-subtitle { color:var(--text-secondary); font-size:12px; margin:5px 0 0; }
.form-error { color:var(--danger); font-size:12px; }
.form-status { color:var(--primary); font-size:12px; }
.motivo-options { display:grid; gap:10px; }
.motivo-option { display:flex; gap:10px; align-items:center; border:1px solid var(--border); border-radius:var(--radius-sm); padding:14px; cursor:pointer; }
.motivo-option.selected { border-color:var(--primary); background:var(--primary-soft); }
.motivo-option label { cursor:pointer; }
.motivo-option input { accent-color:var(--primary); }
.preselection-modal { width:min(100%,1420px); }
.preselection-table-wrap { overflow:auto; }
.workspace .preselection-table { table-layout:fixed; min-width:1050px; }
.preselection-table th:first-child { width:140px; }
.preselection-table td { vertical-align:top; padding:10px 6px; }
.preselection-day-summary { font-size:11px; color:var(--text-secondary); margin-bottom:10px; }
.preselection-entry-list { display:grid; gap:8px; }
.preselection-entry { background:var(--bg-subtle); border:1px solid var(--border); border-radius:6px; padding:8px; }
.preselection-entry-controls { display:flex; align-items:end; gap:6px; margin-top:8px; }
.preselection-qty-group { flex:1; display:grid; gap:4px; }
.preselection-qty-group span { font-size:10px; color:var(--text-secondary); }
.preselection-remove { width:30px; height:34px; background:none; border:0; color:var(--danger); }
.preselection-remove:before { content:"×"; font-size:20px; }
.preselection-add { width:100%; min-height:34px; margin-top:8px; background:var(--primary-soft); color:var(--primary); border:1px solid var(--primary-border); border-radius:5px; font-size:11px!important; }
.preselection-empty { font-size:11px; color:var(--text-secondary); padding:10px 0; }
#modalConfirmacaoExclusao,#modalMotivoInsentivo { z-index:110; }
.app-update-banner { display:none; }
.app-update-banner.show { display:flex; justify-content:space-between; gap:16px; padding:12px; margin-bottom:16px; background:var(--primary-soft); border:1px solid var(--primary-border); border-radius:6px; font-size:12px; }
.app-update-banner.error { background:var(--danger-soft); border-color:var(--danger-border); }
.app-update-banner.warning { background:#fff7e2; border-color:#d0a94c; }
.app-update-settings { margin-top:16px; display:grid; gap:8px; }
.app-update-settings h2 { margin:0; font-size:16px; }
.app-update-settings p { margin:0; }
.app-update-version { font-weight:600; }
.app-update-status,.app-update-progress-label { font-size:12px; color:var(--text-secondary); }
.app-update-progress { width:100%; height:8px; accent-color:var(--primary); }
.app-update-actions { display:flex; flex-wrap:wrap; gap:8px; }
.app-update-modal .modal-content { width:min(440px,100%); }
.app-update-release-notes { max-height:180px; overflow:auto; white-space:pre-wrap; font-size:12px; }
.app-update-modal .modal-actions { justify-content:flex-end; }
.app-update-modal[hidden] { display:none!important; }
.toast-region { position:fixed; right:24px; top:20px; z-index:200; display:grid; gap:8px; max-width:min(420px,calc(100vw - 32px)); }
.toast { display:flex; align-items:start; gap:14px; padding:14px 16px; background:var(--bg-surface); border:1px solid var(--border); border-left:3px solid var(--success); border-radius:8px; box-shadow:var(--shadow-lg); font-size:13px; }
.toast.error { border-left-color:var(--danger); }
.toast button { background:none; border:0; color:var(--text-secondary); font-size:18px; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0!important; }
[aria-busy=true] { cursor:progress; }
button[aria-busy=true]::before { content:""; width:12px; height:12px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (max-height:950px) and (min-width:1000px) {
.workspace { --header-height:46px; }
.patient-panel>.fields-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.request-note { margin-top:8px; padding-top:8px; }
.request-note p { font-size:11px; }
.page-heading .eyebrow { display:none; }
.page-heading p { font-size:12px; }
.workspace th { padding:7px 12px; }
.workspace .removerItem { min-height:28px; }
.workspace .procedures-panel td { padding:2px 12px; }
.workspace .procedures-panel { padding-bottom:8px; }
.workspace-content { padding:16px 24px 12px; }
.workspace-header { height:46px; padding:0 24px; }
.page-heading { margin-bottom:14px; }
.page-heading h1 { font-size:24px; }
.work-panel { padding:15px; }
.section-heading { margin-bottom:12px; }
.patient-picker { padding-bottom:12px; margin-bottom:12px; }
.fields-grid { gap:10px; }
.guide-layout { gap:12px; }
.workspace input:not([type=radio]):not([type=checkbox]),.workspace select { height:35px; }
.procedure-entry { margin-bottom:12px; }
.workspace td { padding:6px 12px; }
.preselection-summary { margin-top:14px; }
.guide-footer { padding:10px 0; }
.automation-status { padding:9px 12px; }
}
@media (min-width:1700px) { .workspace-content { padding-top:32px; } .work-panel { padding:24px; } .fields-grid { gap:18px; } .guide-layout { gap:20px; } .procedure-entry { margin-bottom:22px; } }
@media (max-width:1100px) { .workspace { --sidebar-width:176px; } .sidebar { width:176px; padding-inline:10px; } .brand { margin-inline:4px; } .brand strong { font-size:16px; } .brand small { font-size:10px; } .guide-layout { grid-template-columns:minmax(0,1.7fr) minmax(240px,1fr); } .procedure-entry { gap:8px; grid-template-columns:minmax(165px,1.7fr) 1fr 1fr 80px auto; } }
@media (max-width:900px) { .workspace { --sidebar-width:68px; } .sidebar { width:68px; padding:18px 8px; } .sidebar .nav-caption,.sidebar .brand>div,.sidebar .nav-item span,.sidebar .account-button>span:last-child { display:none; } .brand { margin:0 0 28px; justify-content:center; } .nav-item { justify-content:center; padding:12px; } .sidebar nav { margin-bottom:20px; } .account-button { justify-content:center; padding-inline:0; } .workspace-content { padding:20px 16px; } .guide-layout { grid-template-columns:1fr; } .request-panel { display:grid; grid-template-columns:1fr 1fr; gap:12px; } .request-panel>.section-heading,.request-note { grid-column:1/-1; } .preselection-summary { margin-top:0; } .procedure-entry { grid-template-columns:repeat(2,minmax(0,1fr)); } .procedure-entry .form-row:first-child { grid-column:1/-1; } .guide-footer>span { display:none; } .guide-footer { justify-content:flex-end; } .registry-toolbar { flex-wrap:wrap; } }
@media (max-width:540px) { .workspace-header { padding:0 16px; } .page-heading h1 { font-size:21px; } .page-mark { display:none; } .patient-picker,.fields-grid,.request-panel,.form-group-row { grid-template-columns:1fr; } .request-note { display:none; } .footer-actions { width:100%; gap:6px; } .footer-actions button { flex:1; min-width:0!important; padding-inline:8px; font-size:12px!important; } .modal { padding:12px; } .modal-content { max-height:calc(100dvh - 24px); } .modal-actions,.modal-header,.modal-body { padding:14px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }
@media (max-height:950px) and (min-width:1000px) { .workspace.internal-mode .workspace-content { height:calc(100dvh - 46px); } }
@media (max-width:900px) { .sidebar .brand>div { display:block; width:60px; text-align:center; } .sidebar .brand strong { font-size:12px; letter-spacing:0; white-space:normal; } .sidebar .brand small { display:none; } }

.workspace.portal-mode .workspace-content { max-width:none; height:calc(100vh - 46px); min-height:0; padding:10px 18px 8px; display:flex; flex-direction:column; overflow:hidden; }
.workspace.portal-mode .page-heading { display:none; }
.workspace.portal-mode #view-portal { flex:1; min-height:0; display:flex; flex-direction:column; }
#view-portal .portal-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:6px 8px; background:var(--surface, #fff); border:1px solid #dce4e9; border-radius:7px; margin-bottom:6px; }
#view-portal .portal-toolbar span { flex:1; min-width:160px; }
#view-portal .portal-toolbar button { min-height:30px; padding:5px 9px; font-size:12px; }
#view-portal #portalSurface { flex:1; min-height:0; height:auto; background:white; border:1px solid #dce4e9; }
#view-portal #portalError { padding:24px; color:#a12c30; }
@media (max-width:900px) { .workspace.portal-mode .workspace-content { height:calc(100vh - 46px); padding:8px 12px 6px; } }
@media (max-width:540px) { .workspace.portal-mode .workspace-content { height:calc(100vh - 46px); padding:6px 8px 4px; } #view-portal .portal-toolbar span { min-width:120px; } }
[hidden] { display:none !important; }
