:root {
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --border-radius: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --color-border: #ddd;
  --transition-fast: 0.15s ease;
}

/* Evita que objetos sejam maiors que a tela. */
textarea, input, select, label, table {max-width:100%;}

/* Em geral está confinado e pode preencher tudo */
textarea {width: 100%;}

/* O espaço padrão é muito grande (uso em vários lugares) */
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.94rem;
}

li {
  line-height: 1.2;
  margin-bottom: 6px;
}

.tabela-padrao {
  border-collapse: collapse;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width:100%;
}

.tabela-padrao thead {
  background-color: #bee5eb;
  text-align: center;
  /* cursor: pointer; */
}

.tabela-padrao thead tr,
.tabela-padrao thead tr th {
  border: 1px solid #85cfda;
}

.tabela-padrao td {
  padding: 1px 4px 1px 4px;
  border: 1px solid #ddd;
}

.tabela-padrao tbody tr {
  transition: background-color var(--transition-fast);
}

.tabela-padrao tbody tr:hover {
  background-color: #f0f8ff;
}

label {
  /* margin-top: .25rem; Não alterar, senão edições da problema */
  margin-bottom: .25rem;
}

/*
VAI QUE PRECISA
tbody tr:nth-child(even) {background-color: #f2f2f2;}
tbody tr:nth-child(odd) {background-color: #f9f9f9;} */

.apontavel {
  cursor: pointer;
}

.signature {
  width: 250px;
  border-bottom: 2px solid #000;
}

/* Para esconder e mostrar elementos */
.hidden {display: none;}
.visible {display: block;}

/* Para adaptar o conteúdo conforme tamanho da tela */
.texto-curto { display: none; white-space: nowrap; }
.texto-longo { display: initial; white-space: nowrap; }
@media (max-width: 800px) {
  .texto-curto { display: initial; }
  .texto-longo { display: none; }
}
@media (max-width: 480px) {
  .texto-curto { font-size: small; }
}

.texto-alinhado {
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: justify;
}

.linha-concisa {
  font-size: 0.85em;
  line-height: 1.15;
  margin-bottom: 0.3em;
}

.disabled {
  cursor: default;
  text-decoration: none;
  color: grey;
  opacity: 0.6;
}

.links-claros {color: lightblue;}
.links-claros a {color: lightblue;}

.boxed {
  border: 1px solid green ;
  margin: 10px;
  background-color: lightyellow;
  outline: 5px dashed blue;
  outline-offset: 5px;
}



#mensagem_aviso {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 4px solid #dc3545;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  padding: 12px 40px 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 18px;
  transition: opacity 0.3s ease;
}

#mensagem_aviso i {
  color: #dc3545;
  font-size: 1.3rem;
  flex-shrink: 0;
}



#mensagem_aviso .close-alert {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

#mensagem_aviso .close-alert:hover {
  opacity: 1;
  transform: scale(1.1);
}

#mensagem_aviso .close-alert:focus {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
  border-radius: 4px;
}

#mensagem_aviso .close-alert:active {
  transform: scale(0.95);
}

.striped-border {
  border: 2px dashed #000;
  width: 100%;
  margin: auto;
  margin-top: 2%;
  margin-bottom: 2%;
}

.tooltip-inner {
  max-width: 100% !important;
  text-align: left;
}

.tabulado {
  padding-left: 15px;
}

#canvas-holder {
  width:450px;
}

.unselectable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.lh-1 {
  display: inline-block;
  line-height: 1.0;
}

.logotipo {
  max-height: 128px;
  max-width: 128px;
  height: auto;
  width: auto;
  margin-bottom: 4px;
}

.logotipo_pequeno {
  max-height: 64px; 
  max-width: 64px;
  height: auto;
  width: auto;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: 6px;
}
.logo-org-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  max-width: 136px;
  width: 136px;
}
.logotipo_altura {
  max-width: 136px;
  min-width: 32px;
  width: auto;
  height: 78px;
  object-fit: contain;
  padding: 2px;
  margin-bottom: 4px;
  vertical-align: middle;
}

.flutua_dir {
  float: right;
  margin-left: 10px;
}

@media only screen and (max-width: 740px) {
  table, th, td {font-size: 14px;}
  h3 {font-size: 1.17em;}
  h4 {font-size: 1.12em;}
  textarea {font-size: 15px;}
}

@media only screen and (max-width: 480px) {
  #canvas-holder {width:100%;}
  h3 {font-size: 1.09em;}
  h4 {font-size: 1.05em;}
  label {font-size: 15px;}
  input {font-size: 15px;}
  textarea {font-size: 14px;}
} 

@media (max-width: 800px) {
  .container-fluid {padding-right: 8px;padding-left: 8px;}
}

@page {size: auto;}

.curso-chip {
  align-items: center;
  vertical-align: middle;
  white-space: nowrap;

  font-size: 0.8em;
  line-height: 1.0;
  padding-bottom: 2px;
  border-radius: 3px;

  color: #000000ff;
  /* fallback (no washout) */
  background-color: var(--chip-bg);
  background-color: color-mix(in oklch, var(--chip-bg) 15%, white 85%);
  
  filter: brightness(1.05);
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
  transition: box-shadow .15s ease, filter .15s ease, background-color .15s ease, border-color .15s ease;
}
.curso-chip:hover,
.curso-chip:focus {
  box-shadow: 0 1px 8px rgba(16,58,126,.18);
}

.quad_pfe {
  border: solid black 2px;
  border-radius: 8px;
  padding: 16px;
}