﻿/* ============================================
   DOCUMENT DOWNLOAD TOOLBAR
   ============================================ */

.document-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 76px 20px;
}

.new-document-list-component {
    background-color: #ffffff;
}
.new-document-list-component .document-container{
    padding-top: 45px;
}
.new-document-list-wrapper {
    position: relative;
}
.document-download-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #F5F5F5;
    border-radius: 8px;
}

.document-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: "Figtree", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.document-select-all-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #224196;
}

.btn-download-zip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #224196;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: "Figtree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-download-zip:hover:not(:disabled) {
    background: #1a3278;
}

.btn-download-zip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-download-zip svg {
    flex-shrink: 0;
}

/* Checkbox column in content list */
.content-list-item-checkbox {
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .content-list-item-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: #224196;
    }

/* Mobile responsive - Document Download */
@media only screen and (max-width: 767px) {
    .document-download-toolbar {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .document-select-all {
        width: 100%;
    }

    .btn-download-zip {
        width: 100%;
        justify-content: center;
    }
    .document-container {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .new-document-list-component .document-container{
        padding-top: 0px;
    }
}

/* ============================================
   DOCUMENT SEARCH BOX
   ============================================ */
.document-search-box {
    position: relative;
    margin-bottom: 24px;
}

.document-search-input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    font-family: "Figtree", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    background: #fff;
    border: 1px solid #D5D5D5;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

    .document-search-input::placeholder {
        color: #999;
    }

    .document-search-input:focus {
        border-color: #224196;
    }

.document-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* ============================================
   DOCUMENT LIST (Single Column)
   ============================================ */
.document-list-single {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.document-list-item {
    display: flex;
    align-items: center;
    gap: 33px;
    padding: 14px 30px;
    background-color: #F5F5F5;
    transition: background-color 0.2s ease;
}

.document-list-item.selected {
    background-color: #00148933 !important;
}

.document-item-checkbox {
    flex: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F5F5;
}

.document-item-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #224196;
    border: 1px solid #001489;
    background-color: #F5F5F5 !important;
    border-radius: 0;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    outline: none;
}

.document-item-checkbox input[type="checkbox"]:focus {
    outline: none;
    box-shadow: none;
}

.document-item-checkbox input[type="checkbox"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #F5F5F5;
    z-index: -1;
}

.document-item-checkbox input[type="checkbox"]:checked {
    background-color: #224196 !important;
}

.document-item-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.document-file-icon {
    flex: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-file-icon svg {
    width: 24px;
    height: 30px;
}

.document-item-title {
    flex: 1;
    min-width: 0;
    margin-top: 4px;
}

.document-item-title a {
    font-family: "Figtree", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #001489;
    text-decoration: none;
    display: inline;
    line-height: 135%;
    letter-spacing: 0.16px;
    text-transform: uppercase;
}

.document-item-title a:hover {
    text-decoration: underline;
}

/* No Results Message */
.no-results-message {
    padding: 40px 20px;
    text-align: center;
    font-family: "Figtree", sans-serif;
    font-size: 16px;
    color: #666;
}

/* ============================================
   SHOW MORE BUTTON
   ============================================ */
.show-more-container {
    text-align: center;
    margin-top: 32px;
}

.btn-show-more {
    display: inline-block;
    padding: 12px 32px;
    font-family: "Figtree", sans-serif;
    color: #001489;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    font-weight: 600;
    font-size: 20px;
    line-height: 101%;
    letter-spacing: 0.20px;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 2.5%;
    text-decoration-skip-ink: auto;
}

.btn-show-more:hover {
    color: #1a3278;
    text-decoration: underline;
}

/* ============================================
   DOCUMENT TABS (Reference Pages)
   ============================================ */
.document-reference-pages-section {
    background-color: #ffffff;
}
.document-reference-pages-section .document-container{
    padding-top: 150px;
}

.trade-documents-title {
    color: #001489;
    margin-bottom: 16px;
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
    font-size: 54px;
    line-height: 101%;
    letter-spacing: 0.54px;
    margin-top: 0;
}

.trade-documents-description {
    width: 75%;
    color: #001489;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0.16px;
}

/* Breadcrumb */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 135%;
    letter-spacing: 0.14px;
    margin-bottom: 83px;
}

.breadcrumb-link {
    color: #929292;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #224196;
}

.breadcrumb-separator {
    color: #929292;
}

.breadcrumb-current {
    color: #000000;
    font-weight: 600;
}

.trade-documents-subtitle {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 101%;
    letter-spacing: 0.20px;
    color: #001489;
    margin-bottom: 23.5px;
}

/* Tabs */
.document-tabs {
    width: 90%;
    display: flex;
    gap: 24px;
}

.tab-btn {
    width: 100%;
    padding: 14px 32px;
    background: white;
    border: 1px solid #001489;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 120%;
    letter-spacing: 0.15px;
    text-align: center;
    text-transform: capitalize;
    color: #001489;
}

.tab-btn:hover {
    border-color: #001489;
    color: #001489;
}

.tab-btn.active {
    background: #001489;
    border-color: #001489;
    color: white;
}

/* Search Box */
.document-search-box {
    position: relative;
    width: 60%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    margin-bottom: 46px;
}

.document-search-input {
    border: 0;
    border-bottom: 1px solid #000000;
    font-size: 14px;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: 0.16px;
    color: #001489;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
}

.document-search-input::placeholder {
    color: #001489;
}
.document-search-input:focus {
    outline: none;
    border: 0;
    border-bottom: 1px solid #001489;
    box-shadow: none;
}

.search-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #000000;
    cursor: pointer;
}
.document-item-type {
    margin: 0 40px 0 10px;
}
.document-item-type .type-badge {
    font-family: "Figtree", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: 0.16px;
    text-transform: capitalize;
    color: #001489;
}

.document-list-single {
    margin-bottom: 40px;
}
/* ============================================
   FIXED DOWNLOAD TOOLBAR
   ============================================ */
.document-list-wrapper {
    position: relative;
}

.fixed-download-toolbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
    z-index: 100;
    pointer-events: auto;
}

/* Hide document item action when in selection mode */
.new-document-list-component.selection-mode .document-item-action {
    display: none !important;
}

.btn-fixed-download {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: #001489;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-family: "Figtree", sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 20, 137, 0.3);
    white-space: nowrap;
}

.btn-fixed-download:hover:not(:disabled) {
    background: #1a3278;
    box-shadow: 0 6px 16px rgba(0, 20, 137, 0.4);
}

.btn-fixed-download:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-fixed-download svg {
    flex-shrink: 0;
}

.btn-fixed-download .download-text {
    font-weight: 600;
}

.document-reference-pages-section .new-landing-hero__breadcrumb{
    padding-top: 56px;
    margin-bottom: 83px;
}

/* Responsive */
@media (max-width: 1024px) {
    .document-reference-pages-section .document-container{
        display: flex;
        flex-direction: column;
        padding-top: 80px;
    }

    .document-reference-pages-section .new-landing-hero__breadcrumb{
        order: -1;
        padding-top: 30px;
        margin-bottom: 0px;
    }

    .document-reference-pages-section .trade-documents-title {
        order: 0;
    }

    .document-reference-pages-section .trade-documents-description {
        order: 1;
    }

    .document-reference-pages-section .trade-documents-subtitle {
        order: 2;
    }

    .document-reference-pages-section .document-tabs {
        order: 3;
    }
    .container-document-list {
        display: flex;
        flex-direction: column;
    }

    .breadcrumb-nav {
        order: -1;
        margin-bottom: 28px;
        margin-top: 40px;
    }

    .trade-documents-title {
        order: 0;
        font-size: 32px;
        margin-bottom: 0px;
        margin-top: 20px;
    }

    .trade-documents-description {
        order: 1;
        width: 100%;
        margin-bottom: 49px;
        margin-top: 19px;
    }
    .trade-documents-description p{
        margin: 0;
    }

    .trade-documents {
        order: 2;
        margin-top: 0;
    }
    .document-tabs {
        gap: 16px;
        flex-direction: column;
        margin-bottom: 70px;
    }

    .tab-btn {
        width: 100%;
        font-size: 13px;
    }
    .document-list-item.selected {
        background-color: transparent !important;
    }
}
@media (max-width: 768px) {
    .document-list-single {
        margin-bottom: 20px;
    }
    .document-item-type {
        display: none;
    }
    .document-tabs {
        width: 100%;
    }
    
    .document-search-box {
        width: 100%;
    }
    .document-list-item {
        background-color: transparent;
        padding: 0;
        gap: 14px;
    }
    .document-list-single {
        gap: 12px;
    }
    .document-item-checkbox, .document-item-title , .document-item-action{
        background-color: #F5F5F5;
        padding: 8px;
        transition: background-color 0.2s ease;
    }
    
    .document-list-item.selected .document-item-checkbox,
    .document-list-item.selected .document-item-title,
    .document-list-item.selected .document-item-action {
        background-color: #00148933;
    }
    .document-item-action a{
        display: flex;
    }
    .document-item-checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
    
    .document-item-checkbox input[type="checkbox"]:checked::after {
        left: 6px;
        top: 2px;
        width: 4px;
        height: 9px;
    }
    .document-item-title {
        margin-top: 0;
    }
    .document-item-title a {
        font-size: 12px;
    }
    .show-more-container {
        margin-top: 0;
        margin-bottom: 70px;
    }
    
    .btn-show-more {
        font-size: 16px;
    }

    /* Fixed Download Toolbar - Mobile */
    .fixed-download-toolbar {
        padding: 12px 16px;
    }

    .btn-fixed-download {
        padding: 12px 32px;
        font-size: 14px;
    }
}
