/* ── ACORD Forms Hub (Certificates & Forms -> ACORD Forms) ── */

.acord-forms-hub-page {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 1.8rem 2.5rem;
    margin-bottom: 2.5rem;
}

.acord-heading {
    font-size: 1.6rem;
    margin: 1rem 0.5rem;
    font-weight: 900;
    font-family: Arial, Helvetica, sans-serif;
    color: #0d233a;
}

.acord-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0.5rem 1.25rem;
    box-sizing: border-box;
}

.acord-page-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 170px;
    max-width: 100%;
    min-height: 34px;
    padding: 6px 14px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.acord-intro-content {
    font-weight: 400;
    font-size: 0.938rem;
    margin: 0.5rem;
    vertical-align: baseline;
    line-height: 1.6;
    color: #333333;
    text-align: justify;
}

/* ── Developer & Postman Banner ── */
.acord-postman-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #ff9933;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 1.5rem 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.acord-postman-info {
    flex: 1;
}

.acord-postman-badge {
    display: inline-block;
    background-color: #fff3e0;
    color: #e65100;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-bottom: 6px;
}

.acord-postman-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0d233a;
    margin: 0 0 6px 0;
}

.acord-postman-desc {
    font-size: 0.88rem;
    color: #556980;
    margin: 0;
    line-height: 1.5;
}

.acord-postman-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.btn-postman-download {
    background-color: #ff9933;
    border: 1px solid #ff9933;
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-postman-download:hover {
    background-color: #e08522;
    border-color: #e08522;
}

.btn-api-docs-link {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0d233a !important;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-api-docs-link:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

/* ── Supported Forms Table Section ── */
.acord-table-section {
    margin: 1.5rem 0.5rem;
}

.acord-table-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0.85rem;
}

.acord-table-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.acord-title-badge-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.acord-table-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0d233a;
    margin: 0;
    line-height: 1.3;
}

.acord-total-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    letter-spacing: 0.2px;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1.4;
}

.acord-total-count-badge strong {
    font-weight: 800;
    color: #0c4a6e;
    font-size: 0.95rem;
}

.acord-table-subtitle-row {
    margin-top: -2px;
}

.acord-search-box {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px;
    height: 38px;
    width: 340px;
    max-width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acord-search-box:focus-within {
    border-color: #ff9933;
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.15);
}

.acord-search-box i {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-right: 10px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.acord-search-box input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    height: 100%;
    font-size: 0.88rem;
    color: #334155;
    line-height: normal;
}

.acord-search-box input::placeholder {
    color: #94a3b8;
    font-size: 0.85rem;
}

.acord-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.acord-table-header-wrapper {
    background-color: #0d233a;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    overflow: hidden;
    border-bottom: 2px solid #081624;
}

.acord-forms-table-wrapper {
    background: #ffffff;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.acord-forms-table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.acord-forms-table-wrapper::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.acord-forms-table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.acord-forms-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.acord-forms-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9rem;
}

.acord-forms-table,
.acord-forms-table th,
.acord-forms-table td {
    box-sizing: border-box;
}

/* Desktop column widths */
.col-form-number {
    width: 220px;
}

.col-form-name {
    width: auto;
}

.col-form-edition {
    width: 180px;
}

.acord-forms-head-table th {
    background-color: #0d233a;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 14px 20px;
    border: none;
    text-align: left;
    white-space: nowrap;
}

.acord-forms-body-table td {
    padding: 14px 20px;
    border-top: 1px solid #edf2f7;
    color: #334155;
    vertical-align: middle;
}

.acord-table-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 4px 0;
    font-size: 0.85rem;
}

.acord-forms-table tbody tr:hover {
    background-color: #f8fafc;
}

.acord-form-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.45;
}

.acord-edition-text {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.acord-form-badge {
    display: inline-block;
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.2px;
    border: 1px solid #bae6fd;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.35;
    text-align: center;
    box-sizing: border-box;
}

.acord-forms-body-table td.col-form-number {
    overflow: hidden;
}

.acord-contactus {
    font-size: 0.938rem;
    margin: 1.5rem 0.5rem 0.5rem;
    vertical-align: baseline;
    line-height: 1.6;
    color: #333333;
}

/* ── Responsive Rules ── */
@media screen and (max-width: 992px) {
    .acord-postman-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 18px 20px;
        margin: 1.25rem 0.5rem 1.5rem;
    }

    .acord-postman-actions {
        width: 100%;
        flex-direction: row;
        gap: 10px;
    }

    .btn-postman-download,
    .btn-api-docs-link {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .acord-heading {
        font-size: 1.3rem;
        margin: 0.5rem 0 0.85rem;
    }

    .acord-page-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin: 0 0 1rem;
    }

    .acord-page-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .acord-intro-content {
        margin: 0.5rem 0;
        font-size: 0.875rem;
        line-height: 1.55;
        text-align: left;
    }

    .acord-postman-card {
        margin: 1.25rem 0 1.5rem;
    }

    .acord-postman-actions {
        flex-direction: column;
    }

    .btn-postman-download,
    .btn-api-docs-link {
        width: 100%;
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .acord-table-section {
        margin: 1.25rem 0;
    }

    .acord-table-header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .acord-title-badge-group {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 12px;
        width: 100%;
    }

    .acord-table-title {
        font-size: 1.15rem;
    }

    .acord-total-count-badge {
        font-size: 0.8rem;
        padding: 3px 10px;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .acord-search-box {
        width: 100%;
        max-width: 100%;
    }

    /* Auto-fit columns on mobile to prevent table blowout and column overlap */
    .col-form-number {
        width: 130px;
    }

    .col-form-name {
        width: auto;
    }

    .col-form-edition {
        width: 75px;
    }

    .acord-forms-head-table th {
        padding: 10px 8px;
        font-size: 0.76rem;
        letter-spacing: normal;
        white-space: nowrap;
    }

    .acord-forms-body-table td {
        padding: 10px 8px;
    }

    .acord-form-badge {
        font-size: 0.74rem;
        padding: 3px 6px;
    }

    .acord-form-name {
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .acord-edition-text {
        font-size: 0.8rem;
    }

    .acord-contactus {
        margin: 1.25rem 0 0.5rem;
        font-size: 0.875rem;
    }
}

@media screen and (max-width: 576px) {
    .acord-forms-hub-page {
        padding: 1rem 0.85rem 1.8rem;
    }

    .acord-heading {
        font-size: 1.15rem;
    }

    .acord-postman-card {
        padding: 14px 12px;
        margin: 1rem 0 1.25rem;
    }

    .acord-postman-title {
        font-size: 1rem;
    }

    .acord-postman-desc {
        font-size: 0.82rem;
    }

    .btn-postman-download,
    .btn-api-docs-link {
        font-size: 0.82rem;
        padding: 8px 12px;
    }
}

@media screen and (max-width: 400px) {
    .col-form-number {
        width: 122px;
    }

    .col-form-edition {
        width: 68px;
    }

    .acord-forms-head-table th {
        padding: 8px 6px;
        font-size: 0.72rem;
        letter-spacing: normal;
        white-space: nowrap;
    }

    .acord-forms-body-table td {
        padding: 8px 6px;
    }

    .acord-form-badge {
        font-size: 0.7rem;
        padding: 2px 4px;
    }

    .acord-form-name {
        font-size: 0.78rem;
    }

    .acord-edition-text {
        font-size: 0.72rem;
    }
}
