.ep-fee-table {
    overflow-x: auto;
}
.ep-fee-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.ep-fee-table th,
.ep-fee-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e4e9e3;
    text-align: left;
}
.ep-fee-table th {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}
.ep-fee-table .ep-fee-num {
    text-align: right;
    white-space: nowrap;
}
.ep-fee-table .ep-fee-strong td {
    font-weight: 700;
}
.ep-fee-table .ep-fee-empty {
    text-align: center;
    color: #6b7280;
}
.ep-fee-icon {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    color: #237a06;
}
.ep-fee-table a:focus-visible {
    outline: 2px solid #237a06;
    outline-offset: 2px;
}
.ep-fee-status p {
    margin: 12px 0;
    color: #4b5563;
}
.ep-fee-badges {
    display: inline-flex;
    gap: 6px;
}
.ep-fee-example {
    border: 1px solid #e4e9e3;
    border-radius: 12px;
    padding: 14px 16px;
    background: #f6faf5;
    align-self: start;
}
.ep-fee-example small {
    display: block;
    color: #6b7280;
    margin: 4px 0 8px;
}
.ep-fee-example table {
    width: 100%;
    border-collapse: collapse;
}
.ep-fee-example td {
    padding: 4px 0;
    border-top: 1px solid #e4e9e3;
}
.ep-fee-num {
    text-align: right;
    white-space: nowrap;
}
.ep-admin-fees-page .fi-ta-text-input {
    min-width: 90px;
}

.ep-counter-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ep-slip-check { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.ep-slip-proof { border: 1px solid #e4e9e3; border-radius: .75rem; background: #f6f8f5; min-height: 20rem; overflow: auto; }
.ep-slip-proof img { display: block; width: 100%; height: auto; }
.ep-slip-proof iframe { width: 100%; height: 60vh; border: 0; }
.ep-slip-meta { margin-top: .5rem; color: #5f6b63; font-size: .875rem; }
@media (max-width: 768px) { .ep-slip-check { grid-template-columns: 1fr; } }
@media print { .fi-sidebar, .fi-topbar, .fi-header-actions, .fi-page-header-actions { display: none !important; } }
.ep-whatsapp { display: grid; gap: .75rem; }
.ep-whatsapp-text { width: 100%; padding: .75rem; border: 1px solid #e4e9e3; border-radius: .75rem; background: #f6f8f5; font-size: .875rem; }
.ep-whatsapp-text:focus { outline: 2px solid #2fa50b; outline-offset: 1px; }
.ep-fee-table a:focus-visible { outline: 2px solid #2fa50b; outline-offset: 1px; }
.ep-fee-table td a { color: #1d5a0c; }

/* Add-on header: name, then how many shown students are ticked. */
.ep-extra-head { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; }
.ep-extra-head small { font-size: .7rem; font-weight: 500; color: #6b7280; white-space: nowrap; }

/* Phones too keep the add-on names in view on a long list. */
@media screen and (max-width: 39.98rem) {
    .ep-extras-table .fi-ta-content-ctn:has(> .fi-ta-table > thead) { max-height: max(20rem, calc(100dvh - var(--topbar-height, 4rem) - 9rem)); overflow: auto; }
    .ep-extras-table .fi-ta-content-ctn > .fi-ta-table > thead { position: sticky; top: 0; z-index: 3; background: #f6f8f5; }
}

/* Students chosen: count, select-all and the add-on buttons float at the bottom. */
.ep-extras-table { --ep-bulk-w: min(40rem, calc(100% - 1rem)); }
.ep-extras-table:has(.fi-ta-selection-indicator:not([hidden])) { margin-bottom: 8rem; }
.ep-extras-table .fi-ta-selection-indicator:not([hidden]) {
    position: fixed;
    z-index: 20;
    bottom: calc(.75rem + env(safe-area-inset-bottom));
    left: 50%;
    width: var(--ep-bulk-w);
    transform: translateX(-50%);
    box-sizing: border-box;
    padding: .75rem 1rem 3.75rem;
    border: 1px solid #cfe3c8;
    border-radius: .875rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
    font-weight: 600;
}
.ep-extras-table:has(.fi-ta-selection-indicator:not([hidden])) .fi-ta-header-toolbar > .fi-ta-actions {
    position: fixed;
    z-index: 21;
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    right: calc((100% - var(--ep-bulk-w)) / 2 + 1rem);
    flex-wrap: nowrap;
    gap: .5rem;
}
.ep-extras-table .fi-ta-selection-indicator .fi-ta-selection-indicator-actions-ctn { flex-wrap: wrap; }
@media print {
    .ep-extras-table .fi-ta-selection-indicator { display: none !important; }
}
