﻿.offer-grid {
    margin-top: 30px;
}

.list-container {
    position: relative;
}

    .list-container.loading {
        opacity: .5;
        pointer-events: none;
        min-height: 273px;
    }

    .list-container .spinner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1000;

        display: inline-block;
        width: 3rem;
        height: 3rem;
    }

.list {
    display: grid;
    row-gap: 5px;
}

.grid-list .list {
    row-gap: 0px;
}

.grid-container {
    border-radius: 10px;
    background-color: #f6f6f6;
    border: 1px solid var(--grey-color-border);
    padding: 0.5rem 1.25rem 1.25rem 1.25rem;
}

.grid-list-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr) repeat(2, 0.5fr);
    margin: 0.625rem 0;
    color: white;
    background-color: var(--grey-color-text);
}

.radar-grid .grid-list-header {
    grid-template-columns: repeat(6, 1fr);
}

    .grid-list-header > div {
        min-width: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: 1.25rem;
    }

        .grid-list-header > div:last-child {
            font-size: 0.8125rem;
        }

        .grid-list-header > div:not(:last-child) {
            border-right: 1px solid var(--grey-color-light-border);
        }

.simple-list-header {
    display: grid;
    font-size: 1.125rem;
}

.ship-list .simple-list-header, .ship-list .list-item {
    grid-template-columns: repeat(2, 2fr) repeat(1, 3fr) repeat(3, 1fr);
}

.user-list .simple-list-header, .user-list .list-item {
    grid-template-columns: repeat(2, 2fr) repeat(3, 1fr);
}

.team-list .simple-list-header, .team-list .list-item {
    grid-template-columns: repeat(1, 6fr) repeat(1, 1fr);
}

.simple-list-header > div {
    display: flex;
    padding: 0.5625rem;
    min-width: 0;
}

.grid-item-wrapper {
    cursor: pointer;
    border: 1px solid var(--grey-color-text);
}

.grid-item {
    display: grid;
    grid-template-columns: repeat(5, 1fr) repeat(2, 0.5fr);
    background-color: white;
    font-size: 0.9375rem;
}

.radar-grid .grid-item {
    grid-template-columns: repeat(6, 1fr);
}

.radar-grid .grid-list-header > div:last-child {
    font-size: 1.25rem;
}

    .grid-item.even {
        background-color: #ededed;
    }

    .grid-item > div {
        min-width: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.625rem;
        text-align: center;
    }

        .grid-item > div:not(:last-child):not(.loading-col) {
            border-right: 1px solid var(--grey-color-light-border);
        }

.list-item {
    display: grid;
    font-size: 0.875rem;
    border-top: 1px solid var(--grey-color-border);
    background-color: #e5e5e4;
}

    .list-item.even {
        background-color: white;
    }

    .list-item > div {
        min-width: 0;
        display: flex;
        padding: 0.5625rem;
    }

.company-col, .contact-col {
    justify-content: space-between !important;
    gap: 0.625rem;
}

    .company-col > div, .contact-col > div {
        min-width: 0;
    }

        .company-col span, .contact-col span {
            display: block;
            width: 100%;
        }

.grid-text-col {
    display: flex;
    flex-direction: column;
}

    .grid-text-col span {
        display: block;
        width: 100%;
    }

.company-logo {
    height: 50px;
    width: 100%;
    border: 1px solid #d9d9d9;
    font-size: 0.6875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 0.2rem;
}

    .company-logo img {
        max-height: 100%;
    }

.company-web, .contact-messengers {
    flex-shrink: 0;
    padding: 0 0.625rem;
}

    .company-web a.disabled {
        opacity: 0.25;
    }

.contact-phone {
    display: flex;
    flex-direction: column;
    text-align: start;
    margin-left: 0.625rem;
}

.contact-messengers {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.loading-col {
    position: relative;
}

.grid-item .icon-arrow-right {
    position: absolute;
    width: auto;
    right: -0.5rem;
    font-size: 1rem;
    color: var(--grey-color-light-border);
}

.filter-form label {
    white-space: nowrap;
}

.search-grid-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    border: 1px solid #dddddd;
    padding: 7px 1.25rem;
}

    .search-grid-row button {
        width: 40px;
        padding: 0;
        font-size: 1.375rem;
        border-radius: 3px;
    }

.search-wrapper {
    width: 390px;
}

    .search-wrapper button {
        --bs-btn-border-color: var(--grey-color-border);
        --bs-btn-bg: white;
    }

.sort-wrapper {
    display: flex;
    gap: 3.25rem;
}

    .sort-wrapper > div {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.filter-grid-row {
    background-color: var(--grey-color-light-border);
}

    .filter-grid-row > div {
        padding: 1rem 1.25rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .filter-grid-row input, .filter-grid-row select, .filter-grid-row .k-input-solid {
        border-color: var(--grey-color-border);
    }

.filter-grid-container > div {
    display: flex;
    gap: 10px;
}

    .filter-grid-container > div > div {
        width: 175px;
    }

.offer-grid nav {
    margin-top: 0.625rem;
}

.page-item {
    min-width: 40px;
    text-align: center;
}

.page-link {
    font-size: 1.125rem;
    color: var(--grey-color-text);
}

    .page-link:hover {
        color: var(--grey-color-text);
    }

    .active > .page-link, .page-link.active {
        color: white;
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.offer-grid .no-data {
    text-align: center;
    line-height: 100px;
    color: var(--grey-color-text);
}

.filter-dd {
    width: 100%;
    font-size: 0.875rem;
    color: white;
    background-color: rgb(from var(--primary-color) r g b / 95%);
}

    .filter-dd a {
        color: white;
    }

.details-hover {
    display: none;
    color: white;
    background-color: var(--grey-color-text);
    text-align: center;
    line-height: 20px;
}

.grid-item-details.is-open + .details-hover {
    display: block;
}

.grid-item-wrapper:hover .details-hover {
    display: block;
}

.details-hover span {
    transition: transform 0.2s ease;
}

.details-hover.rotated span {
    transform: rotate(180deg);
}

.grid-item-details {
    background-color: var(--grey-color-light-border);
    cursor: auto;
    font-size: 0.875rem;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    opacity: 0;
}

    .grid-item-details.is-open {
        max-height: 2000px;
        opacity: 1;
    }

.grid-details-wrapper {
    padding: 1.125rem 1.875rem 1.875rem 1.875rem;
}

.details-col {
    border-bottom: 1px solid var(--grey-color);
    padding: 0.75rem 0;
}

    .grid-item-details h5 {
        color: var(--grey-color);
        margin: 0;
    }

.grid-item-details .ship-tabs {
    border-color: var(--grey-color-text);
    border-width: 0 0 1px 0;
}

.ship-details-wrapper {
    background-color: white;
    border: 1px solid var(--grey-color-text);
    border-radius: 10px;
}

    .ship-details-wrapper .tab-content {
        background-color: white;
        border-radius: 10px;
        padding: 1.25rem;
    }

    .ship-details-wrapper table {
        width: 100%;
        table-layout: fixed;
    }

        .ship-details-wrapper table tr td {
            padding: 0.125rem 0.25rem;
            overflow: hidden;
        }

        .ship-details-wrapper table tr td:first-child {
            text-align: end;
            border-right: 1px solid #535353;
        }

.region-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.region-list-item {
    display: inline-flex;
    align-items: center;
}

.region-list-item:not(:first-child)::before {
    content: "";
    width: 6px;
    height: 6px;
    margin: 0 12px;
    border-radius: 50%;
    background-color: currentColor;
}

#ship-filter label, #HoldsQuantityOperator {
    font-size: 0.8125rem;
}

#ship-filter .input-group .form-select {
    padding-right: 2rem;
    min-width: 0;
}

.ship-photo {
    max-width: 100%;
    max-height: 110px;
    height: auto;
    margin-right: 1rem;
}

.license-list {
    font-size: 0.875rem;
}

    .license-list .list {
        gap: 1.875rem;
    }

        .license-list .list .row {
            margin-bottom: 0.25rem;
        }

.notes-wrapper {
    color: #997d08;
    background-color: #e3d6a3;
    border: 1px solid #997d07;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem;
}

    .notes-header .title {
        font-size: 1.125rem;
        padding-left: 0.625rem;
    }

    .notes-header .btn-collapse {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 35px;
        width: 35px;
        border-radius: 50%;
        background-color: #ffc107;
        font-size: 0.5rem;
        color: #987d08;
    }

.notes-wrapper .notes-container {
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.notes-container label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.notes-container textarea {
    margin-bottom: 0.5rem;
    border-radius: 10px;
    border-width: 0;
}

.note-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #997d07;
    border-width: 1px 0;
    margin: 1.25rem 0;
    padding: 1.25rem 0;
}

.note-item {
    width: fit-content;
    background-color: white;
    border-radius: 10px;
    color: var(--grey-color);
    padding: 0.625rem;
}

    .note-item + .note-item {
        margin-top: 0.625rem;
    }

.note-item-info {
    font-size: 0.6875rem;
}

.note-item-text {
    font-size: 1rem;
}

@media (max-width: 576px) {
    #freightoffer-grid, #shipoffer-grid {
        margin-top: 10px;
    }
}

@media (min-width: 576px) {
    .filter-dd {
        width: 480px;
    }

    #ship-filter {
        width: 550px;
    }

    .ship-details-wrapper table tr td {
        padding: 0.125rem 1.875rem;
    }
}

@media (min-width: 768px) {
    .details-col + .details-col .details-cell {
        border-left: 1px solid var(--grey-color);
        padding-left: 1rem;
    }

    #ship-filter {
        width: 600px;
    }
}

@media (max-width: 992px) {
    .search-grid-row, .filter-grid-row > div, .filter-grid-container > div {
        flex-wrap: wrap;
    }

        .search-grid-row > div {
            width: 100%;
        }

    .sort-wrapper {
        display: flex;
        gap: 0.5rem;
        justify-content: space-between;
    }

    .filter-grid-container > div > div {
        max-width: none;
        width: 100%!important;
    }
}

@media (max-width: 1200px) {
    .filter-grid-container > div > div {
        width: 135px;
    }
}
