#office-root{min-height:100vh}.auth-screen{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(130deg,#0e2237,#224966)}.auth-card{background:white;width:min(460px,100%);border-radius:16px;padding:34px;box-shadow:0 30px 80px #0004}.auth-title{font:800 26px 'Plus Jakarta Sans',sans-serif;color:#19314b;margin:17px 0 5px}.auth-subtitle{color:#6e8192;font-size:13px;line-height:1.7;margin:0 0 23px}.auth-card .field{margin:13px 0}.auth-card .field input{width:100%;font-size:14px}.auth-card .primary{width:100%;margin-top:12px}.auth-error{color:#ae343b;min-height:18px;font-size:12px}.brand-inline{display:flex;align-items:center;gap:10px;color:#fff}.brand-inline .brand-mark{background:#1c4564}.sensitive-banner{background:#fff5e7;border:1px solid #ead5ae;color:#6c563d;padding:11px 14px;border-radius:8px;font-size:12px;margin-bottom:20px}.live-banner{background:#e7f5ed;border-bottom:1px solid #cce6d7;padding:11px 35px;color:#225d42;display:flex;gap:11px;align-items:center;font-size:12px}.live-banner b{font-weight:800}.live-banner.warn{background:#fff5e8;color:#825c2b;border-color:#f0e4cd}.connection-dots{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.small-pill{font-size:10px;padding:5px 8px;border-radius:9px;background:#edf4f8;color:#3c6587}.small-pill.online{background:#dff4e9;color:#277554}.small-pill.offline{background:#fff0e3;color:#a65e35}.loading-state{padding:80px 16px;text-align:center;color:#7e90a0;font-size:14px}.view-section{display:none}.view-section.active{display:block}.form-inline{display:flex;gap:11px;align-items:center}.office-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}.metric{padding:24px;background:white;border:1px solid #e4eaf2;border-radius:12px}.metric b{display:block;font-size:25px;margin-top:10px}.metric small{color:#72869b;font-size:12px}.record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.record-grid label{font-size:11px;color:#65788a;font-weight:800}.record-grid input,.record-grid textarea{width:100%;margin-top:7px}.record-grid textarea{min-height:84px}.record-field{display:flex;flex-direction:column}.data-section{padding:18px 0;border-top:1px solid #e8edf3}.data-section h3{font-size:14px;margin:0 0 11px}.data-section .value{font-size:12px;color:#465a71;line-height:1.6;word-break:break-word}.search-help{font-size:12px;color:#7c8fa0;padding:8px 0}.client-header{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.icon-close{border:1px solid #dde5ef;background:#fff;border-radius:8px;padding:9px 12px}.readonly-note{border:1px solid #e4eaf0;border-radius:9px;padding:15px;margin:10px 0;font-size:12px;color:#617487}.auth-warn{margin:14px 0;font-size:12px;color:#a25a3f}.compact-table th,.compact-table td{padding:10px 12px;font-size:11px}.busy{opacity:.7;pointer-events:none}.info-pair{display:grid;grid-template-columns:130px 1fr;gap:15px;padding:9px 0;border-bottom:1px solid #edf1f5;font-size:12px}.info-pair strong{color:#52677f}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:20px 0 12px}.section-heading h2{font-size:15px;margin:0}.session-name{font-size:12px;color:#d4e5f0;margin:0 13px 8px}.restricted{color:#a35c3f;background:#fef6e9;border:1px solid #f1e5ce;border-radius:10px;padding:15px;font-size:12px;line-height:1.7}.summary-row{border-top:1px solid #ecf1f5;padding:14px 0;font-size:12px}.summary-row:first-child{border-top:0}.summary-row strong{display:block;margin-bottom:6px}.summary-row small{color:#8394a6}.auth-screen .brand-inline{color:#173a55}.current-indicator{color:#35926b;font-size:11px;font-weight:800}.action-cell{white-space:nowrap}.topbar .filter-wrap label{white-space:nowrap}@media(max-width:750px){.live-banner{padding:10px 14px}.auth-card{padding:24px}.office-grid{grid-template-columns:1fr 1fr}.record-grid{grid-template-columns:1fr}.main-content{padding:20px 12px}.main-content .panel{padding:15px}.topbar{flex-wrap:wrap}.top-search{flex:1 1 100%;order:2}.top-actions{margin-left:auto}.main-content .page-heading{align-items:start}}
/* Agency colors are consistent across the shared Office Calendar. */
.calendar-legend{display:flex;flex-wrap:wrap;gap:15px;padding:12px 18px;background:#f8fafc;border-bottom:1px solid #e5ebf2;font-size:12px;font-weight:700;color:#35475b}.legend-item{display:inline-flex;align-items:center;gap:8px}.legend-dot{display:inline-block;width:12px;height:12px;border-radius:4px}.legend-dot.arctos{background:var(--arctos,#2563eb)}.legend-dot.platinum{background:var(--platinum,#dc2626)}.legend-dot.office{background:var(--office,#8e68ad)}.appointment-row.arctos td:first-child{box-shadow:inset 5px 0 0 var(--arctos,#2563eb)}.appointment-row.platinum td:first-child{box-shadow:inset 5px 0 0 var(--platinum,#dc2626)}.appointment-row.office td:first-child{box-shadow:inset 5px 0 0 var(--office,#8e68ad)}.appointment-row.arctos{background:#f6f9ff}.appointment-row.platinum{background:#fff7f7}.appointment-row.office{background:#fbf7ff}

/* Dated month/week/day scheduling surfaces; source agency appointments remain read-only. */
.oc-calendar-panel{padding:0!important;overflow:hidden}
.oc-toolbar{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.oc-nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.oc-nav h2{font-size:19px;line-height:1.35;margin:0 0 0 10px;color:#19324d;font-weight:800}
.oc-icon-btn,.oc-today-btn,.oc-view-tabs button{border:1px solid #dce4ed;border-radius:8px;background:#fff;color:#304960;font-weight:700;min-height:36px;padding:7px 11px}
.oc-icon-btn{font-size:24px;line-height:20px;min-width:36px}
.oc-icon-btn:hover,.oc-today-btn:hover,.oc-view-tabs button:hover{background:#ecf2f9}
.oc-view-tabs{display:flex;gap:4px;background:#edf2f7;border-radius:10px;padding:4px}
.oc-view-tabs button{background:transparent;border:0;padding:7px 14px}
.oc-view-tabs button.active{background:#214b73;color:#fff}
.oc-calendar-panel .calendar-legend{padding:11px 20px;border-top:1px solid #e4eaf2}
.oc-scroll{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.oc-month{min-width:655px}
.oc-days-header{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#f6f9fc;border-top:1px solid #e5ebf2;border-bottom:1px solid #e5ebf2}
.oc-days-header>div{text-align:center;padding:11px 4px;color:#637a8f;font-size:12px;font-weight:800}
.oc-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.oc-date-cell{min-height:116px;padding:8px 5px;border-right:1px solid #e5ebf2;border-bottom:1px solid #e5ebf2;background:#fff;min-width:0}
.oc-date-cell:nth-child(7n){border-right:0}
.oc-date-cell.oc-outside{background:#f8fafc}
.oc-date-cell.oc-today{background:#f1f7ff}
.oc-date-number{width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:#243950;font-weight:800;text-align:center}
.oc-outside .oc-date-number{color:#a1afbf}
.oc-today .oc-date-number{color:white;background:#214b73}
.oc-date-events{display:flex;flex-direction:column;gap:4px;margin-top:4px}
.oc-event{display:flex;align-items:flex-start;flex-wrap:wrap;gap:3px 6px;width:100%;min-width:0;border-radius:7px;border:1px solid transparent;text-align:left;cursor:pointer;padding:7px 9px;font-size:12px;font-weight:700;line-height:1.35}
.oc-event .oc-event-time{font-weight:800;white-space:nowrap}
.oc-event .oc-event-title{min-width:0;overflow-wrap:anywhere}
.oc-event.compact{padding:4px 5px;font-size:10px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oc-event.compact .oc-event-time{margin-right:4px}
.oc-event.compact .oc-event-title{display:inline}
.oc-event.arctos{background:#dbeafe;color:#1647a8;border-color:#a8c8fc;border-left:4px solid #2563eb}
.oc-event.platinum{background:#fee2e2;color:#991b1b;border-color:#f6b9b9;border-left:4px solid #dc2626}
.oc-event.office{background:#f3e8ff;color:#7440a4;border-color:#ddc8f0;border-left:4px solid #8e68ad}
.oc-event:hover{filter:brightness(.96);box-shadow:0 2px 6px #0001}
.oc-more{border:0;background:transparent;color:#516985;text-align:left;font-size:11px;font-weight:800;padding:5px}
.oc-week-grid{min-width:930px;display:grid;grid-template-columns:75px repeat(7,minmax(120px,1fr));border-top:1px solid #e5ebf2}
.oc-corner,.oc-week-head{background:#f7f9fc;border:0;border-bottom:1px solid #e5ebf2;border-right:1px solid #e5ebf2;min-height:60px;color:#657c91}
.oc-corner{display:grid;place-items:center;font-size:12px;font-weight:800}
.oc-week-head{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer;font-size:12px}
.oc-week-head strong{font-size:18px;color:#273e55}
.oc-week-head.oc-today{background:#e8f0ff}
.oc-hour,.oc-week-slot{min-height:74px;border-bottom:1px solid #e5ebf2;border-right:1px solid #e5ebf2}
.oc-hour{font-size:11px;font-weight:700;color:#64778b;text-align:right;padding:8px 7px 0 0;background:#fbfcfe}
.oc-week-slot{padding:4px;display:flex;flex-direction:column;gap:3px;min-width:0}
.oc-week-slot.oc-current-day{background:#f7faff}
.oc-day-header{padding:16px 20px;border-top:1px solid #e5ebf2;font-size:15px;font-weight:800;display:flex;justify-content:space-between;align-items:center;gap:12px}
.oc-day-header span{font-size:12px;color:#73859a}
.oc-day-grid{display:grid;grid-template-columns:85px minmax(0,1fr);border-top:1px solid #e5ebf2}
.oc-day-hour,.oc-day-slot{border-bottom:1px solid #e5ebf2;min-height:66px}
.oc-day-hour{background:#f8fafc;padding:10px;color:#677e92;text-align:right;font-size:11px;font-weight:800}
.oc-day-slot{padding:8px 12px;display:flex;flex-direction:column;gap:6px}
.oc-day-slot .oc-event{max-width:600px}
.oc-detail{width:min(480px,calc(100vw - 30px))}
.oc-detail h2{margin:13px 0 20px;font-size:21px;color:#1a334c}
.oc-detail-line{display:flex;gap:14px;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #e5ebf2;font-size:13px}
.oc-detail-line>b{color:#6e8195}
.oc-detail .muted{line-height:1.6;margin-top:20px}
.oc-fetch-warning{padding:10px 20px;background:#fff4e5;color:#814c11;font-size:12px;border-top:1px solid #f0deb9}
@media(max-width:790px){.oc-toolbar{padding:14px}.oc-nav h2{font-size:16px;width:100%;margin:8px 0 0}.oc-view-tabs{width:100%;justify-content:stretch}.oc-view-tabs button{flex:1}.oc-calendar-panel .calendar-legend{padding:10px 14px}.oc-date-cell{min-height:93px}.oc-day-grid{grid-template-columns:60px minmax(0,1fr)}.oc-day-hour{padding:9px 5px}.oc-day-slot{padding:6px}}

/* Daily breakdown popup: grouped by agency and collapsed until selected. */
.oc-date-cell{cursor:pointer}
.oc-date-cell:focus-within{outline:1px solid #a4c3e8;outline-offset:-1px}
.oc-day-summary{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.oc-day-popup-btn{border:1px solid #cbdae8;border-radius:8px;background:#eef5fb;padding:7px 12px;color:#224c78;font-size:12px;font-weight:800;cursor:pointer}
.oc-day-popup-btn:hover{background:#e0effe}
.oc-day-popup{max-width:650px!important;max-height:min(90vh,850px);overflow-y:auto}
.oc-popup-header{display:flex;justify-content:space-between;gap:16px;margin-bottom:22px;align-items:flex-start}
.oc-popup-header h2{color:#19334d;font-size:23px;line-height:1.25;margin:9px 0 7px}
.oc-popup-header p{font-size:13px;color:#6d7f90;line-height:1.5;margin:0}
.oc-popup-header .close-button{flex-shrink:0}
.oc-popup-groups{display:flex;flex-direction:column;gap:11px}
.oc-agency-section{border:1px solid #dce4ed;border-radius:12px;background:#fff;overflow:hidden}
.oc-agency-section>summary{display:flex;justify-content:space-between;align-items:center;gap:14px;list-style:none;cursor:pointer;padding:16px 17px;user-select:none;background:#f9fbfe}
.oc-agency-section>summary::-webkit-details-marker{display:none}
.oc-agency-section[open]>summary{border-bottom:1px solid #e1e9f0;background:#f6f9fd}
.oc-agency-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.oc-agency-title b{font-size:14px;color:#213b54}
.oc-agency-title small{font-size:12px;font-weight:500;color:#708397}
.oc-agency-marker{width:11px;height:24px;border-radius:5px;display:inline-block;flex-shrink:0}
.oc-agency-marker.arctos{background:#2563eb}
.oc-agency-marker.platinum{background:#dc2626}
.oc-agency-marker.office{background:#8e68ad}
.oc-agency-right{display:flex;align-items:center;gap:12px;flex-shrink:0}
.oc-agency-count{font-size:11px;color:#56718d;font-weight:800;white-space:nowrap}
.oc-chevron{font-size:24px;color:#738ca4;display:inline-block;transition:transform .15s}
.oc-agency-section[open] .oc-chevron{transform:rotate(180deg)}
.oc-agency-body{padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.oc-empty{margin:4px 0;color:#73869a;font-size:13px;line-height:1.5}
.oc-popup-error{margin:4px 0;font-size:12px;color:#ae343b}
.oc-popup-appointment{width:100%;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:11px 12px;border-radius:9px;border:1px solid #e2eaf2;background:#fff;text-align:left;cursor:pointer}
.oc-popup-appointment:hover{background:#f5f9fd}
.oc-popup-appointment.arctos{border-left:4px solid #2563eb}
.oc-popup-appointment.platinum{border-left:4px solid #dc2626}
.oc-popup-appointment.office{border-left:4px solid #8e68ad}
.oc-popup-time{font-size:12px;color:#315470;font-weight:800;flex:0 0 74px}
.oc-popup-title{font-size:13px;font-weight:800;color:#1d354b;flex:1;min-width:90px;overflow-wrap:anywhere}
.oc-popup-status{font-size:11px;color:#687d90}
.oc-popup-actions{border-top:1px solid #e7edf3;margin-top:20px;padding-top:16px;display:flex;justify-content:flex-end}
.oc-source-counts{display:flex;gap:10px;flex-wrap:wrap;padding:9px 20px;background:#fbfdff;border-bottom:1px solid #e6edf4}
.oc-source-count{font-size:11px;font-weight:800;padding:5px 9px;border-radius:7px}
.oc-source-count.arctos{background:#dbeafe;color:#1d4ed8}
.oc-source-count.platinum{background:#fee2e2;color:#b91c1c}
@media(max-width:650px){.oc-popup-header h2{font-size:19px}.oc-agency-section>summary{padding:13px 10px}.oc-agency-right{gap:5px}.oc-agency-count{font-size:10px}.oc-agency-title{gap:7px}.oc-popup-time{flex-basis:66px}.oc-source-counts{padding:10px 12px}.oc-day-summary{justify-content:flex-start}}

/* Agency-first campaign selection. Blank until an agency and agent are chosen. */
.oc-campaign-global-hidden{display:none!important}
.oc-campaign-pickers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:2px 0 22px;border-bottom:1px solid #e6edf3}
.oc-campaign-picker{display:flex;flex-direction:column;gap:8px;min-width:0}
.oc-campaign-picker label{font-weight:800;font-size:12px;color:#344d65}
.oc-campaign-picker select{width:100%;min-width:0;border-radius:9px;border:1px solid #d1dce7;background:#fff;color:#1f3751;padding:11px 12px;font-weight:700;font-size:13px}
.oc-campaign-picker select:disabled{background:#f3f6f9;color:#8b9aab;cursor:not-allowed}
.oc-campaign-results{margin-top:16px;min-height:130px}
.oc-campaign-result-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 7px 17px;border-bottom:1px solid #e6edf3}
.oc-campaign-result-heading b{font-size:15px;color:#1b3852}
.oc-campaign-result-heading span{font-size:12px;color:#657e93;font-weight:800}
.oc-campaign-warning{padding:20px;color:#a52e37;background:#fff1f2;border:1px solid #f7d1d4;border-radius:9px;font-size:13px}
@media(max-width:650px){.oc-campaign-pickers{grid-template-columns:1fr;gap:14px}.oc-campaign-result-heading{flex-wrap:wrap}}

/* Lead directory: source-agency leads, filtered by selected agent. */
.oc-leads-wrap{margin-top:3px}
.oc-leads-wrap .data-table{width:100%;min-width:660px}
.oc-leads-wrap .data-table th,.oc-leads-wrap .data-table td{padding:12px 13px}
.oc-leads-wrap .data-table td strong{font-size:13px;color:#23425c}
.oc-lead-dialog .record-grid{gap:12px}
.oc-lead-field{display:flex;flex-direction:column;gap:6px;min-width:0;padding:12px;background:#f7fafc;border:1px solid #e8edf3;border-radius:9px}
.oc-lead-field strong,.oc-lead-notes strong{font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:#657f92}
.oc-lead-field span{font-size:14px;color:#253f58;overflow-wrap:anywhere}
.oc-lead-notes{margin-top:18px;border-top:1px solid #e6edf3;padding:15px 0}
.oc-lead-notes p{font-size:13px;white-space:pre-wrap;line-height:1.7;margin:8px 0;overflow-wrap:anywhere}
.oc-lead-readonly{font-size:12px;line-height:1.5}
@media(max-width:700px){.oc-lead-dialog .record-grid{grid-template-columns:1fr}}

/* Secure, explicitly revealed client details */
.oc-protected-section{margin:0 0 22px;background:#fff9ed;border:1px solid #e7d7b7;border-radius:11px;overflow:hidden}
.oc-protected-section>summary{cursor:pointer;padding:16px;font-size:14px;color:#583f20;font-weight:800;list-style:none}
.oc-protected-section>summary::-webkit-details-marker{display:none}
.oc-protected-section>summary:before{content:"▸  "}
.oc-protected-section[open]>summary{border-bottom:1px solid #e7d7b7}
.oc-protected-section[open]>summary:before{content:"▾  "}
.oc-protected-note{margin:15px 16px 12px;color:#755933;font-size:12px;line-height:1.5}
.oc-protected-group{margin:10px 15px 14px;border-radius:10px;background:#fff;border:1px solid #ede1cb;overflow:hidden}
.oc-protected-heading{padding:10px 13px;display:flex;align-items:center;justify-content:space-between;gap:13px}
.oc-protected-heading strong{font-size:12px;color:#4d3e29}
.oc-protected-heading button{min-width:90px;flex-shrink:0}
.oc-protected-result{padding:10px 13px 13px;font-size:12px;border-top:1px solid #f0e8d9;min-height:45px}
.oc-protected-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.oc-protected-field{background:#fafbfd;border:1px solid #ebeff5;border-radius:8px;padding:11px;display:flex;flex-direction:column;gap:8px}
.oc-protected-field strong{font-size:11px;color:#60758b}
.oc-protected-field span{font-size:13px;color:#1d2e3f;overflow-wrap:anywhere;user-select:text}
.oc-hide-sensitive{margin-top:14px}
.oc-protected-expiry{margin:10px 0 0;color:#8d5c23;font-size:11px}
.oc-protected-error{color:#a12734;background:#fff1f2;padding:13px;border-radius:8px}
@media(max-width:640px){.oc-protected-grid{grid-template-columns:1fr}.oc-protected-heading{flex-wrap:wrap}}

.oc-open-doc{display:inline-block;margin-top:11px;padding:8px 12px;font-size:12px;color:#1e568c;border-radius:8px}

/* Top-row quick actions, Arctos-style appointment modal */
.office-top-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.office-top-tools .office-action{padding:10px 13px;font-weight:800}
.office-top-tools .office-action .office-action-icon{font-size:17px;vertical-align:middle;margin-right:5px}
.office-entry-dialog{max-width:750px}
.office-entry-dialog .form-grid{gap:15px}
.office-entry-dialog .field label{font-size:12px;font-weight:800;color:#344d64}
.office-entry-dialog .field input,.office-entry-dialog .field select,.office-entry-dialog .field textarea{min-height:44px;font-size:14px}
.office-mode-picker{margin:19px 0 17px;display:flex;gap:0;border:1px solid #d5dfeb;border-radius:10px;overflow:hidden}
.office-mode-picker button{flex:1;background:#f9fbfd;border:0;padding:13px 10px;color:#41576f;font-weight:800;font-size:12px}
.office-mode-picker button.active{background:#254d71;color:#fff}
.office-mode-picker button:disabled{opacity:.45;cursor:not-allowed}
.office-search-options{max-height:180px;overflow:auto;border-radius:9px}
.office-search-result{width:100%;background:#f7fafc;padding:10px 13px;border:1px solid #e4ebf4;border-radius:7px;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:12px;margin:4px 0}
.office-search-result:hover{background:#e7f1fa}
.office-search-result b{font-size:13px}.office-search-result small{font-size:12px;color:#60788c}
.office-status-line{background:#eff5fa;padding:11px;border-radius:8px;color:#365b78;margin:0;font-size:12px}
.office-form-error{color:#a31c32;font-size:12px;line-height:1.5;padding-top:8px}
.office-form-error:empty{display:none}
.office-entry-dialog #oaNewPane[hidden],.office-entry-dialog #oaExistingPane[hidden]{display:none}
@media(max-width:800px){.topbar{flex-wrap:wrap}.top-actions{flex-wrap:wrap}.office-top-tools{width:auto;justify-content:flex-end}.office-top-tools .office-action{font-size:12px;padding:9px 10px}.office-entry-dialog .form-grid{grid-template-columns:1fr}}
@media(max-width:460px){.top-actions{width:100%;justify-content:space-between}.office-top-tools{flex:1;justify-content:flex-end}.office-top-tools .office-action-icon{margin-right:0}.office-action-label{font-size:10px}}

.oc-source-count.office{background:#f3e8ff;color:#7440a4}

/* Keep appointment action visible on small phone screens. */
@media(max-width:790px){.top-actions .office-top-tools .office-action.primary{display:inline-flex!important;align-items:center;gap:4px}}

.office-note-tabs{display:flex;gap:7px;border:1px solid #dce5ed;padding:5px;border-radius:10px;background:#eff4f8;margin-bottom:20px}
.office-note-tabs button{flex:1;border:0;background:transparent;color:#516a83;border-radius:8px;padding:12px;font-weight:800}
.office-note-tabs button.selected{color:#214767;background:white;box-shadow:0 1px 5px #0001}
.oc-note-entry{border:1px solid #e3ebf3;border-radius:10px;margin:10px 0;overflow:hidden}
.oc-note-entry summary{list-style:none;display:flex;justify-content:space-between;gap:10px;cursor:pointer;padding:15px}
.oc-note-entry summary::-webkit-details-marker{display:none}
.oc-note-entry summary b{font-size:13px;color:#23445f}.oc-note-entry summary small{color:#7b8e9c;font-size:11px}
.oc-note-text{white-space:pre-wrap;overflow-wrap:anywhere;padding:15px;line-height:1.7;font-size:13px;border-top:1px solid #ebf0f5}
.oc-note-client{font-size:11px;color:#346f8b;margin-top:12px;font-weight:800}
.oc-note-buttons{display:flex;justify-content:flex-end;gap:8px;margin:10px 0}
.oc-note-buttons button{border:1px solid #d6e1ea;background:#fff;padding:8px 12px;border-radius:8px}
.oc-note-buttons button.primary{background:#16354d;color:#fff}
#privateOfficeNotes{display:grid;gap:15px;padding:15px;background:#f9fbfd;border:1px solid #e3ebf2;border-radius:10px;margin-bottom:20px}
#privateOfficeNotes .field{display:flex;flex-direction:column;gap:7px}
#privateOfficeNotes textarea{min-height:130px}

.oc-page-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;flex-wrap:wrap}.oc-page-controls button{white-space:nowrap}

/* Phone (real Office CRM, independent of M&M navigation) */
.office-phone-panel{padding:16px;display:grid;gap:12px;min-width:0}
.office-phone-panel .panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.office-phone-panel .panel-header h2{margin:0}
.office-phone-tip{font-size:12px;line-height:1.5}
.office-phone-tabs{display:flex;flex-wrap:wrap;gap:7px}
.office-phone-tabs button{border:1px solid #b7cbd9;border-radius:9px;background:#f4f8fb;color:#315066;font-size:12px;font-weight:800;padding:9px 12px;cursor:pointer}
.office-phone-tabs button.active{background:#214d69;color:#fff;border-color:#214d69}
.office-phone-tabs button span{display:inline-block;margin-left:4px;padding:2px 6px;background:rgba(100,140,165,.18);border-radius:20px;color:inherit}
.office-phone-days{display:grid;gap:9px;min-width:0}
.office-phone-day{border:1px solid #ccdae3;background:#fff;border-radius:10px;min-width:0;overflow:hidden}
.office-phone-day>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 13px;background:#edf5f9;color:#23475e}
.office-phone-day>summary::-webkit-details-marker{display:none}
.office-phone-day>summary strong{font-size:13px;flex:1}
.office-phone-day>summary span{font-size:11px;color:#4c687c;font-weight:800}
.office-phone-day>summary b{font-size:18px;line-height:1;color:#446e88}
.office-phone-day[open]>summary b{transform:rotate(180deg)}
.office-phone-day-body{display:grid;gap:10px;padding:11px;background:#f8fbfd}
.office-phone-card{display:grid;gap:8px;border:1px solid #d1dfe7;border-left:4px solid #6392ad;border-radius:9px;padding:11px;background:#fff;min-width:0}
.office-phone-card-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px;font-size:13px;color:#1f3e53}
.office-phone-card-top span{font-size:11px;color:#456982;font-weight:750}
.office-phone-meta{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:11px;color:#557589}
.office-phone-actions{display:flex;gap:7px;flex-wrap:wrap}
.office-phone-card button{min-height:34px;color:#28516b;background:#f1f7fa;border:1px solid #b8cddb;border-radius:7px;cursor:pointer}
.office-phone-card button.office-phone-delete{color:#904c44;background:#fff5f3;border-color:#dabbb5}
.office-phone-note{border:1px solid #d1e1e9;border-radius:8px;padding:8px;background:#f5f9fb}
.office-phone-note summary{color:#2d566d;font-size:11px;cursor:pointer;font-weight:800}
.office-phone-note>div{display:grid;gap:7px;margin-top:9px}
.office-phone-note textarea{box-sizing:border-box;width:100%;min-height:67px;padding:9px;border-radius:7px;color:#203d4e;background:#fff;border:1px solid #adc5d4;resize:vertical}
.office-phone-note button{justify-self:start}
.office-phone-text-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:1px 0 5px;padding:10px 12px;border-radius:8px;background:#eef4f7;color:#1f3b4e;font-size:12px}
.office-phone-message-status{font-size:11px}
@media(max-width:680px){
.office-phone-panel{padding:10px}.office-phone-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.office-phone-tabs button{padding:8px 5px;font-size:10px}
.office-phone-card-top{align-items:flex-start}.office-phone-day-body{padding:7px}
}

/* Real RingCentral audio player and agency-specific Open Client matching. */
.office-phone-audio{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.office-phone-audio audio{display:block;max-width:460px;width:100%;height:38px}
.office-phone-play{font-weight:850!important;background:#e5f1f8!important;border-color:#9abccc!important;color:#244e69!important}
.office-phone-no-audio,.office-phone-matches{font-size:11px;line-height:1.5;color:#5f7381}
.office-phone-matches{display:flex;align-items:center;flex-wrap:wrap;gap:6px;
 border:1px solid #d2e0e8;border-radius:9px;padding:8px 9px;background:#f7fafc;min-width:0}
.office-phone-match-summary{font-weight:850;color:#2a654d;font-size:11px;margin-right:4px}
.office-phone-open-client{background:#e5f4ea!important;border-color:#a8cabb!important;
 color:#225940!important;font-size:11px!important;padding:6px 9px!important;min-height:34px}
.office-phone-play-error{font-size:11px;color:#9b3737;margin:3px 0;overflow-wrap:anywhere}
.office-phone-matches small{font-size:10px;white-space:normal}
@media(max-width:680px){.office-phone-audio audio{max-width:100%}
.office-phone-matches{align-items:stretch}.office-phone-open-client{width:100%}}


/* Four-tab Office CRM client record uses the same Arctos hierarchy, muted tones,
   collapsed categories, and compact Client at a Glance presentation. */
#dialog .oc-arctos-client-dialog{max-width:1030px;width:min(1030px,calc(100vw - 30px));box-sizing:border-box;
 max-height:min(94dvh,1020px);padding:0;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;
 color:#243c4e;border:1px solid #cddbe5;background:#fff}
#dialog .oc-client-modal-header{position:sticky;top:0;z-index:4;margin:0;padding:17px 21px 15px;
 background:#fff;border-bottom:1px solid #d8e3ea;align-items:center}
#dialog .oc-client-modal-header h2{font-size:22px;color:#193b52;line-height:1.2;margin:3px 0}
#dialog .oc-client-modal-header p{font-size:12px;color:#668094}
#dialog .oc-client-modal-header .eyebrow{font-size:10px;letter-spacing:.09em;font-weight:850;color:#70879b}
#dialog .oc-client-modal-header .close-button{min-width:38px;height:38px;font-size:24px}
#dialog .oc-client-four-tabs{padding:16px 19px 22px;min-width:0;flex:1}
#dialog .oc-client-main-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 0 15px}
#dialog .oc-client-main-tabs button{min-height:48px;min-width:0;padding:9px 6px;border-radius:11px;border:1px solid #677a88;
 background:#d6e4ec;color:#1e394d;font-size:13px;font-weight:800;font-family:inherit;cursor:pointer}
#dialog .oc-client-main-tabs button[data-oc-client-tab="coverage"]{background:#dbe6dc}
#dialog .oc-client-main-tabs button[data-oc-client-tab="medical"]{background:#e6dfed}
#dialog .oc-client-main-tabs button[data-oc-client-tab="files"]{background:#eee4d8}
#dialog .oc-client-main-tabs button[aria-selected="true"]{border:2px solid #304e61;box-shadow:inset 0 0 0 2px #ffffff91}
#dialog .oc-client-tabpanel[hidden]{display:none!important}
#dialog .oc-client-tabpanel{min-width:0}
#dialog .oc-client-overview-card{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
 border:1px solid #d9e3eb;border-radius:14px;background:linear-gradient(115deg,#f6f9fb,#eef5f7);
 padding:17px 19px;margin-bottom:16px}
#dialog .oc-client-overview-card>.oc-client-overview-actions{display:flex;gap:7px;align-items:center}
#dialog .oc-client-kicker{display:block;letter-spacing:.095em;font-size:10px;color:#687d8f;font-weight:850;margin-bottom:6px}
#dialog .oc-client-overview-card strong{display:block;font-size:19px;font-weight:850;color:#17364b}
#dialog .oc-client-overview-card p{font-size:12px;color:#5b6d7c;line-height:1.6;margin:5px 0 0}
#dialog .oc-client-overview-actions button{min-height:39px;padding:8px 11px;border:1px solid #a9c3d1;background:#e9f2f6;
 border-radius:9px;color:#1b445b;font-size:12px;font-weight:850}
#dialog .oc-client-new-badge{color:#456b80;background:#dfecf2;border-radius:8px;padding:7px 12px;font-size:12px;font-weight:850}
#dialog .oc-client-group-heading{margin:0 0 16px}
#dialog .oc-client-group-heading>strong{font-size:16px;color:#213d50;font-weight:900}
#dialog .oc-client-group-heading>p{font-size:13px;color:#617687;margin:5px 0 0}
#dialog .oc-client-category{margin:0 0 11px;border:1.3px solid #b7c9d4;border-radius:13px;overflow:hidden;background:#fff}
#dialog .oc-client-category>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;
 min-height:58px;gap:12px;padding:11px 15px;background:#dae8ef;color:#19374b}
#dialog .oc-client-category>summary::-webkit-details-marker{display:none}
#dialog .oc-client-category>summary>span:first-child{display:grid;gap:4px;min-width:0}
#dialog .oc-client-category>summary strong{display:inline-block;font-size:13px;color:#192f3d;font-weight:900;
 border:1.5px solid #344753;background:#ffffffb9;padding:6px 10px;border-radius:6px;max-width:max-content}
#dialog .oc-client-category>summary small{font-size:11px;color:#526977;font-weight:650;line-height:1.35}
#dialog .oc-client-chevron{font-size:24px;color:#385b70;transition:transform .12s}
#dialog .oc-client-category[open] .oc-client-chevron{transform:rotate(180deg)}
#dialog .oc-client-category-body{padding:15px;background:#fff;border-top:1px solid #cbdbe5}
#dialog .oc-client-category.tone-identity>summary{background:#e9e0d5}
#dialog .oc-client-category.tone-medicare>summary{background:#dae8ef}
#dialog .oc-client-category.tone-life>summary{background:#dce9df}
#dialog .oc-client-category.tone-hospital>summary{background:#e5ddeb}
#dialog .oc-client-category.tone-retirement>summary{background:#eee4d8}
#dialog .oc-client-category.tone-doctors>summary{background:#dce9e8}
#dialog .oc-client-category.tone-medications>summary{background:#eddee5}
#dialog .oc-client-category.tone-notes>summary{background:#eee6d8}
#dialog .oc-client-category.tone-documents>summary{background:#dce8f0}
#dialog .oc-client-category.tone-activity>summary{background:#e7e8ef}
#dialog .oc-client-category.oc-client-note-overview>summary{background:#f2f6f8}
#dialog .oc-client-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
#dialog .oc-client-agency-grid{margin-bottom:14px;border-bottom:1px solid #dbe6ec;padding-bottom:15px}
#dialog .oc-client-field{display:grid;align-content:start;gap:6px;min-width:0;color:#375165;font-size:12px;font-weight:800}
#dialog .oc-client-field>span{font-size:11px;font-weight:850;color:#375165}
#dialog .oc-client-field input,#dialog .oc-client-field select,#dialog .oc-client-field textarea{
 width:100%;min-height:41px;box-sizing:border-box;border:1px solid #b4c7d2;background:#fff;color:#193a50;
 border-radius:8px;padding:10px 11px;font:inherit;font-size:14px;font-weight:500}
#dialog .oc-client-field textarea{min-height:115px;resize:vertical;line-height:1.5}
#dialog .oc-client-field input:focus,#dialog .oc-client-field select:focus,#dialog .oc-client-field textarea:focus{
 outline:2px solid #85b2cd;outline-offset:1px}
#dialog .oc-client-save-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
 padding:12px 0 4px}
#dialog .oc-client-save-footer>span{font-size:11px;color:#5b7483}
#dialog .oc-client-save-footer .primary{min-height:41px;font-size:13px;padding:10px 18px}
#dialog .oc-client-readonly-hint{padding:10px 12px;border-radius:9px;background:#eff6f9;border:1px solid #d3e3ec;
 font-size:12px;color:#476b80;line-height:1.55;margin:0 0 11px}
#dialog .oc-client-empty{font-size:12px;color:#6a8191;margin:6px 0;line-height:1.5}
#dialog .oc-client-subsection{margin:4px 0 14px}
#dialog .oc-client-subsection:last-child{margin-bottom:3px}
#dialog .oc-client-subsection>h4{margin:0 0 7px;color:#254c60;font-size:12px;font-weight:900;
 padding-bottom:6px;border-bottom:1px solid #d5e0e6}
#dialog .oc-client-record{margin:8px 0;padding:10px 13px;border-radius:9px;border:1px solid #d7e2e8;background:#f8fbfc;
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 16px}
#dialog .oc-client-datum{display:grid;grid-template-columns:minmax(95px,35%) 1fr;gap:7px;font-size:11px;
 border-bottom:1px solid #e5edf1;padding:7px 0;min-width:0}
#dialog .oc-client-datum dt{font-weight:850;color:#536d7f;overflow-wrap:anywhere}
#dialog .oc-client-datum dd{margin:0;color:#253e50;overflow-wrap:anywhere;white-space:pre-wrap}
#dialog .oc-client-doc{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;
 border-bottom:1px solid #dce6ec;padding:11px 0}
#dialog .oc-client-doc div{display:grid;gap:4px;min-width:0}
#dialog .oc-client-doc strong{font-size:12px;color:#253e50;overflow-wrap:anywhere}
#dialog .oc-client-doc small{font-size:10px;color:#6a8190}
#dialog .oc-client-doc button{font-size:11px;min-height:35px}
#dialog .oc-client-review{display:flex;flex-wrap:wrap;align-items:center;gap:11px;
 margin-bottom:12px;padding:12px 14px;border-radius:11px;background:#edf5f1;border:1px solid #c2d9cd;color:#26513c}
#dialog .oc-client-review strong{font-size:13px}
#dialog .oc-client-review span{font-size:12px;color:#3f6b53}
#dialog .oc-client-new-note{display:grid;gap:10px;margin:12px 0 0;border-top:1px solid #dbe5eb;padding:13px 0}
#dialog .oc-client-new-note>.primary{justify-self:start;min-height:38px}
#dialog .oc-client-modal-error{font-size:12px;color:#9e3838;margin:9px 0}
#dialog .oc-client-modal-error:empty{display:none}
#dialog .oc-client-category .oc-protected-group{padding:10px;border:1px solid #dedbd1;border-radius:8px;margin:10px 0}
@media(max-width:700px){
 #dialog .oc-arctos-client-dialog{width:calc(100vw - 14px);max-height:96dvh}
 #dialog .oc-client-four-tabs{padding:11px}
 #dialog .oc-client-modal-header{padding:12px 14px}
 #dialog .oc-client-main-tabs{gap:5px}
 #dialog .oc-client-main-tabs button{font-size:11px;min-height:43px;padding:7px 3px}
 #dialog .oc-client-overview-card{padding:12px}
 #dialog .oc-client-overview-card strong{font-size:16px}
 #dialog .oc-client-category>summary{padding:9px 11px}
 #dialog .oc-client-form-grid,#dialog .oc-client-record{grid-template-columns:1fr}
 #dialog .oc-client-datum{grid-template-columns:minmax(95px,36%) 1fr}
 #dialog .oc-client-save-footer .primary{width:100%}
}
