.staff-workspace{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#173a46;background:#f3f6f5;line-height:1.5;font-size:15px}.staff-workspace *{box-sizing:border-box}.staff-workspace [hidden]{display:none!important}.staff-workspace{margin:0}.staff-workspace a{color:#146675}.staff-workspace button,.staff-workspace input,.staff-workspace select{font:inherit}.staff-workspace button,.staff-workspace .staff-button{background:#176b72;border:1px solid #176b72;color:#fff;border-radius:5px;padding:9px 15px;min-height:42px;cursor:pointer;text-decoration:none;display:inline-block}.staff-workspace button.secondary,.staff-workspace .staff-button.secondary{background:#fff;color:#175764;border-color:#94adb4}.staff-workspace button:disabled{opacity:.55;cursor:not-allowed}.staff-workspace a:focus-visible,.staff-workspace button:focus-visible,.staff-workspace input:focus-visible,.staff-workspace select:focus-visible,.staff-workspace summary:focus-visible{outline:3px solid #d6a242;outline-offset:3px}.staff-workspace input:not([type=radio]):not([type=checkbox]),.staff-workspace select{border:1px solid #91a9b0;border-radius:4px;background:#fff;color:#173a46;padding:9px;max-width:100%}.staff-workspace label{font-weight:600}.staff-workspace h1{font-size:28px;margin:0 0 6px}.staff-workspace h2{font-size:19px;margin:0 0 12px}.staff-workspace p{margin:7px 0 15px}.staff-workspace small{display:block}.staff-workspace{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}.staff-sidebar{background:#173e49;color:white;padding:25px 18px;display:flex;flex-direction:column;gap:26px}.staff-sidebar .staff-brand{font-size:22px;font-weight:700;color:#fff;text-decoration:none}.staff-brand small{font-size:12px;font-weight:400;margin-top:4px;color:#d3e2e5}.staff-sidebar nav{display:grid;gap:5px}.staff-sidebar nav a{display:block;color:#f2f7f8;text-decoration:none;padding:10px 12px;border-radius:5px;font-size:14px}.staff-sidebar nav a:hover,.staff-sidebar nav a[aria-current]{background:#2b5661}.staff-settings{margin-top:auto;padding-top:30px;border-top:1px solid #52707a}.staff-settings button{margin-top:12px;background:#2c7c68}.staff-main{min-width:0}.staff-topbar{height:66px;background:#fff;border-bottom:1px solid #d7e2e5;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 34px;font-size:13px}.staff-main main{padding:30px 34px;max-width:1500px;margin:auto}.page-heading{margin-bottom:24px}.page-heading p,#patientDetails{color:#536d76}.directory-search{margin-bottom:20px}.directory-search label{display:block;margin-bottom:6px}.directory-search>div{display:flex;gap:9px}.directory-search input{flex:1;max-width:570px}.table-scroll{overflow:auto;background:#fff;border:1px solid #cfdee2;border-radius:7px}.patient-table{border-collapse:collapse;width:100%;text-align:left}.patient-table th{background:#e9f0f1;font-size:13px;font-weight:650}.patient-table th,.patient-table td{padding:15px 17px;border-bottom:1px solid #dce5e8;vertical-align:middle}.patient-table tbody tr:last-child td{border-bottom:0}.patient-table tbody tr:hover{background:#f7fafb}.patient-table td:first-child a{font-weight:650;text-decoration:none}.patient-table td:nth-child(3){overflow-wrap:anywhere}.patient-table td:last-child{text-align:right}.staff-utility{margin-top:25px;border-top:1px solid #ccdce0;padding-top:17px}.staff-utility summary{cursor:pointer}.staff-utility input{margin:12px}.breadcrumb{display:inline-block;margin-bottom:15px}.staff-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:20px}.staff-card{background:#fff;border:1px solid #ccdde2;border-radius:7px;padding:22px}.staff-action-list{display:grid;gap:0}.staff-action-list a{display:block;padding:11px 0;border-bottom:1px solid #e2eaed;text-decoration:none}.staff-action-list a:last-child{border-bottom:0}.staff-action-list a:hover{text-decoration:underline}.quote-row{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #dce5e8;padding:14px 0}.quote-row small{color:#5d737a}.quote-row a{font-weight:600;text-decoration:none}.quote-row:last-child{border-bottom:0}#quoteAction{margin-top:19px}#intakeSelector{margin-bottom:22px;display:flex;gap:12px;align-items:center}#staffStatus:not(:empty){background:#e8f1f1;padding:12px 15px;border-radius:5px}#staffStatus.error{background:#fff0ed;color:#86352e}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* The login form stays hidden until the existing session check is finished. */
body.portal-session-pending #entryLayout,body.portal-session-pending #dashboard,body.portal-session-pending .account-controls{display:none!important}body:not(.portal-session-pending) #portalSessionLoading{display:none}
/* Keep the original surgery form; organize its entry and practice choice. */
.practice-choices{display:flex;gap:12px;flex-wrap:wrap;border:1px solid #c8dade;padding:14px;border-radius:6px;margin:18px 0}.practice-choices legend{font-weight:650}.practice-choices label{display:flex;align-items:center;gap:9px;border:1px solid #9fb6bc;padding:12px 16px;border-radius:5px;background:#fff;cursor:pointer;margin:0;min-width:175px}.practice-choices label:has(input:checked){background:#e7f2ef;border-color:#176b72}.practice-choices input{accent-color:#176b72;width:17px;height:17px}.practice-choices small{font-size:11px;font-weight:400;max-width:260px}.quote-patient-header{padding:15px 0;border-bottom:1px solid #d0dfe2;margin-bottom:20px}.quote-patient-header p{margin:5px 0}.quote-context-name{font-size:22px;font-weight:700}.staff-financial #cases button{margin-right:8px}.staff-financial .quote-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.staff-financial #practicePrompt{color:#526d76}.staff-financial #builder{margin-top:16px}
@media(max-width:1000px){.staff-workspace{grid-template-columns:190px minmax(0,1fr)}.staff-main main{padding:24px}.patient-table th,.patient-table td{padding:12px}.staff-cards{grid-template-columns:1fr}}
@media(max-width:650px){.staff-workspace{display:block}.staff-sidebar{padding:14px;gap:12px}.staff-sidebar nav{display:flex;flex-wrap:wrap;gap:3px}.staff-sidebar .staff-settings{margin-top:0;padding-top:10px}.staff-sidebar nav a{padding:7px}.staff-sidebar .staff-brand{font-size:19px}.staff-topbar{height:45px;padding:0 16px}.staff-main main{padding:20px 14px}.directory-search>div{flex-wrap:wrap}.directory-search input{flex-basis:100%}.patient-table{min-width:610px}.quote-row{align-items:flex-start;flex-wrap:wrap}.practice-choices label{width:100%}#intakeSelector{align-items:flex-start;flex-direction:column}}
