/* General Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
}

/* DataTables Customization */
.dataTables_wrapper {
    margin-top: 1rem;
}

.dataTables_filter {
    margin-bottom: 1rem;
}

.table > :not(caption) > * > * {
    padding: 0.75rem;
}

/* Stock Status Colors */
.status-checked-out {
    background-color: #fff3cd !important;
}

.status-depleted {
    background-color: #f8d7da !important;
}

.status-available {
    background-color: #d1e7dd !important;
}

/* Forms */
.form-required label::after {
    content: " *";
    color: red;
}

/* Cards */
.card {
    margin-bottom: 1rem;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Buttons */
.btn-group-xs > .btn,
.btn-xs {
    padding: 0.25rem 0.4rem;
    font-size: 0.875rem;
    line-height: 0.5;
    border-radius: 0.2rem;
}

/* Shopping Cart */
.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Stock List */
.stock-details {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

/* Search Box */
.search-box {
    margin-bottom: 1.5rem;
}

.search-box .form-control {
    border-radius: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Modal Customization */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}

.container {
    max-width: 1600px;
}