:root {
    /* Harmonious HSL Color Palette */
    --bg-color: hsl(240, 25%, 7%);
    --card-bg: hsla(240, 25%, 12%, 0.45);
    --card-border: hsla(240, 25%, 30%, 0.25);
    --accent-start: hsl(263, 90%, 65%);
    --accent-end: hsl(300, 85%, 60%);
    --text-primary: hsl(0, 0%, 96%);
    --text-secondary: hsl(240, 12%, 80%);
    --text-muted: hsl(240, 8%, 65%);
    
    /* Status Colors */
    --status-green: hsl(145, 80%, 50%);
    --status-red: hsl(0, 85%, 60%);
    --status-orange: hsl(35, 90%, 55%);
    
    /* Fonts */
    --font-display: 'Outfit', 'Noto Sans JP', sans-serif;
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, hsla(263, 60%, 15%, 0.4) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, hsla(300, 60%, 15%, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, hsla(240, 25%, 7%, 1) 0%, hsla(240, 25%, 5%, 1) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Glow Elements */
.ambient-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: float-glow 10s ease-in-out infinite alternate;
}

.ambient-glow-1 {
    top: 15%;
    left: 10%;
}

.ambient-glow-2 {
    bottom: 15%;
    right: 10%;
    animation-delay: -5s;
}

@keyframes float-glow {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-20px) scale(1.1); }
}

/* Header & Navbar */
header {
    background: hsla(240, 25%, 7%, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: url(#logo-gradient);
    stroke-width: 2.5;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
}

/* Main Content Wrapper */
main.container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    z-index: 10;
}

/* Search Layout */
.search-header {
    text-align: center;
    margin-bottom: 3rem;
}

.search-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

/* Search Statistics */
.search-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem auto 2rem;
    max-width: 600px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 170px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    opacity: 0.8;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: hsla(263, 90%, 65%, 0.4);
    box-shadow: 0 10px 20px hsla(240, 25%, 2%, 0.4);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.25rem;
    letter-spacing: 0.05em;
}

.search-box-wrapper {
    max-width: 680px;
    margin: 1.5rem auto 1rem;
    position: relative;
}

.search-input {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 1.1rem 1.5rem 1.1rem 3.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    outline: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: hsla(263, 90%, 65%, 0.6);
    box-shadow: 0 0 20px hsla(263, 90%, 65%, 0.25);
    background: hsla(240, 25%, 15%, 0.6);
}

.search-icon {
    position: absolute;
    left: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    stroke: var(--text-muted);
    fill: none;
    pointer-events: none;
}

.search-indicator {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--accent-start);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.htmx-request .search-indicator {
    opacity: 1;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Filters Layout */
.filters-container {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-select {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.filter-select:focus, .filter-select:hover {
    border-color: hsla(263, 90%, 65%, 0.4);
    color: var(--text-primary);
}

/* Grid layout for drug cards */
.drugs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.drug-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.drug-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsla(263, 90%, 65%, 0.05), hsla(300, 85%, 60%, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.drug-card:hover {
    transform: translateY(-5px);
    border-color: hsla(263, 90%, 65%, 0.35);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35), 0 0 25px hsla(263, 90%, 65%, 0.1);
}

.drug-card:hover::before {
    opacity: 1;
}

.drug-card-header {
    margin-bottom: 1rem;
}

.drug-brand {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
}

.drug-brand:hover {
    color: var(--accent-start);
}

.drug-brand-kana {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.drug-generic {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.drug-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.badge-tag {
    background: hsla(240, 25%, 18%, 0.7);
    border: 1px solid hsla(240, 25%, 35%, 0.3);
    color: var(--text-secondary);
}

.badge-danger {
    background: hsla(0, 85%, 60%, 0.15);
    border: 1px solid hsla(0, 85%, 60%, 0.4);
    color: var(--status-red);
}

.badge-warning {
    background: hsla(35, 90%, 55%, 0.15);
    border: 1px solid hsla(35, 90%, 55%, 0.4);
    color: var(--status-orange);
}

.drug-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid hsla(240, 25%, 30%, 0.15);
    padding-top: 1rem;
    margin-top: auto;
}

.yj-code-text {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Common Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: hsla(240, 25%, 18%, 0.8);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: hsla(240, 25%, 25%, 0.8);
    border-color: hsla(240, 25%, 45%, 0.4);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent-start);
    color: var(--text-primary);
}

/* Compare Toggle Button inside cards */
.compare-btn-toggle {
    background: hsla(240, 25%, 15%, 0.6);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.compare-btn-toggle:hover {
    border-color: var(--accent-start);
    color: var(--text-primary);
}

.compare-btn-toggle.active {
    background: hsla(263, 90%, 65%, 0.2);
    border-color: var(--accent-start);
    color: #ffffff;
}

.compare-btn-toggle.active .icon-plus {
    display: none;
}

.compare-btn-toggle .icon-check {
    display: none;
}

.compare-btn-toggle.active .icon-check {
    display: inline-block;
}

/* Floating Comparison Drawer */
.compare-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: hsla(240, 25%, 10%, 0.9);
    border-top: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.compare-drawer.show {
    transform: translateY(0);
}

.drawer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.drawer-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.drawer-title {
    font-size: 1rem;
    font-weight: 600;
}

.drawer-items-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.drawer-item-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: hsla(240, 25%, 20%, 0.7);
    border: 1px solid var(--card-border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.drawer-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.drawer-item-remove:hover {
    color: var(--status-red);
}

.drawer-actions {
    display: flex;
    gap: 1rem;
}

/* Detail View Layout */
.back-link-wrapper {
    margin-bottom: 2rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
}

@media (max-width: 992px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.side-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.side-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-start);
    padding-left: 0.5rem;
}

.detail-meta-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
}

.detail-meta-item {
    font-size: 0.85rem;
}

.detail-meta-label {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.15rem;
}

.detail-meta-value {
    color: var(--text-primary);
    font-weight: 500;
}

.main-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Critical Warning Banners */
.critical-alerts-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.critical-alert {
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.critical-alert-danger {
    background: hsla(0, 85%, 60%, 0.1);
    border: 1px solid hsla(0, 85%, 60%, 0.3);
}

.critical-alert-warning {
    background: hsla(35, 90%, 55%, 0.08);
    border: 1px solid hsla(35, 90%, 55%, 0.3);
}

.critical-alert-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.critical-alert-danger .critical-alert-icon {
    stroke: var(--status-red);
}

.critical-alert-warning .critical-alert-icon {
    stroke: var(--status-orange);
}

.critical-alert-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.critical-alert-danger h4 { color: var(--status-red); }
.critical-alert-warning h4 { color: var(--status-orange); }

.critical-alert-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

/* Content Sections */
.detail-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.detail-section h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid hsla(240, 25%, 30%, 0.2);
    padding-bottom: 0.75rem;
}

.detail-section-icon {
    width: 24px;
    height: 24px;
    stroke: var(--accent-start);
    fill: none;
}

.section-text-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

/* Side Effects Table */
.side-effects-table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.side-effects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.side-effects-table th, .side-effects-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid hsla(240, 25%, 30%, 0.15);
}

.side-effects-table th {
    color: var(--text-muted);
    font-weight: 600;
}

.side-effects-table tbody tr:hover {
    background: hsla(240, 25%, 15%, 0.3);
}

/* Comparison View */
.compare-container {
    overflow-x: auto;
    margin-top: 2rem;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

.compare-table th, .compare-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid hsla(240, 25%, 30%, 0.2);
    vertical-align: top;
}

.compare-table tr:last-child th, .compare-table tr:last-child td {
    border-bottom: none;
}

.compare-row-header {
    width: 180px;
    font-weight: 600;
    color: var(--text-muted);
    background: hsla(240, 25%, 10%, 0.5);
    border-right: 1px solid hsla(240, 25%, 30%, 0.2);
    position: sticky;
    left: 0;
    z-index: 10;
}

.compare-col {
    min-width: 250px;
    border-right: 1px solid hsla(240, 25%, 30%, 0.2);
}

.compare-col:last-child {
    border-right: none;
}

.compare-header-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.compare-val-cell {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

.compare-val-cell-warning {
    background: hsla(35, 90%, 55%, 0.05);
}

.compare-val-cell-danger {
    background: hsla(0, 85%, 60%, 0.05);
}

.compare-remove-col {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

.compare-remove-col:hover {
    color: var(--status-red);
}

/* No results state */
.no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    margin-top: 2rem;
    color: var(--text-secondary);
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Footer styling */
footer {
    background: hsla(240, 25%, 5%, 0.9);
    border-top: 1px solid var(--card-border);
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: auto;
    z-index: 10;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Diff Highlight Classes */
.diff-line {
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 0.15rem 0.5rem;
    white-space: pre-wrap;
    border-radius: 2px;
}

.diff-del {
    background-color: hsla(0, 85%, 60%, 0.15);
    color: #ff8080;
    border-left: 3px solid var(--status-red);
}

.diff-add {
    background-color: hsla(145, 80%, 50%, 0.15);
    color: #80ff80;
    border-left: 3px solid var(--status-green);
}

.diff-meta {
    background-color: hsla(240, 25%, 30%, 0.25);
    color: var(--text-muted);
}

@media print {
    /* Reset background for print */
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt !important;
    }
    
    /* Hide navbar, footer, buttons, tabs, floating drawers */
    header, footer, .back-link-wrapper, .tabs-container, .compare-drawer, button, .compare-btn-toggle, #revision-history-content {
        display: none !important;
    }
    
    /* Layout resets */
    main.container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    .detail-layout {
        display: block !important;
    }
    
    /* Format side panel basic info as a clean top card */
    .side-panel {
        width: 100% !important;
        margin-bottom: 2rem !important;
    }
    
    .side-card {
        background: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 8px !important;
        padding: 1rem !important;
        box-shadow: none !important;
    }
    
    .side-card h3 {
        border-left: 3px solid #000000 !important;
        color: #000000 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .detail-meta-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    .detail-meta-item {
        margin-bottom: 0 !important;
        border-bottom: 1px solid #e9ecef !important;
        padding-bottom: 0.25rem !important;
    }
    
    .detail-meta-label {
        color: #495057 !important;
        font-size: 8.5pt !important;
    }
    
    .detail-meta-value {
        color: #000000 !important;
        font-size: 10pt !important;
    }
    
    /* Format main panel */
    .main-panel {
        width: 100% !important;
        display: block !important;
    }
    
    /* Current content panel always visible */
    #current-pi-content {
        display: block !important;
    }
    
    /* Warnings & Alerts formatting */
    .critical-alert {
        background: #fff5f5 !important;
        border: 2px solid #ffc9c9 !important;
        color: #b00020 !important;
        border-radius: 8px !important;
        margin-bottom: 1.5rem !important;
        padding: 1rem !important;
        page-break-inside: avoid !important;
    }
    
    .critical-alert-warning {
        background: #fff9db !important;
        border: 2px solid #ffe066 !important;
        color: #d9480f !important;
    }
    
    .critical-alert-content h4 {
        color: inherit !important;
        font-weight: 700 !important;
    }
    
    .critical-alert-body {
        color: #000000 !important;
        white-space: pre-wrap !important;
    }
    
    /* Sections layout */
    .detail-section {
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid #dee2e6 !important;
        padding: 1rem 0 !important;
        margin-bottom: 1rem !important;
        page-break-inside: avoid !important;
    }
    
    .detail-section h2 {
        color: #000000 !important;
        border-bottom: 1.5px solid #000000 !important;
        font-size: 13pt !important;
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.25rem !important;
    }
    
    .detail-section-icon {
        display: none !important;
    }
    
    .section-text-content {
        color: #000000 !important;
        font-size: 10pt !important;
        line-height: 1.5 !important;
        white-space: pre-wrap !important;
    }
    
    /* Side effects table print optimization */
    .side-effects-table-wrapper {
        margin-top: 0.5rem !important;
    }
    
    .side-effects-table {
        border: 1px solid #dee2e6 !important;
    }
    
    .side-effects-table th {
        background: #f1f3f5 !important;
        color: #000000 !important;
        border-bottom: 2px solid #dee2e6 !important;
    }
    
    .side-effects-table td {
        color: #000000 !important;
        border-bottom: 1px solid #dee2e6 !important;
    }
    
    .side-effects-table tr {
        page-break-inside: avoid !important;
    }
}
