/* =========================================================
   INVESTATION PAGE
   Hanya layout halaman, filter, grid, footer, pagination.
   Styling card ada di offering-card.css
========================================================= */

/* =========================================================
   INVESTATION PAGE
========================================================= */

.investation-page-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 28px 32px 24px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* =========================================================
   HEADER
========================================================= */

.investation-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.investation-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    color: #1f2937;
}

.investation-subtitle {
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 14px;
    color: #6c757d;
}

/* =========================================================
   SEARCH
========================================================= */

.investation-search-wrapper {
    width: 270px;
    position: relative;
}

.investation-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #9ca3af;
}

.investation-search-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    border: 1px solid #dbe1e8;
    border-radius: 9px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    outline: none;
}

.investation-search-input:focus {
    border-color: #098aa0;
    box-shadow: 0 0 0 2px rgba(9, 138, 160, 0.08);
}

/* =========================================================
   DIVIDER
========================================================= */

.investation-divider {
    width: 100%;
    height: 1px;
    margin: 25px 0 20px;
    background: #edf0f3;
}

/* =========================================================
   FILTER
========================================================= */

.investation-filter-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin: 0 0 32px 0;
    padding: 0;
    box-sizing: border-box;
}

.investation-status-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: #f4f6f9;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.investation-filter-tab {
    min-width: 105px;
    height: 28px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition:
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.investation-filter-tab:hover {
    background: #ffffff;
    color: #093361;
    border-color: #dce3ea;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.investation-filter-tab.active {
    background: linear-gradient(135deg, #093361 0%, #174f7a 100%);
    color: #ffffff;
    border-color: #093361;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(9, 51, 97, 0.20);
}

.investation-filter-tab.active:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.investation-select-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    margin-left: auto;
}

.investation-filter-select {
    min-width: 200px;
    height: 42px;
    padding: 0 36px 0 15px;
    border: 1px solid #dce3ea;
    border-radius: 10px;
    background-color: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.investation-filter-select:focus {
    border-color: #098aa0;
    box-shadow: 0 0 0 3px rgba(9, 138, 160, 0.10);
}

/* =========================================================
   CARD GRID
   Responsive grid:
   >= 1400px : 4 card
   992-1399px: 3 card
   768-991px : 2 card
   < 768px   : 1 card
========================================================= */

.investation-card-row {
    width: 100%;
    max-width: 100%;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 28px;
    margin: 0 !important;
    box-sizing: border-box;
}

.investation-card-row>.investation-card-column,
.investation-card-row>div {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    box-sizing: border-box;
}

.investation-card-row .listing-penerbit {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    box-sizing: border-box;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.investation-empty-state {
    padding: 80px 20px;
    text-align: center;
    color: #8993a4;
    font-size: 14px;
}

/* =========================================================
   FOOTER
========================================================= */

.investation-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#investation-data-info {
    color: #6b7280;
    font-size: 13px;
}

/* =========================================================
   PAGINATION
========================================================= */

.investation-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.investation-pagination-button,
.investation-pagination-number {
    height: 36px;
    border: 1px solid #dfe5eb;
    border-radius: 6px;
    background: #ffffff;
    color: #6b7280;
    font-size: 13px;
}

.investation-pagination-button {
    padding: 0 14px;
}

.investation-pagination-number {
    width: 36px;
    padding: 0;
}

.investation-pagination-number.active {
    border-color: #098aa0;
    background: #098aa0;
    color: #ffffff;
    font-weight: 700;
}

.investation-pagination-button:hover:not(:disabled),
.investation-pagination-number:hover:not(.active) {
    border-color: #098aa0;
    color: #098aa0;
}

.investation-pagination-button:disabled,
.investation-pagination-button.disabled {
    cursor: not-allowed;
    opacity: .5;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (min-width: 992px) {
    .investation-card-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 26px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .investation-page-wrapper {
        padding-left: 22px;
        padding-right: 22px;
    }

    .investation-header,
    .investation-filter-wrapper {
        align-items: stretch;
        flex-direction: column;
    }

    .investation-search-wrapper {
        width: 100%;
    }

    .investation-filter-wrapper {
        gap: 14px;
    }

    .investation-status-filter {
        width: fit-content;
        max-width: 100%;
        overflow-x: auto;
    }

    .investation-select-filter {
        width: 100%;
        margin-left: 0;
    }

    .investation-filter-select {
        flex: 1;
        min-width: 0;
    }

    .investation-card-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 24px;
    }
}

@media (max-width: 767.98px) {
    .investation-page-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

    .investation-header,
    .investation-filter-wrapper {
        align-items: stretch;
        flex-direction: column;
    }

    .investation-header {
        gap: 16px;
    }

    .investation-filter-wrapper {
        gap: 14px;
    }

    .investation-search-wrapper {
        width: 100%;
    }

    .investation-status-filter {
        width: 100%;
        max-width: 100%;
        padding: 5px;
        gap: 4px;
        overflow-x: auto;
    }

    .investation-filter-tab {
        min-width: 100px;
        flex-shrink: 0;
    }

    .investation-select-filter {
        width: 100%;
        margin-left: 0;
        flex-direction: column;
        gap: 10px;
    }

    .investation-filter-select {
        width: 100%;
        min-width: 0;
    }

    .investation-card-row {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .investation-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}