/* -------------------------------------------------------------------------- */
/*                                Falcon Button                               */
/* -------------------------------------------------------------------------- */
/* prettier-ignore */

/* THEME */

:root,
[data-bs-theme="light"] {
  --falcon-tertiary-bg: #dce6fa;
  --falcon-tertiary-bg-rgb: 220, 230, 250;
}

/* NAV */

.navbar-vertical .toggle-icon-wrapper {
  margin-right: 0.5rem;
}

.navbar-brand.client-name {
  color: cornflowerblue;
}

.navbar-brand-container {
  min-height: var(--falcon-top-nav-height);
}

/* FORM */

/* COMMON */

.minimize,
th[data-col-key="actions"],
td[data-col-key="actions"] {
  width: 1px;
  white-space: nowrap;
}

.status {
  width: 24px;
  height: 24px;
  display: inline-block;
  border-radius: 5px;
  border: 1px solid #bbb;
  vertical-align: middle;
}

.form-actions {
  display: flex;
  gap: 10px;
}

/* CARD */

.card-header {
  font-weight: 600;

  /* Imposto stile .bg-body-tertiary di default */
  --falcon-bg-opacity: 1;
  background-color: rgba(
    var(--falcon-tertiary-bg-rgb),
    var(--falcon-bg-opacity)
  ) !important;
}

.card .card .card-header {
  background-color: rgba(235, 240, 255, 1) !important;
}

/* TODO: Da testare */
.tabs a span.status {
  height: 16px;
  width: 16px;
  margin-right: 10px;
}

/* TABLES */

table.sortable tbody tr {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

table.sortable tbody tr.dragging {
  opacity: 0.5;
  /*transform: scale(0.9995);*/
  transform: scale(1.01);
}

/* TABLE TOOLS TODO: Da sistemare */

/* Barra strumenti tabellare (tipo tab) */
.tableTools {
  margin: 8px 0 6px;
}

.tableTools .tools-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.tableTools .tools-buttons .button {
  border: 1px solid #cbd5e1;
  /*background: #f3f4f6;*/
  background: #ffffff;
  color: #334155;
  border-radius: 8px;
  padding: 6px 10px;
}

.tableTools .tools-buttons .button img {
  vertical-align: middle;
  height: 20px;
}

.tableTools .tools-buttons .button:focus {
  outline: none;
  box-shadow: none;
}

/* active evidenzia pannello attualmente aperto visivamente */
.tableTools .tools-buttons .button.active {
  border-bottom: none;
  color: #1f2937;
  position: relative;
  z-index: 2;
}

/* trigger evidenza pannello su cui è attivo un filtro */
.tableTools .tools-buttons .button.trigger,
.tableTools .tools-panel.trigger {
  background-color: #cdf;
  border-color: #9bb5ff;
}

.tableTools .tools-panel {
  border: 1px solid #cbd5e1;
  border-radius: 8px 0 8px 8px;
  background: #ffffff;
  padding: 10px;
  margin-top: -1px;
  /* Unisce otticamente ai bottoni */
}

.tableTools .tools-buttons.open .button {
  border-radius: 8px 8px 0 0;
}

.tools-panel .columns-row {
  font-size: 14px;
}
.tools-panel .columns-row label {
  vertical-align: sub;
  margin-bottom: 2px;
}

/* DOCUMENTS */

.document-status-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 20px;
}

.document-status-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 200px) 180px;
  gap: 12px;
  align-items: center;
}

.document-status-name {
  font-weight: 600;
}

li.nav-item span.status {
  height: 16px;
  width: 16px;
  margin-right: 10px;
}
