/* Practice-specific styles only - base styles come from guide.css */

/* Event Agenda table (full table with thead) */
.event-table {
    box-sizing: border-box;
    width: 100%;
    margin: 1em 0;
    counter-reset: event-table-counter 0;
}

.event-table td {
    vertical-align: top;
    text-align: left;
    padding: 0.2em 0.5em;
}

.event-table thead {
    background-color: var(--base-color-8);
    color: var(--base-color-1);
    text-align: center;
    font-size: 1.1em;
}

.event-table > tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.5);
}

.event-table > tbody tr:nth-child(odd) {
    background-color: rgba(240, 240, 240, 0.5);
}

.event-table > tbody td:first-child:before {
    counter-increment: event-table-counter 1;
    content: counter(event-table-counter) " - ";
}

/* Execution table (simple 2-column info table) */
.event-info-table {
    background: hsl(210 80% 95% / 0.2);
}

.event-info-table tr {
    background: hsl(210 80% 95% / 0.2);
}

.event-info-table td {
    padding-inline: 0.75rem;
}



/* Dark mode support for practice-specific elements */
@media (prefers-color-scheme: dark) {
    .event-table thead {
        background-color: #1f2a44;
        color: #e5e7eb;
    }

    .event-table > tbody tr:nth-child(even) {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .event-table > tbody tr:nth-child(odd) {
        background-color: rgba(255, 255, 255, 0.02);
    }

    .event-table td {
        color: #e5e7eb;
    }

    .event-info-table {
        background: #1a2332;
    }

    .event-info-table tr {
        background: #1a2332;
    }

    .event-info-table td {
        color: #e5e7eb;
    }

    table tbody tr {
        background-color: transparent !important;
    }

    table tbody tr[style*="background"] {
        background: rgba(255, 255, 255, 0.05) !important;
    }

    table[style*="background"] {
        background: rgba(255, 255, 255, 0.05) !important;
    }

    table tr[style*="background"] {
        background: rgba(255, 255, 255, 0.05) !important;
    }

    table td[style*="background"] {
        background: rgba(255, 255, 255, 0.05) !important;
    }

    table[style*="hsl(210"] {
        background: rgba(255, 255, 255, 0.05) !important;
    }

    table tr[style*="hsl(210"] {
        background: rgba(255, 255, 255, 0.05) !important;
    }

    table td[style*="hsl(210"] {
        background: rgba(255, 255, 255, 0.05) !important;
    }
}

/* Event Navigator Styles */
/* Base navigator (mobile-first): just a normal block */
#event-navigator-container {
    margin: 1rem auto;
    display: block;
    overflow: visible; /* Allow shadows to bleed */
}

.event-navigator-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    overflow: visible; /* Allow shadows to bleed */
}

/* Header wrapper so the float is contained */
#event-purpose .event-header::after {
    content: "";
    display: block;
    clear: both;
}

/* Desktop: float navigator right, text wraps around it */
@media screen and (min-width: 1200px) {
    #event-purpose .event-header {
        width: 100%;
    }

    #event-navigator-container {
        float: right;
        width: 360px;
        margin: 0 0 1.5rem 2rem; /* space to the left and bottom */
    }

    /* #event-purpose .event-header-text - normal block; text auto-wraps around the float */

    /* Tables inside the header should use remaining width */
    #event-purpose .event-info-table {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Optional: tiny tweak for small screens */
@media screen and (max-width: 1199px) {
    #event-navigator-container {
        width: 100%;
        margin-bottom: 1.5rem;
    }
}

/* On wide screens, keep the execution info table in the text column
   instead of stretching under the navigator */
@media screen and (min-width: 1200px) {
    #event-purpose > div > .event-info-table {
        clear: none;                       /* don't clear the navigator float */
        max-width: calc(100% - 420px);     /* 400px navigator + ~20px gap */
        width: auto;                       /* don't force 100% width */
        margin-left: 0;
        margin-right: 0;
    }
}

@media print {
    .no-print {
    display: none !important;
    }

    .btn-secondary {
        display: none !important;
    }

    #facilitator-tools-content {
        display: block !important;
    }

    #event-navigator-container {
        display: none !important;
    }
}

