:root {
    --primary-color: #72B42C;
    --primary-dark: #000;
    --secondary-color: #fff;
    --text-color: #000;
    --text-light: #fff;
    --border-color: #72B42C;
    --danger-color: #818385;
    --neutral-color: #818385;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: var(--text-color);
    font-size: 16px;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 15px auto;
    padding: 15px;
    background: #fff;
    box-shadow: 0 0 10px #000000;
    border-radius: 20px;
}

h1, h2 {
    color: var(--primary-color);
    text-align: center;
    margin: 15px 0;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.4em;
}

.form-container, .table-container {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--secondary-color);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-sizing: border-box;
    font-size: 16px;
}

button {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 12px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

button:hover {
    background: var(--primary-dark);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-weight: bold;
}

tr:hover {
    background-color: #72b42c60;
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subtract-btn {
    background-color: #ff6600;
    color: var(--text-light);
    min-width: 40px;
}

.subtract-btn:hover {
    background-color: var(--primary-dark);
}

.delete-btn {
    background-color: #ff0000;
    color: var(--text-light);
}

.delete-btn:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.quantity-input {
    width: 60px;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Table */
@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-group {
        width: 100%;
    }
    
    table {
        border: 0;
    }
    
    table thead {
        display: none;
    }
    
    table tr {
        margin-bottom: 15px;
        display: block;
        border-bottom: 2px solid var(--primary-color);
        padding: 10px;
        background: #fff;
        box-shadow: 0 2px 5px #0000001a;
    }
    
    table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
        padding: 10px;
    }
    
    table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--primary-dark);
        margin-right: 15px;
        flex: 1;
    }
    
    table td > span {
        flex: 2;
        text-align: right;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-control {
        justify-content: space-between;
        width: 100%;
    }
    
    .quantity-input {
        width: 50%;
    }
}

/* Estilos para el botón de restar en móvil */
@media screen and (max-width: 480px) {
    .action-btn {
        padding: 10px;
    }
    
    .subtract-btn::before {
        content: "Restar ";
    }
    
    .delete-btn::before {
        content: "Eliminar ";
    }
}

/* Agregar al final de styles.css */
#exportButton {
    background-color: #72B42C;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#exportButton:hover {
    background-color: #72B42C;
}

@media screen and (max-width: 768px) {
    #exportButton {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* Agregar al final de styles.css */
.export-options {
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.export-options h3 {
    margin-top: 0;
    color: var(--primary-dark);
    font-size: 1.2em;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group input[type="checkbox"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media screen and (max-width: 768px) {
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
}