/* =============================================
   MSB Shareholder Meeting Element
   ============================================= */

.msb-sm-inner {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Header ---- */
.msb-sm__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
}

.msb-sm__title {
    font-size: 26px;
    font-weight: 700;
    color: #091E42;
    margin: 0;
    line-height: 36px;
}

/* ---- Year Select ---- */
.msb-sm__year-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.msb-sm__year-select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1px solid #DEE5EF;
    border-radius: 8px;
    padding: 8px 40px 8px 16px;
    font-size: 15px;
    color: #0d1b3e;
    cursor: pointer;
    outline: none;
    min-width: 200px;
    min-height: 44px;
    margin-bottom: 0;
    box-shadow: none;
}

.msb-sm__year-select:focus {
    border-color: #0d1b3e;
}

.msb-sm__year-select-arrow {
    position: absolute;
    right: 12px;
    pointer-events: none;
    color: #0d1b3e;
    display: flex;
    align-items: center;
}

/* ---- Tabs ---- */
.msb-sm__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.msb-sm__tab {
    padding: 8px 20px;
    border-radius: 32px;
    border: 1.5px solid #DEE5EF;
    background: #fff;
    color: #091E42;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    margin: 0;
    text-transform: none;
    line-height: 24px;
}

.msb-sm__tab.is-active,
.msb-sm__tab:hover:not(.is-active) {
    border-color: #F8A06D;
    color: #F4600C;
    background: #FEEFE7;
}

/* ---- List wrap ---- */
.msb-sm__list-wrap {
    position: relative;
}

.msb-sm__list-wrap.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ---- Pack row ---- */
.msb-sm__pack {
    display: grid;
    grid-template-columns: 33.3333333333% 1fr;
    gap: 24px;
    align-items: start;
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

/* ---- Pack left ---- */
.msb-sm__pack-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msb-sm__pack-name {
    font-size: 18px;
    font-weight: 700;
    color: #091E42;
    margin: 0;
    line-height: 24px;
}

.msb-sm__pack-date {
    font-size: 14px;
    color: #505F79;
    margin: 0;
    font-weight: 4;
}

/* ---- Download all button ---- */
.msb-sm__btn-download-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #F4600C;
    border-radius: 8px;
    color: #F4600C;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    align-self: flex-start;
    margin: 0;
    text-transform: none;
    line-height: 20px;
}

.msb-sm__btn-download-all:hover {
    background: #FEEFE7;
    color: #F4600C;
    text-decoration: none;
}

.msb-sm__btn-download-all svg {
    flex-shrink: 0;
}

/* ---- File links list ---- */
.msb-sm__pack-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msb-sm__file-link {
    font-size: 16px;
    font-weight: 500;
    color: #F4600C;
    text-decoration: none;
    transition: color 0.2s;
    padding: 10px 12px;
    line-height: 24px;
}

.msb-sm__file-link:hover {
    color: #d94e00;
    text-decoration: underline;
}

/* ---- Empty ---- */
.msb-sm__empty {
    color: #9ca3af;
    font-size: 14px;
    padding: 24px 0;
}

/* ---- Pagination ---- */
.msb-sm__pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 32px;
    padding: 8px 16px;
}

.msb-sm__pagination .page-list li {
    margin-bottom: 0px !important;
}

.msb-sm__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    background-color: transparent;
    color: #091E42;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.msb-sm__pagination .page-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.msb-sm__pagination .page-numbers.current,
.msb-sm__pagination .page-numbers:hover:not(.current):not(.disabled){
    background: transparent;
    border-color: #F8A06D;
    color: #F4600C;
}

.msb-sm__pagination .page-numbers.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.msb-sm__pagination .page-numbers.prev img,
.msb-sm__pagination .page-numbers.next img {
    width: 16px;
    height: 16px;
}

.msb-sm__pagination .page-numbers.prev img {
    transform: rotate(180deg);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .msb-sm__pack {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .msb-sm__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .msb-sm__year-select {
        min-width: 160px;
    }
}
