/* Branches page only — no Investor classes */
:root{
  --bm-primary:#000d33;
  --bm-primary-container:#002060;
  --bm-secondary:#115cb9;
  --bm-secondary-container:#659dfe;
  --bm-surface:#f8f9ff;
  --bm-surface-low:#eff4ff;
  --bm-surface-high:#dce9ff;
  --bm-surface-variant:#d3e4fe;
  --bm-text:#0b1c30;
  --bm-muted:#444650;
  --bm-outline:#c5c6d2;
  --bm-white:#fff;
  --bm-radius:12px;
  --bm-sidebar:260px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,Arial,sans-serif;color:var(--bm-text);background:var(--bm-surface)}
button,input,select{font:inherit}
button{cursor:pointer}
.material-symbols-outlined{font-family:'Material Symbols Outlined';font-size:22px;line-height:1;vertical-align:middle}

.bm-branches-sidebar{
  position:fixed;left:0;top:0;width:var(--bm-sidebar);height:100vh;z-index:50;
  overflow-y:auto;background:var(--bm-primary);color:#fff;border-right:1px solid rgba(197,198,210,.5);
  box-shadow:0 1px 6px rgba(0,0,0,.12);padding:16px;display:flex;flex-direction:column;
}
.bm-branches-brand{display:flex;align-items:center;gap:12px;padding:14px 8px 20px;margin-bottom:8px}
.bm-branches-brand-mark{width:42px;height:42px;border-radius:50%;background:#fff;color:var(--bm-primary);display:grid;place-items:center;font-weight:700;font-size:13px}
.bm-branches-brand h1{margin:0;font:700 20px 'Hanken Grotesk',sans-serif}
.bm-branches-brand p{margin:2px 0 0;font-size:12px;color:rgba(255,255,255,.7)}
.bm-branches-nav{display:flex;flex-direction:column;gap:2px;flex:1}
.bm-branches-nav a,.bm-branches-nav-footer a{
  min-height:43px;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:9px;
  color:rgba(255,255,255,.7);text-decoration:none;font-size:14px;font-weight:600;transition:.18s;
}
.bm-branches-nav a:hover,.bm-branches-nav-footer a:hover{color:#fff;background:rgba(101,157,254,.12)}
.bm-branches-nav a.active{background:var(--bm-secondary-container);color:#003370;font-weight:700}
.bm-branches-nav-footer{margin-top:10px}

.bm-branches-shell{margin-left:var(--bm-sidebar);min-height:100vh;display:flex;flex-direction:column}
.bm-branches-topbar{
  height:64px;position:sticky;top:0;z-index:40;background:var(--bm-surface);border-bottom:1px solid var(--bm-outline);
  box-shadow:0 1px 4px rgba(0,0,0,.06);display:flex;align-items:center;justify-content:space-between;padding:0 24px;
}
.bm-branches-topbar-left,.bm-branches-topbar-right{display:flex;align-items:center;gap:16px}
.bm-branches-topbar-title{font:700 24px 'Hanken Grotesk',sans-serif;color:var(--bm-primary)}
.bm-branches-tabs{display:flex;align-items:center;gap:24px;margin-left:12px;height:100%}
.bm-branches-tabs a{height:100%;display:flex;align-items:center;text-decoration:none;color:var(--bm-muted);font-size:14px;font-weight:600}
.bm-branches-tabs a.active{color:var(--bm-secondary);border-bottom:2px solid var(--bm-secondary)}
.bm-branches-global-search{position:relative}
.bm-branches-global-search .material-symbols-outlined{position:absolute;left:11px;top:50%;transform:translateY(-50%);font-size:19px;color:#757681}
.bm-branches-global-search input{width:192px;height:36px;border:1px solid var(--bm-outline);border-radius:999px;background:#fff;padding:0 14px 0 37px;outline:none;font-size:13px}
.bm-branches-global-search input:focus{border-color:var(--bm-secondary);box-shadow:0 0 0 2px rgba(17,92,185,.12)}
.bm-branches-icon-btn{width:38px;height:38px;border:0;border-radius:50%;background:transparent;color:var(--bm-muted);display:grid;place-items:center}
.bm-branches-icon-btn:hover{background:var(--bm-surface-variant)}
.bm-branches-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--bm-primary-container);color:#fff;font-weight:700;font-size:14px}
.bm-branches-mobile-menu{display:none;border:0;background:transparent}

.bm-branches-main{flex:1;padding:40px;background:rgba(239,244,255,.35)}
.bm-branches-container{max-width:1400px;margin:0 auto}
.bm-branches-page-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:24px}
.bm-branches-page-heading h2{margin:0 0 4px;font:600 32px/40px 'Hanken Grotesk',sans-serif}
.bm-branches-page-heading p{margin:0;color:var(--bm-muted);font-size:14px}

.bm-branches-card{background:#fff;border:1px solid var(--bm-outline);border-radius:var(--bm-radius);box-shadow:0 1px 3px rgba(0,0,0,.05);padding:24px}
.bm-branches-actionbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}
.bm-branches-page-size{display:flex;align-items:center;gap:8px;white-space:nowrap;color:var(--bm-muted);font-size:14px}
.bm-branches-page-size select,.bm-branches-actions input,.bm-branches-actions select{
  border:1px solid var(--bm-outline);background:#fff;color:var(--bm-text);outline:none
}
.bm-branches-page-size select{height:34px;border-radius:6px;padding:0 30px 0 10px}
.bm-branches-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
#bm-branches-search{width:220px;height:36px;border-radius:6px;padding:0 11px}
.bm-branches-date-range{display:flex;align-items:center;gap:5px;border:1px solid var(--bm-outline);border-radius:6px;padding:0 5px;background:#fff;height:36px}
.bm-branches-date-range input{border:0!important;height:32px;padding:0 5px;width:132px}
.bm-branches-date-range span{color:#757681}
.bm-branches-btn{height:36px;padding:0 15px;border-radius:6px;border:1px solid var(--bm-outline);font-size:14px;font-weight:600;transition:.18s}
.bm-branches-btn.primary{background:var(--bm-primary);color:#fff;border-color:var(--bm-primary)}
.bm-branches-btn.primary:hover{background:var(--bm-primary-container)}
.bm-branches-btn.secondary{background:var(--bm-surface-variant);color:var(--bm-text)}
.bm-branches-btn.secondary:hover{background:var(--bm-surface-high)}
.bm-branches-divider{width:1px;height:26px;background:var(--bm-outline);margin:0 3px}

.bm-branches-table-wrap{overflow-x:auto;border:1px solid var(--bm-outline);border-radius:8px}
.bm-branches-table{width:100%;min-width:1050px;border-collapse:collapse;text-align:left;white-space:nowrap}
.bm-branches-table th{background:var(--bm-surface-low);border-bottom:1px solid var(--bm-outline);padding:12px 14px;color:var(--bm-text);font-size:12px;line-height:16px;font-weight:600;text-transform:uppercase;letter-spacing:.06em}
.bm-branches-table td{padding:12px 14px;border-bottom:1px solid rgba(197,198,210,.55);font-size:14px;color:var(--bm-text)}
.bm-branches-table tbody tr:nth-child(even){background:rgba(248,249,255,.55)}
.bm-branches-table tbody tr:hover{background:#eff4ff}
.bm-branches-table td:first-child{color:#444650}
.bm-branches-table td.branch-name{color:var(--bm-secondary);font-weight:600}
.bm-branches-empty{text-align:center;padding:36px;color:var(--bm-muted)}
.bm-branches-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;color:var(--bm-muted);font-size:14px}
.bm-branches-pages{display:flex;gap:5px}
.bm-branches-page-btn{min-width:36px;height:34px;padding:0 9px;border:1px solid var(--bm-outline);border-radius:6px;background:#fff;color:var(--bm-text)}
.bm-branches-page-btn:hover:not(:disabled){background:var(--bm-surface-variant)}
.bm-branches-page-btn.current{background:var(--bm-primary);border-color:var(--bm-primary);color:#fff;font-weight:700}
.bm-branches-page-btn:disabled{opacity:.45;cursor:not-allowed}

.bm-branches-modal{position:fixed;inset:0;z-index:100;background:rgba(11,28,48,.42);display:grid;place-items:center;padding:20px}
.bm-branches-modal[hidden]{display:none}
.bm-branches-modal-box{width:min(720px,100%);background:#fff;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.25);padding:24px}
.bm-branches-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.bm-branches-modal-head h3{margin:0;font:600 24px 'Hanken Grotesk',sans-serif}
.bm-branches-modal-head button{border:0;background:transparent;font-size:28px;color:#444}
.bm-branches-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.bm-branches-form-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.bm-branches-form-grid input{height:40px;border:1px solid var(--bm-outline);border-radius:6px;padding:0 10px;outline:none}
.bm-branches-form-grid input:focus{border-color:var(--bm-secondary)}
.bm-branches-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}

@media (max-width:1100px){
  .bm-branches-actions{justify-content:flex-start}
  .bm-branches-actionbar{align-items:flex-start;flex-direction:column}
}
@media (max-width:800px){
  :root{--bm-sidebar:0px}
  .bm-branches-sidebar{transform:translateX(-100%);width:260px;transition:.22s}
  .bm-branches-sidebar.open{transform:translateX(0)}
  .bm-branches-shell{margin-left:0}
  .bm-branches-mobile-menu{display:grid;place-items:center}
  .bm-branches-tabs{display:none}
  .bm-branches-topbar{padding:0 16px}
  .bm-branches-global-search{display:none}
  .bm-branches-main{padding:20px 16px}
  .bm-branches-card{padding:16px}
  .bm-branches-page-heading h2{font-size:28px}
  .bm-branches-pagination{align-items:flex-start;flex-direction:column}
  .bm-branches-form-grid{grid-template-columns:1fr}
}
