:root{--y-blue:#2864f0;--y-sky:#6cb7ff;--y-deep:#123461;--y-ice:#f4f7fb;--y-white:#fff;--y-ink:#102a43;--y-line:#d9e4f0;--y-success:#27ae60;--y-warning:#e3a512;--y-danger:#d83a4a;--y-gradient:linear-gradient(135deg,#2864f0,#6cb7ff);--navy:var(--y-deep);--blue:var(--y-blue);--border:var(--y-line);font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--y-ink);background:var(--y-ice)}
body{background:var(--y-ice);color:var(--y-ink)}h1,h2,h3,.brand,.button,button{font-family:Manrope,"Segoe UI",Arial,sans-serif}h1{font-weight:750;letter-spacing:-.035em;color:#0d2945}h2{font-weight:700;letter-spacing:-.015em}a{color:var(--y-blue)}
button,.button{border-radius:10px;background:var(--y-gradient);box-shadow:0 7px 16px #2864f024;transition:transform .16s,box-shadow .16s,filter .16s}button:hover,.button:hover{filter:none;transform:translateY(-1px);box-shadow:0 10px 22px #2864f032}button.secondary{background:#fff;color:var(--y-deep);border-color:#bfd1e2;box-shadow:none}
.sidebar{background:linear-gradient(180deg,#123461 0%,#0c294b 100%);padding-top:42px;box-shadow:10px 0 36px #12346114}.sidebar:after{content:"";position:absolute;left:0;right:0;bottom:0;height:180px;background:url('/static/brand/y-ribbons.svg') center bottom/330px auto no-repeat;opacity:.09;pointer-events:none}.sidebar>*{position:relative;z-index:1}
.brand{display:flex;align-items:center;gap:13px;margin-bottom:38px}.brand-symbol{width:56px;height:56px;margin:0;filter:drop-shadow(0 8px 13px #001a4038)}.brand span{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#d9e9f8;font-size:.67rem;letter-spacing:.14em;line-height:1.5}.brand span small{color:#9fc3e4;font-size:.52rem;letter-spacing:.16em;margin-bottom:4px}
nav a{border-radius:10px;color:#d7e7f6;transition:background .16s,color .16s,transform .16s}nav a:hover{background:#ffffff12;transform:translateX(2px)}nav a[aria-current]{background:linear-gradient(90deg,#2864f03a,#6cb7ff20);box-shadow:inset 3px 0 var(--y-sky);color:#fff}.nav-label{color:#8fb7da}.profile{border-top:1px solid #ffffff16}
.workspace{position:relative;background:linear-gradient(160deg,#fff 0,#f4f7fb 33%);min-height:100vh}.workspace:before{content:"";position:fixed;right:34px;top:18px;width:min(430px,30vw);aspect-ratio:760/300;background:url('/static/brand/y-ribbon-tip.svg') center/contain no-repeat;opacity:.09;pointer-events:none}.workspace>*{position:relative}
.desktop-bar{border-color:#d7e4f0}.desktop-date time,.desktop-weather strong{color:var(--y-deep)}.page-head{padding:4px 0 2px}.eyebrow{color:#55728d;font-weight:800;letter-spacing:.19em}
.panel,.ticket-list{border-color:var(--y-line);border-radius:18px;box-shadow:0 8px 26px #12346108}.panel{background:#ffffffeb}.ticket-grid{gap:20px}.ticket-card{border-color:#d6e2ee;border-radius:18px;box-shadow:0 7px 20px #1234610a;transition:box-shadow .18s,transform .18s,border-color .18s}.ticket-card:hover{border-color:#b8cde3;box-shadow:0 14px 32px #12346118;transform:translateY(-3px)}
.ticket-card.normal{--accent:var(--y-blue);--tint:#eef4ff;--ink:#1d52bd}.ticket-card.medium{--accent:var(--y-warning);--tint:#fff9e8;--ink:#7a5700}.ticket-card.high{--accent:var(--y-danger);--tint:#fff2f3;--ink:#a82a38}.ticket-card.done{--accent:var(--y-success);--tint:#edf9f2;--ink:#197044}.announcement-card{--accent:#5f62d8;--tint:#f5f4ff;--ink:#4145a9;border-color:#c5c8f2}
.badge{border-radius:999px}.notice{border-radius:12px;box-shadow:0 8px 22px #1234610c}input:not([type=checkbox]),textarea,select{border-color:#bfd0df;border-radius:10px;background:#fff;transition:border .16s,box-shadow .16s}input:not([type=checkbox]):focus,textarea:focus,select:focus{border-color:var(--y-blue);box-shadow:0 0 0 4px #2864f017;outline:0}
.empty{border-radius:17px;background:linear-gradient(145deg,#fff,#f3f8ff)}.empty-mark{background:linear-gradient(135deg,#e9f1ff,#ddebff);color:var(--y-blue)}
.entry{position:relative;overflow:hidden;background:linear-gradient(145deg,#eef5ff,#f7faff)}.entry:before{content:"";position:fixed;z-index:0;left:-18vw;top:50%;width:136vw;height:min(500px,48vw);background:url('/static/brand/y-ribbons.svg') center/100% 100% no-repeat;opacity:.08;transform:translateY(-50%) rotate(-13deg);pointer-events:none}
.login-card{position:relative;z-index:1;overflow:hidden;width:min(460px,calc(100vw - 40px));padding:42px;border-radius:22px;box-shadow:0 25px 80px #1234611a}.login-card:after{display:none}.login-card .brand{margin:0 0 34px;gap:14px}.login-card .brand-symbol{width:70px;height:70px}.login-card .brand span{color:#365671;font-size:.69rem}.login-card .brand span small{color:#6b9bc4}.login-intro{margin-bottom:24px}.login-intro h1{margin-bottom:8px}.login-intro p{margin-bottom:0}.login-card form label{margin-bottom:18px}.login-card .login-actions{display:block;margin-top:4px}.login-card .login-actions button{width:100%;min-height:50px}.login-footer{margin-top:26px;padding-top:20px;border-top:1px solid #e0e8f0}.forgot-password{display:inline-block;font-size:.875rem;font-weight:650}.login-card .login-access-help{margin:12px 0 0!important;line-height:1.55}.login-card .small{margin-top:0}
.chat-alert{border-radius:14px;border-left-color:var(--y-blue);box-shadow:0 15px 40px #12346124}.presence.online:before{background:var(--y-success);box-shadow:0 0 0 3px #27ae6020}
.optional-label{display:inline-flex;margin-left:7px;padding:2px 7px;border-radius:999px;background:#edf3fa;color:#60778c;font-size:.68rem;font-weight:650;vertical-align:middle}.check>span{min-width:0}.check>span small{display:block;color:#6b7f90;font-size:.72rem;font-weight:400}.filter-panel{margin:-6px 0 24px}.filter-panel>summary{display:inline-flex;align-items:center;gap:9px;list-style:none;padding:9px 14px;border:1px solid #bfd0df;border-radius:10px;background:#fff;color:var(--y-deep);box-shadow:0 4px 13px #1234610b;font-size:.875rem}.filter-panel>summary::-webkit-details-marker{display:none}.filter-panel>summary:after{content:'+';font-size:1rem;font-weight:500}.filter-panel[open]>summary:after{content:'−'}.filter-panel[open]>summary{margin-bottom:10px}.filter-icon{width:14px;height:12px;background:linear-gradient(var(--y-blue),var(--y-blue)) 0 1px/14px 2px no-repeat,linear-gradient(var(--y-blue),var(--y-blue)) 3px 5px/8px 2px no-repeat,linear-gradient(var(--y-blue),var(--y-blue)) 5px 9px/4px 2px no-repeat}.filter-active{padding:2px 7px;border-radius:999px;background:#eaf1ff;color:#2255b6;font-size:.67rem;text-transform:uppercase;letter-spacing:.05em}.list-filters{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(145px,1fr)) auto;align-items:end;gap:12px;margin:0;padding:14px 16px;background:#ffffffb8;border:1px solid var(--y-line);border-radius:14px}.list-filters label{min-width:0;margin:0}.list-filters input,.list-filters select{margin-top:5px}.filter-actions{display:flex;align-items:center;gap:11px;padding-bottom:1px}.filter-actions button{min-height:46px}.filter-actions a{font-size:.85rem;white-space:nowrap}.card-deadline{margin:0 0 8px;color:#4c657a;font-size:.8rem;font-weight:650}.card-deadline.due-soon{color:#9a6800}.card-deadline.overdue{color:var(--y-danger)}.ticket-meta{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;margin-bottom:18px}.ticket-meta p{margin:0}.deadline-label{padding:5px 10px;border-radius:999px;background:#eaf2ff;color:#2458ad;font-size:.8rem;font-weight:650}.deadline-label.optional{background:#f0f3f6;color:#6b7c8a}.admin-user-grid{display:grid;grid-template-columns:minmax(260px,.65fr) minmax(0,1.35fr);gap:22px}.sector-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.sector-list span{padding:6px 10px;border-radius:999px;background:#edf4ff;color:#2657aa;font-size:.8rem;font-weight:650}
@media(max-width:1100px){.list-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-actions{grid-column:1/-1}}
@media(max-width:760px){.sidebar{background:linear-gradient(135deg,#123461,#173e72);padding-top:12px}.sidebar:after{display:none}.sidebar .brand-symbol{width:38px;height:38px}.workspace{background:var(--y-ice)}.workspace:before{right:10px;top:72px;width:180px;opacity:.07}.entry:before{left:-55vw;width:210vw;height:62vw;opacity:.07;transform:translateY(-50%) rotate(-18deg)}.login-card{padding:30px}.login-card .brand{margin-bottom:28px}.login-card .brand-symbol{width:58px;height:58px}.page-head{margin-bottom:24px}.ticket-grid{gap:16px}.ticket-card{min-height:270px}.admin-user-grid{grid-template-columns:1fr}.list-filters{grid-template-columns:1fr}.filter-actions{grid-column:auto}.filter-actions button{flex:1}.list-filters label{width:100%}button,.button{min-height:45px}}
@media(prefers-reduced-motion:reduce){button,.button,nav a,.ticket-card{transition:none!important;transform:none!important}}

/* Gestão compacta de usuários. */
.team-panel{padding:0;overflow:hidden}.team-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:27px 28px 20px}.team-panel-head h2{margin-bottom:5px}.team-panel-head p{margin:0}.team-panel-head>span{padding:5px 10px;border-radius:999px;background:#edf4ff;color:#2859ad;font-size:.76rem;font-weight:700}.team-panel .user-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;padding:18px 28px}.user-summary{display:flex;align-items:center;gap:14px;min-width:0}.user-avatar{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:linear-gradient(145deg,#e8f1ff,#dceaff);color:#245bc5;font-weight:800}.user-summary>div{min-width:0}.user-summary p{overflow-wrap:anywhere}.user-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.user-tags span{padding:3px 8px;border-radius:999px;background:#edf2f6;color:#5b7080;font-size:.7rem;font-weight:650}.user-tags .active{background:#e9f7ef;color:#1b7749}.user-tags .inactive{background:#f3e9ea;color:#a42d3a}.user-tags .admin{background:#eaf1ff;color:#2556ae}.user-editor{min-width:104px}.user-editor>summary{display:flex;align-items:center;justify-content:center;min-width:96px;padding:9px 14px;border:1px solid #bfd0df;border-radius:10px;background:#fff;list-style:none}.user-editor>summary::-webkit-details-marker{display:none}.user-editor>summary:after{content:'⌄';margin-left:9px}.user-editor[open]{grid-column:1/-1;width:100%}.user-editor[open]>summary{width:max-content;margin-left:auto}.user-editor[open]>summary:after{transform:rotate(180deg)}.user-editor-body{margin-top:14px;padding:20px;border:1px solid #d8e4ef;border-radius:14px;background:#f8fbff}.user-editor-body>form{margin:0}.user-edit-fields{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:0 18px}.user-edit-actions{display:flex;justify-content:flex-end}.delete-user{margin-top:18px;padding-top:12px;border-top:1px solid #dce6ef}.delete-user>summary{color:#a9252e;width:max-content}.delete-user p{margin:6px 0 12px}.delete-user form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:0}.delete-user .check{margin:0}.delete-user button{margin-left:auto}@media(max-width:760px){.team-panel .user-row{grid-template-columns:1fr;padding:18px 20px}.user-editor{width:100%}.user-editor>summary,.user-editor[open]>summary{width:100%;margin:0}.user-edit-fields{grid-template-columns:1fr}.user-edit-actions button,.delete-user button{width:100%;margin-left:0}.delete-user form{align-items:stretch}.team-panel-head{padding:23px 20px}}
.admin-transfer{width:min(100%,760px);margin:8px 0 0 auto;padding:0}.admin-transfer>summary{display:block;width:max-content;margin-left:auto;padding:7px 10px;color:#687c8c;font-size:.78rem;font-weight:600;list-style:none;border-radius:8px}.admin-transfer>summary:hover{background:#edf3f8;color:#345873}.admin-transfer>summary::-webkit-details-marker{display:none}.admin-transfer>summary:before{content:'⚙';margin-right:7px}.admin-transfer>summary:after{content:'⌄';margin-left:7px}.admin-transfer[open]{margin-top:14px;padding:18px 20px;border:1px solid #e8d6b1;border-radius:14px;background:#fffdf8}.admin-transfer[open]>summary{margin:-8px 0 10px auto}.admin-transfer[open]>summary:after{display:inline-block;transform:rotate(180deg)}.admin-transfer-body>p{max-width:700px;color:#627585}.admin-transfer-body form{max-width:680px}.admin-transfer-body .check{margin-bottom:18px;background:#fff8e8}
.support-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,.6fr);gap:22px;align-items:start}.support-grid .panel{margin-bottom:0}.support-info{background:linear-gradient(145deg,#f8fbff,#edf4ff);text-align:center}.support-mark{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 18px;border-radius:16px;background:linear-gradient(135deg,var(--y-blue),var(--y-sky));color:#fff;font-size:1.55rem;font-weight:800;box-shadow:0 10px 24px #2864f025}.support-info p{color:#617789}.support-history{margin-top:22px}.support-history article{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 0;border-top:1px solid var(--y-line)}.support-history article>div{min-width:0}.support-history article strong,.support-history article span{display:block}.support-history article>div span{margin-top:4px;color:#6b7f8e;font-size:.78rem}.support-history article>span{flex:0 0 auto;padding:4px 9px;border-radius:999px;font-size:.7rem;font-weight:700}.support-history .sent{background:#e8f7ef;color:#177047}.support-history .recorded{background:#fff4db;color:#805b0b}@media(max-width:760px){.support-grid{grid-template-columns:1fr}.support-info{text-align:left}.support-mark{margin:0 0 18px}.support-history article{align-items:flex-start}}
.profile>a{display:block;width:max-content;margin:0 0 9px}.profile>form{display:block;margin:0}@media(max-width:760px){.profile>a{display:inline-block;width:auto;margin:0 16px 0 0}.profile>form{display:inline-block;margin:0}}
.account-dashboard{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(430px,1.18fr);gap:22px;align-items:start}.account-column{display:grid;gap:22px}.account-dashboard .panel{margin:0}.account-profile,.account-password,.account-notifications,.account-weather{min-width:0}.account-password form,.account-weather form{max-width:none}.account-profile .small,.credential-help{margin-bottom:0}@media(max-width:980px){.account-dashboard{grid-template-columns:1fr}.account-column{display:contents}.account-profile{order:1}.account-notifications{order:2}.account-weather{order:3}.account-password{order:4}}


/* Gestão compacta de setores */
.admin-user-grid{grid-template-columns:minmax(360px,.9fr) minmax(0,1.1fr);align-items:start}
.sector-manager{padding:0;overflow:hidden}.sector-manager-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:26px 28px 17px}.sector-manager-head h2{margin-bottom:4px}.sector-manager-head p{margin:0}.sector-manager-head>span{padding:5px 10px;border-radius:999px;background:#edf4ff;color:#2859ad;font-size:.76rem;font-weight:700}
.sector-create-form{display:flex;align-items:end;gap:10px;margin:0;padding:0 28px 22px}.sector-create-form label{flex:1;margin:0}.sector-create-form button{flex:0 0 auto}.sector-management-list{border-top:1px solid var(--y-line);max-height:345px;overflow:auto}.sector-editor{border-bottom:1px solid var(--y-line)}.sector-editor:last-child{border-bottom:0}.sector-editor>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 28px;list-style:none;cursor:pointer}.sector-editor>summary::-webkit-details-marker{display:none}.sector-editor>summary>span:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}.sector-editor>summary strong{overflow-wrap:anywhere}.sector-editor>summary small{color:#6b7f90;font-size:.72rem;font-weight:400}.sector-editor>summary>span:last-child{color:var(--y-blue);font-size:.82rem;font-weight:700}.sector-editor>summary>span:last-child:after{content:'⌄';margin-left:7px}.sector-editor[open]>summary{background:#f7faff}.sector-editor[open]>summary>span:last-child:after{display:inline-block;transform:rotate(180deg)}
.sector-editor-body{padding:17px 28px 20px;background:#f8fbff}.sector-update-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin:0}.sector-update-form label{margin:0}.delete-sector{margin-top:16px;padding-top:12px;border-top:1px solid #dce6ef}.delete-sector>summary{width:max-content;color:#a9252e;font-size:.82rem}.delete-sector p{margin:7px 0 11px}.delete-sector form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0}.delete-sector .check{margin:0}.delete-sector button{margin-left:auto}.sector-empty{padding:20px 28px;margin:0}
@media(max-width:760px){.admin-user-grid{grid-template-columns:1fr}.sector-create-form{align-items:stretch;flex-direction:column}.sector-create-form button,.sector-update-form button,.delete-sector button{width:100%;margin-left:0}.sector-update-form{grid-template-columns:1fr}.delete-sector form{align-items:stretch}.sector-manager-head,.sector-editor>summary{padding-left:20px;padding-right:20px}.sector-create-form{padding-left:20px;padding-right:20px}.sector-editor-body{padding-left:20px;padding-right:20px}}
