/* Search Advocate — poster + live AJAX workspace */

.sa-page {
    min-height: 100vh;
    background: #eef1f6;
    color: #152033;
    overflow-x: hidden;
}

.sa-main {
    padding-top: 0;
    font-family: var(--font-hindi);
    overflow-x: hidden;
}

/* ── Poster ── */
.sa-poster {
    line-height: 0;
    background: #fff;
    animation: sa-fade-up 0.7s ease both;
}

.sa-poster img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* ── Workspace ── */
.sa-workspace {
    padding: 1.75rem 0 3rem;
    background:
        radial-gradient(ellipse 70% 40% at 50% -10%, rgba(26, 35, 126, 0.08), transparent 55%),
        linear-gradient(180deg, #e8ecf4 0%, #eef1f6 40%, #e7ebf3 100%);
}

.sa-workspace__inner {
    width: min(100% - 2rem, 920px);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.sa-toolbar {
    position: sticky;
    top: 0.75rem;
    z-index: 20;
    padding: 1.35rem 1.35rem 1.4rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(21, 32, 51, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 36px rgba(21, 32, 51, 0.08);
    animation: sa-fade-up 0.75s ease 0.08s both;
}

.sa-toolbar__label {
    margin: 0 0 0.45rem;
    font-family: var(--font-poppins);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1a237e;
}

.sa-toolbar__title {
    margin: 0 0 1.15rem;
    font-family: var(--font-source-sans);
    font-size: clamp(1.2rem, 2.6vw, 1.55rem);
    font-weight: 700;
    line-height: 1.35;
    color: #152033;
}

.sa-filter {
    display: grid;
    gap: 0.65rem;
}

.sa-filter__label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3.25rem;
    padding: 0.7rem 1rem 0.7rem 1rem;
    background: #f4f6fb;
    border: 1.5px solid transparent;
    border-radius: 14px;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.sa-filter__label:focus-within {
    background: #fff;
    border-color: #1a237e;
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.12);
}

.sa-filter__icon {
    display: inline-flex;
    color: #1a237e;
    flex: 0 0 auto;
}

.sa-filter__label input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 1.02rem;
    color: #152033;
    -webkit-appearance: none;
    appearance: none;
}

.sa-filter__label input::-webkit-search-decoration,
.sa-filter__label input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.sa-filter__label input::placeholder {
    color: #8b93a7;
}

.sa-filter__clear {
    flex: 0 0 auto;
    width: 1.8rem;
    height: 1.8rem;
    border: 0;
    border-radius: 999px;
    background: #dfe3ee;
    color: #44506a;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.sa-filter__clear[hidden] {
    display: none !important;
}

.sa-filter__status {
    font-family: var(--font-poppins);
    font-size: 0.8rem;
    color: #667085;
    min-height: 1.2em;
}

/* ── Board / states ── */
.sa-board {
    min-height: 260px;
    background: #fff;
    border: 1px solid rgba(21, 32, 51, 0.07);
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(21, 32, 51, 0.05);
    overflow: hidden;
    animation: sa-fade-up 0.8s ease 0.14s both;
}

.sa-state {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 0.45rem;
    padding: 3rem 1.5rem;
}

.sa-state[hidden] {
    display: none !important;
}

.sa-state__mark {
    width: 3.2rem;
    height: 3.2rem;
    display: grid;
    place-items: center;
    margin-bottom: 0.35rem;
    border-radius: 999px;
    background: #eef1f8;
    color: #1a237e;
    font-size: 1.4rem;
}

.sa-state h2 {
    margin: 0;
    font-family: var(--font-source-sans);
    font-size: 1.35rem;
    color: #152033;
}

.sa-state p {
    margin: 0;
    max-width: 28rem;
    color: #667085;
    line-height: 1.6;
}

.sa-state strong {
    color: #1a237e;
}

.sa-spinner {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 3px solid #d7dceb;
    border-top-color: #1a237e;
    animation: sa-spin 0.7s linear infinite;
}

.sa-list-wrap[hidden] {
    display: none !important;
}

.sa-list__head {
    padding: 1rem 1.15rem 0.65rem;
    border-bottom: 1px solid #eef0f5;
}

.sa-list__head h2 {
    margin: 0;
    font-family: var(--font-poppins);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #667085;
}

.sa-list {
    display: grid;
}

.sa-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
        "media body"
        "media actions";
    gap: 0.35rem 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #eef0f5;
    transition: background 0.15s;
    align-items: start;
}

.sa-row:last-child {
    border-bottom: 0;
}

.sa-row:hover {
    background: #f7f8fc;
}

.sa-row__media {
    grid-area: media;
    width: 72px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef1f8;
    border: 1px solid #e4e8f1;
}

.sa-row__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.sa-row__avatar {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-poppins);
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, #1a237e, #3949ab);
}

.sa-row__body {
    grid-area: body;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sa-row__actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    margin-top: 0.35rem;
}

.sa-row__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.sa-row__sno {
    font-family: var(--font-poppins);
    font-size: 0.72rem;
    font-weight: 700;
    color: #8b93a7;
}

.sa-row__enroll {
    font-family: var(--font-poppins);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #eef1f8;
    color: #1a237e;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-row__name {
    margin: 0 0 0.25rem;
    font-family: var(--font-source-sans);
    font-size: 1.05rem;
    font-weight: 700;
    color: #152033;
    text-transform: capitalize;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sa-row__father {
    margin: 0 0 0.75rem;
    font-size: 0.86rem;
    color: #667085;
    text-transform: capitalize;
    overflow-wrap: anywhere;
}

.sa-row__mobile {
    font-family: var(--font-poppins);
    font-size: 0.86rem;
    font-weight: 700;
    color: #1a237e;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-row__mobile--muted {
    color: #8b93a7;
    font-weight: 500;
}

.sa-row__slip {
    margin-left: auto;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    min-height: 2.5rem;
    background: #1a237e;
    color: #fff;
    font-family: var(--font-poppins);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.sa-row__slip:hover {
    background: #12184f;
    transform: translateY(-1px);
    filter: none;
}

/* ── Note ── */
.sa-note {
    display: grid;
    gap: 0.55rem;
    padding: 1.25rem 1.35rem;
    background: #152033;
    color: rgba(255, 255, 255, 0.82);
    border-radius: 18px;
    animation: sa-fade-up 0.85s ease 0.2s both;
}

.sa-note__greeting {
    margin: 0;
    font-family: var(--font-source-sans);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.45;
}

.sa-note__body {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.sa-note__body strong {
    color: #f8d148;
    font-weight: 700;
}

.sa-note__body em {
    font-style: normal;
    font-weight: 700;
    color: #fff;
}

.sa-note__phone {
    justify-self: start;
    margin-top: 0.25rem;
    font-family: var(--font-poppins);
    font-size: 1rem;
    font-weight: 700;
    color: #152033;
    background: #f8d148;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
}

/* ── Floating actions ── */
.sa-fab-stack {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
}

.sa-share-fab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    border: 0;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-family: var(--font-poppins);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(15, 20, 40, 0.22);
    -webkit-tap-highlight-color: transparent;
}

.sa-share-fab:hover {
    filter: brightness(1.05);
}

.sa-lang-fab {
    position: static;
    right: auto;
    bottom: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.28rem;
    background: #152033;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(15, 20, 40, 0.28);
}

.sa-lang-fab__btn {
    min-width: 2.6rem;
    min-height: 2.45rem;
    padding: 0.4rem 0.7rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-poppins);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.sa-lang-fab__btn.is-active {
    background: #f8d148;
    color: #152033;
}

.sa-lang-fab__btn:hover:not(.is-active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

@keyframes sa-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes sa-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .sa-poster,
    .sa-toolbar,
    .sa-board,
    .sa-note,
    .sa-spinner {
        animation: none;
    }
}

/* ── Parchi modal ── */
.sa-parchi {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

@media (min-width: 640px) {
    .sa-parchi {
        align-items: center;
        padding: 1rem;
    }
}

.sa-parchi[hidden] {
    display: none !important;
}

.sa-parchi__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 40, 0.55);
}

.sa-parchi__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    max-height: min(96vh, 900px);
    overflow: auto;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    padding: 1rem 1.1rem 1.25rem;
}

@media (min-width: 640px) {
    .sa-parchi__dialog {
        border-radius: 16px;
    }
}

.sa-parchi__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.sa-parchi__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 3px;
    background: #dceaf8;
    color: #1e4f7a;
    font-family: var(--font-poppins);
    font-size: 0.78rem;
    font-weight: var(--fw-semibold);
}

.sa-parchi__close {
    width: 2.1rem;
    height: 2.1rem;
    border: none;
    border-radius: 999px;
    background: #ececec;
    color: #444;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.sa-parchi__name {
    margin: 0;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.55rem, 5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #111;
    line-height: 1.15;
    text-transform: uppercase;
}

.sa-parchi__enroll-sub {
    margin: 0.2rem 0 0.95rem;
    font-family: var(--font-poppins);
    font-size: 0.95rem;
    color: #8a8a8a;
}

.sa-parchi__card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background: #fff;
    margin-bottom: 1rem;
}

.sa-parchi__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    background: #1a237e;
}

.sa-parchi__card-sno {
    display: inline-flex;
    padding: 0.22rem 0.55rem;
    border-radius: 3px;
    background: #f8d148;
    color: #111;
    font-family: var(--font-poppins);
    font-size: 0.68rem;
    font-weight: var(--fw-semibold);
}

.sa-parchi__card-org {
    font-family: var(--font-poppins);
    font-size: 0.62rem;
    font-weight: var(--fw-semibold);
    color: #fff;
    text-align: right;
    line-height: 1.25;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sa-parchi__card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 0.65rem;
    align-items: center;
    padding: 0.35rem 0.65rem 0.7rem;
}

.sa-parchi__card-info {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.sa-parchi__card-row {
    display: grid;
    gap: 0.05rem;
}

.sa-parchi__card-row span {
    font-size: 0.62rem;
    color: #777;
    font-family: var(--font-poppins);
}

.sa-parchi__card-row strong {
    font-size: 0.78rem;
    color: #111;
    font-family: var(--font-poppins);
    font-weight: var(--fw-semibold);
    word-break: break-word;
}

.sa-parchi__card-photo {
    width: 72px;
    height: 86px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #f3f0e9;
    flex-shrink: 0;
}

.sa-parchi__card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.sa-parchi__photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-poppins);
    font-size: 1.1rem;
    font-weight: var(--fw-semibold);
    color: var(--color-nav-brand);
}

.sa-parchi__card-banner {
    background: #1a237e;
    padding: 0.45rem 0.65rem;
    text-align: center;
}

.sa-parchi__card-banner p {
    margin: 0;
    font-family: var(--font-poppins);
    font-size: 0.62rem;
    line-height: 1.4;
    color: #fff;
    letter-spacing: 0.01em;
}

.sa-parchi__card-banner strong,
.sa-parchi__card-banner b {
    font-weight: 700;
    color: #f8d148;
}

.sa-parchi__list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.sa-parchi__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.sa-parchi__icon {
    font-size: 1.25rem;
    line-height: 1.2;
}

.sa-parchi__list li div {
    display: grid;
    gap: 0.1rem;
}

.sa-parchi__list span:not(.sa-parchi__icon) {
    font-family: var(--font-poppins);
    font-size: 0.78rem;
    color: #8a6a4a;
}

.sa-parchi__list strong {
    font-family: var(--font-poppins);
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
}

.sa-parchi__btns {
    display: grid;
    gap: 0.65rem;
}

.sa-parchi__btns-row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 0.55rem;
}

.sa-parchi__btns-row--full {
    grid-template-columns: 1.35fr 0.85fr;
}

.sa-parchi__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 2.85rem;
    padding: 0.65rem 0.75rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-poppins);
    font-size: 0.82rem;
    font-weight: var(--fw-semibold);
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.25;
}

.sa-parchi__btn--download {
    background: #2e5a88;
    color: #fff;
}

.sa-parchi__btn--download:disabled,
.sa-parchi__btn--print:disabled,
.sa-parchi__btn--wa:disabled,
.sa-parchi__btn--send:disabled {
    opacity: 0.7;
    cursor: wait;
}

.sa-parchi__btn--print {
    background: #f0ebe3;
    color: #222;
}

.sa-parchi__btn--wa {
    background: #25d366;
    color: #fff;
}

.sa-parchi__btn--send {
    background: #128c7e;
    color: #fff;
}


/* ── Mobile ── */
@media (max-width: 767px) {
    .sa-workspace {
        padding: 1rem 0 calc(1.75rem + env(safe-area-inset-bottom, 0px));
    }

    .sa-workspace__inner {
        width: min(100% - 1.25rem, 920px);
        gap: 0.85rem;
    }

    .sa-toolbar {
        top: max(0.5rem, env(safe-area-inset-top, 0px));
        padding: 1rem 0.9rem 1.05rem;
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(21, 32, 51, 0.1);
    }

    .sa-toolbar__label {
        font-size: 0.64rem;
        letter-spacing: 0.1em;
        margin-bottom: 0.35rem;
    }

    .sa-toolbar__title {
        font-size: 1.05rem;
        line-height: 1.4;
        margin-bottom: 0.95rem;
    }

    .sa-filter__label {
        min-height: 3.15rem;
        padding: 0.65rem 0.85rem;
        border-radius: 12px;
        gap: 0.55rem;
    }

    .sa-filter__label input {
        font-size: 16px; /* prevent iOS zoom */
    }

    .sa-filter__status {
        font-size: 0.74rem;
        line-height: 1.4;
    }

    .sa-board {
        border-radius: 14px;
        min-height: 200px;
    }

    .sa-state {
        padding: 2rem 1rem;
    }

    .sa-state h2 {
        font-size: 1.15rem;
    }

    .sa-state p {
        font-size: 0.9rem;
    }

    .sa-list__head {
        padding: 0.85rem 0.9rem 0.55rem;
    }

    .sa-list__head h2 {
        font-size: 0.75rem;
        line-height: 1.4;
        text-transform: none;
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

    .sa-row {
        display: grid;
        grid-template-columns: 60px minmax(0, 1fr);
        grid-template-areas:
            "media body"
            "actions actions";
        column-gap: 0.75rem;
        row-gap: 0;
        padding: 0.85rem 0.9rem;
        align-items: start;
    }

    .sa-row:hover {
        background: transparent;
    }

    .sa-row__media {
        grid-area: media;
        width: 60px;
        height: 76px;
        border-radius: 8px;
    }

    .sa-row__body {
        grid-area: body;
    }

    .sa-row__meta {
        margin-bottom: 0.25rem;
        gap: 0.4rem;
    }

    .sa-row__sno {
        font-size: 0.68rem;
    }

    .sa-row__enroll {
        font-size: 0.64rem;
        padding: 0.16rem 0.45rem;
        max-width: 9.5rem;
    }

    .sa-row__name {
        font-size: 0.98rem;
        margin-bottom: 0.2rem;
    }

    .sa-row__father {
        font-size: 0.78rem;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .sa-row__actions {
        grid-area: actions;
        justify-content: space-between;
        gap: 0.55rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #eef0f5;
    }

    .sa-row__mobile {
        flex: 1 1 auto;
        font-size: 0.82rem;
    }

    .sa-row__slip {
        width: auto;
        min-width: 6.5rem;
        margin-left: 0;
        min-height: 2.6rem;
        padding: 0.5rem 0.9rem;
        font-size: 0.78rem;
    }

    .sa-note {
        padding: 1rem 0.95rem;
        border-radius: 14px;
        gap: 0.45rem;
    }

    .sa-note__greeting {
        font-size: 0.98rem;
    }

    .sa-note__body {
        font-size: 0.88rem;
    }

    .sa-note__phone {
        width: 100%;
        justify-self: stretch;
        text-align: center;
        box-sizing: border-box;
        min-height: 2.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }

    .sa-fab-stack {
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    }

    .rg-footer__bottom {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-bottom: 6.5rem;
    }

    .sa-parchi {
        align-items: flex-end;
        padding: 0;
    }

    .sa-parchi__dialog {
        width: 100%;
        max-width: 100%;
        max-height: min(92dvh, 900px);
        border-radius: 18px 18px 0 0;
        padding: 0.85rem 0.85rem calc(0.95rem + env(safe-area-inset-bottom, 0px));
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .sa-parchi__name {
        font-size: clamp(1.15rem, 5.5vw, 1.35rem);
        word-break: break-word;
    }

    .sa-parchi__enroll-sub {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .sa-parchi__card {
        margin-bottom: 0.85rem;
    }

    .sa-parchi__card-head {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.45rem;
        padding: 0.5rem 0.55rem;
    }

    .sa-parchi__card-sno {
        flex-shrink: 0;
        font-size: 0.64rem;
        padding: 0.2rem 0.45rem;
    }

    .sa-parchi__card-org {
        flex: 1 1 auto;
        min-width: 0;
        text-align: right;
        font-size: 0.58rem;
        line-height: 1.3;
    }

    .sa-parchi__card-body {
        grid-template-columns: minmax(0, 1fr) 68px;
        gap: 0.55rem;
        padding: 0.5rem 0.55rem 0.65rem;
        align-items: start;
    }

    .sa-parchi__card-photo {
        width: 68px;
        height: 82px;
    }

    .sa-parchi__card-row span {
        font-size: 0.58rem;
    }

    .sa-parchi__card-row strong {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .sa-parchi__card-banner {
        padding: 0.5rem 0.55rem;
    }

    .sa-parchi__card-banner p {
        font-size: 0.6rem;
        line-height: 1.45;
    }

    .sa-parchi__list {
        gap: 0.7rem;
        margin-bottom: 0.85rem;
    }

    .sa-parchi__list strong {
        font-size: 0.95rem;
        word-break: break-word;
    }

    .sa-parchi__btns {
        gap: 0.55rem;
    }

    .sa-parchi__btns-row,
    .sa-parchi__btns-row--full {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .sa-parchi__btn {
        min-height: 2.85rem;
        font-size: 0.8rem;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .sa-workspace__inner {
        width: min(100% - 1rem, 920px);
    }

    .sa-row__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sa-row__mobile {
        white-space: normal;
        text-align: center;
    }

    .sa-row__slip {
        width: 100%;
        min-width: 0;
    }

    .sa-parchi__dialog {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .sa-parchi__card-head {
        padding: 0.45rem 0.5rem;
    }

    .sa-parchi__card-org {
        font-size: 0.54rem;
    }

    .sa-parchi__card-body {
        grid-template-columns: minmax(0, 1fr) 60px;
        gap: 0.45rem;
        padding: 0.45rem 0.5rem 0.55rem;
    }

    .sa-parchi__card-photo {
        width: 60px;
        height: 74px;
    }

    .sa-parchi__card-row span {
        font-size: 0.55rem;
    }

    .sa-parchi__card-row strong {
        font-size: 0.68rem;
    }

    .sa-parchi__card-banner p {
        font-size: 0.56rem;
    }
}

@media (max-width: 360px) {
    .sa-row {
        grid-template-columns: 52px minmax(0, 1fr);
        column-gap: 0.65rem;
        padding: 0.75rem;
    }

    .sa-row__media {
        width: 52px;
        height: 68px;
    }

    .sa-toolbar__title {
        font-size: 0.98rem;
    }

    .sa-parchi__card-body {
        grid-template-columns: minmax(0, 1fr) 56px;
        gap: 0.4rem;
    }

    .sa-parchi__card-photo {
        width: 56px;
        height: 70px;
    }

    .sa-parchi__card-sno {
        font-size: 0.58rem;
    }

    .sa-parchi__card-org {
        font-size: 0.5rem;
    }

    .sa-parchi__card-banner p {
        font-size: 0.52rem;
    }
}

@media print {
    @page {
        margin: 0;
    }

    body * {
        visibility: hidden !important;
    }

    .sa-parchi,
    .sa-parchi__card,
    .sa-parchi__card * {
        visibility: visible !important;
    }

    .sa-parchi {
        position: fixed !important;
        inset: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #fff !important;
        z-index: 99999 !important;
    }

    .sa-parchi[hidden] {
        display: none !important;
    }

    .sa-parchi__backdrop,
    .sa-parchi__btns,
    .sa-parchi__close,
    .sa-parchi__list,
    .sa-parchi__top,
    .sa-parchi__name,
    .sa-parchi__enroll-sub {
        display: none !important;
        visibility: hidden !important;
    }

    .sa-parchi__dialog {
        width: auto !important;
        max-width: 90% !important;
        max-height: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
    }

    .sa-parchi__card {
        width: min(420px, 90vw) !important;
        margin: 0 auto !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
}
