/* Panel Styles */
.cotizacion-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 450px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-color, #ffffff);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.cotizacion-panel.open {
    right: 0;
}

.cotizacion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.cotizacion-overlay.open {
    display: block;
}

.cotizacion-header {
    padding: 1rem;
    background: #f4f4f4;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cotizacion-body {
    padding: 1rem;
    flex: 1;
}

.close-btn {}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Item Rows */
.item-row {
    display: flex;
    gap: 5px;
    margin-bottom: 0.5rem;
    align-items: center;
}

.item-desc {
    flex: 3;
}

.item-qty {
    flex: 1;
}

.item-price {
    flex: 1.5;
}

.item-remove {
    background: #ff4444;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
}

/* Financials */
.financials {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.1rem;
    border-top: 2px solid #ddd;
    padding-top: 0.5rem;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 0.8rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.btn-secondary {
    background: #eee;
    border: 1px solid #ccc;
    padding: 0.5rem;
    cursor: pointer;
    width: 100%;
}

/* Cotizaciones List Table */
.cotizaciones-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    font-family: 'VT323', 'Courier New', monospace;
}

.cotizaciones-list-table th,
.cotizaciones-list-table td {
    padding: 0.5rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #444);
    white-space: nowrap;
}

.cotizaciones-list-table th {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-bottom-width: 2px;
}

.cotizaciones-list-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cotizaciones-list-table .btn-sm {
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
}

.status-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-vigente {
    color: #0f0;
}

.status-pagada {
    color: #0af;
}

.status-vencida {
    color: #f44;
}

.status-cancelada {
    color: #888;
}