﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    width: 100%;
    min-height: 100%;
}

a, .btn-link {
    color: #0366d6;
}

.spinner {
    border: 16px solid silver;
    border-top: 16px solid red;
    border-radius:50%;
    width:80px;
    height:80px;
    animation:spin 700ms linear infinite;
    top:40%;
    left:55%;
    position:absolute;
}

.DonotPrint {
}

@keyframes spin {
    0% {
        transform:rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-layout {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}




.main {
    flex: 1;
    transition: margin-left 0.5s; /* If you want a transition effect */
    animation:0.5s;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    overflow-x: hidden;
    overflow-y: auto;
    transition: width 0.35s ease, min-width 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
    max-height: 100%;
    flex-shrink: 0;
}

.sidebar-collapsed .sidebar {
    width: 64px !important;
    min-width: 64px !important;
}

.sidebar-collapsed .main {
    width: 100% !important;
}

.sidebar-toggle-btn {
    position: fixed;
    left: 250px;
    top: 0.75rem;
    z-index: 1050;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 0 6px 6px 0;
    border: 1px solid #d6d5d5;
    border-left: none;
    background: #fff;
    color: #052767;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
    transition: left 0.35s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle-btn:hover {
    background: #f0f4ff;
    color: #3a0647;
}

.sidebar-collapsed .sidebar-toggle-btn {
    left: 64px;
}

.sidebar-toggle-btn .toggle-icon {
    transition: transform 0.35s ease;
    font-size: 1rem;
    line-height: 1;
}

.sidebar-collapsed .sidebar-toggle-btn .toggle-icon {
    transform: rotate(180deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    margin-left: 1.25rem;
}

.nav-submenu.expanded {
    max-height: 500px;
    opacity: 1;
    margin-top: 0.15rem;
    margin-bottom: 0.35rem;
}

.nav-module-toggle {
    cursor: pointer;
    user-select: none;
}

.nav-module-toggle .chevron {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.nav-module-toggle.expanded .chevron {
    transform: rotate(90deg);
}

.layout-topbar {
    background: linear-gradient(90deg, #f8faff 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.layout-topbar .user-greeting {
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.dashboard-page {
    padding-bottom: 2rem;
}

.dashboard-header {
    margin-bottom: 1.5rem;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.dashboard-header p {
    color: #64748b;
    margin: 0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.dashboard-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.dashboard-stat-card .stat-row {
    display: flex;
    align-items: center;
}

.dashboard-stat-card .stat-row > div:last-child {
    margin-left: 1rem;
}

.dashboard-stat-card .stat-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dashboard-stat-card .stat-icon.sales { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; }
.dashboard-stat-card .stat-icon.orders { background: linear-gradient(135deg, #059669, #047857); color: #fff; }
.dashboard-stat-card .stat-icon.challans { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; }
.dashboard-stat-card .stat-icon.graph { background: linear-gradient(135deg, #0891b2, #0e7490); color: #fff; }

.dashboard-stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.dashboard-stat-card .stat-label {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.dashboard-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.dashboard-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.dashboard-section-title.receivables { color: #059669; }
.dashboard-section-title.payables { color: #dc2626; }
.dashboard-section-title.cash { color: #2563eb; }
.dashboard-section-title.expenses { color: #ea580c; }
.dashboard-section-title.sales { color: #059669; }
.dashboard-section-title.purchases { color: #dc2626; }
.dashboard-section-title.stock { color: #7c3aed; }
.dashboard-section-title.bills { color: #b45309; }

.dashboard-charts-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 1.25rem;
    box-shadow: none;
}

.dashboard-chart-card {
    min-height: 340px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    animation: dashboard-chart-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-chart-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.11);
}

.dashboard-charts-panel .col-sm-4:nth-child(1) .dashboard-chart-card { animation-delay: 0.05s; }
.dashboard-charts-panel .col-sm-4:nth-child(2) .dashboard-chart-card { animation-delay: 0.13s; }
.dashboard-charts-panel .col-sm-4:nth-child(3) .dashboard-chart-card { animation-delay: 0.21s; }

.dashboard-chart-heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #eef2f7;
}

.dashboard-chart-heading h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-chart-heading p {
    margin: 0.18rem 0 0;
    color: #64748b;
    font-size: 0.78rem;
}

.dashboard-chart-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.15rem;
}

.receivables-chart .dashboard-chart-icon { background: #d1fae5; color: #047857; }
.payables-chart .dashboard-chart-icon { background: #fee2e2; color: #b91c1c; }
.cash-chart .dashboard-chart-icon { background: #dbeafe; color: #1d4ed8; }

.dashboard-chart {
    height: 245px;
}

.dashboard-chart .rz-grid-line line {
    stroke: #e9eef5 !important;
}

.dashboard-chart .rz-axis text,
.dashboard-chart .rz-tick-text {
    fill: #64748b !important;
    font-size: 0.72rem;
}

.dashboard-chart .rz-column-series rect {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: dashboard-bar-grow 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dashboard-chart .rz-column-series rect:nth-child(2n) {
    animation-delay: 0.06s;
}

.dashboard-chart .rz-column-series rect:nth-child(3n) {
    animation-delay: 0.12s;
}

@keyframes dashboard-bar-grow {
    from {
        opacity: 0;
        transform: scaleY(0.04);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes dashboard-chart-enter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-chart-card {
        animation: none;
        transition: none;
    }

    .dashboard-chart .rz-column-series rect {
        animation: none;
    }
}

.dashboard-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.875rem;
}

/* Login page */
.login-layout {
    min-height: 100vh;
    width: 100%;
}

.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 15%, rgba(99, 102, 241, 0.5) 0, rgba(99, 102, 241, 0) 31%),
        radial-gradient(circle at 88% 80%, rgba(14, 165, 233, 0.35) 0, rgba(14, 165, 233, 0) 30%),
        linear-gradient(135deg, #061a46 0%, #0b3478 46%, #3b176d 100%);
    animation: login-page-fade-in 0.45s ease-out both;
}

.login-page::before,
.login-page::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.login-page::before {
    width: 62vw;
    height: 62vw;
    min-width: 540px;
    min-height: 540px;
    top: -36vw;
    right: -16vw;
    border: 48px solid rgba(125, 211, 252, 0.13);
    box-shadow:
        0 0 0 48px rgba(129, 140, 248, 0.08),
        0 0 0 96px rgba(196, 181, 253, 0.05);
    transform: rotate(-20deg);
}

.login-page::after {
    width: 54vw;
    height: 54vw;
    min-width: 460px;
    min-height: 460px;
    bottom: -34vw;
    left: -18vw;
    border: 42px solid rgba(147, 197, 253, 0.12);
    box-shadow: 0 0 0 42px rgba(99, 102, 241, 0.07);
}

.login-card {
    display: flex;
    width: 100%;
    max-width: 920px;
    min-height: 520px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #dbe3ee;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18), 0 3px 10px rgba(15, 23, 42, 0.08);
    animation: login-card-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
    z-index: 1;
}

@keyframes login-page-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes login-card-enter {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-page,
    .login-card {
        animation: none;
    }
}

.login-brand-panel {
    flex: 1;
    padding: 2.5rem 2rem;
    background: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    width: 110px;
    height: 110px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
}

.login-brand-panel h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.login-brand-panel p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.login-brand-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.login-form-panel {
    flex: 1;
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.login-form-header p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.login-field {
    margin-bottom: 1rem;
}

.login-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.login-input {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    min-height: 42px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.login-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.login-submit-btn {
    width: 100%;
    min-height: 44px;
    margin-top: 0.5rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    color: #fff;
}

.login-submit-btn:disabled {
    opacity: 0.75;
    cursor: wait;
}

.login-form-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.85rem;
    color: #64748b;
}

@media (max-width: 767.98px) {
    .login-card {
        flex-direction: column;
        min-height: auto;
    }

    .login-brand-panel {
        padding: 1.75rem 1.5rem;
    }

    .login-form-panel {
        padding: 1.75rem 1.5rem 2rem;
    }

    .login-page {
        padding: 1rem;
    }
}

/* Dashboard grids */
.dashboard-page.dashboard-loading {
    cursor: wait;
}

.dashboard-stat-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.6rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.dashboard-stat-spinner {
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid #cbd5e1;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: dashboard-stat-spin 0.7s linear infinite;
}

@keyframes dashboard-stat-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-stat-spinner {
        animation-duration: 1.5s;
    }
}

.dashboard-grid-wrap {
    position: relative;
    min-height: 180px;
}

.dashboard-grid-wrap.is-loading {
    cursor: wait !important;
}

.dashboard-grid-wrap.is-loading,
.dashboard-grid-wrap.is-loading * {
    cursor: wait !important;
}

.dashboard-grid-wrap.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    z-index: 2;
    pointer-events: none;
}

.dashboard-section .dashboard-grid.rz-data-grid,
.dashboard-section .rz-data-grid.dashboard-grid {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
}

.dashboard-section .rz-grid-table thead th {
    background: #f8fafc !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.dashboard-section .rz-grid-table tbody tr:hover {
    background: #f8fafc !important;
}

.dashboard-section .rz-grid-table tbody td {
    font-size: 0.875rem;
    color: #1e293b;
    border-color: #f1f5f9 !important;
}

.dashboard-section .rz-grid-table tfoot td {
    background: #f8fafc !important;
    font-weight: 600;
}

.dashboard-section .rz-pager {
    border-top: 1px solid #e2e8f0;
    background: #fafbfc;
}

.dashboard-section .rz-cell-filter {
    background: #fff;
}

.dashboard-total-positive {
    color: #059669;
    font-weight: 700;
}

.dashboard-total-negative {
    color: #dc2626;
    font-weight: 700;
}

.RptAddress {
    resize: none;
    overflow:hidden;
   
    border:none;
    background-color:transparent;
    font-family:Calibri;
    font-size:16px;
    font-weight:bold;
    overscroll-behavior-y: none;
   
}

/*textarea.rows-5 {*/
    /* height: calc(font-size * line-height * rows); */
    /*height: calc(1em * 1.5 * 5);
}*/

.hide-scroll {
    overflow-y: scroll;
}


.sidebar .top-row {
    background-color: rgba(0,0,0,0.4);
}

.mobile-sidebar-toggle,
.mobile-menu-backdrop {
    display: none;
}

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        /*color:white;*/
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.3rem;
        color:white;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            width: 12rem;
            height: 2rem;
            display: flex;
            align-items: center;
            line-height: 2rem;
            transition: 0.3s;
        }

        .sidebar .nav-module-toggle {
            color: #d7d7d7;
            border-radius: 4px;
            width: 12rem;
            min-height: 2rem;
            display: flex;
            align-items: center;
            line-height: 1.4;
            transition: 0.3s;
            gap: 0.35rem;
        }

        .sidebar .nav-module-toggle:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

        .sidebar .nav-module-toggle.expanded {
            background-color: rgba(255,255,255,0.12);
            color: white;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }


::placeholder {
    color: grey;
    opacity: 1; /* Firefox */
    font-style: Italic;
}
.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.mobile-DialogInputSize {
    width: 400px;
    border: none;
    
    
}


.hide-scroll {
    overflow-y: scroll;
}




@media (max-width: 767.98px) {
    .app-layout {
        display: block;
    }

    .sidebar {
        width: 100vw !important;
        min-width: 100vw !important;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1100;
        transform: translateY(0);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
        transition: transform 0.35s ease, box-shadow 0.35s ease;
    }

    .sidebar-collapsed .sidebar {
        width: 100vw !important;
        min-width: 100vw !important;
        transform: translateY(-100%);
        box-shadow: none;
        pointer-events: none;
    }

    .mobile-sidebar-toggle {
        display: flex;
        position: fixed;
        top: 0.7rem;
        left: 0.75rem;
        z-index: 1110;
        width: 2.5rem;
        height: 2.5rem;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 8px;
        background: #052767;
        color: #fff;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
        transition: left 0.2s ease, right 0.2s ease, background-color 0.2s ease;
    }

    .app-layout:not(.sidebar-collapsed) .mobile-sidebar-toggle {
        left: auto;
        right: 0.75rem;
        background: rgba(255, 255, 255, 0.16);
    }

    .main .content {
        padding-top: 4.5rem;
    }

    .mobile-menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1095;
        background: rgba(15, 23, 42, 0.38);
        opacity: 1;
        transition: opacity 0.35s ease;
    }

    .sidebar-collapsed .mobile-menu-backdrop {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .sidebar .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        display: block;
    }

    .sidebar .top-row {
        padding-left: 1.25rem;
        padding-right: 4.5rem;
    }

    .sidebar .navbar-brand {
        text-align: left;
    }

    .sidebar .nav {
        padding: 1rem 1.25rem 2rem;
    }

    .sidebar .nav-item.px-3,
    .sidebar .nav-item.px-2 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .sidebar .nav-item a,
    .sidebar .nav-module-toggle {
        width: 100%;
        min-height: 2.85rem;
        padding: 0.65rem 0.85rem;
        text-align: left;
        justify-content: flex-start;
    }

    .sidebar .nav-module-toggle {
        gap: 0.65rem;
    }

    .sidebar .nav-submenu {
        margin-left: 0.8rem;
        padding: 0.25rem 0 0.25rem 0.85rem;
    }

    .sidebar .nav-submenu .nav-item a {
        font-size: 0.88rem;
    }

    .main .top-row:not(.auth) {
        display: none;
        
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
    .mobile-tabs {
        width: 33%;
    }
    .mobile-tabs25 {
        width: 25%;
        font-size:10px;
        text-align:left;
    }

    .mobile-GridSO{
        width:100%;
    }
    .btnSidebar{
        visibility:hidden;
    }
    .mobile-Main {
        width: 100%;
    }

    .Mobile-DialogPos {
        left: 0px;
        top: 200px;
    }


    .print-page {
        page-break-after: always;
    }

}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .app-layout {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        min-width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        display: block;
    }
    .mobile-GridSO {
        width: 800px;
    }


    .btnSidebar {
        visibility: visible;
    }
    .mobile-Main{
        width: calc(100% - 250px);
        transition: width 0.35s ease;
    }

    .sidebar-collapsed .mobile-Main {
        width: 100%;
    }

    .sidebar-collapsed .sidebar .navbar-brand,
    .sidebar-collapsed .sidebar .nav-label,
    .sidebar-collapsed .sidebar .chevron,
    .sidebar-collapsed .sidebar .nav-submenu {
        display: none;
    }

    .sidebar-collapsed .sidebar .top-row {
        padding: 0;
        justify-content: center;
    }

    .sidebar-collapsed .sidebar .nav-item.px-3,
    .sidebar-collapsed .sidebar .nav-item.px-2 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .sidebar-collapsed .sidebar .nav-item a,
    .sidebar-collapsed .sidebar .nav-module-toggle {
        width: 100%;
        justify-content: center;
        gap: 0;
    }

    .sidebar-collapsed .sidebar .oi {
        width: auto;
    }

    .Mobile-DialogPos{
        left:20px;
        top:200px;
       
    }

    .mobile-DialogWidth {
        /*position: fixed;*/
        top: 0%;
        left: 20%;
        /*transform: translate(-10%, -10%);*/
        /* Add any additional styles you want for the dialog */
    }

    .print-page {
        page-break-after: always;
    }

    .page-number:after {
        content: "All pages";
    }

}




/*@media print {

    @page {
        size: A4 landscape;
    }*/
/* use width if in portrait (use the smaller size to try
       and prevent image from overflowing page... */
/*img

{
    height: 90%;
    margin: 0;
    padding: 0;
}

}*/

/*table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}*/

@media print {

    @page {
        size: auto !important;        
        /*margin: 0px !important;*/
        padding: 0px !important;
    }

    div {
        /*margin: 0px !important;*/  /* No margin */
        padding: 0px !important; /* No padding */ 
        
    }
    /*@page :first {*/
        /* Add your styles here */
        /*margin-top: 0 !important;*/ /* Adjust the top margin as needed */

    /*}*/

    

    .btn-primary {
        display: none;
    }

    table {
        /*        border: solid #000 !important;
        border-width: 1px 0 0 1px !important;*/
        width: 100%;

    }

/*    th,td {
        margin: 0px;
        padding: 0px;
    }*/

    /* Define a counter for page numbers */
    body {
        /*display: table;*/
        /* margin: 0px !important;*/
        margin: 0;
        padding: 0;
        
        width: 210mm; /* A4 width in millimeters */
        height: 297mm; /* A4 height in millimeters */
        /*        margin:0px;
        padding:0px;*/
        /* table-layout: fixed;*/
        /*height: auto;*/
        /*page-break-inside: avoid;*/
    }

   
    .DonotPrint {
        display: none;
    }

    form {
        display: none;
        /*margin: 0px !important;*/
        padding: 0px !important;
    }

    .sidebar {
        display: none;
        transition: 0.5s; /* 0.5 second transition effect to slide in the sidebar */
    }

    tbody, thead {
        font-family: Arial;
        font-size: 10pt;
        width: 100%;
        
    }

    thead {
   
        page-break-after: auto;
    }



    tbody{
       page-break-inside:auto;

    }
    .RepCloseBtn {
        display: none;
        visibility: hidden;
    }


    .navbar-toggler {
        display: none;
    }

    .btnSidebar {
        visibility: hidden;
    }

    .page-number:after {
        content: "Page " counter(page);
        counter-increment: page;
    }
    /* close commented backslash hack */

}
