/* Patient Accounting master-code screens (Master Codes > Patient Accounting). Shared, not scoped:
   linked once from App.razor as _content/Stetho.Module.Billing/pa-setup.css. */
.pa-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pa-bar h3 { margin: 0; }
.pa-spacer { flex: 1; }
.pa-search { height: 32px; width: 240px; max-width: 100%; padding: 0 8px; font: inherit; font-size: .86rem; border: 1px solid #cfd8dc; border-radius: 4px; box-sizing: border-box; }
.pa-tool { width: 36px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cfd8dc; background: #fff; border-radius: 4px; cursor: pointer; padding: 0; }
.pa-tool img { width: 20px; height: 20px; }
.pa-tool:hover:not(:disabled) { background: #e8f0fe; border-color: #90caf9; }
.pa-tool:disabled { opacity: .4; cursor: default; }
.pa-tool-save:not(:disabled) { border-color: #1976d2; background: #e3f2fd; }
.pa-pending { font-size: .8rem; color: #b26a00; }

.pa-panel { background: #fff; border: 1px solid #e3e8ee; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.pa-panel-title { font-weight: 600; margin: 0 0 8px; font-size: .92rem; color: #263238; }
.pa-grid { background: #fff; border: 1px solid #e3e8ee; border-radius: 8px; padding: 6px 10px 10px; overflow-x: auto; }
.pa-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.pa-table th { text-align: left; padding: 8px 6px; border-bottom: 2px solid #e3e8ee; font-weight: 600; background: #eef5fb; white-space: nowrap; }
.pa-table td { padding: 6px; border-bottom: 1px solid #eef2f5; vertical-align: middle; }
.pa-table tbody tr.pa-row { cursor: pointer; }
.pa-table tbody tr.pa-row:hover td { background: #f5f9fd; }
.pa-table tr.on td { background: #e3f2fd !important; }
.pa-table tr.pa-new td { background: #f1f8e9; }
.pa-table tr.pa-changed td { background: #fffbea; }
.pa-group td { background: #f6f8fa; font-weight: 600; color: #37474f; }
.pa-count { font-weight: 400; color: #90a4ae; font-size: .78rem; }
.pa-hidden td { color: #90a4ae; }
.pa-table .c { text-align: center; }
.pa-table .n { text-align: right; }
.pa-empty { color: #78909c; padding: 18px; text-align: center; }
.pa-na { color: #b0bec5; }
.pa-icon { border: none; background: none; cursor: pointer; padding: 2px; }
.pa-icon img { width: 18px; height: 18px; }

.pa-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.pa-form.pa-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pa-form label, .pa-field { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; color: #37474f; min-width: 0; }
.pa-form .pa-wide { grid-column: 1 / -1; }
.pa-pair { display: flex; gap: 14px; align-items: flex-end; }
.pa-pair > label:first-child { flex: 1; }
.pa-form .pa-check { flex-direction: row; align-items: center; gap: 6px; min-height: 32px; }
.pa-input { height: 32px; padding: 0 8px; font: inherit; font-size: .86rem; border: 1px solid #cfd8dc; border-bottom-color: #90a4ae; border-radius: 4px; background: #fff; box-sizing: border-box; width: 100%; }
.pa-input:disabled { background: #f5f7f9; color: #78909c; }
.pa-input.n { text-align: right; }
textarea.pa-input { height: 64px; padding: 6px 8px; resize: vertical; }
.pa-req { color: #c50f1f; }
.pa-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.pa-hint { font-size: .78rem; color: #78909c; }
.pa-link { background: none; border: none; padding: 0; color: var(--accent-fill-rest, #0f6cbd); cursor: pointer; font-size: .82rem; }
.pa-link:hover { text-decoration: underline; }

/* Type-ahead used for catalog / location / provider pickers */
.pa-ac { position: relative; }
.pa-ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; max-height: 240px; overflow-y: auto; background: #fff; border: 1px solid #cfd8dc; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.pa-ac-item { padding: 6px 8px; cursor: pointer; font-size: .84rem; }
.pa-ac-item:hover { background: #e8f0fe; }
.pa-ac-code { color: #90a4ae; font-size: .74rem; margin-left: 6px; }

@media (max-width: 760px) { .pa-form, .pa-form.pa-3 { grid-template-columns: 1fr; } }

/* Benefit Plan: plan list + editor, dual-list pickers */
.bp-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.bp-body.bp-list-hidden { grid-template-columns: minmax(0, 1fr); }
.bp-body.bp-list-hidden .bp-list { display: none; }
.bp-list { max-height: calc(100vh - 220px); overflow-y: auto; position: sticky; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.bp-list-head { display: flex; justify-content: space-between; align-items: center; }
.bp-plan { text-align: left; border: none; background: none; padding: 6px 8px; font: inherit; font-size: .85rem; color: #37474f; cursor: pointer; border-left: 3px solid transparent; border-radius: 2px; }
.bp-plan:hover { background: #f1f5f9; }
.bp-plan.on { background: #e8f0fe; color: #1565c0; font-weight: 600; border-left-color: #1976d2; }
.bp-show { margin-bottom: 8px; font-size: .84rem; color: #1565c0; }
.bp-tabs { display: flex; gap: 2px; border-bottom: 2px solid #e3e8ee; margin-bottom: 10px; flex-wrap: wrap; }
.bp-tabs button { border: none; background: none; padding: 8px 14px; font: inherit; font-size: .88rem; cursor: pointer; color: #546e7a; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.bp-tabs button.on { color: #1565c0; border-bottom-color: #1976d2; font-weight: 600; }
.bp-pick { display: grid; grid-template-columns: minmax(0, 2fr) auto minmax(0, 3fr); gap: 12px; align-items: start; }
.bp-avail { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bp-box { border: 1px solid #e3e8ee; border-radius: 4px; height: 320px; overflow-y: auto; }
.bp-item { padding: 5px 8px; font-size: .84rem; cursor: pointer; user-select: none; }
.bp-item:hover { background: #f5f9fd; }
.bp-item.on { background: #e3f2fd; color: #1565c0; }
.bp-moves { display: flex; flex-direction: column; gap: 6px; padding-top: 40px; }
.bp-chosen { min-width: 0; overflow-x: auto; }
@media (max-width: 900px) { .bp-body { grid-template-columns: 1fr; } .bp-list { position: static; max-height: 260px; } .bp-pick { grid-template-columns: 1fr; } .bp-moves { flex-direction: row; padding-top: 0; } }

/* Enterprise Management: organisation name, logo, address / contact grids */
.org-top { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.org-name { display: flex; gap: 6px; align-items: center; }
.org-salutation { font-size: .84rem; color: #546e7a; padding: 0 6px; height: 32px; line-height: 32px; border: 1px solid #e3e8ee; border-radius: 4px; background: #f5f7f9; }
.org-logo { width: 290px; min-height: 140px; border: 1px dashed #cfd8dc; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px; box-sizing: border-box; }
.org-logo img { max-width: 270px; max-height: 110px; object-fit: contain; }
.org-logo-actions { display: flex; gap: 6px; }
.org-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.org-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.org-ident { margin-top: 12px; overflow-x: auto; }
.org-states { display: flex; flex-wrap: wrap; gap: 4px; max-height: 120px; overflow-y: auto; padding: 4px; border: 1px solid var(--neutral-stroke-rest, #d1d1d1); border-radius: 4px; }
.org-state { border: 1px solid var(--neutral-stroke-rest, #d1d1d1); background: transparent; border-radius: 12px; padding: 2px 10px; font-size: 12px; cursor: pointer; color: inherit; }
.org-state.on { background: var(--accent-fill-rest, #0f6cbd); border-color: var(--accent-fill-rest, #0f6cbd); color: #fff; }
.org-chip { display: inline-block; margin: 2px 8px 2px 0; font-size: .84rem; }
@media (max-width: 900px) { .org-details { grid-template-columns: 1fr; } .org-logo { width: 100%; } }

/* CPOE setup: group / classification / catalog pickers */
.gcc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gcc-col { min-width: 0; display: flex; flex-direction: column; }
.gcc-head { display: flex; justify-content: space-between; align-items: center; min-height: 26px; }
.gcc-box { height: 290px; }
.gcc-radio { display: flex; align-items: center; gap: 6px; }
.gcc-cat, .gcc-link { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.gcc-link.on { background: #e3f2fd; }
.gcc-ie { width: 96px; height: 26px; font-size: .78rem; padding: 0 4px; flex-shrink: 0; }
.pa-chiplist { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pa-stack div { font-size: .82rem; }
@media (max-width: 900px) { .gcc { grid-template-columns: 1fr; } }
