/* Mobile-friendly tables */
@media screen and (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }
    
    .table-responsive table {
        margin-bottom: 0;
        white-space: nowrap;
    }
    
    /* Card view for tables */
    .table-card-view .table-row {
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
        background: #fff;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .table-card-view .table-cell {
        display: flex;
        padding: 0.5rem 0;
        border: none;
        align-items: center;
    }
    
    .table-card-view .table-cell:before {
        content: attr(data-label);
        font-weight: bold;
        width: 40%;
        margin-right: 1rem;
    }
    
    /* RTL support for card view */
    .rtl .table-card-view .table-cell:before {
        margin-right: 0;
        margin-left: 1rem;
    }
    
    /* Input fields on mobile */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        width: 100%;
        max-width: 100%;
    }
    
    /* Buttons on mobile */
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group .btn {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Phone number input */
input[type="tel"] {
    direction: ltr;
    text-align: left;
}
