.pap-folgas-explica{
  margin-bottom:14px;
  padding:10px 12px;
  border-radius:10px;
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.pap-folga-linha{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}

.pap-folga-linha input{
  margin:0;
}

.pap-folga-linha button{
  flex:none;
}

.pap-folgas-acoes{
  margin-top:18px;
}

.pap-folga-btn{
  font-size:11px!important;
  font-weight:900!important;
}

.pap-folga-marca{
  margin-top:3px;
  padding:4px 6px;
  border-radius:7px;
  background:rgba(100,116,139,.22);
  border:1px solid rgba(148,163,184,.32);
  font-size:10px;
  line-height:1.2;
}

.pap-folga-marca strong{
  font-weight:900;
}

@media(max-width:700px){
  .pap-folga-linha{
    align-items:stretch;
  }
}


/* Folga diretamente no cadastro do novo PAPA */

.pap-novo-papa-folgas{
  padding:14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
}

.pap-novo-papa-folgas__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}

.pap-novo-papa-folgas__head small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}

#papNovoPapaFolgasLista{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}

.pap-novo-papa-folga-linha{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  align-items:center;
}

.pap-novo-papa-folga-linha input{
  width:100%;
}

@media(max-width:700px){
  .pap-novo-papa-folgas__head{
    align-items:stretch;
    flex-direction:column;
  }
}

/*
 * Novo Planejamento:
 * funcionalidade de folga mantida no codigo,
 * mas oculta visualmente neste formulario.
 */
.pap-novo-papa-folgas {
    display: none !important;
}

/* Gerenciamento de folgas órfãs */
.planning-admin-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.planning-admin-buttons button {
  width: auto;
}

.pap-orfas-alerta {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(255, 174, 0, .30);
  border-radius: 12px;
  background: rgba(255, 174, 0, .08);
  line-height: 1.45;
}

.pap-orfas-resumo {
  margin-bottom: 12px;
  font-weight: 700;
}

.pap-orfas-lista {
  display: grid;
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 3px;
}

.pap-orfa-card {
  padding: 14px;
  border: 1px solid var(--line, #36363d);
  border-radius: 14px;
  background: var(--card, #202025);
}

.pap-orfa-cabecalho {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pap-orfa-cabecalho p {
  margin: 4px 0 0;
}

.pap-orfa-todas {
  flex: 0 0 auto;
  padding: 7px 10px !important;
  font-size: 12px !important;
}

.pap-orfa-datas {
  display: grid;
  gap: 7px;
}

.pap-orfa-data {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
}

.pap-orfa-data button {
  width: auto;
  padding: 5px 9px !important;
  font-size: 12px !important;
}

.pap-orfa-vazio {
  padding: 24px 14px;
  text-align: center;
  border: 1px dashed var(--line, #36363d);
  border-radius: 14px;
}

.pap-orfa-vazio p {
  margin: 7px 0 0;
}

@media (max-width: 600px) {
  .planning-admin-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .planning-admin-buttons button {
    min-width: 0;
    padding: 8px 7px;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
  }

  .pap-orfa-cabecalho {
    align-items: center;
  }
}

