/* Phone and tablet: every data table becomes a vertical card.
   Desktop widths keep the table. The Android WebView is always narrow. */

html.pm-cards .table-responsive,
html.pm-cards .admin-table {
    background: transparent;
    border: 0;
    overflow: visible;
    box-shadow: none;
}

html.pm-cards .admin-body,
html.pm-cards main {
    overflow-x: clip;
}

html.pm-cards table.table,
html.pm-cards table.table tbody {
    display: block;
    width: 100%;
    border: 0;
}

html.pm-cards table.table thead {
    display: none;
}

html.pm-cards table.table tbody tr {
    display: block;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    margin: 0 0 14px;
    box-shadow: 0 10px 28px rgba(7, 17, 31, 0.06);
    overflow: hidden;
}

html.pm-cards table.table tbody tr:hover {
    background: #fff;
}

html.pm-cards table.table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: auto;
    border: 0;
    text-align: right;
    padding: 0.6rem 1rem;
    white-space: normal;
}

html.pm-cards table.table tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    max-width: 46%;
    text-align: left;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

html.pm-cards table.table tbody td[data-label=""]::before {
    content: none;
}

html.pm-cards table.table tbody tr td:first-child {
    font-weight: 700;
    color: #07111f;
    padding-top: 0.95rem;
}

html.pm-cards table.table tbody tr td:last-child {
    padding-bottom: 0.95rem;
}

html.pm-cards .admin-body > .d-flex,
html.pm-cards .admin-form-card form.d-flex {
    flex-wrap: wrap;
    gap: 0.5rem;
}

html.pm-cards .admin-form-card .form-select,
html.pm-cards .admin-form-card .form-control {
    width: 100%;
    min-width: 0;
}

html.pm-cards .admin-topbar {
    flex-wrap: wrap;
    gap: 0.5rem;
    height: auto;
}

html.pm-cards .admin-topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.app-store-links {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(107, 30, 42, 0.12);
}

.app-store-links__title {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b1e2a;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.app-store-links__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid transparent;
    min-height: 3.1rem;
}

.app-store-btn i {
    font-size: 1.35rem;
    line-height: 1;
}

.app-store-btn small {
    display: block;
    font-size: 0.68rem;
    opacity: 0.8;
    line-height: 1.1;
}

.app-store-btn strong {
    display: block;
    font-size: 0.84rem;
    line-height: 1.15;
}

.app-store-btn--android {
    background: #07111f;
    color: #fff;
}

.app-store-btn--android:hover,
.app-store-btn--android:focus {
    color: #f5d76e;
    background: #122033;
}

.app-store-btn--ios {
    background: #f4efe8;
    color: #2b2118;
    border-color: rgba(43, 33, 24, 0.12);
}

.app-store-btn--ios:hover,
.app-store-btn--ios:focus {
    color: #6b1e2a;
    background: #efe6db;
}

.app-store-btn--disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.app-store-links__hint {
    margin: 0.55rem 0 0;
    font-size: 0.75rem;
    color: #6c757d;
}

.apk-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #07111f;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.apk-download:hover,
.apk-download:focus {
    color: #7dd3fc;
    background: #122033;
}

.app-download-card {
    display: grid;
    grid-template-columns: 148px 1fr;
    gap: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #07111f;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1rem;
}

.app-download-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 112px;
}

.app-download-card div {
    padding: 1rem 1.1rem;
}

.app-download-card strong {
    display: block;
    font-size: 1.05rem;
}

.app-download-card span {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

@media (max-width: 575.98px) {
    .app-download-card {
        grid-template-columns: 1fr;
    }

    .apk-download span {
        display: none;
    }
}
