/* Changelog Container Styling */

/* Set consistent width for changelog container */
.changelog-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Responsive width adjustments */
@media (max-width: 1240px) {
    .changelog-container {
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    .changelog-container {
        margin: 0 16px;
        max-width: none;
    }
}

/* Table description styling in header */
.table-description {
  color: black;
  font-size: 13px;
  margin-top: 8px;
  margin-bottom: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Add underline to section titles */
.changelog-container .section-card-title {
    border-bottom: none !important;
    padding-bottom: 8px !important;
    width: 100% !important;
    position: relative !important;
}

.changelog-container .section-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #0039A6;
}

/* Remove card padding and make it behave like section-card */
.changelog-container .card {
    padding: 0 !important;
}

/* Adjust header layout for description */
.changelog-container .section-card-header {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: 20px 24px 16px 24px;
    border-bottom: none !important;
}

.changelog-container .section-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

/* Override collapsible tab styling */
.changelog-container .collapsible-tab .section-card-header {
    padding: 20px 24px 16px 24px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure collapsible content can expand to full height */
.changelog-container .collapsible-tab.expanded .section-card-content {
    max-height: none !important;
    height: auto !important;
}

/* Fix spacing between header border and message-box */
.changelog-container .section-card-header .message-box {
    margin-top: 0px !important;
    width: 100%;
    box-sizing: border-box;
}

.changelog-container .section-card-header i {
    position: absolute;
    top: 16px;
    right: 20px;
}

/* Disable padding transitions to avoid animation glitches */
.changelog-container .collapsible-tab .section-card-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Only enable transitions after JS has initialized (when body has 'js-loaded' class) */
body.js-loaded .changelog-container .collapsible-tab .section-card-content {
    transition: max-height 0.3s ease, opacity 0.3s ease !important;
}

/* Apply padding only when expanded */
.changelog-container .collapsible-tab.expanded .section-card-content {
    padding: 8px 20px 16px 20px !important;
    margin: 0 !important;
}

/* Reduce gaps at top and bottom of collapsible content */
.changelog-container .collapsible-tab .section-card-content > *:first-child,
.changelog-container .collapsible-tab .section-card-body > *:first-child {
    margin-top: 0 !important;
}

.changelog-container .collapsible-tab .section-card-content > *:last-child,
.changelog-container .collapsible-tab .section-card-body > *:last-child {
    margin-bottom: 0 !important;
}

/* Reduce gaps at top and bottom of collapsible content */
.changelog-container .static-card .section-card-content > *:first-child,
.changelog-container .static-card .section-card-body > *:first-child {
    margin-top: 0 !important;
}

.changelog-container .static-card .section-card-content > *:last-child,
.changelog-container .static-card .section-card-body > *:last-child {
    margin-bottom: 0 !important;
}

/* Tighter padding on section-card-body - reduced top padding for closer spacing to header */
.changelog-container .section-card-body {
    padding: 8px 24px 16px 24px !important;
}

/* Apply same padding to static cards */
.changelog-container .static-card .section-card-body {
    padding: 0px 24px 16px 24px !important;
}