/* Addorder */
.addorder__wrap {
    text-align: center;
    padding: 60px 20px 40px;
    border-bottom: 3px solid #e81522;
    margin-bottom: 40px;
}

.addorder__wrap h1 {
    font-size: 36px;
    font-weight: bold;
    color: #141414;
    text-transform: uppercase;
    margin: 0 0 12px;
    letter-spacing: 0.5px;
}
.addorder__wrap h1 span {
    color: #e81522;
}

.addorder__wrap p {
    font-size: 16px;
    color: #848a94;
    margin: 0;
}

.addorder__content {
    margin-inline: auto;
    max-width: 500px;
    width: 100%;
}

.addorder__list {
    list-style: none;
    padding-left: 0;
}

.addorder__list-item,
.addorder__list-item .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.addorder__list-item label {
    font-weight: 500;
    font-size: 17px;
    line-height: 21px;
    color: #848a94;
}

.addorder__submit {
    margin-top: 30px;
}

.addorder__list .addorder__list-item:not(:first-child) {
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding-top: 20px;
}

/* Orderdesk */

.orderdesk__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 60px;
}

.orderdesk__header h1 {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin: 0;
}

.orderdesk__header p {
    padding: 0;
    margin: 0;
    line-height: 1.5;
}

.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;
    border-radius: 8px;
    outline: none;
    border: 1px solid #ccc;
    color: #000;
    font-size: 15px;
}

.orderdesk__header-search input::placeholder {
    color: #000;
}

.orderdesk__header-search input:focus {
    border: 1px solid #e81522;
}

.orderdesk__header-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.orderdesk__header-search::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: currentColor;

    -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 15 6 6m-11-4a7 7 0 1 1 0-14 7 7 0 0 1 0 14'/%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='m15 15 6 6m-11-4a7 7 0 1 1 0-14 7 7 0 0 1 0 14'/%3E%3C/svg%3E") center / contain no-repeat;
}

.orderdesk__statuses {
    position: relative;
    flex: 0 1 200px;
    width: 200px;
    max-width: 200px;
    min-width: 0;
    margin: 0;
}

.orderdesk__statuses li {
    list-style: none;
}

.orderdesk__statuses select {
    width: 100%;
    height: 50px;

    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 {
    margin-top: 40px;
}

.orderdesk__list .order:not(:first-child) {
    border-top: 1px solid #ededed;
    padding-top: 20px;
    margin-top: 20px;
}

.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 */

.orderdesk {
    padding-inline: 15px;
}


.order__edit {
    color: var(--color1, #ff8500);
}

.orderdesk__notitems,
.orderdesk-rate__value-neutral {
    color: var(--text2, #b0b0b0);
}

.order {
    display: grid;
    grid-template-columns: 2fr 1fr 160px;
    grid-gap: 15px;

    min-width: 0;
}

.order > * {
    min-width: 0;
}

.order__info {
    display: flex;
    flex-direction: column;
}

.order__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
    color: #000;
}

.order__description {
    font-size: 14px;
    font-style: italic;
    color: #848a94;
    overflow-wrap: anywhere;
    margin: 0;
}

.order__detalic {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
    padding-top: 10px;
    padding-left: 0;
}

.order__detalic li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #848a94;
}

.order__link {
    margin-top: 10px;
    color: #848a94;
    font-size: 13px;
}
.order__news-link {
  display:flex
  align-items:center;
  gap:5px;
  }
.order__link a {  
    color:#e81522;
    overflow-wrap: anywhere;
}

.order__link a:hover {
    text-decoration: underline;
}

.order__meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 0;
}

.order__meta li {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order__meta-label {
    font-size: 14px;
    color: #000;
    font-weight: 600;
}

.order__author {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 30px;
    color: #141414;
    font-weight: 600;
    font-size: 16px;
    width: max-content;
    max-width: 100%;
}

.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: #eee;
}

.order__status::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
}

.order__status.pending {
    color: #848a94;
}

.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: green;
}

.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: #000;
    margin-top: 15px;
}

.orderdesk-rate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #eee;
    color: #848a94;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.orderdesk-rate__btn:hover {
    background: #e1e1e1;
}

.order__rate-value {
    font-weight: 600;
    color: #a5a1b2;
    padding-inline: 10px;
}

.orderdesk-rate__btn-plus:hover {
    color: green;
}

.orderdesk-rate__btn-minus:hover {
    color: #ff383c;
}

.order__edit {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e81522;
}

.order__edit:hover {
    text-decoration: underline;
}

.orderdesk-rate__value-positive {
    color: green;
}

.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;
    }
}
