/* =========================================================
   ERP Modern UI/UX Advance Layer
   Scope: visual polish + conflict neutralization only.
   No business logic changes. Print-safe and library-safe.
========================================================= */

@media screen {
  body.erp-modern-v2 {
    --erp-adv-gap: clamp(14px, 1.7vw, 24px);
    --erp-adv-gap-sm: clamp(10px, 1vw, 16px);
    --erp-adv-surface: color-mix(in srgb, var(--erp-surface, #ffffff) 92%, rgba(255,255,255,.65) 8%);
    --erp-adv-surface-strong: color-mix(in srgb, var(--erp-surface, #ffffff) 97%, rgba(255,255,255,.75) 3%);
    --erp-adv-border: color-mix(in srgb, var(--erp-primary, #4f7cff) 11%, rgba(15, 23, 42, .14));
    --erp-adv-border-strong: color-mix(in srgb, var(--erp-primary, #4f7cff) 22%, rgba(15, 23, 42, .16));
    --erp-adv-shadow: 0 18px 44px rgba(15, 23, 42, .10);
    --erp-adv-shadow-soft: 0 10px 24px rgba(15, 23, 42, .07);
    --erp-adv-chip-bg: color-mix(in srgb, var(--erp-primary, #4f7cff) 8%, #ffffff 92%);
    --erp-adv-muted-bg: color-mix(in srgb, var(--erp-text, #162033) 4%, #ffffff 96%);
    --erp-adv-success-bg: color-mix(in srgb, #22c55e 10%, #ffffff 90%);
    --erp-adv-warning-bg: color-mix(in srgb, #f59e0b 12%, #ffffff 88%);
    --erp-adv-radius: 22px;
  }

  body.erp-modern-v2 .erp-page-shell {
    position: relative;
    gap: var(--erp-adv-gap);
  }

  body.erp-modern-v2 .erp-page-context {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, .95fr);
    gap: var(--erp-adv-gap);
    padding: clamp(18px, 2vw, 28px);
    border: 1px solid var(--erp-adv-border);
    border-radius: calc(var(--erp-adv-radius) + 2px);
    background:
      radial-gradient(circle at top left, color-mix(in srgb, var(--erp-primary, #4f7cff) 12%, transparent) 0, transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.94));
    box-shadow: var(--erp-adv-shadow);
    overflow: hidden;
  }

  body.erp-modern-v2 .erp-page-context::after {
    content: "";
    position: absolute;
    inset-inline-end: -40px;
    inset-block-end: -46px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--erp-accent, #14b8a6) 16%, transparent) 0, transparent 68%);
    pointer-events: none;
  }

  body.erp-modern-v2 .erp-page-context__content,
  body.erp-modern-v2 .erp-page-context__aside {
    position: relative;
    z-index: 1;
  }

  body.erp-modern-v2 .erp-page-context__content {
    min-width: 0;
    display: grid;
    gap: .85rem;
  }

  body.erp-modern-v2 .erp-page-context__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    width: fit-content;
    min-height: 34px;
    padding: .35rem .8rem;
    border-radius: 999px;
    border: 1px solid var(--erp-adv-border);
    background: rgba(255,255,255,.78);
    color: var(--erp-primary, #4f7cff);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
  }

  body.erp-modern-v2 .erp-page-context__title {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.9rem);
    line-height: 1.18;
    font-weight: 900;
    color: var(--erp-text, #162033);
  }

  body.erp-modern-v2 .erp-page-context__meta {
    color: color-mix(in srgb, var(--erp-text, #162033) 68%, transparent);
    font-size: .95rem;
    line-height: 1.8;
  }

  body.erp-modern-v2 .erp-page-context__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
  }

  body.erp-modern-v2 .erp-page-context__chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 38px;
    padding: .45rem .85rem;
    border-radius: 14px;
    border: 1px solid var(--erp-adv-border);
    background: var(--erp-adv-chip-bg);
    color: var(--erp-text, #162033);
    font-size: .85rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
  }

  body.erp-modern-v2 .erp-page-context__chip i {
    color: var(--erp-primary, #4f7cff);
  }

  body.erp-modern-v2 .erp-page-context__chip--success {
    background: var(--erp-adv-success-bg);
  }

  body.erp-modern-v2 .erp-page-context__chip--warning {
    background: var(--erp-adv-warning-bg);
  }

  body.erp-modern-v2 .erp-page-context__aside {
    display: grid;
    gap: .8rem;
    align-content: start;
  }

  body.erp-modern-v2 .erp-view-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  body.erp-modern-v2 .erp-view-metric {
    display: grid;
    gap: .25rem;
    padding: .95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--erp-adv-border);
    background: rgba(255,255,255,.86);
    box-shadow: var(--erp-adv-shadow-soft);
  }

  body.erp-modern-v2 .erp-view-metric__label {
    color: color-mix(in srgb, var(--erp-text, #162033) 62%, transparent);
    font-size: .78rem;
    font-weight: 700;
  }

  body.erp-modern-v2 .erp-view-metric__value {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: 1.12rem;
    font-weight: 900;
    color: var(--erp-text, #162033);
  }

  body.erp-modern-v2 .erp-view-metric__value i {
    color: var(--erp-primary, #4f7cff);
    font-size: .95rem;
  }

  body.erp-modern-v2 .erp-module-surface,
  body.erp-modern-v2 .erp-enhanced-shell {
    display: grid;
    gap: var(--erp-adv-gap);
  }

  body.erp-modern-v2 .erp-module-surface > .card:last-child,
  body.erp-modern-v2 .erp-enhanced-shell > .card:last-child {
    margin-bottom: 0;
  }

  body.erp-modern-v2 .erp-form-section,
  body.erp-modern-v2 .erp-data-section {
    position: relative;
  }

  body.erp-modern-v2 .erp-form-section::before,
  body.erp-modern-v2 .erp-data-section::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--erp-primary, #4f7cff), color-mix(in srgb, var(--erp-accent, #14b8a6) 48%, #ffffff 52%));
    opacity: .82;
  }

  body.erp-modern-v2 .erp-smart-toolbar,
  body.erp-modern-v2 .button-box,
  body.erp-modern-v2 .form-group111,
  body.erp-modern-v2 .toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
  }

  body.erp-modern-v2 .erp-smart-toolbar .btn,
  body.erp-modern-v2 .button-box .btn,
  body.erp-modern-v2 .form-group111 .btn,
  body.erp-modern-v2 .toolbar .btn,
  body.erp-modern-v2 .toolbar button {
    min-height: 44px;
    border-radius: 14px;
    box-shadow: none;
  }

  body.erp-modern-v2 .erp-smart-toolbar .btn:not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-primary):not(.btn-info),
  body.erp-modern-v2 .toolbar .btn-ghost {
    border: 1px solid var(--erp-adv-border);
    background: rgba(255,255,255,.88);
    color: var(--erp-text, #162033);
  }

  body.erp-modern-v2 .erp-tabs-shell {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--erp-primary, #4f7cff) 34%, transparent) transparent;
  }

  body.erp-modern-v2 .erp-tabs-shell::-webkit-scrollbar {
    height: 8px;
  }

  body.erp-modern-v2 .erp-tabs-shell::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: color-mix(in srgb, var(--erp-primary, #4f7cff) 24%, rgba(15,23,42,.16));
  }

  body.erp-modern-v2 .erp-tabs-shell > .nav-tabs,
  body.erp-modern-v2 .nav-tabs.erp-tabs-shell {
    display: flex;
    flex-wrap: nowrap;
    gap: .55rem;
    min-width: max-content;
    padding: .65rem .75rem .35rem;
    border-bottom: 0;
  }

  body.erp-modern-v2 .erp-tabs-shell > .nav-tabs .nav-item,
  body.erp-modern-v2 .nav-tabs.erp-tabs-shell .nav-item {
    flex: 0 0 auto;
  }

  body.erp-modern-v2 .erp-tabs-shell .nav-link,
  body.erp-modern-v2 .nav-tabs.erp-tabs-shell .nav-link,
  body.erp-modern-v2 .erp-title-tile {
    min-height: 48px;
    border-radius: 16px !important;
    border: 1px solid transparent;
    background: rgba(255,255,255,.78);
    color: var(--erp-text, #162033);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.42);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  }

  body.erp-modern-v2 .erp-tabs-shell .nav-link:hover,
  body.erp-modern-v2 .nav-tabs.erp-tabs-shell .nav-link:hover,
  body.erp-modern-v2 .erp-title-tile:hover {
    transform: translateY(-1px);
    border-color: var(--erp-adv-border);
  }

  body.erp-modern-v2 .erp-tabs-shell .nav-link.active,
  body.erp-modern-v2 .nav-tabs.erp-tabs-shell .nav-link.active,
  body.erp-modern-v2 .erp-title-tile.active {
    border-color: var(--erp-adv-border-strong);
    background: linear-gradient(135deg, color-mix(in srgb, var(--erp-primary, #4f7cff) 12%, #ffffff 88%), rgba(255,255,255,.98));
    box-shadow: 0 14px 28px rgba(15, 23, 42, .10);
  }

  body.erp-modern-v2 .erp-title-tile__icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 24px;
  }

  body.erp-modern-v2 .erp-sidebar-search__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    min-width: 86px;
    margin-top: .6rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.84);
    font-size: .74rem;
    font-weight: 800;
  }

  body.erp-modern-v2 .erp-sidebar-search__count--filtered {
    background: rgba(255,255,255,.16);
    color: #fff;
  }

  body.erp-modern-v2 .erp-data-hint,
  body.erp-modern-v2 .smart-hint,
  body.erp-modern-v2 .erp-empty-state,
  body.erp-modern-v2 .alert {
    border-radius: 18px;
    border: 1px solid var(--erp-adv-border);
    box-shadow: none;
  }

  body.erp-modern-v2 .erp-data-hint,
  body.erp-modern-v2 .smart-hint,
  body.erp-modern-v2 .erp-empty-state {
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(246,250,255,.92));
    color: var(--erp-text, #162033);
    padding: .9rem 1rem;
  }

  body.erp-modern-v2 .table-responsive.erp-table-wrap,
  body.erp-modern-v2 .erp-card--table .card-body {
    position: relative;
  }

  body.erp-modern-v2 .table-responsive.erp-table-wrap::after {
    content: "";
    position: sticky;
    inset-inline-end: 0;
    top: 0;
    width: 20px;
    height: 100%;
    float: right;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.86));
    pointer-events: none;
  }

  body.erp-modern-v2 .dataTables_wrapper .row {
    row-gap: .9rem;
  }

  body.erp-modern-v2 .dataTables_wrapper .dataTables_filter,
  body.erp-modern-v2 .dataTables_wrapper .dataTables_length,
  body.erp-modern-v2 .dataTables_wrapper .dataTables_info,
  body.erp-modern-v2 .dataTables_wrapper .dataTables_paginate {
    display: flex;
    align-items: center;
  }

  body.erp-modern-v2 .dataTables_wrapper .dataTables_info,
  body.erp-modern-v2 .dataTables_wrapper .dataTables_paginate {
    padding-top: .4rem;
  }

  body.erp-modern-v2 .erp-runtime-modal .modal-body .erp-smart-toolbar,
  body.erp-modern-v2 .erp-runtime-modal .modal-footer {
    margin-top: .75rem;
  }

  body.erp-modern-v2 .hero,
  body.erp-modern-v2 .erp-auth-card,
  body.erp-modern-v2 .erp-upload-shell,
  body.erp-modern-v2 .erp-home-shell {
    display: grid;
    gap: var(--erp-adv-gap);
  }

  body.erp-modern-v2.blank-login-body .main-box,
  body.erp-modern-v2.config-login-body #form-section > *:first-child {
    position: relative;
  }

  body.erp-modern-v2.blank-login-body .main-box::before,
  body.erp-modern-v2.config-login-body #form-section > *:first-child::before {
    content: "Modern ERP";
    position: absolute;
    inset-inline-start: 18px;
    inset-block-start: 16px;
    min-height: 30px;
    padding: .2rem .7rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--erp-primary, #4f7cff) 9%, #ffffff 91%);
    color: var(--erp-primary, #4f7cff);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
  }

  body.erp-modern-v2 .erp-runtime-modal .modal-content,
  body.erp-modern-v2 #ImageViewModal .modal-content {
    overflow: hidden;
  }

  body.erp-modern-v2 #ImageViewModal .modal-body {
    padding: 1rem;
  }

  body.erp-modern-v2 #ImageViewModal .image,
  body.erp-modern-v2 #ImageViewModal .erp-image-viewer {
    display: grid;
    place-items: center;
    min-height: 280px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(247,250,255,.96), rgba(240,246,255,.92));
    border: 1px solid var(--erp-adv-border);
  }

  body.erp-modern-v2 #ImageViewModal img,
  body.erp-modern-v2 #ImageViewModal #UserImage {
    max-width: 100%;
    max-height: min(72vh, 860px);
    object-fit: contain;
    border-radius: 16px;
  }

  body.erp-modern-v2 .erp-topbar__brand-subtitle,
  body.erp-modern-v2 .erp-page-context__meta,
  body.erp-modern-v2 .erp-view-metric__label {
    text-wrap: balance;
  }

  @media (max-width: 1199.98px) {
    body.erp-modern-v2 .erp-page-context {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 991.98px) {
    body.erp-modern-v2 .erp-page-context {
      padding: 1rem;
      border-radius: 22px;
    }

    body.erp-modern-v2 .erp-view-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.erp-modern-v2 .erp-smart-toolbar,
    body.erp-modern-v2 .button-box,
    body.erp-modern-v2 .form-group111,
    body.erp-modern-v2 .toolbar {
      align-items: stretch;
    }

    body.erp-modern-v2 .erp-smart-toolbar .btn,
    body.erp-modern-v2 .button-box .btn,
    body.erp-modern-v2 .form-group111 .btn,
    body.erp-modern-v2 .toolbar .btn,
    body.erp-modern-v2 .toolbar button {
      flex: 1 1 calc(50% - .75rem);
    }
  }

  @media (max-width: 767.98px) {
    body.erp-modern-v2 .erp-page-context__chips {
      gap: .5rem;
    }

    body.erp-modern-v2 .erp-page-context__chip {
      min-height: 34px;
      padding-inline: .75rem;
      font-size: .8rem;
    }

    body.erp-modern-v2 .erp-view-metrics {
      grid-template-columns: 1fr 1fr;
      gap: .55rem;
    }

    body.erp-modern-v2 .erp-view-metric {
      padding: .8rem .85rem;
      border-radius: 16px;
    }

    body.erp-modern-v2 .erp-smart-toolbar .btn,
    body.erp-modern-v2 .button-box .btn,
    body.erp-modern-v2 .form-group111 .btn,
    body.erp-modern-v2 .toolbar .btn,
    body.erp-modern-v2 .toolbar button {
      flex: 1 1 100%;
    }
  }

  @media (max-width: 575.98px) {
    body.erp-modern-v2 .erp-view-metrics {
      grid-template-columns: 1fr;
    }

    body.erp-modern-v2 .erp-page-context__title {
      font-size: 1.15rem;
    }
  }
}

@media print {
  body.erp-modern-v2 .erp-page-context,
  body.erp-modern-v2 .erp-tabs-more-toggle,
  body.erp-modern-v2 .erp-sidebar-search__count {
    display: none !important;
  }
}


/* =========================================================
   ERP Modern UI/UX Advance | Feedback pass
   Goals:
   - remove duplicate context cards
   - compact layout for 100% browser zoom
   - flatten noisy field layers
   - compact sidebar search behind a small button
   - improve RTL/LTR consistency
   - reduce icon weight / size
========================================================= */

body.erp-modern-v2 {
  --erp-sidebar-width: 272px;
  --erp-sidebar-collapsed-width: 72px;
  --erp-header-height: 62px;
  --erp-footer-height: 54px;
  --erp-adv-gap: clamp(10px, 1vw, 16px);
}

body.erp-modern-v2 .erp-page-context,
body.erp-modern-v2 .erp-sidebar-overview,
body.erp-modern-v2 .smart-hint {
  display: none !important;
}

body.erp-modern-v2 .erp-page-shell {
  gap: .75rem;
}

body.erp-modern-v2 .content-wrapper {
  border-radius: 24px;
}

body.erp-modern-v2 .content {
  padding: .9rem;
}

body.erp-modern-v2 .main-header.erp-topbar {
  min-height: 62px;
  gap: .65rem;
  padding-inline: .75rem;
  border-radius: 18px;
}

body.erp-modern-v2 .erp-topbar__left,
body.erp-modern-v2 .erp-topbar__right,
body.erp-modern-v2 .erp-topbar__icon-group {
  gap: .4rem;
}

body.erp-modern-v2 .erp-topbar__icon,
body.erp-modern-v2 .main-header .nav-link,
body.erp-modern-v2 .main-header .btn:not(.dropdown-toggle):not(.btn-danger):not(.btn-info),
body.erp-modern-v2 .main-header #teOpenBtn {
  min-width: 36px;
  min-height: 36px;
  border-radius: 12px;
}

body.erp-modern-v2 .erp-topbar__icon i,
body.erp-modern-v2 #teOpenBtn,
body.erp-modern-v2 .erp-status-chip i,
body.erp-modern-v2 .nav-sidebar .nav-icon,
body.erp-modern-v2 .nav-treeview .nav-icon,
body.erp-modern-v2 .nav-sidebar .right,
body.erp-modern-v2 .erp-tabs-shell .nav-link i,
body.erp-modern-v2 .card.card-tabs .nav-link i,
body.erp-modern-v2 .btn i,
body.erp-modern-v2 button i {
  font-size: .9rem !important;
}

body.erp-modern-v2 .erp-topbar__brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

body.erp-modern-v2 .erp-topbar__brand-logo img {
  width: 24px;
  height: 24px;
}

body.erp-modern-v2 .erp-topbar__brand-title {
  font-size: .92rem;
}

body.erp-modern-v2 .erp-topbar__brand-subtitle {
  font-size: .72rem;
  max-width: 132px;
}

body.erp-modern-v2 #Home_Title {
  min-height: 40px;
  min-width: min(100%, 260px);
  padding: .45rem .85rem;
  border-radius: 14px;
  font-size: 1.05rem;
}

body.erp-modern-v2 #ExitbuttonHome .btn,
body.erp-modern-v2 .erp-topbar__danger {
  min-height: 36px;
  padding-inline: .85rem;
  border-radius: 12px;
  box-shadow: none;
}

body.erp-modern-v2 .erp-status-chip {
  min-height: 36px;
  padding: .38rem .7rem;
  border-radius: 12px;
  font-size: .78rem;
}

body.erp-modern-v2 .erp-user-dropdown__button {
  min-height: 40px;
  padding: .25rem .55rem .25rem .35rem;
  gap: .55rem;
  border-radius: 14px;
  box-shadow: none;
}

body.erp-modern-v2 .erp-shortcuts-dropdown__button {
  min-height: 40px;
  padding: .25rem .55rem .25rem .35rem;
  gap: .55rem;
  border-radius: 14px;
  box-shadow: none;
}

body.erp-modern-v2 .erp-shortcuts-dropdown__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: .82rem;
}

body.erp-modern-v2 .erp-shortcuts-menu {
  width: min(520px, calc(100vw - 20px));
  padding: .85rem;
}

body.erp-modern-v2 .erp-shortcuts-menu__item {
  padding: .62rem .7rem;
  border-radius: 16px;
}

body.erp-modern-v2 .erp-shortcuts-menu__item-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

body.erp-modern-v2 .erp-shortcuts-menu__search {
  min-height: 42px;
  border-radius: 14px;
}

body.erp-modern-v2 .erp-shortcuts-menu__group-head {
  font-size: .78rem;
}

body.erp-modern-v2 .erp-user-dropdown__avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: .82rem;
}

body.erp-modern-v2 .erp-user-dropdown__meta strong {
  font-size: .84rem;
}

body.erp-modern-v2 .erp-user-dropdown__meta small {
  font-size: .7rem;
}

body.erp-modern-v2 .main-sidebar {
  border-radius: 22px;
}

body.erp-modern-v2 .main-sidebar .sidebar {
  padding: .55rem .65rem .8rem;
}

body.erp-modern-v2 .brand-link {
  margin: .1rem .05rem .6rem;
  padding: .72rem .8rem;
  gap: .65rem;
  border-radius: 16px;
}

body.erp-modern-v2 .brand-link .brand-image,
body.erp-modern-v2 .brand-link img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

body.erp-modern-v2 .brand-link span,
body.erp-modern-v2 .brand-link .brand-text {
  font-size: .92rem;
  line-height: 1.2;
}

body.erp-modern-v2 .erp-sidebar-search {
  margin: 0 .1rem .55rem;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.erp-modern-v2 .erp-sidebar-search__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.96);
  box-shadow: none;
}

body.erp-modern-v2 .erp-sidebar-search__toggle:hover,
body.erp-modern-v2 .erp-sidebar-search__toggle:focus {
  outline: none;
  background: rgba(255,255,255,.14);
  color: #fff;
}

body.erp-modern-v2 .erp-sidebar-search__label,
body.erp-modern-v2 .erp-sidebar-search__hint {
  display: none !important;
}

body.erp-modern-v2 .erp-sidebar-search--compact:not(.is-open) > :not(.erp-sidebar-search__toggle) {
  display: none !important;
}

body.erp-modern-v2 .erp-sidebar-search--compact.is-open {
  padding: .65rem !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

body.erp-modern-v2 .erp-sidebar-search__box {
  min-height: 40px;
  padding: 0 .65rem;
  gap: .45rem;
  border-radius: 14px;
}

body.erp-modern-v2 .erp-sidebar-search__input {
  font-size: .84rem;
}

body.erp-modern-v2 .erp-sidebar-search__clear {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

body.erp-modern-v2 .erp-sidebar-search__count {
  min-width: 72px;
  min-height: 24px;
  margin-top: .5rem;
  padding: .1rem .45rem;
  font-size: .7rem;
}

body.erp-modern-v2 .nav-sidebar > .nav-item {
  margin-bottom: .28rem;
}

body.erp-modern-v2 .nav-sidebar .nav-link,
body.erp-modern-v2 .nav-treeview .nav-link {
  min-height: 40px;
  padding: .62rem .82rem;
  border-radius: 14px;
  font-size: .88rem;
}

body.erp-modern-v2 .nav-sidebar .nav-icon,
body.erp-modern-v2 .nav-treeview .nav-icon {
  width: 18px;
  flex: 0 0 18px;
}

body.erp-modern-v2 .nav-treeview {
  padding-inline-start: .25rem;
}

body.erp-modern-v2 .nav-treeview .nav-link {
  min-height: 38px;
}

body.erp-modern-v2 .erp-form-section::before,
body.erp-modern-v2 .erp-data-section::before,
body.erp-modern-v2 .table-responsive.erp-table-wrap::after {
  display: none !important;
}

body.erp-modern-v2 .card {
  margin-bottom: .75rem;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

body.erp-modern-v2 .card-header {
  min-height: 52px;
  padding: .75rem .95rem;
}

body.erp-modern-v2 .card-title {
  font-size: .95rem;
}

body.erp-modern-v2 .card-body,
body.erp-modern-v2 .card-footer {
  padding: .85rem .95rem;
}

body.erp-modern-v2 .erp-field-shell,
body.erp-modern-v2 .invoice-box,
body.erp-modern-v2 .form-control-wrapper,
body.erp-modern-v2 .form-control-wrapper_grope,
body.erp-modern-v2 .input-group,
body.erp-modern-v2 .input-field.form-control,
body.erp-modern-v2 .l-wrapper1 {
  border-radius: 14px !important;
  border: 1px solid rgba(148, 163, 184, .24) !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

body.erp-modern-v2 .erp-field-shell:hover,
body.erp-modern-v2 .invoice-box:hover,
body.erp-modern-v2 .form-control-wrapper:hover,
body.erp-modern-v2 .form-control-wrapper_grope:hover,
body.erp-modern-v2 .input-group:hover,
body.erp-modern-v2 .input-field.form-control:hover,
body.erp-modern-v2 .l-wrapper1:hover {
  border-color: rgba(79, 124, 255, .32) !important;
  box-shadow: none !important;
}

body.erp-modern-v2 .erp-field-shell:focus-within,
body.erp-modern-v2 .invoice-box:focus-within,
body.erp-modern-v2 .form-control-wrapper:focus-within,
body.erp-modern-v2 .form-control-wrapper_grope:focus-within,
body.erp-modern-v2 .input-group:focus-within,
body.erp-modern-v2 .input-field.form-control:focus-within,
body.erp-modern-v2 .l-wrapper1:focus-within {
  border-color: rgba(79, 124, 255, .44) !important;
  box-shadow: 0 0 0 2px rgba(79, 124, 255, .10) !important;
}

body.erp-modern-v2 .erp-field-shell .form-control,
body.erp-modern-v2 .invoice-box .form-control,
body.erp-modern-v2 .form-control,
body.erp-modern-v2 textarea.form-control,
body.erp-modern-v2 select.form-control {
  min-height: 42px !important;
  padding: .78rem .85rem !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: .92rem !important;
  line-height: 1.35 !important;
  text-align: start;
}

body.erp-modern-v2 textarea.form-control {
  min-height: 84px !important;
}

body.erp-modern-v2 .form-label {
  font-size: .74rem !important;
}

body.erp-modern-v2 .select2-container,
body.erp-modern-v2 .select2-container:hover,
body.erp-modern-v2 .select2-container:focus,
body.erp-modern-v2 .select2-container--default .select2-selection--single,
body.erp-modern-v2 .select2-container--default .select2-selection--multiple {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.erp-modern-v2 .select2-container--default .select2-selection--single,
body.erp-modern-v2 .select2-container--default .select2-selection--multiple {
  min-height: 42px !important;
  border-radius: 12px !important;
}

body.erp-modern-v2 .select2-container--default .select2-selection--single .select2-selection__rendered,
body.erp-modern-v2 .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  line-height: 42px !important;
  padding-inline: .6rem !important;
}

body.erp-modern-v2 .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px !important;
}

body.erp-modern-v2 .arrow-area {
  width: 32px;
  min-width: 32px;
  border-radius: 10px;
  box-shadow: none;
}

body.erp-modern-v2 .arrow-area .material-icons {
  font-size: 18px !important;
}

body.erp-modern-v2 .erp-smart-toolbar,
body.erp-modern-v2 .button-box,
body.erp-modern-v2 .form-group111,
body.erp-modern-v2 .toolbar {
  gap: .55rem;
}

body.erp-modern-v2 .erp-smart-toolbar .btn,
body.erp-modern-v2 .button-box .btn,
body.erp-modern-v2 .form-group111 .btn,
body.erp-modern-v2 .toolbar .btn,
body.erp-modern-v2 .toolbar button,
body.erp-modern-v2 .toggle-more_Opr,
body.erp-modern-v2 .less-button_Opr,
body.erp-modern-v2 .erp-tabs-shell .nav-link,
body.erp-modern-v2 .nav-tabs.erp-tabs-shell .nav-link,
body.erp-modern-v2 .card.card-tabs .nav-link {
  min-height: 40px;
  border-radius: 14px !important;
  box-shadow: none !important;
}

body.erp-modern-v2 .erp-tabs-shell .nav-link,
body.erp-modern-v2 .nav-tabs.erp-tabs-shell .nav-link,
body.erp-modern-v2 .card.card-tabs .nav-link {
  padding: .48rem .78rem;
  gap: .42rem;
  font-size: .88rem;
}

body.erp-modern-v2 .card.card-tabs .nav-link .box {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

body.erp-modern-v2 .main-footer {
  min-height: 48px;
  padding: .55rem .85rem;
  gap: .45rem .7rem;
  border-radius: 18px;
}

body.erp-modern-v2 .erp-footer__brand strong,
body.erp-modern-v2 .erp-footer__meta,
body.erp-modern-v2 .erp-footer__chip,
body.erp-modern-v2 .erp-footer__version {
  font-size: .76rem;
}

body.erp-modern-v2 .erp-footer__version,
body.erp-modern-v2 .erp-footer__chip {
  padding: .26rem .5rem;
  border-radius: 999px;
  box-shadow: none;
}

body.erp-modern-v2 .erp-footer__meta {
  gap: .35rem;
}

body.erp-modern-v2 .erp-footer__chip i {
  font-size: .78rem;
}

html[dir='rtl'] body.erp-modern-v2 .nav-sidebar .nav-link,
html[dir='rtl'] body.erp-modern-v2 .nav-treeview .nav-link,
html[dir='rtl'] body.erp-modern-v2 .erp-user-dropdown__meta,
html[dir='rtl'] body.erp-modern-v2 .erp-sidebar-search__input,
html[dir='rtl'] body.erp-modern-v2 input:not(.erp-force-ltr),
html[dir='rtl'] body.erp-modern-v2 textarea:not(.erp-force-ltr),
html[dir='rtl'] body.erp-modern-v2 select:not(.erp-force-ltr) {
  direction: rtl;
  text-align: right;
}

html[dir='ltr'] body.erp-modern-v2 .nav-sidebar .nav-link,
html[dir='ltr'] body.erp-modern-v2 .nav-treeview .nav-link,
html[dir='ltr'] body.erp-modern-v2 .erp-user-dropdown__meta,
html[dir='ltr'] body.erp-modern-v2 .erp-sidebar-search__input,
html[dir='ltr'] body.erp-modern-v2 input:not(.erp-force-ltr),
html[dir='ltr'] body.erp-modern-v2 textarea:not(.erp-force-ltr),
html[dir='ltr'] body.erp-modern-v2 select:not(.erp-force-ltr) {
  direction: ltr;
  text-align: left;
}

html[dir='rtl'] body.erp-modern-v2 .select2-container {
  direction: rtl !important;
}

html[dir='ltr'] body.erp-modern-v2 .select2-container {
  direction: ltr !important;
}

body.erp-modern-v2 .erp-force-ltr,
body.erp-modern-v2 input.erp-force-ltr,
body.erp-modern-v2 textarea.erp-force-ltr,
body.erp-modern-v2 select.erp-force-ltr {
  direction: ltr !important;
  text-align: left !important;
}

@media (max-width: 991.98px) {
  body.erp-modern-v2 {
    --erp-sidebar-width: 264px;
  }

  body.erp-modern-v2 .main-header.erp-topbar {
    padding-inline: .6rem;
  }

  body.erp-modern-v2 #Home_Title {
    min-width: min(100%, 220px);
  }
}

@media (max-width: 767.98px) {
  body.erp-modern-v2 .main-footer {
    padding: .45rem .65rem;
  }

  body.erp-modern-v2 .erp-status-chip,
  body.erp-modern-v2 .erp-user-dropdown__meta {
    display: none !important;
  }
}


/* =========================================================
   ERP Modern UI/UX Advance | UX refinement pass
   Goals:
   - stabilize label/value hierarchy in dense operation forms
   - reduce wasted space around helper buttons
   - compact row-level controls and tables
   - improve checkbox readability and 100% zoom comfort
========================================================= */

body.erp-modern-v2 .card-header .row,
body.erp-modern-v2 .card-body .row {
  row-gap: .35rem;
}

body.erp-modern-v2 .form-group {
  margin-bottom: .45rem !important;
}

body.erp-modern-v2 .erp-field-shell,
body.erp-modern-v2 .form-control-wrapper,
body.erp-modern-v2 .form-control-wrapper_grope,
body.erp-modern-v2 .invoice-box {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  overflow: hidden;
}

body.erp-modern-v2 .erp-field-shell > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.erp-modern-v2 .erp-field-shell > select,
body.erp-modern-v2 .erp-field-shell > textarea,
body.erp-modern-v2 .invoice-box > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.erp-modern-v2 .invoice-box > select,
body.erp-modern-v2 .invoice-box > textarea,
body.erp-modern-v2 .erp-field-shell .form-control,
body.erp-modern-v2 .erp-field-shell .form-control_mycustom,
body.erp-modern-v2 .invoice-box .form-control,
body.erp-modern-v2 .form-control-wrapper .form-control,
body.erp-modern-v2 .form-control-wrapper_grope .form-control,
body.erp-modern-v2 .form-control-wrapper .form-control_mycustom,
body.erp-modern-v2 .form-control-wrapper_grope .form-control_mycustom,
body.erp-modern-v2 .form-control-wrapper textarea.form-control,
body.erp-modern-v2 .form-control-wrapper_grope textarea.form-control,
body.erp-modern-v2 .form-control-wrapper select.form-control,
body.erp-modern-v2 .form-control-wrapper_grope select.form-control {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 50px !important;
  padding: 1.28rem .9rem .38rem !important;
  line-height: 1.25 !important;
}

body.erp-modern-v2 .erp-field-shell--with-arrows > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.erp-modern-v2 .erp-field-shell--with-arrows > select,
body.erp-modern-v2 .erp-field-shell--with-arrows > textarea,
body.erp-modern-v2 .erp-field-shell--with-arrows .form-control,
body.erp-modern-v2 .erp-field-shell--with-arrows .form-control_mycustom,
body.erp-modern-v2 .invoice-box.erp-field-shell--with-arrows > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.erp-modern-v2 .invoice-box.erp-field-shell--with-arrows > select,
body.erp-modern-v2 .invoice-box.erp-field-shell--with-arrows > textarea,
body.erp-modern-v2 .invoice-box.erp-field-shell--with-arrows .form-control {
  padding-inline: 2.15rem !important;
}

body.erp-modern-v2 .erp-field-shell > select,
body.erp-modern-v2 .invoice-box > select,
body.erp-modern-v2 .erp-field-shell select.form-control,
body.erp-modern-v2 .invoice-box select.form-control,
body.erp-modern-v2 .form-control-wrapper select.form-control,
body.erp-modern-v2 .form-control-wrapper_grope select.form-control {
  padding-top: 1.15rem !important;
}

body.erp-modern-v2 .erp-field-shell > textarea,
body.erp-modern-v2 .invoice-box > textarea,
body.erp-modern-v2 .erp-field-shell textarea.form-control,
body.erp-modern-v2 .invoice-box textarea.form-control,
body.erp-modern-v2 .form-control-wrapper textarea.form-control,
body.erp-modern-v2 .form-control-wrapper_grope textarea.form-control {
  min-height: 88px !important;
  padding-top: 1.4rem !important;
}

body.erp-modern-v2 .erp-field-shell .form-label,
body.erp-modern-v2 .invoice-box .form-label,
body.erp-modern-v2 .form-control-wrapper .form-label,
body.erp-modern-v2 .form-control-wrapper_grope .form-label {
  position: absolute !important;
  top: .52rem !important;
  inset-inline-start: .85rem !important;
  inset-inline-end: .85rem !important;
  transform: none !important;
  margin: 0 !important;
  padding-inline: .1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
  font-size: .67rem !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  color: color-mix(in srgb, var(--erp-primary, #4f7cff) 76%, var(--erp-text, #162033) 24%) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
  pointer-events: none;
}

body.erp-modern-v2 .erp-field-shell--with-arrows .form-label,
body.erp-modern-v2 .invoice-box.erp-field-shell--with-arrows .form-label {
  inset-inline-start: 2rem !important;
  inset-inline-end: 2rem !important;
}

body.erp-modern-v2 .erp-field-shell:focus-within .form-label,
body.erp-modern-v2 .invoice-box:focus-within .form-label,
body.erp-modern-v2 .form-control-wrapper:focus-within .form-label,
body.erp-modern-v2 .form-control-wrapper_grope:focus-within .form-label,
body.erp-modern-v2 .erp-field-shell.is-filled .form-label,
body.erp-modern-v2 .invoice-box.is-filled .form-label,
body.erp-modern-v2 .form-control-wrapper.is-filled .form-label,
body.erp-modern-v2 .form-control-wrapper_grope.is-filled .form-label {
  color: var(--erp-primary, #4f7cff) !important;
}

body.erp-modern-v2 .erp-field-shell .select2-container,
body.erp-modern-v2 .invoice-box .select2-container,
body.erp-modern-v2 .form-control-wrapper .select2-container,
body.erp-modern-v2 .form-control-wrapper_grope .select2-container {
  margin-top: .3rem;
}

body.erp-modern-v2 .arrow-area {
  width: 28px;
  min-width: 28px;
  height: 100%;
  border-radius: 10px;
}

body.erp-modern-v2 .erp-icon-btn-col {
  flex: 0 0 46px !important;
  max-width: 46px !important;
  width: 46px !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-inline: .2rem !important;
}

body.erp-modern-v2 .erp-icon-btn--compact,
body.erp-modern-v2 a.btn.erp-icon-btn--compact,
body.erp-modern-v2 button.btn.erp-icon-btn--compact {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

body.erp-modern-v2 .erp-icon-btn--compact i,
body.erp-modern-v2 .erp-icon-btn--compact .fa,
body.erp-modern-v2 .erp-icon-btn--compact .fas,
body.erp-modern-v2 .erp-icon-btn--compact .far,
body.erp-modern-v2 .erp-icon-btn--compact .fab,
body.erp-modern-v2 .erp-icon-btn--compact .material-icons {
  margin: 0 !important;
  font-size: .95rem !important;
}

body.erp-modern-v2 .qty-control,
body.erp-modern-v2 .op-col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  flex-wrap: nowrap;
}

body.erp-modern-v2 .qbtn {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: .9rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

body.erp-modern-v2 table td,
body.erp-modern-v2 table th {
  vertical-align: middle !important;
}

body.erp-modern-v2 .table thead th {
  padding: .7rem .55rem !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
}

body.erp-modern-v2 .table tbody td {
  padding: .58rem .55rem !important;
}

body.erp-modern-v2 input[type="checkbox"],
body.erp-modern-v2 input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0 .3rem 0 0;
  vertical-align: middle;
}

html[dir='rtl'] body.erp-modern-v2 input[type="checkbox"],
html[dir='rtl'] body.erp-modern-v2 input[type="radio"] {
  margin: 0 0 0 .3rem;
}

body.erp-modern-v2 .form-check,
body.erp-modern-v2 .checkbox,
body.erp-modern-v2 .radio,
body.erp-modern-v2 .custom-control {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

body.erp-modern-v2 .form-check label,
body.erp-modern-v2 .checkbox label,
body.erp-modern-v2 .radio label,
body.erp-modern-v2 .custom-control label {
  margin: 0;
}

@media (max-width: 1600px) {
  body.erp-modern-v2 .erp-status-chip--muted {
    display: none !important;
  }

  body.erp-modern-v2 .erp-topbar__brand-subtitle {
    display: none !important;
  }
}

@media (max-width: 1199.98px) {
  body.erp-modern-v2 .erp-icon-btn-col {
    flex-basis: 42px !important;
    max-width: 42px !important;
    width: 42px !important;
  }
}



/* =========================================================
   ERP Modern UI/UX Advance | Compact form + entry table + smart RTL/LTR pass
   Goals:
   - reduce spacing between dense inputs without touching logic
   - make operation/detail tables cleaner for entry workflows
   - enforce smarter RTL/LTR behavior across all screens
========================================================= */

body.erp-modern-v2 {
  --erp-form-col-pad: 2px;
  --erp-form-row-gap: .16rem;
  --erp-form-control-h: 40px;
  --erp-form-control-h-lg: 44px;
  --erp-entry-cell-pad-y: .34rem;
  --erp-entry-cell-pad-x: .38rem;
}

body.erp-modern-v2 .card-body .row,
body.erp-modern-v2 .card-header .row,
body.erp-modern-v2 .modal-body .row,
body.erp-modern-v2 .tab-pane .row {
  row-gap: var(--erp-form-row-gap);
}

body.erp-modern-v2 .card-body [class*="col-"],
body.erp-modern-v2 .card-header [class*="col-"],
body.erp-modern-v2 .modal-body [class*="col-"],
body.erp-modern-v2 .tab-pane [class*="col-"] {
  padding-inline: var(--erp-form-col-pad) !important;
}

body.erp-modern-v2 .form-group,
body.erp-modern-v2 .form-group111,
body.erp-modern-v2 .erp-smart-toolbar {
  margin-bottom: .2rem !important;
}

body.erp-modern-v2 .card-body,
body.erp-modern-v2 .card-footer {
  padding: .72rem .8rem;
}

body.erp-modern-v2 .erp-field-shell,
body.erp-modern-v2 .invoice-box,
body.erp-modern-v2 .form-control-wrapper,
body.erp-modern-v2 .form-control-wrapper_grope,
body.erp-modern-v2 .input-group,
body.erp-modern-v2 .l-wrapper1 {
  min-height: var(--erp-form-control-h-lg);
  border-radius: 12px !important;
}

body.erp-modern-v2 .erp-field-shell > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.erp-modern-v2 .erp-field-shell > select,
body.erp-modern-v2 .erp-field-shell > textarea,
body.erp-modern-v2 .invoice-box > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.erp-modern-v2 .invoice-box > select,
body.erp-modern-v2 .invoice-box > textarea,
body.erp-modern-v2 .erp-field-shell .form-control,
body.erp-modern-v2 .erp-field-shell .form-control_mycustom,
body.erp-modern-v2 .invoice-box .form-control,
body.erp-modern-v2 .form-control-wrapper .form-control,
body.erp-modern-v2 .form-control-wrapper_grope .form-control,
body.erp-modern-v2 .form-control-wrapper .form-control_mycustom,
body.erp-modern-v2 .form-control-wrapper_grope .form-control_mycustom,
body.erp-modern-v2 .form-control-wrapper textarea.form-control,
body.erp-modern-v2 .form-control-wrapper_grope textarea.form-control,
body.erp-modern-v2 .form-control-wrapper select.form-control,
body.erp-modern-v2 .form-control-wrapper_grope select.form-control {
  min-height: var(--erp-form-control-h) !important;
  padding: 1.02rem .72rem .24rem !important;
  font-size: .88rem !important;
  line-height: 1.2 !important;
}

body.erp-modern-v2 .erp-field-shell--with-arrows > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.erp-modern-v2 .erp-field-shell--with-arrows > select,
body.erp-modern-v2 .erp-field-shell--with-arrows > textarea,
body.erp-modern-v2 .erp-field-shell--with-arrows .form-control,
body.erp-modern-v2 .erp-field-shell--with-arrows .form-control_mycustom,
body.erp-modern-v2 .invoice-box.erp-field-shell--with-arrows > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.erp-modern-v2 .invoice-box.erp-field-shell--with-arrows > select,
body.erp-modern-v2 .invoice-box.erp-field-shell--with-arrows > textarea,
body.erp-modern-v2 .invoice-box.erp-field-shell--with-arrows .form-control {
  padding-inline: 1.9rem !important;
}

body.erp-modern-v2 .erp-field-shell > textarea,
body.erp-modern-v2 .invoice-box > textarea,
body.erp-modern-v2 .erp-field-shell textarea.form-control,
body.erp-modern-v2 .invoice-box textarea.form-control,
body.erp-modern-v2 .form-control-wrapper textarea.form-control,
body.erp-modern-v2 .form-control-wrapper_grope textarea.form-control {
  min-height: 72px !important;
  padding-top: 1.08rem !important;
}

body.erp-modern-v2 .erp-field-shell .form-label,
body.erp-modern-v2 .invoice-box .form-label,
body.erp-modern-v2 .form-control-wrapper .form-label,
body.erp-modern-v2 .form-control-wrapper_grope .form-label {
  top: .38rem !important;
  inset-inline-start: .72rem !important;
  inset-inline-end: .72rem !important;
  max-width: calc(100% - 1.44rem) !important;
  font-size: .61rem !important;
  line-height: 1.05 !important;
}

body.erp-modern-v2 .erp-field-shell--with-arrows .form-label,
body.erp-modern-v2 .invoice-box.erp-field-shell--with-arrows .form-label {
  inset-inline-start: 1.72rem !important;
  inset-inline-end: 1.72rem !important;
  max-width: calc(100% - 3.44rem) !important;
}

body.erp-modern-v2 .arrow-area {
  width: 24px;
  min-width: 24px;
}

body.erp-modern-v2 .arrow-area .material-icons {
  font-size: 16px !important;
}

body.erp-modern-v2 .erp-entry-table-wrap,
body.erp-modern-v2 .my-table-box,
body.erp-modern-v2 .table-responsive:has(> table.erp-entry-table) {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(255,255,255,.96);
}

body.erp-modern-v2 table.erp-entry-table,
body.erp-modern-v2 #tblOprDetail,
body.erp-modern-v2 #tblOprDetail2020,
body.erp-modern-v2 #tblOprDetail_return,
body.erp-modern-v2 #Entag_tblOprDetail,
body.erp-modern-v2 #OprAccounts_tblOprDetail {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  table-layout: auto;
}

body.erp-modern-v2 table.erp-entry-table thead th,
body.erp-modern-v2 #tblOprDetail thead th,
body.erp-modern-v2 #tblOprDetail2020 thead th,
body.erp-modern-v2 #tblOprDetail_return thead th,
body.erp-modern-v2 #Entag_tblOprDetail thead th,
body.erp-modern-v2 #OprAccounts_tblOprDetail thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: .56rem .42rem !important;
  background: linear-gradient(180deg, rgba(255,248,248,.98), rgba(245,250,255,.98));
  border-bottom: 1px solid rgba(148, 163, 184, .24);
  font-size: .79rem !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

body.erp-modern-v2 table.erp-entry-table tbody td,
body.erp-modern-v2 table.erp-entry-table tfoot td,
body.erp-modern-v2 #tblOprDetail tbody td,
body.erp-modern-v2 #tblOprDetail tfoot td,
body.erp-modern-v2 #tblOprDetail2020 tbody td,
body.erp-modern-v2 #tblOprDetail2020 tfoot td,
body.erp-modern-v2 #tblOprDetail_return tbody td,
body.erp-modern-v2 #tblOprDetail_return tfoot td,
body.erp-modern-v2 #Entag_tblOprDetail tbody td,
body.erp-modern-v2 #Entag_tblOprDetail tfoot td,
body.erp-modern-v2 #OprAccounts_tblOprDetail tbody td,
body.erp-modern-v2 #OprAccounts_tblOprDetail tfoot td {
  padding: var(--erp-entry-cell-pad-y) var(--erp-entry-cell-pad-x) !important;
  border-color: rgba(226, 232, 240, .95) !important;
}

body.erp-modern-v2 table.erp-entry-table tbody tr:nth-child(even) > td,
body.erp-modern-v2 #tblOprDetail tbody tr:nth-child(even) > td,
body.erp-modern-v2 #tblOprDetail2020 tbody tr:nth-child(even) > td,
body.erp-modern-v2 #tblOprDetail_return tbody tr:nth-child(even) > td,
body.erp-modern-v2 #Entag_tblOprDetail tbody tr:nth-child(even) > td,
body.erp-modern-v2 #OprAccounts_tblOprDetail tbody tr:nth-child(even) > td {
  background: rgba(248, 251, 255, .72);
}

body.erp-modern-v2 table.erp-entry-table tbody tr:hover > td,
body.erp-modern-v2 #tblOprDetail tbody tr:hover > td,
body.erp-modern-v2 #tblOprDetail2020 tbody tr:hover > td,
body.erp-modern-v2 #tblOprDetail_return tbody tr:hover > td,
body.erp-modern-v2 #Entag_tblOprDetail tbody tr:hover > td,
body.erp-modern-v2 #OprAccounts_tblOprDetail tbody tr:hover > td {
  background: rgba(79, 124, 255, .04) !important;
}

body.erp-modern-v2 table.erp-entry-table tfoot td,
body.erp-modern-v2 #tblOprDetail tfoot td,
body.erp-modern-v2 #tblOprDetail2020 tfoot td,
body.erp-modern-v2 #tblOprDetail_return tfoot td,
body.erp-modern-v2 #Entag_tblOprDetail tfoot td,
body.erp-modern-v2 #OprAccounts_tblOprDetail tfoot td {
  background: linear-gradient(180deg, rgba(249,252,255,.96), rgba(246,250,255,.98));
  border-top: 1px solid rgba(148, 163, 184, .18);
}

body.erp-modern-v2 table.erp-entry-table .dynamic-cell_name,
body.erp-modern-v2 #tblOprDetail .dynamic-cell_name,
body.erp-modern-v2 #tblOprDetail2020 .dynamic-cell_name,
body.erp-modern-v2 #tblOprDetail_return .dynamic-cell_name,
body.erp-modern-v2 #Entag_tblOprDetail .dynamic-cell_name,
body.erp-modern-v2 #OprAccounts_tblOprDetail .dynamic-cell_name {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 320px !important;
  white-space: normal !important;
}

body.erp-modern-v2 table.erp-entry-table .pos-cell,
body.erp-modern-v2 #tblOprDetail .pos-cell,
body.erp-modern-v2 #tblOprDetail2020 .pos-cell,
body.erp-modern-v2 #tblOprDetail_return .pos-cell,
body.erp-modern-v2 #Entag_tblOprDetail .pos-cell,
body.erp-modern-v2 #OprAccounts_tblOprDetail .pos-cell,
body.erp-modern-v2 table.erp-entry-table tfoot .form-control,
body.erp-modern-v2 #tblOprDetail tfoot .form-control,
body.erp-modern-v2 #tblOprDetail2020 tfoot .form-control,
body.erp-modern-v2 #tblOprDetail_return tfoot .form-control,
body.erp-modern-v2 #Entag_tblOprDetail tfoot .form-control,
body.erp-modern-v2 #OprAccounts_tblOprDetail tfoot .form-control {
  min-height: 34px !important;
  height: 34px !important;
  padding: .22rem .45rem !important;
  border-radius: 10px !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: .84rem !important;
}

body.erp-modern-v2 table.erp-entry-table textarea.pos-cell,
body.erp-modern-v2 #tblOprDetail textarea.pos-cell,
body.erp-modern-v2 #tblOprDetail2020 textarea.pos-cell,
body.erp-modern-v2 #tblOprDetail_return textarea.pos-cell,
body.erp-modern-v2 #Entag_tblOprDetail textarea.pos-cell,
body.erp-modern-v2 #OprAccounts_tblOprDetail textarea.pos-cell {
  min-height: 56px !important;
  height: auto !important;
}

body.erp-modern-v2 table.erp-entry-table .qty-control,
body.erp-modern-v2 #tblOprDetail .qty-control,
body.erp-modern-v2 #tblOprDetail2020 .qty-control,
body.erp-modern-v2 #tblOprDetail_return .qty-control,
body.erp-modern-v2 #Entag_tblOprDetail .qty-control,
body.erp-modern-v2 #OprAccounts_tblOprDetail .qty-control {
  gap: .22rem !important;
}

body.erp-modern-v2 table.erp-entry-table .qbtn,
body.erp-modern-v2 #tblOprDetail .qbtn,
body.erp-modern-v2 #tblOprDetail2020 .qbtn,
body.erp-modern-v2 #tblOprDetail_return .qbtn,
body.erp-modern-v2 #Entag_tblOprDetail .qbtn,
body.erp-modern-v2 #OprAccounts_tblOprDetail .qbtn {
  width: 26px !important;
  min-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  border-radius: 8px !important;
  font-size: .82rem !important;
}

body.erp-modern-v2 table.erp-entry-table .button_delete,
body.erp-modern-v2 table.erp-entry-table .Myrowmenu_select,
body.erp-modern-v2 #tblOprDetail .button_delete,
body.erp-modern-v2 #tblOprDetail .Myrowmenu_select,
body.erp-modern-v2 #tblOprDetail2020 .button_delete,
body.erp-modern-v2 #tblOprDetail2020 .Myrowmenu_select,
body.erp-modern-v2 #tblOprDetail_return .button_delete,
body.erp-modern-v2 #tblOprDetail_return .Myrowmenu_select,
body.erp-modern-v2 #Entag_tblOprDetail .button_delete,
body.erp-modern-v2 #Entag_tblOprDetail .Myrowmenu_select,
body.erp-modern-v2 #OprAccounts_tblOprDetail .button_delete,
body.erp-modern-v2 #OprAccounts_tblOprDetail .Myrowmenu_select {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 10px !important;
}

body.erp-modern-v2 table.erp-entry-table .sticky-column_start,
body.erp-modern-v2 table.erp-entry-table .sticky-column_end,
body.erp-modern-v2 #tblOprDetail .sticky-column_start,
body.erp-modern-v2 #tblOprDetail .sticky-column_end,
body.erp-modern-v2 #tblOprDetail2020 .sticky-column_start,
body.erp-modern-v2 #tblOprDetail2020 .sticky-column_end,
body.erp-modern-v2 #tblOprDetail_return .sticky-column_start,
body.erp-modern-v2 #tblOprDetail_return .sticky-column_end,
body.erp-modern-v2 #Entag_tblOprDetail .sticky-column_start,
body.erp-modern-v2 #Entag_tblOprDetail .sticky-column_end,
body.erp-modern-v2 #OprAccounts_tblOprDetail .sticky-column_start,
body.erp-modern-v2 #OprAccounts_tblOprDetail .sticky-column_end {
  box-shadow: inset 0 0 0 9999px rgba(255,255,255,.88);
}

body.erp-modern-v2 .erp-smart-dir {
  text-align: start !important;
}

body.erp-modern-v2 .erp-smart-dir--numeric {
  direction: ltr !important;
  text-align: center !important;
}

body.erp-modern-v2 .erp-smart-dir--code {
  direction: ltr !important;
  text-align: left !important;
}

body.erp-modern-v2 .erp-smart-dir--ui[dir='rtl'],
body.erp-modern-v2 .erp-smart-dir--text[dir='rtl'] {
  direction: rtl !important;
  text-align: right !important;
}

body.erp-modern-v2 .erp-smart-dir--ui[dir='ltr'],
body.erp-modern-v2 .erp-smart-dir--text[dir='ltr'] {
  direction: ltr !important;
  text-align: left !important;
}

body.erp-modern-v2 table.erp-entry-table input[id*='ItemName'],
body.erp-modern-v2 table.erp-entry-table input[id*='NOTS'],
body.erp-modern-v2 table.erp-entry-table input[id*='Text'],
body.erp-modern-v2 table.erp-entry-table input[id*='BYAN'],
body.erp-modern-v2 #tblOprDetail input[id*='ItemName'],
body.erp-modern-v2 #tblOprDetail input[id*='NOTS'],
body.erp-modern-v2 #tblOprDetail input[id*='Text'],
body.erp-modern-v2 #tblOprDetail input[id*='BYAN'],
body.erp-modern-v2 #tblOprDetail2020 input[id*='ItemName'],
body.erp-modern-v2 #tblOprDetail2020 input[id*='NOTS'],
body.erp-modern-v2 #tblOprDetail2020 input[id*='Text'],
body.erp-modern-v2 #tblOprDetail2020 input[id*='BYAN'],
body.erp-modern-v2 #tblOprDetail_return input[id*='ItemName'],
body.erp-modern-v2 #tblOprDetail_return input[id*='NOTS'],
body.erp-modern-v2 #tblOprDetail_return input[id*='Text'],
body.erp-modern-v2 #tblOprDetail_return input[id*='BYAN'],
body.erp-modern-v2 #Entag_tblOprDetail input[id*='ItemName'],
body.erp-modern-v2 #Entag_tblOprDetail input[id*='NOTS'],
body.erp-modern-v2 #Entag_tblOprDetail input[id*='Text'],
body.erp-modern-v2 #Entag_tblOprDetail input[id*='BYAN'],
body.erp-modern-v2 #OprAccounts_tblOprDetail input[id*='ItemName'],
body.erp-modern-v2 #OprAccounts_tblOprDetail input[id*='NOTS'],
body.erp-modern-v2 #OprAccounts_tblOprDetail input[id*='Text'],
body.erp-modern-v2 #OprAccounts_tblOprDetail input[id*='BYAN'] {
  text-align: start !important;
}

body.erp-modern-v2 .select2-container.erp-smart-dir--numeric .select2-selection__rendered,
body.erp-modern-v2 .select2-container.erp-smart-dir--code .select2-selection__rendered {
  direction: ltr !important;
  text-align: left !important;
}

body.erp-modern-v2 .select2-container.erp-smart-dir--ui[dir='rtl'] .select2-selection__rendered,
body.erp-modern-v2 .select2-container.erp-smart-dir--text[dir='rtl'] .select2-selection__rendered {
  direction: rtl !important;
  text-align: right !important;
}

body.erp-modern-v2 .select2-container.erp-smart-dir--ui[dir='ltr'] .select2-selection__rendered,
body.erp-modern-v2 .select2-container.erp-smart-dir--text[dir='ltr'] .select2-selection__rendered {
  direction: ltr !important;
  text-align: left !important;
}

@media (max-width: 991.98px) {
  body.erp-modern-v2 {
    --erp-form-col-pad: 1.5px;
  }

  body.erp-modern-v2 table.erp-entry-table .dynamic-cell_name,
  body.erp-modern-v2 #tblOprDetail .dynamic-cell_name,
  body.erp-modern-v2 #tblOprDetail2020 .dynamic-cell_name,
  body.erp-modern-v2 #tblOprDetail_return .dynamic-cell_name,
  body.erp-modern-v2 #Entag_tblOprDetail .dynamic-cell_name,
  body.erp-modern-v2 #OprAccounts_tblOprDetail .dynamic-cell_name {
    min-width: 170px !important;
    width: 170px !important;
  }
}


/* =========================================================
   ERP Modern UI/UX Advance | Auth screens pass
   Goals:
   - improve login / create account UX without touching business logic
   - make auth flow clearer, calmer, and more guided
   - keep desktop + mobile comfortable with RTL/LTR friendly layout
========================================================= */

body.erp-modern-v2.blank-login-body .hero.erp-auth-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: clamp(18px, 2vw, 28px);
  align-items: stretch;
}

body.erp-modern-v2.blank-login-body .erp-auth-side {
  display: flex;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__surface {
  width: 100%;
  min-height: 100%;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 30px;
  border: 1px solid rgba(189, 210, 233, .72);
  background:
    radial-gradient(circle at top right, rgba(79,124,255,.16), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,249,255,.96));
  box-shadow: 0 22px 56px rgba(15, 23, 42, .10);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: max-content;
  min-height: 34px;
  padding: .28rem .75rem;
  border-radius: 999px;
  background: rgba(79, 124, 255, .1);
  color: var(--erp-primary, #4f7cff);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .02em;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__badge i {
  font-size: .82rem !important;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem .95rem;
  border-radius: 22px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(189,210,233,.54);
}

body.erp-modern-v2.blank-login-body .erp-auth-side__brand-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79,124,255,.12), rgba(54,179,126,.16));
  overflow: hidden;
  flex: 0 0 54px;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__brand-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__brand-copy {
  display: grid;
  gap: .15rem;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__brand-copy strong {
  font-size: 1rem;
  color: #102a43;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__brand-copy small {
  font-size: .78rem;
  color: #5f7590;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__copy {
  display: grid;
  gap: .55rem;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__title {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.18;
  font-weight: 900;
  color: #102a43;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__text {
  margin: 0;
  font-size: .95rem;
  line-height: 1.8;
  color: #516983;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__metric {
  padding: .9rem .8rem;
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(189,210,233,.54);
  display: grid;
  gap: .2rem;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__metric span {
  font-size: .76rem;
  color: #6b7f95;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__metric strong {
  font-size: 1rem;
  color: #102a43;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .8rem .85rem;
  border-radius: 18px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(189,210,233,.46);
  color: #2d455f;
  line-height: 1.65;
}

body.erp-modern-v2.blank-login-body .erp-auth-side__list i {
  margin-top: .18rem;
  color: #2f7ef7;
  font-size: .95rem !important;
}

body.erp-modern-v2.blank-login-body .erp-auth-main-box {
  width: 100%;
  max-width: none;
  min-height: auto;
}

body.erp-modern-v2.blank-login-body .erp-auth-main-box::before {
  display: none !important;
}

body.erp-modern-v2.blank-login-body .erp-auth-main-box .form-box {
  padding: 22px 22px 18px;
}

body.erp-modern-v2.blank-login-body .erp-auth-form-intro {
  display: grid;
  gap: .32rem;
  text-align: center;
  margin-top: .2rem;
}

body.erp-modern-v2.blank-login-body .erp-auth-form-intro__eyebrow {
  display: inline-flex;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  min-height: 30px;
  padding: .2rem .72rem;
  border-radius: 999px;
  border: 1px solid rgba(79,124,255,.16);
  background: rgba(79,124,255,.08);
  color: var(--erp-primary, #4f7cff);
  font-size: .74rem;
  font-weight: 900;
}

body.erp-modern-v2.blank-login-body .erp-auth-form-intro__title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 900;
  color: #102a43;
}

body.erp-modern-v2.blank-login-body .erp-auth-form-intro__text {
  margin: 0;
  font-size: .86rem;
  line-height: 1.8;
  color: #67809a;
}

body.erp-modern-v2.blank-login-body .button-box.erp-auth-switch {
  width: 100%;
  margin: 16px 0 18px;
  padding: 4px;
  border-radius: 20px;
  border: 1px solid rgba(189,210,233,.72);
  background: linear-gradient(180deg, rgba(248,251,255,.98), rgba(242,247,253,.96));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  box-shadow: none !important;
  animation: none !important;
}

body.erp-modern-v2.blank-login-body .button-box.erp-auth-switch #btn,
body.erp-modern-v2.blank-login-body .button-box.erp-auth-switch #after {
  display: none !important;
}

body.erp-modern-v2.blank-login-body .button-box.erp-auth-switch > [class*="col-"] {
  width: auto;
  max-width: none;
  flex: 1 1 auto;
  padding: 0 !important;
}

body.erp-modern-v2.blank-login-body .erp-auth-switch__btn,
body.erp-modern-v2.blank-login-body .button-box.erp-auth-switch .btn {
  width: 100%;
  min-height: 44px;
  border-radius: 16px !important;
  border: 0 !important;
  background: transparent !important;
  color: #4a6077 !important;
  font-size: .88rem !important;
  font-weight: 900 !important;
  letter-spacing: 0;
  box-shadow: none !important;
}

body.erp-modern-v2.blank-login-body .erp-auth-switch__btn.is-active,
body.erp-modern-v2.blank-login-body .button-box.erp-auth-switch .btn.is-active {
  background: linear-gradient(135deg, rgba(79,124,255,.12), rgba(79,124,255,.08)) !important;
  color: var(--erp-primary, #4f7cff) !important;
}

body.erp-modern-v2.blank-login-body .erp-auth-panel {
  position: static !important;
  left: auto !important;
  width: 100% !important;
  margin-top: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.erp-modern-v2.blank-login-body .erp-auth-main-box:not(.is-register) #register {
  display: none !important;
}

body.erp-modern-v2.blank-login-body .erp-auth-main-box.is-register #login {
  display: none !important;
}

body.erp-modern-v2.blank-login-body .erp-auth-main-box.is-register #register {
  display: block !important;
}

body.erp-modern-v2.blank-login-body .erp-auth-panel-copy {
  display: grid;
  gap: .35rem;
  margin-bottom: .75rem;
  text-align: start;
}

body.erp-modern-v2.blank-login-body .erp-auth-panel-copy__label {
  display: inline-flex;
  width: max-content;
  min-height: 28px;
  padding: .12rem .62rem;
  border-radius: 999px;
  background: rgba(79,124,255,.08);
  color: var(--erp-primary, #4f7cff);
  font-size: .72rem;
  font-weight: 900;
}

body.erp-modern-v2.blank-login-body .erp-auth-panel-copy__title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 900;
  color: #102a43;
}

body.erp-modern-v2.blank-login-body .erp-auth-panel-copy__text {
  margin: 0;
  font-size: .82rem;
  line-height: 1.75;
  color: #637a94;
}

body.erp-modern-v2.blank-login-body .erp-auth-steps {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .15rem;
}

body.erp-modern-v2.blank-login-body .erp-auth-step {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .18rem .68rem;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(189,210,233,.72);
  color: #3f5a75;
  font-size: .74rem;
  font-weight: 800;
}

body.erp-modern-v2.blank-login-body .erp-auth-action-row {
  row-gap: .7rem;
}

body.erp-modern-v2.blank-login-body .erp-auth-actions {
  margin-top: .3rem;
}

body.erp-modern-v2.blank-login-body .erp-auth-actions .col-lg-12,
body.erp-modern-v2.blank-login-body .erp-auth-actions .col-xs-12 {
  justify-content: stretch;
}

body.erp-modern-v2.blank-login-body .erp-auth-actions .btn,
body.erp-modern-v2.blank-login-body .erp-auth-action-row .btn {
  min-height: 42px;
  border-radius: 14px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

body.erp-modern-v2.blank-login-body .erp-auth-inline-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  margin-top: .7rem;
  padding: .55rem .7rem;
  border-radius: 14px;
  background: rgba(248,251,255,.9);
  border: 1px dashed rgba(189,210,233,.86);
  color: #647b95;
  font-size: .76rem;
  line-height: 1.55;
  text-align: center;
}

body.erp-modern-v2.blank-login-body .erp-auth-inline-note i {
  color: var(--erp-primary, #4f7cff);
  font-size: .85rem !important;
}

body.erp-modern-v2.blank-login-body .erp-field-shell--password {
  position: relative;
}

body.erp-modern-v2.blank-login-body .erp-field-shell--password > input,
body.erp-modern-v2.blank-login-body .erp-field-shell--password > .form-control {
  padding-inline-end: 2.85rem !important;
}

body.erp-modern-v2.blank-login-body .erp-field-shell--password .form-label {
  inset-inline-end: 2.9rem !important;
  max-width: calc(100% - 3.65rem) !important;
}

body.erp-modern-v2.blank-login-body .erp-auth-password-toggle {
  position: absolute;
  inset-inline-end: .38rem;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  background: rgba(79,124,255,.08);
  color: var(--erp-primary, #4f7cff);
  box-shadow: none;
  z-index: 4;
}

body.erp-modern-v2.blank-login-body .erp-auth-password-toggle:hover,
body.erp-modern-v2.blank-login-body .erp-auth-password-toggle:focus {
  outline: none;
  background: rgba(79,124,255,.14);
}

body.erp-modern-v2.blank-login-body .erp-auth-status-block {
  grid-column: 1 / -1;
  display: grid;
  gap: .5rem;
}

body.erp-modern-v2.blank-login-body .erp-auth-status-line,
body.erp-modern-v2.blank-login-body .erp-auth-support-line {
  margin-bottom: 0 !important;
}

body.erp-modern-v2.blank-login-body .erp-auth-status-line .col-xs-12,
body.erp-modern-v2.blank-login-body .erp-auth-support-line .col-xs-12 {
  padding: 0 !important;
}

body.erp-modern-v2.blank-login-body .erp-auth-status-line h2,
body.erp-modern-v2.blank-login-body .erp-auth-support-line h2 {
  margin: 0;
  padding: .75rem .95rem;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(189,210,233,.7);
  font-size: .86rem;
  line-height: 1.6;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .05);
}

body.erp-modern-v2.blank-login-body .erp-auth-status-line--warning h2 {
  background: rgba(255, 248, 234, .95);
  border-color: rgba(245, 183, 75, .35);
}

html[dir='rtl'] body.erp-modern-v2.blank-login-body .erp-auth-side__brand,
html[dir='rtl'] body.erp-modern-v2.blank-login-body .erp-auth-side__list li,
html[dir='rtl'] body.erp-modern-v2.blank-login-body .erp-auth-inline-note {
  text-align: right;
}

html[dir='ltr'] body.erp-modern-v2.blank-login-body .erp-auth-side__brand,
html[dir='ltr'] body.erp-modern-v2.blank-login-body .erp-auth-side__list li,
html[dir='ltr'] body.erp-modern-v2.blank-login-body .erp-auth-inline-note {
  text-align: left;
}

@media (max-width: 991.98px) {
  body.erp-modern-v2.blank-login-body .hero.erp-auth-layout {
    grid-template-columns: 1fr;
  }

  body.erp-modern-v2.blank-login-body .erp-auth-side {
    order: 2;
  }

  body.erp-modern-v2.blank-login-body .erp-auth-main-box {
    order: 1;
  }

  body.erp-modern-v2.blank-login-body .erp-auth-side__surface {
    padding: 18px;
    border-radius: 24px;
  }
}

@media (max-width: 575.98px) {
  body.erp-modern-v2.blank-login-body .erp-auth-main-box .form-box {
    padding: 16px 14px 14px;
  }

  body.erp-modern-v2.blank-login-body .erp-auth-side__metrics {
    grid-template-columns: 1fr;
  }

  body.erp-modern-v2.blank-login-body .button-box.erp-auth-switch {
    gap: 4px;
  }

  body.erp-modern-v2.blank-login-body .erp-auth-action-row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
}


/* =========================================================
   ERP Modern UI/UX Advance | Invoice screen declutter pass
   Goals:
   - reduce card noise on invoice/operation screens
   - remove excessive padding and nested-surface heaviness
   - make detail tables calmer and faster to scan
========================================================= */

body.erp-modern-v2.erp-screen-invoice {
  --erp-adv-gap: clamp(8px, .85vw, 14px);
  --erp-form-col-pad: 1.5px;
  --erp-form-row-gap: .12rem;
  --erp-form-control-h: 38px;
  --erp-form-control-h-lg: 40px;
  --erp-entry-cell-pad-y: .28rem;
  --erp-entry-cell-pad-x: .34rem;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-scope {
  --custom-opr-wrap-bg: linear-gradient(180deg, rgba(249, 251, 255, .94), rgba(244, 248, 252, .98));
  --custom-opr-head-bg: #eef4fb;
  --custom-opr-head-text: #24364f;
  --custom-opr-number-bg: #e3eefc;
  --custom-opr-number-text: #244168;
}

body.erp-modern-v2.erp-screen-invoice .erp-page-shell {
  gap: .45rem !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-layout,
body.erp-modern-v2.erp-screen-invoice .card.card-primary.card-outline.card-tabs.erp-opr-layout {
  margin-bottom: .4rem !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-layout > .card-header {
  min-height: 0 !important;
  padding: .32rem .42rem .22rem !important;
  background: transparent !important;
  border: 0 !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-layout > .card-body,
body.erp-modern-v2.erp-screen-invoice .erp-opr-layout__body {
  padding: .28rem .42rem .46rem !important;
  background: transparent !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-layout__tabs,
body.erp-modern-v2.erp-screen-invoice #tabContent {
  display: grid;
  gap: .38rem;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-layout .nav-tabs,
body.erp-modern-v2.erp-screen-invoice .erp-opr-layout .nav-tabs .nav-link {
  gap: .35rem !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-layout .nav-tabs .nav-link {
  min-height: 36px !important;
  padding: .4rem .72rem !important;
  border-radius: 12px !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-layout .nav-tabs .nav-link .box {
  width: 26px !important;
  height: 26px !important;
  border-radius: 9px !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-inner-tabs__content > .tab-pane,
body.erp-modern-v2.erp-screen-invoice #divOprInnerTabsContent > .tab-pane {
  display: none !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-inner-tabs__content > .tab-pane.active,
body.erp-modern-v2.erp-screen-invoice #divOprInnerTabsContent > .tab-pane.active {
  display: block !important;
}

body.erp-modern-v2.erp-screen-invoice #divOpr,
body.erp-modern-v2.erp-screen-invoice .erp-opr-panel {
  margin: 0 !important;
}

body.erp-modern-v2.erp-screen-invoice #divOpr > .row,
body.erp-modern-v2.erp-screen-invoice .erp-opr-panel > .row {
  row-gap: .28rem !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-content {
  margin: 0 !important;
  padding: 0 !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card {
  margin-bottom: .36rem !important;
  border-radius: 18px !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045) !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card > .card-header {
  min-height: 0 !important;
  padding: .42rem .58rem !important;
  background: linear-gradient(180deg, rgba(250, 252, 255, .98), rgba(245, 248, 252, .98)) !important;
  border-bottom: 1px solid rgba(226, 232, 240, .82) !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card > .card-body {
  padding: .52rem .62rem !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .card,
body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .card-body .card {
  margin-bottom: .34rem !important;
  border-radius: 14px !important;
  border: 1px solid rgba(226, 232, 240, .85) !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: none !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .card-header {
  padding: .36rem .52rem !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .card-body,
body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .card-footer {
  padding: .52rem .6rem !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .row,
body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-row .row {
  row-gap: .14rem !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card [class*="col-"],
body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-row [class*="col-"] {
  padding-inline: 1.5px !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .form-group,
body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-row .form-group {
  margin-bottom: .16rem !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .erp-field-shell,
body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .invoice-box,
body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-row .erp-field-shell,
body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-row .invoice-box {
  border-radius: 12px !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .erp-field-shell > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .erp-field-shell > select,
body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .erp-field-shell > textarea,
body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .erp-field-shell .form-control,
body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .invoice-box > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .invoice-box > select,
body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .invoice-box > textarea,
body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .invoice-box .form-control,
body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-row .erp-field-shell > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-row .erp-field-shell > select,
body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-row .erp-field-shell > textarea,
body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-row .erp-field-shell .form-control {
  min-height: 37px !important;
  padding: .94rem .66rem .2rem !important;
  font-size: .86rem !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .form-label,
body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-row .form-label {
  top: .35rem !important;
  inset-inline-start: .66rem !important;
  inset-inline-end: .66rem !important;
  font-size: .6rem !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .custom-control,
body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card .form-check,
body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-row .custom-control,
body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-row .form-check {
  min-height: 37px;
  padding: .15rem .25rem;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-detail-region,
body.erp-modern-v2.erp-screen-invoice #divAddOprDetail {
  margin: 0 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(249, 251, 255, .92), rgba(244, 248, 252, .98)) !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-detail-shell,
body.erp-modern-v2.erp-screen-invoice #divAddOprDetail > .table-responsive {
  margin-bottom: .18rem !important;
  border-radius: 16px !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: none !important;
}

body.erp-modern-v2.erp-screen-invoice table.erp-entry-table thead th,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail thead th,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail2020 thead th,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail_return thead th,
body.erp-modern-v2.erp-screen-invoice #Entag_tblOprDetail thead th,
body.erp-modern-v2.erp-screen-invoice #OprAccounts_tblOprDetail thead th {
  padding: .5rem .36rem !important;
  font-size: .76rem !important;
  background: linear-gradient(180deg, rgba(250, 241, 241, .96), rgba(244, 248, 253, .98)) !important;
  color: #21324f !important;
}

body.erp-modern-v2.erp-screen-invoice table.erp-entry-table tbody td,
body.erp-modern-v2.erp-screen-invoice table.erp-entry-table tfoot td,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail tbody td,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail tfoot td,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail2020 tbody td,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail2020 tfoot td,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail_return tbody td,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail_return tfoot td,
body.erp-modern-v2.erp-screen-invoice #Entag_tblOprDetail tbody td,
body.erp-modern-v2.erp-screen-invoice #Entag_tblOprDetail tfoot td,
body.erp-modern-v2.erp-screen-invoice #OprAccounts_tblOprDetail tbody td,
body.erp-modern-v2.erp-screen-invoice #OprAccounts_tblOprDetail tfoot td {
  padding: .28rem .34rem !important;
}

body.erp-modern-v2.erp-screen-invoice #tblOprDetail .dynamic-cell_name,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail2020 .dynamic-cell_name,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail_return .dynamic-cell_name,
body.erp-modern-v2.erp-screen-invoice #Entag_tblOprDetail .dynamic-cell_name {
  min-width: 190px !important;
  width: 190px !important;
  max-width: 300px !important;
}

body.erp-modern-v2.erp-screen-invoice #tblOprDetail tfoot .form-control,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail2020 tfoot .form-control,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail_return tfoot .form-control,
body.erp-modern-v2.erp-screen-invoice #Entag_tblOprDetail tfoot .form-control {
  height: 32px !important;
  min-height: 32px !important;
  padding: .16rem .38rem !important;
  font-size: .82rem !important;
}

body.erp-modern-v2.erp-screen-invoice #tblOprDetail .qty-control,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail2020 .qty-control,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail_return .qty-control,
body.erp-modern-v2.erp-screen-invoice #Entag_tblOprDetail .qty-control {
  gap: .18rem !important;
}

body.erp-modern-v2.erp-screen-invoice #tblOprDetail .qbtn,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail2020 .qbtn,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail_return .qbtn,
body.erp-modern-v2.erp-screen-invoice #Entag_tblOprDetail .qbtn {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  border-radius: 7px !important;
  font-size: .78rem !important;
}

body.erp-modern-v2.erp-screen-invoice #tblOprDetail .button_delete,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail .Myrowmenu_select,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail2020 .button_delete,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail2020 .Myrowmenu_select,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail_return .button_delete,
body.erp-modern-v2.erp-screen-invoice #tblOprDetail_return .Myrowmenu_select,
body.erp-modern-v2.erp-screen-invoice #Entag_tblOprDetail .button_delete,
body.erp-modern-v2.erp-screen-invoice #Entag_tblOprDetail .Myrowmenu_select {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  border-radius: 9px !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-row {
  padding-top: .28rem !important;
  margin-top: .06rem !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-row > .col-lg-12 {
  padding-inline: 0 !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-shell {
  margin-inline: 0 !important;
  padding: .56rem .62rem .34rem !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: none !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-shell .btn,
body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-shell button {
  min-height: 36px !important;
  padding: .42rem .78rem !important;
  border-radius: 12px !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-shell .btn i,
body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-shell button i {
  font-size: .88rem !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-shell .custom-control,
body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-shell .form-check {
  min-height: 34px;
  align-items: center;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-shell .erp-smart-dir--numeric,
body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-shell input[type="number"],
body.erp-modern-v2.erp-screen-invoice .erp-opr-detail-shell input[type="number"],
body.erp-modern-v2.erp-screen-invoice .erp-opr-detail-shell input[id*="Barcode"],
body.erp-modern-v2.erp-screen-invoice .erp-opr-detail-shell input[id*="Code"],
body.erp-modern-v2.erp-screen-invoice .erp-opr-detail-shell input[id*="ID"] {
  direction: ltr !important;
  text-align: center !important;
}

body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card textarea,
body.erp-modern-v2.erp-screen-invoice .erp-opr-detail-shell textarea,
body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card input[id*="BYAN"],
body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card input[id*="Name"],
body.erp-modern-v2.erp-screen-invoice .erp-opr-detail-shell input[id*="ItemName"] {
  text-align: start !important;
}

@media (max-width: 1199.98px) {
  body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card > .card-body {
    padding: .48rem .52rem !important;
  }

  body.erp-modern-v2.erp-screen-invoice #tblOprDetail .dynamic-cell_name,
  body.erp-modern-v2.erp-screen-invoice #tblOprDetail2020 .dynamic-cell_name,
  body.erp-modern-v2.erp-screen-invoice #tblOprDetail_return .dynamic-cell_name,
  body.erp-modern-v2.erp-screen-invoice #Entag_tblOprDetail .dynamic-cell_name {
    min-width: 160px !important;
    width: 160px !important;
  }
}

@media (max-width: 767.98px) {
  body.erp-modern-v2.erp-screen-invoice .erp-opr-layout > .card-header,
  body.erp-modern-v2.erp-screen-invoice .erp-opr-layout > .card-body {
    padding-inline: .3rem !important;
  }

  body.erp-modern-v2.erp-screen-invoice .erp-opr-primary-card,
  body.erp-modern-v2.erp-screen-invoice .erp-opr-detail-shell,
  body.erp-modern-v2.erp-screen-invoice .erp-opr-totals-shell {
    border-radius: 14px !important;
  }
}


/* =========================================================
   Invoice report UX pass
   - cleaner invoice report tab / print report
   - calmer toolbar, denser tables, clearer totals
   ========================================================= */
body.erp-modern-v2 .erp-opr-report-tab,
body.erp-modern-v2 #divOtherInfo {
  --erp-report-panel-bg: color-mix(in srgb, var(--erp-primary, #4f7cff) 2%, #ffffff 98%);
  --erp-report-border: color-mix(in srgb, var(--erp-primary, #4f7cff) 16%, rgba(15, 23, 42, .10));
  --erp-report-muted: color-mix(in srgb, var(--erp-text, #162033) 62%, transparent);
  --erp-report-head-bg: color-mix(in srgb, var(--erp-primary, #4f7cff) 10%, white 90%);
  --erp-report-head-bg-strong: color-mix(in srgb, var(--erp-primary, #4f7cff) 15%, white 85%);
  --erp-report-row-alt: color-mix(in srgb, var(--erp-primary, #4f7cff) 2.5%, white 97.5%);
  --erp-report-row-hover: color-mix(in srgb, var(--erp-primary, #4f7cff) 5%, white 95%);
  --erp-report-kpi-bg: linear-gradient(180deg, color-mix(in srgb, var(--erp-primary, #4f7cff) 4%, white 96%), color-mix(in srgb, var(--erp-primary, #4f7cff) 8%, #f7faff 92%));
}

body.erp-modern-v2 #divOtherInfo > .row {
  margin-inline: 0;
  row-gap: .8rem;
}

body.erp-modern-v2 #divOtherInfo .filter-overlay {
  backdrop-filter: blur(3px);
}

body.erp-modern-v2 #divOtherInfo .erp-filter-panel {
  width: min(392px, 95vw);
  border-radius: 24px;
  box-shadow: 0 26px 56px rgba(15, 23, 42, .18);
}

body.erp-modern-v2 #divOtherInfo .filter-body {
  padding: 14px 14px 10px;
  height: calc(100% - 74px);
}

body.erp-modern-v2 #divOtherInfo .filter-footer:empty,
body.erp-modern-v2 #divOtherInfo .panel-heading:empty {
  display: none !important;
}

body.erp-modern-v2 #divOtherInfo > .row > [class*="col-"] {
  padding-inline: .45rem;
}

body.erp-modern-v2 #divOtherInfo > .row > .col-lg-12:first-child > .row {
  align-items: end;
  row-gap: .7rem;
}

body.erp-modern-v2 #divOtherInfo .form-group {
  margin-bottom: .55rem;
}

body.erp-modern-v2 #divOtherInfo .erp-field-shell {
  margin-bottom: 0;
}

body.erp-modern-v2 #divOtherInfo .filter-btn,
body.erp-modern-v2 #divOtherInfo #oprFilter_Refresh_data,
body.erp-modern-v2 #divOtherInfo #oprFilter_btnPrint,
body.erp-modern-v2 #divOtherInfo #oprFilter_btnPrintPos,
body.erp-modern-v2 #divOtherInfo #oprFilter_btnSyana {
  min-height: 46px;
  width: 100%;
  justify-content: center;
  gap: .45rem;
  font-weight: 800;
}

body.erp-modern-v2 #divOtherInfo .wrapper {
  margin-bottom: 0;
}

body.erp-modern-v2 #divOtherInfo .panel.panel-hash {
  background: var(--erp-report-panel-bg);
  border: 1px solid var(--erp-report-border);
  border-radius: 24px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, .06);
  overflow: hidden;
}

body.erp-modern-v2 #divOtherInfo .panel.panel-hash > .panel-body {
  padding: 12px 14px 16px;
  background: transparent;
}

body.erp-modern-v2 #divOtherInfo .table-responsive {
  border-radius: 20px;
  border: 1px solid var(--erp-report-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 255, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
  overflow: auto;
  scrollbar-gutter: stable;
}

body.erp-modern-v2 #divOtherInfo .table-responsive::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

body.erp-modern-v2 #divOtherInfo .table-responsive::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--erp-primary, #4f7cff) 18%, rgba(15, 23, 42, .16));
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .8);
}

body.erp-modern-v2 #divOtherInfo .erp-u-height-75vh,
body.erp-modern-v2 #divOtherInfo .erp-u-max-height-75vh {
  height: min(68vh, calc(100vh - 320px)) !important;
  max-height: min(68vh, calc(100vh - 320px)) !important;
}

body.erp-modern-v2 #divOtherInfo .dataTables_wrapper {
  padding-top: .15rem;
}

body.erp-modern-v2 #divOtherInfo .dataTables_wrapper .row {
  row-gap: .65rem;
}

body.erp-modern-v2 #divOtherInfo .dataTables_wrapper .dataTables_length,
body.erp-modern-v2 #divOtherInfo .dataTables_wrapper .dataTables_filter,
body.erp-modern-v2 #divOtherInfo .dataTables_wrapper .dataTables_info,
body.erp-modern-v2 #divOtherInfo .dataTables_wrapper .dataTables_paginate {
  margin-top: .15rem;
  margin-bottom: .2rem;
}

body.erp-modern-v2 #divOtherInfo .dataTables_wrapper .dataTables_length label,
body.erp-modern-v2 #divOtherInfo .dataTables_wrapper .dataTables_filter label {
  gap: .4rem;
  font-size: .82rem;
  color: var(--erp-report-muted);
}

body.erp-modern-v2 #divOtherInfo .dataTables_wrapper .dataTables_length select,
body.erp-modern-v2 #divOtherInfo .dataTables_wrapper .dataTables_filter input {
  min-height: 40px;
  border-radius: 12px;
  padding-inline: .8rem;
  background: rgba(255, 255, 255, .95);
}

body.erp-modern-v2 #divOtherInfo .dataTables_wrapper .dataTables_filter input {
  min-width: min(260px, 100%);
}

body.erp-modern-v2 #divOtherInfo #tblOprs {
  min-width: max-content;
  margin-bottom: 0 !important;
  background: transparent;
}

body.erp-modern-v2 #divOtherInfo #tblOprs thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: .72rem .68rem;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
  background: var(--erp-report-head-bg) !important;
  border-bottom: 1px solid color-mix(in srgb, var(--erp-primary, #4f7cff) 18%, rgba(15, 23, 42, .10));
  color: var(--erp-text);
}

body.erp-modern-v2 #divOtherInfo #tblOprs tfoot th {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: .66rem .68rem;
  background: var(--erp-report-head-bg-strong) !important;
  border-top: 1px solid color-mix(in srgb, var(--erp-primary, #4f7cff) 18%, rgba(15, 23, 42, .10));
  font-weight: 900;
}

body.erp-modern-v2 #divOtherInfo #tblOprs tbody td {
  padding: .58rem .68rem;
  font-size: .84rem;
  font-weight: 700;
  border-color: color-mix(in srgb, var(--erp-primary, #4f7cff) 10%, rgba(15, 23, 42, .08));
  background: rgba(255, 255, 255, .82);
}

body.erp-modern-v2 #divOtherInfo #tblOprs tbody tr:nth-child(even) td {
  background: var(--erp-report-row-alt);
}

body.erp-modern-v2 #divOtherInfo #tblOprs tbody tr:hover td {
  background: var(--erp-report-row-hover);
}

body.erp-modern-v2 #divOtherInfo #tblOprs td:nth-child(12),
body.erp-modern-v2 #divOtherInfo #tblOprs td:nth-child(13),
body.erp-modern-v2 #divOtherInfo #tblOprs td:nth-child(14) {
  white-space: normal;
  min-width: 180px;
  max-width: 280px;
  line-height: 1.55;
}

body.erp-modern-v2 #divOtherInfo #tblOprs .erp-report-cell--ltr,
body.erp-modern-v2 #divOtherInfo #tblOprs .erp-report-cell--ltr * {
  direction: ltr !important;
  text-align: center !important;
  unicode-bidi: plaintext;
}

body.erp-modern-v2 #divOtherInfo .myrportTotal {
  padding-top: 12px !important;
  row-gap: .8rem;
}

body.erp-modern-v2 #divOtherInfo .myrportTotal > [class*="col-"] {
  padding-inline: .42rem;
}

body.erp-modern-v2 #divOtherInfo .myrportTotal .form-group {
  margin-bottom: 0;
}

body.erp-modern-v2 #divOtherInfo .myrportTotal .erp-field-shell {
  min-height: 96px;
  padding: .7rem .9rem .75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  border: 1px solid var(--erp-report-border);
  background: var(--erp-report-kpi-bg);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

body.erp-modern-v2 #divOtherInfo .myrportTotal .form-label_print {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: block;
  margin: 0 0 .42rem;
  font-size: .76rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--erp-report-muted);
  white-space: normal;
  text-align: start;
}

body.erp-modern-v2 #divOtherInfo .myrportTotal .form-control,
body.erp-modern-v2 #divOtherInfo .myrportTotal input.form-control {
  min-height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--erp-text);
  direction: ltr;
  text-align: left;
}

body.erp-modern-v2 #divOtherInfo .myrportTotal .form-control[class*="erp-u-background-color-"] {
  background: transparent !important;
}

body.erp-modern-v2 .erp-report-print-page .erp-report-print-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
  margin-bottom: 1rem;
}

body.erp-modern-v2 .erp-report-print-page .erp-report-print-actions .btn {
  min-height: 42px;
  padding-inline: .95rem;
}

body.erp-modern-v2 .erp-report-print-page .erp-report-print-canvas,
body.erp-modern-v2 .erp-report-print-page #printableArea {
  background: #fff;
  border: 1px solid var(--erp-report-border);
  border-radius: 24px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 20px 44px rgba(15, 23, 42, .08);
}

body.erp-modern-v2 .erp-report-print-page .header_report {
  padding: .15rem 0 .85rem;
}

body.erp-modern-v2 .erp-report-print-page .erp-form-control-print {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: .55rem .8rem;
  border: 1px solid var(--erp-report-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--erp-primary, #4f7cff) 4%, white 96%);
}

body.erp-modern-v2 .erp-report-print-page .header_report_table_body .form-group {
  margin-bottom: .55rem;
}

body.erp-modern-v2 .erp-report-print-page .erp-print-table th,
body.erp-modern-v2 .erp-report-print-page .erp-print-table td {
  padding: .46rem .6rem;
}

body.erp-modern-v2 .erp-report-print-page .erp-print-table thead th {
  background: var(--erp-report-head-bg) !important;
}

body.erp-modern-v2 .erp-report-print-page .erp-print-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--erp-primary, #4f7cff) 2.5%, white 97.5%);
}

@media (max-width: 1199.98px) {
  body.erp-modern-v2 #divOtherInfo .erp-u-height-75vh,
  body.erp-modern-v2 #divOtherInfo .erp-u-max-height-75vh {
    height: min(62vh, calc(100vh - 300px)) !important;
    max-height: min(62vh, calc(100vh - 300px)) !important;
  }

  body.erp-modern-v2 #divOtherInfo .dataTables_wrapper .dataTables_filter input {
    min-width: min(220px, 100%);
  }
}

@media (max-width: 767.98px) {
  body.erp-modern-v2 #divOtherInfo > .row > [class*="col-"] {
    padding-inline: .25rem;
  }

  body.erp-modern-v2 #divOtherInfo .myrportTotal .erp-field-shell {
    min-height: 88px;
    padding: .65rem .8rem;
  }

  body.erp-modern-v2 #divOtherInfo .dataTables_wrapper .dataTables_filter input {
    min-width: 100%;
  }
}

@media print {
  body.erp-modern-v2 .erp-report-print-page .erp-report-print-canvas,
  body.erp-modern-v2 .erp-report-print-page #printableArea {
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }
}
