@charset "UTF-8";

/* =========================
   LEGADO (mantido)
   ========================= */
html, body {
  margin: 0;
  padding: 0;
  height: auto;
  width: 100%;
 background: #ffffff !important;
}





.city {
  float: left;
  margin: 1px;
  padding: 1px;
  max-width: 280px;
  border: 0px solid black;
  border-collapse: collapse;
}

.citotal {
  float: left;
  margin: 1px;
  padding: 1px;
  max-width: 100%;
  border: 0px solid black;
  border-collapse: collapse;
}

.tbProduto {
  float: left;
  margin: 1px;
  padding: 1px;
  max-width: 180px;
  border: 0px solid black;
  border-collapse: collapse;
}

/* sortable legado: deixa neutro pra não brigar com kp-table */
table.sortable thead {
  background-color: #eee;
  color: #666666;
  font-weight: bold;
  cursor: default;
}

/* =========================================================
   KiProcesso UI Kit (Design System + componentes)
   ========================================================= */

/* ---------- TOKENS (Design System) ---------- */


:root{
  --kp-bg: #ffffff;
  --kp-primary:#0d6efd;
  --kp-muted:#6c757d;
  --kp-border: rgba(15,23,42,.10);
  --kp-shadow: 0 8px 24px rgba(0,0,0,.06);
  --kp-radius: 16px;
}



.page-wrap{
  max-width: none;
  width: 100%;
  margin: 0;
  margin-top: 0 !important;
  padding-top: 8px; /* pequeno respiro */
}




.hero{
  border:0;
  border-radius: 22px;
  background:#fff; /* PADRÃO A */
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
  padding:16px;
}

.tiny{ font-size:.85rem; color: var(--kp-muted); }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }





.hero{ background:#fff !important; }

/* ---------- BASE ---------- */


body{
  background: var(--kp-bg);
  color: var(--kp-text);
}

*{
  -webkit-tap-highlight-color: transparent;
}

a{
  text-decoration: none;
}

/* ---------- WRAPPER PADRÃO ---------- */
.page-wrap{
  max-width: none;     /* antes era var(--kp-wrap-max) */
  width: 100%;
  margin: 0;
  padding: clamp(12px, 1.5vw, 20px); /* responsivo sem ficar “gordo” */
}

/* âncora pra botão topo */
#topAnchor{
  scroll-margin-top: 12px;
}

/* ---------- CABEÇALHO DE PÁGINA ---------- */
.title-line{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--kp-gap);
  flex-wrap: wrap;
}

.subtitle{
  color: var(--kp-muted);
  font-size: .95rem;
}

.tiny{
  font-size: var(--kp-tiny);
  color: var(--kp-muted);
}

/* ---------- CARDS ---------- */
.card-soft{
  border:0;
  border-radius: var(--kp-radius);
  background:#fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
  overflow: hidden;
}


 .thead-kp th{
      position: sticky;
      top: 0;
      z-index: 2;
      background:#0d6efd;
      color:#fff;
    }


/* ---------- TIPOGRAFIA UTILITÁRIA ---------- */
.loja-cell{
  font-weight: 650;
}

.value-cell{
  font-variant-numeric: tabular-nums;
}

.muted-unit{
  color: var(--kp-muted);
  font-size: .9rem;
  margin-left: 6px;
}

/* ---------- TABELAS (Ranking/Consulta) ---------- */
.kp-table thead th,
.table.kp-table thead th{
  position: sticky;
  top: 0;
  background: var(--kp-table-head-bg);
  color: var(--kp-table-head-text);
  z-index: 2;
}

.kp-table tbody tr:hover{
  background: rgba(13,110,253,.045);
}

.kp-table td, .kp-table th{
  vertical-align: middle;
}

.kp-table td{
  padding-top: .85rem;
  padding-bottom: .85rem;
}

/* ---------- INPUTS / FOCUS ---------- */
.form-control:focus,
.form-select:focus,
.btn:focus{
  box-shadow: 0 0 0 .25rem var(--kp-focus);
}

.input-group .input-group-text{
  background: #fff;
}

.input-group .form-control{
  background: #fff;
}

/* ---------- BADGES / PILLS ---------- */
.rank-pill{
  min-width: 56px;
}

/* ---------- ÍCONES DE GAMIFICAÇÃO ---------- */
.icon-lg{
  font-size: 1.2rem;
  line-height: 1;
}

.top1-row{
  background: rgba(255,193,7,.12) !important;
}

@keyframes kp-pop{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.08); }
  100%{ transform: scale(1); }
}
.trophy-pop{
  animation: kp-pop 1.1s ease-in-out infinite;
}

/* ---------- BOTÃO FLUTUANTE "TOPO" ---------- */
.fab-top{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  display: none;
  font-weight: 600;
}

/* ---------- CARD DE FILTROS ---------- */
.filters-title{
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- MICRO AJUSTES MOBILE ---------- */
@media (max-width: 576px){
  .page-wrap{
    padding: 12px;
  }
  .subtitle{
    font-size: .9rem;
  }
  .kp-table td{
    padding-top: .75rem;
    padding-bottom: .75rem;
  }
  .fab-top{
    right: 10px;
    bottom: 10px;
    padding: 10px 12px;
  }
}

/* ---------- ACESSIBILIDADE ---------- */
@media (prefers-reduced-motion: reduce){
  .trophy-pop{
    animation: none !important;
  }
}

/* ---------- UTILITÁRIOS OPCIONAIS ---------- */
.kp-divider{
  border-top: 1px solid rgba(15,23,42,.08);
}

.kp-soft{
  background: rgba(13,110,253,.05);
}

.kp-muted{
  color: var(--kp-muted) !important;
}

.empresa-chip{
  border-radius: 999px;
  line-height: 1;
  min-height: 38px;
  font-size: .92rem;
}

.empresa-chip i{
  font-size: 1rem;
}


.wrap{
  width: 100%;
  max-width: none;
  margin: 14px 0 60px 0;
  padding: 0 clamp(12px, 1.5vw, 20px);
}

.pageTitle{
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  padding: 14px 16px; background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pageTitle h1{
  margin:0;
  font: 800 16px/1.2 Arial, sans-serif;
  letter-spacing:.3px;
  color: var(--primary);
  text-transform: uppercase;
}

.sub{
  margin-top:6px;
  font: 12px Arial;
  color: var(--muted);
}

.actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }

.btnx{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 9px 12px;
  border-radius: 10px;
  border:1px solid var(--border);
  background:#fff;
  color:#111;
  text-decoration:none;
  font: 700 12px Arial;
  transition:.15s;
  white-space:nowrap;
  cursor:pointer;
}

.btnx:hover{ transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16,24,40,.10); }
.btnx.primary{ background: var(--primary); color:#fff; border-color: var(--primary); }
.btnx.danger{ background:#d92d20; color:#fff; border-color:#d92d20; }
.btnx.warn{ background:#f79009; color:#111; border-color:#f79009; }
.btnx.secondary{ background:#2f3b45; color:#fff; border-color:#2f3b45; }
.btnx.success{ background:#12b76a; color:#fff; border-color:#12b76a; }

.msg{
  margin-top:10px;
  padding:10px 14px;
  border-radius: 12px;
  border:1px solid #ffd6d6;
  background:#fff5f5;
  color:#b42318;
  font: 12px Arial;
}
.msg:empty{ display:none; }

.card{
  margin-top: 12px;
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.grid{
  display:grid;
  grid-template-columns: 1.3fr .7fr .6fr;
  gap: 12px;
  align-items:end;
}

.row2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font:700 11px Arial; color: var(--muted); }
.field input[type="text"],
.field input[type="number"],
.field input[type="date"],
.field select{
  padding: 9px 10px;
  border-radius: 10px;
  border:1px solid var(--border);
  background:#fff;
  font: 12px Arial;
  width:100%;
  box-sizing:border-box;
  height: 38px;
}

.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.pill{
  display:inline-flex; gap:8px; align-items:center;
  padding: 8px 10px;
  border:1px solid var(--border);
  border-radius: 999px;
  background:#fff;
  font: 700 12px Arial;
  color:#111;
  user-select:none;
}
.pill input{ margin:0; }

.hint{
  margin-top: 8px;
  font: 11px Arial;
  color: var(--muted);
}

@media (max-width: 860px){
  .pageTitle{ flex-direction:column; align-items:flex-start; }
  .actions{ justify-content:flex-start; }
  .grid{ grid-template-columns: 1fr; }
  .row2{ grid-template-columns: 1fr; }
  .toolbar{ justify-content:flex-start; }
}

/* =========================================================
   Menu/Offcanvas (mantido)
   ========================================================= */
.kp-navbar{
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(246,247,251,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e9ecef;
}
.kp-brand{
  font-weight: 900;
  letter-spacing: .2px;
}
.kp-pill{
  border:1px solid #e9ecef;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
  display:inline-flex;
  gap:8px;
  align-items:center;
}
.kp-pill:hover{ background:#f8f9fa; }
.kp-active{
  border-color: rgba(13,110,253,.35);
  background: rgba(13,110,253,.08);
  color:#0d6efd !important;
}
.kp-offcanvas{
  border-left: 1px solid #e9ecef;
}
.kp-group-title{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .6px;
  color:#6c757d;
  text-transform: uppercase;
  margin: 14px 0 8px;
}
.kp-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  color:#111827;
  border:1px solid transparent;
  background: #ffffff;
}
.kp-link:hover{
  background:#f8f9fa;
  border-color:#e9ecef;
}
.kp-link.kp-active-link{
  border-color: rgba(13,110,253,.35);
  background: rgba(13,110,253,.08);
  color:#0d6efd;
  font-weight: 800;
}
.kp-accordion .accordion-button{
  padding: 10px 12px;
  border-radius: 12px !important;
  font-weight: 800;
  background:#fff;
  box-shadow:none;
}
.kp-accordion .accordion-item{
  border: 1px solid #e9ecef;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  background:#fff;
}
.kp-accordion .accordion-body{
  background:#fbfbfd;
  border-top: 1px solid #eef0f4;
  padding: 10px;
}

.page-wrap--fluid{
  max-width: none !important;
  width: 100%;
  margin: 0;
  padding: clamp(12px, 1.5vw, 20px);
}

.wrap--fluid{
  width: 100%;
  max-width: none;
  margin: 14px 0 60px 0;
  padding: 0 clamp(12px, 1.5vw, 20px);
}

/* FAB +Nova (padrão do sistema, semelhante ao Topo) */
.fab-nova-wrap{
  position: fixed;
  right: 14px;
  bottom: 64px;       /* fica acima do botão Topo */
  z-index: 9999;
}

/* pega o botão que o AbreModalComHistorico gerar dentro do wrapper */
.fab-nova-wrap button,
.fab-nova-wrap a{
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.18) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Se o método gerar botão "link", força cara de ação primária */
.fab-nova-wrap .btn-link{
  background: #0d6efd !important;
  color: #fff !important;
  border: 1px solid rgba(13,110,253,.25) !important;
}
.fab-nova-wrap .btn-link:hover{
  background: #0b5ed7 !important;
}

/* Mobile: afasta mais do rodapé */
@media (max-width: 576px){
  .fab-nova-wrap{ right: 10px; bottom: 72px; }
}
/* =========================================================
   KiProcesso - Login (padrão)
   ========================================================= */
.kp-login-body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  background: var(--kp-bg, #f6f7fb);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}




 




.kp-login-card{
  width: 100%;
  max-width: 420px;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-top: 0 !important;
  border-radius: 16px;
  background: transparent !important;
  box-shadow: none !important;
  
}


.kp-login-logo{
  display:block;
  margin: 4px auto 14px auto;
}

.kp-login-form{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kp-login-label{
  margin-bottom: 4px;
  font-weight: 600;
  color: #212529;
}

.kp-login-input{
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}

.kp-login-input:focus{
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 .22rem rgba(13,110,253,.18);
}

.kp-login-btn{
  margin-top: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: #0d6efd;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.kp-login-btn:hover{ background: #0b5ed7; }

.kp-login-links{
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: .92rem;
  color: #6c757d;
}

.kp-login-links a{
  color: #0d6efd;
  font-weight: 700;
  text-decoration: none;
}

.kp-login-links a:hover{ text-decoration: underline; }

.kp-login-error{
  margin-top: 12px;
  color: #b00020;
  font-size: .92rem;
}

/* Mobile: evita “zoom” e melhora toque */
@media (max-width: 576px){
  .kp-login-card{ padding: 18px; }
  .kp-login-input{ font-size: 16px; } /* iOS: evita zoom ao focar */
}

.form-label{
  margin-bottom: .15rem; /* antes era maior */
}

