/* Orderdesk main */

.orderdesk__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-block: 50px 25px;
}

.orderdesk__header-search {
    position: relative;
    height: 50px;
    flex: 1 1 0;
    min-width: 0;
}
.orderdesk__header-search input {
    width: 100%;
    box-sizing: border-box;
    height: 50px !important;
    padding-left: 60px !important;
}
.orderdesk__header-search input::placeholder {
    color: #a5a1b2;
}

.orderdesk__header-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}
.orderdesk__header-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #a5a1b2;
    font-size: 20px;
}
.orderdesk__statuses {
    position: relative;
    flex: 0 1 200px;
    width: 200px;
    max-width: 200px;
    min-width: 0;
}
.orderdesk__statuses li {
    list-style: none;
}
.orderdesk__statuses select {
    width: 100%;
    height: 50px;
    color: #a5a1b2;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23a5a1b2' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: right 14px center;
}
.orderdesk__create {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    height: 50px;
    flex: 0 0 150px;
    width: 150px;
    min-width: 0;
    white-space: nowrap;
}

.orderdesk__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.orderdesk__list--none {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius);
    background: var(--bg2);
    color: #a5a1b2;
}
.orderdesk__notitems {
    display: block;
    padding: 30px 20px;
    color: var(--text2);
    text-align: center;
}
/* Order */
.order {
    display: grid;
    grid-template-columns: 2fr 1fr 160px;
    grid-gap: 15px;
    border-radius: var(--radius);
    background: var(--bg2);
    padding: 15px 20px;
    min-width: 0;
}
.order > * {
    min-width: 0;
}
.order__info {
    display: flex;
    flex-direction: column;
}
.order__title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}
.order__description {
    font-size: 14px;
    font-style: italic;
    color: #a5a1b2;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}
.order__detalic {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
    padding-top: 10px;
}
.order__detalic li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #a5a1b2;
}
.order__link {
    margin-top: 10px;
    color: #a5a1b2;
    font-size: 13px;
}
.order__link a {
    color: var(--color1);
    overflow-wrap: anywhere;
}
.order__link a:hover {
    text-decoration: underline;
}
.order__meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.order__meta li {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.order__meta-label {
    font-size: 14px;
    color: #a5a1b2;
}
.order__author {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    border-radius: 30px;
    padding-inline: 5px 10px;
    width: max-content;
    max-width: 100%;
    background-color: var(--light);
}
.order__author:hover {
    background-color: rgb(255 255 255 / 15%);
}
.order__author img {
    object-fit: cover;
    border-radius: 50%;
    width: 20px;
    height:20px;
}
.order__author .dle-avatar {
    width: 20px;
    height:20px;
    line-height:20px;
    font-size: 13px;
    }
.order__status {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    border-radius: 30px;
    padding-inline: 10px;
    font-size: 13px;
    font-weight: 600;
    width: max-content;
    max-width: 100%;
    background-color: var(--light);
}
.order__status::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
}
.order__status.pending {
    color: #a5a1b2;
}
.order__status.pending::before {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 7v5h5m-5 9a9 9 0 1 1 0-18a9 9 0 0 1 0 18'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 7v5h5m-5 9a9 9 0 1 1 0-18a9 9 0 0 1 0 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.order__status.posted {
    color: #fff;
    background: var(--color1);
}
.order__status.posted::before {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m15 10l-4 4l-2-2m3 9a9 9 0 1 1 0-18a9 9 0 0 1 0 18'/%3E%3C/svg%3E") center / contain no-repeat;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m15 10l-4 4l-2-2m3 9a9 9 0 1 1 0-18a9 9 0 0 1 0 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.order__status.rejected {
    color: #fff;
    background: #ff383c;
}
.order__status.rejected::before {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m9 9l3 3m0 0l3 3m-3-3l-3 3m3-3l3-3m-3 12a9 9 0 1 1 0-18a9 9 0 0 1 0 18'/%3E%3C/svg%3E") center / contain no-repeat;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m9 9l3 3m0 0l3 3m-3-3l-3 3m3-3l3-3m-3 12a9 9 0 1 1 0-18a9 9 0 0 1 0 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.order__status.processing::before {
     -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 13h6m6-7l-2-2m-9-2h4m-2 19a8 8 0 1 1 0-16a8 8 0 0 1 0 16'/%3E%3C/svg%3E") center / contain no-repeat;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 13h6m6-7l-2-2m-9-2h4m-2 19a8 8 0 1 1 0-16a8 8 0 0 1 0 16'/%3E%3C/svg%3E") center / contain no-repeat;

    }
.order__status.processing {
    background: #e99a3a;
color: #fff;
}
.order__rating-col {
    display: flex;
    align-items: center;
    justify-content: center;
}
.order__rating {
    min-width: 0;
}
.order__rate {
    display: flex;
    align-items: center;
    justify-content: center;
}
.order__rate-vote {
    text-align: center;
    font-size: 13px;
    color: #a5a1b2;
    margin-top: 15px;
}

.orderdesk-rate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    background: var(--light);
    color: var(--text2);
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}
.orderdesk-rate__btn:hover {
    background: rgb(255 255 255 / 15%);
}
.order__rate-value {
    font-weight: 600;
    color: #a5a1b2;
    padding-inline: 10px;
}
.orderdesk-rate__btn-plus:hover {
    color: var(--color1);
}
.orderdesk-rate__btn-minus:hover {
    color: #ff383c;
}
.order__edit {
    color: var(--color1);
}
.order__edit:hover {
    text-decoration: underline;
}

.orderdesk-rate__value-positive {
    color: #7bae3f;
}

.orderdesk-rate__value-negative {
    color: #e4574f;
}

.orderdesk-rate__value-neutral {
    color: var(--text2);
}

@media (max-width: 1180px) {
    .order {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 0.5fr) 135px;
        padding: 14px 18px;
    }

    .order__title {
        font-size: 20px;
    }
}

@media (max-width: 860px) {
    .orderdesk__header {
        align-items: stretch;
        margin-block: 35px 20px;
    }

    .orderdesk__header-search {
        flex: 1 1 100%;
        width: 100%;
    }

    .orderdesk__statuses {
        flex: 1 1 0;
        width: auto;
        max-width: none;
    }

    .orderdesk__create {
        flex: 0 0 150px;
    }

    .order {
        grid-template-columns: minmax(0, 1fr) minmax(170px, 0.45fr);
        grid-gap: 18px;
    }

    .order__rating-col {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 14px;
        border-top: 1px solid var(--light);
    }

    .order__rating {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .order__rate-vote {
        margin-top: 0;
    }
}

@media (max-width: 620px) {
    .orderdesk__header {
        gap: 10px;
    }

    .orderdesk__statuses,
    .orderdesk__create {
        flex: 1 1 100%;
        width: 100%;
    }

    .order {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .order__title {
        font-size: 18px;
    }

    .order__meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .order__rating-col {
        padding-top: 12px;
    }
}

@media (max-width: 420px) {
    .orderdesk__header {
        margin-block: 25px 15px;
    }

    .orderdesk__header-search,
    .orderdesk__header-search input,
    .orderdesk__statuses select,
    .orderdesk__create {
        height: 46px;
    }

    .orderdesk__header-search input {
        padding-left: 48px !important;
    }

    .orderdesk__header-search-icon {
        left: 16px;
        font-size: 18px;
    }

    .order {
        border-radius: 10px;
        padding: 13px;
    }

    .order__meta {
        grid-template-columns: 1fr;
    }

    .order__detalic {
        align-items: flex-start;
        gap: 8px 12px;
    }

    .order__rating {
        width: 100%;
        justify-content: space-between;
    }
}
