/* 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;
}

.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;
    }
}
