/* 
   Estilos para la página de Detalles de Factura
   KW Campestre
*/

body {
    background-color: #f8f9fa;
}

/* Layout de la página */
.invoice-layout {
    display: flex;
    gap: 25px;
}

.invoice-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.invoice-content {
    flex-grow: 1;
}

/* Sidebar */
.sidebar-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.invoice-total {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
}

.invoice-status-badge {
    text-align: center;
}

.sidebar-card .btn-dark {
    background-color: #343a40;
    border-color: #343a40;
    font-size: 0.9rem;
}

.sidebar-card .btn-dark i {
    font-size: 0.8rem;
}

.vendor-info .avatar {
    background-color: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.vendor-info .vendor-name {
    font-weight: 500;
}

.send-message-link {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
}

.send-message-link:hover {
    text-decoration: underline;
}

.sidebar-footer {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

/* Contenido de la factura */
.invoice-paper {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    padding: 2rem;
}

.kw-logo {
    max-height: 40px;
}

.company-address, .client-address {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.signature-alert {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    font-size: 0.9rem;
    font-weight: 500;
}

.invoice-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.invoice-meta {
    font-size: 0.9rem;
}

.invoice-meta strong {
    font-weight: 600;
}

/* Tabla de detalles de factura */
.invoice-details-table thead th {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.invoice-details-table tbody td {
    font-size: 0.9rem;
    border-top: none;
    padding: 0.5rem 0;
}

/* Tabla de totales */
.totals-table td {
    border: none;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.totals-table .total-row td,
.totals-table .amount-due-row td {
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
    font-weight: 600;
}

/* Footer de la factura */
.invoice-footer p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Botones de navegación de factura */
.invoice-nav-buttons .btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}

/* Responsivo */
@media (max-width: 991.98px) {
    .invoice-layout {
        flex-direction: column;
    }
    .invoice-sidebar {
        width: 100%;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .invoice-paper {
        padding: 1.5rem;
    }
    .invoice-total {
        font-size: 1.75rem;
    }
    .invoice-title {
        font-size: 1.3rem;
    }
    .table td, .table th {
        font-size: 0.85rem;
    }
} 