/* ============================================================================
   calendar-grid.css — shared TABLE/GRID + ACCORDION + SECTION-HEADER styles
   ----------------------------------------------------------------------------
   Ported from the Praxis Blazor app (colors preserved) so every Calendar page
   that shows a table or a collapsible/accordion section looks consistent.
   Apply: <table class="Grid">..., wrap with <div class="GridDiv">, use
   .collapsible-group / .collapsible-group-header / .collapsible-group-content
   for accordions, and .PageHeaderLabel for section title bars.
   ============================================================================ */

/* ---- Data grid / table ---- */
.Grid {
    border-collapse: collapse;
    border: 0 none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    width: 100%;
}

.Grid th {
    background-color: #262261;
    border: thin solid #000000;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    /* All column headings centered on every table (overrides per-column text-end/text-start). */
    text-align: center !important;
    padding: 6px 8px;
}

.Grid td {
    border: thin solid #000000;
    padding: 4px 8px;
    font-weight: bold;
}

/* All table text is bold EXCEPT form controls (entry boxes/dropdowns keep normal weight). */
.Grid td input,
.Grid td select,
.Grid td textarea {
    font-weight: normal;
}

.Grid tbody tr {
    background-color: #ffffff;
}

.Grid tbody tr:nth-child(even) {
    background-color: #bfdbff;
}

/* No hover background change on table rows (per request — applies to all .Grid tables). */

/* Explicit row-state classes (when alternating cannot be derived structurally) */
.GridRowStyle {
    background-color: #ffffff;
}

.GridAlternatingRowStyle {
    background-color: #bfdbff;
}

.GridSelectedRowStyle {
    background-color: #bcd7f1;
}

/* Rounded, clipped wrapper around a grid */
.GridDiv {
    border-radius: 8px;
    border: 1px solid #000000;
    margin: 3px 0;
    overflow: hidden;
    text-align: left;
}

/* ---- Collapsible / accordion panels ---- */
.collapsible-group {
    margin-bottom: 10px;
}

.collapsible-group-header {
    /* WebForms .accordionHeader: light-blue bar, black Arial 12px bold, black border. */
    background-color: #bfdbff;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #000000;
    border-radius: 4px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.collapsible-group-header:hover {
    background-color: #a9cdf5;
}

.collapsible-group-header .toggle-icon {
    transition: transform 0.15s ease;
    width: 14px;
    text-align: center;
}

.collapsible-group-content {
    padding: 12px;
    border: 1px solid #000000;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

/* ---- Section / page header bars ---- */
.PageHeaderLabel {
    background-color: #ADD8E6;
    border-radius: 8px;
    border: 1px solid #000000;
    color: #000000;
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14pt;
    font-weight: bold;
    margin: 10px auto;
    min-height: 20px;
    padding: 4px 8px;
    text-align: center;
    width: 100%;
}

.PageHeaderLabelMedium {
    background-color: #ADD8E6;
    border-radius: 8px;
    border: 1px solid #000000;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12pt;
    font-weight: bold;
    margin: 8px auto;
    padding: 3px 8px;
    text-align: center;
}
