:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#162c3a;background:#f3f6fa}*{box-sizing:border-box}body{margin:0}a{color:#11658f;text-decoration:none}a:hover{text-decoration:underline}.shell{display:flex;min-height:100vh}.side{background:#12364d;color:#e7f5ff;width:235px;flex:none;padding:26px 16px;display:flex;flex-direction:column}.brand{font-size:1.1rem;font-weight:800;color:#fff;letter-spacing:.03em}.brand small{font-size:.7rem;display:block;opacity:.75;margin-top:5px}.side nav{margin-top:34px;display:grid;gap:5px}.side nav a{padding:12px 14px;border-radius:9px;color:#deebf4}.side nav a:hover{background:#234f69;text-decoration:none}.foot{font-size:.75rem;opacity:.6;margin-top:auto}.workspace{min-width:0;flex:1}header{height:70px;display:flex;align-items:center;justify-content:flex-end;gap:20px;padding:0 32px;background:white;border-bottom:1px solid #e2e8f0}main{max-width:1320px;padding:32px;margin:0 auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:23px;flex-wrap:wrap}h1{font-size:1.8rem;margin:0 0 6px}h2{font-size:1.04rem;margin:0}p{line-height:1.5}.heading p{margin:0;color:#63788b}.eyebrow{color:#198b98!important;font-size:.72rem;font-weight:800;letter-spacing:.15em;margin-bottom:5px!important}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.tile,.panel{background:#fff;border:1px solid #e2e8f0;border-radius:13px;box-shadow:0 4px 20px #1a354408}.tile{padding:23px}.tile span{color:#627587;font-size:.86rem}.tile b{display:block;font-size:2.1rem;margin-top:8px}.cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-top:20px}.panel{padding:23px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.9rem}th,td{text-align:left;padding:12px 9px;border-bottom:1px solid #ecf0f3}th{color:#718397;font-size:.79rem}td{vertical-align:top}.btn,button{cursor:pointer;border:1px solid #c7d5df;border-radius:8px;padding:9px 14px;background:#fff;color:#173e58;font:inherit}.btn{background:#13768c;border-color:#13768c;color:#fff;display:inline-block}.btn:hover{background:#0d5362;color:#fff;text-decoration:none}.link{border:0;background:transparent;padding:0}.late,.error{color:#b45309}.form-panel{max-width:700px}.form-row{margin:0 0 18px;display:grid;gap:6px}.form-row label{font-size:.9rem;font-weight:650}.field,.form-row input,.form-row select,.form-row textarea,.search input{width:100%;padding:11px;border:1px solid #b9c9d4;border-radius:8px;background:white;font:inherit}.form-row input[type=checkbox]{width:auto}.form-row input[type=date],.form-row input[type=time]{width:48%;margin-right:2%}.actions{display:flex;align-items:center;gap:15px}.notice{background:#ecfdf5;border:1px solid #86efac;padding:12px;margin-bottom:15px;border-radius:9px}.search{display:flex;gap:10px;margin-bottom:16px}.muted{color:#6e7f8b;font-size:.83rem;margin-top:20px}@media(max-width:920px){.stats{grid-template-columns:repeat(2,1fr)}.cols{grid-template-columns:1fr}}@media(max-width:650px){.shell{display:block}.side{width:100%;padding:16px}.side nav{margin-top:14px;display:flex;flex-wrap:wrap;gap:2px}.side nav a{padding:8px}.foot{display:none}main{padding:20px 12px}header{height:48px;padding:0 14px}.stats{grid-template-columns:repeat(2,1fr)}.tile{padding:15px}}


/* ===== TRANSLESSA MOBILE V1 ===== */

.tl-mobile-toggle,
.tl-mobile-overlay {
  display: none;
}

@media (max-width: 650px) {

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.tl-mobile-open {
    overflow: hidden;
  }

  .shell {
    display: block;
    min-height: 100dvh;
  }

  /* MENU DESLIZANTE */

  .side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(290px, 84vw);
    height: 100dvh;
    z-index: 1101;
    padding: 24px 16px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 12px 0 30px rgba(0,0,0,.12);
  }

  body.tl-mobile-open .side {
    transform: translateX(0);
  }

  .side nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    margin-top: 25px;
    gap: 5px;
  }

  .side nav a {
    display: block;
    padding: 13px 15px;
    font-size: 15px;
    min-height: 45px;
    line-height: 1.3;
  }

  .side .brand {
    display: block;
    margin-bottom: 12px;
  }

  .tl-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7,25,39,.55);
    z-index: 1100;
  }

  body.tl-mobile-open .tl-mobile-overlay {
    display: block;
  }

  /* CABECALHO */

  .workspace {
    width: 100%;
    min-width: 0;
  }

  .workspace > header {
    height: 60px;
    padding: 8px 15px;
    justify-content: space-between;
    gap: 10px;
  }

  .tl-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid #cbdce6;
    border-radius: 9px;
    background: #eef5f8;
    color: #12364d;
    font-weight: 700;
    font-size: 15px;
  }

  .workspace > header form {
    margin: 0;
  }

  .workspace > header .link {
    min-height: 40px;
    padding: 6px 8px;
  }

  /* AREA DE CONTEUDO */

  main {
    width: 100%;
    max-width: 100%;
    padding: 18px 12px 28px;
  }

  .heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
  }

  h1,
  .heading h1 {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }

  .tile {
    padding: 16px 12px;
    min-width: 0;
  }

  .tile b {
    font-size: 1.65rem;
    overflow-wrap: anywhere;
  }

  .cols {
    grid-template-columns: minmax(0,1fr);
    gap: 13px;
  }

  .panel {
    max-width: 100%;
    min-width: 0;
    padding: 16px 13px;
  }

  .panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  /* FORMULARIOS */

  .form-panel {
    width: 100%;
    max-width: 100%;
  }

  .form-row input,
  .form-row select,
  .form-row textarea,
  .search input {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
    padding: 12px;
  }

  .form-row input[type=date],
  .form-row input[type=time] {
    width: 100%;
    margin-right: 0;
  }

  .form-row input[type=checkbox] {
    width: auto;
    min-width: 18px;
  }

  .search,
  .actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .search > *,
  .actions > * {
    max-width: 100%;
  }

  .btn,
  button {
    min-height: 42px;
  }

  /* TABELAS */

  .scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .scroll table {
    min-width: 560px;
  }

  th, td {
    padding: 10px 9px;
  }

  /* LOGIN SEM NAVEGACAO */

  .tl-login-page .side,
  .tl-login-page .tl-mobile-toggle,
  .tl-login-page .tl-mobile-overlay {
    display: none !important;
  }

  .tl-login-page .workspace > header {
    justify-content: flex-end;
  }

  .tl-login-page main {
    padding-top: 20px;
  }

  .tl-login-page .form-panel {
    margin-inline: auto;
  }

}

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

@media (prefers-reduced-motion: reduce) {
  .side {
    transition: none !important;
  }
}

/* ===== FIM TRANSLESSA MOBILE V1 ===== */


/* TRANSLESSA LOGIN HEADER V1 */

.tl-login-identity {
  max-width: 700px;
  margin: 0 0 20px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(115deg,#12364d,#1c6079);
  color: white;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(18,54,77,.12);
}

.tl-login-identity-logo {
  flex: 0 0 175px;
  max-width: 175px;
  padding: 9px;
  background: white;
  border-radius: 10px;
}

.tl-login-identity-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85px;
  object-fit: contain;
}

.tl-login-identity-text {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tl-login-identity-text strong {
  font-size: 1.25rem;
  line-height: 1.25;
  color: white;
}

.tl-login-identity-text span {
  color: #d5ebf3;
  font-size: .9rem;
}

@media (max-width:650px) {
  .tl-login-identity {
    flex-direction: column;
    text-align: center;
    gap: 13px;
    margin-bottom: 16px;
    padding: 18px 15px;
  }

  .tl-login-identity-logo {
    flex: 0 1 auto;
    width: 175px;
    max-width: 75%;
  }

  .tl-login-identity-text strong {
    font-size: 1.1rem;
  }
}

/* FIM TRANSLESSA LOGIN HEADER V1 */


/* ===== TRANSLESSA LOGIN TOPBAR V3 ===== */

.workspace > header:has(.tl-login-topbar) {
  justify-content: space-between;
  gap: 18px;
}

.tl-login-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin-right: auto;
}

.tl-login-topbar img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.tl-login-topbar-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.2;
}

.tl-login-topbar-text strong {
  font-size: 1rem;
  color: #12364d;
}

.tl-login-topbar-text span {
  font-size: .79rem;
  color: #647b89;
}

@media (max-width:650px) {
  .workspace > header:has(.tl-login-topbar) {
    min-height: 75px;
    height: auto;
    padding: 10px 12px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .tl-login-topbar {
    width: 100%;
    gap: 10px;
    order: 1;
  }

  .tl-login-topbar img {
    height: 40px;
    max-width: 100px;
  }

  .tl-login-topbar-text strong {
    font-size: .87rem;
  }

  .tl-login-topbar-text span {
    font-size: .72rem;
  }

  .workspace > header:has(.tl-login-topbar) > span {
    margin-left: auto;
    order: 2;
  }
}

/* ===== FIM TRANSLESSA LOGIN TOPBAR V3 ===== */


/* ===== TRANSLESSA LOGIN LIMPO V1 ===== */

/* A classe tl-login-page ja e aplicada na tela de entrada. */

.tl-login-page .side,
.tl-login-page .tl-mobile-overlay,
.tl-login-page .tl-mobile-toggle {
  display: none !important;
}

.tl-login-page .workspace {
  width: 100%;
  min-width: 0;
}

.tl-login-page .workspace > header {
  width: 100%;
}

.tl-login-page main {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding: 32px 20px;
}

.tl-login-page .form-panel {
  width: 100%;
  max-width: 700px;
  margin-inline: auto;
}

.tl-login-page .tl-login-topbar {
  margin-right: auto;
}

@media (max-width:650px) {
  .tl-login-page main {
    padding: 18px 12px;
  }

  .tl-login-page .workspace > header {
    min-height: 66px;
    padding: 10px 12px;
  }

  .tl-login-page .tl-login-topbar {
    width: auto;
    flex: 1;
  }

  .tl-login-page .form-panel {
    margin-inline: auto;
  }
}

/* ===== FIM TRANSLESSA LOGIN LIMPO V1 ===== */


/* ===== TRANSLESSA LOGIN FUNDO V1 ===== */

/* Imagem limitada a pagina de login */

.tl-login-page .workspace {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
}

/* O fundo recebe transparencia; o formulario nao */

.tl-login-page .workspace::before {
  content: "";
  position: absolute;
  top: 70px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background-image:
    url("/static/crm/imagens/banner-login-fundo.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: .50;
  pointer-events: none;
}

.tl-login-page .workspace > header,
.tl-login-page .workspace > main {
  position: relative;
  z-index: 1;
}

/* Mantem o formulario legivel */

.tl-login-page .form-panel {
  background: rgba(255,255,255,.97);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(10,35,55,.16);
}

/* Ajustes para smartphones */

@media (max-width:650px) {
  .tl-login-page .workspace::before {
    top: 66px;
    background-position: center center;
    background-size: cover;
    opacity: .50;
  }

  .tl-login-page .form-panel {
    background: rgba(255,255,255,.98);
  }
}

/* ===== FIM TRANSLESSA LOGIN FUNDO V1 ===== */


/* ===== TRANSLESSA LOGIN CENTRALIZADO V1 ===== */

/* Ocupa a area disponivel abaixo do cabecalho */

.tl-login-page .workspace {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* Centraliza o conteudo nos dois eixos */

.tl-login-page .workspace > main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0 auto;
  padding: 28px 16px;
}

/* Define uma largura confortavel para o login */

.tl-login-page .form-panel {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 28px;
  box-sizing: border-box;
}

/* Mantem todos os campos dentro do quadro */

.tl-login-page .form-panel input,
.tl-login-page .form-panel select,
.tl-login-page .form-panel textarea {
  max-width: 100%;
  box-sizing: border-box;
}

/* Ajustes para o celular */

@media (max-width:650px) {
  .tl-login-page .workspace > main {
    padding: 20px 14px;
    justify-content: center;
  }

  .tl-login-page .form-panel {
    max-width: 420px;
    padding: 22px 18px;
    border-radius: 14px;
  }
}

/* ===== FIM TRANSLESSA LOGIN CENTRALIZADO V1 ===== */

 
/* TRANSLESSA IDENTIDADE VISUAL SITE V1 */

/* Logomarca oficial no menu lateral */
.side .brand .tl-logo-menu {
  display: block;
  width: 100%;
  max-width: 215px;
  height: 78px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 5px;
}

.side .brand {
  text-align: center;
}

.side .brand small {
  display: block;
  margin-top: 4px;
}

/* Logomarca no topo da tela de login */
.tl-login-page .tl-login-topbar img {
  width: 205px !important;
  max-width: 100%;
  height: 76px !important;
  object-fit: contain !important;
}

/* Tela de login com a imagem do site */
.tl-login-page .workspace {
  position: relative !important;
  min-height: 100dvh !important;
  isolation: isolate;
  background: #e9f1f7 !important;
}

/* Imagem de fundo com iluminacao suave */
.tl-login-page .workspace::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-image:
    linear-gradient(
      90deg,
      rgba(255,255,255,.39),
      rgba(255,255,255,.14)
    ),
    url("/static/crm/imagens/fundo-site-atual.png") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Manter cabecalho e formulario sobre a imagem */
.tl-login-page .workspace > header,
.tl-login-page .workspace > main {
  position: relative !important;
  z-index: 1 !important;
}

/* Centralizacao do formulario */
.tl-login-page .workspace > main {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: calc(100dvh - 115px) !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

/* Quadro de acesso com transparencia discreta */
.tl-login-page .form-panel {
  width: 100% !important;
  max-width: 430px !important;
  margin: 0 auto !important;
  background: rgba(255,255,255,.94) !important;
  border: 1px solid rgba(255,255,255,.85) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 50px rgba(15,40,65,.18) !important;
  backdrop-filter: blur(7px);
}

/* Ajuste para celulares */
@media (max-width: 700px) {
  .tl-login-page .workspace::before {
    background-position: 64% center !important;
  }

  .tl-login-page .workspace > main {
    min-height: calc(100dvh - 100px) !important;
    padding: 16px !important;
  }

  .tl-login-page .form-panel {
    max-width: 390px !important;
    padding: 22px !important;
  }

  .tl-login-page .tl-login-topbar img {
    width: 155px !important;
    height: 60px !important;
  }
}
