/* Escopo exclusivo da perspectiva pessoal da Admissão e de seu popup. */
.md-workspace{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,3fr);gap:18px;align-items:start;padding-bottom:64px}
.md-workspace *,.md-layer *{min-width:0}
.md-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden}
.md-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border-bottom:1px solid var(--line)}
.md-panel-head h2{font-size:19px;line-height:1.3;font-weight:800;color:var(--ink)}
.md-panel-head p,.md-caption{font-size:12px;line-height:1.5;color:var(--mut)}
.md-panel-head p{margin-top:5px}
.md-request{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;padding:10px 14px;min-height:42px;font-size:12px}
.md-person{display:flex;gap:14px;align-items:center;padding:20px;border-bottom:1px solid var(--line)}
.md-person .saas-avatar{width:48px;height:48px;flex-shrink:0}
.md-person h3{font-size:18px;font-weight:800;overflow-wrap:anywhere}
.md-person p{margin-top:4px;color:var(--mut);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.md-section{padding:18px 20px;border-bottom:1px solid var(--line)}
.md-section:last-child{border-bottom:0}
.md-section>h3{font-size:14px;font-weight:800;margin-bottom:12px}
.md-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.md-field{position:relative;padding:10px 12px;background:var(--bg);border:1px solid var(--line);border-radius:9px}
.md-field dt,.md-history-card dt{font-size:11px;color:var(--mut);line-height:1.4;margin-bottom:5px}
.md-field dd{font-size:13px;font-weight:600;line-height:1.5;color:var(--ink);overflow-wrap:anywhere;white-space:pre-wrap}
.md-field.is-requestable{padding-right:44px}
.md-field-action{display:flex;align-items:center;justify-content:center;position:absolute;right:4px;top:4px;width:34px;height:34px;border:0;background:transparent;border-radius:7px;color:var(--home);cursor:pointer}
.md-field-action:hover:not(:disabled){background:color-mix(in srgb,var(--home) 10%,var(--surface))}
.md-field-pending{display:block;margin-top:6px;font-size:10px;font-weight:700;color:var(--mut)}
.md-workspace button:disabled,.md-layer button:disabled{opacity:.55;cursor:default}
.md-workspace button:focus-visible,.md-workspace a:focus-visible,.md-workspace select:focus-visible,.md-layer button:focus-visible,.md-layer input:focus-visible,.md-layer select:focus-visible{outline:2px solid var(--home);outline-offset:2px}
.md-notice{margin:16px 20px 0;padding:10px 12px;background:var(--bg);border:1px solid var(--line);border-radius:8px;font-size:12px;color:var(--mut)}
.md-family{display:grid;gap:12px;margin-top:10px}
.md-family details{border:1px solid var(--line);border-radius:10px;padding:12px}
.md-family summary{cursor:pointer;font-size:13px;overflow-wrap:anywhere;line-height:1.5}
.md-family summary span{color:var(--mut);font-size:12px;margin-left:8px}
.md-family details[open] .md-fields{margin-top:10px}
.md-family summary:focus-visible{outline:2px solid var(--home);outline-offset:3px}
.md-family p{font-size:12px;color:var(--mut);margin:4px 0 10px}
.md-documents{list-style:none;margin-top:12px;display:grid;gap:8px}
.md-documents li{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:9px;padding:12px}
.md-documents strong,.md-documents span{display:block;font-size:12px;overflow-wrap:anywhere}
.md-documents span{color:var(--mut);margin-top:4px}
.md-documents a{flex-shrink:0;font-size:11px;min-height:36px;display:flex;align-items:center;text-decoration:none}
.md-history-panel{position:sticky;top:80px}
.md-history-panel .md-panel-head{padding:18px}
.md-history-panel .md-panel-head h2{font-size:16px}
.md-history-panel [hidden]{display:none!important}
.md-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:16px 14px 12px}
.md-counts div{text-align:center;border:1px solid var(--line);border-radius:8px;padding:8px 3px;background:var(--bg)}
.md-counts strong{display:block;font-size:20px;font-weight:800;line-height:1.2}
.md-counts span{display:block;margin-top:4px;font-size:10px;color:var(--mut);overflow-wrap:anywhere}
.md-history-filter{display:block;font-size:11px;font-weight:700;color:var(--mut);padding:0 14px 12px}
.md-history-filter select{margin:6px 0 0;font-size:12px;min-height:40px}
.md-history-list{display:grid;gap:10px;max-height:calc(100dvh - 350px);min-height:100px;overflow-y:auto;overscroll-behavior:contain;padding:0 14px 14px;scrollbar-gutter:stable}
.md-history-card{border:1px solid var(--line);border-radius:10px;padding:12px}
.md-history-card.is-pending{border-left:3px solid var(--st-aguard);background:color-mix(in srgb,var(--st-aguard) 4%,var(--surface))}
.md-history-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:12px}
.md-history-card h3{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.md-history-card .badge-saas{display:inline-flex;gap:4px;align-items:center;white-space:normal;overflow-wrap:anywhere;text-align:center;font-size:9px}
.md-history-card .badge-saas svg{width:12px;height:12px;flex-shrink:0}
.md-history-card dl{display:grid;gap:10px;margin-bottom:12px}
.md-history-card dd{font-size:12px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
.md-history-card p{font-size:11px;line-height:1.5;color:var(--mut);margin-top:4px;overflow-wrap:anywhere}
.md-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-top:1px solid var(--line);font-size:11px;color:var(--mut)}
.md-pages:empty{display:none}
.md-pages button{font-size:11px;min-height:38px;padding:8px}
.md-empty{padding:24px 16px;text-align:center;color:var(--mut);font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.md-empty button{display:block;margin:12px auto 0;font-size:12px}
.md-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.md-layer{position:fixed;inset:0;z-index:11000;pointer-events:none}
.md-popup{position:fixed;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 36px color-mix(in srgb,var(--ink) 18%,transparent);pointer-events:auto;overflow:hidden;color:var(--ink);font-family:var(--f)}
.md-popup>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid var(--line);flex-shrink:0}
.md-popup h2{font-size:16px;line-height:1.4;font-weight:800}
.md-popup header p{font-size:12px;line-height:1.5;margin-top:4px;color:var(--mut)}
.md-popup header button{width:34px;height:34px;flex-shrink:0;padding:7px}
.md-popup form{display:flex;flex-direction:column;min-height:0}
.md-popup-body{padding:16px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.md-control{display:block;font-size:11px;font-weight:700;color:var(--mut);margin-bottom:6px}
.md-current{padding:10px 12px;background:var(--bg);border:1px solid var(--line);border-radius:8px;font-size:12px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap;margin-bottom:14px}
.md-layer .finput{min-height:42px;margin-bottom:14px;font-size:13px;background-color:var(--surface);color:var(--ink)}
.md-popup footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:12px 16px;border-top:1px solid var(--line);flex-shrink:0;background:var(--surface)}
.md-popup footer button{min-height:42px;padding:10px 16px;font-size:12px}
.md-popup-error{font-size:12px;line-height:1.5;color:var(--ink);font-weight:700;overflow-wrap:anywhere}
.md-popup-error:not(:empty){border-left:3px solid var(--st-aguard);padding:8px 10px;background:var(--bg)}
.md-discard{padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--bg);margin-top:12px}
.md-discard[hidden]{display:none}
.md-discard p{font-size:12px;line-height:1.5;margin-bottom:8px}
.md-discard button{font-size:11px;margin:4px 4px 0 0;min-height:38px}
.md-layer.is-mobile{pointer-events:auto;background:color-mix(in srgb,var(--ink) 25%,transparent)}
@media(max-width:1250px){.md-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.md-panel-head{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:980px){.md-workspace{grid-template-columns:minmax(0,1fr)}.md-history-panel{position:static}.md-history-list{max-height:none;overflow:visible;overscroll-behavior:auto}.md-history-card dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.md-workspace{gap:14px;padding-bottom:72px}.md-panel-head,.md-person,.md-section{padding:16px}.md-panel-head h2{font-size:18px}.md-request{width:100%;min-height:44px}.md-fields{gap:8px}.md-field{padding:10px}.md-field.is-requestable{padding:46px 10px 10px}.md-field-action{width:40px;height:40px}.md-person h3{font-size:16px}.md-documents li{flex-wrap:wrap}.md-documents a{min-height:44px}.md-pages button{min-height:44px}.md-history-panel .md-panel-head{align-items:center;flex-wrap:nowrap}.md-popup header button{width:40px;height:40px}.md-popup footer button{min-height:44px;flex:1}.md-history-card dl{grid-template-columns:minmax(0,1fr)}}
@media(max-width:380px){.md-fields{grid-template-columns:minmax(0,1fr)}.md-field.is-requestable{padding:10px 50px 10px}.md-popup footer{flex-wrap:wrap}.md-counts span{font-size:9px}}
@media(max-height:650px) and (min-width:981px){.md-history-panel{position:static}.md-history-list{max-height:none;overflow:visible}}
