/* =========================
   ADMIN PANEL - MOBILE
========================= */

@media (max-width: 768px) {

    .ap-wrapper {
        padding: 20px 14px 50px;
    }

    .ap-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 20px;
    }

    .ap-header-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .ap-header .ap-btn {
        width: 100%;
        justify-content: center;
    }

    .ap-form-wrapper {
        max-width: 100%;
    }

    .ap-form-card-body {
        padding: 16px;
    }

    .ap-input,
    .ap-textarea,
    .ap-select {
        font-size: 16px; /* zoom bug fix */
    }

    .ap-form-footer {
        flex-direction: column;
        gap: 10px;
    }

    .ap-form-footer .ap-btn {
        width: 100%;
    }

    /* TABLE → CARD */
    .ap-table,
    .ap-table thead,
    .ap-table tbody,
    .ap-table th,
    .ap-table td,
    .ap-table tr {
        display: block;
        width: 100%;
    }

    .ap-table thead {
        display: none;
    }

    .ap-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .ap-table tbody tr {
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 12px;
        padding: 12px;
        background: #fafafa;
    }

    .ap-table td {
        border: none;
        padding: 6px 0;
    }

    .ap-table td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 700;
        color: #c9a84c;
        display: block;
        margin-bottom: 3px;
    }

    .ap-table td:last-child .ap-btn {
        width: 100%;
        margin-top: 6px;
    }
}