/* Billing styles based on base and components */
#billing-screen { display:flex; gap:20px; max-width:1400px; margin:20px auto; }
.billing-main { flex:1; padding:20px; }
.billing-title { font-size: var(--font-size-xxl); text-align:center; margin-bottom: var(--spacing-lg); color:var(--primary-color); }

.info-group { display:flex; gap:var(--spacing-md); margin-bottom:var(--spacing-lg); }
.card { background-color: var(--card-bg-dark); border:1px solid var(--primary-color); border-radius:var(--border-radius-md); padding:var(--spacing-lg); flex:1; }
.card h3 { color:var(--primary-color); margin-bottom:var(--spacing-sm); font-size:var(--font-size-md); }
.emitter-card p { color:var(--text-light); margin-bottom:8px; }
.receiver-card input { background:transparent; border:none; border-bottom:1px solid rgba(255,255,255,0.12); padding:5px 0; width:100%; color:var(--text-light); margin-bottom:10px; }
.input-with-icon { position:relative; margin-bottom:10px; }
.input-with-icon input { padding-right:35px; }
.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    cursor: pointer;
}

.product-search-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    padding-bottom: 5px;
}

/* Detalle de Producto/Servicio */
.item-detail-group {
    align-items: stretch;
    margin-bottom: 20px;
}

.product-detail-card, .service-detail-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-detail-card p, .service-detail-card p {
    color: var(--text-light);
    font-size: 16px;
}

.image-tax-card {
    flex: 1.5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-reference {
    text-align: center;
    padding-right: 15px;
    /* Usé un borde sutil para dividir */
}
.image-reference img {
    border: 2px solid var(--primary-color);
    border-radius: 5px;
}

.tax-inputs {
    flex-grow: 1;
    padding: 0 15px;
}

.tax-inputs label {
    display: block;
    font-size: 14px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.tax-inputs select, .tax-inputs input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
}

.add-btn {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
}

/* Tabla de Facturación */
.billing-table-container {
    margin-top: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table thead th {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 10px;
    text-align: left;
}

table tbody td {
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    padding: 10px;
    color: var(--text-light);
}

.total-pago {
    text-align: right;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 10px;
}

/* Datos del encabezado */
.header-data-title {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.header-data-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.header-data-group input, .header-data-group select {
    padding: 15px;
    border-radius: 8px;
    background: transparent;
    border: 2px solid rgba(0, 255, 0, 0.3);
    color: var(--text-light);
}

.billing-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.main-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.preview-btn {
    background-color: var(--secondary-color);
    color: var(--text-light);
}
.bill-btn {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}
