/* =============================================================================
   InvoicePlane
   Custom Stylesheet

   All changes made in this file will override the default styles.
   ========================================================================== */

/* Tabella applicativa condivisa allineata a mensilita dettaglio. */
.cw-unified-table {
  font-size: 0.82rem;
}

.cw-unified-table > thead > tr > th,
.cw-unified-table > tfoot > tr > th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cw-unified-table > :not(caption) > * > * {
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  vertical-align: middle;
}

/* Menu Table: Distribute columns proportionally */
#menu-page-table th,
#menu-page-table td {
  width: 1%;
  font-size: 0.82rem;
  white-space: nowrap;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

#menu-page-table th:last-child,
#menu-page-table td:last-child {
  width: auto;
}

/* Riga rapportino settimanale (singola, multi-valore per cella) */
#menu-page-table tr.cw-sett-week > td {
  background-color: #eef2fb !important;
  border-top: 2px solid #c0ccee !important;
  border-bottom: 2px solid #c0ccee !important;
  vertical-align: top !important;
}

#menu-page-table tr.cw-sett-week .cw-sett-cd {
  line-height: 1.9;
  white-space: nowrap;
}

#menu-page-table tr.cw-sett-week .cw-sett-ct {
  border-top: 1px solid #c0ccee;
  margin-top: 2px;
  padding-top: 2px;
  font-weight: 600;
  line-height: 1.9;
}

/* TomSelect dropdown — stile globale coerente con il tema */
.ts-dropdown.single,
.ts-dropdown {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  backdrop-filter: none;
  z-index: 1055;
}

.ts-dropdown .option,
.ts-dropdown .create {
  background: #ffffff;
  color: #111827;
}

.ts-dropdown .active,
.ts-dropdown .option:hover {
  background: #f3f4f6;
  color: #111827;
}
