﻿body {
    -webkit-text-size-adjust: 100%;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
    .language-switcher {
        padding: 0.75rem !important;
    }

    .language-switcher .btn-group {
        border-radius: 0.85rem;
        overflow: hidden;
    }

    .language-switcher .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
    }
}

@media (max-width: 767.98px) {
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    img,
    svg {
        max-width: 100%;
        height: auto;
    }

    .language-switcher {
        padding: 0.65rem !important;
    }

    .language-switcher .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .language-switcher .btn img {
        width: 16px !important;
        height: 16px !important;
        margin-right: 4px !important;
    }

    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .row > [class*="col-"] {
        min-width: 0;
    }

    .login-container {
        width: 100%;
        margin: 5.75rem auto 1.25rem !important;
    }

    .register-card {
        margin-top: 5.25rem !important;
        padding: 1.25rem !important;
    }

    .create-user-card,
    .not-found-card,
    .contact-card {
        padding: 1.25rem !important;
        border-radius: 1rem !important;
    }

    .page-shell {
        padding-top: 5rem !important;
        padding-bottom: 1.25rem !important;
    }

    .not-found-image {
        max-width: 320px !important;
    }

    nav.navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .search-shell {
        max-width: none !important;
    }

    .card-header.d-flex,
    .glass-card .card-header.d-flex,
    .create-user-card .d-flex.justify-content-between,
    .contact-card .d-flex.justify-content-between,
    .register-card .d-flex.justify-content-between,
    .not-found-card .d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .card-header.d-flex .btn,
    .glass-card .card-header.d-flex .btn,
    .create-user-card .d-flex.justify-content-between .btn,
    .contact-card .d-flex.justify-content-between .btn,
    .register-card .d-flex.justify-content-between .btn,
    .not-found-card .d-flex.justify-content-between .btn {
        width: 100%;
    }

    .input-group {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .input-group > .form-control,
    .input-group > .form-select,
    .input-group > .input-group-text {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100%;
        border-radius: 0.8rem !important;
    }

    .input-group > .form-control,
    .input-group > .form-select {
        min-height: 46px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .metric-value {
        font-size: 1.4rem !important;
        line-height: 1.15;
        word-break: break-word;
    }

    .product-name-list {
        min-width: 140px !important;
    }

    main.col-md-9,
    main.col-lg-10,
    main[class*="col-md-9"],
    main[class*="col-lg-10"] {
        padding-top: 5rem !important;
    }

    .btn.position-fixed.d-md-none {
        top: 74px !important;
        left: 12px !important;
        border-radius: 999px !important;
        padding: 0.55rem 0.7rem !important;
    }

    .sidebar {
        min-height: auto !important;
        margin-bottom: 1rem;
    }

    .table-responsive {
        border-radius: 0.85rem;
    }

    .table td,
    .table th {
        white-space: nowrap;
    }

    .wa-chat-box {
        width: min(320px, calc(100vw - 2rem)) !important;
    }

    .wa-chat-box-content-send-btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .page-title,
    .not-found-title {
        max-width: 100%;
    }

    .glass-card,
    .card,
    .section-card {
        border-radius: 0.9rem !important;
    }

    .table {
        font-size: 0.92rem;
    }

    .table td,
    .table th {
        padding: 0.65rem 0.55rem;
    }

    .input-group-lg > .form-control,
    .input-group-lg > .input-group-text {
        padding: 0.7rem 0.85rem;
        font-size: 0.95rem;
    }

    .create-user-card .d-flex.gap-2,
    .not-found-card .d-flex.gap-3 {
        flex-direction: column;
    }

    .create-user-card .btn,
    .not-found-card .btn,
    .contact-card .btn,
    .register-card .btn {
        width: 100%;
    }
}



