/* Top lists: scoped to the new shell; legacy components retain their original layout. */
body.sgc-shell-modern .main-header .sgc-shell-tools .sgc-top-list{--shell-muted:#596c82;width:390px;max-width:calc(100vw - 24px);padding:0!important;overflow:hidden;color:var(--shell-ink);background:var(--shell-surface);border:1px solid var(--shell-line);border-radius:14px;box-shadow:0 14px 40px #09253d26;max-height:calc(100dvh - 100px)}
body.sgc-shell-modern.dark-mode .main-header .sgc-shell-tools .sgc-top-list{--shell-muted:#96aabd}
body.sgc-shell-modern .main-header .sgc-top-list.show{display:flex;flex-direction:column}
body.sgc-shell-modern .sgc-top-list [hidden]{display:none!important}
body.sgc-shell-modern .sgc-top-list__heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 18px 15px;border-bottom:1px solid var(--shell-line);flex-shrink:0}
body.sgc-shell-modern .sgc-top-list__heading h2{margin:0 0 4px;font:700 15px/1.35 "SGC Shell Heading","SGC Shell Sans",sans-serif;color:var(--shell-ink);white-space:normal}
body.sgc-shell-modern .sgc-top-list__heading p{margin:0;font:400 12px/1.5 "SGC Shell Sans",sans-serif;color:var(--shell-muted);white-space:normal}
body.sgc-shell-modern .sgc-top-list .sgc-top-list__count{position:static!important;display:inline-flex!important;align-items:center;justify-content:center;min-width:28px;height:28px;max-width:none;padding:0 8px!important;border:0!important;border-radius:9px!important;background:var(--shell-hover)!important;color:var(--shell-ink)!important;font:700 12px/1 "SGC Shell Sans",sans-serif!important;box-shadow:none!important;animation:none!important;flex-shrink:0}
body.sgc-shell-modern .sgc-top-list .sgc-top-list__count:empty{display:none!important}
body.sgc-shell-modern .sgc-top-list__body{overflow:auto;overscroll-behavior:contain;min-height:0;max-height:min(52dvh,410px);padding:6px 12px}
body.sgc-shell-modern .sgc-top-list__table,body.sgc-shell-modern .sgc-top-list__table tbody{display:block;width:100%;margin:0;border:0;background:transparent;color:var(--shell-ink)}
body.sgc-shell-modern .sgc-top-list__table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:14px 6px;border-bottom:1px solid var(--shell-line);background:transparent!important}
body.sgc-shell-modern .sgc-top-list__table tbody tr:last-child{border-bottom:0}
body.sgc-shell-modern .sgc-top-list__table tbody td{display:block;min-width:0;padding:0!important;border:0!important;background:transparent!important;white-space:normal!important;overflow-wrap:anywhere;font:400 13px/1.5 "SGC Shell Sans",sans-serif;color:var(--shell-muted)}
body.sgc-shell-modern .sgc-top-list__table tbody td:first-child{grid-column:1;grid-row:1;color:var(--shell-ink);font-weight:700;font-size:14px}
body.sgc-shell-modern .sgc-top-list__table tbody td:first-child:before{content:"#"}
body.sgc-shell-modern .sgc-top-list__table tbody td:last-child{grid-column:2;grid-row:1 / span 2;align-self:center}
body.sgc-shell-modern .sgc-top-list__table tbody td:nth-child(2){grid-column:1;grid-row:2}
body.sgc-shell-modern [data-top-list="pre-chamados"] tbody td:nth-child(2){font-weight:600;color:var(--shell-ink)}
body.sgc-shell-modern [data-top-list="pre-chamados"] tbody td:nth-child(3){grid-column:1;grid-row:3}
body.sgc-shell-modern [data-top-list="pre-chamados"] tbody td:last-child{grid-row:1 / span 3}
body.sgc-shell-modern .sgc-top-list__table td:nth-child(2):before{content:attr(data-label);display:block;color:var(--shell-muted);font-size:10px;font-weight:500}
body.sgc-shell-modern [data-top-list="pre-chamados"] td:nth-child(3):before{content:"Solicitante: ";font-size:11px}
body.sgc-shell-modern .sgc-top-list__table .text-width-100{display:inline!important;max-width:none!important;width:auto!important;overflow:visible!important;white-space:normal!important}
body.sgc-shell-modern .sgc-top-list__table .btn-group{display:flex!important;gap:6px;width:auto!important;align-items:center}
body.sgc-shell-modern .sgc-top-list__table td:last-child button,body.sgc-shell-modern .sgc-top-list__table td:last-child a{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;padding:0!important;margin:0!important;border:1px solid var(--shell-line)!important;border-radius:8px!important;background:var(--shell-hover)!important;color:var(--shell-ink)!important;text-decoration:none;cursor:pointer;float:none!important}
body.sgc-shell-modern .sgc-top-list__table td:last-child i{margin:0!important;font-size:13px!important}
body.sgc-shell-modern .sgc-top-list__table td:last-child button:hover,body.sgc-shell-modern .sgc-top-list__table td:last-child a:hover{border-color:#ef962f!important;color:var(--shell-ink)!important}
body.sgc-shell-modern .sgc-top-list a:focus-visible,body.sgc-shell-modern .sgc-top-list button:focus-visible{outline:2px solid #ef962f;outline-offset:3px}
body.sgc-shell-modern .sgc-top-list__empty{display:flex;flex-direction:column;align-items:center;gap:9px;padding:32px 14px;text-align:center;color:var(--shell-muted);font:400 12px/1.5 "SGC Shell Sans",sans-serif}
body.sgc-shell-modern .sgc-top-list__empty svg{width:28px;height:28px;color:#6889a4}
body.sgc-shell-modern .sgc-top-list__empty strong{color:var(--shell-ink);font-size:14px;font-weight:600}
body.sgc-shell-modern .sgc-top-list__footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 18px;border-top:1px solid var(--shell-line);flex-shrink:0;background:var(--shell-surface)}
body.sgc-shell-modern .sgc-top-list__footer a{display:inline-flex;align-items:center;gap:8px;color:var(--shell-ink)!important;font:600 12px/1.5 "SGC Shell Sans",sans-serif;text-decoration:none;white-space:normal}
body.sgc-shell-modern .sgc-top-list__footer a:hover{text-decoration:underline}
body.sgc-shell-modern .sgc-top-list__footer svg{width:16px;height:16px}
body.sgc-shell-modern .sgc-top-list__retry{border:1px solid var(--shell-line);border-radius:7px;padding:5px 8px;background:var(--shell-hover);color:var(--shell-ink);font:600 11px/1.4 "SGC Shell Sans",sans-serif;cursor:pointer}
body.sgc-shell-modern .sgc-top-list__status{margin:0;padding:10px 18px;font:400 12px/1.5 "SGC Shell Sans",sans-serif;background:var(--shell-hover);color:var(--shell-ink);flex-shrink:0}
body.sgc-shell-modern .sgc-top-list[data-state="error"] .sgc-top-list__status{border-left:3px solid #ef962f}
body.sgc-shell-modern .sgc-top-list__person{display:flex;align-items:center;gap:12px;padding:15px 5px;border-bottom:1px solid var(--shell-line)}
body.sgc-shell-modern .sgc-top-list__person:last-child{border-bottom:0}
body.sgc-shell-modern .sgc-top-list__person>img{width:42px;height:42px;object-fit:cover;border-radius:50%;background:var(--shell-hover);flex-shrink:0}
body.sgc-shell-modern .sgc-top-list__person>div{min-width:0;flex:1}
body.sgc-shell-modern .sgc-top-list__person strong,body.sgc-shell-modern .sgc-top-list__person>div>span{display:block;overflow-wrap:anywhere;white-space:normal;font:600 13px/1.5 "SGC Shell Sans",sans-serif;color:var(--shell-ink)}
body.sgc-shell-modern .sgc-top-list__person>div>span{font-size:12px;font-weight:400;color:var(--shell-muted);margin-top:3px}
body.sgc-shell-modern .sgc-top-list__today{font:600 10px/1.5 "SGC Shell Sans",sans-serif;padding:3px 7px;border-radius:6px;background:var(--shell-hover);color:var(--shell-ink)}
@media(max-width:760px){body.sgc-shell-modern .main-header .sgc-shell-tools .sgc-top-list{max-height:calc(100dvh - 126px);max-width:none}body.sgc-shell-modern .sgc-top-list__heading{padding:16px 14px}body.sgc-shell-modern .sgc-top-list__body{max-height:52dvh;padding:4px 9px}body.sgc-shell-modern .sgc-top-list__footer{padding:12px 14px}}

/* The existing pending-queue alert, when shown outside the modern dashboard. */
body.sgc-shell-modern .sgc-prequeue-dialog{--shell-muted:#596c82;width:440px;max-width:calc(100vw - 32px);padding:26px 24px 24px;border:1px solid var(--shell-line);border-radius:18px;background:var(--shell-surface);color:var(--shell-ink);box-shadow:0 22px 65px #071c3540;font-family:"SGC Shell Sans",sans-serif}
body.sgc-shell-modern.dark-mode .sgc-prequeue-dialog{--shell-muted:#96aabd}
body.sgc-shell-modern .sgc-prequeue-dialog .swal2-title{padding:0;margin:0;color:var(--shell-ink);font:700 21px/1.4 "SGC Shell Heading",sans-serif;overflow-wrap:anywhere}
body.sgc-shell-modern .sgc-prequeue-dialog .swal2-html-container,body.sgc-shell-modern .sgc-prequeue-dialog .swal2-content{margin:18px 0 0;padding:0;color:var(--shell-muted);font:400 14px/1.65 "SGC Shell Sans",sans-serif}
body.sgc-shell-modern .sgc-prequeue-dialog-count{display:flex;align-items:center;justify-content:center;min-width:58px;width:max-content;height:58px;padding:0 12px;margin:0 auto 14px;border-radius:14px;background:#fff2e0;color:#9b570d;font:700 28px/1 "SGC Shell Heading",sans-serif}
body.sgc-shell-modern.dark-mode .sgc-prequeue-dialog-count{background:#3c3020;color:#ffd093}
body.sgc-shell-modern .sgc-prequeue-dialog-summary p{margin:0;color:var(--shell-muted);font:400 14px/1.65 "SGC Shell Sans",sans-serif}
body.sgc-shell-modern .sgc-prequeue-dialog .swal2-actions{display:flex;justify-content:center;gap:10px;width:100%;margin:22px 0 0;padding:0}
body.sgc-shell-modern .sgc-prequeue-dialog .swal2-actions button{min-height:40px;margin:0;padding:10px 15px;border-radius:8px;border:1px solid var(--shell-line);font:600 13px/1.4 "SGC Shell Sans",sans-serif;box-shadow:none}
body.sgc-shell-modern .sgc-prequeue-dialog .swal2-actions .btn-primary{background:#2364b1;border-color:#2364b1;color:#fff}
body.sgc-shell-modern .sgc-prequeue-dialog .swal2-actions .btn-outline-secondary{background:transparent;border-color:var(--shell-line);color:var(--shell-ink)}
body.sgc-shell-modern .sgc-prequeue-dialog .swal2-actions button:focus-visible{outline:2px solid #ef962f;outline-offset:3px}
body.sgc-shell-modern .sgc-prequeue-dialog .swal2-footer{padding:0;border:0;margin:0}
@media(max-width:400px){body.sgc-shell-modern .sgc-prequeue-dialog{padding:22px 18px 20px}body.sgc-shell-modern .sgc-prequeue-dialog .swal2-title{font-size:19px}body.sgc-shell-modern .sgc-prequeue-dialog .swal2-actions{flex-direction:column;gap:8px}body.sgc-shell-modern .sgc-prequeue-dialog .swal2-actions button{width:100%}}

/* Confirmação de saída: apresentação isolada, mantendo as ações do owner. */
body.sgc-shell-modern .sgc-logout-dialog{--logout-muted:#596c82;width:410px;max-width:calc(100vw - 32px);padding:24px;border:1px solid var(--shell-line);border-radius:16px;background:var(--shell-surface);color:var(--shell-ink);box-shadow:0 22px 65px #071c3540;font-family:"SGC Shell Sans",sans-serif}
body.sgc-shell-modern.dark-mode .sgc-logout-dialog{--logout-muted:#96aabd}
body.sgc-shell-modern .sgc-logout-dialog .swal2-icon{width:44px;height:44px;flex:0 0 44px;margin:0 0 16px;align-self:flex-start;border:2px solid var(--shell-blue);color:var(--shell-blue);font-size:26px;line-height:40px}
body.sgc-shell-modern .sgc-logout-dialog .swal2-icon .swal2-icon-content{font-size:26px;line-height:40px}
body.sgc-shell-modern .sgc-logout-dialog .swal2-title{padding:0;margin:0;color:var(--shell-ink);font:700 20px/1.4 "SGC Shell Heading",sans-serif;text-align:left;overflow-wrap:anywhere}
body.sgc-shell-modern .sgc-logout-dialog .swal2-html-container,body.sgc-shell-modern .sgc-logout-dialog .swal2-content{margin:12px 0 0;padding:0;color:var(--logout-muted);font:400 13px/1.6 "SGC Shell Sans",sans-serif;text-align:left;overflow-wrap:anywhere}
body.sgc-shell-modern .sgc-logout-dialog .swal2-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;width:100%;margin:22px 0 0;padding:0}
body.sgc-shell-modern .sgc-logout-dialog .swal2-actions button{min-height:38px;max-width:100%;margin:0;padding:9px 12px;border:1px solid var(--shell-line);border-radius:8px;font:600 13px/1.4 "SGC Shell Sans",sans-serif;font-size:13px!important;box-shadow:none;white-space:normal}
body.sgc-shell-modern .sgc-logout-dialog .swal2-actions .btn-primary{background:#2364b1;border-color:#2364b1;color:#fff}
body.sgc-shell-modern .sgc-logout-dialog .swal2-actions .btn-primary:hover{background:#1d5599;border-color:#1d5599;color:#fff}
body.sgc-shell-modern .sgc-logout-dialog .swal2-actions .btn-outline-secondary{background:transparent;border-color:var(--shell-line);color:var(--shell-ink)}
body.sgc-shell-modern .sgc-logout-dialog .swal2-actions .btn-outline-secondary:hover{background:var(--shell-hover);color:var(--shell-ink)}
body.sgc-shell-modern .sgc-logout-dialog .swal2-actions button:focus-visible{outline:2px solid var(--shell-blue);outline-offset:3px}
body.sgc-shell-modern .sgc-logout-dialog .swal2-footer{padding:0;border:0;margin:0}
@media(max-width:380px){body.sgc-shell-modern .sgc-logout-dialog{padding:20px}body.sgc-shell-modern .sgc-logout-dialog .swal2-title{font-size:19px}}
@media(prefers-reduced-motion:reduce){body.sgc-shell-modern .sgc-logout-dialog,body.sgc-shell-modern .sgc-logout-dialog .swal2-icon,body.sgc-shell-modern .sgc-logout-dialog .swal2-icon-content{animation:none!important;transition:none!important}}
