/* Corporate Disclosure Page */
/* Tab styles → dùng shared .tabs-nav / .tab-btn / .tab-content từ style.css */
/* Override: padding content cho trang này */
.tab-content {
    padding: 48px 0 80px;
}

/* Legal Profile - Tab 1 */
.cd-legal-table {
    min-width: 920px;
}

.cd-legal-table td {
    vertical-align: top;
}

.cd-legal-col-stt {
    width: 72px;
    font-weight: 600;
    color: var(--primary-color);
}

.cd-legal-col-item {
    width: 300px;
    font-weight: 600;
    color: var(--text-dark);
}

.cd-legal-col-content {
    color: var(--text-muted);
    line-height: 1.65;
}

.cd-legal-col-content strong {
    color: var(--text-dark);
}

.cd-shareholders-wrap {
    margin-top: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow-x: auto;
    background: #fff;
}

.cd-shareholders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.cd-shareholders-table thead {
    background: #f8fafc;
}

.cd-shareholders-table th,
.cd-shareholders-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
    font-size: 0.84rem;
    line-height: 1.55;
}

.cd-shareholders-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: #475569;
}

.cd-shareholders-table tbody tr:hover td {
    background: rgba(0, 123, 255, 0.05);
}

.cd-shareholders-table tbody tr:last-child td {
    border-bottom: none;
    font-weight: 700;
    color: var(--text-dark);
    background: rgba(0, 123, 255, 0.04);
}

/* Announcements - Tab 2 */
.cd-announce-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cd-announce-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.cd-announce-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 123, 255, 0.2);
    transform: translateY(-1px);
}

.cd-announce-date-box {
    flex-shrink: 0;
    width: 64px;
    text-align: center;
    padding: 8px 0;
}

.cd-announce-day {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.cd-announce-month {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cd-announce-body {
    flex: 1;
    min-width: 0;
}

.cd-announce-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.cd-announce-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

.cd-announce-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: rgba(0, 123, 255, 0.08);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 8px;
}

.cd-announce-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    align-self: center;
    transition: var(--transition);
}

.cd-announce-item:hover .cd-announce-arrow {
    color: var(--secondary-color);
    transform: translateX(4px);
}

/* Policies - Tab 3 */
.cd-policy-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cd-policy-block {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cd-policy-block .cd-table-wrapper {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

.cd-policy-block-head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(120deg, rgba(11, 22, 44, 0.03), rgba(0, 123, 255, 0.06));
}

.cd-policy-block-head h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.cd-policy-block-head p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cd-policy-table {
    min-width: 760px;
}

.cd-policy-stt {
    width: 70px;
}

.cd-policy-name {
    color: var(--text-dark);
}

.cd-policy-updated {
    width: 120px;
    color: var(--text-muted);
    white-space: nowrap;
}

.cd-policy-view {
    width: 140px;
    white-space: nowrap;
}

.cd-policy-view a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.84rem;
}

.cd-policy-view a:hover {
    filter: brightness(1.15);
}

/* Shareholder Tab */
.cd-sh-section {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.cd-sh-section:last-child {
    margin-bottom: 0;
}

.cd-sh-section .cd-table-wrapper {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

.cd-shareholder-table-main {
    min-width: 1060px;
}

.cd-shareholder-table-main th:nth-child(1),
.cd-shareholder-table-main td:nth-child(1) {
    width: 64px;
    white-space: nowrap;
}

.cd-shareholder-table-main th:nth-child(2),
.cd-shareholder-table-main td:nth-child(2) {
    min-width: 360px;
    width: 40%;
}

.cd-shareholder-table-main th:nth-child(3),
.cd-shareholder-table-main td:nth-child(3) {
    min-width: 160px;
    white-space: nowrap;
}

.cd-shareholder-table-main th:nth-child(4),
.cd-shareholder-table-main td:nth-child(4) {
    min-width: 220px;
    white-space: nowrap;
}

.cd-shareholder-table-main th:nth-child(5),
.cd-shareholder-table-main td:nth-child(5) {
    min-width: 120px;
    white-space: nowrap;
    text-align: right;
}

.cd-sh-section-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(120deg, rgba(11, 22, 44, 0.03), rgba(0, 123, 255, 0.06));
}

.cd-sh-section-title-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.cd-sh-section-header h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.cd-sh-section-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

.cd-sh-history {
    margin-top: 40px;
}

.cd-sh-history-header {
    margin-bottom: 20px;
}

.cd-sh-history-header h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 4px;
}

.cd-sh-history-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

.cd-sh-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: rgba(0, 123, 255, 0.08);
    color: var(--secondary-color);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
}

/* Shareholder history: search + pagination */
.cd-sh-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cd-sh-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.cd-sh-search-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.cd-sh-search {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    color: var(--text-dark);
    background: #fff;
    transition: var(--transition);
    box-sizing: border-box;
}

.cd-sh-search:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.cd-sh-search::placeholder {
    color: var(--text-muted);
}

.cd-sh-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.cd-sh-count strong {
    color: var(--primary-color);
}

.cd-announce-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cd-announce-item.cd-hidden {
    display: none;
}

.cd-sh-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: none;
}

/* Pagination — uses shared .pagination / .page-btn from style.css */
.cd-pagination {
    margin-top: 20px;
}

.cd-page-ellipsis {
    padding: 0 4px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Fee Table - Tab 4 */
.cd-fee-intro {
    max-width: 800px;
    margin-bottom: 32px;
}

.cd-fee-intro p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Year Selector */
.cd-year-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.cd-year-selector-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.cd-year-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cd-year-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 36px 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    min-width: 110px;
}

.cd-year-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

.cd-year-select-icon {
    position: absolute;
    right: 10px;
    pointer-events: none;
    color: var(--text-muted);
    display: flex;
}

.cd-fee-data {
    display: none;
}

.cd-fee-data.active {
    display: block;
}

.cd-table-wrapper {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cd-table {
    width: 100%;
    border-collapse: collapse;
}

.cd-table thead {
    background: var(--primary-color);
}

.cd-table th {
    padding: 14px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    text-align: left;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.cd-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.cd-table tbody tr:last-child {
    border-bottom: none;
}

.cd-table tbody tr:hover {
    background: rgba(0, 123, 255, 0.02);
}

.cd-table td {
    padding: 14px 20px;
    font-size: 0.88rem;
    color: var(--text-dark);
}

.cd-table td:first-child {
    font-weight: 500;
}

.cd-table .cd-year-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: rgba(0, 123, 255, 0.08);
    color: var(--secondary-color);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
}

.cd-section-header {
    margin-bottom: 32px;
}

.cd-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cd-section-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .cd-legal-table {
        min-width: 760px;
    }

    .cd-shareholder-table-main {
        min-width: 980px;
    }

    .cd-policy-table {
        min-width: 680px;
    }

    .cd-announce-item {
        flex-direction: column;
        gap: 12px;
    }

    .cd-announce-date-box {
        width: auto;
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .cd-announce-day {
        font-size: 1.2rem;
    }

    .cd-table-wrapper {
        overflow-x: auto;
    }

    .cd-shareholders-wrap {
        overflow-x: auto;
    }

    .tab-btn {
        padding: 14px 16px;
        font-size: 0.82rem;
    }
}