/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #3b82f6;
    text-shadow: none;
    color: white;
}

::selection {
    background: #3b82f6;
    text-shadow: none;
    color: white;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #374151;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Modern Dark Theme - Sopwise.ai inspired
   ========================================================================== */

* {
    box-sizing: border-box;
}

html,
body,
html *,
body * {
    background: #0a0a0a !important;
    background-color: #0a0a0a !important;
    color: #e5e7eb !important;
    border-color: #374151 !important;
}

html,
body {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.6;
    font-weight: 400;
}

body {
    padding: 1rem !important;
}

/* Semantic UI Dark Theme Override */
body.ui.inverted,
body.ui.inverted.dark,
.ui.inverted {
    background: #0a0a0a !important;
    background-color: #0a0a0a !important;
    color: #e5e7eb !important;
}

/* Dark theme containers */
.ui.inverted.container-fluid,
.ui.inverted.container,
.ui.inverted.grid,
.ui.inverted.column {
    background: transparent !important;
    color: #e5e7eb !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #f9fafb !important;
    margin: 0 0 1rem 0;
    font-weight: 600;
    font-family: 'Poppins', sans-serif !important;
    line-height: 1.3;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p, ul, ol, table, pre, dl {
    margin: 0 0 1rem 0;
    color: #d1d5db;
}

a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #93c5fd;
}

/* Enhanced Modern Card Components with Glassmorphism */
.modern-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.9) 0%, rgba(31, 41, 55, 0.9) 100%);
    border: 1px solid rgba(55, 65, 81, 0.3);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Floating Action Elements */
.floating-element {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(55, 65, 81, 0.3);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.floating-element:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* Header styling */
.ui.horizontal.list {
    background: linear-gradient(145deg, #111827 0%, #1f2937 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem !important;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.ui.horizontal.list .item {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ui.horizontal.list .item img {
    vertical-align: middle !important;
    margin-right: 1rem !important;
    margin-bottom: 0 !important;
}

.ui.horizontal.list .item h2 {
    margin: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* Basic Dropdown Styling */
.ui.dropdown {
    background: linear-gradient(145deg, #111827 0%, #1f2937 100%) !important;
    border: 1px solid #374151 !important;
    border-radius: 12px !important;
    color: #e5e7eb !important;
    font-family: 'Poppins', sans-serif !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.ui.dropdown:hover {
    border-color: #3b82f6 !important;
}

.ui.dropdown.active {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.ui.dropdown.processing {
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ui.dropdown > .dropdown.icon {
    color: #9ca3af !important;
}

.ui.dropdown > .text,
.ui.dropdown > .default.text {
    color: #e5e7eb !important;
}

.ui.dropdown > .default.text {
    opacity: 0.7;
}

/* Dropdown Menu */
.ui.dropdown .menu {
    background: #1f2937 !important;
    border: 1px solid #374151 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2) !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}

.ui.dropdown .menu > .item {
    background: transparent !important;
    color: #e5e7eb !important;
    border: none !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.2s ease !important;
}

.ui.dropdown .menu > .item:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #f9fafb !important;
}

.ui.dropdown .menu > .item.selected {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #f9fafb !important;
}

/* Search Input in Dropdown - Following Semantic UI Documentation */
.ui.search.dropdown > input.search {
    background: transparent !important;
    border: none !important;
    color: #e5e7eb !important;
    font-family: 'Poppins', sans-serif !important;
    padding: 0.67em 1em !important;
    width: 100% !important;
    outline: none !important;
}

.ui.search.dropdown > input.search:focus {
    background: transparent !important;
}

/* Enhanced Icons for Actions and Drugs */
#action-dropdown > .stethoscope.icon,
#drug-dropdown > .pills.icon {
    color: #60a5fa !important;
    font-size: 1.2rem !important;
    margin-right: 0.75rem !important;
}

/* Enhanced Checkbox styling */
.ui.toggle.checkbox input:checked ~ .box:before, 
.ui.toggle.checkbox input:checked ~ label:before {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3) !important;
}

.ui.toggle.checkbox label {
    color: #e5e7eb !important;
    font-weight: 500;
}

/* Modern Button Styles */
.modern-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.modern-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.modern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(59, 130, 246, 0.4);
}

.modern-button:hover::before {
    left: 100%;
}

.modern-button:active {
    transform: translateY(0);
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Input Labels */
.ui.label {
    background: linear-gradient(145deg, #374151 0%, #4b5563 100%) !important;
    color: #e5e7eb !important;
    border: 1px solid #6b7280 !important;
    border-radius: 6px !important;
    font-weight: 500;
}

/* Shell Panel */
#shell-panel {
    height: 500px !important;
    background: transparent !important;
    color: #e2e8f0 !important;
    padding: 1.5rem !important;
    margin: 1rem 0 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    overflow: auto !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

/* Monitor Container */
#monitor-container {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1px solid #334155 !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4) !important;
    padding: 1.5rem !important;
    margin: 1rem 0 !important;
}

#monitor-container.ui.segment {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1px solid #334155 !important;
}

/* Vital Parameters */
#vitalParam {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

#vitalParam > div > div {
    padding: 0.5rem;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid currentColor;
    font-weight: 600;
    font-size: 1.1rem;
}

#hf { color: #10b981 !important; }
#hf #hfvalue { color: #10b981 !important; }
#bp { color: #ef4444 !important; }
#bp #bpvalue { color: #ef4444 !important; }
#sat { color: #06b6d4 !important; }
#sat #satvalue { color: #06b6d4 !important; }
#co2 { color: #f59e0b !important; }
#co2 #co2value { color: #f59e0b !important; }
#temp { color: #f97316 !important; }
#temp #tempvalue { color: #f97316 !important; }

/* Enhanced Log Box with Better Visual Hierarchy */
#logBox {
    background: linear-gradient(145deg, #111827 0%, #1f2937 100%);
    border: 1px solid #374151;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.3);
    position: relative;
    backdrop-filter: blur(10px);
    display: none;
}

/* Progress Indicator */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(55, 65, 81, 0.5);
    border-radius: 2px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced Log Entries */
.log-entry {
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.log-entry:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: translateX(5px);
}

.log-entry.success {
    border-left-color: #22c55e;
}

.log-entry.error {
    border-left-color: #ef4444;
}

.log-entry.warning {
    border-left-color: #f59e0b;
}

/* Enhanced Icons */
.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

#logBox::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.5), transparent);
}

#logBox h5 {
    color: #f9fafb !important;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

#log {
    text-align: left !important;
    direction: ltr !important;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #d1d5db;
}

/* Tables - Modern Data Display */
.ui.inverted.table {
    background: linear-gradient(145deg, #111827 0%, #1f2937 100%) !important;
    color: #e5e7eb !important;
    border: 1px solid #374151 !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.ui.inverted.table thead th {
    background: linear-gradient(145deg, #374151 0%, #4b5563 100%) !important;
    color: #f9fafb !important;
    border: none !important;
    padding: 1rem !important;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ui.inverted.table td {
    background: transparent !important;
    color: #d1d5db !important;
    border: none !important;
    border-bottom: 1px solid #374151 !important;
    padding: 0.75rem 1rem !important;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.ui.inverted.table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.05) !important;
}

/* Modals - Modern Dialog Interface */
.ui.modal {
    background: linear-gradient(145deg, #111827 0%, #1f2937 100%) !important;
    color: #e5e7eb !important;
    border: 1px solid #374151 !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(20px);
}

.ui.modal > .header {
    background: linear-gradient(145deg, #1f2937 0%, #374151 100%) !important;
    color: #f9fafb !important;
    border-bottom: 1px solid #4b5563 !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 1.5rem !important;
    font-weight: 600;
}

.ui.modal > .close.icon {
    color: #9ca3af !important;
    font-size: 1.5rem !important;
    transition: color 0.2s ease;
}

.ui.modal > .close.icon:hover {
    color: #f9fafb !important;
}

/* Segments */
.ui.inverted.segment,
.ui.segment {
    background: linear-gradient(145deg, #111827 0%, #1f2937 100%) !important;
    color: #e5e7eb !important;
    border: 1px solid #374151 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2) !important;
}

/* Timers and Tools */
.timers-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tools-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0.5rem;
}

.caseTimer, .cprTimer {
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.cprTimer {
    background: rgba(34, 197, 94, 0.1);
    color: #6ee7b7;
    border-color: rgba(34, 197, 94, 0.2);
}

.cprNummer, .defiNummer {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-weight: 700;
    font-size: 0.75rem;
    backdrop-filter: blur(5px);
}

.cprNummer {
    color: #22d3ee;
}

.defiNummer {
    color: #fbbf24;
}

/* Code styling */
code {
    background: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.875rem;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

/* Enhanced Mobile Experience */
.mobile-enhanced .ui.dropdown {
    min-height: 48px; /* Better touch targets */
}

.mobile-enhanced .modern-button,
.mobile-enhanced .ui.button {
    min-height: 44px;
    padding: 0.75rem 1rem;
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .ui.dropdown:hover {
        transform: none;
    }

    .modern-card:hover {
        transform: none;
    }

    .ui.dropdown:active {
        transform: scale(0.98);
    }
}

/* Fix any potential overflow issues that might clip dropdowns */
.ui.grid > .column {
    overflow: visible !important;
    position: relative !important;
    z-index: auto !important;
}

.ui.inverted.container-fluid,
.ui.inverted.container,
.ui.inverted.grid {
    overflow: visible !important;
    position: relative !important;
    z-index: auto !important;
}

/* Ensure proper stacking context for dropdown containers */
#menu {
    position: relative !important;
    z-index: 1000 !important;
    isolation: isolate !important;
}

#menu .ui.grid > .column {
    position: relative !important;
    z-index: inherit !important;
}

/* Enhanced Responsive Design */
@media only screen and (max-width: 768px) {
    body {
        padding: 0.5rem !important;
    }

    .ui.horizontal.list {
        padding: 0.75rem !important;
        border-radius: 12px;
    }

    #shell-panel {
        height: 350px !important;
        padding: 1rem !important;
        font-size: 13px !important;
        border-radius: 12px;
    }

    #monitor-container {
        padding: 1rem !important;
        border-radius: 12px;
        margin: 0.5rem 0;
    }

    #vitalParam > div > div {
        font-size: 1rem;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    /* Better spacing for mobile */
    .ui.grid > .column {
        padding: 0.5rem !important;
    }

    .ui.stackable.grid > .column {
        margin-bottom: 1rem;
    }

    /* Enhanced touch targets */
    .ui.dropdown .menu > .item {
        padding: 1rem !important;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

@media only screen and (max-width: 480px) {
    .ui.horizontal.list {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .ui.horizontal.list .item {
        margin: 0;
    }

    #shell-panel {
        height: 300px !important;
        font-size: 12px !important;
    }
}

/* Focus states for accessibility */
.focused {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.clicked {
    transform: scale(0.95);
}

/* Custom scrollbars for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(55, 65, 81, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, #374151, #4b5563);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, #4b5563, #6b7280);
}

/* Enhanced animations and transitions */* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading {
    animation: pulse 2s infinite;
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ECG images preload */
#preload { background: url(/img/AtrialFibrillation.gif) no-repeat -9999px -9999px; }
#preload { background: url(/img/AtrialFlutter.gif) no-repeat -9999px -9999px; }
#preload { background: url(/img/Brady.gif) no-repeat -9999px -9999px; }
#preload { background: url(/img/MultiPVC.gif) no-repeat -9999px -9999px; }
#preload { background: url(/img/SinusTach.gif) no-repeat -9999px -9999px; }
#preload { background: url(/img/SR.gif) no-repeat -9999px -9999px; }
#preload { background: url(/img/SVT.gif) no-repeat -9999px -9999px; }
#preload { background: url(/img/VF.gif) no-repeat -9999px -9999px; }
#preload { background: url(/img/VT.gif) no-repeat -9999px -9999px; }
#preload { background: url(/img/stemi.gif) no-repeat -9999px -9999px; }
#preload { background: url(/img/CPR.gif) no-repeat -9999px -9999px; }

/* Print styles */
@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}