.ep-admin-pasti-page .fi-ta-filters .fi-fieldset {
    border: 1px solid #e4e9e3;
    border-radius: 12px;
}
/* PASTI view and form cards. */
.ep-admin-pasti-page .fi-fieldset {
    border: 1px solid #e4e9e3;
    border-radius: 12px;
}
.ep-pasti-photo {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #e4e9e3;
    border-radius: 12px;
    background: #fbfcfa;
    font-size: 13px;
    font-weight: 600;
    word-break: break-all;
}
.ep-pasti-photo img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 8px;
}
.ep-pasti-photo-empty {
    color: #5f6b5b;
}
.ep-pasti-fees-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #e4e9e3;
    border-radius: 12px;
}
.ep-pasti-fees {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ep-pasti-fees th,
.ep-pasti-fees td {
    padding: 10px 12px;
    border-bottom: 1px solid #e4e9e3;
    text-align: left;
    white-space: nowrap;
}
.ep-pasti-fees th {
    background: #f6fbf3;
    font-weight: 600;
    color: #1f2a22;
}
.ep-pasti-fees tbody tr:last-child td {
    border-bottom: 0;
}
.ep-pasti-fees .ep-pasti-fees-num,
.ep-pasti-fees th + th {
    text-align: right;
}
.ep-pasti-fees small {
    color: #5f6b5b;
}
.ep-pasti-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: 10px;
}
.ep-pasti-photos-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 8px;
    border: 1px solid #e4e9e3;
    border-radius: 10px;
    background: #fbfcfa;
}
.ep-pasti-photos-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}
.ep-pasti-photos-item figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #122019;
}
.ep-pasti-photos-remove {
    color: #b91c1c;
    font-weight: 700;
}
.ep-pasti-photos-remove:hover {
    text-decoration: underline;
}
@media print {
    /* Grid boxes that avoid a page break can overlap on paper. */
    .ep-admin-pasti-page .fi-grid {
        display: block !important;
    }
    .ep-admin-pasti-page .fi-grid > * + * {
        margin-top: 12px;
    }
}
.ep-pasti-subheading {
    display: inline-flex;
    align-items: center;
}
.ep-social-link-page {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e1e8dd;
    border-radius: 12px;
    background: #fbfcfa;
}
.ep-social-link-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.ep-social-link-actions,
.ep-social-link-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.ep-social-link-own {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #dbe3d7;
    font-size: 13px;
}
.ep-social-link-own label {
    font-weight: 700;
}
.ep-social-link-row {
    margin-top: 8px;
}
.ep-social-link-input {
    flex: 1 1 260px;
}
.ep-social-link-error {
    margin-top: 6px;
    color: #b42318;
}
.ep-social-link-note {
    margin-top: 8px;
    color: #55645a;
}
.ep-social-counts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.ep-social-counts > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(20, 40, 20, 0.06);
}
.ep-social-counts span {
    font-size: 13px;
    color: #55645a;
}
.ep-social-counts b {
    font-size: 24px;
    color: #122019;
}
.ep-social-counts b.is-ok {
    color: #1a5c04;
}
.ep-social-counts b.is-bad {
    color: #b42318;
}
.ep-sp {
    display: grid;
    gap: 18px;
}
.ep-sp-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.ep-sp-tiles > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f4f7f2;
}
.ep-sp-tiles span {
    font-size: 12px;
    color: #55645a;
}
.ep-sp-tiles b {
    font-size: 24px;
    font-weight: 800;
    color: #1f2a22;
}
.ep-sp section {
    display: grid;
    gap: 8px;
}
.ep-sp h4 {
    font-size: 13px;
    font-weight: 700;
    color: #1f2a22;
}
.ep-sp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.ep-sp-split {
    display: flex;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2ec;
}
.ep-sp-split i.is-boys,
.ep-sp-legend i.is-boys {
    background: #2563eb;
}
.ep-sp-split i.is-girls,
.ep-sp-legend i.is-girls {
    background: #db2777;
}
.ep-sp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 13px;
    color: #55645a;
}
.ep-sp-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ep-sp-legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}
.ep-sp-legend b {
    color: #1f2a22;
}
.ep-sp-row {
    display: grid;
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) 2.5rem;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.ep-sp-row > span {
    overflow: hidden;
    color: #3b4a3f;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ep-sp-row em {
    height: 8px;
    border-radius: 999px;
    background: #eef2ec;
}
.ep-sp-row em i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #2fa308;
}
.ep-sp-row b {
    text-align: right;
    color: #1f2a22;
}
.ep-sp-none {
    font-size: 13px;
    color: #8a978d;
}
.ep-sp-quota {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    padding: 10px 12px;
    border: 1px solid #e1e8dd;
    border-radius: 10px;
    font-size: 13px;
}
.ep-sp-quota span {
    color: #55645a;
}
.ep-sp-quota b {
    color: #1f2a22;
}
.ep-sp-quota small {
    margin-left: auto;
    font-size: 12px;
    color: #55645a;
}
.ep-pasti-photos-item a {
    cursor: zoom-in;
}
.ep-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 56px 64px;
    background: rgba(10, 20, 12, 0.86);
}
.ep-photo-lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 112px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    object-fit: contain;
}
.ep-photo-lightbox-close,
.ep-photo-lightbox-nav {
    position: absolute;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.ep-photo-lightbox-close:hover,
.ep-photo-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.26);
}
.ep-photo-lightbox-close svg,
.ep-photo-lightbox-nav svg {
    width: 22px;
    height: 22px;
}
.ep-photo-lightbox-close {
    top: 16px;
    right: 16px;
}
.ep-photo-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}
.ep-photo-lightbox-nav.is-prev {
    left: 12px;
}
.ep-photo-lightbox-nav.is-next {
    right: 12px;
}
.ep-photo-lightbox-count {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 639px) {
    .ep-photo-lightbox {
        padding: 56px 12px;
    }
}
.ep-gallery {
    display: grid;
    gap: 8px;
}
.ep-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
/* Two tiles a row on a 360px phone. */
.ep-gallery-tile,
.ep-gallery-add {
    position: relative;
    flex: 0 0 auto;
    width: min(180px, calc(50% - 5px));
    aspect-ratio: 1;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
}
.ep-gallery-tile {
    border: 1px solid #e4e9e3;
    background: #fbfcfa;
}
.ep-gallery-tile.is-main {
    border: 2px solid #37a014;
}
.ep-gallery-tile > a,
.ep-gallery-tile img,
.ep-gallery-tile svg {
    display: block;
    width: 100%;
    height: 100%;
}
.ep-gallery-tile img {
    object-fit: cover;
}
.ep-gallery-missing {
    display: grid;
    place-items: center;
    height: 100%;
    font-size: 12px;
    color: #5f6b5b;
}
.ep-gallery-badge {
    position: absolute;
    left: 6px;
    top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px 2px 6px;
    border-radius: 999px;
    background: #37a014;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.ep-gallery-badge svg {
    width: 13px;
    height: 13px;
}
.ep-gallery-remove {
    position: absolute;
    right: 6px;
    top: 6px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .72);
    color: #fff;
}
.ep-gallery-remove:hover,
.ep-gallery-remove:focus-visible {
    background: #b91c1c;
}
.ep-gallery-remove svg {
    width: 16px;
    height: 16px;
}
.ep-gallery-make-main {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    padding: 5px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    color: #1f5f0b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.ep-gallery-make-main:hover {
    background: #fff;
    text-decoration: underline;
}
.ep-gallery-confirm {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 8px;
    background: rgba(17, 24, 39, .82);
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}
.ep-gallery-confirm div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.ep-gallery-confirm button {
    padding: 5px 10px;
    border-radius: 8px;
    background: #fff;
    color: #122019;
    font-size: 12px;
    font-weight: 700;
}
.ep-gallery-confirm button.is-danger {
    background: #dc2626;
    color: #fff;
}
.ep-gallery-default figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: #1f5f0b;
}
.ep-gallery-default svg {
    height: calc(100% - 26px);
}
.ep-gallery-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px dashed #9bd17f;
    background: #f6fbf3;
    color: #1f5f0b;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.ep-gallery-add:hover,
.ep-gallery-add:focus-within {
    border-color: #37a014;
    background: #eef7ea;
}
.ep-gallery-add.is-busy {
    cursor: progress;
    opacity: .75;
}
.ep-gallery-add svg {
    width: 30px;
    height: 30px;
}
.ep-gallery-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.ep-gallery-hint {
    font-size: 12px;
    color: #5f6b5b;
}
.ep-gallery-error {
    color: var(--danger-600, #dc2626);
    font-size: 13px;
}
