/* Calls UI: the server owns category, assessment and due-state semantics. */
.call-icon{display:inline-block;vertical-align:middle;flex:none}.call-id{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}.call-muted{color:var(--muted);font-size:11.5px}
.call-category{display:inline-flex;align-items:center;border:2px solid var(--call-category-border,#5c666e);color:var(--call-category-text,#8b949c);background:transparent;border-radius:999px;padding:1px 9px;font-size:11.5px;font-weight:600;line-height:18px;white-space:nowrap}.call-category--new{--call-category-border:#9b8cff;--call-category-text:#b3a7ff}.call-category--adaptation{--call-category-border:#f06595;--call-category-text:#f783ac}.call-category--experienced{--call-category-border:#3d9bff;--call-category-text:#68b2ff}.call-category--problem{--call-category-border:#ffab29;--call-category-text:#ffbe5c}.call-category--stable{--call-category-border:#5c666e;--call-category-text:#8b949c}
.call-status{display:inline-flex;flex-direction:column;align-items:center;gap:2px;color:var(--call-status-color,#a3adb6);line-height:1.3}.call-status-badge{background:var(--call-status-bg,rgba(163,173,182,.12));border-radius:5px;padding:3px 7px;font-size:11px;font-weight:500;white-space:nowrap}.call-status small{font-size:10.5px;color:inherit}.call-status--critical{--call-status-color:#ff8585;--call-status-bg:rgba(255,107,107,.15)}.call-status--minor,.call-status--rescheduled{--call-status-color:#f5c451;--call-status-bg:rgba(240,180,41,.14)}.call-status--none{--call-status-color:#5ed99a;--call-status-bg:rgba(64,201,128,.14)}
.call-due{display:inline-flex;flex-direction:column;gap:2px;color:var(--muted);font-size:12px}.call-due small{font-size:10.5px;color:var(--dim);font-weight:400}.call-due--overdue>span{color:#ff6b6b;font-weight:600}.call-due--today>span{color:#f0b429;font-weight:600}
.call-result{display:inline-flex;align-items:center;gap:5px;border:1px solid currentColor;border-radius:999px;padding:2px 6px;font-size:11px;white-space:nowrap}.call-result .call-icon{width:12px;height:12px}.call-result--reached{color:#2fbe7c}.call-result--rescheduled{color:#e0a532}.call-assessment{color:var(--call-assessment-color);font-size:11.5px;white-space:nowrap}.call-assessment:before{content:'';display:inline-block;width:6px;height:6px;background:currentColor;border-radius:50%;margin-right:6px;vertical-align:middle}.call-assessment--none{--call-assessment-color:#40c980}.call-assessment--minor{--call-assessment-color:#f0b429}.call-assessment--critical{--call-assessment-color:#ff6b6b}
.calls-page{padding-top:12px}.calls-toolbar{display:flex;align-items:center;gap:6px;flex:none;margin-bottom:8px}.calls-toolbar>.btn{white-space:nowrap}.call-help-button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex:none;border:1px solid var(--line);border-radius:50%;background:var(--panel-2);color:var(--muted);font-size:13px;font-weight:600}.call-help-button:hover{background:var(--accent);color:#fff;border-color:var(--accent)}.call-category-select{width:165px;flex:none;padding:6px 30px 6px 10px}.call-counters{margin-left:auto;display:flex;gap:6px;align-items:center}.call-counter{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:transparent;border-radius:999px;padding:5px 12px;color:var(--call-counter-color);font-size:11.5px;white-space:nowrap}.call-counter b{font-size:12px;font-weight:600}.call-counter:hover,.call-counter.is-active,.call-counter[aria-pressed=true]{border-color:currentColor}.call-counter.is-active,.call-counter[aria-pressed=true]{background:var(--call-counter-bg)}.call-counter--overdue{--call-counter-color:#ff6b6b;--call-counter-bg:rgba(255,107,107,.1)}.call-counter--today{--call-counter-color:#f0b429;--call-counter-bg:rgba(240,180,41,.1)}.call-counter--week{--call-counter-color:#9aa4ae;--call-counter-bg:rgba(154,164,174,.1)}.call-counter--done{--call-counter-color:#40c980;--call-counter-bg:rgba(64,201,128,.1)}.calls-search{width:190px;flex:none}.calls-table-card{flex:0 1 auto;min-height:0}.calls-table{min-width:1120px}.calls-table>tbody>tr>td{padding:6px 8px!important}.call-row-actions{display:flex;align-items:center;justify-content:center;gap:6px}.call-row-actions .btn{padding:4px 10px;font-size:11.5px}.call-done{display:inline-flex;align-items:center;color:#40c980;font-size:11.5px;gap:3px;white-space:nowrap}.call-history-button{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;flex:none;border:0;border-radius:6px;color:#9775fa;background:rgba(112,72,232,.2)}.call-history-button:hover{background:#7048e8;color:#fff}.call-empty{padding:22px!important;text-align:center;color:var(--muted);margin:0}.calls-table .call-empty{padding:22px!important}
.call-fragment{max-width:1100px;margin:0 auto;background:var(--panel);border:1px solid var(--line-soft);border-radius:10px;padding:16px}.remote-modal-body>.call-fragment{max-width:none;border:0;border-radius:0;padding:0}.call-standalone-title{font-size:18px;font-weight:500;margin:0 0 14px}.remote-modal-body .call-standalone-title{display:none}.call-modal-subtitle{color:var(--muted);font-size:12px;margin:0 0 12px}.call-history-fragment{max-width:880px}.call-settings-fragment{max-width:760px}.call-modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid var(--line-soft);padding-top:12px;margin-top:16px}.call-modal-actions .btn{display:inline-flex;align-items:center;gap:7px}.call-modal-actions .call-cancel-outline[data-modal-cancel]{border:1px solid var(--line)!important;color:var(--muted)!important;padding:7px 13px;background:transparent!important}.call-modal-actions .call-cancel-outline:hover{background:var(--panel-2)!important}.call-modal-actions .call-close-primary[data-modal-cancel]{border:1px solid var(--accent)!important;background:var(--accent)!important;color:#fff!important;padding:7px 13px}.call-modal-actions .call-close-primary:hover{background:var(--accent-h)!important}
#remotePageModal .modal-dialog:has(.call-report-fragment){--bs-modal-width:min(1100px,calc(100vw - 32px))}#remotePageModal .modal-dialog:has(.call-history-fragment){--bs-modal-width:min(880px,calc(100vw - 32px))}#remotePageModal .modal-dialog:has(.call-settings-fragment){--bs-modal-width:min(760px,calc(100vw - 32px))}#callHelpModal .modal-dialog{--bs-modal-width:min(680px,calc(100vw - 32px))}
.call-report-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:14px;margin:0 0 14px;border-bottom:1px solid var(--line-soft)}.call-report-meta>div{min-width:0}.call-report-meta dt{color:var(--dim);font-size:10.5px;font-weight:400;margin-bottom:5px;white-space:nowrap}.call-report-meta dd{margin:0;font-size:12px;font-weight:500;overflow-wrap:anywhere}.call-report-meta dd>small{display:block;color:var(--muted);font-size:10.5px;font-weight:400;margin-top:2px}.call-report-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.call-report-fields{display:flex;flex-direction:column;gap:16px}.call-field-label{display:block;font-size:12px;font-weight:400;color:var(--muted);margin:0 0 7px}.call-system-time{display:flex;align-items:flex-start;gap:7px;font-size:11.5px;color:var(--muted);margin:0;line-height:1.5}.call-system-time svg{margin-top:1px}.call-radio-row{display:flex;flex-wrap:wrap;gap:9px 16px}.call-radio-row label{display:flex;gap:6px;align-items:center;font-size:12px;cursor:pointer}.call-radio-row input{accent-color:var(--accent);width:14px;height:14px;flex:none}.call-assessment-options{gap:9px 12px}.call-report-text{display:flex;flex-direction:column}.call-report-text textarea{flex:1;min-height:150px;line-height:1.55;resize:vertical}.call-report-text>small{margin-top:4px}.call-recent{margin-top:20px}.call-history-scroll,.call-settings-scroll,.call-help-scroll{overflow:auto;border:1px solid var(--line-soft);border-radius:8px}.call-history-table{min-width:710px}.call-history-table>tbody>tr>td{padding:8px!important;vertical-align:top}.call-history-table>tbody>tr>td.call-history-text{text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;min-width:240px;line-height:1.5}.call-history-date{font-size:11.5px;color:var(--muted)}
.call-section-title{font-size:13px;font-weight:500;margin:0 0 12px}.call-settings-table>tbody>tr>td{padding:9px 8px!important;white-space:normal;line-height:1.7}.call-settings-table td:nth-child(2){text-align:left}.call-settings-table input{display:inline-block;width:68px;padding:5px 7px;margin:0 4px;text-align:center}.call-settings-note{display:flex;align-items:flex-start;gap:7px;color:var(--muted);font-size:11.5px;margin:14px 0 8px}.call-settings-updated{margin:0}.call-form-errors{color:#ff8585;margin-bottom:12px}.call-form-errors ul{padding-left:20px;margin:0}.call-fragment .is-invalid{border-color:#ff6b6b!important}.call-help-table>tbody>tr>td{padding:3px 4px!important;white-space:normal;line-height:1.5}.call-help-table td:nth-child(2){text-align:left}.call-help-table .call-assessment{white-space:normal}.call-help-assessment-title{margin-top:20px}.call-help-modal .modal-footer{border-color:var(--line-soft)}
.call-problem-switch{position:relative;display:inline-block;width:30px;height:17px;vertical-align:middle}.call-problem-switch input{opacity:0;width:0;height:0}.call-problem-switch i{position:absolute;inset:0;background:var(--panel-3);border-radius:999px;cursor:pointer;transition:.15s}.call-problem-switch i:before{content:'';position:absolute;width:11px;height:11px;left:3px;top:3px;background:var(--muted);border-radius:50%;transition:.15s}.call-problem-switch input:checked+i{background:rgba(255,171,41,.32)}.call-problem-switch input:checked+i:before{transform:translateX(13px);background:#ffab29}.call-problem-switch input:disabled+i{opacity:.5;cursor:wait}.call-problem-switch input:focus-visible+i{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:1100px){.calls-toolbar{flex-wrap:wrap}.call-counters{margin-left:auto}.calls-search{width:165px}.call-report-meta{flex-wrap:wrap;justify-content:flex-start}.call-report-meta>div{flex:1 1 130px}}
@media(max-width:760px){.app-main:has(.calls-page){height:calc(100dvh - 52px);min-height:0}.calls-page{min-height:0}.call-counters{order:3;width:100%;margin-left:0;flex-wrap:wrap}.calls-search{margin-left:auto;min-width:120px;flex:1}.call-counter{padding:4px 9px}.call-report-grid{grid-template-columns:1fr;gap:16px}.call-settings-table{min-width:610px}.call-report-meta{gap:12px}.call-help-table .call-category{padding:1px 6px}.call-help-table>tbody>tr>td{padding:2px 4px!important}.call-fragment{padding:12px}.call-modal-actions{flex-wrap:wrap}}
.call-time-row{display:flex;align-items:center;gap:12px}.call-fixed-time{display:inline-flex;align-items:center;gap:7px;flex:none;background:var(--panel-2);border:1px solid var(--line);border-radius:8px;color:var(--muted);padding:7px 10px;font-size:12px}.call-fixed-time time{font-weight:500;color:var(--text)}
input.call-problem-toggle{appearance:none!important;-webkit-appearance:none!important;display:inline-block;width:30px!important;height:17px!important;min-width:30px;margin:0;vertical-align:middle;border:0!important;border-radius:999px!important;background:var(--panel-3)!important;position:relative;cursor:pointer;transition:background .15s}
input.call-problem-toggle:before{content:'';position:absolute;width:11px;height:11px;left:3px;top:3px;border-radius:50%;background:var(--muted);transition:transform .15s,background .15s}input.call-problem-toggle:checked{background:rgba(255,171,41,.32)!important}input.call-problem-toggle:checked:before{transform:translateX(13px);background:#ffab29}input.call-problem-toggle:disabled{opacity:.5;cursor:wait}input.call-problem-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.call-category-picker{position:relative;flex:none;min-width:165px}.call-category-trigger{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;min-height:34px;background:var(--panel-2);border:1px solid var(--line);border-radius:8px;padding:4px 10px;color:var(--text);font-size:12.5px;text-align:left}.call-category-trigger:after{content:'';width:6px;height:6px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);margin:0 2px 3px 4px}.call-category-trigger:hover{border-color:var(--dim)}.call-category-options{position:absolute;left:0;top:calc(100% + 6px);z-index:30;min-width:100%;width:max-content;background:var(--panel-2);border:1px solid var(--line);border-radius:10px;padding:5px;box-shadow:0 14px 34px rgba(0,0,0,.5)}.call-category-options button{display:flex;align-items:center;width:100%;background:transparent;border:0;border-radius:6px;padding:6px 8px;font-size:12.5px;color:var(--muted);text-align:left}.call-category-options button:hover,.call-category-options button[aria-selected=true]{background:var(--panel-3);color:var(--text)}
.remote-modal-body .call-modal-actions{position:sticky;bottom:-12px;background:var(--panel);padding:10px 0 0;z-index:3}#callHelpModal .modal-footer{background:var(--panel)}
@media(max-width:760px){.call-time-row{flex-wrap:wrap}.call-category-picker{min-width:150px}}
/* Prototype report panel: 60vw, with a 760px desktop minimum. */
#remotePageModal .modal-dialog:has(.call-report-fragment){--bs-modal-width:min(max(760px,60vw),calc(100vw - 32px))}

.calls-nav-count{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;border-radius:9px;padding:0 4px;background:#e03131;color:#fff;font-size:10px;font-weight:700}.calls-nav-count[hidden]{display:none}
#employees-table .call-history-action{color:#9775fa;background:rgba(112,72,232,.2);border-color:transparent;padding:0}
#employees-table .call-history-action:hover{background:#7048e8;color:#fff}

.remote-modal-body .call-history-fragment>[data-call-history-subtitle]{display:none}

.searchable-select:has(.searchable-reset:not([hidden])) .searchable-trigger{padding-right:50px!important}.searchable-reset{position:absolute;right:27px;top:6px;background:transparent;border:0;color:var(--muted);width:22px;height:22px;line-height:20px;padding:0}.searchable-reset[hidden]{display:none}.searchable-clear{background:transparent;border:0;color:var(--muted);font-size:12px;margin-bottom:4px}

.call-settings-table .call-category{width:96px;min-width:96px;max-width:96px;padding:1px 6px;text-align:center;justify-content:center}

#employees-table .btn-group .call-history-action svg{width:15px;height:15px}
.remote-modal-body>.call-settings-fragment{max-width:none;background:var(--panel);border:1px solid var(--line-soft);border-radius:10px;padding:16px}
.call-help-modal .call-section-title{color:var(--muted)}
.call-help-table td:first-child .call-category{display:flex;width:100%;box-sizing:border-box;justify-content:center}
.call-help-table th:nth-child(3),.call-help-table td:nth-child(3){padding-left:16px!important;padding-right:16px!important;white-space:nowrap}
.searchable-trigger{min-height:40px!important;font-size:13.5px!important}
.searchable-panel .form-control{height:40px!important;font-size:13px!important}
.searchable-option{padding:8px 10px!important;font-size:13.5px!important}
.searchable-empty{font-size:13px!important}
.searchable-foot{font-size:13px!important;padding:9px 10px 7px}
