
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}
.d-none {
    display: none;
}

/* ── POS CSS Variables (must live here so :root works globally) ── */
:root {
    --pos-primary:        #6C5CE7;
    --pos-primary-dark:   #5a4bd1;
    --pos-primary-light:  #EDE9FE;
    --pos-primary-xlight: #F4F3FF;
    --pos-success:        #00B894;
    --pos-danger:         #e55353;
    --pos-warning:        #f6a623;
    --pos-bg:             #F1F0F8;
    --pos-surface:        #FFFFFF;
    --pos-border:         #E2DFFA;
    --pos-text:           #1e1b3a;
    --pos-muted:          #7b7a9b;
    --pos-radius:         12px;
    --pos-radius-sm:      7px;
    --pos-shadow:         0 2px 10px rgba(108,92,231,.09);
    --pos-shadow-md:      0 5px 22px rgba(108,92,231,.16);
}

/* POS: constrain to viewport height, scrollable items grid (matches compact .header.pos-header ~48px) */
.page-wrapper.pos-pg-wrapper {
    box-sizing: border-box;
    height: 100vh;
    padding-top: 48px;
    min-height: 0;
    overflow: hidden;
}
.page-wrapper.pos-pg-wrapper .pos-wrap {
    height: 100%;
    min-height: 0;
}

/* POS home layout: same shell as POS (header + scroll area) */
.main-wrapper.pos-home-layout-root {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
}


/* 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;
}
/* site.css or in a <style> block */
.btn-icon {
    width: 2.5rem; /* adjust as needed */
    height: 2.5rem; /* adjust as needed */
    padding: 0; /* no extra padding */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem; /* same as btn�s rounded corners */
}
.components-reconnect-modal {
    display: none !important;
}

/* Sidebar menu — uinkits-style: compact, icons, purple active, chevron right */
.sidebar-inner .sidebar-menu.nav-tree,
.sidebar .sidebar-menu.nav-tree,
#sidebar-menu.nav-tree {
    padding: 10px 8px 16px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    background: #fff !important;
}
.sidebar-menu.nav-tree .tree-root {
    list-style: none;
    padding: 0 !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-menu.nav-tree .tree-node {
    list-style: none;
    margin: 0;
}
.sidebar-menu.nav-tree .tree-branch {
    display: flex;
    align-items: center;
    padding: 8px 10px !important;
    min-height: 0 !important;
    cursor: pointer;
    color: #374151;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.35 !important;
    border-radius: 8px;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-menu.nav-tree .tree-branch:hover {
    background: rgba(0, 0, 0, 0.04);
}
.sidebar-menu.nav-tree .tree-branch:active,
.sidebar-menu.nav-tree .tree-node.tree-expanded > .tree-branch {
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
}
.sidebar-menu.nav-tree .tree-toggle {
    display: none;
}
.sidebar-menu.nav-tree .tree-chevron {
    margin-left: auto;
    margin-right: 0;
    font-size: 14px;
    line-height: 1;
    color: #6b7280;
    flex-shrink: 0;
}
.sidebar-menu.nav-tree .tree-node.tree-expanded > .tree-branch .tree-chevron {
    color: #6d28d9;
}
.sidebar-menu.nav-tree .tree-branch img,
.sidebar-menu.nav-tree .tree-link img {
    display: none !important;
}
/* Navigation menu icons (Tabler ti-*, Font Awesome fa *) */
.sidebar-menu.nav-tree .tree-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    min-width: 1.25rem;
    height: 1.25rem;
    margin-right: 10px;
    font-size: 1.125rem;
    line-height: 1;
    color: #6b7280;
    flex-shrink: 0;
    transition: color 0.15s ease;
}
.sidebar-menu.nav-tree .tree-branch:hover .tree-icon,
.sidebar-menu.nav-tree .tree-link:hover .tree-icon {
    color: #374151;
}
.sidebar-menu.nav-tree .tree-node.tree-expanded > .tree-branch .tree-icon,
.sidebar-menu.nav-tree .tree-link.active .tree-icon {
    color: #6d28d9;
}
.sidebar-menu.nav-tree .tree-icon-img,
.sidebar-menu.nav-tree img.tree-icon-img {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    object-fit: contain;
    margin-right: 10px;
    flex-shrink: 0;
}
.sidebar-menu.nav-tree .tree-icon-closed {
    margin-right: 10px;
    font-size: 1.125rem;
    color: #6b7280;
    flex-shrink: 0;
}
.sidebar-menu.nav-tree .tree-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px !important;
}
/* Child block: clear grouping with subtle background and vertical guide */
.sidebar-menu.nav-tree .tree-children {
    list-style: none;
    padding: 6px 0 6px 0 !important;
    margin: 6px 0 10px 0;
    margin-left: 28px;
    padding-left: 14px;
    border-left: 2px solid rgba(124, 58, 237, 0.2);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 8px 8px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.sidebar-menu.nav-tree .tree-children-level-2 {
    margin-left: 20px;
    padding-left: 12px;
    border-left-color: rgba(124, 58, 237, 0.15);
    background: rgba(0, 0, 0, 0.015);
}
.sidebar-menu.nav-tree .tree-leaf {
    list-style: none;
    margin: 0;
}
.sidebar-menu.nav-tree .tree-link .tree-folder-nav,
.sidebar-menu.nav-tree .tree-link .tree-folder-unselected { display: none !important; }
.sidebar-menu.nav-tree .tree-link.active .tree-folder-nav { display: block !important; }
/* Child links: clear list format with dot indicator */
.sidebar-menu.nav-tree .tree-link {
    display: flex;
    align-items: center;
    padding: 6px 10px 6px 12px !important;
    min-height: 0 !important;
    color: #4b5563;
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.4 !important;
    text-decoration: none;
    border-radius: 6px;
    margin: 0 4px 0 0;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
    padding-left: 28px !important;
}
.sidebar-menu.nav-tree .tree-link::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}
.sidebar-menu.nav-tree .tree-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #111827;
}
.sidebar-menu.nav-tree .tree-link:hover::before {
    opacity: 0.8;
}
.sidebar-menu.nav-tree .tree-link.active {
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
    font-weight: 600;
    border-left: none;
    padding-left: 28px !important;
}
.sidebar-menu.nav-tree .tree-link.active::before {
    background: #6d28d9;
    opacity: 1;
}
.sidebar-menu.nav-tree .tree-link.active span {
    color: #6d28d9;
    font-weight: 600;
}
/* Child link with icon: no dot, align icon and text */
.sidebar-menu.nav-tree .tree-link:has(.tree-icon)::before {
    display: none;
}
.sidebar-menu.nav-tree .tree-link:has(.tree-icon) {
    padding-left: 12px !important;
}
.sidebar-menu.nav-tree .tree-link.active:has(.tree-icon) {
    padding-left: 12px !important;
}
.sidebar-menu.nav-tree .tree-link.active .tree-icon-img.tree-folder-nav {
    filter: none;
}
[data-theme=dark] .sidebar-menu.nav-tree .tree-link.active .tree-icon {
    color: #a78bfa;
}
[data-theme=dark] .sidebar-menu.nav-tree .tree-node.tree-expanded > .tree-branch .tree-icon {
    color: #a78bfa;
}
[data-theme=dark] .sidebar-menu.nav-tree .tree-branch,
[data-theme=dark] .sidebar-menu.nav-tree .tree-link {
    color: #D8DFEE;
}
[data-theme=dark] .sidebar .sidebar-menu.nav-tree,
[data-theme=dark] #sidebar-menu.nav-tree {
    background: transparent !important;
}
[data-theme=dark] .sidebar-menu.nav-tree .tree-branch:hover {
    background: rgba(255, 255, 255, 0.06);
}
[data-theme=dark] .sidebar-menu.nav-tree .tree-node.tree-expanded > .tree-branch {
    background: rgba(124, 58, 237, 0.2);
    color: #a78bfa;
}
[data-theme=dark] .sidebar-menu.nav-tree .tree-link:hover {
    background: rgba(255, 255, 255, 0.06);
}
[data-theme=dark] .sidebar-menu.nav-tree .tree-link.active {
    background: rgba(124, 58, 237, 0.25);
    color: #a78bfa;
}
[data-theme=dark] .sidebar-menu.nav-tree .tree-link.active span {
    color: #a78bfa;
}
[data-theme=dark] .sidebar-menu.nav-tree .tree-chevron {
    color: #94a3b8;
}
[data-theme=dark] .sidebar-menu.nav-tree .tree-node.tree-expanded > .tree-branch .tree-chevron {
    color: #a78bfa;
}
[data-theme=dark] .sidebar-menu.nav-tree .tree-children {
    border-left-color: rgba(124, 58, 237, 0.35);
    background: rgba(255, 255, 255, 0.03);
}
[data-theme=dark] .sidebar-menu.nav-tree .tree-children-level-2 {
    border-left-color: rgba(124, 58, 237, 0.25);
    background: rgba(255, 255, 255, 0.02);
}

/* =========================
   Dispatch: Delivery Note
   ========================= */
.delivery-note {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #0f172a;
}
.delivery-note.paper-a4 {
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 10px;
    padding: 14px;
}
.delivery-note .dn-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.25);
    margin-bottom: 12px;
}
.delivery-note .dn-company-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.delivery-note .dn-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #fff;
}
.delivery-note .dn-company-name {
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
}
.delivery-note .dn-company-sub {
    font-size: 12px;
    color: #475569;
    line-height: 1.25;
}
.delivery-note .dn-titlebox {
    text-align: right;
}
.delivery-note .dn-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #2563eb;
    margin-bottom: 2px;
}
.delivery-note .dn-title-meta {
    font-size: 12px;
    color: #334155;
}
.delivery-note .dn-title-meta span {
    color: #64748b;
}
.delivery-note .dn-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.delivery-note .dn-info-row {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 12px;
}
.delivery-note .dn-info-item {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(2, 6, 23, 0.01);
}
.delivery-note .dn-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.delivery-note .dn-value {
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
    margin-top: 2px;
    white-space: pre-wrap;
}
.delivery-note .dn-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
}
.delivery-note .dn-table th,
.delivery-note .dn-table td {
    border: 1px solid rgba(148, 163, 184, 0.55);
    padding: 8px 10px;
    font-size: 12px;
}
.delivery-note .dn-table thead th {
    background: rgba(37, 99, 235, 0.08);
    font-weight: 800;
    color: #0f172a;
}
.delivery-note .dn-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 14px;
}
.delivery-note .dn-sign-line {
    height: 1px;
    background: rgba(148, 163, 184, 0.75);
    margin-top: 32px;
}
.delivery-note .dn-sign-label {
    font-weight: 800;
    font-size: 12px;
    margin-top: 6px;
}
.delivery-note .dn-sign-sub {
    font-size: 11px;
    color: #64748b;
}
.delivery-note .dn-terms-title {
    font-weight: 900;
    font-size: 12px;
    color: #0f172a;
}
.delivery-note .dn-terms-text {
    font-size: 11px;
    color: #475569;
    line-height: 1.35;
    margin-top: 4px;
}

/* ========== Invoice form compact (Sales Invoice & Purchase Invoice add pages) ========== */
.invoice-form-compact {
    font-size: 0.8rem;
}
.invoice-form-compact .page-header {
    margin-bottom: 0.35rem !important;
}
.invoice-form-compact .page-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
}
.invoice-form-compact .page-header .btn {
    font-size: 0.75rem;
    padding: 0.2rem 0.45rem;
}
.invoice-form-compact .container-fluid.py-3,
.invoice-form-compact .container-fluid.py-2 {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}
.invoice-form-compact .voucher-container {
    padding: 0.5rem 0.75rem !important;
}
.invoice-form-compact .voucher-container .row.border-bottom {
    margin-bottom: 0.4rem !important;
    padding-bottom: 0.4rem !important;
}
.invoice-form-compact .voucher-container h5 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.invoice-form-compact .form-label {
    font-size: 0.75rem;
    margin-bottom: 0.12rem;
}
.invoice-form-compact .form-control,
.invoice-form-compact .form-select,
.invoice-form-compact input[type="text"],
.invoice-form-compact input[type="number"] {
    font-size: 0.75rem;
    padding: 0.2rem 0.35rem;
    min-height: 26px;
}
.invoice-form-compact .input-group-text {
    font-size: 0.75rem;
    padding: 0.2rem 0.35rem;
}
.invoice-form-compact .input-group .btn {
    font-size: 0.75rem;
    padding: 0.2rem 0.35rem;
}
.invoice-form-compact .row.g-3 {
    --bs-gutter-x: 0.35rem;
    --bs-gutter-y: 0.35rem;
}
.invoice-form-compact .row.g-3.mb-4,
.invoice-form-compact .row.mb-4 {
    margin-bottom: 0.35rem !important;
}
.invoice-form-compact .mb-3 {
    margin-bottom: 0.3rem !important;
}
.invoice-form-compact .mb-4 {
    margin-bottom: 0.4rem !important;
}
.invoice-form-compact .form-check-inline,
.invoice-form-compact .form-check {
    font-size: 0.75rem;
}
.invoice-form-compact .form-check-label {
    font-size: 0.75rem;
}
.invoice-form-compact table {
    font-size: 0.75rem;
}
.invoice-form-compact table thead th {
    font-size: 0.7rem;
    padding: 0.2rem 0.3rem;
    font-weight: 600;
}
.invoice-form-compact table tbody td {
    padding: 0.2rem 0.3rem;
    vertical-align: middle;
}
.invoice-form-compact table tfoot td {
    padding: 0.25rem !important;
}
.invoice-form-compact table .form-control {
    font-size: 0.72rem;
    padding: 0.18rem 0.28rem;
}
.invoice-form-compact table .btn-sm {
    font-size: 0.7rem;
    padding: 0.15rem 0.28rem;
}
.invoice-form-compact .card-body {
    padding: 0.5rem 0.6rem;
}
.invoice-form-compact .card-body .fw-semibold,
.invoice-form-compact .card-body .form-check-label {
    font-size: 0.75rem;
}
.invoice-form-compact .card-body .mb-3 {
    margin-bottom: 0.3rem !important;
}
.invoice-form-compact textarea.form-control {
    font-size: 0.75rem;
    padding: 0.2rem 0.35rem;
    min-height: 1.8rem;
}
.invoice-form-compact .btn-primary,
.invoice-form-compact .btn-success {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}
.invoice-form-compact small.text-muted {
    font-size: 0.65rem;
}
.invoice-form-compact .fixed-bottom.bg-light {
    padding: 0.4rem 0 !important;
}
.invoice-form-compact .fixed-bottom .btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
}
.invoice-form-compact .signature-box {
    padding: 0.5rem !important;
}
.invoice-form-compact .address-details h6,
.invoice-form-compact .address-details p {
    font-size: 0.75rem;
}
.invoice-form-compact .address-details.mt-2 {
    margin-top: 0.35rem !important;
}
/* Radzen components inside compact form */
.invoice-form-compact .rz-textbox,
.invoice-form-compact .rz-dropdown,
.invoice-form-compact .rz-datepicker {
    font-size: 0.75rem;
}
.invoice-form-compact .rz-inputtext {
    font-size: 0.75rem;
    padding: 0.2rem 0.35rem;
}
.invoice-form-compact .rz-datepicker .rz-inputtext {
    font-size: 0.75rem;
}
.invoice-form-compact .rz-button {
    font-size: 0.75rem;
    padding: 0.2rem 0.35rem;
}

/* ========== Login page compact ========== */
.login-compact .login-content.user-login {
    margin: 0.75rem 0;
}
.login-compact .login-logo {
    max-width: 220px;
}
.login-compact .login-logo img {
    margin-bottom: 0.5rem;
    max-height: 64px;
    width: auto;
}
.login-compact .card-body-login {
    padding: 0.75rem 1rem !important;
}
.login-compact .login-userheading {
    margin-bottom: 0.5rem !important;
    padding-bottom: 0 !important;
}
.login-compact .login-userheading h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.login-compact .login-userheading h4 {
    font-size: 0.8rem;
    line-height: 1.3;
}
.login-compact .login-userheading h4.text-orange.fs-16 {
    font-size: 0.75rem;
}
.login-compact .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}
.login-compact .form-control,
.login-compact .pass-input {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    min-height: 32px;
}
.login-compact .input-group-text {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
}
.login-compact .mb-3 {
    margin-bottom: 0.5rem !important;
}
.login-compact .form-login {
    margin-bottom: 0.5rem;
}
.login-compact .form-login .btn-primary {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}
.login-compact .copyright-text {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}
.login-compact .copyright-text p {
    font-size: 0.75rem;
}
.login-compact .tenant-selection {
    margin-top: 0.75rem !important;
}
.login-compact .tenant-selection h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.login-compact .tenant-card {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
}
.login-compact .alert {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    margin-top: 0.5rem !important;
}
.login-compact .pass-group .pass-input {
    padding-right: 2rem;
}
.login-compact .toggle-password {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
}

/* ========== Logo size (sidebar & header) ========== */
.sidebar .sidebar-logo .logo img,
.header .header-left .logo img {
    max-width: 200px;
    width: 200px;
    height: auto;
    object-fit: contain;
}
.sidebar .sidebar-logo .logo-small img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

/* ========== Inactivity Lock Screen ========== */
.lock-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}
.lock-screen-card {
    background: var(--bs-body-bg, #fff);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}
.lock-screen-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}
.lock-screen-card h4 {
    margin-bottom: 0.5rem;
    text-align: center;
}
.lock-screen-card p {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ========== ERP Report Module (NAV/Odoo-style) ========== */
.report-page-layout { max-width: 100%; }
.breadcrumb-report { font-size: 0.875rem; }
.report-title { font-size: 1.25rem; }
.report-description { max-width: 560px; }
.report-summary-cards .report-summary-card { border-radius: 8px; transition: box-shadow 0.2s; }
.report-summary-cards .report-summary-card:hover { box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.08) !important; }
.report-filter-panel .card-header { border-bottom: 1px solid rgba(0,0,0,0.06); }
.report-empty-state { background: #fafbfc; border-radius: 8px; }
.report-hub-section { transition: box-shadow 0.2s, transform 0.15s; border-radius: 10px; overflow: hidden; }
.report-hub-section:hover { box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08); }
.report-hub-section .section-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.report-hub-section .section-count { font-size: 0.75rem; opacity: 0.9; }
.report-table thead th { white-space: nowrap; font-weight: 600; font-size: 0.8rem; border-bottom: 2px solid #dee2e6; padding: 0.6rem 0.75rem; background: #f8f9fa; }
.report-table tbody td { padding: 0.5rem 0.75rem; vertical-align: middle; }
.report-table tbody tr:hover { background-color: rgba(0,0,0,0.02); }
.report-table .text-amount { text-align: right; font-variant-numeric: tabular-nums; }
.report-table tfoot td { font-weight: 600; background: #f8f9fa; border-top: 2px solid #dee2e6; padding: 0.6rem 0.75rem; }
.report-table .badge-status { font-size: 0.7rem; padding: 0.25rem 0.5rem; }
.report-table .balance-positive { color: #198754; }
.report-table .balance-negative { color: #dc3545; }
.report-table .balance-overdue { color: #b02a37; font-weight: 600; }
@media print {
    .report-actions-slot, .report-filter-panel, .breadcrumb-report, .btn { visibility: hidden !important; }
    .report-page-layout .report-title { margin-top: 0; }
}
