/* calculadora_de_royalties/calculadora_de_royalties_style.css */
.calculadora-wrapper {
  /*background-image: linear-gradient(180deg, #00445d 0%, #003d4d 100%);*/

     /* padding: 15px 15px 5px 15px;*/
    /*border-radius: 20px;*/
    color: #fff;
    margin: 10px auto;
    max-width: 480px;
    width: 95%;
  box-sizing: border-box;
  font-family: sans-serif;
}
.calculadora-wrapper h2 {
  text-align: center;
  margin-bottom: 16px;
  font-size: 17px;
}

#cdr-platforms-table, #cdr-participation-table-container {
    font-size:10px;
    background:#00445d;
    border-radius: 15px;
}

.cdr-table-wrap #cdr-participation-table-container tbody {
    line-height: 20px;
    font-size:10px;
}

/* --------------------------------------------------------------------------------- */
/* Arredondar cantos externos das tabelas de royalties                              */
/* --------------------------------------------------------------------------------- */

/* Aplica a redondeza e garante overflow hidden */
#cdr-platforms-table,
#cdr-participation-table-container table {
    font-size:10px;
  border-collapse: separate; /* permite border-radius funcionar */
  border-spacing: 0;         /* remove espaçamento */
  border-radius: 15px;       /* raio geral */
  overflow: hidden;          /* esconde cantos dos cells */
}

/* Canto superior esquerdo */
#cdr-platforms-table thead th:first-child,
#cdr-participation-table-container table thead th:first-child {
  border-top-left-radius: 15px;
}

/* Canto superior direito */
#cdr-platforms-table thead th:last-child,
#cdr-participation-table-container table thead th:last-child {
  border-top-right-radius: 15px;
}

/* Canto inferior esquerdo */
#cdr-platforms-table tfoot th:first-child,
#cdr-participation-table-container table tfoot th:first-child {
  border-bottom-left-radius: 15px;
}

/* Canto inferior direito */
#cdr-platforms-table tfoot th:last-child,
#cdr-participation-table-container table tfoot th:last-child {
  border-bottom-right-radius: 15px;
}


.cdr-field-group {
  display: flex;
  gap: 10px;
  /*margin-bottom: 16px;*/
  flex-wrap: wrap;
}
.cdr-field-group label {
  flex: 1 1 100%;
  font-size: 13px;
  text-align: center;
}
.cdr-field-group input {
  flex: 1 1 100%;
  padding: 8px;
  border-radius: 15px;
  font-size: 1rem;
  text-align: center;
}

.cdr-play-input {
    border-radius:20px;
    text-align: center;
    padding: 5px;
}

.cdr-field-group button {
  background-color: #00222b;
  border: 1px solid #00667e;
  color: #fff;
  border-radius: 15px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1rem;
}

.cdr-total-clear {width: 100%;}

.cdr-field-group button:hover {
  color: #fff;
  background-color: #00445d;
  border: 1px solid #00ccff;
}

/* Tabelas */
.cdr-table-wrap {
  overflow-x: auto;
  margin: 20px auto;
  
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-size:9px;
}
thead {
  background: rgba(0,0,0,0.2);
}
th:first-child, td:first-child {
    text-align: left;
  width: 25%;
      min-width: 87px;
}
th:nth-child(2), td:nth-child(2) {
  width: 25%;
  max-width: 90px;
}
th:nth-child(3), td:nth-child(3),
th:nth-child(4), td:nth-child(4) {
  width: 25%;
}

/* Input total plays sum (disabled) */
#cdr-total-plays-sum {
  flex: 1 1 120px;
  padding: 5px;
  border-radius: 20px;
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 10px;
  text-align: center;
}
.cdr-table-wrap input[disabled] {
  cursor: default;
}

/* Responsividade extra */
/*@media (max-width: 500px) {
  .cdr-field-group input,
  .cdr-field-group button {
    flex: 1 1 100%;
  }
}
*/




/* ------------------------------------------------------------ */
/* Distribuidora: rádios em linha e estilo mínimo               */
/* ------------------------------------------------------------ */
.cdr-distributor-options {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  /*gap: 8px;*/
  width: 100%;
  /*margin-bottom: 8px;*/
}
.cdr-distributor-options label {
    display: flex;
    flex-direction: column;
  font-size: 10px;
  cursor: pointer;
  padding-right:0px;
}
.cdr-distributor-options input[type="radio"] {
  width: auto !important;
  height: auto !important;
  font-size: 10px !important;
  /*margin-right: 4px;*/
}

/* Garante que o input acompanhe o font-size e padding */
#cdr-distributor {
  flex: 1 1 100%;
  padding: 6px;
  font-size: 1rem;
  border-radius: 15px;
  text-align: center;
  color: #fff;/*
  background-color: rgba(255,255,255,0.1);
  border: none;*/
}


/* ------------------------------------------------------------ */
/* Tooltip puro CSS                                             */
/* ------------------------------------------------------------ */
.tooltip-icon {
    color:#999;
  display: inline-block;
  position: relative;
  line-height: 1;
  cursor: help;
  /*margin-left: 1px;*/
  font-size: 10px;
}

.tooltip-icon .tooltip-content {
  visibility: hidden;
  opacity: 0;
  width: 150px;
  background: #003d4d;
  box-shadow: 0 0 4px 0 #000;
  color: #fff;
  text-align: left;
  padding: 6px;
  border-radius: 6px;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.2s ease-in-out;
  font-size: 0.8em;
  z-index: 10;
  pointer-events: auto;
}

.tooltip-icon .tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0,0,0,0.8) transparent transparent transparent;
}

.tooltip-icon:hover .tooltip-content,
.tooltip-icon:focus .tooltip-content {
  visibility: visible;
  opacity: 1;
}

/* Animação suave de fade nos valores */
.min,
.max,
.cdr-platforms-total-min,
.cdr-platforms-total-max {
  transition: opacity 0.3s ease-in-out;
}

.fade {
  opacity: 0.2; /* valor baixo durante o fade */
}
