:root{--navy:#10151c;--navy2:#171d26;--wine:#992b35;--red:#b73a43;--gold:#c5a572;--gold-light:#edddb9;--ink:#202530;--muted:#78818c;--line:#e8e8e6;--bg:#f7f8fa;--white:#fff;--radius:14px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg)}a{color:#8b3038;text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button{cursor:pointer}input,select,textarea{width:100%;min-height:42px;border:1px solid #dfe2e6;border-radius:8px;padding:10px 12px;background:#fff;color:var(--ink);outline:none;transition:border .14s,box-shadow .14s}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:#a8585f;box-shadow:0 0 0 3px #b73a431c}label{font-weight:700;font-size:12px;color:#48515c;display:flex;flex-direction:column;gap:7px}label small{font-weight:400}h1,h2,h3,p{margin-top:0}h1{font-family:Manrope,sans-serif;font-size:31px;letter-spacing:-1.1px;margin-bottom:7px;font-weight:800}h2{font-family:Manrope,sans-serif;font-size:17px;letter-spacing:-.4px;margin:0}h3{font-family:Manrope,sans-serif}.shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;width:255px;flex:none;background:var(--navy);color:#dee2e9;padding:27px 15px 22px;display:flex;flex-direction:column;box-shadow:6px 0 20px #10151c10}.brand{display:flex;align-items:center;gap:10px;padding:4px 6px 30px;color:white;text-decoration:none}.brand:hover{text-decoration:none}.brand img{height:52px;width:52px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1px #c9a36a66}.brand strong{font-family:Manrope,sans-serif;font-size:18px;letter-spacing:1px;white-space:nowrap}.brand strong em{font-style:normal;color:var(--gold)}.brand small{display:block;font-size:8.5px;color:#a2a8b3;letter-spacing:1px;margin-top:3px;white-space:nowrap}.nav-heading{color:#78808c;font-size:10px;font-weight:800;letter-spacing:1.8px;margin:5px 15px 16px}.navigation{display:flex;flex-direction:column;gap:6px}.navigation a{padding:12px 14px;border-radius:8px;color:#c4c9d2;font-size:13px;font-weight:600;display:flex;align-items:center;gap:12px;text-decoration:none}.navigation a:hover{background:#ffffff10;color:white}.navigation a.active{background:#922b3560;border-left:3px solid #c84b53;padding-left:11px;color:white}.nav-icon{font-size:20px;width:21px;text-align:center;line-height:17px}.side-footer{margin-top:auto;border-top:1px solid #ffffff1b;padding:18px 7px 0}.user-badge{display:flex;gap:10px;align-items:center}.avatar{height:36px;width:36px;border:1px solid #c7aa7b66;background:#aa39462e;color:#f2c6c9;border-radius:100px;display:grid;place-items:center;font-weight:800}.user-badge strong{font-size:13px;display:block}.user-badge small{font-size:11px;color:#9ba4b2;display:block;margin-top:2px}.user-links{display:flex;gap:22px;margin:15px 0 2px}.user-links a,.link-button{color:#b8bfca;background:none;border:0;font-size:12px;padding:0;font-weight:600}.workspace{min-width:0;flex:1}.topbar{height:66px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;color:#98a0ab;font-size:10px;letter-spacing:1.3px;font-weight:700}.topbar b{color:#444b54}.top-sep{color:#d3d4d6;padding:0 10px}.secure-mark{letter-spacing:normal;color:#609481;font-size:11px;background:#ecf6f2;border-radius:100px;padding:7px 12px}.main{max-width:1460px;margin:0 auto;padding:36px 42px 72px}.footer{padding:10px 42px 20px;color:#a9adb5;font-size:11px}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.pagehead p{font-size:13px;color:var(--muted);margin-bottom:0}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#b17c43;display:block;margin-bottom:9px}.btn{border:1px solid transparent;border-radius:8px;min-height:40px;padding:10px 17px;display:inline-flex;gap:14px;align-items:center;justify-content:center;text-decoration:none!important;font-weight:700;font-size:12px;white-space:nowrap;transition:.15s}.btn.primary{background:#9e303a;color:white;box-shadow:0 3px 6px #9e303a1c}.btn.primary:hover{background:#81242d}.btn.secondary{background:white;border-color:#dfe2e6;color:#39414b}.btn.secondary:hover{border-color:#9e303a;color:#8c2f39}.btn.small{min-height:32px;padding:7px 10px}.button-row{display:flex;gap:9px;flex-wrap:wrap}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat-card{padding:24px 22px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);min-width:0;box-shadow:0 4px 15px #18232f04}.stat-card.red{background:linear-gradient(130deg,#9c303a,#70252d);color:white;border-color:#9c303a}.stat-label{font-size:12px;font-weight:700;color:#6e7987;display:flex;justify-content:space-between;align-items:center}.stat-card.red .stat-label{color:#f0d6d8}.stat-label span{font-size:22px;color:#c8a66e}.stat-value{font-family:Manrope,sans-serif;font-size:28px;font-weight:800;letter-spacing:-1.3px;margin:13px 0;overflow-wrap:anywhere}.stat-sub{font-size:11px;color:#9199a2}.stat-card.red .stat-sub{color:#ebcdd0}.panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0 0 22px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:23px;margin-bottom:22px;min-width:0;box-shadow:0 5px 16px #1b283006}.panel-grid .panel{margin:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.panel-heading p{font-size:11px;color:#8d95a0;margin:5px 0 0}.panel-heading>a{font-size:12px;font-weight:700;white-space:nowrap}.events,.movements{display:flex;flex-direction:column}.event{display:flex;gap:12px;align-items:center;padding:14px 0;border-top:1px solid #eff0f1}.event-date{background:#fcf3f0;border:1px solid #f6e5df;color:#8c4141;border-radius:9px;min-width:51px;text-align:center;padding:6px 8px}.event-date b{display:block;font-size:18px;line-height:23px}.event-date small{font-size:9px;letter-spacing:1px;font-weight:800}.event-content strong,.movement strong{display:block;font-size:12px}.event-content small,.movement small{display:block;font-size:10.5px;color:#9aa1a8;margin-top:5px}.movement{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 0;border-top:1px solid #eff0f1}.movement>strong{white-space:nowrap;font-size:13px}.positive{color:#218668!important}.negative{color:#b43c46!important}.subtle-panel{background:#fff}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.quick-grid a{border:1px solid #e9ebef;border-radius:8px;padding:17px 13px;display:flex;justify-content:space-between;gap:10px;font-size:11.5px;font-weight:700;color:#3b4552}.quick-grid a:hover{border-color:#dba9aa;text-decoration:none}.quick-grid span{color:#9e303a}.activity-panel{padding:20px 23px}.activity-row{display:flex;gap:10px;flex-wrap:wrap}.activity-row span{font-size:10px;background:#f7f8fa;border:1px solid #edeff1;border-radius:6px;padding:8px 10px;color:#808a97}.flash{padding:14px 17px;border-radius:8px;margin:0 0 18px;font-size:13px;font-weight:600;background:#eff8f1;color:#26724b;border:1px solid #c9e7d1}.flash.error{background:#fff1f0;color:#a83a41;border-color:#f2d7d8}.form-panel{max-width:960px;padding:30px}.section-title{font-size:11px;text-transform:uppercase;letter-spacing:1.1px;font-weight:800;color:#9f6f46;margin:9px 0 19px;padding-bottom:11px;border-bottom:1px solid #f0eeeb}.section-title:not(:first-child){margin-top:31px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px}.span-2{grid-column:1/-1}.actions{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid #efefef;padding-top:22px;margin-top:26px}.panel .filterbar{display:flex;align-items:end;gap:10px;margin-bottom:20px;flex-wrap:wrap}.filterbar>input{max-width:340px}.filterbar>input[name=q]{flex:1;min-width:180px}.filterbar input[type=month]{width:170px}.filterbar.multi label{flex:1;min-width:170px}.filterbar.multi button{margin-bottom:1px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;color:#8d95a0;padding:12px 13px;background:#fafafa;border-bottom:1px solid #eeefef}td{padding:15px 13px;border-bottom:1px solid #eeefef;vertical-align:middle;color:#5c6470}tr:last-child td{border-bottom:0}.table-strong,td strong{color:#262e38;font-weight:800}td a{font-weight:700;font-size:12px}.nowrap{white-space:nowrap}.pill{border-radius:100px;display:inline-block;padding:5px 11px;background:#f0f1f3;font-size:10px;font-weight:800;color:#8d929e;white-space:nowrap}.pill.good{background:#e6f4ed;color:#2e8d64}.pill.muted{background:#f3f1ef;color:#877e76}.empty{text-align:center;padding:32px;color:#a1a6ae;font-size:12px}.under{display:block;margin-top:5px;color:#a0a5ae;font-size:10px}.inline{display:inline-block;margin-left:10px}.danger-link{padding:0;background:none;border:0;color:#bc4247;font-size:11px;font-weight:700;white-space:nowrap}.danger-link:hover{text-decoration:underline}.muted-text{color:#8b929d;font-size:12px}.muted-text.tiny{font-size:11px;margin:14px 0 0}.duo-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:22px}.duo-stats .stat-value{font-size:23px;margin-bottom:0}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.detail-grid>div{min-width:0}.detail-grid small,.notes-box small{display:block;color:#9099a4;text-transform:uppercase;letter-spacing:.9px;font-size:10px;font-weight:700;margin-bottom:7px}.detail-grid strong{display:block;white-space:pre-line;overflow-wrap:anywhere;font-size:13px}.notes-box{border-top:1px solid var(--line);margin-top:25px;padding-top:20px}.notes-box p{white-space:pre-wrap;font-size:13px;color:#56616d;margin:0}.field-hint{font-size:11px;color:#8b929d}.board-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.board-tile{border:1px solid #e9ebed;border-radius:11px;padding:24px 20px;display:flex;flex-direction:column;min-height:206px;color:#404850;transition:.14s}.board-tile:hover{border-color:#d7a39c;transform:translateY(-2px);text-decoration:none}.board-tag{font-size:10px;letter-spacing:.9px;color:#a57650;font-weight:800}.board-tile h3{font-size:15px;line-height:1.5;margin:17px 0 8px;color:#222c34}.board-tile p{font-size:11.5px;line-height:1.6;color:#8a909a;flex:1;overflow-wrap:anywhere}.board-bottom{border-top:1px solid #efefef;padding-top:14px;display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#939ba5}.board-bottom strong{white-space:nowrap;color:#94333c}.reading-panel{max-width:950px}.reading-body{font-size:14px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;color:#37424e;margin-bottom:28px}.reading-actions{margin-top:26px;border-top:1px solid #eaeaea;padding-top:20px}.stack-form{display:flex;flex-direction:column;gap:17px}.stack-form .btn{align-self:flex-start}.inline-details{position:relative}.inline-details>summary{font-size:11px;color:#8c3139;font-weight:800;cursor:pointer}.due-form{display:flex;flex-direction:column;gap:7px;margin-top:9px;min-width:160px}.due-form input,.due-form select{min-height:33px;padding:6px}.login-page{background:#121720}.login-layout{display:grid;grid-template-columns:1.1fr 1fr;min-height:100vh}.login-showcase{background:radial-gradient(ellipse at 50% 35%,#61262e88,transparent 55%),linear-gradient(140deg,#131720,#221b22 68%,#14181d);padding:55px 38px;color:#e9e7e2;display:flex;align-items:center;flex-direction:column;justify-content:center;text-align:center;border-right:1px solid #4c394040}.login-emblem{width:250px;height:250px;border-radius:50%;display:grid;place-items:center;background:#0e1319;box-shadow:0 0 70px #a73b3830,0 0 0 1px #b6955a55;overflow:hidden;margin-bottom:37px}.login-emblem img{width:100%;height:100%;object-fit:cover}.accent-rule{width:38px;height:2px;background:var(--gold);margin-bottom:26px}.login-showcase h1{font-size:54px;letter-spacing:5px;margin:0 0 9px;color:#fff}.login-showcase h1 span{color:var(--gold)}.login-showcase p{font-size:13px;color:#bdb4b5;letter-spacing:.6px}.showcase-caption{font-size:10px;color:#9a8384;letter-spacing:2.2px;margin-top:55px}.login-panel{background:#f8f9fa;display:grid;place-items:center;padding:50px}.login-card{width:min(410px,100%)}.login-card h2{font-size:31px;margin:0 0 12px}.login-card>p{font-size:13px;line-height:1.75;color:#87909b;margin-bottom:28px}.login-card form{display:flex;flex-direction:column;gap:19px}.login-card input{min-height:50px}.btn.large{min-height:50px;font-size:13px}.btn.full{width:100%;justify-content:space-between;padding-left:20px;padding-right:20px}.login-note{border-top:1px solid #e4e6e8;margin-top:31px;padding-top:24px;font-size:11px;color:#a0a6af}.center-error{text-align:center;max-width:650px;margin:10vh auto;padding:50px 20px}.center-error p{color:#818a96}
@media(max-width:1180px){.stat-grid{grid-template-columns:repeat(2,1fr)}.quick-grid{grid-template-columns:repeat(2,1fr)}.board-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:880px){.shell{display:block}.sidebar{width:auto;position:relative;height:auto;display:block;padding:14px 18px}.brand{padding:0 0 10px}.brand img{width:41px;height:41px}.nav-heading{display:none}.navigation{flex-direction:row;overflow-x:auto;gap:3px;padding:7px 0}.navigation a{white-space:nowrap;padding:9px;font-size:11px}.navigation a.active{border-left:none;padding-left:9px;border-bottom:2px solid #c84b53}.nav-icon{display:none}.side-footer{display:none}.topbar{display:none}.main{padding:25px 22px 55px}.footer{padding:10px 22px 20px}.panel-grid{grid-template-columns:1fr}.login-layout{grid-template-columns:1fr}.login-showcase{min-height:320px;padding:35px}.login-emblem{width:125px;height:125px;margin-bottom:15px}.login-showcase h1{font-size:33px}.login-showcase .showcase-caption{margin-top:12px}.login-showcase .accent-rule,.login-showcase .eyebrow{display:none}.login-panel{padding:42px 24px}}
@media(max-width:570px){.pagehead{align-items:flex-start;flex-direction:column}.pagehead h1{font-size:26px}.main{padding:20px 14px 45px}.stat-grid,.duo-stats,.board-grid,.quick-grid,.detail-grid,.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.stat-card{padding:20px}.panel{padding:17px}.filterbar>*{width:100%;max-width:none!important}.button-row{width:100%}.button-row>*{flex:1}.login-showcase{min-height:260px}.login-showcase .showcase-caption{display:none}}

/* Acessibilidade e utilitarios para uso em celulares */
.mobile-account-nav{display:none}
@media(max-width:880px){
  .mobile-account-nav{display:flex;justify-content:flex-end;align-items:center;gap:16px;border-top:1px solid #ffffff1a;padding-top:10px}
  .mobile-account-nav a,.mobile-account-nav button{font:inherit;font-size:12px;font-weight:700;color:#e9d1bc;text-decoration:none}
  .mobile-account-nav form{margin:0}.mobile-account-nav button{border:0;background:transparent;cursor:pointer;padding:4px 0}
}
@media(max-width:570px){input,select,textarea{font-size:16px}}

/* Novas telas: livro de presença e votação */
.preserve-newlines{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:900px){.navigation{overflow-y:auto}.pagehead{align-items:flex-start}.pagehead>.button-row{justify-content:flex-start}}
@media(max-width:640px){.pagehead{flex-direction:column}.button-row{width:100%}.button-row .btn{flex:1 1 auto}.table-wrap{overflow-x:auto}.main{padding-bottom:90px}}


/* =========================================================
   HÓRUS 357 — acabamento premium: ônix, rubi e ouro
   Complemento visual responsivo; preserva rotas e formulários.
   ========================================================= */
:root{
  --navy:#0b0c0f;
  --navy2:#14151a;
  --wine:#8d1825;
  --red:#b21f2d;
  --gold:#c8a45d;
  --gold-light:#ead7a7;
  --ink:#191a1e;
  --muted:#777b84;
  --line:#e7e3dc;
  --bg:#f5f4f1;
  --white:#fff;
  --radius:13px;
}
html,body{background:var(--bg)}
.sidebar{
  background:
    radial-gradient(ellipse at 15% 0%,#7f1d2b35,transparent 34%),
    linear-gradient(180deg,#101115 0%,#090a0c 100%);
  border-right:1px solid #c8a45d28;
}
.brand{padding-bottom:27px;position:relative}
.brand:after{
  content:"";position:absolute;left:7px;right:7px;bottom:12px;height:1px;
  background:linear-gradient(90deg,#c8a45d80,transparent);
}
.brand img{
  border-radius:50%;box-shadow:0 0 0 1px #c8a45d80,0 5px 20px #0008;
}
.brand strong{letter-spacing:1.5px}
.brand small{letter-spacing:1.15px}
.navigation{gap:5px}
.navigation a{
  border:1px solid transparent;transition:background .18s,border-color .18s,color .18s;
}
.navigation a:hover{background:#ffffff0a;border-color:#c8a45d24}
.navigation a.active{
  background:linear-gradient(100deg,#8d182536,#b21f2d12);
  border:1px solid #c8a45d30;border-left:3px solid var(--gold);
  padding-left:11px;color:#fff;
}
.nav-icon{color:#d0b77f}
.topbar{
  background:#fffdfa;
  border-bottom:1px solid #d9c9a5;
  box-shadow:0 3px 15px #17120b05;
}
.secure-mark{
  color:#7e1d28;background:#f8eceb;border:1px solid #ecd0cc;
}
.main{padding-top:39px}
.eyebrow{color:#96723a;letter-spacing:2.15px}
h1{color:#17181c}
.pagehead{margin-bottom:30px}
.stat-card,.panel,.table-card,.content-card{
  box-shadow:0 7px 24px #17120b08;
  border-color:#e8e3da;
}
.stat-card{position:relative;overflow:hidden}
.stat-card:not(.red):before{
  content:"";position:absolute;top:0;left:0;right:0;height:2px;
  background:linear-gradient(90deg,#c8a45d,transparent 72%);
}
.stat-card.red{
  background:
    radial-gradient(ellipse at 100% 0%,#d14b5535,transparent 45%),
    linear-gradient(135deg,#871724,#4b1018);
  border-color:#8d1825;
  box-shadow:0 8px 22px #6d15251c;
}
.btn{transition:transform .15s,box-shadow .15s,background .15s}
.btn.primary{
  background:linear-gradient(135deg,#a51e2c,#7e1420);
  box-shadow:0 4px 11px #8d182522;
}
.btn.primary:hover{
  background:linear-gradient(135deg,#b52837,#8d1825);
  box-shadow:0 6px 15px #8d182530;transform:translateY(-1px);
}
.btn.secondary{background:#fffdfa;border-color:#ded5c5}
input,select,textarea{
  border-color:#dedbd4;background:#fffdfa;border-radius:9px;
}
input:focus,select:focus,textarea:focus{
  border-color:#b99a5b;box-shadow:0 0 0 3px #c8a45d25;
}
label{color:#45434a}
a{color:#8d1825}
.footer{color:#99948b}
.login-page{background:#0b0c0f}
.login-showcase{
  background:
    radial-gradient(ellipse at 50% 34%,#8d18253d,transparent 54%),
    radial-gradient(ellipse at 50% 100%,#c8a45d10,transparent 42%),
    linear-gradient(140deg,#0a0b0e,#171317 68%,#0b0c0f);
  border-right:1px solid #c8a45d35;
}
.login-emblem{
  background:#0b0c0f;
  box-shadow:0 0 65px #a51e2c2b,0 0 0 1px #c8a45d85,0 0 0 8px #c8a45d0b;
}
.accent-rule{background:linear-gradient(90deg,#c8a45d,#f0dfb5)}
.login-showcase h1{letter-spacing:4px}
.login-panel{background:#f5f4f1}
.login-card{
  background:#fffdfa;border:1px solid #e7e0d3;border-radius:18px;
  padding:34px;box-shadow:0 18px 60px #17120b0c;
}
.login-card h2{color:#17181c}
.login-card .btn.primary{width:100%}
.login-note{border-color:#e8e1d5}
@media(max-width:880px){
  .sidebar{background:linear-gradient(180deg,#101115,#090a0c);border-bottom:1px solid #c8a45d35}
  .brand:after{bottom:5px}
  .navigation a.active{border:1px solid #c8a45d30;border-bottom:2px solid var(--gold)}
  .login-card{padding:28px}
}
@media(max-width:570px){
  .login-card{padding:24px 20px}
  .main{padding-top:24px}
}

/* Administração de usuários, auditoria e visualização de PDF */
.table-wrap{width:100%;overflow-x:auto}
.table-wrap table{width:100%;border-collapse:collapse}
.table-wrap th,.table-wrap td{padding:12px 14px;border-bottom:1px solid #ece7df;text-align:left;vertical-align:middle}
.table-wrap th{font-size:.78rem;text-transform:uppercase;letter-spacing:.7px;color:#826c47}
.inline-form{display:flex;gap:8px;min-width:230px}
.inline-form input{min-width:120px}
.danger{background:#8d1825;color:#fff;border:1px solid #8d1825}
.board-preview{margin-top:28px}
@media(max-width:700px){.inline-form{flex-direction:column}.table-wrap table{min-width:680px}}

.table-wrap{width:100%;overflow-x:auto}
.table-wrap table{width:100%;border-collapse:collapse}
.table-wrap th,.table-wrap td{padding:12px 14px;border-bottom:1px solid #ece7df;text-align:left;vertical-align:middle}
.table-wrap th{font-size:.78rem;text-transform:uppercase;letter-spacing:.7px;color:#826c47}
.inline-form{display:flex;gap:8px;min-width:230px}
.inline-form input{min-width:120px}
.danger{background:#8d1825;color:#fff;border:1px solid #8d1825}
.board-preview{margin-top:28px}
@media(max-width:700px){.inline-form{flex-direction:column}.table-wrap table{min-width:680px}}

/* =========================================================
   HÓRUS 357 — REFINAMENTO FINAL DA INTERFACE
   ========================================================= */

/* Tipografia e renderização */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, .stat-value {
    line-height: 1.2;
}

/* Navegação */
.sidebar {
    border-right: 1px solid #c8a45d35;
}

.navigation a {
    min-height: 43px;
    border-radius: 9px;
}

.navigation a.active {
    font-weight: 800;
    box-shadow: inset 0 0 18px #8d182510;
}

.navigation a:focus-visible,
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* Área principal */
.main {
    width: 100%;
}

.pagehead {
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e3da;
}

.pagehead p {
    line-height: 1.6;
}

/* Indicadores do painel */
.stat-grid {
    gap: 18px;
}

.stat-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform .18s ease, box-shadow .18s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px #17120b12;
}

.stat-value {
    font-variant-numeric: tabular-nums;
}

.stat-card.red .stat-label span {
    color: var(--gold-light);
}

/* Painéis */
.panel {
    border-radius: 13px;
    box-shadow: 0 5px 20px #17120b08;
}

.panel-heading {
    padding-bottom: 14px;
    border-bottom: 1px solid #f0ede7;
}

.panel-heading h2 {
    color: #252329;
}

.panel-heading p {
    line-height: 1.5;
}

/* Movimentações e atividades */
.event,
.movement {
    transition: background .15s ease;
}

.event:hover,
.movement:hover {
    background: #faf8f4;
}

.event {
    padding-left: 8px;
    padding-right: 8px;
}

.movement {
    padding-left: 8px;
    padding-right: 8px;
}

.movement > strong {
    font-variant-numeric: tabular-nums;
}

/* Acesso rápido */
.quick-grid a {
    min-height: 58px;
    align-items: center;
    border-radius: 9px;
    background: #fffdfa;
    transition: border-color .18s, transform .18s, box-shadow .18s;
}

.quick-grid a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px #17120b0a;
}

/* Tabelas */
.table-wrap {
    border: 1px solid #ece7df;
    border-radius: 9px;
    background: #fffdfa;
}

.table-wrap th {
    background: #f7f5f0;
    color: #80683f;
    white-space: nowrap;
}

.table-wrap tbody tr {
    transition: background .12s ease;
}

.table-wrap tbody tr:hover {
    background: #faf8f4;
}

.table-wrap td {
    line-height: 1.5;
}

.table-wrap td strong {
    color: #27252a;
}

/* Formulários */
.form-panel {
    border-radius: 14px;
}

.form-grid {
    align-items: start;
}

input, select, textarea {
    transition: border-color .16s, box-shadow .16s, background .16s;
}

input:hover, select:hover, textarea:hover {
    border-color: #c9bda7;
}

textarea {
    min-height: 100px;
    line-height: 1.6;
}

.actions {
    align-items: center;
}

.btn {
    border-radius: 9px;
    letter-spacing: .1px;
}

.btn:active {
    transform: translateY(1px);
}

/* Mensagens */
.flash {
    border-radius: 9px;
    line-height: 1.5;
}

/* Pranchas e cartões */
.board-tile {
    background: #fffdfa;
    box-shadow: 0 4px 15px #17120b05;
}

.board-tile:hover {
    box-shadow: 0 10px 24px #17120b0d;
}

/* Login */
.login-card {
    width: min(430px, 100%);
}

.login-card h2 {
    letter-spacing: -.8px;
}

.login-card form {
    gap: 21px;
}

.login-card input {
    border-radius: 9px;
}

.login-note {
    line-height: 1.7;
}

/* Melhor adaptação para tablets */
@media (max-width: 880px) {
    .sidebar {
        padding: 15px 18px 12px;
    }

    .navigation {
        scrollbar-width: thin;
        scrollbar-color: #80613b transparent;
        padding-bottom: 10px;
    }

    .navigation a {
        flex-shrink: 0;
    }

    .main {
        padding-top: 28px;
    }

    .stat-card {
        min-height: 135px;
    }

    .panel-grid {
        gap: 15px;
    }
}

/* Celulares */
@media (max-width: 570px) {
    .pagehead {
        padding-bottom: 16px;
        margin-bottom: 20px;
    }

    .pagehead h1 {
        font-size: 25px;
    }

    .stat-grid {
        gap: 12px;
    }

    .stat-card {
        min-height: 115px;
        padding: 18px;
    }

    .stat-value {
        font-size: 25px;
    }

    .panel {
        margin-bottom: 15px;
        border-radius: 11px;
    }

    .panel-heading {
        gap: 10px;
    }

    .quick-grid {
        gap: 8px;
    }

    .quick-grid a {
        min-height: 52px;
        padding: 13px;
    }

    .actions .btn {
        min-height: 43px;
    }

    .table-wrap {
        border-radius: 8px;
    }

    .footer {
        text-align: center;
        line-height: 1.6;
    }
}

/* Respeita usuários que desativam animações */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}


/* HORUS357 - AJUSTE FINAL DE LAYOUT */

/* Identidade visual */
:root {
    --navy: #101115;
    --navy2: #191a20;
    --wine: #8d1825;
    --red: #b21f2d;
    --gold: #d2b16f;
    --gold-light: #f0dfb5;
    --ink: #191d24;
    --muted: #626b77;
    --line: #d9dee5;
    --bg: #e9ecef;
}

/* Estrutura principal */
.shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

/* Barra lateral completa */
.sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    flex: 0 0 255px;
    width: 255px;
    height: 100vh;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 15% 0%, #8d18252b, transparent 38%),
        linear-gradient(180deg, #15161b 0%, #090a0d 100%);
    color: #f1f2f4;
    border-right: 1px solid #d2b16f55;
    box-shadow: 5px 0 24px #10111518;
    scrollbar-width: thin;
    scrollbar-color: #76613c #101115;
}

/* Identificação */
.brand {
    padding-bottom: 27px;
}

.brand strong {
    color: #ffffff;
}

.brand strong em {
    color: var(--gold);
}

.brand small {
    color: #c2c5cc;
}

/* Navegação */
.nav-heading {
    color: #b3a17d;
}

.navigation {
    gap: 7px;
}

.navigation a {
    min-height: 45px;
    color: #e0e2e7;
    font-size: 13px;
    border: 1px solid transparent;
    transition: background .18s, border-color .18s, color .18s;
}

.navigation a:hover {
    color: #ffffff;
    background: #ffffff12;
    border-color: #d2b16f55;
}

.navigation a.active {
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(100deg, #922b35a8, #8d182526);
    border: 1px solid #d2b16f75;
    border-left: 3px solid #e0bd75;
    padding-left: 11px;
    box-shadow: inset 0 0 18px #00000020;
}

.nav-icon {
    color: #e0bd75;
}

/* Rodapé da barra lateral */
.side-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #ffffff30;
}

.user-badge strong {
    color: #ffffff;
}

.user-badge small {
    color: #c2c5cc;
}

.user-links a,
.user-links .link-button {
    color: #e0bd75;
}

.user-links a:hover,
.user-links .link-button:hover {
    color: #ffffff;
}

/* Área de trabalho */
.workspace {
    min-width: 0;
    min-height: 100vh;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #e9ecef;
}

.topbar {
    flex: none;
    background: #ffffff;
    border-bottom: 1px solid #d4d9e0;
    color: #59616d;
}

.topbar b {
    color: #191d24;
}

.main {
    width: 100%;
    max-width: 1460px;
    flex: 1;
    background: #e9ecef;
}

/* Rodapé principal */
.footer {
    flex: none;
    background: #e9ecef;
    color: #68717c;
    border-top: 1px solid #d5dae1;
}

/* Painéis e cartões */
.stat-card,
.panel,
.board-tile,
.form-panel,
.reading-panel {
    background: #ffffff;
    border-color: #d8dde4;
    box-shadow: 0 5px 18px #18212d0b;
}

.stat-label {
    color: #505b68;
}

.stat-sub {
    color: #66717d;
}

.panel-heading p,
.event-content small,
.movement small {
    color: #697482;
}

/* Tabelas */
.table-wrap {
    background: #ffffff;
    border: 1px solid #d8dde4;
    border-radius: 10px;
}

th {
    color: #343e4a;
    background: #eef1f4;
    border-color: #d9dee5;
}

td {
    color: #424c58;
    border-color: #e1e5e9;
}

.table-strong,
td strong {
    color: #191d24;
}

/* Formulários */
input,
select,
textarea {
    border-color: #cbd2da;
    color: #252c35;
}

label {
    color: #343e49;
}

/* Acessibilidade */
.navigation a:focus-visible,
.user-links a:focus-visible,
.user-links button:focus-visible {
    outline: 2px solid #e0bd75;
    outline-offset: 3px;
}

/* Tablets e celulares: menu horizontal */
@media (max-width: 880px) {
    .shell {
        display: block;
        min-height: 100vh;
    }

    .sidebar {
        position: relative;
        top: auto;
        align-self: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
        padding: 15px 18px 12px;
        border-right: 0;
        border-bottom: 1px solid #d2b16f55;
    }

    .workspace {
        min-height: calc(100vh - 100px);
    }

    .main {
        flex: initial;
        background: #e9ecef;
    }

    .side-footer {
        display: none;
    }
}

@media (max-width: 570px) {
    .workspace {
        min-height: 0;
    }

    .main {
        padding-bottom: 45px;
    }
}

/* HORUS357 - IDENTIDADE VISUAL GRAFITE */

/* Paleta minimalista */
:root {
    --navy: #101114;
    --navy2: #191b20;
    --wine: #292a2e;
    --red: #a88e61;
    --gold: #b9a477;
    --gold-light: #d4c49f;
    --ink: #e5e6e8;
    --muted: #a3a7ae;
    --line: #383b42;
    --bg: #191b20;
}

/* Fundo geral */
html,
body {
    background: #191b20;
    color: #e5e6e8;
}

body {
    min-height: 100vh;
}

/* Barra lateral: acompanha toda a altura da página */
.shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    background: #191b20;
}

.sidebar {
    position: relative;
    top: auto;
    align-self: stretch;
    flex: 0 0 255px;
    width: 255px;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: visible;
    background: #090a0c !important;
    color: #e5e6e8;
    border-right: 1px solid #34353a;
    box-shadow: none;
}

.brand strong {
    color: #f0f0f0;
}

.brand strong em {
    color: #c1ad80;
}

.brand small {
    color: #a5a7ac;
}

.nav-heading {
    color: #b9a477;
    font-size: 11px;
    letter-spacing: 1.5px;
}

.navigation {
    gap: 7px;
}

.navigation a {
    min-height: 47px;
    padding-top: 10px;
    padding-bottom: 10px;
    color: #d5d6d9;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 7px;
}

.navigation a:hover {
    color: #ffffff;
    background: #ffffff0d;
    border-color: #ffffff18;
}

.navigation a.active {
    color: #ffffff;
    font-weight: 700;
    background: #292a2e;
    border: 1px solid #665b45;
    border-left: 3px solid #b9a477;
    padding-left: 11px;
    box-shadow: none;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    color: #c1ad80;
    font-size: 20px;
    line-height: 1;
}

.side-footer {
    margin-top: auto;
    border-top: 1px solid #303137;
}

.user-badge strong {
    color: #f0f0f0;
}

.user-badge small {
    color: #a5a7ac;
}

.user-links a,
.user-links .link-button {
    color: #c1ad80;
    font-size: 13px;
}

/* Área principal escura */
.workspace {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    background: #191b20;
}

.topbar {
    flex: none;
    background: #15171b;
    color: #b9bdc4;
    border-bottom: 1px solid #34373e;
}

.topbar b {
    color: #eeeeef;
}

.secure-mark {
    color: #c1ad80;
}

.main {
    flex: 1;
    width: 100%;
    max-width: 1460px;
    background: #191b20;
    color: #e5e6e8;
}

.footer {
    flex: none;
    background: #15171b;
    color: #92969e;
    border-top: 1px solid #34373e;
}

/* Cartões e painéis */
.stat-card,
.panel,
.board-tile,
.form-panel,
.reading-panel {
    background: #24272d;
    color: #e5e6e8;
    border: 1px solid #383c44;
    box-shadow: none;
}

.stat-label,
.panel-heading p,
.event-content small,
.movement small,
.stat-sub {
    color: #aeb3bb;
}

.stat-value,
.panel-heading h2,
.table-strong,
td strong {
    color: #f0f1f2;
}

/* Tabelas */
.table-wrap {
    background: #22252a;
    border: 1px solid #383c44;
}

table {
    color: #e2e4e7;
}

th {
    color: #d9dadd;
    background: #2c2f35;
    border-color: #41454e;
}

td {
    color: #d0d3d8;
    border-color: #373b42;
}

tr:hover td {
    background: #ffffff08;
}

/* Formulários */
input,
select,
textarea {
    color: #eeeeef;
    background: #1b1e23;
    border: 1px solid #454a54;
}

input::placeholder,
textarea::placeholder {
    color: #858b95;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #b9a477;
    outline-color: #b9a477;
}

label {
    color: #d7d9dd;
}

/* Botões */
.btn.secondary,
.btn:not(.primary) {
    border-color: #555963;
}

/* Login */
.login-page {
    background: #0d0e11;
    color: #e8e9eb;
}

.login-layout {
    background: #0d0e11;
}

.login-showcase {
    background:
        radial-gradient(ellipse at 50% 35%, #282a2f 0%, #15171b 48%, #090a0c 100%);
    color: #e8e9eb;
}

.login-showcase h1 {
    color: #f1f1f1;
}

.login-showcase h1 span {
    color: #c1ad80;
}

.login-showcase > p {
    color: #b7bac1;
}

.showcase-caption {
    color: #c1ad80;
    letter-spacing: 2px;
}

.accent-rule {
    background: #b9a477;
}

.login-panel {
    background: #17191e;
}

.login-card {
    background: #22252b;
    color: #e5e6e8;
    border: 1px solid #393d45;
    box-shadow: 0 15px 45px #00000040;
}

.login-card h2 {
    color: #f0f0f1;
}

.login-card p,
.login-note {
    color: #b0b4bc;
}

.login-card .eyebrow {
    color: #c1ad80;
}

/* Responsividade */
@media (max-width: 880px) {
    .shell {
        display: block;
        min-height: 100vh;
    }

    .sidebar {
        width: 100%;
        min-height: 0;
        height: auto;
        overflow: visible;
        background: #090a0c !important;
    }

    .workspace {
        min-height: calc(100vh - 100px);
    }

    .main {
        background: #191b20;
    }
}

@media (max-width: 570px) {
    .workspace {
        min-height: 0;
    }
}

/* HORUS357 - CORRECAO DEFINITIVA DE CONTRASTE */

/* Paleta centralizada */
:root {
    --navy: #090a0c;
    --navy2: #191b20;
    --wine: #651923;
    --red: #922b35;
    --gold: #b9a477;
    --gold-light: #d4c49f;
    --ink: #e5e6e8;
    --muted: #a3a7ae;
    --line: #383b42;
    --bg: #191b20;
}

/* Base e tipografia */
html,
body {
    background: #191b20;
    color: #e5e6e8;
}

h1, h2, h3 {
    color: #d4c49f;
}

p {
    color: inherit;
}

a {
    color: #c1ad80;
}

a:hover {
    color: #e0bd75;
}

/* Cabeçalho das páginas */
.pagehead {
    border-color: #383b42;
}

.pagehead h1 {
    color: #d4c49f;
}

.pagehead p,
.eyebrow {
    color: #aeb3bb;
}

/* Navegação */
.navigation a {
    color: #d5d6d9;
}

.navigation a:hover {
    color: #ffffff;
    background: #922b3555;
    border-color: #922b35;
    text-decoration: none;
}

.navigation a.active {
    color: #ffffff;
    background: #922b3566;
    border-color: #b9a477;
}

.navigation a:hover .nav-icon,
.navigation a.active .nav-icon {
    color: #ffffff;
}

.user-links a:hover,
.user-links .link-button:hover {
    color: #ffffff;
}

/* Cabeçalho e área de trabalho */
.workspace,
.main {
    background: #191b20;
    color: #e5e6e8;
}

.topbar {
    background: #15171b;
    color: #b9bdc4;
    border-color: #383b42;
}

.topbar b {
    color: #eeeeef;
}

.secure-mark {
    color: #d4c49f;
    background: #292a2e;
    border: 1px solid #665b45;
}

.footer {
    background: #15171b;
    color: #a3a7ae;
    border-color: #383b42;
}

/* Cartões, painéis e áreas de conteúdo */
.stat-card,
.panel,
.board-tile,
.form-panel,
.reading-panel,
.subtle-panel,
.activity-panel {
    background: #24272d;
    color: #e5e6e8;
    border-color: #383c44;
    box-shadow: none;
}

.stat-card:not(.red)::before {
    opacity: .75;
}

.stat-label,
.stat-sub,
.panel-heading p,
.event-content small,
.movement small {
    color: #aeb3bb;
}

.stat-value,
.table-strong,
td strong {
    color: #f0f1f2;
}

.panel-heading {
    border-color: #383b42;
}

.panel-heading h2,
.section-title,
.board-tag {
    color: #d4c49f;
}

.event,
.movement {
    border-color: #383b42;
}

.event:hover,
.movement:hover {
    background: #922b3526;
}

/* Acesso rápido */
.quick-grid a {
    background: #1b1e23;
    color: #e5e6e8;
    border-color: #383c44;
}

.quick-grid a span {
    color: #d4c49f;
}

.quick-grid a:hover {
    background: #922b3540;
    border-color: #922b35;
    color: #ffffff;
    text-decoration: none;
}

/* Tabelas */
.table-wrap {
    background: #22252a;
    border-color: #383c44;
}

table {
    color: #e2e4e7;
}

th,
.table-wrap th {
    color: #d4c49f;
    background: #2c2f35;
    border-color: #41454e;
}

td,
.table-wrap td {
    color: #d0d3d8;
    border-color: #373b42;
}

.table-wrap td strong,
.table-strong,
td strong {
    color: #f0f1f2;
}

td a {
    color: #d4c49f;
}

tbody tr:hover,
.table-wrap tbody tr:hover {
    background: #922b3526;
}

tbody tr:hover td,
.table-wrap tbody tr:hover td {
    background: transparent;
}

/* Formulários */
input,
select,
textarea {
    color: #eeeeef;
    background: #1b1e23;
    border-color: #454a54;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #b9a477;
}

input:focus,
select:focus,
textarea:focus {
    color: #ffffff;
    background: #1b1e23;
    border-color: #b9a477;
    outline-color: #b9a477;
    box-shadow: 0 0 0 3px #b9a47725;
}

input::placeholder,
textarea::placeholder {
    color: #858b95;
    opacity: 1;
}

select option {
    color: #eeeeef;
    background: #1b1e23;
}

label {
    color: #d7d9dd;
}

.field-hint,
.muted-text,
.under {
    color: #a3a7ae;
}

/* Botões */
.btn.primary,
.btn.danger,
.danger {
    color: #ffffff;
    background: #922b35;
    border-color: #922b35;
}

.btn.primary:hover,
.btn.danger:hover,
.danger:hover {
    color: #ffffff;
    background: #681b25;
    border-color: #a83a45;
}

.btn.secondary,
.btn:not(.primary):not(.danger) {
    color: #e5e6e8;
    background: #292c32;
    border-color: #555963;
}

.btn.secondary:hover,
.btn:not(.primary):not(.danger):hover {
    color: #ffffff;
    background: #922b35;
    border-color: #922b35;
}

.danger-link {
    color: #e08b91;
}

.danger-link:hover {
    color: #ffb0b5;
}

/* Mensagens */
.flash {
    color: #b8e2c7;
    background: #173326;
    border-color: #285a3d;
}

.flash.error {
    color: #ffc1c5;
    background: #421b21;
    border-color: #84313c;
}

.flash.warning {
    color: #f0d9a4;
    background: #3b301b;
    border-color: #75602f;
}

/* Etiquetas e estados */
.pill {
    color: #d0d3d8;
    background: #343840;
}

.pill.good {
    color: #a9e0c0;
    background: #173326;
}

.pill.muted {
    color: #c2bdba;
    background: #34302e;
}

.positive {
    color: #83d5a5 !important;
}

.negative {
    color: #f08d96 !important;
}

/* Pranchas e leitura de documentos */
.board-tile {
    color: #e5e6e8;
}

.board-tile h3,
.board-bottom strong {
    color: #d4c49f;
}

.board-tile p,
.board-bottom,
.reading-body,
.notes-box p {
    color: #d0d3d8;
}

.board-bottom {
    border-color: #383b42;
}

.detail-grid small,
.notes-box small {
    color: #aeb3bb;
}

.reading-actions,
.notes-box {
    border-color: #383b42;
}

.inline-details > summary {
    color: #d4c49f;
}

/* Login */
.login-page,
.login-layout,
.login-panel {
    background: #0d0e11;
    color: #e5e6e8;
}

.login-card {
    background: #22252b;
    color: #e5e6e8;
    border-color: #393d45;
}

.login-card h2 {
    color: #f0f0f1;
}

.login-card p,
.login-note {
    color: #b0b4bc;
}

.login-note {
    border-color: #393d45;
}

/* Acessibilidade */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4c49f;
    outline-offset: 3px;
}

/* Respeita preferência por menos animações */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* Destaque de parcelas vencidas no financeiro */
.table-wrap tr.negative td {
    background: #fff0f0;
    color: #a52f39;
}
.table-wrap tr.negative td strong {
    color: #a52f39;
}


/* Ações do financeiro: botões maiores e acessíveis */
.table-wrap td details {
    display: inline-block;
    vertical-align: middle;
    margin: 4px 5px 4px 0;
}

.table-wrap td .ledger-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 9px;
    list-style: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition: background .15s, transform .15s, box-shadow .15s;
}

.table-wrap td .ledger-action::-webkit-details-marker {
    display: none;
}

.table-wrap td .ledger-action::marker {
    content: "";
}

.table-wrap td .receive-action {
    color: #fff;
    background: linear-gradient(135deg, #21865e, #176b49);
    border: 1px solid #176b49;
    box-shadow: 0 3px 9px #176b4925;
}

.table-wrap td .receive-action:hover {
    background: linear-gradient(135deg, #27996b, #197a52);
    transform: translateY(-1px);
}

.table-wrap td .reopen-action {
    color: #922b35;
    background: #fff5f3;
    border: 1px solid #e6b9b5;
}

.table-wrap td .reopen-action:hover {
    background: #fbe8e6;
}

.table-wrap td .delete-action {
    color: #fff;
    background: linear-gradient(135deg, #b52d39, #861824);
    border: 1px solid #861824;
}

.table-wrap td .delete-action:hover {
    background: linear-gradient(135deg, #c43b47, #9b1c29);
}

.table-wrap td details[open] > .ledger-action {
    margin-bottom: 9px;
}

.table-wrap td details > form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 190px;
    margin: 5px 0 12px;
}

@media (max-width: 640px) {
    .table-wrap td .ledger-action {
        min-height: 44px;
        padding: 11px 14px;
    }
}


/* PADRONIZAÇÃO DAS AÇÕES DO FINANCEIRO */
.ledger-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px !important;
    border-radius: 9px;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
    transition: background .15s, transform .15s, box-shadow .15s;
}

.ledger-action::-webkit-details-marker {
    display: none;
}

.ledger-action::marker {
    content: "";
}

a.ledger-action.edit-action {
    color: #765b2e !important;
    background: #fffaf0;
    border: 1px solid #d9c49a;
}

a.ledger-action.edit-action:hover {
    color: #5d4520 !important;
    background: #f5ecd9;
}

summary.ledger-action.reopen-action {
    color: #922b35 !important;
    background: #fff0ef;
    border: 1px solid #dba5a5;
}

summary.ledger-action.reopen-action:hover {
    background: #fbe0df;
}

summary.ledger-action.receive-action {
    color: #fff !important;
    background: linear-gradient(135deg, #21865e, #176b49);
    border: 1px solid #176b49;
}

summary.ledger-action.delete-action {
    color: #fff !important;
    background: linear-gradient(135deg, #b52d39, #861824);
    border: 1px solid #861824;
}

.ledger-action:hover {
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .ledger-action {
        min-height: 44px;
        padding: 11px 14px !important;
    }
}


/* PADRONIZAÇÃO FINAL DAS AÇÕES FINANCEIRAS */

/* Estado normal: mesma cor de fundo dos painéis */
a.ledger-action.edit-action,
summary.ledger-action.reopen-action,
a.ledger-action.dues-action,
summary.ledger-action.rent-edit-action,
summary.ledger-action.dues-edit-action,
summary.ledger-action.receive-action,
button.rent-pay-action,
button.rent-generate-action,
button.dues-receive-action,
button.dues-generate-action {
    color: #ffffff !important;
    background: #24272d !important;
    border: 1px solid #383c44 !important;
    text-decoration: none !important;
}

/* Hover vermelho: editar, reabrir, mensalidades e ações de aluguel */
a.ledger-action.edit-action:hover,
summary.ledger-action.reopen-action:hover,
a.ledger-action.dues-action:hover,
summary.ledger-action.rent-edit-action:hover,
summary.ledger-action.dues-edit-action:hover,
button.rent-pay-action:hover,
button.rent-generate-action:hover,
button.dues-generate-action:hover {
    color: #ffffff !important;
    background: #c62836 !important;
    border-color: #a91f2c !important;
}

/* Hover verde: receber */
summary.ledger-action.receive-action:hover,
button.dues-receive-action:hover {
    color: #ffffff !important;
    background: #21865e !important;
    border-color: #176b49 !important;
}

/* Estado pressionado */
a.ledger-action.edit-action:active,
summary.ledger-action.reopen-action:active,
a.ledger-action.dues-action:active,
summary.ledger-action.rent-edit-action:active,
summary.ledger-action.dues-edit-action:active,
button.rent-pay-action:active,
button.rent-generate-action:active,
button.dues-generate-action:active {
    background: #8f1725 !important;
    border-color: #74121d !important;
}

summary.ledger-action.receive-action:active,
button.dues-receive-action:active {
    background: #176b49 !important;
    border-color: #105638 !important;
}

/* Acessibilidade por teclado */
a.ledger-action.edit-action:focus-visible,
summary.ledger-action.reopen-action:focus-visible,
a.ledger-action.dues-action:focus-visible,
summary.ledger-action.rent-edit-action:focus-visible,
summary.ledger-action.dues-edit-action:focus-visible,
button.rent-pay-action:focus-visible,
button.rent-generate-action:focus-visible,
button.dues-generate-action:focus-visible {
    outline: 3px solid #f2a0a8;
    outline-offset: 2px;
}

summary.ledger-action.receive-action:focus-visible,
button.dues-receive-action:focus-visible {
    outline: 3px solid #8bd8b4;
    outline-offset: 2px;
}




/* =========================================================
   HORUS357 — PADRÃO GLOBAL DOS BOTÕES E AÇÕES
   ========================================================= */

/* Controles principais e links que funcionam como botões */
.btn,
.ledger-action,
.danger-link,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.table-wrap td:last-child > a,
.panel-heading > a,
.board-tile .board-bottom strong {
    color: #ffffff !important;
    background: #191b20 !important;
    border: 1px solid #383b42 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    box-sizing: border-box;
}

/* Padronização visual dos links de ação e ações de exclusão */
.danger-link,
.table-wrap td:last-child > a,
.panel-heading > a,
.board-tile .board-bottom strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    vertical-align: middle;
}

/* Hover verde para ações comuns */
.btn:hover,
.ledger-action:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.table-wrap td:last-child > a:hover,
.panel-heading > a:hover,
.board-tile:hover .board-bottom strong {
    color: #ffffff !important;
    background: #21865e !important;
    border-color: #176b49 !important;
    text-decoration: none !important;
}

/* Hover vermelho para ações destrutivas e de edição */
.btn.danger:hover,
.danger-link:hover,
.action-edit:hover,
.action-edit-link:hover,
.ledger-action.edit-action:hover,
.ledger-action.reopen-action:hover,
.ledger-action.delete-action:hover,
.ledger-action.rent-edit-action:hover,
.ledger-action.dues-edit-action:hover,
.table-wrap td:last-child > a.action-edit-link:hover {
    color: #ffffff !important;
    background: #c62836 !important;
    border-color: #a91f2c !important;
    text-decoration: none !important;
}

/* Estado pressionado */
.btn:active,
.ledger-action:active,
.danger-link:active,
button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active {
    transform: none;
}

/* Foco acessível por teclado */
.btn:focus-visible,
.ledger-action:focus-visible,
.danger-link:focus-visible,
.table-wrap td:last-child > a:focus-visible,
.panel-heading > a:focus-visible,
button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible {
    outline: 3px solid #8bd8b4 !important;
    outline-offset: 2px !important;
}

/* HORUS357 — identificação e ações da barra lateral */
@media (min-width: 881px) {
    .side-footer {
        margin-top: 14px !important;
        flex: 0 0 auto;
    }
}

.side-footer .user-links {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin: 13px 0 0;
}

.side-footer .user-links form,
.mobile-account-nav form {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.side-footer .user-links a,
.side-footer .user-links .link-button,
.mobile-account-nav a,
.mobile-account-nav form button {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    padding: 10px 9px;
    border: 1px solid #383b42 !important;
    border-radius: 9px;
    background: #191b20 !important;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    box-sizing: border-box;
    cursor: pointer;
}

.side-footer .user-links .link-button,
.mobile-account-nav form button {
    width: 100%;
    font-family: inherit;
}

.side-footer .user-links a:hover,
.side-footer .user-links .link-button:hover,
.mobile-account-nav a:hover,
.mobile-account-nav form button:hover {
    background: #21865e !important;
    border-color: #176b49 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.mobile-account-nav {
    gap: 8px;
}

@media (max-width: 880px) {
    .mobile-account-nav {
        justify-content: flex-start;
        padding-top: 10px;
    }
}

/* Grade exclusiva dos indicadores da tela inicial */
.dashboard-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 880px) {
    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 570px) {
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* Posicionamento do botão Alterar logotipo */
.side-footer .user-links,
.mobile-account-nav {
    flex-wrap: wrap;
}

.side-footer .user-links > a:first-of-type,
.mobile-account-nav > a:first-of-type {
    order: 1;
}

.side-footer .user-links > form,
.mobile-account-nav > form {
    order: 2;
}

.side-footer .user-links > a[href*="#identidade-visual"],
.mobile-account-nav > a[href*="#identidade-visual"] {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
}


/* PADRONIZACAO DEFINITIVA DOS BOTOES HORUS357 */

/* Dimensões mínimas consistentes */
.btn,
.ledger-action,
.danger-link,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    min-height: 42px;
    box-sizing: border-box;
}

/* Hover neutro: todos os botões comuns permanecem cinza */
.btn:hover,
.btn.primary:hover,
.btn.secondary:hover,
.btn:not(.primary):not(.danger):hover,
.ledger-action:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.danger-link:hover,
.table-wrap td:last-child > a:hover,
.panel-heading > a:hover,
.board-tile:hover .board-bottom strong,
.side-footer .user-links a:hover,
.side-footer .user-links .link-button:hover,
.mobile-account-nav a:hover,
.mobile-account-nav form button:hover {
    color: #ffffff !important;
    background: #30343b !important;
    border-color: #484d56 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Hover vermelho: ações de edição */
.btn.action-edit:hover,
.action-edit-link:hover,
.action-edit:hover,
.ledger-action.edit-action:hover,
.ledger-action.rent-edit-action:hover,
.ledger-action.dues-edit-action:hover,
a.ledger-action.dues-action:hover,
.table-wrap td:last-child > a.action-edit-link:hover {
    color: #ffffff !important;
    background: #c62836 !important;
    border-color: #a91f2c !important;
    box-shadow: none !important;
}

/* Hover verde: somente ações de recebimento */
summary.ledger-action.receive-action:hover,
button.dues-receive-action:hover {
    color: #ffffff !important;
    background: #21865e !important;
    border-color: #176b49 !important;
    box-shadow: none !important;
}

/* Ações destrutivas continuam vermelhas */
.btn.danger:hover,
.danger-link:hover,
.ledger-action.delete-action:hover,
.ledger-action.reopen-action:hover {
    color: #ffffff !important;
    background: #c62836 !important;
    border-color: #a91f2c !important;
    box-shadow: none !important;
}

/* Transições uniformes */
.btn,
.ledger-action,
.danger-link,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    transition:
        color .15s ease,
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}


/* IDENTIDADE INSTITUCIONAL DINAMICA - AJUSTE DE TEXTO */
.brand {
    min-width: 0;
}
.brand > span {
    min-width: 0;
    flex: 1;
}
.brand strong {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
    font-size: 14px;
    letter-spacing: .3px;
}
.brand small {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
}
.login-showcase h1 {
    max-width: 100%;
    font-size: clamp(25px, 4vw, 44px);
    letter-spacing: clamp(0px, .25vw, 3px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}


/* AUMENTO DO BRASAO NA TELA DE LOGIN */
.login-emblem {
    width: 320px;
    height: 320px;
    flex-shrink: 0;
}

@media (max-width: 880px) {
    .login-emblem {
        width: 170px;
        height: 170px;
    }
}


/* IDENTIDADE DOURADA - NOME E TEXTO SECUNDARIO */
.login-showcase h1,
.login-showcase .login-subtitle {
    color: #c8a45d;
}
.login-showcase .login-subtitle {
    font-size: 13px;
    letter-spacing: .6px;
    line-height: 1.5;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}


/* Indicadores financeiros HORUS357 */
.duo-stats.financial-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.financial-stat-grid .stat-card {
    min-width: 0;
}

.financial-stat-grid .stat-value {
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .duo-stats.financial-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .duo-stats.financial-stat-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* =========================================================
   HORUS357 - SELETOR PREMIUM DE LOJAS
   Estilos exclusivos do seletor administrativo.
   ========================================================= */

.sidebar .store-context-form {
    flex: none;
    min-width: 0;
    margin: 0 4px 17px;
    padding: 12px;
    border: 1px solid #b9a47780;
    border-radius: 12px;
    background: linear-gradient(
        145deg,
        #b9a47712,
        #b9a47704
    );
    box-shadow:
        0 4px 14px #00000025,
        inset 0 1px 0 #ffffff08;
}

.sidebar .store-context-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 1.1px;
}

.sidebar .store-context-icon {
    width: 19px;
    height: 19px;
    flex: none;
    color: var(--gold-light);
}

.sidebar .store-context-control {
    position: relative;
    min-width: 0;
}

.sidebar #store-selector.store-context-select {
    display: block;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 32px 12px 11px;
    border: 2px solid var(--gold);
    border-radius: 9px;
    background: linear-gradient(
        135deg,
        #40372a,
        #26231e
    );
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    cursor: pointer;
    color-scheme: dark;
    box-shadow:
        0 3px 10px #00000030,
        inset 0 1px 0 #ffffff10;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.sidebar #store-selector.store-context-select:hover {
    border-color: var(--gold-light);
    background: linear-gradient(
        135deg,
        #51432e,
        #30291f
    );
    box-shadow:
        0 0 14px #b9a47740,
        inset 0 1px 0 #ffffff15;
}

.sidebar #store-selector.store-context-select:focus {
    color: #ffffff;
    border-color: var(--gold-light);
    box-shadow: 0 0 0 3px #b9a47730;
}

.sidebar #store-selector.store-context-select:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

.sidebar #store-selector.store-context-select option {
    background: #1b1e23;
    color: #ffffff;
    font-weight: 600;
}

.sidebar #store-selector.store-context-select option:checked {
    background: #40372a;
    color: #d4c49f;
}

.sidebar .store-context-arrow {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    color: var(--gold-light);
    pointer-events: none;
}

.sidebar .store-context-apply {
    width: 100%;
    min-height: 36px;
    margin-top: 9px;
    border: 1px solid var(--gold);
    border-radius: 7px;
    background: #30291f;
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 880px) {
    .sidebar .store-context-form {
        margin: 8px 0 12px;
        padding: 12px;
    }

    .sidebar #store-selector.store-context-select {
        min-height: 48px;
        font-size: 14px;
    }
}

@media (max-width: 570px) {
    .sidebar #store-selector.store-context-select {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar #store-selector.store-context-select {
        transition: none;
    }
}


/* =========================================================
   HORUS357 - IDENTIFICACAO INSTITUCIONAL AMPLIADA
   ========================================================= */

.login-showcase .login-subtitle {
    display: block;
    width: 100%;
    max-width: 720px;
    margin: 8px auto 22px;
    padding: 0 8px;
    color: #c8a45d;
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: .4px;
    text-align: center;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;
    box-sizing: border-box;
}

.login-showcase {
    min-width: 0;
    min-height: 0;
    height: auto;
}

#identidade-visual .institutional-subtitle-editor {
    display: block;
    width: 100%;
    min-height: 240px;
    padding: 14px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.65;
    resize: vertical;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

@media (max-width: 880px) {
    .login-showcase .login-subtitle {
        font-size: 17px;
        line-height: 1.55;
        margin-bottom: 18px;
    }
}

@media (max-width: 570px) {
    .login-showcase .login-subtitle {
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: .15px;
        padding: 0 4px;
    }

    #identidade-visual .institutional-subtitle-editor {
        font-size: 16px;
        min-height: 260px;
    }
}


/* =========================================================
   HORUS357 - LOGOTIPO INSTITUCIONAL AMPLIADO
   ========================================================= */

.login-showcase .login-emblem {
    width: min(480px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    margin: 0 auto 26px;
}

.login-showcase .login-emblem img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
}

@media (max-width: 880px) {
    .login-showcase .login-emblem {
        width: min(360px, 100%);
        height: auto;
        margin-bottom: 20px;
    }
}

@media (max-width: 570px) {
    .login-showcase .login-emblem {
        width: min(280px, 100%);
        height: auto;
        margin-bottom: 16px;
    }
}


/* =========================================================
   HORUS357 - IDENTIDADE VISUAL INDIVIDUAL DAS LOJAS
   ========================================================= */

.topbar.institutional-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: auto;
    min-height: 106px;
    padding: 16px 26px;
    border-bottom: 1px solid #b9a47770;
    background: linear-gradient(120deg, #191b20, #22242a);
    box-sizing: border-box;
}

.institutional-header-brand {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 20px;
    min-width: 0;
}

.institutional-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    padding: 5px;
    box-sizing: border-box;
}

.institutional-header-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.institutional-header-text {
    flex: 1;
    min-width: 0;
}

.institutional-header-name {
    color: #d4c49f;
    font-size: clamp(20px, 2.1vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .5px;
    overflow-wrap: anywhere;
}

.institutional-header-subtitle {
    margin-top: 7px;
    color: #eeeeef;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .6px;
    overflow-wrap: anywhere;
}

.institutional-topbar .secure-mark {
    flex-shrink: 0;
}

.store-identity-panel {
    margin-top: 22px;
}

.store-identity-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 156px;
    height: 156px;
    margin: 18px auto;
    padding: 12px;
    border: 1px solid #b9a477;
    border-radius: 14px;
    background: #191b20;
    box-sizing: border-box;
}

.store-identity-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-identity-panel form {
    margin-top: 16px;
}

.store-identity-panel input[type="file"] {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 880px) {
    .topbar.institutional-topbar {
        padding: 14px 18px;
        min-height: 90px;
        gap: 12px;
    }

    .institutional-header-brand {
        gap: 14px;
    }

    .institutional-header-logo {
        flex-basis: 62px;
        width: 62px;
        height: 62px;
    }

    .institutional-header-name {
        font-size: 23px;
    }
}

@media (max-width: 570px) {
    .topbar.institutional-topbar {
        flex-wrap: wrap;
        padding: 12px;
        gap: 8px;
    }

    .institutional-header-brand {
        flex-basis: 100%;
        gap: 10px;
    }

    .institutional-header-logo {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .institutional-header-name {
        font-size: 19px;
        letter-spacing: .1px;
    }

    .institutional-header-subtitle {
        font-size: 10px;
        letter-spacing: 0;
    }

    .institutional-topbar .secure-mark {
        margin-left: auto;
    }
}


/* =========================================================
   HORUS357 - CABECALHO CENTRALIZADO E AMPLIADO
   ========================================================= */

.topbar.institutional-topbar {
    display: grid;
    grid-template-columns:
        minmax(115px, 1fr)
        minmax(0, max-content)
        minmax(115px, 1fr);
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: auto;
    min-height: 124px;
    padding: 14px 24px;
    box-sizing: border-box;
    border-bottom: 1px solid #b9a47785;
}

.institutional-topbar .institutional-header-brand {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
}

.institutional-topbar .institutional-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 146px;
    width: 146px;
    height: 146px;
    padding: 4px;
    box-sizing: border-box;
}

.institutional-topbar .institutional-header-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.institutional-topbar .institutional-header-text {
    flex: 0 1 auto;
    min-width: 0;
    text-align: center;
}

.institutional-topbar .institutional-header-name {
    color: #d4c49f;
    font-size: clamp(23px, 2.4vw, 37px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .6px;
    text-align: center;
    overflow-wrap: anywhere;
}

.institutional-topbar .institutional-header-subtitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 9px;
    color: #eeeeef;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: .6px;
    text-align: center;
    overflow-wrap: anywhere;
}

.institutional-topbar .institutional-oriente {
    display: block;
    color: #ffffff;
    font-size: inherit;
    font-weight: 700;
    text-align: center;
}

.institutional-topbar .institutional-management {
    display: block;
    color: #d4c49f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-align: center;
}

.institutional-topbar .secure-mark {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    margin: 0;
    white-space: nowrap;
}

/* Notebooks e areas de trabalho mais estreitas. */

@media (max-width: 1100px) {
    .topbar.institutional-topbar {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding: 14px 18px;
    }

    .institutional-topbar .institutional-header-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .institutional-topbar .secure-mark {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
    }
}

/* Tablets. */

@media (max-width: 880px) {
    .topbar.institutional-topbar {
        min-height: 104px;
        padding: 14px;
    }

    .institutional-topbar .institutional-header-brand {
        gap: 16px;
    }

    .institutional-topbar .institutional-header-logo {
        flex-basis: 114px;
        width: 114px;
        height: 114px;
    }

    .institutional-topbar .institutional-header-name {
        font-size: 27px;
    }

    .institutional-topbar .institutional-header-subtitle {
        font-size: 12px;
    }
}

/* Celulares. */

@media (max-width: 570px) {
    .topbar.institutional-topbar {
        padding: 14px 12px;
        gap: 8px;
    }

    .institutional-topbar .institutional-header-brand {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .institutional-topbar .institutional-header-logo {
        flex: 0 0 auto;
        width: 104px;
        height: 104px;
        padding: 2px;
    }

    .institutional-topbar .institutional-header-text {
        width: 100%;
        text-align: center;
    }

    .institutional-topbar .institutional-header-name {
        font-size: 22px;
        letter-spacing: .2px;
        line-height: 1.3;
    }

    .institutional-topbar .institutional-header-subtitle {
        font-size: 11px;
        letter-spacing: .2px;
        margin-top: 7px;
    }

    .institutional-topbar .institutional-management {
        font-size: 10px;
        letter-spacing: 1.2px;
    }
}


/* =========================================================
   HORUS357 - IDENTIDADE INSTITUCIONAL LATERAL
   ========================================================= */

.sidebar > a.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 15px;
    width: 100%;
    min-width: 0;
    padding: 2px 6px 28px;
    text-align: center;
    box-sizing: border-box;
}

/* Brasao institucional ampliado. */

.sidebar > a.brand > img {
    display: block;
    flex: 0 0 auto;
    width: min(180px, 100%);
    height: auto;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: none;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0 auto;
}

/* Nome institucional abaixo do brasao. */

.sidebar > a.brand > span {
    display: block;
    width: 100%;
    min-width: 0;
    text-align: center;
}

.sidebar > a.brand strong {
    display: block;
    color: var(--gold-light);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: .7px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

.sidebar > a.brand::after {
    left: 8px;
    right: 8px;
    bottom: 12px;
    background: linear-gradient(
        90deg,
        transparent,
        #b9a477,
        transparent
    );
}

/* Preserva o acesso a todos os menus no desktop. */

@media (min-width: 881px) {
    .sidebar {
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #b9a47760 transparent;
    }

    .sidebar > * {
        flex-shrink: 0;
    }
}

/* Tablets. */

@media (max-width: 880px) {
    .sidebar > a.brand {
        gap: 12px;
        padding: 4px 8px 20px;
    }

    .sidebar > a.brand > img {
        width: min(144px, 100%);
    }

    .sidebar > a.brand strong {
        font-size: 16px;
    }

    .sidebar > a.brand::after {
        bottom: 6px;
    }
}

/* Celulares. */

@media (max-width: 570px) {
    .sidebar > a.brand {
        gap: 10px;
        padding: 4px 8px 18px;
    }

    .sidebar > a.brand > img {
        width: min(120px, 100%);
    }

    .sidebar > a.brand strong {
        font-size: 15px;
        letter-spacing: .4px;
        line-height: 1.4;
    }
}
