/* !
 * Theme Name: Default
 * Package : DashLite
 * Author: Softnio
 * Author URI: http://themeforest.net/user/softnio
 * Version	 :	1.0.0
 * Updated	 :	07.23.2020
**/

.cursor {
    cursor: pointer;
}

/* Warehouse Container Styles */
.warehouse-container {
    overflow-x: auto;
    min-width: inherit;
}

.rack-grid {
    min-width: 100px;
}

/* Zone Section Styles */
.zone-section {
    min-height: 400px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zone-section:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.zone-section.selected {
    border: 3px solid #007bff !important;
    z-index: 10;
}

/* Rack Cell Styles */
.rack-cell {
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.rack-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rack-cell.selected-rack {
    background-color: #007bff !important;
    color: white;
    z-index: 5;
}

.rack-cell.occupied {
    border: 2px solid #28a745 !important;
}

.rack-cell.empty {
    border: 2px solid #dc3545 !important;
}

/* Modal Styles */
.inventory-modal {
    max-width: 900px;
}

.tier-selector {
    margin-bottom: 10px;
}

.tier-selector .btn {
    margin: 0 5px;
}

.tier-selector .btn.active {
    background-color: #007bff;
    color: white;
}

/* Additional UI Styles */
.inventory-item {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.inventory-item.occupied {
    background-color: #e8f5e9;
}

.zone-info-panel {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .warehouse-container {
        padding: 10px;
    }

    .measurements-top,
    .measurements-left,
    .measurements-right {
        display: none;
    }
}

.rack-visual-container {
    display: flex;
    justify-content: center;
}

.rack-display {
    display: flex;
    flex-direction: column-reverse;
    /* Display tiers from bottom to top */
    border: 3px solid #e5e9f2;
    border-radius: 6px;
    padding: 10px;
    background: #f8f8f8;
    width: 400px;
}

.rack-tier {
    display: flex;
    align-items: center;
    margin: 8px 0;
    padding: 10px;
    background-color: #f0f2f7;
    border-radius: 4px;
    border: 1px solid #dbdfea;
}

.tier-label {
    font-weight: bold;
    margin-right: 20px;
    min-width: 30px;
    text-align: center;
}

.pallet-container {
    display: flex;
    flex-grow: 1;
    gap: 10px;
}

.rack-pallet {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border: 2px solid #95aac9;
    border-radius: 4px;
    background-color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.rack-pallet:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rack-pallet.selected {
    background-color: #6576ff;
    color: white;
    border-color: #4559e9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rack-tier.active-tier {
    background-color: #e0e5f2;
    border-color: #95aac9;
}

/* Indicator for tiers with items */
.rack-tier[data-has-items="true"] {
    border-left: 3px solid #40c057;
}



/* Form Validation Style */

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

/* Required asterisk styling */
.required-asterisk {
    color: #e85347;
    margin-left: 3px;
}

/* Character count styling */
.char-count {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.char-count.text-warning {
    color: #f4bd0e !important;
}

.char-count.text-danger {
    color: #e85347 !important;
}

/* Success feedback styling */
.success-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #1ee0ac;
}

/* Error summary styling */
#error-summary {
    margin-bottom: 1rem;
}

#error-summary ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

/* Alert animations */
.alert-slide-down {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#payment-history-table, #documentsTable, #location-table,#documents{
    overflow: visible !important;
}

[id^="recommended_selling_price_"] {
        display: inline-block; /* This makes transform work */

    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Enlarge on hover */
[id^="recommended_selling_price_"]:hover {
    transform: scale(1.1);
}

.nk-tb-item.fw-bold{
    font-weight: 500;
    color: #364a63;
    line-height: 1.4;
}



.report-data-table {
    table-layout: fixed !important;
    width: 100% !important;
}