/* ZIKBOOKS V759 - DESKTOP MODULE READABILITY FINAL
   Desktop screens only. Mobile, print, PDF/share/thermal untouched. */
@media screen and (min-width:1025px){
  html.zv-v759-desktop-pro:root{
    --zv759-blue:#2563eb;
    --zv759-blue2:#315fd4;
    --zv759-blue-hover:#1d4ed8;
    --zv759-text:#1f2937;
    --zv759-muted:#4b5563;
    --zv759-border:#d9e2ee;
    --zv759-bg:#f6f9fd;
  }

  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page),
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) *:not(.preview-content *):not(.zv-print-template *):not(.invoice-paper *):not(.thermal-preview *){
    text-shadow:none!important;
    letter-spacing:0!important;
    -webkit-font-smoothing:antialiased!important;
    text-rendering:optimizeLegibility!important;
  }

  /* Make every inner module readable: invoice, purchase, return, quotation, expense, ledger, salary, reports */
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(
    body,div,span,p,a,li,td,th,input,select,textarea,button,
    label,.label,.form-label,.field-label,.mobile-label,.control-label,
    .section-title,.card-title,.items-title,.invoice-items-title,.page-title,
    .select2-selection__rendered,.select2-results__option,.choices__item,
    .btn,.button,.action-btn,.primary-btn,.scanner-btn,.scan-btn
  ){
    font-family:Inter,Roboto,"Segoe UI",Arial,sans-serif!important;
    color:var(--zv759-text)!important;
    font-weight:400!important;
  }

  /* Labels/headings should be clear but not thick */
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(
    h1,h2,h3,h4,h5,h6,b,strong,
    label,.label,.form-label,.field-label,.mobile-label,.control-label,
    .section-title,.card-title,.items-title,.invoice-items-title,.page-title,
    .page-head h2,.page-head p,.card h2,.card h3,.form-section h3,
    th,.table th,.module-name,.menu-title,.nav-title
  ){
    font-weight:500!important;
    color:var(--zv759-text)!important;
    letter-spacing:0!important;
  }

  /* Specific heavy fields from Create Invoice / Purchase / Quotation */
  html.zv-v759-desktop-pro body.invoice-page :where(
    label,.page-head h2,.page-head p,.section-title,.card-title,
    .select2-selection__rendered,.select2-selection__placeholder,
    .select2-results__option,.select2-results__option span,
    .zv-party-mobile-line,[class*=mobile],[class*=phone]
  ){
    font-weight:500!important;
    color:var(--zv759-text)!important;
  }
  html.zv-v759-desktop-pro body.invoice-page :where(input,select,textarea,.select2-selection__rendered){font-weight:400!important;}
  html.zv-v759-desktop-pro body.invoice-page :where(.select2-selection__placeholder,input::placeholder,textarea::placeholder){font-weight:400!important;color:#6b7280!important;}

  /* Buttons: same position/size, but softer text and professional blue */
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(
    button,.btn,a.btn,input[type="button"],input[type="submit"],
    .action-btn,.primary-btn,.scanner-btn,.scan-btn,.zv-btn,.add-btn
  ){
    font-weight:500!important;
    text-transform:none!important;
    letter-spacing:0!important;
    line-height:1.2!important;
    box-shadow:0 3px 8px rgba(37,99,235,.14)!important;
  }
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(
    .btn-primary,.primary-btn,.scanner-btn,.scan-btn,.action-btn,
    button.btn-primary,.zv-primary,.zv-btn-primary
  ){
    background:var(--zv759-blue)!important;
    border-color:var(--zv759-blue-hover)!important;
    color:#fff!important;
  }
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(.btn-primary,.primary-btn,.scanner-btn,.scan-btn,.action-btn,button.btn-primary) *{color:#fff!important;font-weight:500!important;}

  /* Top dashboard/header: readable, not washed out */
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(.topbar,.navbar,.desktop-topbar,.home-topbar,.zv-topbar,header){
    color:var(--zv759-text)!important;
  }
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(.topbar *,.navbar *,.desktop-topbar *,.home-topbar *,.zv-topbar *,header *){
    font-weight:500!important;
    color:var(--zv759-text)!important;
  }

  /* Module blue banners remain blue but softer and readable */
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(
    .invoice-header,.quotation-header,.purchase-header,.sales-return-header,
    .page-banner,.module-banner,.hero-bar,.zv-hero,.page-head
  ){
    background:linear-gradient(90deg,#1d5fd1 0%,#2f6fe4 78%,#6d5ee7 100%)!important;
  }
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(.page-head h2,.page-head p,.invoice-header *,.quotation-header *,.purchase-header *,.sales-return-header *,.page-banner *,.module-banner *,.hero-bar *,.zv-hero *){
    color:#fff!important;
    font-weight:500!important;
  }
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) .made-india-badge{color:#111827!important;font-weight:500!important;background:#fff7cc!important;}

  /* Cards/inputs border read clean on desktop */
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(.card,.box,.panel,.section,.form-section,.container-card,.invoice-top-compact,.form-body){
    border-color:var(--zv759-border)!important;
    box-shadow:0 8px 18px rgba(15,23,42,.05)!important;
  }
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(input,select,textarea,.select2-selection,.choices__inner){
    border-color:#cfd9e6!important;
    background:#fff!important;
    color:var(--zv759-text)!important;
  }

  /* Keep font sizes sane on desktop without moving layout */
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(label,.label,.form-label,.field-label,.mobile-label){font-size:13px!important;}
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(input,select,textarea,.select2-selection__rendered){font-size:13px!important;}
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(button,.btn,a.btn,.action-btn,.primary-btn,.scanner-btn,.scan-btn){font-size:13px!important;}
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(.page-head h2,h2){font-size:17px!important;}
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(.page-head p,.hint,.muted,small){font-size:12px!important;}

  /* Reduce flicker only on desktop UI */
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) *{
    animation-duration:0s!important;
    animation-delay:0s!important;
    scroll-behavior:auto!important;
  }
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(.card,.box,.panel,button,.btn,a.btn,input,select,textarea){
    transform:none!important;
    will-change:auto!important;
    transition:background-color .08s linear,border-color .08s linear,color .08s linear,box-shadow .08s linear!important;
  }
}
@media print{html.zv-v759-desktop-pro body *{font-weight:inherit;}}


/* ZIKBOOKS V779 FINAL: desktop top company bar + blue background always white text */
@media screen and (min-width:1025px){
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) .zv-beta.no-print{
    display:flex!important; align-items:center!important; justify-content:space-between!important;
    min-height:42px!important; padding:8px 22px!important; box-sizing:border-box!important;
    background:linear-gradient(90deg,#fff7ed,#fffaf2)!important; border-bottom:1px solid #fed7aa!important;
    color:#7c2d12!important; font-family:Inter,Roboto,"Segoe UI",Arial,sans-serif!important;
    font-size:13px!important; font-weight:650!important; text-align:left!important; letter-spacing:0!important;
  }
  html.zv-v759-desktop-pro body .zv-beta.no-print span{
    display:inline-flex!important;align-items:center!important;gap:8px!important;color:#7c2d12!important;font-weight:650!important;
  }
  html.zv-v759-desktop-pro body .zv-beta.no-print span:before{content:'🏢';font-size:15px!important;}
  html.zv-v759-desktop-pro body .zv-beta.no-print a{
    margin-left:14px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
    min-height:28px!important;padding:6px 12px!important;border-radius:999px!important;
    background:#fff!important;border:1px solid #fdba74!important;color:#0f172a!important;text-decoration:none!important;
    font-size:12px!important;font-weight:700!important;box-shadow:0 4px 12px rgba(124,45,18,.06)!important;
  }
  html.zv-v759-desktop-pro body .zv-beta.no-print a:before{content:'🔁 ';}

  /* Any blue/dark colored section must never show black text */
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(
    .btn-primary,.primary-btn,.blue-btn,.zv-primary,.zv-btn-primary,.action-btn,.scanner-btn,.scan-btn,
    .section-toggle,.party-details-toggle,.collapsible-header,.accordion-header,.module-toggle,
    .zv-blue,.bg-blue,.bg-primary,[class*="blue"],[class*="primary"]
  ){
    color:#fff!important;
  }
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(
    .btn-primary,.primary-btn,.blue-btn,.zv-primary,.zv-btn-primary,.action-btn,.scanner-btn,.scan-btn,
    .section-toggle,.party-details-toggle,.collapsible-header,.accordion-header,.module-toggle,
    .zv-blue,.bg-blue,.bg-primary,[class*="blue"],[class*="primary"]
  ) *{
    color:#fff!important;
    fill:#fff!important;
  }
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(
    [style*="background:#2563eb"],[style*="background: #2563eb"],[style*="background:#1d4ed8"],[style*="background: #1d4ed8"],
    [style*="background:#0d47a1"],[style*="background: #0d47a1"],[style*="background-color:#2563eb"],[style*="background-color: #2563eb"],
    [style*="background-color:#1d4ed8"],[style*="background-color: #1d4ed8"]
  ),
  html.zv-v759-desktop-pro body:not(.zv-print-body):not(.share-page):not(.thermal-page) :where(
    [style*="background:#2563eb"],[style*="background: #2563eb"],[style*="background:#1d4ed8"],[style*="background: #1d4ed8"],
    [style*="background:#0d47a1"],[style*="background: #0d47a1"],[style*="background-color:#2563eb"],[style*="background-color: #2563eb"],
    [style*="background-color:#1d4ed8"],[style*="background-color: #1d4ed8"]
  ) *{
    color:#fff!important;
  }
  html.zv-v759-desktop-pro body .party-details-toggle,
  html.zv-v759-desktop-pro body button[onclick*="Party"],
  html.zv-v759-desktop-pro body .party-details-btn{
    color:#fff!important;font-weight:600!important;
  }
}
