/* DigitClínicas 1.1.15 — final isolation for operational pages and forms. Loaded last. */
.app-shell { --dc-gap:16px; }
.app-shell :is(.dc-ops-summary,.dc-backup-layout,.dc-appearance-layout,.dc-health-grid,.dc-notification-list,.dc-custom-options,.dc-brand-upload-grid,.dc-profile-tabs,.dc-visual-demo) {max-width:100%;min-width:0;box-sizing:border-box;}
.app-shell .dc-ops-summary {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;margin:0 0 22px!important;padding:0!important;border:0!important;background:transparent!important;}
.app-shell .dc-ops-kpi {display:grid!important;grid-template-columns:44px minmax(0,1fr);align-content:center;gap:4px 12px;min-height:118px;padding:18px!important;border:1px solid var(--skin-border,#dbe6ef)!important;border-radius:var(--dc-radius,14px)!important;background:var(--skin-card,#fff)!important;box-shadow:var(--dc-card-shadow,0 7px 22px #0001)!important;min-width:0!important;}
.app-shell .dc-ops-kpi>i {grid-column:1;grid-row:1/4;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;font-size:22px;color:var(--skin-accent,#087f85)!important;background:color-mix(in srgb,var(--skin-accent,#087f85) 11%,var(--skin-card,#fff));}
.app-shell .dc-ops-kpi>span {grid-column:2;font-size:12px;color:var(--skin-muted,#687f8e);line-height:1.45}
.app-shell .dc-ops-kpi>b {grid-column:2;font-size:clamp(18px,1.7vw,26px);line-height:1.3;overflow-wrap:anywhere;color:var(--skin-ink,#152e43);font-weight:800;}
.app-shell .dc-ops-toolbar {display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:0 0 16px!important;margin:0 0 17px!important;flex-wrap:wrap;border-bottom:1px solid var(--skin-border,#dce8ee);min-width:0;}
.app-shell .dc-ops-toolbar-standalone {background:var(--skin-card,#fff)!important;padding:18px 20px!important;margin:0 0 20px!important;border:1px solid var(--skin-border,#dce8ee)!important;border-radius:var(--dc-radius,14px)!important;box-shadow:var(--dc-card-shadow)!important;}
.app-shell .dc-ops-toolbar-copy {display:grid;gap:5px;min-width:0;}
.app-shell .dc-ops-toolbar-copy strong {font-size:15px;font-weight:800;color:var(--skin-ink,#19364a);}
.app-shell .dc-ops-toolbar-copy small {font-size:12px;line-height:1.5;color:var(--skin-muted,#658095);}
.app-shell .dc-button-row{display:flex!important;align-items:center;flex-wrap:wrap;gap:9px!important;min-width:0}
.app-shell .dc-button-row form{margin:0!important;max-width:100%}
.app-shell .dc-notification-list{display:grid!important;gap:12px!important;}
.app-shell .dc-notification-entry{display:flex!important;align-items:flex-start;gap:14px;padding:17px!important;border:1px solid var(--skin-border,#dce8ef)!important;border-radius:var(--dc-radius,14px)!important;background:var(--skin-card,#fff)!important;box-shadow:0 3px 12px #101a260a;min-width:0}
.app-shell .dc-notification-entry.unread{border-left:4px solid var(--skin-accent,#087f85)!important}
.app-shell .dc-notification-symbol{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;color:var(--skin-accent,#087f85);background:color-mix(in srgb,var(--skin-accent,#087f85) 12%,var(--skin-card,#fff));}
.app-shell .dc-notification-body{flex:1;min-width:0;overflow-wrap:anywhere}
.app-shell .dc-notification-body strong{font-size:13px;color:var(--skin-ink,#1e394d)}
.app-shell .dc-notification-body p{margin:6px 0;color:var(--skin-muted,#667f91);line-height:1.6;font-size:12px}
.app-shell .dc-notification-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;max-width:100%}
.app-shell .dc-notification-actions form{margin:0}
.app-shell .dc-health-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:0!important}
.app-shell .dc-health-entry{display:flex!important;align-items:center;gap:12px;min-height:85px;padding:14px!important;background:color-mix(in srgb,var(--skin-page,#f3f8fb) 45%,var(--skin-card,#fff))!important;border:1px solid var(--skin-border,#dbe6ed)!important;border-radius:12px!important;min-width:0!important;box-sizing:border-box}
.app-shell .dc-health-entry>i{font-size:20px;width:39px;height:39px;display:grid;place-items:center;flex-shrink:0;border-radius:11px;background:color-mix(in srgb,var(--skin-accent,#087f85) 10%,var(--skin-card,#fff));}
.app-shell .dc-health-entry>div{flex:1;min-width:0;display:grid;gap:5px}
.app-shell .dc-health-entry :is(b,strong){font-size:12.5px;line-height:1.5;color:var(--skin-ink,#193447)}
.app-shell .dc-health-entry small{color:var(--skin-muted,#668194);font-size:11.5px;line-height:1.5;overflow-wrap:anywhere;}
.app-shell .dc-health-entry .dc-status{flex-shrink:0;max-width:150px;white-space:normal;text-align:center;}
.app-shell .dc-backup-layout{display:grid!important;grid-template-columns:minmax(0,4fr) minmax(0,7fr)!important;gap:20px!important;align-items:start}
.app-shell .dc-backup-layout>*{min-width:0!important}
.app-shell .dc-backup-warning{display:flex!important;gap:13px;align-items:flex-start;border:1px solid var(--skin-border,#dce8ef);padding:16px!important;border-radius:12px;background:color-mix(in srgb,var(--skin-accent,#087f85) 7%,var(--skin-card,#fff));}
.app-shell .dc-backup-form{display:grid!important;gap:12px!important}
.app-shell .dc-steps-list{display:grid;gap:14px;padding-left:24px;margin:12px 0}
.app-shell .dc-steps-list li{line-height:1.5}
.app-shell .dc-steps-list b{display:block;margin-bottom:5px}
.app-shell .dc-steps-list span{display:block;font-size:12px;color:var(--skin-muted,#667e90)}
.app-shell .dc-appearance-layout{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(310px,1fr)!important;gap:18px!important;align-items:start!important;}
.app-shell .dc-appearance-layout>*{min-width:0!important;max-width:100%!important;}
.app-shell .dc-skin-options-v2{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:11px!important}
.app-shell .dc-visual-demo{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;position:relative!important;border:1px solid var(--skin-border,#dce8ed)!important;border-radius:14px!important;overflow:hidden!important;background:var(--skin-card,#fff)!important;box-shadow:0 12px 27px #10203019!important;}
.app-shell .dc-visual-demo .dc-demo-top{display:flex!important;align-items:center!important;gap:10px!important;min-height:44px!important;width:100%!important;padding:9px 11px!important;background:var(--skin-header,#102c40)!important;color:#fff!important;}
.app-shell .dc-visual-demo .dc-demo-logo{font-size:12px!important;max-width:40%;font-weight:800;color:#fff!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-shell .dc-visual-demo .dc-demo-search{margin-left:auto;display:flex;align-items:center;gap:7px;white-space:nowrap;max-width:50%;overflow:hidden;text-overflow:ellipsis;border-radius:9px;background:#ffffff1c;color:#fff;padding:5px 9px;font-size:9px}
.app-shell .dc-visual-demo .dc-demo-user{display:flex;align-items:center;gap:8px;flex-shrink:0;color:#fff;font-size:10px}
.app-shell .dc-visual-demo .dc-demo-body{display:grid!important;grid-template-columns:minmax(78px,24%) minmax(0,1fr)!important;min-height:275px!important;max-width:100%!important;}
.app-shell .dc-visual-demo .dc-demo-nav{display:flex!important;flex-direction:column;gap:7px;padding:12px 7px!important;background:var(--skin-sidebar,#082c43)!important;color:#e2f2fc!important;min-width:0!important;}
.app-shell .dc-visual-demo .dc-demo-nav-item{display:flex;align-items:center;gap:6px;border-radius:7px;padding:9px 5px;font-size:9px;line-height:1.25;min-width:0;color:inherit}
.app-shell .dc-visual-demo .dc-demo-nav-item.selected{background:color-mix(in srgb,var(--skin-accent,#087f85) 43%,transparent)!important}
.app-shell .dc-visual-demo .dc-demo-nav-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-shell .dc-visual-demo .dc-demo-main{display:block!important;min-width:0!important;max-width:100%!important;padding:13px!important;background:var(--skin-page,#f5f8fc)!important;color:var(--skin-ink,#173549)!important;}
.app-shell .dc-visual-demo .dc-demo-main>header{display:grid;gap:2px;margin:0 0 10px}
.app-shell .dc-visual-demo .dc-demo-main>header strong{font-size:15px;color:var(--skin-ink,#173549)}
.app-shell .dc-visual-demo .dc-demo-main>header small{font-size:10px;color:var(--skin-muted,#73879a)}
.app-shell .dc-visual-demo .dc-demo-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:11px;}
.app-shell .dc-visual-demo .dc-demo-metrics>div{display:grid;gap:4px;min-width:0;border-radius:9px;padding:10px 8px!important;border:1px solid var(--skin-border,#dce8ed)!important;background:var(--skin-card,#fff)!important;}
.app-shell .dc-visual-demo .dc-demo-metrics :is(small,b){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.app-shell .dc-visual-demo .dc-demo-metrics i{color:var(--skin-accent,#087f85)}
.app-shell .dc-visual-demo .dc-demo-panel{display:block!important;border-radius:9px;padding:11px!important;border:1px solid var(--skin-border,#dce8ed)!important;background:var(--skin-card,#fff)!important;color:var(--skin-ink,#173549)!important;min-height:105px;}
.app-shell .dc-visual-demo .dc-demo-chart{display:flex!important;align-items:flex-end;gap:8px;height:65px;margin-top:8px;background:repeating-linear-gradient(to top,var(--skin-border,#dce8ed) 0 1px,transparent 1px 22px)}
.app-shell .dc-visual-demo .dc-demo-chart span{display:block;flex:1;max-width:35px;border-radius:3px 3px 0 0;background:linear-gradient(var(--skin-accent,#087f85),var(--skin-highlight,#55d7ba))}
.app-shell .dc-visual-demo .dc-demo-buttons{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.app-shell .dc-visual-demo .dc-demo-buttons span{padding:7px 10px;border:1px solid var(--skin-border,#dce8ed);background:var(--skin-card,#fff);font-size:10px;border-radius:var(--dc-button-radius,10px);color:var(--skin-ink,#173549)}
.app-shell .dc-visual-demo .dc-demo-buttons .dc-demo-primary{background:var(--skin-accent,#087f85)!important;color:#fff!important}
.app-shell .dc-appearance-form{position:relative!important;padding-bottom:110px!important}
.app-shell .dc-actions-sticky.dc-actions-v115{display:flex!important;justify-content:flex-end!important;align-items:center;gap:12px!important;position:sticky!important;bottom:0!important;z-index:8!important;width:100%!important;min-height:72px!important;margin:12px 0 0!important;padding:13px 18px!important;background:var(--skin-card,#fff)!important;border:1px solid var(--skin-border,#dce8ee)!important;border-radius:12px!important;box-shadow:0 -7px 21px #142c3e17!important;}
.app-shell .dc-brand-image,.app-shell .dc-brand-placeholder{width:100%!important;min-width:0!important;height:116px!important;max-height:116px!important;overflow:hidden!important;display:grid!important;place-items:center!important;}
.app-shell .dc-brand-image img{display:block!important;max-width:100%!important;max-height:94px!important;width:auto!important;height:auto!important;object-fit:contain!important;}
.app-shell .sidebar .brand{width:100%!important;min-height:78px!important;padding:10px 7px 16px!important}
.app-shell .sidebar .brand .brand-word{width:100%!important;flex:1;min-width:0!important}
.app-shell .sidebar .brand .brand-word img.brand-image{max-width:100%!important;width:100%!important;max-height:70px!important;object-fit:contain!important;object-position:left center!important}
.app-shell .sidebar .brand .brand-mark{display:none!important}
.app-shell .top-help-link,.app-shell .top-help-link:visited{color:#fff!important;}
.app-shell .dc-wizard-stage[hidden],.app-shell [data-dc-profile-panel][hidden],.app-shell .dc-wizard-controls [hidden]{display:none!important}
.app-shell .dc-wizard-stage{display:flex;flex-wrap:wrap;align-content:start;min-width:0;}
.app-shell .dc-wizard-header{display:flex!important;flex-wrap:wrap;gap:7px!important;margin-bottom:17px!important}
.app-shell .dc-wizard-header span{border:1px solid var(--skin-border,#dce8ef)!important;padding:8px 12px!important;border-radius:12px!important;background:var(--skin-card,#fff)!important;color:var(--skin-ink,#19364a);font-size:12px}
.app-shell .dc-wizard-header span.active{border-color:var(--skin-accent,#087f85)!important;background:color-mix(in srgb,var(--skin-accent,#087f85) 10%,#fff)!important}
.app-shell .dc-wizard-header span.complete{opacity:.72}
.app-shell .dc-wizard-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:18px 0 8px;border-top:1px solid var(--skin-border,#dce8ef);margin:15px 0 0;width:100%;font-size:12px;font-weight:700;color:var(--skin-muted,#647f94)}
.app-shell .dc-wizard-buttons{display:flex;gap:10px;flex-wrap:wrap}
.app-shell .dc-lookup-widget{display:flex;align-items:center;gap:12px;flex-wrap:wrap;align-self:center;min-height:48px}
.app-shell .dc-lookup-widget small{font-size:11px;line-height:1.4;color:var(--skin-muted,#648094);max-width:100%;overflow-wrap:anywhere}
.app-shell .dc-profile-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:17px}
.app-shell .dc-profile-tabs button{display:inline-flex;align-items:center;gap:8px;background:var(--skin-card,#fff);color:var(--skin-ink,#18374b);border:1px solid var(--skin-border,#dce8ef);border-radius:10px;padding:11px 13px;font-size:12px;font-weight:750;cursor:pointer}
.app-shell .dc-profile-tabs button.active{background:color-mix(in srgb,var(--skin-accent,#087f85) 12%,#fff);border-color:var(--skin-accent,#087f85);color:var(--skin-accent,#087f85)}
.app-shell .dc-profile-hero{display:flex;flex-direction:column;gap:8px;align-items:center;text-align:center;padding:13px 8px}
.app-shell .dc-profile-avatar{width:98px;height:98px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:var(--skin-accent,#087f85);color:#fff;font-size:42px}
.app-shell .dc-profile-avatar img{width:100%;height:100%;object-fit:cover}
.app-shell .dc-profile-hero strong{font-size:17px;color:var(--skin-ink,#19374b)}
.app-shell .dc-profile-hero small{overflow-wrap:anywhere;color:var(--skin-muted,#617c90)}
.app-shell .dc-avatar-preview img{display:block;width:92px;height:92px;border-radius:18px;object-fit:cover;margin-top:12px}
.auth-layout .dc-auth-form-brand{height:80px;display:flex;align-items:center;margin-bottom:14px;min-width:0}
.auth-layout .dc-auth-form-brand img{display:block;max-width:min(260px,100%);max-height:76px;object-fit:contain;object-position:left center}
.auth-layout .auth-logo .dc-login-brand-image{display:block!important;max-width:min(315px,100%)!important;max-height:86px!important;object-fit:contain!important}
/* Distinct overlay layer, allowing both image and opacity to update independently. */
body .auth-layout .auth-showcase{isolation:isolate}
body .auth-layout .auth-showcase::before{content:"";position:absolute;inset:0;z-index:0!important;pointer-events:none;background:linear-gradient(122deg,rgba(8,26,47,var(--dc-overlay-alpha,.55)),rgba(12,47,73,var(--dc-overlay-alpha,.55)))!important}
body .auth-layout .auth-showcase > *{position:relative;z-index:1}
@media(max-width:1250px){.app-shell .dc-appearance-layout{grid-template-columns:minmax(0,1fr)!important}.app-shell .dc-appearance-right{display:grid;grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:1100px){.app-shell .dc-backup-layout{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:900px){.app-shell .dc-ops-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.app-shell .dc-health-grid{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:700px){.app-shell .dc-ops-summary{grid-template-columns:minmax(0,1fr)!important}.app-shell .dc-notification-entry{flex-wrap:wrap}.app-shell .dc-notification-actions{width:100%;padding-left:0}.app-shell .dc-ops-toolbar .dc-button-row{width:100%;flex-direction:column;align-items:stretch}.app-shell .dc-ops-toolbar .dc-button-row form,.app-shell .dc-ops-toolbar .dc-button-row button{width:100%}.app-shell .dc-appearance-layout{gap:10px!important}.app-shell .dc-skin-options-v2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.app-shell .dc-actions-sticky.dc-actions-v115{justify-content:stretch!important;gap:7px!important}.app-shell .dc-actions-sticky.dc-actions-v115 button{flex:1;padding:9px!important;font-size:11px!important}.app-shell .dc-health-entry .dc-status{max-width:96px}.app-shell .dc-wizard-controls>*{width:100%}.app-shell .dc-wizard-buttons .btn{flex:1}.app-shell .dc-visual-demo .dc-demo-search{display:none}}
/* V115 finish: compact skins, visible preview, toolbar that never obscures the preview. */
.app-shell .dc-skin-options-v2 .dc-skin-select{min-height:0!important;height:auto!important;padding:10px!important;display:flex!important;flex-direction:column!important;gap:5px!important;}
.app-shell .dc-skin-options-v2 .dc-skin-preview{height:68px!important;min-height:68px!important;max-height:68px!important;flex:0 0 68px!important;overflow:hidden!important}
.app-shell .dc-skin-options-v2 .dc-skin-select strong{font-size:12px!important;line-height:1.35}
.app-shell .dc-skin-options-v2 .dc-skin-select small{font-size:10px!important;line-height:1.4}
.app-shell .dc-actions-sticky.dc-actions-v115{position:static!important;bottom:auto!important;z-index:8!important;}
.app-shell .dc-actions-sticky.dc-actions-v115.dc-action-docked{position:fixed!important;bottom:12px!important;z-index:1010!important;margin:0!important;border-radius:14px!important;max-width:calc(100vw - 24px)!important;}
.app-shell .dc-login-bg-preview{position:relative;isolation:isolate;display:grid;place-items:center;min-height:145px;margin-top:12px;background:linear-gradient(125deg,#233f61,#47728d);background-position:center;background-size:cover;border:1px solid var(--skin-border,#dce8ed);border-radius:12px;overflow:hidden}
.app-shell .dc-login-bg-preview::before{content:"";position:absolute;inset:0;z-index:0;background:rgba(6,31,51,var(--dc-login-preview-overlay,.55));pointer-events:none}
.app-shell .dc-login-bg-preview>span{position:relative;z-index:1;display:inline-flex;align-items:center;gap:8px;color:#fff;font-size:12px;font-weight:750;text-shadow:0 2px 7px #000a}
.app-shell .dc-wizard-stage{width:100%!important;flex:0 0 100%!important;margin:0!important;max-width:100%!important;}
