/* ========================== CONFIGURAÇÕES GERAIS ========================== */
@font-face {
    font-family: 'Open Sans';
    src: url('/static/font/OpenSans-Light.woff2') format('woff2');
    font-weight: 300;
}
@font-face {
    font-family: 'Open Sans';
    src: url('/static/font/OpenSans-Regular.woff2') format('woff2');
    font-weight: 400;
}
@font-face {
    font-family: 'Open Sans';
    src: url('/static/font/OpenSans-Medium.woff2') format('woff2');
    font-weight: 500;
}
@font-face {
    font-family: 'Open Sans';
    src: url('/static/font/OpenSans-Bold.woff2') format('woff2');
    font-weight: 700;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
    padding: 0;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #E5E7EB;
    color: #333333;
}


/* ========================================================================= */
/* =========================== CABEÇALHO ======== ========================== */
/* ========================================================================= */
/* ====== Cabeçalho padrão (mantém o que você já tinha) ====== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #7B2C3A; /* bordô */
  color: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 2100;
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* tudo à esquerda */
  gap: 10px;  
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
}

.brand-logo { 
    width: 200px; 
    height: 40px; 
    object-fit: contain; 
}

.brand-name { font-weight: 700; letter-spacing: .2px; }

.menu { 
    display: flex; 
    align-items: center; 
    gap: 18px; 
    margin-left: auto;
}

.menu-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 6px;
    border-radius: 6px;
    opacity: .95;
}
.menu-link:hover { background-color: rgba(255,255,255,0.12); }

.menu-cta {
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background-color: #F97316;   /* laranja */
    border: 1px solid #F97316;
}
.menu-cta:hover { filter: brightness(1.08); }

/* ====== Botão hambúrguer ====== */
.menu-toggle {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #ffffff;
    padding: 0;
    margin-right: 8px;
    cursor: pointer;
}
.menu-burger,
.menu-burger::before,
.menu-burger::after {
    content: "";
    display: block;
    width: 22px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform .18s ease, opacity .18s ease;
}
.menu-burger::before { transform: translateY(-6px); }
.menu-burger::after  { transform: translateY(3px); }

/* Estado “X” quando abrir */
.drawer-open .menu-burger { transform: rotate(45deg); }
.drawer-open .menu-burger::before { opacity: 0; }
.drawer-open .menu-burger::after  { transform: rotate(-90deg); }

/* ====== Drawer ====== */
.drawer {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    inset: 0;
    background-color: rgba(2,6,23,0.68);
    display: none;
    z-index: 2200;
}

.drawer.is-open { display: block; }

.drawer-panel{
  position:absolute;
  left: 12px;
  top: 12px;              /* distância do topo do overlay */
  width: clamp(520px, 56vw, 720px);
  max-height: min(78vh, calc(100% - 24px)); /* limite de altura */
  border-radius: 14px;
  overflow: hidden;       /* esconde cantos arredondados quando rolar */
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  background:#1f2937;
  border: 1px solid rgba(148,163,184,.18);

  display:flex;
  flex-direction:column;
  transform: translateX(-100%);
  transition: transform .22s ease;
}
.drawer.is-open .drawer-panel { transform: translateX(0); }






/* ====== Grid de apps (ícones) ====== */
.app-grid-menu{
  list-style:none;
  margin:0;
  padding: 10px 4px 6px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;

  overflow:auto;                  /* rola aqui */
  flex:1 1 auto;
}

.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background-color: #ffffff;
  border: 1px solid rgba(156,163,175,0.45);
  border-radius: 12px;
  padding: 16px 10px;
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
}
.app-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}
.app-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-block;
}


.drawer-body{
  display:flex;
  flex-direction:column;
  padding: 4px 12px 12px;
  gap: 10px;
  min-height: 0;   /* permite o filho rolar */
  flex: 1 1 auto;
}


/* Cores dos ícones (simples e na sua paleta) */
.app-cep { background: linear-gradient(135deg, #F97316, #FDBA74); }
.app-ddd { background: linear-gradient(135deg, #7B2C3A, #b05764); }
.app-doc { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.app-calc { background: linear-gradient(135deg, #22c55e, #86efac); }
.app-fipe { background: linear-gradient(135deg, #8b5cf6, #c4b5fd); }
.app-dev { background: linear-gradient(135deg, #111827, #374151); }
.app-qr  { background: linear-gradient(135deg, #475569, #94a3b8); }
.app-wa  { background: linear-gradient(135deg, #16a34a, #4ade80); }

.app-txt {
  font-size: 13px;
  text-align: center;
  color: #0f172a;
}


.drawer-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
  background:#111827;
  color:#e5e7eb;
  border:1px solid rgba(148,163,184,.25);
  font-size:14px;
}

body.drawer-open{ 
    overflow:hidden; 
}

/* ====== Responsivo ====== */
@media (max-width: 640px) {
  .menu { gap: 12px; }
  .menu-link { display: none; } /* deixa só CTA no mobile */
}

/* Acessibilidade: foco */
.drawer a:focus-visible,
.drawer button:focus-visible,
.menu-toggle:focus-visible,
.menu-cta:focus-visible,
.menu-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.35);
  border-radius: 8px;
}

@media (max-width: 640px){
  .app-grid-menu{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}



/* remove qualquer sobra de regra antiga que empurrava o painel até o fim */
.drawer-panel{ height:auto; }




/* ========================================================================= */
/* BOTÕES */
/* ========================================================================= */
.Cl_BotoesApoio{ 
    display:flex;
    gap:10px;
    text-align: right;
    margin:10px 40px 10px auto;
    justify-content:flex-end;
}




.Cl_botaoFiltro, .Cl_BtnIncluir, .Cl_BtnSalvar{
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.Cl_botaoFiltro:hover, .Cl_BtnIncluir:hover, .Cl_BtnSalvar:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.Cl_botaoIncluir {
    margin-bottom: 10px;
}


/* Excluir (vermelho) */
.Cl_BtnExcluir {
    background-color: #E53935;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.Cl_BtnExcluir:hover {
    background-color: #C62828;
    transform: scale(1.05);
}

/* Cancelar (cinza claro neutro) */
.Cl_BtnCancelar {
    background-color: #ccc;
    color: #333333;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.Cl_BtnCancelar:hover {
    background-color: #bbb;
    transform: scale(1.05);
}





/* ========================================================================= */
/* ========================== ICONES (Lucide / SVG) =================== */
/* ========================================================================= */
/* Ícone isolado */
.icon-tech{
    background-color:transparent !important;
    color:#007bff;
    width:20px;
    height:20px;
    cursor:pointer;
    transition:color .2s ease;
    vertical-align:middle;
    gap:10px;
}
.icon-tech:hover{
    color:#0056b3;
}

.btn-icon {
    background: none !important;
    border: none !important;
    padding: 3px;
    margin: 0 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;


}

.btn-icon:hover {
    background: rgba(133, 195, 0, 0.1);
}

.btn-icon .icon-tech {
    width: 12px;
    height: 12px;
    pointer-events: none;
}

.Cl_BtnAcao {
    background-color: transparent !important;
    border: none !important;
    background: none !important;
}





/* tira o quadrado colorido antigo */
.app-ico{ 
  width:auto; height:auto; border-radius:0; 
  display:inline-flex; align-items:center; justify-content:center;
}
.icon-tech{ width:28px; height:28px; stroke-width:1.8; }



/* ========================================================================= */
/* ========================== MODAL DE APOIO =============================== */
/* ========================================================================= */
#modalApoio {
    display: none;
}

#modalApoio.aberto {
    display: block;
    z-index: 9999;
}




/* ========================================================================= */
/* ========================== PAGINAÇÃO ==================================== */
/* ========================================================================= */
.Cl_Paginacao {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  margin-right: 4px;
}

.Cl_direcao {
  background-color: transparent;
  color: #007bff;
  border: 1px solid #007bff;
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .15s, border-color .2s;
}

.Cl_direcao:hover:not(:disabled) {
  background-color: #007bff;
  color: #ffffff;
  transform: translateY(-1px);
}

.Cl_direcao:disabled {
  color: #bbb;
  border-color: #bbb;
  cursor: not-allowed;
  opacity: .65;
}

.Cl_Paginacao span {
  font-weight: 600;
  color: #333333;
  font-size: 14px;
}








/* ========================================================================= */
/* ===================== COMBOBOX (Cl_SelectLike) ========================== */
/* ========================================================================= */
.Cl_SelectLike {
    position: relative;
    display: inline-block;
    width: 100%;
}

.Cl_SelectDisplay {
    width: 100%;
    padding: 8px 32px 8px 12px;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    font-size: 14px;
    background-color: #FFFFFF;
    color: #333333;
    cursor: pointer;
    box-sizing: border-box;
}

.Cl_Caret {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #333333;
}

.Cl_ComboPanel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.08);
    z-index: 2000;
    box-sizing: border-box;
}

.Cl_ComboPanel.is-floating {
    position: fixed;
    inset: auto;
    min-width: auto !important;
    width: auto;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 2147483000;
    box-sizing: border-box;
}

.Cl_ComboPanel[aria-hidden="true"]  { display: none; }
.Cl_ComboPanel[aria-hidden="false"] { display: block; }

.Cl_ComboSearch {
    padding: 8px;
    border-bottom: 1px solid #EEEEEE;
    position: sticky;
    top: 0;
    background: #FFFFFF;
    z-index: 1;
}

.Cl_ComboSearchInput {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
}

.Cl_ComboStatus {
    padding: 6px 10px;
    font-size: 12px;
    color: #666666;
}

.Cl_ComboLista {
    display: grid;
    gap: 4px;
    padding: 8px;
}

.Cl_Item,
.Cl_ComboItem {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    grid-auto-rows: min-content;
    gap: 2px;
    transition: background-color 0.15s, box-shadow 0.15s;
    line-height: 1.25;
    color: #333333;
}

.Cl_Item:hover,
.Cl_ComboItem:hover,
.Cl_Item.Cl_sel,
.Cl_ComboItem[aria-selected="true"] {
    background: #F4FBEA;
    box-shadow: inset 0 0 0 1px #85C300;
}

.Cl_Item__linha,
.Cl_ComboItem__linha {
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Cl_Item__linha--1,
.Cl_ComboItem__linha--1 {
    font-weight: 700;
}

.Cl_Item__rotulo,
.Cl_ComboItem__rotulo {
    font-weight: 700;
    margin-right: 4px;
}

.Cl_Item mark,
.Cl_ComboItem mark,
.Cl_Match mark {
    background: #FFF3BF;
    padding: 0 2px;
    border-radius: 3px;
}

.Cl_SelectDisplay:focus,
.Cl_Caret:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(133,195,0,.35);
    border-color: #85C300;
}

#combo_conta {
    width: 420px;
}







/* ========================================================================= */
/* ============= PROVISORIO PRA ESCONDER A AREA DO CLIENTE ================= */ 
#btnCliente,
#btnCliente.menu-cta,
#btnCliente.menu-cta:hover {
  display: none !important;
}

