/**
 * @file
 * Subtheme specific CSS.
 */

/* NOUS ESTILS Bootstrap 5 Barrio */

/* Chosen fields */
.chosen-container.form-select {
  border: none;
  --bs-form-select-bg-img: none;
  font-size: small;
}

/* Footer margin with main page*/
.site-footer {
  margin-top: 20px;
}

/* Marge botons acció. P.e: 'Afegir Alumne' a la vista d'alumnes */
.action-links {
  margin-bottom: 10px;
}

/* Camps en els formularis de filtre */
.js-form-item {
  padding-right: 10px;
}

.form-actions .button {
  --bs-btn-color: white;
  --bs-btn-bg: #d6121f;
}

/* END NOUS ESTILS */

/* Message banner info, warning, error */
.alert-wrapper {
  position: relative !important;
  margin-top: 1rem !important;
  z-index: unset !important;
}

.block-menu,.navigation a{
  /*color: white;*/
}

/* Paginador views */
li[role=presentation] {
  /*padding: 5px;*/
}

/* Bootstrap dropdown block*/
.block-bootstrap-dropdown {
  padding: 5px;
}
.dropdown-menu,.show ul {
  list-style-type: none;
  padding-inline-start: 0px;
}
.block-bootstrap-dropdown .dropdown-menu {
  width: auto;
}
.dropdown-menu {
  left: auto !important;
}

/* Tables */
tr {
  background: none;
}
.table td, .table th {
  padding: 0.25rem;
}
thead > tr {
  border-bottom: 2px solid #ddd;
}
table tbody tr {
  background-color: #ffffff;
}
.table thead th {
  border-bottom: none;
  background: none;
  color: inherit;
}
.table thead th a,
.table thead th a:hover,
.table thead th a:focus {
  color: inherit;
}
.table td, .table th {
  /*border-top: none;*/
  border-bottom: 1px solid #d6d6d6;
}

/* Estils per les vistes de Grups */
a.status {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
}
a.status.cancelat {
  background-color: #ffffb3;
}
a.status.tancat {
  background-color: #ffb3b3;
}
a.status.ajornat {
  background-color: #b3d1ff;
}
a.status.obert {
  background-color: #b3ffb3;
}
a.status.finalitzat {
  background-color: #ffb3ff;
}

/* Disable td selected background Barrio Theme*/
tr.selected td {
  background: none;
}

/* Change td selected background */
table.dataTable tbody > tr.selected, table.dataTable tbody > tr > .selected {
  background-color: #d64e4e;
}

/* Views incrusted */
.views-form {
  width: 100%;
}

.field__label {
  font-weight: bold;
}

/* Google Charts -Table- */
table.google-visualization-table-table tr th,
table tr th a,
table tr th a:hover,
table tr th a:focus {
  color: #888888;
}

.nav-tabs {
  border-bottom: 1px solid #c5ccd3;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
  border-color: #c5ccd3 #c5ccd3 #fff;
}

.DTE_Bubble_Table .btn {
  background-color: #d6121f;
  border-color: #d6121f;
  color: #fff;
}

.DTE_Bubble_Table .btn:hover, .DTE_Bubble_Table .btn:focus {
  background-color: #a90f19;
  border-color: #0062cc;
}

#content {
  padding-top: 10px;
}

#block-primaryadminactions {
  padding-bottom: 10px;
}

.navbar-brand {
  padding-left: 1rem;
}

.btn-secondary {
  color: #fff !important;
  background-color: #a90f19 !important;
  border-color:  #a90f19 !important;
}

.btn-secondary:hover {
  background-color: #cd2d2d !important;
  border-color: #cd2d2d !important;
}

.btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show > .btn-secondary.dropdown-toggle {
  background-color: #cd2d2d !important;
  border-color: #cd2d2d !important;
}

/* Estils per les vistes de Matrícules */
a.status {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
}
a.status.activa {
  background-color: #b3ffb3;
}
a.status.anullada {
  background-color: #ffffb3;
}
a.status.finalitzada {
  background-color: #ffb3ff;
}

.view-llistat-sessions .row {
  display: block !important;
}

#chart_area_total {
  margin-top: 20px;
  padding: 20px;
}

#chart_area {
  padding: 20px;
}

#chart_area_table {
  padding: 20px;
}

.views-field-views-bulk-operations-bulk-form .form-check-label {
  display: none;
}

/* Enllaços operacions Views*/
.js td .dropbutton-multiple .dropbutton-widget {
  position: relative !important;
}
