/* R13: Business Central-inspired master data workspaces. Only /customers and /items. */
.master-page.bc365-master{--bc-accent:#087f86;--bc-line:#dce6ed;--bc-ink:#142d44;--bc-muted:#61778a;max-width:none!important;width:100%!important;margin:0!important;padding:18px 22px 28px!important;background:#f4f7fa!important;color:var(--bc-ink);font-family:Segoe UI,Arial,sans-serif}
.bc365-master .master-hero{background:#fff!important;background-image:none!important;border:1px solid var(--bc-line)!important;border-radius:8px!important;box-shadow:none!important;padding:20px 24px!important;display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px!important}
.bc365-master .master-hero h1{font-size:29px!important;line-height:1.2!important;letter-spacing:-.7px!important;font-weight:650!important;margin:5px 0!important;color:#17324d!important}
.bc365-master .master-hero p{font-size:13px!important;color:var(--bc-muted)!important;margin:0!important}
.bc365-master .eyebrow{font-size:10px!important;font-weight:800!important;letter-spacing:1.4px!important;color:var(--bc-accent)!important}
.bc365-master .bc-master-command{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.bc365-master .bc-master-command .btn{border-radius:5px!important;min-height:36px!important;padding:7px 14px!important;font-weight:650!important;font-size:12px!important;box-shadow:none!important;opacity:1!important;color:#174052!important}
.bc365-master .bc-master-command .btn.primary{background:#087f86!important;border:1px solid #087f86!important;color:white!important}
.bc365-master .bc-master-command .btn.ghost{background:#fff!important;border:1px solid #bacbd8!important}
.bc365-master .bc-master-command .btn:focus-visible,.bc365-master input:focus-visible,.bc365-master select:focus-visible{outline:2px solid #087f86!important;outline-offset:1px}
.bc365-master .bc-master-meta{display:flex;align-items:center;gap:8px;color:#6c7f91;font-size:12px;font-weight:600}
.bc365-master .bc-master-meta span{background:#e7f4f2;color:#08756e;border-radius:4px;padding:5px 9px}
.bc365-master .kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:0 0 12px!important}
.bc365-master .kpis article{border:1px solid var(--bc-line)!important;border-top:3px solid #087f86!important;border-radius:7px!important;background:#fff!important;box-shadow:none!important;padding:13px 17px!important;min-height:94px!important}
.bc365-master .kpis article span{font-size:11px!important;font-weight:650!important;color:#5b7084!important;text-transform:none!important}
.bc365-master .kpis article strong{font-size:26px!important;color:#17324d!important;font-weight:700!important;display:block!important;line-height:1.4!important}
.bc365-master .kpis article small{font-size:11px!important;color:#73869a!important}
.bc365-master .master-toolbar{background:#fff!important;border:1px solid var(--bc-line)!important;border-radius:7px!important;box-shadow:none!important;padding:10px 12px!important;margin:0 0 12px!important;gap:10px!important}
.bc365-master .master-toolbar input,.bc365-master .master-toolbar select{border:1px solid #cbd9e5!important;border-radius:4px!important;min-height:38px!important;background:#fff!important;font-size:12px!important;padding:7px 11px!important}
.bc365-master .master-toolbar span{font-size:11px!important;color:#587085!important;font-weight:650!important;white-space:nowrap}
.bc365-master .master-grid{display:grid!important;grid-template-columns:minmax(0,1.07fr) minmax(0,1fr)!important;gap:12px!important;align-items:start!important}
.bc365-master .list-card,.bc365-master .editor-card{background:#fff!important;border:1px solid var(--bc-line)!important;border-radius:7px!important;box-shadow:none!important;min-width:0!important;overflow:hidden!important}
.bc365-master .bc-list-title{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:13px 16px;border-bottom:1px solid var(--bc-line);font-size:13px;font-weight:700;color:#1d4058}
.bc365-master .bc-list-title small{font-size:11px;font-weight:500;color:#718498}
.bc365-master .table-scroll{max-height:calc(100vh - 370px)!important;min-height:320px!important;overflow:auto!important}
.bc365-master table{width:100%!important;border-collapse:collapse!important;font-size:12px!important}
.bc365-master thead th{background:#f0f5f8!important;color:#466177!important;font-size:10px!important;font-weight:750!important;text-transform:uppercase!important;letter-spacing:.3px!important;padding:11px 12px!important;border-bottom:1px solid var(--bc-line)!important;position:sticky;top:0;z-index:1}
.bc365-master tbody td{padding:10px 12px!important;border-bottom:1px solid #e8eef2!important;color:#284156!important;vertical-align:middle!important}
.bc365-master tbody tr{cursor:pointer!important}
.bc365-master tbody tr:hover{background:#f0f8f8!important}
.bc365-master tbody tr.selected{background:#e4f3f2!important;box-shadow:inset 3px 0 #087f86!important}
.bc365-master tbody td b,.bc365-master tbody td strong{color:#12334b!important;font-weight:650!important}
.bc365-master .editor-head{background:#f9fbfc!important;border-bottom:1px solid var(--bc-line)!important;padding:16px 18px!important}
.bc365-master .editor-head h2{font-size:20px!important;color:#17324d!important;margin:4px 0!important}
.bc365-master .form-sections{padding:14px!important}
.bc365-master .form-sections section{border:1px solid #e2eaf0!important;border-radius:6px!important;padding:14px!important;margin-bottom:12px!important;background:#fff!important}
.bc365-master .form-sections h3{font-size:12px!important;font-weight:750!important;color:#087f86!important;margin:0 0 12px!important;padding-bottom:8px!important;border-bottom:1px solid #e6edf2!important}
.bc365-master .form-grid label{font-size:11px!important;font-weight:650!important;color:#425c70!important}
.bc365-master .form-grid :is(input,select){border-radius:4px!important;border:1px solid #cbd9e5!important;min-height:36px!important;font-size:12px!important}
.bc365-master .editor-actions{position:sticky!important;bottom:0!important;background:#fff!important;border-top:1px solid var(--bc-line)!important;padding:12px 16px!important;z-index:2!important}
.bc365-master .pill.good{background:#d9f4e9!important;color:#076e4c!important}
.bc365-master .pill.bad{background:#ffe6e6!important;color:#ad3030!important}
@media(max-width:1200px){.bc365-master .master-grid{grid-template-columns:1fr!important}.bc365-master .table-scroll{max-height:420px!important}.bc365-master .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){.master-page.bc365-master{padding:12px!important}.bc365-master .master-hero{flex-direction:column!important;align-items:flex-start!important}.bc365-master .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.bc365-master .bc-master-command{justify-content:flex-start!important}}
