* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #e9ecef;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.main-header {
    background: #2c3e50;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header h1 {
    font-size: 24px;
    font-weight: 600;
}

#version-badge {
    background: #27ae60;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.form-container {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.quote-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44,62,80,0.1);
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #2c3e50;
    color: white;
}

.btn-primary:hover {
    background: #1e2b38;
}

.btn-secondary {
    background: #27ae60;
    color: white;
}

.btn-secondary:hover {
    background: #219653;
}

.btn-outline {
    background: white;
    border: 1px solid #6c757d;
    color: #6c757d;
}

.btn-outline:hover {
    background: #6c757d;
    color: white;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #219653;
}

.btn-info {
    background: #3498db;
    color: white;
}

.btn-info:hover {
    background: #2980b9;
}

.btn-warning {
    background: #e67e22;
    color: white;
}

.btn-warning:hover {
    background: #d35400;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: white;
}

.data-table th,
.data-table td {
    border: 1px solid #e9ecef;
    padding: 10px 8px;
    text-align: right;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.data-table td:first-child,
.data-table th:first-child {
    text-align: left;
}

.data-table td:nth-child(2),
.data-table th:nth-child(2) {
    text-align: left;
}

.data-table input {
    width: 100%;
    padding: 6px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 12px;
    box-sizing: border-box;
}

.data-table select {
    width: 100%;
    padding: 6px;
    font-size: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.btn-eliminar {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
}

.btn-eliminar:hover {
    background: #c0392b;
}

.totales-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.totales-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    min-width: 300px;
    border: 1px solid #e9ecef;
}

.totales-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 8px;
    display: inline-block;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.total-row.highlight {
    background: #e8f5e9;
    padding: 8px;
    border-radius: 6px;
    margin: 5px 0;
    border-bottom: none;
}

.total-row.total-final {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
    border-bottom: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #dee2e6;
}

.footer-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

/* Filtros */
.filters-container {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
}

.header-actions {
    display: flex;
    align-items: center;
}

/* Badges de estado */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.status-borrador {
    background: #e9ecef;
    color: #6c757d;
}

.status-enviada {
    background: #fff3e0;
    color: #e67e22;
}

.status-aceptada {
    background: #e8f5e9;
    color: #27ae60;
}

/* Acciones en tabla */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    margin: 0 2px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #f0f0f0;
}

.btn-edit {
    color: #3498db;
}

.btn-view {
    color: #2c3e50;
}

.btn-copy {
    color: #27ae60;
}