
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}
.d-none {
    display: none;
}


/* Screen preview styling */
.barcode-label {
    border: 1px solid #ddd;
    margin: 5px;
    padding: 5px;
    font-family: Arial, sans-serif;
}

.product-name {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.size-price {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
}

img {
    max-width: 100%;
    height: auto;
}
#blazor-error-ui {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #b32121;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: Arial, sans-serif;
    font-size: 14px;
    max-width: 90%;
    z-index: 1000;
    display: none;
}

    #blazor-error-ui a.reload {
        background: white;
        color: #b32121;
        padding: 0.4rem 0.8rem;
        border-radius: 4px;
        font-weight: bold;
        text-decoration: none;
        transition: background 0.3s ease, color 0.3s ease;
    }

        #blazor-error-ui a.reload:hover {
            background: #f7c0c0;
            color: #8b1a1a;
        }

    #blazor-error-ui a.dismiss {
        background: none;
        border: none;
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        transition: color 0.3s ease;
    }

        #blazor-error-ui a.dismiss:hover {
            color: #ffdddd;
        }

.blazor-error-boundary {
    background: #ffebeb;
    color: #b32121;
    padding: 1rem;
    border: 1px solid #b32121;
    border-radius: 6px;
    font-weight: bold;
}

    .blazor-error-boundary::after {
        content: "An unexpected error has occurred.";
        display: block;
        font-size: 14px;
        margin-top: 5px;
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}
.rz-grid-table thead th {
    background: #E6EAED;
}
.custom-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgb(210, 223, 251), rgb(248, 250, 254));
    padding: 16px;
    border-radius: 8px;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.banner-text {
    display: flex;
    flex-direction: column;
}

    .banner-text h5 {
        font-weight: 500;
        margin: 0;
    }

    .banner-text p {
        font-size: 14px;
        margin: 4px 0 0;
    }

.btn-excel {
    background-color: #047C5A;
    color: white;
    border: none;
}

    .btn-excel:hover {
        background-color: #035C44;
    }

.tooltip-custom .tooltip-inner {
    background-color: #343a40;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #343a40;
}

.custom-width {
    width: 400px; /* Adjust as needed */
}
.custom-date {
    width: 280px; /* Adjust as needed */
}
.custom-offcanvas {
    width: 680px !important;
    max-width: 680px !important;
}
.offcanvas-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff; /* Match offcanvas background */
    padding: 15px;
    border-top: 1px solid #ddd;
    z-index: 1050; /* Ensure it's above content */
    text-align: right;
}
.custom-offcanvas {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full height */
}

.offcanvas-body.content-scroll {
    flex-grow: 1;
    overflow-y: auto; /* Enables scrolling */
    max-height: calc(100vh - 120px); /* Adjust based on header/footer height */
    padding-bottom: 60px; /* Space for the footer */
}

.offcanvas-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff; /* Match modal background */
    padding: 15px;
    border-top: 1px solid #ddd;
    text-align: right;
    z-index: 1050;
}
.page-wrapper-new{
    height:200px;
}
.inventory-select-batch {
    width: 120px;
}

.inventory-input-qty {
    width: 80px;
}

.inventory-input-price {
    width: 100px;
}

.inventory-input-discount {
    width: 80px !important;
}

.inventory-input-discount-amount {
    width: 80px !important;
}

.inventory-select-tax {
    width: 100px;
}

.table td input,
.table td select {
    vertical-align: middle !important;
    margin: 0; /* remove extra margins */
    line-height: 1.5; /* ensure a uniform line height */
}

/* Optionally, you can also add custom classes if needed */
.inventory-input,
.inventory-select {
    vertical-align: middle;
}
.select-party-row {
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

    .select-party-row:hover {
        background-color: #e9ecef;
    }

.border-dashed {
    border-style: dashed !important;
}

/* Make dropdown scrollable */
.dropdown-scrollable {
    max-height: 300px;
    overflow-y: auto;
    max-width: 402px;
}

/* Highlighted row styling */
.active-item {
    background-color: #007bff !important;
    color: #fff !important;
}
.rz-multiselect .rz-placeholder, .rz-dropdown .rz-placeholder {
    font-size: 13px !important;
}
.rz-menuitem, .rz-autocomplete-list-item, .rz-multiselect-item, .rz-autocomplete-items li, .rz-dropdown-items li, .rz-multiselect-items li, .rz-dropdown-item{
    font-size:14px !important;
}
.rz-listbox-filter-container .rz-inputtext, .rz-dropdown-filter-container .rz-inputtext, .rz-multiselect-filter-container .rz-inputtext{
    font-size:14px !important;
}
.mb-3{
    text-align:left;
}
/* Modern Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.3);
    /*backdrop-filter: blur(5px);*/
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.required-asterisk {
    color: #dc3545;
}

.modern-input {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.2s;
}

    .modern-input:focus {
        border-color: #4d90fe;
        box-shadow: 0 0 0 2px rgba(77, 144, 254, 0.2);
    }

.input-with-validation {
    position: relative;
}

.validation-message {
    bottom: -18px;
    font-size: 12px;
    color: #dc3545;
}

.editor-container {
    border-radius: 8px;
    overflow: hidden;
}

.attachment-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

.attachment-icon {
    font-size: 24px;
    color: #e74c3c;
}

.attachment-info {
    flex: 1;
}

.attachment-name {
    font-weight: 500;
    margin-bottom: 3px;
}

.attachment-meta {
    font-size: 13px;
    color: #777;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
}
.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #777;
    cursor: pointer;
    transition: all 0.2s;
}

    .close-btn:hover {
        color: #333;
        transform: rotate(90deg);
    }

.with-spinner {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-container {
        margin: 0 15px;
    }
}
.modal-dialog-scrollable .modal-content{
    background: #ffffff;
}
.rz-datepicker:has(.rz-datepicker-trigger) > .rz-inputtext {
    height: 36px;
}
.rz-button-md {
    padding: 0;
    height: auto;
    line-height: 1.25rem;
    min-height: 0rem;
    min-width: 2.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 1.25px;
    text-transform: lowercase;
}