/* Independent Al-Najah interface system: shared controls for existing business screens. */
:root {
   --nj-design: 16;
   --nj-bg: #f5f7fa;
   --nj-surface: #ffffff;
   --nj-ink: #1e293b;
   --nj-muted: #64748b;
   --nj-line: #e2e8f0;
   --nj-brand: #1a73e8;
   --nj-hover: #e8f0fe;
   --nj-ring: #1a73e8;
   --nj-radius: 16px;
   --nj-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
   --ux-bg: var(--nj-bg);
   --ux-ink: var(--nj-ink);
   --ux-line: var(--nj-line)
}

html {
   scroll-padding-top: 100px
}

body.ui16 {
   font-family: Cairo, Arial, sans-serif !important;
   background: var(--nj-bg) !important;
   color: var(--nj-ink);
   font-size: 14px;
   line-height: 1.75
}

body.ui16 *,
body.ui16 *:before,
body.ui16 *:after {
   box-sizing: border-box
}

.ui16 #uxMain {
   padding: 32px !important;
   min-width: 0
}

.ui16 .ux-page-heading {
   margin-bottom: 24px !important;
   gap: 20px !important;
   align-items: center !important
}

.ui16 #uxPageTitle {
   font-size: 28px !important;
   line-height: 1.5 !important;
   color: var(--nj-ink) !important
}

.ui16 #uxPageSubtitle {
   color: var(--nj-muted) !important;
   font-size: 14px !important;
   margin-top: 6px
}

.ui16 .ux-topbar {
   background: #fff !important;
   border-bottom: 1px solid var(--nj-line) !important;
   box-shadow: none !important;
   gap: 16px !important
}

.ui16 .ux-sidebar {
   background: linear-gradient(180deg, #1e293b 0%, #1e293b 100%) !important
}

.ui16 .ux-nav-link {
   border-radius: 10px !important;
   min-height: 46px;
   transition: background .15s
}

.ui16 .ux-nav-link[aria-current=page] {
   background: #1a73e8 !important;
   box-shadow: inset -3px 0 #cbd5e1 !important
}

.ui16 .ux-nav-group {
   font-size: 11px !important;
   letter-spacing: .02em;
   color: #cbd5e1 !important
}

.ui16 .ux-overview {
   border: 1px solid #e2e8f0 !important;
   background: #e8f0fe !important;
   border-radius: 20px !important;
   box-shadow: none !important
}

.ui16 .ux-metric,
.ui16 .ux-quick,
.ui16 .ux-card,
.ui16 .ux-setting-pane,
.ui16 .ux-setting-pane>section {
   border-color: var(--nj-line) !important;
   background: #fff !important;
   box-shadow: var(--nj-shadow) !important;
   border-radius: var(--nj-radius) !important
}

.ui16 .ux-metric {
   padding: 22px !important
}

.ui16 .ux-metric-value strong {
   font-variant-numeric: tabular-nums;
   letter-spacing: -.02em
}

.ui16 .ux-metric-foot {
   line-height: 1.8 !important
}

.ui16 :is(.tab-panel, .modal-backdrop, .erp-overlay, #extCenter, #priceManager, #priceWorkspace) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) {
   font-family: inherit !important;
   font-size: 14px !important;
   color: var(--nj-ink) !important;
   background: #fff !important;
   border: 1px solid #cbd5e1 !important;
   border-radius: 9px !important;
   min-height: 44px !important;
   padding: 10px 12px !important;
   max-width: 100%;
   box-shadow: none !important;
   transition: border-color .15s, box-shadow .15s
}

.ui16 :is(input, select, textarea):disabled {
   background: #f5f7fa !important;
   color: #817b72 !important;
   cursor: not-allowed
}

.ui16 :is(input, textarea)[readonly] {
   background: #f5f7fa !important
}

.ui16 input::placeholder,
.ui16 textarea::placeholder {
   color: #938d82 !important;
   font-weight: 400 !important
}

.ui16 :is(input, select, textarea):focus-visible {
   outline: 0 !important;
   border-color: var(--nj-ring) !important;
   box-shadow: 0 0 0 3px #1a73e826 !important
}

.ui16 :is(button, a):focus-visible {
   outline: 3px solid #1a73e8 !important;
   outline-offset: 3px
}

.ui16 :is(input[type=checkbox], input[type=radio]) {
   width: 18px !important;
   height: 18px !important;
   accent-color: var(--nj-brand);
   flex-shrink: 0
}

.ui16 :is(.tab-panel, .modal-backdrop, #extCenter) label {
   font-size: 13px !important;
   color: #334155 !important;
   line-height: 1.8 !important;
   min-width: 0
}

.ui16 :is(.ops-grid, .v2-form-grid)>label :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
   width: 100%;
   margin-top: 6px !important
}

.ui16 :is(.ops-grid, .v2-form-grid) {
   gap: 16px !important
}

.ui16 :is(.ops-grid, .v2-form-grid)>* {
   min-width: 0
}

.ui16 :is(.tab-panel, .modal-backdrop, .erp-overlay, #extCenter, #priceManager, #priceWorkspace) button {
   font-family: inherit !important;
   font-size: 13px !important;
   font-weight: 700 !important;
   min-height: 40px;
   border-radius: 9px !important;
   line-height: 1.6 !important;
   white-space: normal;
   transition: background .15s, box-shadow .15s;
   color: black !important;
}

.ui16 button:disabled {
   opacity: .5;
   cursor: not-allowed
}

.ui16 :is(.ux-primary, #extSubmit, button[type=submit], #btnSaveSettings) {
   background: var(--nj-brand) !important;
   color: #fff !important;
   border-color: var(--nj-brand) !important;
   min-height: 44px
}

.ui16 :is(.ux-list-tools, .v2-filters, .pw-tools, .pw-bulk) {
   padding: 16px !important;
   gap: 12px !important;
   background: #ffffff !important;
   border: 1px solid var(--nj-line) !important;
   border-radius: 12px !important;
   margin-bottom: 16px !important;
   flex-wrap: wrap
}

.ui16 .ux-settings-tablist {
   gap: 8px !important
}

.ui16 .ux-settings-tablist button {
   min-height: 44px;
   padding: 9px 16px !important
}

.ui16 .ux-setting-pane {
   padding: 24px !important
}

.ui16 .ux-setting-pane h2 {
   font-size: 19px !important
}

.ui16 :is(.ux-table-wrap, .ops-table, .v2-table-wrap, .pw-table) {
   border: 1px solid var(--nj-line) !important;
   border-radius: 12px !important;
   overflow: auto !important;
   max-width: 100%;
   background: #fff;
   overscroll-behavior-x: contain
}

.ui16 table {
   border-collapse: separate !important;
   border-spacing: 0 !important;
   width: 100%;
   font-size: 13px !important
}

.ui16 table th {
   background: #f5f7fa !important;
   color: #334155 !important;
   font-size: 12px !important;
   font-weight: 700 !important;
   white-space: nowrap;
   padding: 13px 14px !important;
   border-bottom: 1px solid var(--nj-line) !important
}

.ui16 table td {
   padding: 13px 14px !important;
   border-bottom: 1px solid #e8f0fe !important;
   color: #334155 !important;
   vertical-align: middle !important;
   line-height: 1.8 !important;
   font-variant-numeric: tabular-nums
}

.ui16 table tbody tr:last-child td {
   border-bottom: 0 !important
}

.ui16 table tbody tr:hover {
   background: #ffffff !important
}

.ui16 table :is(td, th) button {
   padding: 6px 10px !important;
   min-height: 34px
}

.ui16 table :is(input:not([type=checkbox]), select) {
   min-width: 95px
}

.ui16 :is(.v2-pill, .ux-state) {
   font-size: 12px !important;
   padding: 4px 10px !important;
   border-radius: 7px !important
}

.ui16 .modal-backdrop,
.ui16 .erp-overlay {
   background: #0f172aa8 !important;
   backdrop-filter: blur(3px)
}

.ui16 .modal-backdrop>div,
.ui16 .erp-overlay>div,
.ui16 #extCenter>div {
   background: #ffffff !important;
   border: 1px solid #e2e8f0 !important;
   border-radius: 18px !important;
   box-shadow: 0 24px 80px #0f172a30 !important;
   max-height: calc(100dvh - 48px) !important;
   min-width: 0;
   max-width: calc(100vw - 40px);
   overscroll-behavior: contain
}

.ui16 .ux-dialog-body {
   padding: 24px !important
}

.ui16 .v2-form-section {
   border: 1px solid var(--nj-line) !important;
   border-radius: 12px !important;
   background: #fff !important;
   padding: 20px !important;
   margin-bottom: 18px !important
}

.ui16 .v2-form-section legend {
   font-size: 14px !important;
   font-weight: 700 !important;
   padding: 0 8px !important;
   color: #1a73e8 !important
}

.ui16 .v2-record-header {
   padding-bottom: 18px;
   border-bottom: 1px solid var(--nj-line)
}

.ui16 .v2-detail-tabs {
   overflow-x: auto;
   flex-wrap: nowrap !important;
   gap: 8px !important
}

.ui16 .v2-detail-tabs button {
   white-space: nowrap !important;
   flex-shrink: 0
}

.ui16 .modal-actions {
   background: #ffffff !important;
   border-top: 1px solid var(--nj-line) !important;
   padding-top: 16px !important;
   gap: 10px !important
}

.ui16 :is(.ops-note, .ux-readonly-note, .ux-draft-note) {
   font-size: 13px !important;
   line-height: 1.9 !important;
   overflow-wrap: anywhere
}

.ui16 :is(.ops-stats, .ux-detail-grid) {
   gap: 14px !important
}

.ui16 .ops-stats>div {
   border: 1px solid var(--nj-line) !important;
   border-radius: 12px !important;
   padding: 18px !important;
   background: white !important
}

.ui16 :is(.ux-search-dialog, .ux-search-result, #v2RecordContent, #extResults) {
   background: #ffffff !important
}

.ui16 .ux-search-result {
   min-height: 66px;
   padding: 12px !important;
   border-radius: 8px !important
}

.ui16 .ux-search-result:hover {
   background: var(--nj-hover) !important
}

.ui16 .ux-status-strip {
   margin-top: 28px !important;
   color: var(--nj-muted) !important
}

/* Native selects remain the authoritative controls; one reusable popup searches them. */
.nj-workspace-tools {
   margin: 0 0 20px;
   border: 1px solid var(--nj-line);
   border-radius: 11px;
   background: #ffffff;
   padding: 10px 14px;
   font-size: 13px
}

.nj-workspace-tools>summary {
   cursor: pointer;
   color: #334155;
   font-weight: 700;
   min-height: 24px
}

.nj-workspace-tools>div {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   padding-top: 12px
}

.ui16 .nj-workspace-tools button {
   margin: 0 !important;
   min-height: 42px !important;
   padding: 9px 14px !important;
   background: #f5f7fa !important;
   color: #1a73e8 !important;
   border: 1px solid #e2e8f0 !important;
   border-radius: 8px !important;
   font-size: 13px !important
}

.nj-workspace-tools>summary:focus-visible {
   outline: 3px solid #1a73e8;
   outline-offset: 3px
}

.ui16 select[data-najah-select] {
   cursor: pointer;
   padding-inline-end: 32px !important
}

.nj-select-panel {
   position: fixed;
   z-index: 2147483000;
   background: #ffffff;
   color: #1e293b;
   border: 1px solid #cbd5e1;
   border-radius: 14px;
   box-shadow: 0 18px 55px #0f172a30;
   padding: 12px;
   direction: rtl;
   font: 14px/1.7 Cairo, Arial, sans-serif;
   display: flex;
   flex-direction: column;
   gap: 8px;
   max-width: calc(100vw - 24px)
}

.nj-select-panel[hidden] {
   display: none !important
}

.nj-select-head {
   display: flex;
   align-items: center;
   gap: 8px
}

.nj-select-head strong {
   flex: 1;
   overflow-wrap: anywhere
}

.nj-select-close {
   background: #f5f7fa;
   border: 0;
   border-radius: 8px;
   width: 38px;
   height: 38px;
   font-size: 20px;
   color: #1a73e8
}

.nj-select-search {
   width: 100%;
   min-height: 46px !important;
   border: 1px solid #64748b !important;
   background: white !important;
   border-radius: 9px !important;
   padding: 10px 12px !important;
   color: #1e293b !important;
   font: 16px Cairo, Arial, sans-serif !important;
   outline-offset: 2px
}

.nj-select-options {
   overflow-y: auto;
   overscroll-behavior: contain;
   min-height: 44px;
   max-height: 260px;
   scroll-padding: 8px
}

.nj-select-option {
   padding: 11px 12px;
   border-radius: 8px;
   cursor: pointer;
   min-height: 44px;
   display: flex;
   gap: 12px;
   justify-content: space-between;
   align-items: center;
   overflow-wrap: anywhere
}

.nj-select-option[aria-selected=true] {
   background: #e8f0fe;
   font-weight: 700
}

.nj-select-option.nj-active {
   outline: 2px solid #3b82f6;
   outline-offset: -2px;
   background: #eef2f6
}

.nj-select-option[aria-disabled=true] {
   opacity: .5;
   cursor: not-allowed
}

.nj-select-empty,
.nj-select-count {
   padding: 8px;
   color: #64748b;
   font-size: 12px
}

.nj-select-more {
   background: #eef2f6;
   border: 1px solid #e2e8f0;
   border-radius: 8px;
   min-height: 40px;
   color: #1a73e8;
   font: inherit
}

.nj-select-panel button {
   cursor: pointer
}

.nj-select-panel :focus-visible {
   outline: 3px solid #1a73e8;
   outline-offset: 2px
}

@media(min-width:1000px) {
   .ui16 .ux-metrics {
      gap: 20px !important
   }

   .ui16 .ux-topbar {
      padding-inline: 32px !important
   }

   .ui16 .ux-list-tools input {
      min-width: 220px
   }
}

@media(max-width:1023px) {
   .ui16 #uxMain {
      padding: 24px !important
   }

   .ui16 .ux-topbar-title {
      display: none
   }

   .ui16 .ux-page-heading {
      flex-wrap: wrap
   }

   .ui16 .ops-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important
   }
}

@media(max-width:650px) {
   .ui16 #uxMain {
      padding: 18px 14px calc(100px + env(safe-area-inset-bottom)) !important
   }

   .ui16 #uxPageTitle {
      font-size: 24px !important
   }

   .ui16 #uxPageSubtitle {
      font-size: 13px !important
   }

   .ui16 .ux-page-heading {
      gap: 12px !important;
      margin-bottom: 18px !important
   }

   .ui16 .ux-heading-actions {
      width: 100%;
      justify-content: space-between;
      gap: 10px !important
   }

   .ui16 .ux-topbar {
      padding-inline: 12px !important;
      gap: 8px !important
   }

   .ui16 .ux-topbar .ux-user {
      flex-shrink: 0
   }

   .ui16 .ux-search-launch {
      min-width: 0 !important
   }

   .ui16 .ux-search-launch span {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
   }

   .ui16 .ux-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 10px !important
   }

   .ui16 .ux-metric {
      padding: 14px !important;
      min-width: 0
   }

   .ui16 .ux-metric-head {
      font-size: 12px !important;
      gap: 4px !important
   }

   .ui16 .ux-metric-value strong {
      font-size: 26px !important
   }

   .ui16 .ux-metric-foot {
      font-size: 11px !important
   }

   .ui16 .ux-overview {
      padding: 20px !important
   }

   .ui16 .brand-hero-seal {
      width: 76px !important;
      height: 76px !important;
      flex-shrink: 0
   }

   .ui16 .brand-hero-seal img {
      width: 64px !important;
      height: 64px !important
   }

   .ui16 :is(.ux-list-tools, .v2-filters, .pw-tools, .pw-bulk) {
      padding: 12px !important
   }

   .ui16 :is(.ux-list-tools, .v2-filters)>label {
      width: 100%;
      min-width: 0 !important
   }

   .ui16 :is(.ux-list-tools, .v2-filters) :is(input, select) {
      max-width: 100%;
      min-width: 0 !important
   }

   .ui16 :is(.ops-grid, .v2-form-grid, .ux-detail-grid) {
      grid-template-columns: minmax(0, 1fr) !important
   }

   .ui16 :is(.tab-panel, .modal-backdrop, .erp-overlay, #extCenter) :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
      font-size: 16px !important;
      min-height: 46px !important
   }

   .ui16 :is(.tab-panel, .modal-backdrop, .erp-overlay, #extCenter) button {
      min-height: 44px
   }

   .ui16 .modal-backdrop {
      padding: 0 !important;
      align-items: stretch !important
   }

   .ui16 .modal-backdrop>div,
   .ui16 #extCenter>div {
      width: 100% !important;
      max-width: 100% !important;
      max-height: 100dvh !important;
      min-height: 0;
      border-radius: 0 !important;
      padding: 18px !important;
      overflow-y: auto !important
   }

   .ui16 .erp-overlay>div {
      width: calc(100vw - 28px) !important;
      padding: 24px !important;
      border-radius: 18px !important
   }

   .ui16 .ux-dialog-body {
      padding: 16px 0 !important
   }

   .ui16 .v2-form-section {
      padding: 14px !important
   }

   .ui16 .modal-actions {
      position: sticky;
      bottom: 0;
      z-index: 2;
      padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
      flex-wrap: wrap
   }

   .ui16 .modal-actions button {
      flex: 1;
      min-width: 100px
   }

   .ui16 .ux-settings-tablist {
      flex-wrap: nowrap !important;
      overflow-x: auto;
      max-width: 100%;
      width: 100% !important;
      border-radius: 16px !important;
      padding: 6px !important
   }

   .ui16 .ux-settings-tablist button {
      flex-shrink: 0;
      white-space: nowrap !important
   }

   .ui16 .ux-setting-pane {
      padding: 16px !important
   }

   .ui16 .ux-mobile-nav {
      padding-bottom: env(safe-area-inset-bottom) !important;
      min-height: 66px !important;
      background: #ffffff !important;
      border-top: 1px solid var(--nj-line) !important
   }

   .ui16 #toastBanner {
      bottom: calc(82px + env(safe-area-inset-bottom)) !important;
      max-width: calc(100vw - 28px) !important;
      left: 14px !important;
      right: 14px !important
   }

   .nj-select-panel {
      border-radius: 18px 18px 0 0;
      max-width: 100vw;
      padding: 16px 16px max(16px, env(safe-area-inset-bottom));
      box-shadow: 0 -15px 70px #0f172a33
   }

   .nj-select-options {
      max-height: 36dvh
   }

   .ui16 table th,
   .ui16 table td {
      padding: 11px !important
   }

   .ui16 .ops-stats {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important
   }
}

@media(max-width:360px) {
   .ui16 .ux-metrics {
      grid-template-columns: 1fr !important
   }

   .ui16 .brand-hero-seal {
      display: none !important
   }

   .ui16 .ux-user>span:last-child {
      display: none
   }

   .ui16 .ops-stats {
      grid-template-columns: 1fr !important
   }
}

@media(prefers-reduced-motion:reduce) {

   .ui16 *,
   .ui16 *:before,
   .ui16 *:after {
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important
   }
}

@media print {
   html.ui16-boot body>* {
      visibility: visible !important
   }

   .nj-select-panel,
   #najahBoot,
   .nj-floating-nav-tip {
      display: none !important
   }

   .ui16 #uxMain {
      padding: 0 !important
   }

   .ui16 table th,
   .ui16 table td {
      font-size: 10px !important;
      padding: 6px !important
   }

   .ui16 .modal-backdrop {
      background: white !important
   }
}

/* ==========================================================================
   Al-Najah v3 Modern Design System: Slim Floating Sidebar, Pill Topbar,
   Bento Luxury Cards, Refined Tables, and Mobile Floating Pill Navigation
   ========================================================================== */
:root {
   --nj-bg: #f5f7fa;
   --nj-surface: #ffffff;
   --nj-ink: #1e293b;
   --nj-muted: #64748b;
   --nj-line: #e2e8f0;
   --nj-brand: #1a73e8;
   --nj-gold: #1a73e8;
   --nj-radius: 20px;
   --nj-shadow: 0 10px 30px rgba(15, 23, 42, .06)
}

.nj-floating-nav-tip {
   position: fixed;
   z-index: 2147483500;
   background: #1e293b;
   color: #ffffff;
   border: 1px solid #334155;
   padding: 7px 14px;
   border-radius: 12px;
   font: 700 12.5px/1.4 Cairo, Arial, sans-serif;
   white-space: nowrap;
   pointer-events: none;
   box-shadow: 0 10px 28px rgba(15, 23, 42, .24)
}

.nj-floating-nav-tip[hidden] {
   display: none !important
}

/* Desktop Slim Floating Pill Sidebar & Floating Topbar (>= 1024px) */
@media(min-width:1024px) {
   body.ui16 {
      --ux-sidebar: 108px
   }

   body.ui16 #uxShell .ux-sidebar {
      position: fixed !important;
      top: 16px !important;
      bottom: 16px !important;
      right: 16px !important;
      left: auto !important;
      width: 78px !important;
      border-radius: 26px !important;
      background: linear-gradient(180deg, #1e293b 0%, #1e293b 100%) !important;
      border: 1px solid #334155 !important;
      box-shadow: 0 18px 44px rgba(15, 23, 42, .24) !important;
      padding: 16px 10px !important;
      align-items: center
   }

   body.ui16 #uxShell .ux-sidebar .ux-brand {
      padding: 0 0 14px !important;
      justify-content: center !important;
      width: 100%;
      border-bottom: 1px solid rgba(241, 245, 249, .1) !important
   }

   body.ui16 #uxShell .ux-sidebar .ux-brand>div {
      display: none !important
   }

   body.ui16 #uxShell .ux-sidebar .ux-brand-mark {
      width: 48px !important;
      height: 48px !important;
      min-width: 48px !important;
      border: 2px solid #60a5fa !important;
      box-shadow: 0 4px 14px rgba(0, 0, 0, .25)
   }

   body.ui16 #uxShell .ux-nav-scroll {
      width: 100%;
      padding-top: 10px !important;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      scrollbar-width: none
   }

   body.ui16 #uxShell .ux-nav-scroll::-webkit-scrollbar {
      display: none
   }

   body.ui16 #uxShell .ux-nav-group,
   body.ui16 #uxShell .nj55-mode-caption {
      display: none !important
   }

   body.ui16 #uxShell .ux-nav-link {
      width: 50px !important;
      height: 50px !important;
      min-height: 50px !important;
      padding: 0 !important;
      margin: 2px auto !important;
      border-radius: 16px !important;
      justify-content: center !important;
      position: relative;
      color: #cbd5e1 !important;
      transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease
   }

   body.ui16 #uxShell .ux-nav-link .ux-icon {
      width: 22px !important;
      height: 22px !important
   }

   body.ui16 #uxShell .ux-nav-link>span:not(.ux-nav-count) {
      position: fixed !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0, 0, 0, 0) !important;
      white-space: nowrap !important;
      border: 0 !important
   }

   body.ui16 #uxShell .ux-nav-link:hover {
      background: rgba(241, 245, 249, .1) !important;
      color: #f1f5f9 !important;
      transform: translateY(-1px)
   }

   body.ui16 #uxShell .ux-nav-link[aria-current=page] {
      background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
      color: #0f172a !important;
      box-shadow: 0 8px 20px rgba(26, 115, 232, .32) !important
   }

   body.ui16 #uxShell .ux-nav-link .ux-nav-count {
      position: absolute;
      top: 4px;
      left: 4px;
      margin: 0 !important;
      min-width: 18px;
      height: 18px;
      padding: 0 5px !important;
      border-radius: 999px !important;
      background: #b91c1c !important;
      color: #fff !important;
      font-size: 10px !important;
      font-weight: 800;
      display: grid;
      place-items: center;
      border: 2px solid #1e293b
   }

   body.ui16 #uxShell .ux-sidebar-foot {
      padding: 12px 0 0 !important;
      justify-content: center !important;
      width: 100%;
      border-top: 1px solid rgba(241, 245, 249, .1) !important
   }

   body.ui16 #uxShell .ux-sidebar-foot>div {
      display: none !important
   }

   body.ui16 #uxShell .ux-sidebar-foot .ux-dot {
      width: 10px;
      height: 10px;
      box-shadow: 0 0 0 4px rgba(112, 217, 175, .16)
   }

   body.ui16 #uxShell .ux-topbar {
      margin: 16px 112px 0 28px !important;
      height: 70px !important;
      padding-inline: 24px !important;
      border-radius: 22px !important;
      background: rgba(241, 245, 249, .92) !important;
      backdrop-filter: blur(12px);
      border: 1px solid var(--nj-line) !important;
      box-shadow: 0 8px 28px rgba(15, 23, 42, .05) !important;
      top: 16px !important
   }

   body.ui16 #uxMain {
      margin: 0 84px 0 0 !important;
      width: calc(100% - 84px) !important;
      padding: 24px 28px 44px 28px !important
   }
}

/* Topbar Controls & Pill Search */
body.ui16 #uxShell .ux-search-launch {
   border-radius: 999px !important;
   background: #eef2f6 !important;
   border: 1px solid #cbd5e1 !important;
   padding: 10px 18px !important;
   color: #334155 !important;
   transition: border-color .15s, box-shadow .15s, background .15s
}

body.ui16 #uxShell .ux-search-launch:hover {
   background: #e8f0fe !important;
   border-color: #3b82f6 !important
}

body.ui16 #uxShell .ux-search-launch kbd {
   background: #ffffff !important;
   border: 1px solid #cbd5e1 !important;
   border-radius: 8px !important;
   padding: 2px 8px !important;
   color: #1a73e8 !important;
   font-weight: 700
}

body.ui16 #uxShell .ux-icon-btn {
   border-radius: 14px !important;
   background: #f5f7fa !important;
   border: 1px solid #e2e8f0 !important;
   color: #1a73e8 !important
}

body.ui16 #uxShell .ux-user {
   padding: 5px 12px 5px 6px !important;
   border-radius: 999px !important;
   background: #f5f7fa !important;
   border: 1px solid #e2e8f0 !important
}

body.ui16 #uxShell .ux-avatar {
   background: linear-gradient(135deg, #1a73e8, #1e293b) !important;
   color: #e8f0fe !important;
   box-shadow: 0 3px 10px rgba(15, 23, 42, .2)
}

body.ui16 .nj55-toggle {
   border-radius: 999px !important;
   padding: 7px 16px !important;
   background: linear-gradient(135deg, #f5f7fa, #e8f0fe) !important;
   border: 1px solid #cbd5e1 !important;
   color: #334155 !important;
   font-weight: 700 !important
}

/* Bento Dashboard, Welcome Hero & Metric Cards */
body.ui16 .ux-overview {
   background: linear-gradient(135deg, #e8f0fe 0%, #e2e8f0 100%) !important;
   border: 1px solid #cbd5e1 !important;
   border-radius: 24px !important;
   box-shadow: 0 12px 34px rgba(15, 23, 42, .07) !important;
   padding: 28px 32px !important
}

body.ui16 .ux-overview .ux-summary-pill {
   border-radius: 999px !important;
   padding: 8px 16px !important;
   background: rgba(241, 245, 249, .9) !important;
   border: 1px solid #cbd5e1 !important;
   font-weight: 700;
   box-shadow: 0 4px 12px rgba(15, 23, 42, .05)
}

body.ui16 .brand-hero-seal {
   background: #ffffff !important;
   border: 2px solid #3b82f6 !important;
   box-shadow: 0 10px 26px rgba(15, 23, 42, .12)
}

body.ui16 .ux-metric {
   border-radius: 20px !important;
   border: 1px solid var(--nj-line) !important;
   background: var(--nj-surface) !important;
   box-shadow: var(--nj-shadow) !important;
   padding: 22px !important;
   position: relative;
   overflow: hidden
}

body.ui16 .ux-metric:hover {
   transform: translateY(-3px);
   border-color: #3b82f6 !important;
   box-shadow: 0 14px 36px rgba(15, 23, 42, .1) !important
}

body.ui16 .ux-metric-icon {
   width: 42px !important;
   height: 42px !important;
   border-radius: 14px !important;
   background: #e8f0fe !important;
   color: #1a73e8 !important
}

body.ui16 .ux-metric:nth-child(1) .ux-metric-icon {
   background: #ecfdf3 !important;
   color: #15803d !important
}

body.ui16 .ux-metric:nth-child(2) .ux-metric-icon {
   background: #e8f0fe !important;
   color: #1a73e8 !important
}

body.ui16 .ux-metric:nth-child(3) .ux-metric-icon {
   background: #fffbeb !important;
   color: #b45309 !important
}

body.ui16 .ux-metric:nth-child(4) .ux-metric-icon {
   background: #fef2f2 !important;
   color: #b91c1c !important
}

body.ui16 .ux-quick {
   border-radius: 18px !important;
   border: 1px solid var(--nj-line) !important;
   background: var(--nj-surface) !important;
   box-shadow: var(--nj-shadow) !important;
   padding: 18px !important;
   transition: transform .15s, border-color .15s, background .15s
}

body.ui16 .ux-quick:hover {
   transform: translateY(-2px);
   border-color: #3b82f6 !important;
   background: #f5f7fa !important
}

body.ui16 .ux-quick>span:first-child {
   width: 44px !important;
   height: 44px !important;
   border-radius: 14px !important;
   background: linear-gradient(135deg, #e8f0fe, #e2e8f0) !important;
   color: #1a73e8 !important
}

body.ui16 .ux-card,
body.ui16 .ux-setting-pane {
   border-radius: 22px !important;
   border: 1px solid var(--nj-line) !important;
   background: var(--nj-surface) !important;
   box-shadow: var(--nj-shadow) !important;
   padding: 24px !important
}

body.ui16 .ux-primary,
body.ui16 .nj20-add:not(.nj27-secondary) {
   border-radius: 12px !important;
   background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%) !important;
   border-color: #1557b0 !important;
   box-shadow: 0 6px 16px rgba(15, 23, 42, .2) !important
}

body.ui16 .ux-primary:hover,
body.ui16 .nj20-add:not(.nj27-secondary):hover {
   background: linear-gradient(135deg, #334155 0%, #1e293b 100%) !important
}

/* Settings Pill Tabs, Reports Stats, Extension Center & Print Layout */
body.ui16 .ux-settings-tablist {
   background: #f5f7fa;
   padding: 6px;
   border-radius: 999px;
   border: 1px solid var(--nj-line);
   width: max-content;
   max-width: 100%
}

body.ui16 .ux-settings-tablist button {
   border-radius: 999px !important;
   border: 0 !important;
   background: transparent !important;
   color: #334155 !important;
   padding: 9px 20px !important;
   font-weight: 700 !important
}

body.ui16 .ux-settings-tablist button[aria-selected=true] {
   background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%) !important;
   color: #fff !important;
   box-shadow: 0 4px 12px rgba(15, 23, 42, .22) !important
}

body.ui16 .ops-stats>div {
   border-radius: 18px !important;
   border: 1px solid var(--nj-line) !important;
   background: var(--nj-surface) !important;
   box-shadow: var(--nj-shadow) !important;
   padding: 20px !important
}

body.ui16 .nj-workspace-tools {
   border-radius: 16px !important;
   border: 1px solid var(--nj-line) !important;
   background: var(--nj-surface) !important;
   padding: 12px 18px !important;
   box-shadow: 0 4px 14px rgba(15, 23, 42, .03)
}

body.ui16 .nj-workspace-tools button {
   border-radius: 11px !important;
   font-weight: 700 !important
}

body.ui16 .ux-chip {
   border-radius: 999px !important;
   padding: 8px 16px !important;
   font-weight: 700 !important;
   border-color: #cbd5e1 !important;
   background: #ffffff !important;
   color: #334155 !important
}

body.ui16 .ux-chip[aria-pressed=true] {
   background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%) !important;
   color: #fff !important;
   border-color: #1557b0 !important
}

body.ui16 .ux-chip[aria-pressed=true] b {
   background: rgba(255, 255, 255, .2) !important;
   color: #fff !important
}

#printableArea {
   padding: 20px 24px;
   background: #fff;
   border: 1px solid #e2e8f0;
   border-radius: 18px;
   color: #0f172a;
   line-height: 1.75
}

#printableArea table {
   width: 100%;
   border-collapse: collapse !important;
   border-radius: 12px;
   overflow: hidden;
   border: 1px solid #cbd5e1
}

#printableArea th {
   background: #eef2f6 !important;
   color: #334155 !important;
   font-weight: 800 !important;
   border-bottom: 2px solid #cbd5e1 !important
}

#printableArea td {
   border-bottom: 1px solid #e8f0fe !important
}

@media print {

   #printableArea,
   #financialStatementsPrintable {
      padding: 0 !important;
      border: 0 !important;
      box-shadow: none !important;
      background: #fff !important;
      color: #000 !important
   }

   #printableArea table,
   #financialStatementsPrintable table {
      border: 1px solid #999 !important
   }

   #printableArea th,
   #financialStatementsPrintable th {
      background: #f5f7fa !important;
      color: #000 !important;
      border-bottom: 1.5px solid #555 !important;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact
   }

   #printableArea td,
   #financialStatementsPrintable td {
      border-bottom: 1px solid #ccc !important;
      color: #000 !important
   }
}

/* Mobile Floating Dark Chocolate Bottom Pill Bar (<= 650px) */
@media(max-width:650px) {
   body.ui16 #uxMain {
      padding: 16px 12px calc(108px + env(safe-area-inset-bottom)) !important
   }

   body.ui16 #uxShell .ux-topbar {
      margin: 10px 12px 0 !important;
      border-radius: 18px !important;
      height: 62px !important;
      border: 1px solid var(--nj-line) !important;
      background: rgba(241, 245, 249, .95) !important;
      box-shadow: 0 6px 20px rgba(15, 23, 42, .07) !important;
      top: 10px !important
   }

   body.ui16 #uxShell .ux-mobile-nav {
      bottom: max(12px, env(safe-area-inset-bottom)) !important;
      left: 12px !important;
      right: 12px !important;
      inset-inline: 12px !important;
      padding: 6px 8px !important;
      min-height: 64px !important;
      background: linear-gradient(180deg, #1e293b 0%, #1e293b 100%) !important;
      border: 1px solid #334155 !important;
      border-radius: 24px !important;
      box-shadow: 0 14px 36px rgba(15, 23, 42, .38) !important
   }

   body.ui16 #uxShell .ux-mobile-nav button {
      color: #cbd5e1 !important;
      border-radius: 16px !important;
      padding: 6px 10px !important;
      min-height: 50px !important;
      font-weight: 700 !important;
      transition: background .15s, color .15s
   }

   body.ui16 #uxShell .ux-mobile-nav button[aria-current=page] {
      background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
      color: #0f172a !important;
      box-shadow: 0 4px 12px rgba(26, 115, 232, .3) !important
   }

   body.ui16 #toastBanner {
      bottom: calc(94px + env(safe-area-inset-bottom)) !important
   }
}

/* ==========================================================================
   Al-Najah v3 Luxury Espresso Dark Mode (html[data-nj-theme="dark"])
   ========================================================================== */
.nj-theme-toggle {
   width: 42px;
   height: 42px;
   min-height: 42px !important;
   padding: 0 !important;
   display: inline-grid;
   place-items: center;
   font-size: 17px !important
}

html[data-nj-theme="dark"] body.ui16 {
   --nj-bg: #0f172a;
   --nj-surface: #1e293b;
   --nj-ink: #f1f5f9;
   --nj-muted: #94a3b8;
   --nj-line: #334155;
   --nj-hover: #1e293b;
   background: #0f172a !important;
   color: #f1f5f9 !important
}

html[data-nj-theme="dark"] body.ui16 #uxShell .ux-topbar {
   background: rgba(15, 23, 42, .92) !important;
   border-color: #334155 !important;
   box-shadow: 0 10px 30px rgba(0, 0, 0, .35) !important
}

html[data-nj-theme="dark"] body.ui16 #uxShell .ux-search-launch,
html[data-nj-theme="dark"] body.ui16 #uxShell .ux-icon-btn,
html[data-nj-theme="dark"] body.ui16 #uxShell .ux-user {
   background: #1e293b !important;
   border-color: #334155 !important;
   color: #e8f0fe !important
}

html[data-nj-theme="dark"] body.ui16 #uxShell .ux-search-launch kbd {
   background: #0f172a !important;
   border-color: #334155 !important;
   color: #60a5fa !important
}

html[data-nj-theme="dark"] body.ui16 .nj55-toggle {
   background: linear-gradient(135deg, #1e293b, #1e293b) !important;
   border-color: #334155 !important;
   color: #e2e8f0 !important
}

html[data-nj-theme="dark"] body.ui16 .ux-overview {
   background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
   border-color: #334155 !important;
   color: #f1f5f9 !important
}

html[data-nj-theme="dark"] body.ui16 .ux-overview .ux-summary-pill {
   background: #1e293b !important;
   border-color: #334155 !important;
   color: #e8f0fe !important
}

html[data-nj-theme="dark"] body.ui16 :is(.ux-metric, .ux-quick, .ux-card, .ux-setting-pane, .nj46-list, .nj20-list, .nj-workspace-tools, .ops-stats>div) {
   background: #1e293b !important;
   border-color: #334155 !important;
   color: #f1f5f9 !important;
   box-shadow: 0 12px 32px rgba(0, 0, 0, .28) !important
}

html[data-nj-theme="dark"] body.ui16 :is(.nj20-list-top h2, .ux-card h2, .ux-card h3, #uxPageTitle, .nj47-heading h2, .nj21-dialog-heading h3) {
   color: #f1f5f9 !important
}

html[data-nj-theme="dark"] body.ui16 :is(.nj46-filters, .nj21-controls, .nj31-panel .nj31-toolbar, .nj31-panel>p:first-of-type, .nj58-views, .nj59-rail, .nj47-section, .nj20-form-group, .v2-form-section) {
   background: #1e293b !important;
   border-color: #334155 !important;
   color: #e8f0fe !important
}

html[data-nj-theme="dark"] body.ui16 :is(.tab-panel, .modal-backdrop, .erp-overlay, #extCenter, .nj47-record, .nj-select-panel) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) {
   background: #0f172a !important;
   border-color: #334155 !important;
   color: #f1f5f9 !important
}

html[data-nj-theme="dark"] body.ui16 :is(.ux-table-wrap, .ops-table, .v2-table-wrap, .nj20-table-scroll) {
   background: #1e293b !important;
   border-color: #334155 !important
}

html[data-nj-theme="dark"] body.ui16 table th {
   background: #1e293b !important;
   color: #e2e8f0 !important;
   border-color: #334155 !important;
   box-shadow: 0 1px 0 #334155 !important
}

html[data-nj-theme="dark"] body.ui16 table td {
   color: #e8f0fe !important;
   border-color: #1e293b !important
}

html[data-nj-theme="dark"] body.ui16 table tbody tr:hover {
   background: #1e293b !important
}

html[data-nj-theme="dark"] body.ui16 table tfoot,
html[data-nj-theme="dark"] body.ui16 .nj46-table tfoot td {
   background: #1e293b !important;
   color: #e8f0fe !important;
   border-color: #334155 !important
}

html[data-nj-theme="dark"] body.ui16 :is(.modal-backdrop>div, .erp-overlay>div, #extCenter>div, .nj47-record, .nj-select-panel, .nj20-action-popup:popover-open) {
   background: #1e293b !important;
   border-color: #334155 !important;
   color: #f1f5f9 !important
}

html[data-nj-theme="dark"] body.ui16 :is(.nj47-heading, .nj47-footer, .nj21-dialog-heading, .modal-actions, .nj20-form-actions) {
   background: #1e293b !important;
   border-color: #1e293b !important
}

html[data-nj-theme="dark"] body.ui16 :is(.nj46-details, .nj46-refresh, .nj50-return-entry, .nj46-pager button, .nj21-filter-toggle, .nj47-stage-pill:not([aria-pressed=true]), .nj55-action) {
   background: #263348 !important;
   border-color: #334155 !important;
   color: #e8f0fe !important
}

html[data-nj-theme="dark"] body.ui16 .nj47-facts>div {
   background: #1e293b !important;
   border-color: #334155 !important
}

html[data-nj-theme="dark"] body.ui16 .nj47-facts dd {
   color: #f1f5f9 !important
}

/* ==========================================================================
   Al-Najah v3 Dashboard Widgets, Mobile Gold FAB & Extended Dark Mode
   ========================================================================== */
[data-workspace-mode="expert"] .nj-v3-pipeline,
[data-workspace-mode="expert"] .nj-v3-recent-card,
[data-workspace-mode="expert"] .nj-v3-spark {
   display: none !important
}

.nj-v3-spark {
   margin: 6px 0 4px;
   height: 38px;
   width: 100%;
   overflow: hidden
}

.nj-v3-spark svg {
   width: 100%;
   height: 100%;
   display: block
}

.nj-v3-pipeline {
   padding: 18px 20px !important;
   display: grid;
   gap: 14px
}

.nj-v3-pipe-head {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 10px
}

.nj-v3-pipe-head h2 {
   margin: 0;
   font-size: 17px;
   font-weight: 800;
   color: #1e293b
}

.nj-v3-pipe-head p {
   margin: 2px 0 0;
   font-size: 12px;
   color: #64748b
}

.nj-v3-pipe-track {
   display: grid;
   grid-template-columns: repeat(5, minmax(0, 1fr));
   gap: 10px
}

.nj-v3-pipe-step {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 11px 12px;
   border-radius: 14px;
   background: #f5f7fa;
   border: 1px solid #e2e8f0;
   text-align: start;
   cursor: pointer;
   transition: transform .14s, border-color .14s, background .14s
}

.nj-v3-pipe-step:hover {
   transform: translateY(-2px);
   border-color: #3b82f6;
   background: #e8f0fe
}

.nj-v3-pipe-step .step-num {
   width: 28px;
   height: 28px;
   border-radius: 999px;
   background: #e8f0fe;
   color: #334155;
   font-size: 12px;
   font-weight: 800;
   display: inline-grid;
   place-items: center;
   flex: none
}

.nj-v3-pipe-step[data-tone="ready"] .step-num {
   background: #dcfce7;
   color: #15803d
}

.nj-v3-pipe-step[data-tone="awaiting_parts"] .step-num {
   background: #fef3c7;
   color: #b45309
}

.nj-v3-pipe-step .step-copy {
   display: grid;
   gap: 1px;
   min-width: 0
}

.nj-v3-pipe-step .step-copy b {
   font-size: 13px;
   font-weight: 800;
   color: #1e293b;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis
}

.nj-v3-pipe-step .step-copy small {
   font-size: 11.5px;
   font-weight: 700;
   color: #64748b
}

.nj-v3-recent-list {
   list-style: none;
   margin: 0;
   padding: 0;
   display: grid;
   gap: 8px
}

.nj-v3-recent-row {
   width: 100%;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 10px;
   padding: 11px 13px;
   border-radius: 14px;
   background: #f5f7fa;
   border: 1px solid #e2e8f0;
   text-align: start;
   cursor: pointer;
   transition: background .14s, border-color .14s
}

.nj-v3-recent-row:hover {
   background: #e8f0fe;
   border-color: #cbd5e1
}

.nj-v3-recent-row strong {
   display: block;
   font-size: 13px;
   font-weight: 800;
   color: #1e293b
}

.nj-v3-recent-row small {
   display: block;
   font-size: 11.5px;
   color: #64748b
}

.nj-v3-recent-end {
   display: grid;
   justify-items: end;
   gap: 3px;
   text-align: end
}

.nj-v3-recent-end b {
   font-size: 13px;
   font-weight: 800;
   color: #1e293b;
   white-space: nowrap
}

.nj46-badge[data-status-tone="paid"] {
   background: #dcfce7 !important;
   color: #15803d !important;
   border: 1px solid #bbf7d0 !important
}

.nj46-badge[data-status-tone="partial"] {
   background: #fef3c7 !important;
   color: #b45309 !important;
   border: 1px solid #fde68a !important
}

.nj46-badge[data-status-tone="unpaid"],
.nj46-badge[data-status-tone="reversed"] {
   background: #fee2e2 !important;
   color: #b91c1c !important;
   border: 1px solid #fecaca !important
}

.nj-v3-recent-empty {
   margin: 8px 0 0;
   font-size: 13px;
   color: #64748b
}

/* Mobile Centered Elevated Gold Quick Action Button */
body.ui16 #uxShell .ux-mobile-nav .nj-v3-mobile-fab {
   flex: 0 0 auto;
   min-width: 58px;
   min-height: 54px;
   margin-top: -18px;
   padding: 4px 10px !important;
   border-radius: 18px !important;
   background: linear-gradient(135deg, #60a5fa 0%, #1a73e8 100%) !important;
   color: #1e293b !important;
   border: 2px solid #1e293b !important;
   box-shadow: 0 10px 24px rgba(26, 115, 232, .42) !important;
   display: grid;
   place-items: center;
   gap: 1px
}

body.ui16 #uxShell .ux-mobile-nav .nj-v3-mobile-fab span {
   font-size: 19px;
   line-height: 1;
   font-weight: 900
}

body.ui16 #uxShell .ux-mobile-nav .nj-v3-mobile-fab small {
   font-size: 10px;
   line-height: 1;
   font-weight: 800
}

@media(max-width:900px) {
   .nj-v3-pipe-track {
      grid-template-columns: repeat(2, minmax(0, 1fr))
   }

   .nj-v3-pipe-track .nj-v3-pipe-step:last-child {
      grid-column: 1/-1
   }
}

@media print {

   .nj-v3-pipeline,
   .nj-v3-mobile-fab,
   .nj47-view-switch,
   .nj47-tech-pills,
   .nj46-inspector,
   .nj20-cash-hero-wrap {
      display: none !important
   }
}

/* Extended Espresso Dark Mode for v3 Components */
html[data-nj-theme="dark"] body.ui16 :is(.nj-v3-pipe-step, .nj-v3-recent-row, .nj47-kanban-col, .nj47-inv-kpi, .nj46-fin-pill, .nj20-cash-kpi, .nj20-cash-donut, .nj47-insp-spark, .nj46-insp-facts>div) {
   background: #1e293b !important;
   border-color: #334155 !important;
   color: #e8f0fe !important
}

html[data-nj-theme="dark"] body.ui16 :is(.nj47-kanban-card, .nj46-inspector) {
   background: #1e293b !important;
   border-color: #334155 !important;
   color: #f1f5f9 !important
}

html[data-nj-theme="dark"] body.ui16 :is(.nj-v3-pipe-head h2, .nj-v3-pipe-step b, .nj-v3-recent-row strong, .nj-v3-recent-end b, .nj47-kanban-head h3, .nj47-kcard-top strong, .nj47-kcard-device, .nj47-inv-kpi strong, .nj46-fin-pill strong, .nj46-insp-head h3, .nj46-insp-facts dd, .nj20-donut-legend b, .nj20-cash-kpi strong) {
   color: #f1f5f9 !important
}

html[data-nj-theme="dark"] body.ui16 :is(.nj-v3-pipe-head p, .nj-v3-pipe-step small, .nj-v3-recent-row small, .nj47-kcard-fault, .nj47-inv-kpi small, .nj47-inv-kpi span, .nj46-fin-pill small, .nj46-insp-head small, .nj46-insp-facts dt, .nj20-donut-legend li, .nj20-cash-kpi small) {
   color: #cbd5e1 !important
}

html[data-nj-theme="dark"] body.ui16 .nj47-view-switch {
   background: #1e293b !important;
   border-color: #334155 !important
}

html[data-nj-theme="dark"] body.ui16 :is(.nj47-view-btn:not([aria-pressed="true"]), .nj47-tech-pill:not([aria-pressed="true"])) {
   background: #263348 !important;
   border-color: #334155 !important;
   color: #e2e8f0 !important
}

html[data-nj-theme="dark"] body.ui16 .nj47-kcard-meta span {
   background: #263348 !important;
   border-color: #334155 !important;
   color: #e2e8f0 !important
}

html[data-nj-theme="dark"] body.ui16 .nj47-stock-bar {
   background: #0f172a !important;
   border-color: #334155 !important
}

html[data-nj-theme="dark"] body.ui16 .nj47-timeline-sec {
   background: #1e293b !important
}

html[data-nj-theme="dark"] body.ui16 .nj47-tl-step[data-step="current"] {
   background: #1e293b !important;
   border-color: #1a73e8 !important
}

html[data-nj-theme="dark"] body.ui16 .nj47-tl-title {
   color: #e2e8f0 !important
}

html[data-nj-theme="dark"] body.ui16 .nj46-table tbody tr[data-v3-selected="true"]>td {
   background: #1e293b !important
}

/* ==========================================================================
   Al-Najah v3 Remaining Screens: Technicians, Monthly, Debts, Financials, Settings, Login
   ========================================================================== */
/* Technicians KPIs */
.nj-v3-tech-kpis {
   display: grid;
   grid-template-columns: repeat(4, minmax(0, 1fr));
   gap: 10px;
   margin-bottom: 14px
}

.nj-v3-tkpi {
   background: #f5f7fa;
   border: 1px solid #e2e8f0;
   border-radius: 16px;
   padding: 12px 15px;
   display: grid;
   gap: 3px
}

.nj-v3-tkpi small {
   font-size: 11.5px;
   font-weight: 700;
   color: #64748b
}

.nj-v3-tkpi strong {
   font-size: 18px;
   font-weight: 800;
   color: #1e293b
}

.nj-v3-tkpi span {
   font-size: 11px;
   color: #64748b
}

.nj-v3-tkpi.is-done {
   background: #f0fdf4;
   border-color: #bbf7d0
}

.nj-v3-tkpi.is-done strong {
   color: #15803d
}

.nj-v3-tkpi.is-comm {
   background: #fffbeb;
   border-color: #fde68a
}

.nj-v3-tkpi.is-comm strong {
   color: #b45309
}

.nj-v3-tkpi.is-shop {
   background: #f5f7fa;
   border-color: #cbd5e1
}

.nj-v3-tkpi.is-shop strong {
   color: #334155
}

/* Monthly 12-Month Comparative Chart & Cards */
.nj-v3-month-chart {
   background: #ffffff;
   border: 1px solid #e2e8f0;
   border-radius: 18px;
   padding: 16px 18px;
   margin-bottom: 14px;
   display: grid;
   gap: 10px
}

.nj-v3-mc-head {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: space-between;
   gap: 10px
}

.nj-v3-mc-head b {
   display: block;
   font-size: 14.5px;
   font-weight: 800;
   color: #1e293b
}

.nj-v3-mc-head small {
   font-size: 12px;
   color: #64748b
}

.nj-v3-mc-legend {
   display: flex;
   gap: 14px;
   font-size: 12px;
   font-weight: 700;
   color: #334155
}

.nj-v3-mc-legend span {
   display: inline-flex;
   align-items: center;
   gap: 6px
}

.nj-v3-mc-legend i {
   width: 10px;
   height: 10px;
   border-radius: 3px;
   display: inline-block
}

.nj-v3-mc-svg {
   width: 100%;
   height: auto;
   max-height: 170px;
   display: block
}

#singleMonthSummaryGrid>div {
   border-radius: 16px !important;
   border-color: #e2e8f0 !important;
   background: #ffffff !important;
   box-shadow: 0 4px 14px rgba(15, 23, 42, .04)
}

/* Debts, Financials & Settings Warm Bento Upgrades */
#tab-debts #partyStatementContainer,
#tab-financials .bg-slate-50,
#tab-settings .bg-slate-50 {
   background: #f5f7fa !important;
   border: 1px solid #e2e8f0 !important;
   border-radius: 18px !important
}

#tab-debts #partyStatementContainer>div:first-child>div:last-child>div {
   border-radius: 12px !important;
   border-color: #e2e8f0 !important
}

#tab-settings .bg-white.border-teal-200 {
   background: #ffffff !important;
   border-color: #cbd5e1 !important;
   border-radius: 16px !important
}

#tab-debts #statementPartySelect,
#tab-monthly #reportMonthSelect,
#tab-technicians #techMonthSelect {
   background: #ffffff !important;
   border-color: #3b82f6 !important;
   color: #1e293b !important;
   border-radius: 12px !important
}

/* Espresso-Gold Login Overlay */
#erpLogin.erp-overlay {
   background: radial-gradient(circle at top, #1e293b 0%, #0f172a 75%) !important
}

#erpLogin.erp-overlay>div {
   border-radius: 24px !important;
   border: 1px solid #334155 !important;
   background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%) !important;
   box-shadow: 0 28px 80px rgba(0, 0, 0, .48) !important
}

#erpLoginForm button[type="submit"] {
   background: linear-gradient(135deg, #1a73e8 0%, #334155 100%) !important;
   border-radius: 14px !important;
   font-weight: 800 !important
}

@media(max-width:760px) {
   .nj-v3-tech-kpis {
      grid-template-columns: repeat(2, minmax(0, 1fr))
   }
}

@media print {

   .nj-v3-month-chart,
   .nj-v3-tech-kpis {
      display: none !important
   }
}

/* Dark Mode for Remaining Screens */
html[data-nj-theme="dark"] body.ui16 :is(.nj-v3-tkpi, .nj-v3-month-chart, #singleMonthSummaryGrid>div, .nj31-kpi, .nj20-warranty-kpi, #tab-debts #partyStatementContainer, #tab-financials .bg-slate-50, #tab-settings .bg-slate-50, #tab-settings .bg-white.border-teal-200) {
   background: #1e293b !important;
   border-color: #334155 !important;
   color: #e8f0fe !important
}

html[data-nj-theme="dark"] body.ui16 :is(.nj-v3-tkpi strong, .nj-v3-mc-head b, .nj31-kpi strong, .nj20-warranty-kpi strong, #tab-debts h2, #tab-debts h3, #tab-technicians h2, #tab-monthly h2, #tab-monthly h3, #tab-financials h2, #tab-financials h3, #tab-settings h2, #tab-settings h3) {
   color: #f1f5f9 !important
}

html[data-nj-theme="dark"] body.ui16 :is(.nj-v3-tkpi small, .nj-v3-tkpi span, .nj-v3-mc-head small, .nj-v3-mc-legend, .nj31-kpi small, .nj31-kpi span, .nj20-warranty-kpi small) {
   color: #cbd5e1 !important
}

html[data-nj-theme="dark"] body.ui16 :is(#tab-debts .bg-white, #tab-debts .bg-amber-100, #tab-financials .bg-white, #tab-settings .bg-white) {
   background: #1e293b !important;
   border-color: #334155 !important;
   color: #e8f0fe !important
}

html[data-nj-theme="dark"] body.ui16 #erpLogin.erp-overlay>div {
   background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
   color: #f1f5f9 !important;
   border-color: #334155 !important
}

html[data-nj-theme="dark"] body.ui16 #erpLogin h2 {
   color: #f1f5f9 !important
}

html[data-nj-theme="dark"] body.ui16 #erpLogin p,
html[data-nj-theme="dark"] body.ui16 #erpLogin label {
   color: #94a3b8 !important
}

/* ==========================================================================
   Al-Najah v3 Print Modal Preview, Lock Screen & Mobile Quick Sheet
   ========================================================================== */
#modalPrint>div {
   border-radius: 22px !important;
   border: 1px solid #cbd5e1 !important;
   box-shadow: 0 28px 80px rgba(15, 23, 42, .35) !important
}

#modalPrint>div>div:first-child {
   background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
   border-bottom: 1px solid #334155 !important;
   padding: 14px 20px !important
}

#modalPrint #btnTriggerBrowserPrint {
   background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
   color: #1e293b !important;
   border-radius: 12px !important;
   font-weight: 800 !important
}

#modalPrint #printableArea {
   background: #fff !important;
   color: #111 !important;
   border-radius: 0 0 22px 22px;
   padding: 26px !important
}

#modalLock {
   background: radial-gradient(circle at top, #1e293b 0%, #0f172a 78%) !important;
   backdrop-filter: blur(6px)
}

#modalLock>div {
   background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%) !important;
   border: 1.5px solid #1a73e8 !important;
   border-radius: 24px !important;
   box-shadow: 0 28px 80px rgba(0, 0, 0, .5) !important
}

#modalLock>div>div:first-child {
   background: linear-gradient(135deg, #1e293b, #1e293b) !important;
   color: #e2e8f0 !important;
   border: 1px solid #1a73e8 !important
}

#formUnlock button[type="submit"] {
   background: linear-gradient(135deg, #1a73e8 0%, #334155 100%) !important;
   color: #f8fafc !important;
   border-radius: 14px !important
}

html[data-nj-theme="dark"] #modalLock>div {
   background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
   border-color: #1a73e8 !important;
   color: #f1f5f9 !important
}

html[data-nj-theme="dark"] #modalLock h3 {
   color: #f1f5f9 !important
}

html[data-nj-theme="dark"] #modalLock p {
   color: #94a3b8 !important
}

#modalMobileQuickSheet>div {
   background: #ffffff !important;
   border-color: #cbd5e1 !important
}

#modalMobileQuickSheet [data-quick-sheet-action] {
   background: #f5f7fa !important;
   border-color: #e2e8f0 !important;
   color: #1e293b !important;
   border-radius: 14px !important;
   transition: transform .12s, background .15s
}

#modalMobileQuickSheet [data-quick-sheet-action]:hover {
   background: #e8f0fe !important
}

html[data-nj-theme="dark"] #modalMobileQuickSheet>div {
   background: #1e293b !important;
   border-color: #334155 !important;
   color: #f1f5f9 !important
}

html[data-nj-theme="dark"] #modalMobileQuickSheet h3 {
   color: #f1f5f9 !important
}

html[data-nj-theme="dark"] #modalMobileQuickSheet [data-quick-sheet-action] {
   background: #1e293b !important;
   border-color: #334155 !important;
   color: #e8f0fe !important
}

html[data-nj-theme="dark"] .ui16 :is(.modal-backdrop, .erp-overlay, #extCenter) label {
   color: #94a3b8 !important
}

/* ==========================================================================
   Extended Dark Mode & Mobile Card Coverage Across Later-Loaded Modules
   ========================================================================== */
@media screen and (max-width:650px) {

   html[data-nj-theme="dark"] body.ui20 .nj20-table tbody tr:not([hidden]):not(.nj-page-off),
   html[data-nj-theme="dark"] body.ui16 .nj46-table tbody tr,
   html[data-nj-theme="dark"] body.ui16 .nj47-table tbody tr {
      background: #1e293b !important;
      border-color: #334155 !important;
      box-shadow: 0 6px 18px rgba(0, 0, 0, .28) !important
   }

   html[data-nj-theme="dark"] body.ui16 .nj46-table tbody td:before,
   html[data-nj-theme="dark"] body.ui16 .nj20-table tbody td:before,
   html[data-nj-theme="dark"] body.ui16 .nj47-table td:before {
      color: #94a3b8 !important
   }
}

@media screen {

   /* Settings Pill Tabs & Tailwind Utility Containers inside Modals and Tabs */
   html[data-nj-theme="dark"] body.ui16 .ux-settings-tablist {
      background: #1e293b !important;
      border-color: #334155 !important
   }

   html[data-nj-theme="dark"] body.ui16 .ux-settings-tablist button:not([aria-selected=true]) {
      color: #94a3b8 !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(#tab-checks, #tab-warranty, #tab-debts, #tab-technicians, #tab-monthly, #tab-financials, #tab-settings) :is(h2, h3, h4, .text-slate-900, .text-slate-800) {
      color: #f1f5f9 !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.tab-panel, .modal-backdrop:not(#modalPrint), .erp-overlay, #extCenter) :is(.bg-white, .bg-white\/90, .bg-white\/95, .bg-slate-50, .bg-slate-100, .bg-amber-50, .bg-amber-50\/60, .bg-amber-50\/70, .bg-amber-100, .bg-emerald-50, .bg-emerald-100, .bg-green-50, .bg-blue-50, .bg-blue-50\/80, .bg-blue-100, .bg-rose-50, .bg-rose-100, .bg-teal-50, .bg-teal-100, .bg-indigo-50, .bg-indigo-100) {
      background: #1e293b !important;
      border-color: #334155 !important;
      color: #e8f0fe !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.tab-panel, .modal-backdrop:not(#modalPrint), .erp-overlay, #extCenter) :is(.bg-slate-200, .bg-slate-300, .bg-amber-200, .bg-blue-200, .bg-emerald-200, .bg-rose-200) {
      background: #1e293b !important;
      border-color: #334155 !important;
      color: #f1f5f9 !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.tab-panel, .modal-backdrop:not(#modalPrint), .erp-overlay, #extCenter) :is(.text-slate-900, .text-slate-800, .text-slate-700, .text-slate-600, .text-slate-500) {
      color: #e2e8f0 !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.tab-panel, .modal-backdrop:not(#modalPrint), .erp-overlay, #extCenter) :is(.text-amber-950, .text-amber-900, .text-amber-800, .text-amber-700) {
      color: #fcd34d !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.tab-panel, .modal-backdrop:not(#modalPrint), .erp-overlay, #extCenter) :is(.text-blue-950, .text-blue-900, .text-blue-800, .text-blue-700, .text-blue-600, .text-indigo-950, .text-indigo-900, .text-indigo-800, .text-indigo-700) {
      color: #93c5fd !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.tab-panel, .modal-backdrop:not(#modalPrint), .erp-overlay, #extCenter) :is(.text-emerald-950, .text-emerald-900, .text-emerald-800, .text-emerald-700, .text-green-800, .text-green-700, .text-teal-950, .text-teal-900, .text-teal-800, .text-teal-700, .text-teal-600) {
      color: #6ee7b7 !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.tab-panel, .modal-backdrop:not(#modalPrint), .erp-overlay, #extCenter) :is(.text-rose-950, .text-rose-900, .text-rose-800, .text-rose-700) {
      color: #fca5a5 !important
   }

   /* Table First-Column Code, Empty/Loading States, Secondary Buttons & Sticky Headers */
   html[data-nj-theme="dark"] body.ui20 .nj20-table td:first-child {
      color: #cbd5e1 !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.nj20-load-status, .nj20-empty, .nj20-form-note) {
      background: #1e293b !important;
      border-color: #334155 !important;
      color: #e2e8f0 !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.nj20-empty h3, .nj20-form-group:before) {
      color: #e2e8f0 !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.nj20-empty p, .nj20-option-detail) {
      color: #94a3b8 !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.nj20-empty button, .nj20-retry, .nj20-table .v2-actions>summary) {
      background: #263348 !important;
      border-color: #334155 !important;
      color: #e8f0fe !important
   }

   html[data-nj-theme="dark"] body.ui16 .nj20-add.nj27-secondary {
      background: #3b1c1c !important;
      border-color: #6e2c2c !important;
      color: #fca5a5 !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.nj-invoice-foot, .nj-detail-header) {
      background: #1e293b !important;
      border-color: #334155 !important
   }

   /* Cashbox Donut Values, Semantic Row Tones & Status Pills */
   html[data-nj-theme="dark"] body.ui16 .nj20-donut-center {
      color: #e2e8f0 !important
   }

   html[data-nj-theme="dark"] body.ui16 .nj20-donut-legend li b {
      color: #f1f5f9 !important
   }

   html[data-nj-theme="dark"] #cashTableBody tr[data-cash-tone="in"] td:nth-child(3),
   html[data-nj-theme="dark"] #cashTableBody tr[data-cash-tone="in"] td:nth-child(8),
   html[data-nj-theme="dark"] #warrantyTableBody tr[data-warranty-tone="active"] td:nth-child(9) {
      color: #6ee7b7 !important
   }

   html[data-nj-theme="dark"] #cashTableBody tr[data-cash-tone="out"] td:nth-child(3),
   html[data-nj-theme="dark"] #cashTableBody tr[data-cash-tone="out"] td:nth-child(9),
   html[data-nj-theme="dark"] #warrantyTableBody tr[data-warranty-tone="expired"] td:nth-child(9) {
      color: #fca5a5 !important
   }

   html[data-nj-theme="dark"] #warrantyTableBody tr[data-warranty-tone="soon"] td:nth-child(9) {
      color: #fcd34d !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.nj46-badge, .nj31-status-pill) {
      background: #263348 !important;
      border-color: #334155 !important;
      color: #e2e8f0 !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.nj46-badge[data-status-tone="paid"], tr[data-record-status=paid] .nj46-badge, #nj46-maintenance tr[data-record-status=ready] .nj46-badge, #nj46-maintenance tr[data-record-status=delivered] .nj46-badge, #nj46-inventory tr[data-stock-tone=ok] td:nth-child(4) .nj46-badge, tr[data-payment-status="settled"] .nj31-status-pill) {
      background: #163324 !important;
      border-color: #26593e !important;
      color: #86efac !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.nj46-badge[data-status-tone="partial"], tr[data-record-status=partial] .nj46-badge, #nj46-maintenance tr:is([data-record-status=quoted], [data-record-status=approved], [data-record-status=executed], [data-record-status=awaiting_parts]) .nj46-badge, #nj46-inventory tr[data-stock-tone=low] td:nth-child(4) .nj46-badge, tr[data-payment-status="pending"] .nj31-status-pill) {
      background: #1e293b !important;
      border-color: #1a73e8 !important;
      color: #fcd34d !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.nj46-badge[data-status-tone="unpaid"], .nj46-badge[data-status-tone="reversed"], tr[data-record-status=unpaid] .nj46-badge, tr[data-record-status=reversed] .nj46-badge, #nj46-maintenance tr[data-record-status=cancelled] .nj46-badge, #nj46-inventory tr[data-stock-tone=zero] td:nth-child(4) .nj46-badge, tr:is([data-payment-status="rejected"], [data-payment-status="void"], [data-payment-status="reversed"]) .nj31-status-pill) {
      background: #3b1c1c !important;
      border-color: #6e2c2c !important;
      color: #fca5a5 !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(#nj46-maintenance tr[data-record-status=received] .nj46-badge, #nj46-maintenance tr[data-record-status=examining] .nj46-badge) {
      background: #1b2c44 !important;
      border-color: #2c4a73 !important;
      color: #93c5fd !important
   }

   /* Payments & Checks Panel (#tab-checks) */
   html[data-nj-theme="dark"] body.ui16 .nj31-panel>div:not(.nj31-toolbar):not(.nj20-table-scroll)>p,
   html[data-nj-theme="dark"] body.ui16 .nj34-summary,
   html[data-nj-theme="dark"] body.ui16 .nj39-distribution {
      background: #1e293b !important;
      border-color: #334155 !important;
      color: #e8f0fe !important
   }

   html[data-nj-theme="dark"] body.ui16 .nj31-panel details.v2-actions summary,
   html[data-nj-theme="dark"] body.ui16 .nj31-panel .nj31-toolbar button:not(.nj20-add) {
      background: #263348 !important;
      border-color: #334155 !important;
      color: #e8f0fe !important
   }

   html[data-nj-theme="dark"] body.ui16 tr[data-payment-direction="in"] td:first-child strong {
      color: #86efac !important
   }

   html[data-nj-theme="dark"] body.ui16 tr[data-payment-direction="out"] td:first-child strong {
      color: #fcd34d !important
   }

   /* Operational Record Dialogs, Sales/Return Modals & Workflow Helpers */
   html[data-nj-theme="dark"] body.ui16 :is(.nj48-sale-line, .nj51-line, .nj48-results button, .nj22-save-facts>div, .nj23-follow dl>div, #flowActions button, .nj-simple-record>div, .nj-review-grid>div, .nj-search-row) {
      background: #1e293b !important;
      border-color: #334155 !important;
      color: #e8f0fe !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.nj48-sale-total, .nj50-preview:not(:empty), .nj22-line-editor, .nj23-follow, .nj-bill-summary, .nj-maint-overview, .nj-filter-fold, .nj-detail-links, .nj-report-toolbar, .nj-shortcut-editor, .nj-review-note, .nj-transport, .nj-col-picker>div) {
      background: #1e293b !important;
      border-color: #334155 !important;
      color: #e8f0fe !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.nj22-line-editor>strong, .nj23-follow h3, .nj-review-title, .nj52-summary, .nj52-returns summary, .nj53-credit summary, .nj-filter-fold>summary, .nj-report-toolbar strong, .nj-search-group h4) {
      color: #e8f0fe !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.nj23-follow dt, .nj-bill-summary small, .nj-maint-overview small, .nj-simple-record small, .nj-review-grid small, .nj-follow-row small, .nj-pager, .nj-pager p, .nj-search-row small, .nj-search-notice, .nj-report-toolbar p, .nj-shortcut-editor p, .nj-breadcrumb) {
      color: #cbd5e1 !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.nj47-table, .nj47-table th) {
      border-color: #334155 !important
   }

   html[data-nj-theme="dark"] body.ui16 .nj47-tl-dot {
      background: #1e293b !important;
      border-color: #334155 !important;
      color: #e2e8f0 !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.nj47-record button:not(.nj20-add):not(.nj23-primary):not(:disabled), .nj52-actions button:not(.nj23-primary), .nj22-line-actions button, .nj22-editor-actions button:not(:first-child), .nj23-follow>button:not(.nj23-primary), .nj-maint-tabs button:not([aria-selected=true]), .nj-breadcrumb button, .nj-daily-head button, .nj-pager button, .nj-follow-actions button, .nj-context-return, .nj-search-state) {
      background: #263348 !important;
      border-color: #334155 !important;
      color: #e8f0fe !important
   }

   html[data-nj-theme="dark"] body.ui16 .nj-follow-row,
   html[data-nj-theme="dark"] body.ui16 .nj53-credit-row,
   html[data-nj-theme="dark"] body.ui16 .nj47-section h3,
   html[data-nj-theme="dark"] body.ui16 .nj-search-group h4,
   html[data-nj-theme="dark"] body.ui16 .nj-search-footer {
      border-color: #334155 !important
   }

   html[data-nj-theme="dark"] body.ui16 .ui19 #njReview>div {
      background: #1e293b !important;
      border-color: #334155 !important;
      color: #f1f5f9 !important
   }

   /* Expert Mode Dark Support */
   html[data-nj-theme="dark"][data-workspace-mode="expert"] body.ui20 .nj46-table thead tr>:first-child {
      background: #1e293b !important
   }

   html[data-nj-theme="dark"][data-workspace-mode="expert"] body.ui20 .nj46-table tbody tr>:first-child {
      background: #1e293b !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.nj59-rail, .nj61-sheet, .nj61-sheet>header, .nj61-sheet>footer, .nj65-accounts>section article, .nj55-inspector, .nj55-taskbox, [data-workspace-mode=expert] #uxSearch .nj60-commands) {
      background: #1e293b !important;
      border-color: #334155 !important;
      color: #e8f0fe !important
   }

   html[data-nj-theme="dark"] body.ui16 :is(.nj65-accounts>section h3, .nj61-sheet h2) {
      color: #f1f5f9 !important
   }
}

/* ==========================================================================
   Al-Najah v3 Data-Faithful Entry Form Components & Responsive Workbenches
   ========================================================================== */
.nj-v3-seg-field {
   position: relative;
   min-width: 0
}

.nj-v3-sr-select {
   position: absolute !important;
   inset: 0;
   width: 100% !important;
   height: 100% !important;
   min-height: 0 !important;
   opacity: 0 !important;
   pointer-events: none !important;
   z-index: -1 !important;
   margin: 0 !important;
   padding: 0 !important
}

.nj-v3-seg-group {
   display: flex;
   flex-wrap: wrap;
   gap: 6px;
   padding: 4px;
   border-radius: 12px;
   background: #eef2f6;
   border: 1px solid #cbd5e1
}

.nj-v3-sr-select[aria-invalid="true"]+.nj-v3-seg-group {
   border-color: #b54149 !important;
   box-shadow: 0 0 0 2px rgba(181, 65, 73, .16)
}

.nj-v3-seg-btn {
   flex: 1 1 auto;
   min-height: 38px !important;
   padding: 6px 11px !important;
   border-radius: 9px !important;
   border: 1px solid transparent !important;
   background: transparent !important;
   color: #334155 !important;
   font-size: 12.5px !important;
   font-weight: 700 !important;
   line-height: 1.45 !important;
   cursor: pointer;
   white-space: normal;
   text-align: center;
   transition: background .14s, color .14s, border-color .14s, box-shadow .14s
}

.nj-v3-seg-btn:hover:not(:disabled) {
   background: #e8f0fe !important;
   color: #1e293b !important
}

.nj-v3-seg-btn[aria-pressed="true"] {
   background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%) !important;
   color: #f8fafc !important;
   border-color: #1557b0 !important;
   box-shadow: 0 3px 10px rgba(15, 23, 42, .22)
}

.nj-v3-seg-btn:disabled {
   opacity: .42;
   cursor: not-allowed
}

.nj-v3-seg-btn[hidden] {
   display: none !important
}

/* Targeted field spans so segmented controls never cramp */
.v2-form-grid>div:has(#maintDeviceCategory),
#formCash .grid>div:has(#cashCurrency),
#formWarranty .grid>div:has(#warMonths),
#formWarranty .grid>div:has(#warNotes),
#formParty .grid>div:has(#partyType) {
   grid-column: 1/-1
}

#formCash .grid:has(#cashCurrency) {
   grid-template-columns: repeat(2, minmax(0, 1fr))
}

.nj-v3-seg-field:has([name="kind"]),
.nj-v3-seg-field:has([name="direction"]) {
   flex: 1 1 220px
}

/* Maintenance intake fold for post-inspection parts/labor & cost fields */
.nj-v3-maint-cost-fold {
   margin-top: 12px;
   border: 1px dashed #cbd5e1;
   border-radius: 12px;
   background: #f5f7fa;
   padding: 10px 14px
}

.nj-v3-maint-cost-fold>summary {
   cursor: pointer;
   font-size: 12.5px;
   font-weight: 700;
   color: #334155;
   list-style: none;
   display: flex;
   align-items: center;
   gap: 6px
}

.nj-v3-maint-cost-fold>summary::-webkit-details-marker {
   display: none
}

.nj-v3-maint-cost-fold>summary::before {
   content: "▸";
   font-size: 12px;
   transition: transform .15s
}

.nj-v3-maint-cost-fold[open]>summary::before {
   transform: rotate(-90deg)
}

.nj-v3-fold-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
   gap: 12px;
   padding-top: 12px
}

/* Quick stage chips inside #nj47Record transition */
.nj-v3-stage-chips {
   display: flex;
   flex-wrap: wrap;
   gap: 6px;
   margin: 2px 0 4px
}

.nj-v3-stage-chips .nj47-stage-pill {
   min-height: 36px !important;
   padding: 5px 12px !important;
   font-size: 12.5px !important
}

/* Payment form quick-allocate & semantic direction accent */
.nj31-form[data-direction="in"] {
   border-top: 4px solid #15803d;
   border-radius: 14px
}

.nj31-form[data-direction="out"] {
   border-top: 4px solid #b45309;
   border-radius: 14px
}

.nj31-equiv-bar {
   flex: 1 0 100% !important;
   font-weight: 800;
   margin: 4px 0 !important;
   padding: 11px 14px !important;
   border-radius: 12px !important
}

.nj31-form[data-direction="in"] .nj31-equiv-bar {
   background: #f0fdf4 !important;
   border-color: #bbf7d0 !important;
   color: #14532d !important
}

.nj31-form[data-direction="out"] .nj31-equiv-bar {
   background: #fffbeb !important;
   border-color: #fde68a !important;
   color: #1a73e8 !important
}

.nj-v3-quick-alloc {
   justify-self: start;
   min-height: 30px !important;
   padding: 3px 10px !important;
   border-radius: 999px !important;
   border: 1px solid #cbd5e1 !important;
   background: #f5f7fa !important;
   color: #334155 !important;
   font-size: 11.5px !important;
   font-weight: 700 !important;
   margin-top: 2px;
   cursor: pointer
}

.nj-v3-quick-alloc:hover:not(:disabled) {
   background: #e2e8f0 !important
}

/* Cash Voucher semantic tones */
#formCash[data-cash-tone="in"] .grid:has(#cashAmount) {
   background: #f0fdf4 !important;
   border-color: #bbf7d0 !important
}

#formCash[data-cash-tone="out"] .grid:has(#cashAmount) {
   background: #ffffff !important;
   border-color: #e2e8f0 !important
}

#formCash[data-cash-tone="in"] #cashAmount {
   border-color: #16a34a !important;
   color: #14532d !important
}

#formCash[data-cash-tone="out"] #cashAmount {
   border-color: #3b82f6 !important;
   color: #7c2d12 !important
}

/* Warranty live expiry preview banner */
.nj-v3-war-expiry {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: space-between;
   gap: 8px;
   padding: 11px 14px;
   border-radius: 12px;
   border: 1px solid #bbf7d0;
   background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
   color: #14532d;
   font-size: 12.5px
}

.nj-v3-war-expiry[data-state="empty"] {
   background: #f5f7fa;
   border-color: #e2e8f0;
   color: #334155
}

.nj-v3-war-expiry strong {
   font-size: 13.5px;
   font-weight: 800;
   direction: ltr;
   unicode-bidi: isolate
}

/* Party opening balance dimming & Inventory margin badge */
.nj-v3-dim-input {
   opacity: .55;
   transition: opacity .15s
}

.nj-v3-inv-margin {
   padding: 9px 13px;
   border-radius: 11px;
   font-size: 12px;
   font-weight: 800;
   border: 1px solid #d9e4dd;
   background: #f0fdf4;
   color: #166534
}

.nj-v3-inv-margin[data-tone="neg"] {
   background: #fef2f2;
   border-color: #fecaca;
   color: #b91c1c
}

.nj-v3-inv-margin[data-tone="flat"] {
   background: #f5f7fa;
   border-color: #e2e8f0;
   color: #334155
}

/* Sales / Purchase modern dialog controls (#nj48Sale / #nj49Purchase) */
.nj48-fast-toggle {
   display: flex !important;
   flex-direction: row !important;
   align-items: center !important;
   gap: 8px !important;
   padding: 9px 12px;
   border-radius: 11px;
   border: 1px solid #e2e8f0;
   background: #f5f7fa;
   font-size: 12.5px;
   font-weight: 700;
   color: #334155;
   margin: 0 0 10px !important;
   cursor: pointer
}

.nj48-fast-toggle input {
   width: 18px !important;
   min-height: 18px !important;
   height: 18px !important;
   margin: 0 !important;
   accent-color: #1a73e8
}

.nj48-line-subtotal {
   margin: 0;
   padding: 8px 12px;
   border-radius: 10px;
   background: #f5f7fa;
   border: 1px solid #e2e8f0;
   font-size: 13px;
   font-weight: 800;
   color: #1e293b;
   font-variant-numeric: tabular-nums;
   text-align: center
}

.nj48-quick-pay {
   display: flex;
   flex-wrap: wrap;
   gap: 6px;
   margin-top: 4px
}

.nj-v3-quick-btn {
   flex: 1 1 auto;
   min-height: 36px !important;
   padding: 5px 10px !important;
   border-radius: 9px !important;
   font-size: 12px !important;
   font-weight: 800 !important;
   background: #e8f0fe !important;
   border: 1px solid #cbd5e1 !important;
   color: #1e293b !important
}

.nj-v3-quick-btn:hover:not(:disabled) {
   background: #e2e8f0 !important
}

/* Compact row grid inside .nj48-sale-line */
.nj48-sale-line {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
   gap: 8px 10px;
   align-items: end;
   padding: 12px 14px !important
}

.nj48-sale-line>h3,
.nj48-sale-line>p:not(.nj48-line-subtotal),
.nj48-sale-line>.nj47-status,
.nj48-sale-line>label:has(textarea) {
   grid-column: 1/-1;
   margin: 0 !important
}

.nj48-sale-line>h3 {
   padding-bottom: 6px;
   border-bottom: 1px solid #e8f0fe;
   font-size: 14.5px
}

.nj48-sale-line>label {
   margin: 0 !important
}

.nj48-sale-line>button {
   min-height: 40px !important;
   padding: 6px 12px !important;
   font-size: 12.5px !important;
   margin: 0 !important
}

/* Desktop 2-col Maintenance All-View & 3-col Workbench for Sale/Purchase/Return in Standard Mode */
@media(min-width:901px) {
   .ui16 #formMaint:has(#njMaintTab3[aria-selected="true"]) .nj-maint-layout {
      display: grid !important;
      grid-template-columns: minmax(0, 1.2fr) minmax(290px, 1fr);
      gap: 16px;
      align-items: start
   }

   .ui16 #formMaint:has(#njMaintTab3[aria-selected="true"]) .v2-maint-left {
      position: sticky;
      top: 48px
   }
}

@media(min-width:1024px) {
   body.ui16 .nj55-invoice .nj47-heading {
      flex: none
   }

   body.ui16 .nj55-invoice .nj47-heading h2 {
      margin-inline-end: auto;
      min-width: 0
   }

   body.ui16 .nj55-invoice:has(.nj55-invoice-items) {
      width: min(1240px, calc(100vw - 48px));
      max-width: none
   }

   body.ui16 .nj55-invoice:has(.nj55-invoice-identity):not(:has(.nj55-invoice-items)) {
      width: 580px
   }

   body.ui16 .nj55-invoice-body {
      display: grid;
      gap: 14px
   }

   body.ui16 .nj55-invoice-body:has(.nj55-invoice-items) {
      grid-template-columns: minmax(210px, 240px) minmax(0, 1fr) minmax(240px, 290px);
      align-items: start
   }

   body.ui16 .nj55-invoice-panel {
      display: block;
      min-width: 0;
      padding: 14px 16px;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
      overflow-wrap: anywhere
   }

   body.ui16 .nj55-invoice-title {
      display: block;
      font-size: 15px;
      font-weight: 800;
      color: #1557b0;
      margin: 0 0 10px;
      padding-block-end: 8px;
      border-block-end: 1px solid #e8f0fe
   }

   body.ui16 .nj55-invoice-payment>button.nj20-add {
      width: 100%;
      font-weight: 800
   }

   body.ui16 #nj50Return:has(.nj55-return-workbench) {
      width: min(1240px, calc(100vw - 48px));
      max-width: none
   }

   body.ui16 .nj55-return-workbench {
      display: grid;
      grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) minmax(230px, 275px);
      grid-template-rows: auto auto auto;
      gap: 12px 14px;
      align-items: start
   }

   body.ui16 .nj55-return-workbench>.nj55-return-source {
      grid-area: 1/1/4/2;
      margin: 0;
      overflow-wrap: anywhere
   }

   body.ui16 .nj55-return-workbench>:is(.nj51-return-items, .nj48-sale-grid, label) {
      grid-column: 2;
      min-width: 0;
      margin: 0
   }

   body.ui16 .nj55-return-workbench>.nj55-return-impact {
      grid-area: 1/3/4/4;
      position: sticky;
      top: 0;
      margin: 0;
      padding: 14px 16px;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-block-start: 3px solid #1a73e8;
      border-radius: 16px;
      min-width: 0;
      overflow-wrap: anywhere
   }

   body.ui16 .nj55-return-impact>:is(.nj55-return-review, .nj50-save) {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      margin-top: 10px;
      font-weight: 800
   }

   body.ui16 .nj55-return-caption {
      display: block;
      margin: 0 0 8px;
      font-size: 15px;
      font-weight: 800;
      color: #1557b0
   }

   body.ui16 .nj55-return-impact .nj50-preview:empty::after {
      content: "اختر البنود، ثم اعرض أثر المرتجع على المخزون والذمة والصندوق.";
      display: block;
      margin-block-start: 6px;
      color: #64748b;
      font-size: 12.5px
   }
}

@media(min-width:1024px) and (min-height:640px) {
   body.ui16 .nj55-invoice-body:has(.nj55-invoice-items)>:is(.nj55-invoice-identity, .nj55-invoice-payment) {
      position: sticky;
      top: 0
   }
}

/* Dark Theme coverage for v3 Entry Components */
html[data-nj-theme="dark"] .nj-v3-seg-group {
   background: #1e293b !important;
   border-color: #334155 !important
}

html[data-nj-theme="dark"] .nj-v3-seg-btn {
   color: #cbd5e1 !important
}

html[data-nj-theme="dark"] .nj-v3-seg-btn:hover:not(:disabled) {
   background: #1e293b !important;
   color: #f5f7fa !important
}

html[data-nj-theme="dark"] .nj-v3-seg-btn[aria-pressed="true"] {
   background: linear-gradient(135deg, #1a73e8 0%, #1a73e8 100%) !important;
   color: #0f172a !important;
   border-color: #3b82f6 !important
}

html[data-nj-theme="dark"] .nj-v3-maint-cost-fold {
   background: #1e293b !important;
   border-color: #334155 !important
}

html[data-nj-theme="dark"] .nj-v3-maint-cost-fold>summary {
   color: #cbd5e1 !important
}

html[data-nj-theme="dark"] .nj31-form[data-direction="in"] .nj31-equiv-bar {
   background: #152e20 !important;
   border-color: #26593e !important;
   color: #86efac !important
}

html[data-nj-theme="dark"] .nj31-form[data-direction="out"] .nj31-equiv-bar {
   background: #1e293b !important;
   border-color: #1a73e8 !important;
   color: #fcd34d !important
}

html[data-nj-theme="dark"] .nj-v3-quick-alloc,
html[data-nj-theme="dark"] .nj-v3-quick-btn {
   background: #1e293b !important;
   border-color: #334155 !important;
   color: #e2e8f0 !important
}

html[data-nj-theme="dark"] .nj-v3-quick-alloc:hover:not(:disabled),
html[data-nj-theme="dark"] .nj-v3-quick-btn:hover:not(:disabled) {
   background: #1e293b !important
}

html[data-nj-theme="dark"] #formCash[data-cash-tone="in"] .grid:has(#cashAmount) {
   background: #152e20 !important;
   border-color: #26593e !important
}

html[data-nj-theme="dark"] #formCash[data-cash-tone="out"] .grid:has(#cashAmount) {
   background: #1e293b !important;
   border-color: #1a73e8 !important
}

html[data-nj-theme="dark"] #formCash[data-cash-tone="in"] #cashAmount {
   border-color: #34d399 !important;
   color: #86efac !important
}

html[data-nj-theme="dark"] #formCash[data-cash-tone="out"] #cashAmount {
   border-color: #3b82f6 !important;
   color: #cbd5e1 !important
}

html[data-nj-theme="dark"] .nj-v3-war-expiry {
   background: #152e20 !important;
   border-color: #26593e !important;
   color: #86efac !important
}

html[data-nj-theme="dark"] .nj-v3-war-expiry[data-state="empty"] {
   background: #1e293b !important;
   border-color: #334155 !important;
   color: #94a3b8 !important
}

html[data-nj-theme="dark"] .nj-v3-inv-margin {
   background: #152e20 !important;
   border-color: #26593e !important;
   color: #86efac !important
}

html[data-nj-theme="dark"] .nj-v3-inv-margin[data-tone="neg"] {
   background: #3b1c1c !important;
   border-color: #6e2c2c !important;
   color: #fca5a5 !important
}

html[data-nj-theme="dark"] .nj-v3-inv-margin[data-tone="flat"] {
   background: #1e293b !important;
   border-color: #334155 !important;
   color: #94a3b8 !important
}

html[data-nj-theme="dark"] .nj48-fast-toggle,
html[data-nj-theme="dark"] .nj48-line-subtotal {
   background: #1e293b !important;
   border-color: #334155 !important;
   color: #e8f0fe !important
}

html[data-nj-theme="dark"] .nj48-sale-line>h3 {
   border-color: #334155 !important
}

html[data-nj-theme="dark"] body.ui16 .nj55-invoice-panel,
html[data-nj-theme="dark"] body.ui16 .nj55-return-workbench>.nj55-return-impact {
   background: #1e293b !important;
   border-color: #334155 !important;
   color: #e8f0fe !important
}

html[data-nj-theme="dark"] body.ui16 .nj55-invoice-title,
html[data-nj-theme="dark"] body.ui16 .nj55-return-caption {
   color: #cbd5e1 !important;
   border-color: #334155 !important
}

html[data-nj-theme="dark"] body.ui16 .nj55-return-impact .nj50-preview:empty::after {
   color: #94a3b8 !important
}

/* ==========================================================================
   Al-Najah v3 Dark SVG Chart Contrast, Tablet Density & Mobile Report Cards
   ========================================================================== */
html[data-nj-theme="dark"] .nj-v3-mc-svg text.nj-v3-chart-label {
   fill: #cbd5e1 !important
}

@media screen and (min-width:651px) and (max-width:1023px) {
   body.ui16 .tab-panel table :is(th, td) {
      padding: 8px 10px !important;
      font-size: 12.5px !important
   }
}

@media screen and (min-width:651px) and (max-width:900px) {
   body.ui16 :is(.nj47-inv-kpis, .nj46-fin-bar) {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important
   }
}

@media screen and (max-width:650px) {
   body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) {
      display: block !important;
      width: 100% !important;
      min-width: 0 !important
   }

   body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) thead {
      position: absolute !important;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%)
   }

   body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) :is(tbody, tfoot) {
      display: block !important;
      width: 100% !important;
      background: transparent !important;
      border: 0 !important
   }

   body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) tbody tr:not(.nj-v3-span-row),
   body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) tfoot tr {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px 12px;
      padding: 12px 14px !important;
      margin-bottom: 10px;
      border: 1px solid var(--nj-line, #e2e8f0) !important;
      border-radius: 14px;
      background: var(--nj-surface, #ffffff) !important;
      box-shadow: 0 4px 14px rgba(15, 23, 42, .04)
   }

   body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) tfoot tr {
      margin-top: 8px;
      margin-bottom: 0;
      background: #f5f7fa !important;
      border-color: #cbd5e1 !important
   }

   body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) :is(tbody tr:not(.nj-v3-span-row), tfoot tr)>td {
      display: block !important;
      width: auto !important;
      min-width: 0 !important;
      padding: 0 !important;
      border: 0 !important;
      text-align: right !important;
      white-space: normal !important;
      overflow-wrap: anywhere;
      font-size: 13px !important
   }

   body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) td[data-nj20-label]::before {
      content: attr(data-nj20-label);
      display: block;
      font-size: 11px;
      font-weight: 800;
      color: var(--nj-muted, #64748b);
      margin-bottom: 3px
   }

   body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) tbody tr:not(.nj-v3-span-row)>td:first-child,
   body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) tfoot td.nj-v3-foot-title {
      grid-column: 1/-1;
      border-bottom: 1px solid var(--nj-line, #e2e8f0) !important;
      padding-bottom: 6px !important;
      margin-bottom: 2px;
      font-weight: 800
   }

   body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) tfoot td.nj-v3-foot-empty {
      display: none !important
   }

   body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) tbody tr.nj-v3-span-row {
      display: block !important;
      margin-bottom: 10px;
      padding: 10px 12px !important;
      border: 1px dashed var(--nj-line, #e2e8f0) !important;
      border-radius: 12px;
      background: var(--nj-surface, #ffffff) !important
   }

   body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) tbody tr.nj-v3-span-row>td {
      display: block !important;
      width: 100% !important;
      padding: 0 !important;
      border: 0 !important;
      white-space: normal !important
   }

   body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) tbody tr.nj-v3-span-row>td::before {
      display: none !important
   }

   body.ui16 table.nj-v3-report-table.nj-v3-report-table--kv td {
      padding: 9px 8px !important;
      font-size: 12.5px !important;
      white-space: normal !important;
      overflow-wrap: anywhere
   }

   body.ui16 table.nj-v3-report-table.nj-v3-report-table--kv td:last-child {
      font-variant-numeric: tabular-nums;
      white-space: nowrap !important;
      text-align: end !important;
      font-weight: 800
   }

   html[data-nj-theme="dark"] body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) :is(tbody, tfoot) {
      background: transparent !important;
      border: 0 !important
   }

   html[data-nj-theme="dark"] body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) tbody tr:not(.nj-v3-span-row),
   html[data-nj-theme="dark"] body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) tbody tr.nj-v3-span-row {
      background: #1e293b !important;
      border-color: #334155 !important;
      box-shadow: 0 6px 18px rgba(0, 0, 0, .28) !important
   }

   html[data-nj-theme="dark"] body.ui16 table.nj-v3-report-table:not(.nj-v3-report-table--kv) tfoot tr {
      background: #1e293b !important;
      border-color: #334155 !important;
      box-shadow: 0 6px 18px rgba(0, 0, 0, .28) !important
   }
}

/* ==========================================================================
   Al-Najah v3 Screen Spacing, Action Grouping & Hybrid Tab Consistency
   ========================================================================== */
.ui20 .nj46-list.nj20-list .nj20-list-header {
   padding: 0 0 18px !important
}

.ui20 .nj46-list.nj20-list .nj46-scope {
   padding: 8px 0 0 !important
}

body.ui16 .nj65-accounts .nj20-list-header {
   padding: 0 0 14px;
   border-bottom: 1px solid #e8f0fe;
   margin-bottom: 14px
}

html[data-nj-theme="dark"] body.ui16 .nj65-accounts .nj20-list-header {
   border-bottom-color: #334155
}

body.ui16 :is(.nj46-list, .nj65-accounts) .nj55-action {
   min-height: 44px;
   padding: 8px 16px;
   border-radius: 12px;
   border: 1px solid #cbd5e1;
   background: #f8fafc;
   color: #1a73e8;
   font-weight: 700;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 6px;
   cursor: pointer
}

body.ui16 :is(.nj46-list, .nj65-accounts) .nj55-action:hover:not(:disabled) {
   background: #e8f0fe;
   border-color: #93c5fd
}

html[data-nj-theme="dark"] body.ui16 :is(.nj46-list, .nj65-accounts) .nj55-action:hover:not(:disabled) {
   background: #1e293b !important;
   border-color: #334155 !important
}

body.ui16 :is(#tab-debts, #tab-technicians, #tab-monthly, #tab-financials, #tab-settings)>.bg-white {
   padding: 24px !important;
   border-radius: 22px !important
}

body.ui16 #tab-monthly label:has(#reportYearInput) {
   display: inline-flex !important;
   align-items: center !important;
   gap: 8px !important;
   margin: 0 !important;
   white-space: nowrap
}

body.ui16 #tab-monthly #reportYearInput {
   width: 96px !important;
   min-height: 44px !important;
   border-radius: 12px !important;
   margin: 0 !important
}

body.ui16 :is(#tab-monthly #reportMonthSelect, #tab-monthly #btnRefreshMonthlyReport, #tab-monthly #btnExportMonthlyExcel, #tab-debts #statementPartySelect, #tab-technicians #techMonthSelect) {
   min-height: 44px !important;
   border-radius: 12px !important
}

body.ui16 :is(#tab-debts, #tab-financials, #tab-settings) :is(#btnPrintStatement, #btnWhatsappStatement, #btnNewDebtTab, .nj-v3-primary-cta, #btnPrintFinancials, #btnSaveSettings, button[type="submit"], #phpSettingsReload, #btnAddTech, #btnAddInvCat, #btnCloudSyncPush, #btnCloudSyncPull, #btnToggleAppsScriptGuide, #btnDownloadJsonBackup, #btnTriggerJsonRestore, #btnExportExcelSettings, #btnResetDemoData, #btnClearAllDemoData, #btnConfirmClearAllDemoData, #btnLockScreenNow) {
   min-height: 44px !important;
   border-radius: 12px !important;
   display: inline-flex !important;
   align-items: center !important;
   justify-content: center !important;
   gap: 6px !important
}

body.ui16 :is(#btnNewDebtTab, .nj-v3-primary-cta, #tab-settings button[type="submit"], #tab-settings #btnSaveSettings) {
   background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%) !important;
   border: 1px solid #1557b0 !important;
   color: #fff !important;
   box-shadow: 0 6px 16px rgba(15, 23, 42, .2) !important
}

body.ui16 :is(#btnNewDebtTab, .nj-v3-primary-cta, #tab-settings button[type="submit"], #tab-settings #btnSaveSettings):hover:not(:disabled) {
   background: linear-gradient(135deg, #334155 0%, #1e293b 100%) !important
}

body.ui16 .nj55-return-impact>:is(.nj55-return-review, .nj50-save) {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 100%;
   margin-top: 10px;
   font-weight: 800
}

@media screen and (max-width:650px) {
   .ui20 .nj46-list.nj20-list .nj20-list-header {
      padding: 0 0 14px !important
   }

   body.ui16 :is(#tab-debts, #tab-technicians, #tab-monthly, #tab-financials, #tab-settings)>.bg-white {
      padding: 16px !important;
      border-radius: 18px !important
   }
}
