.gallery-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gallery-admin-item {
    border: 1px solid #d7e2de;
    padding: 8px;
    background: #fff;
}

.gallery-admin-item .preview {
    width: 160px;
    height: 110px;
    object-fit: cover;
}

.btn-danger {
    width: 100%;
    margin-top: 7px;
    background: #b42318;
}

.btn:disabled {
    cursor: wait;
    opacity: .7;
}

.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Quản trị thuận tiện trên điện thoại */
@media (max-width: 800px) {
    .admin-top {
        height: auto;
        min-height: 60px;
        gap: 8px;
        padding: 10px 14px;
        flex-wrap: wrap;
    }

    .admin-top > div {
        font-size: 13px;
        line-height: 1.6;
    }

    .admin-menu {
        position: sticky;
        top: 0;
        z-index: 20;
        padding: 0;
        scrollbar-width: thin;
    }

    .admin-menu a {
        padding: 12px 14px;
    }

    .admin-main {
        padding: 12px;
    }

    .heading-row {
        align-items: stretch;
        gap: 10px;
        flex-direction: column;
    }

    .heading-row .btn {
        text-align: center;
    }

    .panel {
        padding: 14px;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat {
        padding: 14px;
    }

    .stat strong {
        font-size: 26px;
    }

    .banner-item {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .banner-item img {
        width: 110px;
        height: 75px;
    }

    .table-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap table {
        min-width: 720px;
    }

    .ck-editor__editable {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 20px;
    }
}
