.boat_uploader:has(.uploader.uploading) {
    position: relative;
}

.boat_uploader:has(.uploader.uploading):before {
    content: '';
    position: fixed;
    left: calc(50vw - 100px);
    top: calc(50vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid blue;
    border-top-color: transparent;
    z-index: 100;
    animation: fa-spin 1s linear 0s infinite normal;
}

.boat_uploader:has(.uploader.uploading):after {
    content: '';
    position: fixed;
    inset: 0;
    background-color: rgba(255,255,255,.7);
    z-index: 99;
}

.boatcalendar .changeboatcalendar.disabled,
.addboatprice.disabled button,
.saveboat.disabled,
.saveuserinfos.disabled {
    filter: grayscale(1);
    opacity: .7;
}

.boatcalendar .changeboatcalendar.disabled:before,
.addboatprice.disabled button > i:before,
.saveboat.disabled > i:before,
.saveuserinfos.disabled > i:before {
    content: "\f110";
    display: inline-block;
    margin-right: .5rem;
    font-family: var(--fa-style-family, "Font Awesome 6 Free");
    font-weight: var(--fa-style, 900);
    animation: fa-spin 3s linear 0s infinite;
}

select.select2 + span {
    display: block;
    min-width: 100%;
}

select.select2 + span .select2-selection {
    border: 2px solid #546078!important;
    border-radius: 0.5rem;
    min-height: 3rem;
}

select.select2 + span .select2-selection__choice__display {
    font-size: 14px;
}

.priceboatwrap:not(.newboat) > .wrap {
    display: none!important;
}

.priceboatwrap.newboat > .togglepriceboat {
    opacity: .3;
    user-select: none;
}

.priceboatwrap > .wrap {
    position: relative;
}

.priceboatwrap  > .wrap > .togglepriceboat {
    position: absolute;
    top: 5px;
    right: 15px;
}

:is(.page-profile, .page-user) {
    background-color: var(--bs-light);
}

:is(.page-profile, .page-user) .btn-uploader  {
    position: relative;
}

:is(.page-profile, .page-user) .btn-uploader .uploader {
    opacity: 0;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #eee;
}

:is(.page-profile, .page-user) .cards > .card,
:is(.page-profile, .page-user) .card:has(> .gabls) {
    border: none;
}

.User.blocked .saveuserinfos {
    filter: grayscale(1);
    opacity: .4;
}

.User .uphone_wrap {
    position: relative;
    display: flex;
}

.User .uphone_wrap .prefix + span {
    max-width: 250px;
    min-width: unset;
}

.User .uphone_wrap :is(.otpcode, .otpbtn) {
    position: absolute;
    top: 50%;
    right: 5px;
    translate: 0 -50%;
}

.User .uphone_wrap .otpcode {
    width: 140px;
    right: 55px;
}

.User .uphone_wrap:not(.confirm):not(.change) :is(.otpcode, .otpbtn),
.User .uphone_wrap:not(.confirm) :is(.otpcode, .otpbtn i),
.User .uphone_wrap.confirm :is(.otpbtn span) {
    display: none!important;
}

.User:has(.row[data-type="2"] .req:placeholder-shown) .saveuserinfos,
.User:has(.row[data-type="3"] .req:placeholder-shown) .saveuserinfos,
.User:has(.row[data-type="3"] .reqq:placeholder-shown) .saveuserinfos {
    opacity: 0.5;
    user-select: none;
    pointer-events: none;
}

.User .doc_status > span {
    color: var(--bs-light);
}

.Boat .gabls {
    position: relative;
}

.Boat:not(:has(.tdetail [data-detail="53"] option[value="54"]:checked)):not(:has(.tdetail [data-detail="53"] option[value="55"]:checked)) .tdetail:has([data-detail="57"]),
.Boat:not(:has(.tdetail [data-detail="66"] option[value="69"]:checked)) .tdetail:has([data-detail="70"]) {
    display: none!important;
}

.Boat .gabls:before {
    content: '';
    position: absolute;
    inset: 0;
}

.Boat .location {
    text-transform: capitalize;
}

.Boat:not(:has(.condz:checked)) .saveboat.senddraft {
    opacity: .2;
    user-select: none;
    pointer-events: none;
}

.Boat:has(.card:not(.d-none) .req:placeholder-shown) .saveboat {
    opacity: .5;
    user-select: none;
    pointer-events: none;
}

.Boat .docparent .doc_pdf[value=""] ~ a {
    display: none!important;
}

.boatprice_wrap:has(.pren_type option[value="1"]:checked) .day_cond,
.boatprice_wrap:has(.pren_type option[value="1"]:checked) .dur_min,
.boatprice_wrap:has(.pren_type option[value="1"]:checked) .dur_max,
.pren_type:has(option[value="0"]:checked) + .pren_day {
    display: none!important;
}

.flatpickr-day {
    min-width: calc(100% / 7)!important;
}

body:has(.p_type[value="1"]) .flatpickr-day.selected.startRange,
body:has(.p_type[value="1"] + .p_day[value="0"]) .flatpickr-days .flatpickr-day:not([aria-label="0"]),
body:has(.p_type[value="1"] + .p_day[value="1"]) .flatpickr-days .flatpickr-day:not([aria-label="1"]),
body:has(.p_type[value="1"] + .p_day[value="2"]) .flatpickr-days .flatpickr-day:not([aria-label="2"]),
body:has(.p_type[value="1"] + .p_day[value="3"]) .flatpickr-days .flatpickr-day:not([aria-label="3"]),
body:has(.p_type[value="1"] + .p_day[value="4"]) .flatpickr-days .flatpickr-day:not([aria-label="4"]),
body:has(.p_type[value="1"] + .p_day[value="5"]) .flatpickr-days .flatpickr-day:not([aria-label="5"]),
body:has(.p_type[value="1"] + .p_day[value="6"]) .flatpickr-days .flatpickr-day:not([aria-label="6"]) {
    opacity: .5;
    user-select: none;
    pointer-events: none;
    cursor: not-allowed;
}

.page-boat .crews:not(:has(input)),
body:has(.p_type[value="1"])  .boat_halfday {
    display: none!important;
}

:is(.page-profile, .page-user) .gablz .gabls {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

:is(.page-profile, .page-user) .gablz .gabls > .gabl:not(:last-of-type) {
    margin-right: 1.5rem;
}

:is(.page-profile, .page-user) .gablz .gabl {
    text-decoration: none;
    border-bottom: 2px solid transparent;
    color: var(--bs-dark);
}

:is(.page-profile, .page-user) .gablz .gabl:hover {
    color: var(--bs-primary);
}

:is(.page-profile, .page-user) .gablz .gabl.active {
    color: var(--bs-primary);
    border-bottom: 2px solid var(--bs-primary);
}

:is(.page-profile, .page-user) .cards > .card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

:is(.page-profile, .page-user) .row[data-type="2"] div[data-type]:not([data-type="2"]),
:is(.page-profile, .page-user) .row[data-type="3"] div[data-type]:not([data-type="3"]) {
    display: none!important;
}

:is(.page-profile, .page-user) textarea.form-control {
    min-height: 150px;
}

:is(.page-profile, .page-user) .Boat :is(.details, .images) {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

:is(.page-profile, .page-user) .Boat .details > .detail {
    width: calc(100% / 2 - 10px);
}

:is(.page-profile, .page-user) .Boat .boat_uploader {
    position: relative;
}

:is(.page-profile, .page-user) .Boat .boat_uploader .uploader {
    position: absolute;
    inset: 0;
    max-height: 100%;
    width: 165px;
    opacity: 0;
}

:is(.page-profile, .page-user) .Boat .images > .image {
    position: relative;
    width: calc(100% / 6 - 20px);
    min-width: 120px;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    background-image: var(--bg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5px;
    border: 5px solid #fff;
    box-shadow: 1px 1px 6px rgba(0,0,0,.3);
}

:is(.page-profile, .page-user) .Boat .images .image-helper {
    width: calc((100% / 6) - 20px);
    border: 1px dashed #000;
}

:is(.page-profile, .page-user) .Boat .images > .image > a {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    text-decoration: none;
    text-shadow: 1px 1px 1px #fff, -1px 1px 1px #fff, 1px -1px 1px #fff, -1px -1px 1px #fff;
    font-size: 20px;
}

:is(.page-profile, .page-user) .profile_image:has(.uploader.uploading) > .img {
    position: relative;
}

:is(.page-profile, .page-user) .profile_image:has(.uploader.uploading) > .img:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 16px;
    right: 16px;
    background-color: rgba(255, 255, 255, .3);
    border-radius: 1rem;
}

:is(.page-profile, .page-user) .profile_image:has(.uploader.uploading) > .img:after {
    --w: 80;
    content: '';
    position: absolute;
    top: calc(50% - (var(--w) / 2)* 1px);
    left: calc(50% - (var(--w) / 2)* 1px);
    width: calc(var(--w)* 1px);
    height: calc(var(--w)* 1px);
    border: 6px double var(--bs-primary);
    border-top-color: transparent;
    border-radius: 50%;
    z-index: 2;
    animation: fa-spin 1s linear 0s infinite normal;
}

:is(.page-profile, .page-user) .profile_image {
    display: flex;
    align-items: center;
}

:is(.page-profile, .page-user) .profile_image img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 1rem;
    object-fit: cover;
    border: 1px solid #eee;
}

:is(.page-profile, .page-user) .docparent:has(.uploader.uploading) {
    filter: grayscale(1);
    opacity: .8;
    user-select: none;
    cursor: no-drop;
}

:is(.page-profile, .page-user) .docparent:has(.uploader.uploading) > i:before {
    content: "\f110";
    animation: fa-spin 3s linear 0s infinite normal;
    display: block;
}

:is(.page-profile, .page-user) .docparent:has(.uploader.uploading) .uploader {
    pointer-events: none;
}

.flatpickr-calendar .dayContainer {
    justify-content: start;
}



/* Calendar */
.boatcalendar .boatcalendar_popup {
    position: absolute;
    inset: -30px -22px;
    z-index: 30;
    background-color: rgba(0, 0, 0, .5);
    padding: 30px;
    height: calc(100vh - 40px);
    display: none;
    align-items: center;
    justify-content: center;
}

.boatcalendar .boatcalendar_popup > .row {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.boatcalendar_popup .prenotation_options,
.boatcalendar_popup .prenotation_options + div {
    display: none!important;
}

.theboatcalendar.front .boatcalendar_popup {
    inset: 0;
    height: calc(100vh - 200px);
}

.boatcalendar .boatcalendar_popup:has(.priceboatwrap.newboat) {
    display: flex;
}

.boatcalendar .boatcalendar_popup > div {
    background-color: #fff;
}
/*
.boatcalendar_inner {
    overflow-x: auto;
} */

.boatcalendar_inner > .boatcal_inner {
    display: flex;
    padding-top: 30px;
    overflow-x: auto;
}

.boatcalendar_inner > .boatcal_inner > .boatcal {
    min-width: 250px;
    max-width: 250px;
    background-color: #f8f9fa;
    z-index: 2;
}

.boatcalendar_inner > .boatcal_inner > .boatcal {
    border: 1px solid #000;
}

.boatcalendar_inner > .boatcal_inner .boatsel {
    width: 24px;
    height: 24px;
}

.boatcalendar_inner > .boatcal_inner > .day {
    position: relative;
    min-width: 175px;
    max-width: 175px;
    min-height: 40px;
    border: .5px solid #000;
}

.boatcalendar_inner > .boatcal_inner > .day.high { background-color: #85f785; }
.boatcalendar_inner > .boatcal_inner > .day.medium { background-color: #ffcb8e; }
.boatcalendar_inner > .boatcal_inner > .day.low { background-color: #f37b76; }

.boatcalendar_inner > .boatcal_inner > .day:has(.boatsel:checked) {
    background-color: rgba(0, 0, 200, .3);
}

.boatcalendar_inner > .boatcal_inner > .day[data-name]:before {
    content: attr(data-name);
    position: absolute;
    display: block;
    width: calc(100% + 2px);
    background: #000;
    left: -1px;
    top: -30px;
    padding: 2px;
    color: #f8f9fa;
}

.boatcalendar_inner > .boatcal_inner > .day span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    translate: 1px -1px;
    font-size: 12px;
}

.boatcalendar_inner a {
    text-decoration: none;
}

.boatcalendar_inner:has(.day.selected) .editboatrangeprices,
.boatcalendar_inner:has(.day.selected) > .boatcal_inner:not(:has(.day.selected)) input {
    display: none!important;
}

.boatcalendar_inner:has(.day.selected) > .boatcal_inner:not(:has(.day.selected)) label {
    user-select: none;
    pointer-events: none;
}

.boatcalendar_inner > .boatcal_inner .day.selected ~ .day:has(~ .day:hover),
.boatcalendar_inner > .boatcal_inner .day.selected ~ .day:hover,
.boatcalendar_inner > .boatcal_inner .day:hover:has(~ .day.selected),
.boatcalendar_inner > .boatcal_inner .day:hover ~ .day:has(~ .day.selected),
.boatcalendar_inner > .boatcal_inner .day.selected ~ div:has(~ .day.selected) {
    background-color: rgba(0, 0, 200, .3);
}

.boatcalendar_inner .prices {
    padding: 6px 3px 3px 3px;
}

.boatcalendar_inner .price_type {
    display: flex;
    justify-content: space-between;
    padding: 3px 5px;
    border: 1px solid #000;
    line-height: 1;
    min-height: 41px;
}

.boatcalendar_inner .price_type:not(:last-of-type) {
    margin-bottom: 2px;
}

.boatcalendar_inner .price_type .name {
    font-size: 11px;
}

.boatcalendar_inner .price_type .price {
    font-size: 11px;
}

.boatcalendar_inner small {
    font-size: 10px;
}

.theboatcalendar.front .price {
    font-size: 12px;
}

.select2-results .select2-results__option--disabled {
    display: none!important;
}

.Boat:has(.profilealert) .cards { display: none!important; }

@media (max-width: 767px) {
    :is(.page-profile, .page-user) .Boat .details > .detail {
        width: 100%;
    }

    .detail_infos .detail_info {
        min-width: 100%;
    }

    .addnewboat.btn{
        margin-top: 15px;
        font-size: 20px;
    }
}

@media (min-width: 768px) {
    .addnewboat.btn{
        font-size: 25px;
        margin-bottom: 30px;
        margin-top: -15px;
    }
}