* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #ededed;  
    padding-top: 80px;
}

#message {
	padding:10px;
}

#records {
	width:100%;
	height:80%;
	overflow-y:auto;
}

#records_cus {
	width:100%;
	height:80%;
	overflow-y:auto;
}

#records_product {
	width:100%;
	height:80%;
	overflow-y:auto;
}

#records_supp {
	width:100%;
	height:80%;
	overflow-y:auto;

}

.hilite {
	background-color:lightgray;
}

#details {
	width:100%;
	height:40%;
	overflow-y:auto;
	border:1px solid lightgrey;
}

.divider {
    height: 1px;
    background-color: #eee;
    margin: 25px 0;
}

/* Main container */
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

/* Card */
.general-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    padding: 25px 30px;
}

/* Header */
.general-header {
    text-align: center;
    margin-bottom: 20px;
    color: #333; /* same as login h1 */
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #1a1a1a; /* match login btn color */
    padding-bottom: 10px;
}

/* Form rows */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.form-label {
    width: 120px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-input, .form-select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background-color: #f8f9fa;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #1a1a1a; /* same as login btn */
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.2);
    background-color: white;
}

.form-input:disabled, .form-select:disabled {
    background-color: #f1f2f6;
    color: #7f8c8d;
    cursor: not-allowed;
}

/* Buttons */
.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    min-width: 90px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #1a1a1a;  
    color: white;
}

.btn-primary:hover {
    background-color: #333;
}

.btn-primary:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

#btn_search_cus, #btn_search_supp, #btn_myprint {
    padding: 4px 6px;        
    min-width: 30px;          
    height: 30px;              
    font-size: 12px;          
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

#btn_search_cus i {
    pointer-events: none;
}

#btn_search_product {
    padding: 4px 6px;        
    min-width: 30px;          
    height: 30px;              
    font-size: 12px;          
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

#btn_search_product i {
    pointer-events: none;
}

#btn_search_invoice {
    padding: 4px 6px;        
    min-width: 30px;          
    height: 30px;              
    font-size: 12px;          
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

#btn_search_invoice i {
    pointer-events: none;
}

#btn_show_ledger {
    padding: 4px 6px;        
    min-width: 30px;          
    height: 30px;              
    font-size: 12px;          
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

#btn_show_ledger i {
    pointer-events: none;
}

.remove_detail {
    padding: 4px 6px;        
    min-width: 30px;          
    height: 30px;              
    font-size: 12px;          
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.remove_detail i {
    pointer-events: none;
}

.table-container {
    max-height: 550px;
    overflow-y: auto;
    padding-top: 0;
}

#ledgerTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0 !important;
    font-family: 'Inter', sans-serif;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#ledgerTable th, #ledgerTable td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 14px;
}

#ledgerTable th {
    background-color: #1a1a1a;
    color: white;
    font-weight: 600;
    position: sticky;   
    top: 0;             
    z-index: 2;         
}

#ledgerTable tr:hover {
    background-color: #f8f8f8;
    cursor: pointer;
}

#ledgerTable tr.current_record:hover {
    background-color: #e0e0e0;
}

#inventoryTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0 !important;
    font-family: 'Inter', sans-serif;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#inventoryTable th, #inventoryTable td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 14px;
}

#inventoryTable th {
    background-color: #1a1a1a;
    color: white;
    font-weight: 600;
    position: sticky;  
    top: 0;            
    z-index: 2;         
}

#inventoryTable tr:hover {
    background-color: #f8f8f8;
    cursor: pointer;
}

#inventoryTable tr.current_record:hover {
    background-color: #e0e0e0;
}

#auditTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0 !important;
    font-family: 'Inter', sans-serif;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#auditTable th, #auditTable td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 14px;
}

#auditTable th {
    background-color: #1a1a1a;
    color: white;
    font-weight: 600;
    position: sticky;   
    top: 0;             
    z-index: 2;         
}

#auditTable tr:hover {
    background-color: #f8f8f8;
    cursor: pointer;
}

#auditTable tr.current_record:hover {
    background-color: #e0e0e0;
}

#inventorySummary {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0 !important;
    font-family: 'Inter', sans-serif;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#inventorySummary th, #inventorySummary td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 14px;
}

#inventorySummary th {
    background-color: #1a1a1a;
    color: white;
    font-weight: 600;
    position: sticky;   
    top: 0;             
    z-index: 2;         
}

#inventorySummary tr:hover {
    background-color: #f8f8f8;
    cursor: pointer;
}

#inventorySummary tr.current_record:hover {
    background-color: #e0e0e0;
}

.selected {
    background:#007bff !important;
    color:white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .products-card {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-label {
        width: 100%;
        margin-bottom: 6px;
    }

    .form-input, .form-select {
        width: 100%;
    }

    .button-group {
        flex-direction: row;  
    }

    .btn {
        width: auto;  
    }

    #ledgerTable th, #ledgerTable td {
        padding: 10px;
        font-size: 13px;
    }
}