/* Typography */
.td-font-display {
    font-size: 2rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.td-font-lead {
    font-size: 1.5rem;
    font-weight: 700;
}


.td-text-alert {
    color: var(--text-default-error);
}

.td-text-warning {
    color: var(--warning-425-625);
}

.td-text-valid {
    color: var(--text-default-info);
}

.nowrap {
    white-space: nowrap;
}


/* cells */
.row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.cell__img {
    width: 100%;
}

.sheet {
    padding-top: 2rem;
}

.cell {
    vertical-align: top;
    padding: 1rem 0.5rem;
}

.cell--full {
    width: 100%;
}

.cell--third {
    flex-basis: 33%;
}

.cell--half {
    flex-basis: 49%;
}

.cell--two-thirds {
    flex-basis: 66%;
}

.cell--bordered {
    border: 1px solid #e3e3fd;
    border-left: 5px solid #e3e3fd;
}

.cell__title {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* sections */
.section__title {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 2.3rem;
}

.no-data-section {
    text-align: center;
    margin-bottom: 10px;
}

/* tables */
table .td--right {
    text-align: right;
}

/* Header */
.fr-header__body {
    border-bottom: 1px solid var(--grey-975-75-active);
}

/* Warning */
.warning-banner {
    height: 32px;
    line-height: 32px;
    text-align: center;
    background-color: #ef9657;
}

.fr-input[type="date"] {
    /* DSFR date field fix: prevent native and dsfr date input icon overlap */
    background-image: none;
}

/* Custom banner modifier to appease the gods of UX */
.fr-notice--warning .fr-notice__body::before {
    -webkit-mask-image: url("../icons/system/fr--warning-fill.svg");
    mask-image: url("../icons/system/fr--warning-fill.svg");
    content: "";
}

.fr-notice--warning {
    background-color: var(--background-contrast-info);

    --idle: transparent;
    --hover: var(--background-contrast-info-hover);
    --active: var(--background-contrast-info-active);
    color: var(--text-default-info);
}

/*Spinner*/

.backdrop {
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

}

.spinner {
    margin: 100px auto;
    width: 80px;
    height: 40px;
    text-align: center;
    font-size: 10px;
}

.spinner > div {
    background-color: #333;
    height: 100%;
    width: 6px;
    display: inline-block;

    -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
    animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.spinner .rect3 {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

.spinner .rect4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.spinner .rect5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {
    0%,
    40%,
    100% {
        -webkit-transform: scaleY(0.4);
    }
    20% {
        -webkit-transform: scaleY(1);
    }
}

@keyframes sk-stretchdelay {
    0%,
    40%,
    100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }
    20% {
        transform: scaleY(1);
        -webkit-transform: scaleY(1);
    }
}

.percent {
    font-size: 18px;
}

.htmx-indicator {
    opacity: 0;
    transition: opacity 500ms ease-in;
    display: none;
}

.htmx-request .htmx-indicator {
    opacity: 1;

    display: block;
}

.htmx-request.htmx-indicator {
    opacity: 1;
    display: block;
}

/*Road control */
.search-results {
    width: 100%;
}

.bsd-card-list {
}

.bsd-card-list__item {
}

/* Style coming from TD UI dashboard*/
.bsd-card-list {
    list-style-type: none;
    padding-inline-start: 0;
}

@media only screen and (min-width: 992px) {
    .bsd-card-list__item {
        margin: 5px 0;
    }
}

@media only screen and (min-width: 992px) {
    .bsd-card {
        min-height: 120px;
        padding: 0;
    }
}

.bsd-card {
    background: #ffffff;
    border: 1px solid #dddddd;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 0;
    width: 100%;
}

.bsd-card p {
    margin-bottom: 0;
}

@media only screen and (min-width: 992px) {
    .bsd-card__header {
        border-bottom: 1px solid #dddddd;
    }
}

.bsd-card__header {
    display: flex;
    flex-direction: column;
    color: #161616;
    padding: 4px 0;
    margin: 0 15px;
}

.bsd-card__header p {
    font-size: 0.875rem;
}

.bsd-card__header > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.bsd-card__header .bsd-number,
.bsd-card__header .bsd-custom-id {
    font-size: 0.875rem;
    color: #161616;
    width: 240px;
}

.bsd-card__header__infos {
    display: flex;
    flex-wrap: wrap;
}

.bsd-card__header__infos p {
    padding: 0 10px;
}

.bsd-card__content {
    display: flex;
    flex-direction: column;
    padding: 2px 15px;
    flex-wrap: wrap;
}

@media only screen and (min-width: 992px) {
    .bsd-card__content {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }
}

.bsd-card__content__infos {
    display: flex;

    flex-direction: column;

    width: 100%;
}

@media only screen and (min-width: 992px) {
    .bsd-card__content__infos {
        flex-direction: row;

        align-items: center;

        min-width: 75%;
    }
}

.waste-details {
    display: flex;
    box-sizing: border-box;
    padding: 5px 0;
    width: auto;
    flex-shrink: 0;
}

@media only screen and (min-width: 1280px) {
    .waste-details {
        width: 250px;
    }
}

.waste-details__infos {
    display: flex;
    flex-direction: column;
    padding: 0 5px;
}

@media only screen and (min-width: 992px) {
    .waste-details__infos {
        width: 170px;
    }
}

@media only screen and (min-width: 1280px) {
    .waste-details__infos {
        width: 180px;
    }
}

@media only screen and (min-width: 992px) {
    .bsd-card__content__infos__status {
        width: 160px;
        flex-shrink: 0;
        padding: 0 10px;
    }
}

@media only screen and (min-width: 1280px) {
    .bsd-card__content__infos__status {
        width: 230px;
    }
}

.actors__item {
    display: flex;
    align-items: center;

    max-width: 100%;
}

.actors {
    min-width: 0;
    padding-right: 10px;
    position: relative;
}

.actors__label {
    font-size: 0.875rem;
    text-transform: lowercase;
    margin: 0 0 0 5px;
    color: #3a3a3a;
    height: 25px;
    display: flex;
    min-width: 0;
}

.waste-details__infos__code {
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 24px;
    color: #161616;
    width: fit-content;
}

.waste-details__infos__name,
.waste-details__infos__workflow {
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 20px;
    color: #3a3a3a;
    width: fit-content;
}

.waste-details__infos__weight {
    display: flex;
    align-items: center;
    position: relative;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 20px;
    color: #161616;
    margin: 0 0 0 -35px;
}

.fr-badge--SIGNED_BY_WORKER,
.fr-badge--SENT,
.fr-badge--RESENT,
.fr-badge--SIGNED_BY_TEMP_STORER,
.fr-badge--SIGNED_BY_EMITTER,
.fr-badge--SIGNED_BY_PRODUCER {
    background-color: #e6eefe;
    color: #3558a2;
}

@media only screen and (min-width: 992px) {
    .bsd-card__content__infos__status {
        width: 160px;
        flex-shrink: 0;
        padding: 0 10px;
    }
}

@media only screen and (min-width: 1280px) {
    .bsd-card__content__infos__status {
        width: 230px;
    }
}

.workflow-type {
    display: flex;
    align-items: center;
}

.workflow-type:before {
    display: inline-block;
    content: "";
    background-image: url("/static/custom-icons/icon-bsd-workflow-type.svg");
    width: 24px;
    height: 24px;
}

.label-icon__LastModificationDate::before {
    display: inline-block;

    content: "";

    background-image: url("/static/custom-icons/last-modification-date.svg");

    width: 15px;

    height: 15px;

    margin-right: 5px;

    flex-shrink: 0;
    vertical-align: middle;
}

.label-icon__TransporterNumberPlate::before {
    display: inline-block;

    content: "";

    background-image: url("/static/custom-icons/transporter-number-plate-icon.svg");

    margin-right: 5px;

    flex-shrink: 0;

    width: 24px;
    height: 25px;
    vertical-align: middle;
}

.bsd-card__footer {
    display: flex;
    flex-direction: column;
    color: #161616;
    padding: 4px 0;
    margin: 0 15px;
    border-top: 1px solid #dddddd;
}

.bsd-card__footer p {
    font-size: 0.875rem;
}

@keyframes spin-animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(359deg);
    }
}

.bsd-card__content__spinner {
    opacity: 0;
    display: none;
    transition: opacity 500ms ease-in;
    animation: spin-animation 1s infinite linear;
}

.htmx-request .bsd-card__content__spinner {
    opacity: 1;
    display: inline-block;
}

.htmx-request.bsd-card__content__spinner {
    display: inline-block;
    opacity: 1;
}

/* rotating spinner*/
.spinning {
    display: inline-block;
    animation: rotating 1s infinite linear;
}

@keyframes rotating {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}


/* Company Map */

.map-app {
    height: 70vh;
    display: flex;
    gap: 12px;
}

.map__sidebar {
    width: 30%;
    max-width: 400px;
}

.map-popup {
    display: block;
    position: absolute;
    margin-left: 10px;
    margin-top: 10px;
    padding: 10px 20px 20px 20px;
    z-index: 1000;
    background-color: #fff;
    width: 60%;
    max-width: 700px;
}

.map-popup__close {
    justify-content: flex-end;
    font-size: 11px;
    color: #1212ff;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.pointable {
    cursor: pointer;
}

.dropDownWrapper {
    padding: 10px 10px 0 10px;
    background: #ffffff;
    box-shadow: 0px 2px 6px 0px #00001229;
    position: absolute;
    z-index: 999;
    max-height: 500px;
    overflow-y: scroll;
    width: 25%;
}

.optionCheckbox {
    margin: 0;
    padding: 0;
    margin-bottom: 16px;
}

/* utils*/
.flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-space-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

/* Map*/
.fr-tabs__panel {
    border: 1px solid #ccc;
}

.search-highlight {
    background-color: yellow;
}

.map-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fr-tabs__panel {
    transition: none !important;
}

/* Choice js custom styles*/


.choices__list--multiple  .choices__item[aria-selected=true] {
    background-color: rgb(0, 0, 145) !important;
}

.choices__button:hover {
    background-color: rgb(0, 0, 145) !important;
}

table {
    width: 100% !important;
}