/* ===================================
   ST Unit Trust - Frontend Styles
   =================================== */

/* Reset & Base */
.st-ut-wrapper {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.st-ut-wrapper *,
.st-ut-wrapper *::before,
.st-ut-wrapper *::after {
    box-sizing: border-box;
}

/* ===== Title ===== */
.st-ut-title {
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    margin: 0 0 28px;
    padding: 0;
    letter-spacing: -0.02em;
    color: #c5281c;
}

/* ===== Filter Bar ===== */
.st-ut-filter-bar {
    margin: 40px 0 20px;
}

.st-ut-filter-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.st-ut-filter-item {
    position: relative;
    flex: 1;
    min-width: 160px;
}

.st-ut-filter-select {
    position: relative;
}

.st-ut-select {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: none !important;
    font: 400 14px 'Prompt' !important;
    color: #C8102E;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.st-ut-select:focus {
    outline: none;
    border-color: #C8102E;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.st-ut-select-arrow {
    position: absolute;
    right: 12px;
    top: 44%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
}

.st-ut-input {
    width: 100%;
    padding: 10px 36px 10px 15px !important;
    border: none !important;
    font: 400 14px 'Prompt' !important;
    color: #333;
    background: #fff !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.st-ut-input:focus {
    outline: none;
    border-color: #C8102E;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.st-ut-input::placeholder {
    color: #aaa;
}

#st-ut-ann-date-range.st-ut-input::placeholder {
    color: #C8102E;
}

.st-ut-date-icon,
.st-ut-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    display: flex;
}

.st-ut-filter-actions {
    display: flex;
    gap: 7px;
    align-items: center;
    flex: 0 0 auto;
    min-width: auto;
    flex-direction: column;
}

/* Buttons */
.st-ut-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
    text-decoration: none;
    text-align: right;
    border-radius: 3px;
}

.st-ut-btn-primary {
    background: #c5281c !important;
    color: #fff !important;
}

.st-ut-btn-primary:hover {
    background: #a50d25;
}

.st-ut-btn-clear {
    color: #C8102E !important;
    font-size: 15px;
    font-family: inherit;
    font-weight: 300;
    text-decoration: underline !important;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
}

.st-ut-btn-clear:hover {
    color: #a50d25;
}

/* ===== Data Table ===== */
.st-ut-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.st-ut-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
}

.st-ut-table thead {
    background: #f2bcba;
}

.st-ut-table thead th {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    border: none;
    border: 3px solid #fff;
}

.st-ut-table thead th:first-child {
    border-left: none;
}

.st-ut-table thead th:last-child {
    border-right: none;
}

.st-ut-table tbody tr {
    border-top: 4px solid #f7f7f7;
    border-bottom: 4px solid #f7f7f7;
    background-color: #fff;
    transition: background 0.15s;
}

.st-ut-table tbody tr:hover {
    background: #fafafa;
}

.st-ut-table tbody tr:nth-child(even) {
    background: #e4e7ec;
}

.st-ut-table tbody tr:nth-child(even):hover {
    background: #f5f5f5;
}

.st-ut-table tbody td {
    padding: 3px 10px;
    vertical-align: middle;
    border: none;
    background: none !important;
}

.st-ut-table tbody tr td:first-child {
    padding: 0;
}

/* Risk Level Badge */
.st-ut-risk-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid #c21b17;
    background: #fff;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    color: #c21b17;
}

.st-ut-risk-1 {
    background: #4CAF50;
}

.st-ut-risk-2 {
    background: #8BC34A;
}

.st-ut-risk-3 {
    background: #CDDC39;
}

.st-ut-risk-4 {
    background: #FFEB3B;
}

.st-ut-risk-5 {
    background: #FFC107;
}

.st-ut-risk-6 {
    background: #FF9800;
}

.st-ut-risk-7 {
    background: #FF5722;
    color: #fff;
}

.st-ut-risk-8 {
    background: #F44336;
    color: #fff;
}

.st-ut-risk-9 {
    background: #B71C1C;
    color: #fff;
}

/* Fund info cell */

.st-ut-td-risk {
    width: 200px;
}

.st-ut-td-actions {
    width: 150px;
}

.st-ut-fund-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 10px;
}

.st-ut-fund-code {
    font-weight: 700;
    color: #222;
}

.st-ut-fund-name {
    display: block;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    text-overflow: ellipsis;
    width: 400px;
    overflow: hidden;
    white-space: nowrap;
}

/* NAV cell */
.st-ut-td-nav {
    text-align: left;
}

.st-ut-td-change {
    text-align: left;
}

.st-ut-td-date {
    text-align: left;
}

.st-ut-td-actions {
    position: relative;
}

.st-ut-actions-cell {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.st-ut-nav-value {
    font-weight: 600;
    font-size: 14px;
    color: #222;
    min-width: 80px;
}

.st-ut-nav-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
}

.st-ut-nav-change.positive {
    color: #2E7D32;
}

.st-ut-nav-change.negative {
    color: #C62828;
}

.st-ut-nav-n-a {
    color: #888;
    font-size: 13px;
}

.st-ut-nav-change .arrow {
    font-size: 11px;
}

.st-ut-nav-date {
    color: #888;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.st-ut-nav-date svg {
    flex-shrink: 0;
}

/* Action button */
#st-ut-nav-table .st-ut-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px !important;
    border: 1px solid #C8102E !important;
    border-radius: 6px;
    color: #C8102E !important;
    background: #fff !important;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    width: 131px;
    justify-content: flex-start;
}

#st-ut-nav-table .st-ut-btn:hover {
    background: #C8102E;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(200, 16, 46, 0.25);
}

/* Icon-only action buttons */
#st-ut-nav-table .st-ut-btn-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0 !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 24px 24px !important;
    border: none !important;
    background-color: transparent !important;
    font-size: 0 !important;
    line-height: 0;
    overflow: hidden;
    text-indent: -9999px;
    box-shadow: none !important;
}

#st-ut-nav-table .st-ut-btn-icon:hover {
    background-color: transparent !important;
    transform: translateY(-2px) scale(1.15);
    box-shadow: none !important;
}

#st-ut-nav-table .st-ut-btn-prospectus {
    background-image: url(../images/icon-fund-factsheet.svg) !important;
}

#st-ut-nav-table .st-ut-btn-performance.disabled,
#st-ut-nav-table .st-ut-btn-prospectus.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

#st-ut-nav-table .st-ut-btn-performance {
    background-image: url(../images/icon-summarize.svg) !important;
}

/* Expand row toggle */

.st-ut-row-expandable td:last-child {
    position: relative;
}

.st-ut-expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    margin-left: 8px;
    color: #fff;
    vertical-align: middle;
    position: absolute;
    right: 0;
    top: 0;
    background-color: #c5281c;
    cursor: pointer;
}

.st-ut-expand-icon.disabled {
    background-color: #ccc;
    cursor: default;
    pointer-events: none;
    opacity: 0.6;
}

.st-ut-row-expandable .st-ut-expand-icon svg {
    transition: transform 0.3s ease;
}

.st-ut-row-expandable.expanded .st-ut-expand-icon svg {
    transform: rotate(180deg);
}

/* Expanded content row */
.st-ut-expanded-row {
    background: #f9f9f9 !important;
}

.st-ut-expanded-row:hover {
    background: #f9f9f9 !important;
}

.st-ut-expanded-content {
    padding: 0;
}

.st-ut-expanded-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}

.st-ut-expanded-table thead {
    background: transparent;
}

.st-ut-expanded-table thead th {
    padding: 15px 12px !important;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    border: none !important;
    background: #ebebeb !important;
}

.st-ut-expanded-table thead tr,
.st-ut-expanded-table tbody tr {
    border: none !important;
}

.st-ut-expanded-table tbody td {
    padding: 15px 12px !important;
    border: none !important;
    background-color: #fff !important;
}

.st-ut-expanded-table .st-ut-btn-file {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #C8102E;
    background: #fff;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.st-ut-expanded-table .st-ut-btn-file:hover {
    border-color: #C8102E;
    color: #C8102E;
}

/* ===== Announcement Table Specifics ===== */
.st-ut-table-announcements .st-ut-th-ann-fund {
    width: 120px;
}

.st-ut-table-announcements .st-ut-th-ann-subject {
    width: auto;
}

.st-ut-table-announcements .st-ut-th-ann-date {
    width: 170px;
}

.st-ut-table-announcements .st-ut-th-ann-file {
    width: 110px;
}

.st-ut-ann-date-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
}

.st-ut-btn-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid #C8102E;
    border-radius: 10px;
    color: #C8102E !important;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.st-ut-btn-file:hover {
    background: #fff5f5;
}

.st-ut-btn-file svg {
    flex-shrink: 0;
}

/* ===== No Data ===== */
.st-ut-no-data {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.st-ut-no-data p {
    margin-top: 12px;
    font-size: 15px;
}

/* ===== Loading ===== */
.st-ut-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: #888;
    font-size: 14px;
}

.st-ut-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #eee;
    border-top-color: #C8102E;
    border-radius: 50%;
    animation: st-ut-spin 0.8s linear infinite;
}

@keyframes st-ut-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Pagination ===== */
.st-ut-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-top: 4px;
    flex-wrap: wrap;
    gap: 12px;
}

.st-ut-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    position: relative;
}

.st-ut-select-small {
    padding: 6px 28px 6px 10px;
    border: none;
    width: 60px;
    font-family: inherit;
    font-size: 13px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    cursor: pointer;
    color: #B71C1C;
    margin-left: 10px;
}

.st-ut-select-arrow-small {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    display: flex;
}

.st-ut-page-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.st-ut-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    margin: 0 1px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: none !important;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.st-ut-page-btn:hover {
    border-color: #C8102E;
    color: #C8102E;
}

.st-ut-page-btn.active {
    color: #C8102E !important;
    border-color: #C8102E;
    font-weight: 600;
}

.st-ut-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.st-ut-page-dots {
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    color: #999;
    font-size: 14px;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .st-ut-wrapper {
        padding: 12px 10px 30px;
    }

    .st-ut-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .st-ut-filter-bar {
        padding: 16px;
        border-radius: 8px;
    }

    .st-ut-filter-row {
        flex-direction: column;
        gap: 10px;
    }

    .st-ut-filter-item {
        min-width: 100%;
        flex: none;
    }

    .st-ut-filter-actions {
        gap: 8px;
        width: 100%;
    }

    .st-ut-btn {
        width: 100% !important;
        padding: 12px 20px;
    }

    .st-ut-btn-clear {
        margin-left: auto;
    }

    /* Mobile table - card style */
    .st-ut-table thead {
        display: none;
    }

    .st-ut-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 14px;
        border-bottom: 1px solid #eee;
        gap: 8px;
    }

    .st-ut-table tbody tr:nth-child(even) {
        background: #fff;
    }

    .st-ut-table tbody td {
        padding: 0;
        border: none;
    }

    /* Unit Value mobile */
    #st-ut-nav-table tbody td.st-ut-td-risk {
        flex: 0 0 100%;
    }

    #st-ut-nav-table tbody td.st-ut-td-fund {
        flex: 0 0 100%;
        min-width: 0;
    }

    .st-ut-fund-name {
        width: 100%;
        overflow: visible;
        white-space: normal;
    }

    #st-ut-nav-table tbody td.st-ut-td-nav {
        flex: 0 0 30%;
        padding-top: 8px;
    }

    #st-ut-nav-table tbody td.st-ut-td-change {
        flex: 0 0 30%;
        padding-top: 8px;
    }

    #st-ut-nav-table tbody td.st-ut-td-date {
        flex: 0 0 30%;
        padding-top: 8px;
    }

    #st-ut-nav-table tbody td.st-ut-td-actions {
        flex: 0 0 100%;
        padding-top: 8px;
        border-top: 1px solid #eee;
    }

    .st-ut-fund-cell {
        gap: 10px;
        padding: 12px 10px;
    }

    .st-ut-actions-cell {
        flex-wrap: wrap;
        flex-direction: row;
        gap: 8px 16px;
        justify-content: flex-end;
    }

    .st-ut-expand-icon {
        position: static;
        height: 30px;
    }

    #st-ut-nav-table .st-ut-btn {
        width: auto !important;
    }

    /* Announcement mobile */
    .st-ut-table-announcements tbody tr {
        gap: 6px;
    }

    .st-ut-table-announcements .st-ut-td-ann-fund {
        flex: 0 0 100%;
        width: 100%;
    }

    .st-ut-table-announcements .st-ut-td-ann-subject {
        padding-top: 5px;
        padding-bottom: 7px;
    }

    .st-ut-table-announcements .st-ut-td-ann-date {
        flex: 0 0 49%;
        padding-top: 7px;
    }

    .st-ut-table-announcements .st-ut-td-ann-file {
        flex: 0 0 49%;
        text-align: right !important;
    }

    /* Expanded content mobile */
    .st-ut-expanded-content {
        padding: 0 8px 12px 8px;
    }

    .st-ut-expanded-table thead {
        display: none;
    }

    .st-ut-expanded-table tbody tr {
        display: flex;
        flex-direction: column;
        padding: 8px 0;
        gap: 4px;
    }

    .st-ut-expanded-table tbody td {
        padding: 2px 0;
    }

    /* Pagination mobile */
    .st-ut-pagination {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .st-ut-page-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== Animations ===== */
.st-ut-table tbody tr {
    animation: st-ut-fadeIn 0.3s ease;
}

@keyframes st-ut-fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.st-ut-expanded-content {
    animation: st-ut-slideDown 0.3s ease;
}

@keyframes st-ut-slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* ===== Flatpickr overrides ===== */
.flatpickr-calendar {
    font-family: 'Prompt', sans-serif !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #C8102E !important;
    border-color: #C8102E !important;
}

.flatpickr-day.inRange {
    background: rgba(200, 16, 46, 0.1) !important;
    border-color: rgba(200, 16, 46, 0.1) !important;
    box-shadow: -5px 0 0 rgba(200, 16, 46, 0.1), 5px 0 0 rgba(200, 16, 46, 0.1) !important;
}

.flatpickr-day:hover {
    background: rgba(200, 16, 46, 0.08) !important;
    border-color: rgba(200, 16, 46, 0.2) !important;
}

/* Flatpickr month/year dropdown selects */
.flatpickr-calendar .flatpickr-monthDropdown-months,
.flatpickr-calendar .numInput.cur-year {
    display: inline-block !important;
}

/* Mobile card layout - announcement fund cell */
@media (max-width: 768px) {
    .st-ut-table-announcements .st-ut-fund-cell {
        font-size: 14px;
    }

    .st-ut-ann-subject-text {
        font-size: 13px;
        color: #555;
        line-height: 1.5;
    }
}

/* ===== Performance Popup Modal ===== */
.st-ut-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: st-ut-overlayFadeIn 0.2s ease;
}

@keyframes st-ut-overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.st-ut-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    animation: st-ut-modalSlideUp 0.3s ease;
}

@keyframes st-ut-modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.st-ut-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    border-color: #fff !important;
}

.st-ut-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.st-ut-modal-header {
    background: #c5281c;
    padding: 18px 24px;
    text-align: center;
}

.st-ut-modal-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    letter-spacing: 0.02em;
}

.st-ut-modal-body {
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.st-ut-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 50px 20px;
    color: #888;
    font-size: 14px;
}

.st-ut-modal-error {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.st-ut-modal-error p {
    margin: 0;
    font-size: 15px;
}

/* Performance Table */
.st-ut-perf-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.st-ut-perf-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 13px;
}

.st-ut-perf-table thead {
    background: #f2bcba;
}

.st-ut-perf-table thead th {
    padding: 12px 10px;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    border: 2px solid #fff;
    color: #333;
}

.st-ut-perf-table thead th.st-ut-perf-th-fund {
    text-align: left;
    min-width: 160px;
    border-left: none;
}

.st-ut-perf-table thead th:last-child {
    border-right: none;
}

.st-ut-perf-table tbody td {
    padding: 14px 10px;
    text-align: center;
    font-size: 13px;
    color: #444;
    border: none;
    background: #f9f9f9;
    width: 500px;
}

.st-ut-perf-table tbody td.st-ut-perf-td-fund {
    text-align: left;
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    padding: 14px 12px;
}

.st-ut-perf-table tbody tr:nth-child(even) td {
    background: #e8ebf0;
}

.st-ut-perf-table tbody tr {
    border-bottom: 1px solid #eee;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .st-ut-modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .st-ut-modal {
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
        max-width: 100%;
    }

    .st-ut-modal-header {
        padding: 14px 16px;
    }

    .st-ut-modal-title {
        font-size: 16px;
    }

    .st-ut-perf-table {
        font-size: 11px;
    }

    .st-ut-perf-table thead th {
        padding: 8px 6px;
        font-size: 10px;
    }

    .st-ut-perf-table tbody td {
        padding: 10px 6px;
        font-size: 11px;
    }
}

/* ===== Prospectus PDF Modal ===== */
.st-ut-modal-pdf {
    max-width: 90vw;
    width: 90vw;
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.st-ut-modal-body-pdf {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

#st-ut-prospectus-content {
    flex: 1;
    display: flex;
    min-height: 0;
}

#st-ut-prospectus-iframe {
    width: 100%;
    height: 100%;
    flex: 1;
    border: none;
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .st-ut-modal-pdf {
        max-width: 100%;
        width: 100%;
        height: 95vh;
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
    }
}