.bim-blank-page{margin:0!important;background:#f7f9fc}.bim-blank-content{margin:0;padding:0}.bim-app{display:flex;min-height:100vh;background:#f7f9fc;border:0;border-radius:0;overflow:hidden;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033}.bim-sidebar{width:210px;background:#1f2937;color:#fff;padding:24px 0;flex:none}.bim-brand{font-size:22px;font-weight:700;padding:0 22px 18px}.bim-sidebar nav{display:flex;flex-direction:column}.bim-sidebar a{color:#d9e0e8;text-decoration:none;padding:11px 22px;font-size:14px}.bim-sidebar a:hover,.bim-sidebar a.active{background:#2563eb;color:#fff}.bim-main{flex:1;padding:34px;min-width:0}.bim-page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.bim-page-head h1{font-size:30px;line-height:1.2;margin:0;color:#172033}.bim-page-head a{font-size:14px;text-decoration:none}.bim-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,230px));gap:18px;align-items:stretch}.bim-card{min-height:96px;border-radius:10px;padding:20px 22px;display:flex;align-items:center;justify-content:space-between;text-decoration:none!important;color:#172033!important;font-weight:700;font-size:18px;border:1px solid rgba(0,0,0,.05);box-shadow:0 2px 7px rgba(15,23,42,.04)}.bim-card b{font-size:30px;font-weight:400}.bim-card.c1{background:#eaf4ff}.bim-card.c2{background:#eefce9}.bim-card.c3{background:#fff8df}.bim-card.c4{background:#ffecef}.bim-card.c5{background:#f2efff}.bim-card.c6{background:#e8fbfb}.bim-card.c7{background:#fff0e8}.bim-card.c8{background:#f3eaff}.bim-form{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:20px;margin-bottom:24px}.bim-fields{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:16px}.bim-fields label{font-size:13px;font-weight:600;color:#374151;display:flex;flex-direction:column;gap:7px}.bim-fields input,.bim-fields select,.bim-lines input,.bim-lines select{width:100%;box-sizing:border-box;padding:10px 11px;border:1px solid #cfd6df;border-radius:7px;background:#fff}.bim-btn{border:0;background:#2563eb;color:#fff;border-radius:7px;padding:10px 15px;margin-top:16px;cursor:pointer}.bim-btn.secondary{background:#eef2ff;color:#1e40af}.bim-table-wrap{overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:10px}.bim-table,.bim-lines{width:100%;border-collapse:collapse}.bim-table th,.bim-table td,.bim-lines th,.bim-lines td{padding:11px 12px;border-bottom:1px solid #edf0f4;text-align:left;font-size:13px;white-space:nowrap}.bim-table th,.bim-lines th{background:#f8fafc;font-weight:700}.bim-delete{color:#dc2626;text-decoration:none}.bim-line-wrap{margin-top:18px}.bim-lines{border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}.bim-remove-row{border:0;background:transparent;color:#dc2626;font-size:20px;cursor:pointer}.bim-notice{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;padding:10px 14px;border-radius:8px;margin-bottom:18px}.bim-login{padding:20px;border:1px solid #ddd;background:#fff}.bim-amount{background:#f8fafc!important}@media(max-width:1000px){.bim-quick-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}.bim-fields{grid-template-columns:repeat(2,minmax(150px,1fr))}}@media(max-width:700px){.bim-app{display:block}.bim-sidebar{width:auto;padding:14px}.bim-brand{padding:0 0 10px}.bim-sidebar nav{display:grid;grid-template-columns:repeat(2,1fr);gap:5px}.bim-sidebar a{padding:8px 10px;border-radius:6px}.bim-main{padding:18px}.bim-quick-grid{grid-template-columns:1fr 1fr;gap:12px}.bim-card{min-height:72px;padding:14px;font-size:15px}.bim-fields{grid-template-columns:1fr}.bim-page-head h1{font-size:24px}}

body.admin-bar .bim-app{min-height:calc(100vh - 32px)}@media(max-width:782px){body.admin-bar .bim-app{min-height:calc(100vh - 46px)}}
.bim-login-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f7f9fc;padding:24px;box-sizing:border-box;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.bim-login-card{width:min(100%,380px);background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:30px;box-shadow:0 10px 30px rgba(15,23,42,.08);box-sizing:border-box}.bim-login-card h1{font-size:28px;margin:0 0 24px;color:#172033}.bim-login-card label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;color:#374151;margin-bottom:16px}.bim-login-card input[type=text],.bim-login-card input[type=password]{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #cfd6df;border-radius:7px;font-size:15px}.bim-login-card .bim-remember{flex-direction:row;align-items:center;font-weight:400}.bim-login-btn{display:block;width:100%;box-sizing:border-box;border:0;background:#2563eb;color:#fff!important;border-radius:7px;padding:11px 15px;text-align:center;text-decoration:none!important;font-weight:600;cursor:pointer}.bim-login-error{margin-bottom:16px;padding:10px 12px;background:#fef2f2;border:1px solid #fecaca;color:#991b1b;border-radius:7px;font-size:13px}.bim-sidebar .bim-logout{margin-top:12px;border-top:1px solid rgba(255,255,255,.1);color:#fff}

/* Inventory frontend is a standalone app: hide the WordPress logged-in toolbar. */
html{margin-top:0!important}body.admin-bar{margin-top:0!important;padding-top:0!important}#wpadminbar{display:none!important}.bim-app{min-height:100vh!important}

/* v1.4.0: compact transaction columns and searchable dropdowns */
.bim-lines{table-layout:fixed}
.bim-lines th:nth-child(1),.bim-lines td:nth-child(1){width:56%}
.bim-lines th:nth-child(2),.bim-lines td:nth-child(2){width:11%}
.bim-lines th:nth-child(3),.bim-lines td:nth-child(3){width:12%}
.bim-lines th:nth-child(4),.bim-lines td:nth-child(4){width:15%}
.bim-lines th:nth-child(5),.bim-lines td:nth-child(5){width:6%;text-align:center}
.bim-lines input{padding-left:8px;padding-right:8px}
.bim-search-select{position:relative;width:100%}
.bim-search-select-input{width:100%;box-sizing:border-box;padding:10px 32px 10px 11px;border:1px solid #cfd6df;border-radius:7px;background:#fff;color:#172033;font:inherit;outline:none}
.bim-search-select-input:focus{border-color:#2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.12)}
.bim-search-select:after{content:'⌄';position:absolute;right:11px;top:9px;color:#6b7280;pointer-events:none;font-size:16px}
.bim-search-options{display:none;position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:1000;max-height:220px;overflow:auto;background:#fff;border:1px solid #cfd6df;border-radius:7px;box-shadow:0 10px 24px rgba(15,23,42,.14);padding:4px 0}
.bim-search-select.open .bim-search-options{display:block}
.bim-search-option{padding:9px 11px;cursor:pointer;font-size:13px;color:#172033}
.bim-search-option:hover,.bim-search-option.active{background:#eef4ff;color:#1d4ed8}
.bim-search-option.hidden{display:none}
.bim-search-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;left:0!important;bottom:0!important;padding:0!important;border:0!important}
@media(max-width:700px){.bim-lines{min-width:720px}.bim-lines th:nth-child(1),.bim-lines td:nth-child(1){width:50%}}

/* v1.4.3 quick-add controls */
.bim-inline-add{display:flex;align-items:center;gap:7px;min-width:0}.bim-inline-add>.bim-search-select,.bim-inline-add>select{flex:1;min-width:0}.bim-plus{width:36px;height:36px;flex:0 0 36px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#1d4ed8;font-size:22px;line-height:1;cursor:pointer;margin:0}.bim-plus:hover{background:#eff6ff}.bim-modal{position:fixed;inset:0;background:rgba(15,23,42,.45);display:none;align-items:center;justify-content:center;z-index:99999;padding:20px}.bim-modal.open{display:flex}.bim-modal-card{position:relative;width:min(510px,calc(100vw - 32px));background:#fff;border-radius:12px;padding:24px;box-shadow:0 24px 70px rgba(15,23,42,.28)}.bim-modal-small{width:min(420px,calc(100vw - 32px))}.bim-modal-card h2{margin:0 0 20px;font-size:24px}.bim-modal-card>label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;margin:0 0 14px}.bim-modal-card input,.bim-modal-card select{width:100%;box-sizing:border-box;padding:10px 11px;border:1px solid #cfd6df;border-radius:7px;background:#fff}.bim-modal-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:27px;color:#64748b;cursor:pointer}.bim-quick-msg{font-size:13px;color:#b91c1c;margin-top:10px}.bim-lines th:first-child,.bim-lines td:first-child{width:52%}.bim-lines th:nth-child(2),.bim-lines td:nth-child(2),.bim-lines th:nth-child(3),.bim-lines td:nth-child(3),.bim-lines th:nth-child(4),.bim-lines td:nth-child(4){width:14%}.bim-transaction-head{grid-template-columns:minmax(180px,280px) minmax(320px,1fr)}


/* v1.4.4: mobile off-canvas navigation */
.bim-mobile-bar,.bim-menu-overlay{display:none}
@media(max-width:700px){
  .bim-app{display:block;min-height:100vh;overflow-x:hidden}
  .bim-mobile-bar{display:flex;position:sticky;top:0;z-index:1200;height:58px;align-items:center;justify-content:space-between;padding:0 16px;background:#1f2937;color:#fff;box-shadow:0 1px 4px rgba(15,23,42,.15)}
  .bim-mobile-bar strong{font-size:19px;letter-spacing:.1px}
  .bim-menu-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:7px;background:rgba(255,255,255,.08);color:#fff;font-size:24px;line-height:1;cursor:pointer}
  .bim-sidebar{position:fixed;top:0;bottom:0;left:0;z-index:1400;width:min(82vw,290px);padding:18px 0;background:#1f2937;transform:translateX(-105%);transition:transform .22s ease;overflow-y:auto;box-shadow:10px 0 30px rgba(15,23,42,.22)}
  .bim-sidebar.mobile-open{transform:translateX(0)}
  .bim-brand{display:block;padding:2px 20px 14px;font-size:21px}
  .bim-sidebar nav{display:flex;flex-direction:column;gap:0}
  .bim-sidebar a{display:block;padding:11px 20px;border-radius:0;font-size:14px}
  .bim-sidebar .bim-logout{margin-top:10px}
  .bim-menu-overlay{display:block;position:fixed;inset:0;z-index:1300;background:rgba(15,23,42,.45);opacity:0;visibility:hidden;transition:opacity .22s ease,visibility .22s ease}
  .bim-menu-overlay.open{opacity:1;visibility:visible}
  .bim-main{padding:16px;width:100%;box-sizing:border-box}
  .bim-page-head{margin-bottom:18px}
  .bim-page-head h1{font-size:24px}
  .bim-quick-grid{grid-template-columns:1fr 1fr;gap:10px}
  .bim-card{min-height:66px;padding:12px;font-size:14px}
  .bim-card b{font-size:24px}
}
@media(max-width:420px){
  .bim-main{padding:14px 12px}
  .bim-quick-grid{gap:9px}
  .bim-card{padding:11px 10px;font-size:13px}
}
