/* Base Reset & Mobile-First Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 15px;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.5;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.2rem;
    margin: 15px 0 10px 0;
}

a {
    color: #0066cc;
    text-decoration: none;
}

/* Touch-Friendly Form Controls */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 16px; /* Prevents auto-zoom on iOS */
    border: 1px solid #ccc;
    border-radius: 4px;
}

button, .btn {
    display: inline-block;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    background-color: #0066cc;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
}

button[type="button"] {
    background-color: #6c757d;
    width: auto;
}

/* Dynamic Rows Styling */
.sku-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

@media (min-width: 600px) {
    .sku-row {
        flex-direction: row;
    }
    button {
        width: auto;
    }
}

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 10px;
    background: #fff;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Forces smooth horizontal scrolling on phone screens */
}

th, td {
    padding: 8px 10px;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 14px;
}

th {
    background-color: #f1f1f1;
}