/* 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;
}

#categoriesGrid{
    width: -webkit-fill-available;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

#categoriesGrid .module-card{
    border: 1px solid #000;
    padding: 0.75rem;
    text-align: center;
    box-shadow: 2px 2px 5px #0002;
    cursor: pointer;
    border-radius: 0.5rem;
}

#POS-left-panel{
    min-width: 250px;
    width: 30%;
}
#POS-buttons{
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
#POS-buttons .btn{
    padding: 0.75rem;
    font-size:large;
    font-weight: 600;
    height: fit-content;
}

/* Fullscreen modal styles */
.modal-box.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 1.5rem;
    transform: none !important;
    display: flex;
    flex-direction: column;
    z-index: 10000;
}

.modal-box.fullscreen .modal-header {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.modal-box.fullscreen .modal-body {
    flex: 1;
    overflow: auto;
    margin-bottom: 1rem;
}

.modal-box.fullscreen .modal-action {
    flex-shrink: 0;
    margin-top: auto;
}

.modal-box.fullscreen .draggable-handle {
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 1;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Ensure fullscreen modals appear above everything */
.modal.modal-open:has(.modal-box.fullscreen) {
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

/* Hide modal dragging functionality for fullscreen modals */
.modal-box.fullscreen .draggable-handle {
    cursor: default;
}

.modal-box.fullscreen .draggable-handle:hover {
    cursor: default;
}
.cartActions{
    flex-flow: column;
    gap: 0.25rem;
}
.qty-input{
    width: 3rem;
}
#module-title{
    width:100%;
}
.aasHeader{
    width: 100%;
    font-size: x-large;
    text-align: center;
    color: green;
    text-transform: uppercase;
    background: orange;
}