/* General responsive styles */
.container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
}

/* Responsive vertical tables */
@media (max-width: 767px) {
    .responsive-table {
        display: block;
        width: 100%;
    }
    
    .responsive-table thead {
        display: none;
    }
    
    .responsive-table tbody {
        display: block;
        width: 100%;
    }
    
    .responsive-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        padding: 0.5rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        background-color: #fff;
    }
    
    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid #f3f4f6;
        text-align: right;
    }
    
    .responsive-table td:last-child {
        border-bottom: none;
    }
    
    .responsive-table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: #4b5563;
        text-align: left;
        padding-right: 1rem;
    }
    
    /* Card style for multi-level data */
    .data-card {
        border-radius: 0.5rem;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        overflow: hidden;
    }
    
    .data-card-header {
        background-color: #f9fafb;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .data-card-body {
        padding: 1rem;
    }
    
    .data-card-row {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .data-card-row:last-child {
        border-bottom: none;
    }
    
    .data-card-label {
        font-weight: 500;
        color: #4b5563;
    }
    
    .data-card-value {
        text-align: right;
    }
}

/* Card grid layouts */
.card-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive spacing */
.responsive-p {
    padding: 1rem;
}

.responsive-px {
    padding-left: 1rem;
    padding-right: 1rem;
}

.responsive-py {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .responsive-p {
        padding: 1.5rem;
    }
    
    .responsive-px {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .responsive-py {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Responsive typography */
.responsive-text {
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .responsive-text {
        font-size: 1rem;
    }
}

/* Fix for horizontal overflow */
.overflow-fix {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Responsive buttons/actions */
.responsive-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .responsive-actions {
        flex-direction: row;
    }
}

/* Responsive forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Collapse multi-item containers on mobile */
.collapse-mobile > * + * {
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .collapse-mobile {
        display: flex;
        align-items: center;
    }
    
    .collapse-mobile > * + * {
        margin-top: 0;
        margin-left: 0.5rem;
    }
} 