/* =====================================================================
   HORIZON SGE 29 — Tema "Azul HORIZON"
   Camada visual carregada depois do CSS principal. Não altera funções:
   só aparência (cores, cantos, sombras, casca flutuante, cartões, tabelas).
   As cores derivam de --azul-principal / --azul-claro (configuráveis no admin).
   ===================================================================== */

:root{
  --azul-principal:#004A99;
  --azul-claro:#1A75D3;
  --azul-gradiente-1:#004A99;
  --azul-gradiente-2:#1A75D3;
}

#horizon-sge-app{
  --hx-primary:var(--azul-principal,#004A99);
  --hx-primary-2:var(--azul-claro,#1A75D3);
  --hx-deep:color-mix(in srgb,var(--hx-primary) 68%,#08121F);
  --hx-tint:color-mix(in srgb,var(--hx-primary) 9%,#fff);
  --hx-tint-2:color-mix(in srgb,var(--hx-primary) 5%,#fff);
  --hx-line:color-mix(in srgb,var(--hx-primary) 13%,#fff);
  --hx-ink:#172B46;
  --hx-text:#33465D;
  --hx-muted:#64748B;
  --hx-bg:#F3F6FA;
  --hx-card:#ffffff;
  --hx-shadow:0 12px 34px rgba(0,74,153,.07);
  --hx-shadow-sm:0 4px 14px rgba(0,74,153,.06);
  --hx-radius:24px;
  --hx-pink:#ffeef0;   --hx-pink-ink:#d6455d;
  --hx-mint:#e2f8f1;   --hx-mint-ink:#0f9d78;
  --hx-sun:#fff5db;    --hx-sun-ink:#b7791f;
  --hx-lav:#E8F2FC;    --hx-lav-ink:#004A99;
  --hx-sky:#e5f2ff;    --hx-sky-ink:#1f72c9;
  /* aponta as variáveis antigas para a nova paleta */
  --hsg-accent:var(--hx-primary);--hsg-accent-strong:var(--hx-deep);--hsg-accent-soft:var(--hx-tint);
  --hsg-blue:var(--hx-primary);--hsg-navy:var(--hx-deep);--hsg-sky:var(--hx-primary-2);
  --hsg-ink:var(--hx-ink);--hsg-text:var(--hx-text);--hsg-muted:var(--hx-muted);
  --hsg-bg:var(--hx-bg);--hsg-line:var(--hx-line);--hsg-border:var(--hx-line);--hsg-soft:var(--hx-tint);
  --hsg-panel-border:transparent;--hsg-panel-shadow:var(--hx-shadow);
  --h19-primary:var(--hx-deep);--h19-secondary:var(--hx-primary);
  --cinza-claro:var(--hx-bg);--preto:var(--hx-ink);--cinza-escuro:var(--hx-muted);
  font-family:"Poppins","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--hx-text);
}
body{background:radial-gradient(1200px 600px at 12% -10%,#EAF2FB 0,transparent 60%),radial-gradient(900px 500px at 100% 110%,#EDF5FD 0,transparent 55%),#eff0fd}

/* ---------------- Casca flutuante (desktop) ---------------- */
@media (min-width:901px){
  #horizon-sge-app #system-container{
    position:relative;width:calc(100% - 40px);max-width:none;height:calc(100dvh - 40px);min-height:0;margin:20px;
    border-radius:34px;overflow:hidden;background:var(--hx-primary);
    box-shadow:0 34px 90px rgba(0,74,153,.22),0 0 0 1px rgba(255,255,255,.4) inset;
  }
  #horizon-sge-app .sidebar{
    position:absolute;left:0;top:0;bottom:0;height:auto;width:272px;padding:26px 26px 22px 16px;
    background:linear-gradient(180deg,var(--hx-primary) 0%,color-mix(in srgb,var(--hx-primary) 88%,#000) 100%);
    border:0;box-shadow:none;border-radius:0;z-index:1;
  }
  #horizon-sge-app .main-content{
    position:relative;z-index:2;margin-left:252px;width:calc(100% - 252px);height:100%;
    padding:22px 34px 34px;background:var(--hx-bg);border-radius:34px 0 0 34px;
    box-shadow:-10px 0 30px rgba(0,48,100,.14);
  }
}

/* ---------------- Barra lateral ---------------- */
#horizon-sge-app .sidebar{color:#fff;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent}
#horizon-sge-app .sidebar .logo-area{
  height:auto;margin:0 4px 20px;padding:4px 6px 18px;gap:12px;border-bottom:1px solid rgba(255,255,255,.14);
  font-weight:700;font-size:17px;letter-spacing:.2px;line-height:1.15;color:#fff;
}
#horizon-sge-app .sidebar .logo-mark{
  width:46px;height:46px;flex:0 0 46px;border-radius:16px;display:grid;place-items:center;
  background:rgba(255,255,255,.14);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);
}
#horizon-sge-app .sidebar .logo-mark svg{width:28px;height:28px}
#horizon-sge-app .sidebar .logo-mark svg circle:last-of-type{fill:var(--hx-primary)}
#horizon-sge-app .sidebar h4,
#horizon-sge-app .sidebar .menu-category-title{color:rgba(255,255,255,.62);font-size:10.5px;font-weight:600;letter-spacing:1.3px;text-transform:uppercase}
#horizon-sge-app .sidebar nav ul li a,
#horizon-sge-app .sidebar .menu-item{
  min-height:44px;padding:11px 14px;margin:2px 0;border:0;border-radius:16px;gap:13px;
  color:rgba(255,255,255,.84);font-size:13.5px;font-weight:500;transition:background .18s,color .18s,transform .18s;
}
#horizon-sge-app .sidebar nav ul li a i,
#horizon-sge-app .sidebar .menu-item i{width:20px;text-align:center;font-size:15px;opacity:.95}
#horizon-sge-app .sidebar nav ul li a:hover{background:rgba(255,255,255,.12);color:#fff;transform:translateX(2px)}
#horizon-sge-app .sidebar nav ul li a.active,
#horizon-sge-app .sidebar .menu-item.active{
  background:#fff;color:var(--hx-primary);font-weight:600;border:0;padding-left:14px;
  box-shadow:0 10px 22px rgba(0,42,87,.28);
}
#horizon-sge-app .sidebar nav ul li a.active i{color:var(--hx-primary)}
#horizon-sge-app .sidebar .logout-area{margin-top:auto;padding-top:16px;border-top:1px solid rgba(255,255,255,.14)}
#horizon-sge-app .sidebar .logout-area a{
  display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;color:#fff;background:rgba(255,255,255,.1);
  font-weight:500;cursor:pointer;transition:background .18s;
}
#horizon-sge-app .sidebar .logout-area a:hover{background:rgba(255,255,255,.2)}

/* ---------------- Cabeçalho ---------------- */
#horizon-sge-app .top-header{
  display:flex;align-items:center;gap:14px;min-height:64px;padding:0 0 4px;margin:0 0 20px;border:0;background:transparent;box-shadow:none;
}
#horizon-sge-app .top-header .header-left{display:flex;align-items:center;gap:12px;min-width:0;margin-right:auto}
#horizon-sge-app .top-header h1{
  font-family:"Poppins","Inter",sans-serif;font-size:24px;font-weight:600;letter-spacing:-.2px;color:var(--hx-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#horizon-sge-app .hx-pill{
  display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 20px;border-radius:999px;background:#fff;color:var(--hx-muted);
  font-size:13.5px;font-weight:500;border:0;box-shadow:var(--hx-shadow-sm);cursor:pointer;font-family:inherit;
}
#horizon-sge-app .hx-pill i{color:var(--hx-primary);font-size:15px}
#horizon-sge-app .hx-pill.hx-search{min-width:280px;justify-content:flex-start;transition:box-shadow .18s}
#horizon-sge-app .hx-pill.hx-search:hover{box-shadow:0 8px 22px rgba(0,74,153,.14)}
#horizon-sge-app .hx-pill.hx-search kbd{
  margin-left:auto;font:600 10.5px "Poppins",sans-serif;color:var(--hx-muted);background:var(--hx-tint);border-radius:8px;padding:3px 7px;
}
#horizon-sge-app .hx-pill.hx-clock{cursor:default;color:var(--hx-text);font-weight:500}
#horizon-sge-app .hx-pill.hx-clock i{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--hx-primary);color:#fff;font-size:12px}
#horizon-sge-app .user-area{display:flex;align-items:center;gap:10px}
#horizon-sge-app .top-header .icon-btn{
  width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--hx-primary);border:0;box-shadow:var(--hx-shadow-sm);
}
#horizon-sge-app .top-header .icon-btn:hover{background:var(--hx-tint)}
#horizon-sge-app :is(td,.table-wrapper,.hsg281-issued-row,.hsg28-card) .icon-btn{
  width:34px;height:34px;min-width:34px;border-radius:12px;display:inline-grid;place-items:center;background:var(--hx-tint);color:var(--hx-primary);border:0;box-shadow:none;margin:0 2px;
}
#horizon-sge-app :is(td,.table-wrapper,.hsg281-issued-row,.hsg28-card) .icon-btn:hover{background:var(--hx-primary);color:#fff}
#horizon-sge-app .top-header .icon-btn[onclick*="abrirBuscaGlobal"]{display:none}
#horizon-sge-app .profile-trigger{
  height:52px;padding:4px 14px 4px 5px;border-radius:999px;background:#fff;border:0;box-shadow:var(--hx-shadow-sm);gap:10px;
}
#horizon-sge-app .profile-trigger .avatar{
  width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,var(--hx-primary-2),var(--hx-primary));color:#fff;font-weight:600;
}
#horizon-sge-app .profile-name{color:var(--hx-ink);font-weight:600;font-size:13px;line-height:1.25}
#horizon-sge-app .profile-name small{color:var(--hx-muted);font-weight:400;font-size:11px}
#horizon-sge-app .profile-dropdown{border:0;border-radius:20px;box-shadow:0 20px 50px rgba(0,74,153,.2);padding:8px;overflow:hidden}
#horizon-sge-app .profile-dropdown button{border-radius:12px}
#horizon-sge-app .profile-dropdown button:hover{background:var(--hx-tint)}
#horizon-sge-app .menu-toggle{background:#fff;color:var(--hx-primary);border-radius:50%;border:0;box-shadow:var(--hx-shadow-sm)}

/* ---------------- Cartões e painéis ---------------- */
#horizon-sge-app .card,
#horizon-sge-app .table-wrapper,
#horizon-sge-app .action-bar,
#horizon-sge-app .panel,
#horizon-sge-app .calendar-panel,
#horizon-sge-app .hsg28-card,
#horizon-sge-app .hsg15-card,
#horizon-sge-app .hsg17-toolbar,
#horizon-sge-app .hsg15-toolbar,
#horizon-sge-app .comunicado-card{
  background:var(--hx-card);border:0!important;border-radius:var(--hx-radius);box-shadow:var(--hx-shadow);
}
#horizon-sge-app .action-bar{padding:16px 20px;gap:14px;align-items:center}
#horizon-sge-app .view-section{color:var(--hx-text)}
#horizon-sge-app .view-section h2,#horizon-sge-app .view-section h3,#horizon-sge-app .page-header h2{color:var(--hx-ink);font-weight:600}
#horizon-sge-app .view-section p{color:var(--hx-muted)}

/* KPIs em blocos pastel, como no modelo */
#horizon-sge-app .stats-grid{gap:16px!important}
#horizon-sge-app .stat-card{
  position:relative;border:0!important;border-radius:22px;padding:18px 20px!important;background:var(--hx-lav);box-shadow:none;min-height:104px;
  display:flex;flex-direction:column;justify-content:center;gap:6px;overflow:hidden;
}
#horizon-sge-app .stat-card::before{display:none}
#horizon-sge-app .stat-card::after{
  content:"";position:absolute;right:-18px;top:-18px;width:84px;height:84px;border-radius:50%;background:rgba(255,255,255,.55);pointer-events:none;
}
#horizon-sge-app .stat-card h3{
  order:2;margin:0;font-size:12px!important;font-weight:500;letter-spacing:.2px;text-transform:none;color:var(--hx-muted)!important;
}
#horizon-sge-app .stat-card .number{order:1;font-size:30px!important;font-weight:700;line-height:1.1;color:var(--hx-ink)!important}
#horizon-sge-app .stat-card{background:var(--hx-lav)}
#horizon-sge-app .stat-card.green{background:var(--hx-mint)}
#horizon-sge-app .stat-card.yellow{background:var(--hx-sun)}
#horizon-sge-app .stat-card.red{background:var(--hx-pink)}
#horizon-sge-app .stat-card.blue{background:var(--hx-sky)}
/* cartões com fundo inline legado (ex.: Equipe Escolar) entram na paleta */
#horizon-sge-app .stat-card[style*="background"]{background:var(--hx-sky)!important;color:var(--hx-ink)!important}
#horizon-sge-app .stat-card[style*="background"] .number{color:var(--hx-ink)!important}

/* Painel de controle da rede vira banner azul HORIZON */
#horizon-sge-app .hsg29-control-panel{
  position:relative;overflow:hidden;border:0!important;border-radius:26px;padding:24px 30px;min-height:190px;color:#fff;
  background:linear-gradient(120deg,var(--hx-primary) 0%,color-mix(in srgb,var(--hx-primary) 78%,#1A75D3) 100%);
  box-shadow:0 18px 40px rgba(0,74,153,.26);
}
#horizon-sge-app .hsg29-control-panel::after{
  content:"";position:absolute;right:26px;bottom:0;width:300px;height:190px;pointer-events:none;opacity:.95;
  background:no-repeat right bottom/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200'><circle cx='210' cy='120' r='110' fill='%23ffffff' opacity='.08'/><circle cx='120' cy='60' r='24' fill='%23ffffff' opacity='.1'/><g transform='translate(150 40)'><path d='M70 10 L140 42 L70 74 L0 42 Z' fill='%23ffffff'/><path d='M28 62 V96 C28 110 112 110 112 96 V62 L70 82 Z' fill='%23d9d4ff'/><path d='M140 42 V92' stroke='%23ffd166' stroke-width='5' stroke-linecap='round'/><circle cx='140' cy='98' r='7' fill='%23ffd166'/></g><g transform='translate(70 120) rotate(-8)'><rect width='84' height='58' rx='8' fill='%23ffffff' opacity='.95'/><rect x='6' y='6' width='34' height='46' rx='4' fill='%23e9e6ff'/><rect x='46' y='12' width='30' height='5' rx='2.5' fill='%23b9b2ff'/><rect x='46' y='24' width='26' height='5' rx='2.5' fill='%23b9b2ff'/><rect x='46' y='36' width='30' height='5' rx='2.5' fill='%23b9b2ff'/></g><g transform='translate(240 150) rotate(35)'><rect width='14' height='64' rx='4' fill='%23ff8fa3'/><path d='M0 64 L7 80 L14 64 Z' fill='%23ffd166'/></g></svg>");
}
#horizon-sge-app .hsg29-control-panel{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:16px;padding-right:min(340px,36%)}
#horizon-sge-app .hsg29-control-panel>*{position:relative;z-index:1}
#horizon-sge-app .hsg29-control-panel h3{color:#fff;font-size:21px;font-weight:600;max-width:520px}
#horizon-sge-app .hsg29-control-panel p{color:rgba(255,255,255,.82);max-width:480px}
#horizon-sge-app .hsg29-eyebrow{color:rgba(255,255,255,.75)!important;letter-spacing:1.4px}
#horizon-sge-app .hsg29-control-actions{max-width:none;justify-content:flex-start}
#horizon-sge-app .hsg29-control-actions button{
  border:0;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;padding:10px 18px;font-weight:500;backdrop-filter:blur(4px);
  transition:background .18s,transform .18s;
}
#horizon-sge-app .hsg29-control-actions button:hover{background:rgba(255,255,255,.28);transform:translateY(-1px)}
#horizon-sge-app .hsg29-control-actions button:last-child{background:#fff!important;color:var(--hx-primary)!important;font-weight:600;box-shadow:0 8px 18px rgba(0,42,87,.25)}
#horizon-sge-app .hsg29-control-actions button:last-child i{color:var(--hx-primary)!important}

/* ---------------- Tabelas ---------------- */
#horizon-sge-app .table-wrapper{padding:6px 8px 10px;overflow:hidden}
#horizon-sge-app table{border-collapse:separate;border-spacing:0;width:100%}
#horizon-sge-app th{
  background:var(--hx-tint)!important;color:#64748B!important;font-size:11px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;border:0;padding:14px 12px;
  overflow-wrap:normal;word-break:normal;hyphens:none;
}
#horizon-sge-app th:first-child{border-radius:14px 0 0 14px}
#horizon-sge-app th:last-child{border-radius:0 14px 14px 0}
#horizon-sge-app td{border:0;border-bottom:1px solid var(--hx-line);padding:15px 16px;color:var(--hx-text);font-size:13.5px}
#horizon-sge-app tbody tr:last-child td{border-bottom:0}
#horizon-sge-app tbody tr{transition:background .15s}
#horizon-sge-app tbody tr:hover{background:var(--hx-tint-2)}
#horizon-sge-app td strong,#horizon-sge-app td b{color:var(--hx-ink)}
#horizon-sge-app td a,#horizon-sge-app td .link{color:var(--hx-primary)}

/* ---------------- Botões, campos, etiquetas ---------------- */
#horizon-sge-app .btn-sys-primary,
#horizon-sge-app button.btn-primary{
  background:var(--hx-primary);color:#fff;border:0;border-radius:14px;padding:11px 20px;font-weight:600;font-family:inherit;
  box-shadow:0 10px 22px color-mix(in srgb,var(--hx-primary) 32%,transparent);transition:transform .16s,box-shadow .16s,background .16s;
}
#horizon-sge-app .btn-sys-primary:hover{background:var(--hx-deep);transform:translateY(-1px);box-shadow:0 14px 26px color-mix(in srgb,var(--hx-primary) 38%,transparent)}
#horizon-sge-app .btn-cancel{
  background:#fff;color:var(--hx-primary);border:1.5px solid var(--hx-line);border-radius:14px;font-weight:600;font-family:inherit;
}
#horizon-sge-app .btn-cancel:hover{background:var(--hx-tint);border-color:var(--hx-primary-2)}
#horizon-sge-app :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]){
  border:1.5px solid var(--hx-line);border-radius:14px;background:#fff;color:var(--hx-ink);font-family:inherit;transition:border-color .16s,box-shadow .16s;
}
#horizon-sge-app :is(input,select,textarea):focus{
  border-color:var(--hx-primary-2);box-shadow:0 0 0 4px color-mix(in srgb,var(--hx-primary-2) 20%,transparent);outline:none;
}
#horizon-sge-app .search-input-wrapper input{border-radius:999px;background:var(--hx-tint-2)}
#horizon-sge-app label{color:var(--hx-text)}
#horizon-sge-app input[type=checkbox],#horizon-sge-app input[type=radio]{accent-color:var(--hx-primary)}
#horizon-sge-app .status-badge{border-radius:999px;padding:5px 12px;font-size:11px;font-weight:600;letter-spacing:.3px}
#horizon-sge-app .status-badge.active,#horizon-sge-app .status-badge.aprovado{background:var(--hx-mint);color:var(--hx-mint-ink)}
#horizon-sge-app .status-badge.inactive,#horizon-sge-app .status-badge.inativo{background:var(--hx-pink);color:var(--hx-pink-ink)}
#horizon-sge-app .status-badge.pendente{background:var(--hx-sun);color:var(--hx-sun-ink)}

/* ---------------- Janelas (modais) ---------------- */
#horizon-sge-app .modal-overlay{background:rgba(0,56,116,.45);backdrop-filter:blur(6px)}
#horizon-sge-app .modal{border:0;border-radius:28px;background:#fff;box-shadow:0 40px 100px rgba(0,48,100,.35)}
#horizon-sge-app .modal-header{border-bottom:1px solid var(--hx-line)}
#horizon-sge-app .modal-header h2{color:var(--hx-ink)}
#horizon-sge-app .close-modal{border-radius:50%;background:var(--hx-tint);color:var(--hx-primary)}
#horizon-sge-app .modal-footer{border-top:1px solid var(--hx-line)}

/* ---------------- Aviso / toasts ---------------- */
#horizon-sge-app .toast{border-radius:16px;box-shadow:0 16px 36px rgba(0,74,153,.22)}

/* ---------------- Rolagem ---------------- */
#horizon-sge-app .main-content{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--hx-primary) 30%,transparent) transparent}
#horizon-sge-app .main-content::-webkit-scrollbar{width:8px}
#horizon-sge-app .main-content::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--hx-primary) 28%,transparent);border-radius:8px}

/* ---------------- Tela de login ---------------- */
#horizon-sge-app #landing-page{
  background:radial-gradient(900px 500px at 15% 10%,rgba(26,117,211,.30),transparent 60%),linear-gradient(135deg,var(--hx-deep) 0%,var(--hx-primary) 55%,color-mix(in srgb,var(--hx-primary) 80%,#1A75D3) 100%);
}
#horizon-sge-app #landing-page .login-card,
#horizon-sge-app #landing-page .login-section,
#horizon-sge-app #landing-page .login-box{border-radius:32px;box-shadow:0 40px 100px rgba(0,42,87,.4)}
#horizon-sge-app #landing-page :is(.login-btn,.btn-login,button[type=submit],.btn-sys-primary){
  background:var(--hx-primary);border-radius:16px;box-shadow:0 14px 28px color-mix(in srgb,var(--hx-primary) 40%,transparent)
}

/* ---------------- Modo escuro ---------------- */


@media (min-width:901px){
  
  
  
}
















/* ---------------- Mobile / tablet ---------------- */
@media (max-width:900px){
  #horizon-sge-app #system-container{margin:0;width:100%;height:100dvh;border-radius:0;background:var(--hx-bg)}
  #horizon-sge-app .sidebar{background:linear-gradient(180deg,var(--hx-primary),color-mix(in srgb,var(--hx-primary) 85%,#000));border-radius:0 28px 28px 0}
  #horizon-sge-app .main-content{background:var(--hx-bg);border-radius:0}
  #horizon-sge-app .top-header{gap:8px;background:var(--hx-bg)}
  #horizon-sge-app .top-header h1{font-size:18px}
  #horizon-sge-app .hx-pill.hx-clock{display:none}
  #horizon-sge-app .hx-pill.hx-search{min-width:0;width:46px;height:46px;padding:0;justify-content:center;font-size:0;gap:0}
  #horizon-sge-app .hx-pill.hx-search kbd,#horizon-sge-app .hx-pill.hx-search span{display:none}
  #horizon-sge-app .hx-pill.hx-search i{font-size:16px}
  #horizon-sge-app .hsg29-control-panel{padding:20px}
  #horizon-sge-app .hsg29-control-panel::after{opacity:.3;width:200px}
  #horizon-sge-app .hsg29-control-actions{max-width:none}
  #horizon-sge-app .stat-card .number{font-size:24px!important}
}
@media (max-width:1180px) and (min-width:901px){
  #horizon-sge-app .hx-pill.hx-clock{display:none}
  #horizon-sge-app .hx-pill.hx-search{min-width:200px}
}
@media (prefers-reduced-motion:reduce){
  #horizon-sge-app *{transition:none!important;animation:none!important}
}

/* ---------------- Correção: formulários não podem estourar a largura da janela ---------------- */
#horizon-sge-app :is(.form-grid,.hsg-form-grid)>*{min-width:0}
#horizon-sge-app .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#horizon-sge-app .form-group :is(input,select,textarea){width:100%;max-width:100%;min-width:0}
#horizon-sge-app .modal{overflow-x:hidden}

/* ---------------- Ajustes finos do modo escuro ---------------- */













#horizon-sge-app .hsg-int-error{border-radius:18px;border:0;background:var(--hx-pink);color:var(--hx-pink-ink)}
#horizon-sge-app .hsg-inteligencia-panel{background:transparent!important;border:0!important;box-shadow:none!important;padding:0}
#horizon-sge-app .table-header{background:transparent!important;border:0!important}


/* Tabelas largas rolam dentro do próprio cartão, sem empurrar a página */
#horizon-sge-app .view-section table{max-width:none}
#horizon-sge-app .view-section :is(.calendar-panel,.table-wrapper,.hsg17-table-wrap,.table-responsive){overflow-x:auto;max-width:100%}

/* Barras de ferramentas (calendário, IA) quebram linha no celular em vez de alargar a página */
#horizon-sge-app :is(.hsg19-toolbar,.hsg17-toolbar,.hsg15-toolbar){flex-wrap:wrap;max-width:100%;min-width:0}
#horizon-sge-app .hsg19-toolbar>*{min-width:0;max-width:100%}
@media (max-width:900px){
  #horizon-sge-app .hsg19-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:10px}
  #horizon-sge-app .hsg19-toolbar :is(input,select,button){width:100%}
  #horizon-sge-app #views-secretaria,#horizon-sge-app #views-escola,#horizon-sge-app #views-aluno{max-width:100%;overflow-x:hidden}
}
