/* Custom styles for SLBilling - Velzon Theme Compatible */

/* Invoice/Print specific styles */
.invoice-header {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* Bill Items Table Styling */
.bill-item-row {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    vertical-align: middle;
}

.bill-item-row:hover {
    background-color: #f8f9fa;
}

.bill-item-row td {
    padding: 12px 8px;
    vertical-align: middle;
}

.bill-item-row .form-control {
    border: 1px solid #ced4da;
    transition: all 0.2s ease;
}

.bill-item-row .form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

.bill-item-row .form-control[readonly] {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
}

.bill-item-row .remove-item {
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 6px 10px;
}

.bill-item-row .remove-item:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.bill-item-row .remove-item:active {
    transform: scale(0.95);
}

#billItemsTable {
    border-collapse: separate;
    border-spacing: 0;
}

#billItemsTable thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 12px 8px;
    white-space: nowrap;
}

#billItemsTable tbody tr:last-child {
    border-bottom: none;
}

#billItemsTable .table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .card {
        border: none;
        box-shadow: none;
    }
    
    /* Hide sidebar and topbar in print */
    #layout-wrapper > header,
    .app-menu,
    .vertical-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Ensure proper spacing for buttons in tables */
.table .btn {
    margin: 0 2px;
}

/* Custom adjustments for Velzon theme */
.page-content {
    padding: 1.5rem 0;
    margin-top: 70px; /* Account for fixed topbar */
}

.container-fluid {
    padding-top: 1.5rem;
}

/* Ensure proper display of temp data messages */
.alert {
    margin-bottom: 1rem;
}

/* Sidebar Toggle Button Styling */
#vertical-hover {
    color: #6c757d;
    transition: color 0.2s ease;
    z-index: 10;
}

#vertical-hover:hover {
    color: #495057;
}

#vertical-hover:focus {
    box-shadow: none;
    outline: none;
}

#sidebar-toggle-icon {
    transition: transform 0.3s ease;
}
