/* Import touchscreen payment styles */
@import url('touchscreen-payment.css');

#columnContextMenu{
    z-index: 50000;
}

tbody tr.selected {
    background-color: var(--color-primary);
    color: var(--color-primary-content);
}


/* Add visible borders to form fields that lack daisyUI border classes */
input:not(.input-bordered):not(.file-input):not(.toggle),
select:not(.select-bordered),
textarea:not(.textarea-bordered) {
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    border-width: 1px;
}

/* Style buttons in modal headers to look more prominent */
.modal-header button,
.modal-header .btn {
    border: 1px solid var(--color-base-300);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 0.25rem;
    padding: 0.25rem 0.5rem;
}
#props .prop-field label {
    font-weight: 600;
}

#props .prop-field input {
    margin-bottom: 0.25rem;
}

/* Loader overlay for dashboard */
#dashboardLoader {
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

/* Inventory Management Styles */
.tabs-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: 8px 8px 0 0;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem 0 0.5rem;
}

.tab-btn {
    font-weight: bold;
    border: none;
    border-radius: 6px 6px 0 0;
    margin-bottom: -1px;
    background: transparent;
    color: #1e293b;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
}

.tab-btn.active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px #2563eb22;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: auto;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 1200px;
    width: 80vw;
    box-shadow: 0 2px 16px #0002;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-content.small {
    max-width: 400px;
}

.modal-header {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: left;
}

.modal-hr {
    border: 0;
    border-top: 1.5px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
}

.wide-input {
    width: 100%;
}

.product-search-results {
    margin-top: 0.5rem;
}

.table-sm {
    font-size: 1.1rem;
    line-height: 1.6rem;
}

.table-header {
    font-size: 1.2rem;
}

.btn-xs {
    font-size: 1rem;
}

.btn-error {
    background-color: #dc2626;
    color: #fff;
}

.btn-error:hover {
    background-color: #b91c1c;
}

.btn-secondary {
    background-color: #6b7280;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-close {
    margin-top: 1rem;
    float: right;
}

.btn-margin {
    margin: 1rem 0;
}

.warehouse-placeholder {
    padding: 2rem;
    text-align: center;
    color: #888;
}

.btn-group {
    display: flex;
    gap: 1rem;
}

.btn-group .btn {
    margin: 1rem 0;
}

.btn-group .btn:first-child {
    margin-left: 0;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

.error-text {
    color: red;
    margin-top: 1rem;
    display: none;
}

.error-cell {
    color: red;
}

.placeholder-text {
    text-align: center;
    color: #888;
}
