@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

.search-page {
    width: 100%;
    min-height: auto;
    background: #ffffff;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

.search-page,
.search-page * {
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

/* =========================
   CONTAINER
   Digər səhifələrlə eyni başlanğıc xətti
========================= */

.search-container,
.search-page .container {
    width: min(100% - 32px, 1320px);
    max-width: 1320px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* =========================
   SECTION
========================= */

.search-results-section {
    width: 100%;
    padding: 34px 0 30px;
    margin-bottom: 0;
}

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

.search-results-form {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 24px;
}

.search-results-input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: #ffffff;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    color: #071d36;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.search-results-input::placeholder {
    color: #8a97a8;
}

.search-results-input:focus {
    border-color: #143d6b;
    box-shadow: 0 0 0 3px rgba(20, 61, 107, 0.08);
}

.search-results-button {
    height: 46px;
    min-width: 118px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: none;
    border-radius: 10px;
    background: #143d6b;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.search-results-button i {
    font-size: 14px;
    line-height: 1;
}

.search-results-button:hover {
    background: #0f3158;
    transform: translateY(-1px);
}

/* =========================
   SUMMARY
========================= */

.search-summary {
    width: 100%;
    margin: 0 0 22px;
    padding: 0;
}

.search-summary h2 {
    margin: 0 0 8px;
    padding: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    color: #071d36;
}

.search-summary p {
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    color: #7b8797;
}

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

.search-empty-box {
    width: 100%;
    margin: 0;
    padding: 34px 28px;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    background: #ffffff;
}

.search-empty-box h2 {
    margin: 0 0 9px;
    padding: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    color: #071d36;
}

.search-empty-box p {
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: #7b8797;
}

/* =========================
   TABLE CARD
========================= */

.search-table-card {
    width: 100%;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
}

.search-table-top {
    width: 100%;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #e3e8ef;
    background: #ffffff;
}

.search-table-top h3 {
    margin: 0;
    padding: 0;
    font-size: 19px;
    font-weight: 700;
    color: #071d36;
}

.search-table-top span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 13px;
    font-weight: 700;
    color: #143d6b;
    white-space: nowrap;
}

.search-table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* =========================
   TABLE
========================= */

.search-results-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
}

.search-results-table thead {
    background: #f8fafc;
}

.search-results-table th {
    padding: 16px 18px;
    border-bottom: 1px solid #e3e8ef;
    font-size: 13px;
    font-weight: 700;
    color: #071d36;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.search-results-table td {
    padding: 17px 18px;
    border-bottom: 1px solid #edf1f5;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.45;
    vertical-align: middle;
}

.search-results-table tbody tr:last-child td {
    border-bottom: none;
}

.search-results-table tbody tr:hover {
    background: #fbfdff;
}

.search-col-number {
    width: 70px;
    text-align: center !important;
}

.search-col-type {
    width: 160px;
}

.search-col-date {
    width: 130px;
    white-space: nowrap;
}

.search-col-action {
    width: 120px;
    text-align: right !important;
}

.search-table-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: #eef4fb;
    font-size: 12px;
    font-weight: 700;
    color: #143d6b;
    white-space: nowrap;
}

.search-table-title {
    display: inline;
    color: #071d36;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.25s ease;
}

.search-table-title:hover {
    color: #143d6b;
    text-decoration: underline;
}

.search-table-description {
    display: inline;
    color: #4b5563;
}

.search-table-muted {
    color: #9aa5b1;
}

.search-table-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    color: #143d6b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.search-table-link:hover {
    color: #0f3158;
    text-decoration: underline;
}

.search-table-link i {
    font-size: 14px;
    line-height: 1;
}

/* Footerlə artıq məsafəni sıfırlamaq üçün */
.search-page + footer,
.search-page ~ footer {
    margin-top: 0;
}

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

@media (max-width: 1199px) {
    .search-container,
    .search-page .container {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 991px) {
    .search-container,
    .search-page .container {
        width: min(100% - 24px, 1320px);
        max-width: 1320px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .search-results-section {
        padding: 26px 0 28px;
    }

    .search-results-form {
        gap: 9px;
        margin-bottom: 22px;
    }

    .search-results-input {
        height: 44px;
        padding: 0 15px;
        font-size: 13.5px;
        border-radius: 9px;
    }

    .search-results-button {
        height: 44px;
        min-width: 108px;
        border-radius: 9px;
        gap: 7px;
        font-size: 13.5px;
    }

    .search-results-button i {
        font-size: 13.5px;
    }

    .search-summary h2 {
        font-size: 21px;
    }

    .search-empty-box {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .search-empty-box h2 {
        font-size: 19px;
    }

    .search-table-top {
        min-height: 62px;
        padding: 16px 18px;
    }

    .search-table-top h3 {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .search-container,
    .search-page .container {
        width: min(100% - 20px, 1320px);
        padding-left: 8px;
        padding-right: 8px;
    }

    .search-results-section {
        padding: 22px 0 26px;
    }
}

@media (max-width: 575px) {
    .search-container,
    .search-page .container {
        width: min(100% - 18px, 1320px);
        padding-left: 6px;
        padding-right: 6px;
    }

    .search-results-section {
        padding: 20px 0 24px;
    }

    .search-results-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 20px;
    }

    .search-results-input {
        width: 100%;
        height: 42px;
        padding: 0 14px;
        font-size: 13px;
        border-radius: 8px;
    }

    .search-results-button {
        width: 100%;
        height: 42px;
        min-width: 0;
        border-radius: 8px;
        font-size: 13px;
    }

    .search-results-button i {
        font-size: 13px;
    }

    .search-summary {
        margin-bottom: 18px;
    }

    .search-summary h2 {
        font-size: 18px;
    }

    .search-summary p {
        font-size: 13px;
    }

    .search-empty-box {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .search-empty-box h2 {
        font-size: 17px;
    }

    .search-empty-box p {
        font-size: 13px;
    }

    .search-table-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .search-table-top h3 {
        font-size: 16px;
    }

    .search-results-table th,
    .search-results-table td {
        padding: 14px 14px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .search-container,
    .search-page .container {
        width: min(100% - 14px, 1320px);
        padding-left: 4px;
        padding-right: 4px;
    }

    .search-table-card {
        border-radius: 12px;
    }

    .search-table-top {
        padding: 14px 16px;
    }
}

@media (max-width: 360px) {
    .search-container,
    .search-page .container {
        padding-left: 3px;
        padding-right: 3px;
    }

    .search-results-section {
        padding: 18px 0 22px;
    }
}