:root {
    --ddgi-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23565973' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --ddgi-primary-custom: var(--bs-primary, var(--ddgi-blue));
}


.w-5 {
    width: 5% !important
}

.w-10 {
    width: 10% !important
}

.w-15 {
    width: 15% !important
}

.w-20 {
    width: 20% !important
}

.w-25 {
    width: 25% !important
}

.w-30 {
    width: 30% !important
}

.w-35 {
    width: 35% !important
}

.w-40 {
    width: 40% !important
}

.w-45 {
    width: 45% !important
}

.w-50 {
    width: 50% !important
}

.w-95 {
    width: 95% !important
}


div.dt-container .dt-paging .dt-paging-button {

    padding: 0;

}

div.dt-container .dt-paging .dt-paging-button:hover {
    color: inherit;
    border: 1px solid transparent;
    background-color: inherit;

    background: inherit;
}


.pointer {
    cursor: pointer !important;
}


.list-view .row > [class*=col-] {
    max-width: 100%;
    flex: 0 0 100%;
}

.list-view .card {
    flex-direction: row;
}

@media (max-width: 575.98px) {
    .list-view .card {
        flex-direction: column;
    }
}

.list-view .card > .card-img-top {
    width: auto;
}

.list-view .card .card-body {
    display: inline-block;
}


/* ESTILO SELECTOR TOM SELECT */
.ts-dropdown .highlight::after,
.ts-dropdown .highlight::before {
    content: none !important;
    display: none !important;
    background: none !important;
}

.ts-dropdown .highlight {
    color: inherit;
    font-weight: 600;
    border-radius: 2px;
    padding: 0 1px;
}

/* =========================================================
   TOM SELECT + DDGI/BOOTSTRAP INTEGRATION
========================================================= */

.ts-wrapper {
    width: 100%;
}

/* =========================
   CONTROL
========================= */

.ts-wrapper .ts-control {
    min-height: calc(1.5em + 1rem + 2px);
    padding: 0.995rem 2.75rem 0.995rem 1rem;
    border: 1px solid var(--ddgi-border-color);
    border-radius: var(--ddgi-border-radius-lg);
    background-color: var(--ddgi-body-bg);
    color: var(--ddgi-body-color);
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: none;
    transition: border-color .15s ease-in-out,
    box-shadow .15s ease-in-out;
    background-image: var(--ddgi-form-select-bg-img);
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    cursor: text;
}

/* =========================
   INPUT / PLACEHOLDER
========================= */

.ts-control input,
.ts-control input::placeholder {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--bs-secondary-color);
}

/* =========================
   FOCUS
========================= */
.ts-wrapper.focus .ts-control {
    border-color: rgba(0, 0, 0, 0.35);
    outline: 0;
}

/* =========================
   DROPDOWN
========================= */

.ts-dropdown {
    border: 1px solid var(--ddgi-border-color);
    border-radius: var(--ddgi-border-radius);
    overflow: hidden;
    margin-top: .25rem;
}

/* =========================
   OPTIONS
========================= */

.ts-dropdown .option {
    padding: .5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* Hover */
.ts-dropdown .active {
    background-color: rgba(13, 110, 253, .1);
    color: inherit;
}

/* =========================
   MULTI ITEMS
========================= */

.ts-wrapper.multi .ts-control > div {
    background: rgba(13, 110, 253, .1);
    border: 1px solid rgba(13, 110, 253, .15);
    border-radius: var(--ddgi-border-radius-sm);
    padding: .25rem .5rem;
    margin: .15rem;
    font-size: .95rem;
}

/* =========================
   REMOVE BUTTON
========================= */
.ts-wrapper.plugin-remove_button .item .remove {
    border-left: none;
    color: #6c757d;
    margin-left: .35rem;
}

.ts-wrapper.plugin-remove_button .item .remove:hover {
    color: #dc3545;
}

/* =========================
   HIGHLIGHT SEARCH
========================= */
.ts-dropdown .highlight {
    background-color: rgba(255, 230, 100, .45);
    border-radius: 2px;
    padding: 0 1px;
    font-weight: 600;
}

.ts-dropdown .highlight::before,
.ts-dropdown .highlight::after {
    display: none !important;
    content: none !important;
}

/* =========================
   INVALID
========================= */
.tom-select.is-invalid + .ts-wrapper .ts-control {
    border-color: var(--bs-form-invalid-border-color);
}

.tom-select.is-invalid + .ts-wrapper.focus .ts-control {
    box-shadow: 0 0 0 .25rem rgba(220, 53, 69, .25);
}

/* =========================================================
   MULTI ITEMS (Ajuste de contenedor cuando tiene elementos)
========================================================= */
.ts-wrapper.multi .ts-control > div {
    background: rgba(13, 110, 253, .1);
    border: 1px solid rgba(13, 110, 253, .15);
    border-radius: var(--ddgi-border-radius-sm);
    padding: .25rem .5rem;
    margin: .15rem;
    font-size: .95rem;
}

.ts-wrapper.multi.has-items .ts-control {
    min-height: calc(2.1em + 1rem + 4px);
}

.ts-wrapper.multi.has-items .ts-control {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.85rem;
}


@media (min-width: 768px) {
    .list-view .card-image {
        width: 400px;
    }
}


.vista-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.5em;
    row-gap: .5em;
}


.vista-grid .row > [class*=col-] {
    max-width: 100%;
    flex: 0 0 100%;
}

.vista-grid .card-image {
    width: 100%;
    height: 200px
}

.vista-grid .card-image img {
    border-radius: 0;
    border-top-left-radius: calc(0.5rem - 1px);
    border-top-right-radius: calc(0.5rem - 1px);
}


@media (max-width: 768px) {
    .vista-grid {
        grid-template-columns:  1fr 1fr;
    }
}

@media (max-width: 560px) {
    .vista-grid {
        grid-template-columns:  1fr;
    }
}

.fix-padding-switch-container {
    padding-left: calc(var(--ddgi-gutter-x) * 0.5);
}

/*
 Espacio para los iconos de las 
 tablas que nos son ni el primero ni el ultimo 
*/
table.datatable tbody tr td:last-child a:not(:first-child),
table.datatable tbody tr td:last-child a:not(:last-child) {
    margin-right: 10px;
}

/*
  Control de botonera en configuració
*/
.configuracion-layout,
.matricula-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 240px);
    min-height: 450px;
}

.configuracion-layout .tab-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.configuracion-layout .tab-pane.active {
    display: flex !important;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.configuracion-layout .table-responsive,
.matricula-layout .table-responsive {
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0;
    border-bottom: 1px solid #dee2e6;
}

.matricula-layout .table-responsive {
    border-bottom: none;
}

.configuracion-layout .botonera-footer {
    flex-shrink: 0;
    margin-top: 1.5rem !important;
}

#administradorsTable .administradors-col-entitat {
    min-width: 10rem;
    width: 18%;
}

#administradorsTable .administradors-col-accions {
    min-width: 5.25rem;
    width: 5.25rem;
    white-space: nowrap;
}

#administradorsTable .administradors-col-accions form {
    margin: 0;
}

#administradorsTable td {
    vertical-align: top;
}

#administradorsTable td:nth-child(1),
#administradorsTable td:nth-child(2) {
    max-width: 15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.sort-up {
    margin-bottom: -2px;
}

.sort-down {
    margin-top: -2px;
}

.botonera-footer > div {
    transition: display 0.3s ease-in-out;
}

/* ======= FILTRO/ORDENACION en local ======= */
.sortable {
    user-select: none;
}

.sort-icons i {
    font-size: 14px;
    color: #adb5bd;
    transition: color 0.2s;
}

.sort-icons i.active {
    color: var(--ddgi-primary);
    font-weight: bold;
}

/* ======= ESTILO TOM SELECT ======= */

.app-main {
    padding-top: 0;
}

.app-main-row {
    --bs-gutter-y: 1.5rem;
    min-height: calc(100vh - 5.5rem);
}

.app-content {
    padding-top: 1.75rem;
    padding-left: 2rem;
}

.app-toast-container {
    z-index: 1100;
}

.app-toast {
    --ddgi-toast-max-width: 32rem;
    width: min(32rem, calc(100vw - 2rem));
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.5rem;
    box-shadow: 0 1rem 2.25rem rgba(15, 23, 42, 0.18);
    font-size: 0.85rem;
}

.app-toast .toast-body {
    padding: 1.25rem 1.5rem;
}

.app-toast-success {
    background: #80d6c1;
    color: #17212b;
}

.app-toast-error {
    background: #f8d7da;
    color: #58151c;
}

.app-toast-warning {
    background: #ffffff;
    color: #17212b;
}

.ts-wrapper.tom-select {
    padding: 0;
    border: 0;
    background-image: none;
    box-shadow: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
}

.ts-wrapper.tom-select.single .ts-control {
    min-height: calc(1.5em + 1.25rem + var(--ddgi-border-width) * 2);
    padding: 0.625rem 2.25rem 0.625rem 1rem;
    border: var(--ddgi-border-width) solid var(--ddgi-border-color);
    border-radius: var(--ddgi-border-radius);
    background-color: var(--ddgi-body-bg);
    background-image: var(--ddgi-form-select-bg-img);
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    color: var(--ddgi-body-color);
    box-shadow: none;
    font: inherit;
}

.ts-wrapper.tom-select.single .ts-control::after {
    display: none;
}

.ts-wrapper.tom-select.focus .ts-control {
    border-color: var(--ddgi-primary);
    box-shadow: 0 0 0 0.25rem rgba(200, 16, 46, 0.12);
}

.ts-wrapper.tom-select .ts-control > input {
    min-width: 8rem;
    padding: 0;
    border: 0;
    box-shadow: none;
    color: inherit;
    font: inherit;
    font-size: 0.85rem;
}

.ts-wrapper.tom-select .item,
.ts-wrapper.tom-select .placeholder {
    color: inherit;
    font: inherit;
    font-size: 0.75rem;
}

.ts-wrapper.tom-select .ts-dropdown {
    z-index: 1060;
    margin-top: 0.25rem;
    border: 1px solid var(--ddgi-border-color);
    border-radius: var(--ddgi-border-radius);
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.12);
}

.ts-wrapper.tom-select .ts-dropdown .option {
    padding: 0.55rem 0.75rem;
}

.ts-wrapper.tom-select .ts-dropdown .active {
    background: #f1f3f5;
    color: #17212b;
}

.ts-wrapper.tom-select .ts-dropdown span.highlight {
    position: static;
    color: inherit;
    background: #fff3cd;
    border-radius: 0.2rem;
    padding: 0 0.1rem;
}

.ts-wrapper.tom-select .ts-dropdown span.highlight::after {
    display: none;
}

@media (max-width: 991.98px) {
    .app-main {
        padding-top: 0;
    }

    .app-content {
        padding-top: 1.25rem;
        padding-left: 0.75rem;
    }
}

.cc-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    padding: 1.25rem;
}

.missatge-text p:last-child {
    margin-bottom: 0;
}

.missatge-text {
    white-space: pre-wrap;
}

.avui-card-action {
    color: #d70926;
}

.avui-card-action:hover,
.avui-card-action:focus {
    color: #b00020;
}

.avui-expand-dialog {
    max-width: min(72rem, calc(100vw - 3rem));
}

.avui-expand-dialog .modal-content {
    min-height: min(42rem, calc(100vh - 3rem));
}

.avui-expand-dialog .modal-body {
    padding: 1.25rem;
}

.avui-card-list {
    display: flex;
    flex-direction: column;
}

.avui-card-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 14rem);
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #edf0f3;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    min-height: 3.5rem;
}

.avui-card-row-with-status {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 14rem) 2rem;
}

.avui-card-row-link {
    color: inherit;
    text-decoration: none;
}

.avui-card-row:hover {
    background-color: #f5f6f8;
}

.avui-card-row:last-child {
    border-bottom: 0;
}

.avui-card-row-main {
    min-width: 0;
}

.avui-card-row-title {
    display: block;
    color: #1f2a44;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avui-card-row-title-inline {
    display: block;
    max-width: 100%;
}

.avui-card-row-title-inline > span:first-child {
    display: inline;
}

.avui-card-row-type {
    color: #5f6878;
    font-size: 0.875rem;
    font-weight: 400;
    vertical-align: baseline;
}

.avui-card-row-side {
    color: #5f6878;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: right;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avui-card-row-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    font-size: 1rem;
}

.avui-card-row-status.is-pendent {
    background-color: #fff3cd;
    color: #664d03;
}

.avui-card-row-status.is-feta {
    background-color: #d1e7dd;
    color: #0f5132;
}

@media (max-width: 575.98px) {
    .avui-card-row,
    .avui-card-row-with-status {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .avui-card-row-with-status .avui-card-row-side {
        display: none;
    }
}

.avui-missatge-titol {
    min-width: 0;
}

.avui-respostes-trigger {
    color: #d70926;
    line-height: 1;
    margin-left: 0.35rem;
    vertical-align: text-bottom;
}

.avui-respostes-trigger:hover,
.avui-respostes-trigger:focus {
    color: #b00020;
}

.avui-respostes-popover {
    --bs-popover-max-width: 34rem;
    --bs-popover-border-color: #e5e7eb;
    --bs-popover-box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.12);
    --bs-popover-body-padding-x: 1rem;
    --bs-popover-body-padding-y: 0.75rem;
}

.avui-respostes-popover-content {
    max-width: min(32rem, calc(100vw - 3rem));
}

.avui-resposta-preview {
    border-bottom: 1px solid #edf0f3;
    padding: 0.5rem 0;
}

.avui-resposta-preview:first-child {
    padding-top: 0;
}

.avui-resposta-preview:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.avui-resposta-preview-text {
    color: #1f2a44;
    white-space: pre-wrap;
}

.avui-missatge-tooltip {
    --bs-tooltip-max-width: 44rem;
    --bs-tooltip-bg: #ffffff;
    --bs-tooltip-color: #2f3542;
    --bs-tooltip-opacity: 1;
    border: 1px solid #e5e7eb;
    box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.12);
}

.avui-missatge-tooltip .tooltip-inner {
    max-width: min(44rem, calc(100vw - 2rem));
    background: #ffffff;
    color: #2f3542;
    border: 1px solid #e5e7eb;
    box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.12);
    padding: 1rem 1.25rem;
    text-align: left;
}

.avui-missatge-tooltip .tooltip-inner p:last-child {
    margin-bottom: 0;
}

.sidebar-link-active,
.list-group-item.active.sidebar-link-active {
    background-color: #d70926;
    border-color: #d70926;
    color: #fff;
}

.taulell-filter {
    background: #f1f1f1;
    border-radius: 6px;
    padding: 1.5rem;
}

.taulell-filter .filter-switch {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    margin: 0;
    padding-left: 3rem;
}

.taulell-filter .filter-switch .form-check-input {
    margin-left: -3rem;
}

.taulell-table .table {
    --ddgi-table-striped-bg: #f1f1f1;
}

#feines {
    table-layout: fixed;
    width: 100%;
}

#feines.feines-table-standard .feines-col-usuari {
    width: 22%;
}

#feines.feines-table-standard .feines-col-data {
    width: 23%;
}

#feines.feines-table-standard .feines-col-tipus {
    width: 24%;
}

#feines.feines-table-standard .feines-col-accio {
    width: 31%;
}

#feines.feines-table-admin .feines-col-usuari {
    width: 17%;
}

#feines.feines-table-admin .feines-col-data {
    width: 22%;
}

#feines .feines-col-data,
#feines td:nth-child(2) {
    min-width: 10.5rem;
}

#feines.feines-table-admin .feines-col-tipus {
    width: 21%;
}

#feines.feines-table-admin .feines-col-accio {
    width: 27%;
}

#feines.feines-table-admin .feines-col-entitat {
    width: 13%;
}

.feina-usuari-text,
.feina-data-text,
.feina-tipus-text,
.feina-accio-text,
.feina-entitat-text {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#feines th,
#feines td {
    overflow: hidden;
}

#feines .table-column-tools {
    min-width: 0;
}

#feines .table-column-tools > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#feines .table-column-actions {
    flex-shrink: 0;
}

#feines .table-column-filter-input {
    min-width: 0;
    width: 100%;
}

.taulell-table #feines > tbody > tr.js-feina-row.feines-row-striped > * {
    background-color: var(--ddgi-table-striped-bg);
}

.reserves-table-wrapper .js-reserves-table {
    table-layout: fixed;
    min-width: 760px;
}

.reserves-table-wrapper {
    max-height: 32rem;
    overflow: auto;
}

.reserves-table-wrapper thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
}

.taulell-table .js-reserva-row.reserves-row-striped > * {
    background-color: var(--ddgi-table-striped-bg);
}

.taulell-table .js-feina-row:hover > *,
.taulell-table .js-reserva-row:hover > *,
.taulell-table .js-clickable-row:hover > * {
    --ddgi-table-bg-state: #f5f6f8;
    background-color: #f5f6f8;
}

.usuari-related-table {
    max-height: 24rem;
    overflow: auto;
}

.table-column-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.table-column-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-left: auto;
}

.table-column-sort,
.table-column-filter {
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
}

.table-column-sort {
    justify-content: center;
}

.table-column-filter {
    color: #7c8793;
    font-size: 1rem;
}

.table-column-filter:hover,
.table-column-filter:focus,
.table-column-filter.is-active,
.table-column-filter-input.is-active {
    color: #d70926;
}

.table-column-filter-input {
    margin-top: 0.5rem;
    min-width: 8rem;
    font-size: 0.8rem;
    font-weight: 400;
}

.horaris-calendar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.75rem;
    background: #f1f1f1;
    border-radius: 6px;
    padding: 1.75rem;
}

.horaris-calendar-months {
    display: grid;
    grid-template-columns: repeat(2, minmax(12rem, 1fr));
    gap: 3rem;
    max-width: 44rem;
    margin: 0 auto;
}

.horaris-calendar-month {
    position: relative;
    background: #fff;
    border-radius: 4px;
    padding: 2.25rem 1.25rem 1.25rem;
}

.horaris-calendar-title {
    position: absolute;
    top: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    min-width: 5rem;
    margin: 0;
    padding: 0.25rem 0.5rem;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #5f6872;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.horaris-calendar-title.is-selected,
.horaris-calendar-month + .horaris-calendar-month .horaris-calendar-title.is-selected {
    background: #1f252b;
    color: #fff;
    font-weight: 700;
}

.horaris-calendar-title:focus-visible,
.horaris-calendar-day:focus-visible {
    outline: 2px solid rgba(215, 9, 38, 0.35);
    outline-offset: 2px;
}

.horaris-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1.75rem);
    justify-content: center;
    gap: 0.45rem 0.35rem;
}

.horaris-calendar-weekday,
.horaris-calendar-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.45rem;
    font-size: 0.75rem;
    line-height: 1;
}

.horaris-calendar-weekday {
    color: #6f6f6f;
    font-weight: 500;
}

.horaris-calendar-day {
    color: #000000;
    border: 0;
    border-radius: 3px;
    background: transparent;
    padding: 0;
}

.horaris-calendar-day.is-muted {
    color: #6f6f6f;
}

.horaris-calendar-weekday.is-weekend,
.horaris-calendar-day.is-weekend {
    color: #d70926;
}

.horaris-calendar-day.is-active,
.horaris-calendar-day.is-selected {
    color: #fff;
    font-weight: 700;
}

.horaris-calendar-day.is-active {
    background: #d70926;
}

.horaris-calendar-day.is-selected,
.horaris-calendar-day.is-active.is-selected {
    background: #1f252b;
}

.horaris-calendar-nav {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-color: #9ca6b0;
    color: #5f6872;
    background: #fff;
}

.horaris-calendar-nav:hover,
.horaris-calendar-nav:focus {
    border-color: #d70926;
    color: #d70926;
    background: #fff;
}

.horaris-calendar-nav .bx {
    font-size: 1.25rem;
    line-height: 1;
}

@media (max-width: 767.98px) {
    .horaris-calendar {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }

    .horaris-calendar-months {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .horaris-calendar-nav {
        justify-self: center;
    }
}

.taulell-actions {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.taulell-inline-actions {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.taulell-quill-wrapper {
    margin-bottom: 1rem;
}

.taulell-quill-wrapper .ql-toolbar {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.taulell-quill-wrapper .ql-container {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    min-height: 260px;
}

.taulell-quill-wrapper .ql-editor {
    min-height: 260px;
}

.taulell-quill-wrapper .ql-container,
.taulell-quill-wrapper .ql-editor {
    font-size: 1rem;
}

.taulell-quill-wrapper:has(.taulell-quill-editor.is-invalid) .ql-toolbar,
.taulell-quill-wrapper:has(.taulell-quill-editor.is-invalid) .ql-container {
    border-color: var(--bs-form-invalid-border-color);
}


.activitat-table .category-header {
    background-color: #6C757D;
    color: #fff;
    padding: 8px 0px;
}

.activitat-row-wrapper.striped .activity-row {
    background-color: rgba(0, 0, 0, 0.03);
}

.activitat-row-wrapper:not(.striped):hover .activity-row {
    background-color: rgba(0, 0, 0, 0.03);
}

.activitat-row-wrapper .activity-row {
    padding: 8px 0px;
}

.activitat-row-wrapper .activity-row a {
    text-decoration: none;
    color: inherit;
}

.activitat-row-wrapper .columna-accions i {
    cursor: pointer;
    font-size: 22px;
    color: var(--ddgi-primary);
}

.reserva-action-link {
    align-items: center;
    color: var(--ddgi-gray-700);
    display: inline-flex;
    font-size: 22px;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
}

.reserva-action-link:hover,
.reserva-action-link:focus {
    color: var(--ddgi-primary);
}

.reserva-action-link-primary {
    color: var(--ddgi-primary);
}

.reserva-quill-wrapper {
    margin-bottom: 2rem;
}

.reserva-quill-wrapper .ql-container {
    min-height: 220px;
}

.reserva-quill-wrapper .ql-editor {
    max-height: 280px;
    min-height: 220px;
    overflow-y: auto;
}

.file-input-group {
    border: 1px solid #ced4da;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
    height: calc(1.5em + .5rem + 5px);
    width: 25%;
}

.file-trigger {
    border: none;
    border-right: 1px solid #ced4da;
    border-radius: 0;
    padding: .25rem .5rem;
    cursor: pointer;
}

.file-trigger:hover {
    background-color: #f8f9fa;
}

.file-input-display {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.file-input-display:focus {
    box-shadow: none;
}

.file-input-hidden {
    display: none;
}

/* Activitat/Inscripcions  -  Franja horaria */

.franja-horaria .franja-actions {
    opacity: 1;
}

.franja-horaria .btn {
    border-radius: 50%;
    padding: 7px;
    transition: transform 0.15s ease;
}

.franja-horaria:hover .franja-actions,
.franja-horaria:focus-within .franja-actions {
    opacity: 1;
}

#espaisValidationError {
    font-weight: 400;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--ddgi-form-invalid-color);
}

#espaisValidationError i {
    font-size: 1.25rem;
}

.text-info-table-agenda {
    padding: 0.75rem;
    font-style: italic;
}

#horariTableContainer #horariTableBody i:hover {
    cursor: pointer;
    color: var(--ddgi-primary);
}

.horaris-calendar-day {
    position: relative;
}

.horaris-calendar-count {
    position: absolute;
    top: -7px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ddgi-primary-custom);
    color: white;
    font-size: 0.65rem;
    line-height: 16px;
    text-align: center;
    font-weight: 600;
}

.espais-tooltip .tooltip-inner {
    max-width: 300px;
    white-space: pre-line;
    text-align: left;
}

/* AGENDA SORTING */
.js-activitats-sort.sort-asc .sort-up,
.js-activitats-sort.sort-desc .sort-down {
    color: var(--ddgi-primary);
}

/* Render mapa seients */
.seatmap{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.seatmap-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.seatmap-stage {
    text-align: center;
    font-weight: bold;
    background: #444;
    color: white;
    border-radius: 6px;
    padding: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.seatmap-row-label {
    width: 90px;
    text-align: right;
    font-weight: bold;
  display: none
}

.seat {
    width: 22px;
    height: 22px;
    border-radius: 6px 6px 3px 3px;
    border: 2px solid #777;
    background: #53c66d;
    cursor: pointer;
    transition: .15s;
    margin-right: .1rem;
}

.seat:hover {
    transform: scale(1.15);
}

.seat.selected {
    background: #0d6efd;
    border-color: #0d6efd;
}

.seat.occupied {
    background: #dc3545;
    border-color: #dc3545;
    cursor: not-allowed;
}

.seatmap-empty {
    width: 22px;
    height: 22px;
    visibility: hidden;
}


.ts-wrapper.multi .item .remove {
    text-decoration: none !important;
}

.ts-wrapper.multi .item {
    display: inline-flex;
    align-items: center;
}

/* INFORMES */
.fila-resumen-dia td {
  background-color: #495057 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  text-align: left;
}