/* Approved branch dashboard; original controls and permissions retained. */
.branch-employee-row { display:grid!important; grid-template-columns:minmax(180px,1fr) auto; align-items:center; gap:16px; padding:16px 6px; }
.branch-employee-info { min-width:0; }
.branch-employee-info > strong { display:block; color:#12345c; font-size:.94rem; overflow-wrap:anywhere; }
.branch-employee-info > small { display:block; color:#7a8da8; margin:5px 0; font-size:.78rem; overflow-wrap:anywhere; }
.branch-employee-status { display:inline-block; color:#087859; font-size:.76rem; font-weight:600; }
.branch-employee-status.is-inactive { color:#b44d56; }
.branch-employee-row > .branch-employee-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:7px; }
.branch-employee-actions button { min-height:36px; padding:7px 10px; border:1px solid #cbdcef; border-radius:9px; background:#f8fbff; color:#194b82; font:inherit; font-size:.75rem; cursor:pointer; white-space:nowrap; }
.branch-employee-actions button.is-danger { border-color:#f0cbd0; background:#fff7f8; color:#ba3b4d; }
.branch-employee-actions button:disabled { opacity:.45; cursor:wait; }
.branch-staff-feedback { margin:12px 0; padding:11px 13px; border-radius:10px; color:#126b50; background:#ebf8f2; font-size:.8rem; }
.branch-staff-feedback[data-kind="error"] { color:#a52c3e; background:#fff0f2; }
.branch-staff-feedback[hidden] { display:none!important; }
.branch-staff-managed-note { color:#7b8ca3; font-size:.72rem; }
@media(max-width:700px) { .branch-employee-row { grid-template-columns:1fr; gap:10px; } .branch-employee-row > .branch-employee-actions { justify-content:flex-start; } }
#viewAdminPortal .branch-admin-panel { padding:0; border:0; box-shadow:none; background:transparent; }
.branch-admin-panel [hidden],#bdEditor[hidden],#bdEditor [hidden] { display:none!important; }
.bd-overview { margin-bottom:20px; }
.bd-overview-heading { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin:0 0 15px; }
.bd-overview-heading h3 { margin:0 0 3px; font-size:1.06rem; color:#0c2d53; }
.bd-overview-heading p { margin:0; font-size:.79rem; color:#718398; }
.bd-period-slot { margin-left:auto; }
.bd-period-slot .branch-period-buttons { display:flex; padding:4px; gap:3px; background:#eaf0f7; border:1px solid #dce5ef; border-radius:11px; }
#viewAdminPortal .bd-period-slot .btn-admin-refresh { min-height:34px; padding:5px 14px; border:0; border-radius:8px; background:transparent; color:#60758e; font-size:.78rem; }
#viewAdminPortal .bd-period-slot .btn-admin-refresh.active { background:#fff; color:#0c2d53; box-shadow:0 1px 6px #0b2c531a; }
.bd-demo-badge { padding:5px 9px; border-radius:7px; color:#987213; background:#fff5d2; font-size:.68rem; }
.bd-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.bd-metric { display:flex; gap:13px; align-items:flex-start; padding:20px 18px; background:#fff; border:1px solid #dbe4ef; border-radius:14px; }
.bd-metric-icon { display:grid; place-items:center; width:40px; height:40px; flex-shrink:0; color:#2f5883; background:#edf3fb; border-radius:11px; }
.bd-metric-icon svg { width:23px; height:23px; }
.bd-metric small { display:block; color:#687e96; font-size:.77rem; }
.bd-metric strong { display:block; margin:6px 0; font-size:1.6rem; color:#0b2c53; line-height:1.2; }
.bd-metric strong small { display:inline; font-size:.82rem; font-weight:500; }
.bd-metric p { margin:0; color:#94a2b2; font-size:.69rem; }
.bd-metric:last-child { border-top:3px solid #e9ba31; padding-top:18px; }
.bd-metric:last-child .bd-metric-icon { background:#fff6d9; color:#98751c; }
.bd-section-heading { display:flex; align-items:center; gap:12px; margin:22px 0 10px; color:#0c2d53; }
.bd-section-heading strong { font-size:.9rem; }
.bd-section-heading small { color:#8695a9; font-size:.73rem; }
.bd-branches { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.bd-branch-card { padding:16px 18px 12px; border:1px solid #d9e3ef; border-radius:13px; background:#fff; text-align:left; font:inherit; color:#15375c; cursor:pointer; }
.bd-branch-card[aria-selected=true] { border:1.5px solid #1b538f; background:linear-gradient(135deg,#f2f7ff,#fff 70%); box-shadow:0 0 0 2px #dce9f7; }
.bd-card-head { display:flex; align-items:center; gap:9px; }
.bd-card-head strong { flex:1; font-size:.9rem; }
.bd-card-icon { display:grid; place-items:center; color:#6284a5; }
.bd-card-icon svg { width:22px; height:22px; }
.bd-card-check { display:grid; place-items:center; width:21px; height:21px; color:#8aa2ba; font-size:1.1rem; }
.bd-branch-card[aria-selected=true] .bd-card-check { color:#fff; background:#1c5289; border-radius:50%; font-size:.75rem; }
.bd-card-numbers { display:flex; align-items:center; justify-content:space-between; margin:14px 0 11px; }
.bd-card-numbers > b { display:flex; align-items:baseline; gap:8px; font-size:1.6rem; }
.bd-card-numbers > b small { font-weight:500; color:#7c8fa5; font-size:.72rem; }
.bd-card-numbers > div { text-align:right; }
.bd-card-numbers > div span { display:block; color:#7c8fa5; font-size:.7rem; }
.bd-card-numbers > div strong { font-size:.86rem; }
.bd-card-bottom { display:flex; justify-content:space-between; align-items:center; gap:7px; padding-top:10px; border-top:1px solid #eaf0f6; }
.bd-card-bottom > span { color:#33866d; font-size:.68rem; }
.bd-card-bottom .bd-inactive { color:#8b95a4; }
.bd-card-bottom small { color:#8495a7; font-size:.68rem; }
#viewAdminPortal .branch-admin-panel .branch-owner-detail { padding:0; background:#fff; border:1px solid #d9e4ef; border-radius:16px; overflow:hidden; box-shadow:none; }
.bd-detail-head { display:flex; align-items:center; gap:13px; padding:20px 22px; }
.bd-branch-symbol { display:grid; place-items:center; flex-shrink:0; width:45px; height:45px; border:1px solid #e7d599; border-radius:12px; background:#fff9e7; color:#99771b; }
.bd-branch-symbol svg { width:25px; height:25px; }
.bd-eyebrow { font-size:.67rem; color:#95a2b1; margin-bottom:3px; }
#viewAdminPortal .bd-detail-head h3 { font-size:1.12rem; margin:0; color:#0b2e59; }
#viewAdminPortal .bd-detail-head h3::before { display:none; }
.bd-detail-head p { margin:5px 0 0; color:#7b8ca1; font-size:.7rem; }
.bd-status { font-size:.69rem; color:#2b8268; background:#edf8f2; padding:5px 8px; border-radius:20px; white-space:nowrap; }
.bd-detail-actions { margin-left:auto; display:flex; gap:7px; }
.bd-detail-actions button { display:flex; align-items:center; gap:6px; min-height:38px; padding:8px 12px; border:1px solid #cfdae8; border-radius:8px; background:#fff; color:#315477; font:inherit; font-size:.74rem; font-weight:700; cursor:pointer; }
.bd-detail-actions button svg { width:17px; height:17px; }
.bd-detail-actions .bd-primary { background:#0e315c; border-color:#0e315c; color:#fff; }
.bd-group-tabs { display:flex; gap:5px; padding:0 20px; border-top:1px solid #f0f4f8; border-bottom:1px solid #dfe8f1; background:#fcfdff; }
.bd-group-tabs button { display:flex; justify-content:center; align-items:center; gap:7px; flex:1; min-height:54px; padding:12px 9px; border:0; border-bottom:3px solid transparent; background:transparent; color:#8294a9; font:inherit; font-size:.8rem; font-weight:700; white-space:nowrap; cursor:pointer; }
.bd-group-tabs button svg { width:19px; height:19px; }
.bd-group-tabs button[aria-selected=true] { color:#113f72; border-bottom-color:#eabf30; }
.bd-subtabs { display:flex; flex-wrap:wrap; gap:8px; padding:16px 22px 12px; }
.bd-subtabs button { display:flex; align-items:center; gap:8px; padding:7px 11px; border:1px solid #e2e9f2; border-radius:8px; background:#fff; color:#8495a8; font:inherit; font-size:.76rem; cursor:pointer; }
.bd-subtabs button span { min-width:18px; padding:1px 5px; border-radius:4px; background:#eef2f7; color:#8a9bb0; text-align:center; font-size:.67rem; }
.bd-subtabs .is-active { background:#edf4fd; color:#204e7c; border-color:#cadcf0; font-weight:800; }
.bd-subtabs .is-active span { background:#dce9fa; color:#27588d; }
.bd-content-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 22px 16px; }
.bd-content-head strong { color:#15395f; font-size:.88rem; }
.bd-content-head #bdContentCount { margin-left:8px; color:#92a2b5; font-size:.73rem; }
.bd-content-head small { display:block; margin-top:4px; color:#99a7b8; font-size:.68rem; }
.bd-search { display:flex; align-items:center; gap:7px; padding:8px 10px; border:1px solid #dbe4ef; border-radius:8px; color:#8ea0b4; }
.bd-search input { min-width:180px; border:0; outline:0; font:inherit; color:#2f5275; font-size:.72rem; }
#adminBranchDetail { padding:0 22px 17px; min-height:160px; }
#adminBranchDetail > .branch-detail-section { border:0; margin:0; border-radius:0; }
#adminBranchDetail > .branch-detail-section > summary { display:none; }
#adminBranchDetail .branch-detail-list { max-height:390px; overflow:auto; padding:0; }
#adminBranchDetail .branch-detail-row { border-bottom:1px solid #eef2f7; padding:12px 5px; margin:0; }
#adminBranchDetail .branch-detail-row small { color:#8497ac; }
.bd-table-wrap { overflow:auto; border:1px solid #e2e9f2; border-radius:10px; }
.bd-table { width:100%; min-width:720px; border-collapse:collapse; color:#3f5e7b; font-size:.76rem; }
.bd-table th { padding:10px 12px; background:#f5f8fc; color:#8ba0b5; font-weight:600; text-align:left; }
.bd-table td { padding:13px 12px; border-top:1px solid #edf2f7; }
.bd-table td:last-child,.bd-table th:last-child { text-align:right; }
.bd-table td:first-child { color:#204e7a; font-size:.73rem; }
.bd-table small { display:block; color:#94a4b6; font-size:.69rem; margin-top:2px; }
.bd-order-status { display:inline-block; padding:4px 8px; border-radius:5px; color:#497d74; background:#edf7f2; font-size:.67rem; }
.bd-empty { display:grid; place-items:center; text-align:center; padding:25px 10px; min-height:150px; }
.bd-empty > span { display:grid; place-items:center; width:50px; height:50px; border-radius:50%; background:#f1f5fa; color:#9ab0c5; margin-bottom:10px; }
.bd-empty svg { width:26px; height:26px; }
.bd-empty strong { font-size:.85rem; color:#6d829a; }
.bd-empty p { margin:5px 0 0; font-size:.72rem; color:#a1adbc; }
.branch-detail-pages { margin-top:13px; }
.bd-editor { position:fixed; inset:0; z-index:400; display:flex; justify-content:flex-end; background:#07182c80; backdrop-filter:blur(3px); }
.bd-editor-sheet { display:flex; flex-direction:column; width:min(570px,96vw); height:100dvh; background:#f7f9fd; box-shadow:-12px 0 40px #05122430; }
.bd-editor-sheet > header { display:flex; align-items:center; justify-content:space-between; padding:20px 22px; color:#fff; background:#0b2c56; border-bottom:3px solid #efc12a; }
.bd-editor-sheet > header small { color:#aac0d8; font-size:.72rem; }
.bd-editor-sheet > header h3 { margin:4px 0 0; font-size:1.15rem; color:#fff; }
.bd-editor-sheet > header button { width:32px; height:32px; background:#ffffff18; border:0; border-radius:50%; color:#fff; cursor:pointer; font-size:1.2rem; }
.bd-editor-body { overflow:auto; padding:18px; }
.bd-editor-body .sales-form-card { padding:18px; margin-bottom:16px; border:1px solid #dce5f0; border-radius:12px; background:#fff; }
.bd-editor-note { margin:0; padding:12px; font-size:.72rem; color:#9a7c28; text-align:center; background:#fff8df; }
@media(max-width:1250px) { .bd-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}.bd-detail-head{flex-wrap:wrap;}.bd-detail-actions{margin-left:auto;}.bd-detail-head p{max-width:420px;}.bd-group-tabs{overflow:auto;justify-content:flex-start;}.bd-group-tabs button{flex-shrink:0;}.bd-card-numbers{align-items:flex-start;gap:10px;flex-direction:column;}.bd-card-numbers>div{text-align:left;} }
@media(max-width:750px) { .bd-overview-heading{gap:10px;}.bd-period-slot{margin-left:0;}.bd-demo-badge{width:100%;text-align:center;}.bd-branches{grid-template-columns:1fr;}.bd-card-numbers{flex-direction:row;align-items:center;}.bd-card-numbers>div{text-align:right;}.bd-metric{padding:14px 11px;gap:9px;}.bd-metric-icon{width:30px;height:30px;}.bd-metric strong{font-size:1.25rem;}.bd-metric small{font-size:.7rem;}.bd-detail-head{padding:16px;gap:9px;}.bd-detail-head p{max-width:245px;line-height:1.8;}.bd-detail-actions{width:100%;margin:5px 0 0;}.bd-detail-actions button{flex:1;justify-content:center;}.bd-group-tabs{padding:0 10px;}.bd-subtabs{padding:12px;}.bd-content-head{padding:8px 12px 13px;flex-wrap:wrap;}.bd-search{width:100%;}.bd-search input{min-width:0;width:100%;}#adminBranchDetail{padding:0 12px 13px;} }

#bdAddBranch { margin-left:auto; min-height:32px; padding:6px 11px; border:1px solid #d0ddeb; border-radius:8px; color:#34597f; background:#fff; font:inherit; font-size:.74rem; font-weight:700; cursor:pointer; }

.bd-search-empty { padding:24px 12px; text-align:center; font-size:.78rem; color:#8294aa; }
