/* V46.36 — Unified MBM Prime / Tally-inspired desktop theme.
   Desktop only. Mobile stays on the existing MBM/Vyapar theme. */
@media (min-width:901px){
  :root{
    --mbm-prime:#0a477d;
    --mbm-prime-dark:#06345e;
    --mbm-prime-deep:#052b4f;
    --mbm-prime-soft:#eaf3fb;
    --mbm-prime-softer:#f5f9fd;
    --mbm-prime-line:#c8d9e8;
    --mbm-prime-text:#153a5d;
    --mbm-prime-muted:#617991;
    --mbm-prime-selected:#ffd66a;
    --mbm-prime-selected-border:#e1ad2d;
  }

  body:not(.mbm-entry-assist-on){background:#f3f8fc!important;color:var(--mbm-prime-text)!important}

  /* One visual language from Gateway through registers/reports. */
  .mbm-web-top{
    background:linear-gradient(180deg,#0d4f88,#083965)!important;
    border-bottom:1px solid var(--mbm-prime-deep)!important;
    box-shadow:0 2px 10px rgba(6,45,79,.18)!important;
  }
  .mbm-web-brand{border-right-color:rgba(255,255,255,.22)!important}
  .mbm-web-brand,.mbm-web-company,.mbm-web-company strong,.mbm-web-status{color:#fff!important}
  .mbm-web-company span,.mbm-header-system{color:#dcecff!important}
  .mbm-header-quick,.mbm-web-status .mbm-sync-now,.mbm-web-status button{
    background:#f8fcff!important;color:#0b477d!important;border:1px solid #b9d1e7!important;border-radius:6px!important
  }
  .mbm-header-quick b{color:#0a5a9e!important}
  .mbm-header-quick:hover,.mbm-header-quick:focus,.mbm-web-status .mbm-sync-now:hover{background:#e7f2fc!important}

  .desktop-global-actions,.mbm-gateway-shortcuts{
    background:#eef6fd!important;border:1px solid #c7d9e9!important;box-shadow:0 3px 12px rgba(13,60,96,.08)!important
  }
  .desktop-global-actions:before,.mbm-gateway-shortcuts h3{color:#123a60!important;border-color:#c7d9e9!important}
  .desktop-global-actions .tally-keybtn,.mbm-gateway-shortcuts a{
    background:#fff!important;border-color:#d1e1ef!important;color:#183f63!important
  }
  .desktop-global-actions .tally-keybtn b,.mbm-gateway-shortcuts a kbd{color:#0b64ad!important}
  .desktop-global-actions .tally-keybtn:hover,.desktop-global-actions .tally-keybtn:focus,.mbm-gateway-shortcuts a:hover,.mbm-gateway-shortcuts a:focus{
    background:#e4f1fc!important;border-color:#9fc3e2!important;outline:0!important
  }
  .desktop-global-actions .home-keybtn{background:#e5f2fc!important;border-color:#9fc4e2!important}

  .gateway-section,.gateway-section-page-card,.card,.tablewrap,.tally-report-wrap{
    background:#fff!important;border-color:var(--mbm-prime-line)!important;box-shadow:0 2px 8px rgba(11,61,98,.06)!important
  }
  .gateway-section-head{background:var(--mbm-prime-soft)!important;border-color:#cbdceb!important}
  .gateway-section-head>span,.gateway-section-page-head h1,.desktop-gateway-title h1,.pagehead h1,.pagehead h2,.pagehead h3,.tally-pagehead h2{color:#10365a!important}
  .gateway-section-head kbd,.gateway-action kbd,.gateway-section-row kbd,.gsr-open{border-color:#c8d9e8!important;background:#f8fbfe!important;color:#0b5798!important}
  .gateway-action,.gateway-section-row,.gateway-section-tabs a{border-color:#d6e3ee!important;color:#163b5d!important}
  .gateway-action .ga-icon,.gsr-icon{color:#0d5f9f!important;background:#e7f2fb!important}
  .gateway-action:hover,.gateway-action:focus,.gateway-action.selected,.gateway-section-row:hover,.gateway-section-row:focus,.gateway-section-row.selected,.gateway-section-tabs a.active,.gateway-section-tabs a:hover,.gateway-section-tabs a:focus{
    background:#e7f2fc!important;border-color:#a9c9e4!important;color:#0c3557!important
  }
  .gateway-action.selected,.gateway-section-row.selected{box-shadow:inset 4px 0 #0b5f9f!important}

  .pagehead,.tally-pagehead{background:transparent!important;color:#10365a!important}
  .pagehead .btn,.tally-pagehead .btn{border-color:#bdd2e5!important}
  .tabs,.tally-report-page>.tabs{background:#fff!important;border-color:var(--mbm-prime-line)!important}
  .tabs a,.tally-report-page>.tabs a{color:#244d70!important}
  .tabs a:hover,.tabs a:focus,.tabs a.active,.tally-report-page>.tabs a:hover,.tally-report-page>.tabs a.active{background:#e5f1fb!important;color:#0b426f!important}
  .tally-report-titlebar{background:var(--mbm-prime)!important;border-color:var(--mbm-prime-dark)!important;color:#fff!important}

  /* Generic desktop reports/ledgers/registers. */
  table.table,table.tally-report-table,.ledger-table,.statement-table{
    border-collapse:collapse!important;background:#fff!important;color:#173958!important
  }
  .table th,.tally-report-table th,.ledger-table th,.statement-table th{
    background:#eaf2f9!important;color:#183d60!important;border-color:#c8d8e7!important;font-weight:800!important
  }
  .table td,.tally-report-table td,.ledger-table td,.statement-table td{
    background:#fff!important;border-color:#e0eaf3!important
  }
  .table tr:hover td,.table tr.keyboard-selected td,.tally-report-table tr:hover td,.ledger-table tr:hover td,.statement-table tr:hover td{background:#eaf5ff!important}
  tr.mbm-row-selected td,tr.register-selected td,tr.keyboard-selected td{background:var(--mbm-prime-selected)!important;color:#20364d!important}
  tr.mbm-row-selected a,tr.register-selected a,tr.keyboard-selected a{color:#20364d!important}
  .btn{background:#0b5a98!important}.btn.secondary{background:#fff!important;color:#0b477d!important;border-color:#bdd2e5!important}.btn.good{background:#2f7f4f!important}
  .keys{background:var(--mbm-prime)!important;color:#fff!important;border-color:var(--mbm-prime-dark)!important}.keys span{color:#fff!important}

  /* Sales / Purchase monthly register: dense Prime/Tally-like register. */
  .sales-only{color:#153a5d!important}
  .sales-title h2{color:#102f50!important}
  .sales-card{border-color:#bfd3e5!important;background:#fff!important}
  .sales-back{background:#f7fbff!important;border-color:#c8d9e8!important}
  .sales-table th{background:#eaf2f9!important;color:#163b5e!important;border-color:#c5d8e8!important}
  .sales-table td{background:#fff!important;color:#173958!important;border-color:#e0eaf3!important}
  .sales-table tbody tr[data-register-row]:hover td{background:#eaf5ff!important}
  .sales-table tbody tr.register-selected td{background:var(--mbm-prime-selected)!important;color:#21364c!important;border-bottom-color:#eabf4c!important}
  .sales-table tbody tr.register-selected a{color:#21364c!important}
  .register-selection{background:#eef6fd!important;border-color:#c8d9e8!important;color:#153b5e!important}
  .register-hint{background:#fff8d9!important;border-color:#edd898!important;color:#5f4a18!important}
  .register-top-create,.register-create-key{background:#e5f2fc!important;border-color:#9fc4e2!important;color:#0b4d83!important}

  /* Selected row info bar used by register/ledger pages. */
  .mbm-register-selected-bar,.ledger-selected-bar{
    display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
    margin-top:12px!important;padding:10px 14px!important;border:1px solid #c8d9e8!important;background:#eef6fd!important;
    color:#153b5e!important;font-size:11px!important
  }
  .mbm-register-selected-hint,.ledger-selected-hint{
    padding:8px 12px!important;border:1px solid #edd898!important;background:#fff8d9!important;color:#5f4a18!important;border-radius:5px!important
  }

  /* Voucher entry keeps its special right contextual list but uses the same blue shell. */
  body.mbm-entry-assist-on .mbm-web-top{background:linear-gradient(180deg,#0d4f88,#083965)!important}
  body.mbm-entry-assist-on .desktop-tally-entry-panel,body.mbm-entry-assist-on .tally-entry-side{
    border-color:#bcd2e5!important;background:#f3f8fc!important
  }
}
