.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 400px;
    max-width: 90%;
}

.modal input {
    width: calc(100% - 16px);
    padding: 8px;
    margin: 10px 0;
}

.modal button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.print-header {
    display: none;
}

.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 5px;
}

.accordion-button {
    width: 100%;
    text-align: left;
    padding: 10px;
    background: #f4f4f4;
    border: none;
    cursor: pointer;
}

.accordion-content {
    padding: 10px;
}

.button-label {
    font-size: 12px;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.product-row {
    display: grid;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    grid-template-columns: .5fr 1.5fr 1fr 1fr;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.product-name,
.product-sku,
.product-action {
    padding: 5px;
}

.product-action button {
    width: 100%;
    padding: 4px 8px;
    /* Adjust this if needed */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    /* Controls space between label and spinner */
}

.out-of-stock {
    display: none;
}

.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator {
    opacity: 1;
}

.htmx-request.button-label {
    opacity: 0
}

/* Spinner animation */
.spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.category-name {
    display: none;
    margin: 0;
}




.header-bar {
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-controls {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.print-button {
    background-color: #4CAF50;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.print-button:hover {
    background-color: #45a049;
}

.clear-credentials-button {
    background-color: #dc3545;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.clear-credentials-button:hover {
    background-color: #c82333;
}

@media print {
    .header-bar {
        display: none !important;
    }
}