/* === RESET ET BASE === */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background: #f5f5f5; color: #333; height: 100vh; overflow: hidden; } /* === PAGES === */ .page { display: none; width: 100%; height: 100vh; } .page.active { display: flex; } /* === PAGE DE CONNEXION === */ #loginPage { justify-content: center; align-items: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } .login-container { background: white; padding: 40px; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); width: 90%; max-width: 400px; } .login-container h1 { text-align: center; color: #667eea; margin-bottom: 10px; font-size: 32px; } /* Indicateur de statut SignalR */ .signalr-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 15px 0; padding: 10px; background: #f8f9fa; border-radius: 5px; font-size: 14px; } .signalr-indicator { width: 12px; height: 12px; border-radius: 50%; background-color: #999; animation: pulse 2s infinite; } .signalr-indicator.connected { background-color: #4CAF50; animation: none; } .signalr-indicator.connecting { background-color: #FFC107; animation: pulse 1s infinite; } .signalr-indicator.disconnected, .signalr-indicator.error { background-color: #F44336; animation: none; } .signalr-indicator.disabled { background-color: #999; animation: none; } @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } } .signalr-text { color: #666; } .login-container h2 { text-align: center; color: #666; margin-bottom: 30px; font-size: 18px; font-weight: normal; } #loginForm input { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; background-color: white; } #loginForm input:disabled { background-color: #f5f5f5; cursor: not-allowed; } /* === CUSTOMISATION CHOICES.JS === */ .choices-terminal { margin-bottom: 15px; font-size: 14px; } .choices-terminal .choices__inner { background-color: white; border: 1px solid #ddd; border-radius: 5px; padding: 10px 12px; min-height: 44px; font-size: 14px; transition: border-color 0.2s; } .choices-terminal .choices__inner:hover { border-color: #b1b1b1; } .choices-terminal.is-focused .choices__inner, .choices-terminal.is-open .choices__inner { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .choices-terminal.is-open .choices__inner { border-radius: 5px 5px 0 0; } .choices-terminal .choices__list--dropdown { border: 1px solid #667eea; border-top: none; border-radius: 0 0 5px 5px; margin-top: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.15); background: white; } .choices-terminal .choices__list--dropdown .choices__list { max-height: 280px; overflow-y: auto; overflow-x: hidden; } /* Scrollbar personnalisée */ .choices-terminal .choices__list--dropdown .choices__list::-webkit-scrollbar { width: 8px; } .choices-terminal .choices__list--dropdown .choices__list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; } .choices-terminal .choices__list--dropdown .choices__list::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; } .choices-terminal .choices__list--dropdown .choices__list::-webkit-scrollbar-thumb:hover { background: #a8a8a8; } /* Barre de recherche dans le dropdown */ .choices-terminal .choices__input { background-color: #f8f9fa; border: 1px solid #e1e4e8; border-radius: 4px; font-size: 14px; padding: 8px 12px; margin: 8px; width: calc(100% - 16px); box-sizing: border-box; } .choices-terminal .choices__input:focus { outline: none; border-color: #667eea; background-color: white; } .choices-terminal .choices__input::placeholder { color: #999; font-style: italic; } /* Items */ .choices-terminal .choices__item--choice { padding: 10px 15px; font-size: 14px; color: #333; transition: background-color 0.15s; position: relative; } .choices-terminal .choices__item--choice:hover { background-color: #f8f9fa; } .choices-terminal .choices__item--choice.is-highlighted { background-color: #e8efff; color: #333; } .choices-terminal .choices__item--choice.is-highlighted::after { content: '↵'; position: absolute; right: 15px; color: #667eea; font-size: 16px; } .choices-terminal .choices__item--choice.is-selected { background-color: #667eea; color: white; font-weight: 500; } .choices-terminal .choices__item--choice.is-selected::after { content: '✓'; position: absolute; right: 15px; color: white; } /* Groupes de postes */ .choices-terminal .choices__group { margin: 0; } .choices-terminal .choices__heading { padding: 10px 15px 6px 15px; font-size: 11px; font-weight: 600; color: #6c757d; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #e9ecef; background: linear-gradient(to bottom, #f8f9fa, #ffffff); position: sticky; top: 0; z-index: 1; } .choices-terminal .choices__group:first-child .choices__heading { border-top: 0; } .choices-terminal .choices__group .choices__item { padding-left: 25px; } .choices-terminal .choices__placeholder { opacity: 0.6; color: #666; } /* Message "aucun résultat" */ .choices-terminal .choices__item--disabled { background-color: #f8f9fa; color: #999; font-style: italic; text-align: center; padding: 15px; } /* Animation d'ouverture */ @keyframes choicesSlideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .choices-terminal.is-open .choices__list--dropdown { animation: choicesSlideDown 0.2s ease-out; } /* Flèche du dropdown */ .choices-terminal::after { content: '▼'; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #666; font-size: 10px; transition: transform 0.2s; } .choices-terminal.is-open::after { transform: translateY(-50%) rotate(180deg); } /* Bouton de suppression */ .choices-terminal .choices__button { background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjOTk5IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg=='); background-size: 8px; padding: 0; width: 8px; height: 8px; opacity: 0.5; margin: 0; transition: opacity 0.2s; } .choices-terminal .choices__button:hover { opacity: 1; } #loginForm button { width: 100%; padding: 12px; background: #667eea; color: white; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; transition: background 0.3s; } #loginForm button:hover { background: #5a6fd8; } .error-message { color: #e74c3c; text-align: center; margin-top: 10px; font-size: 14px; } /* === PAGE PRINCIPALE === */ #mainPage { flex-direction: column; } /* === HEADER === */ header { background: white; border-bottom: 1px solid #e0e0e0; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.05); } .header-left h1 { display: inline-block; font-size: 20px; color: #667eea; margin-right: 20px; } .agent-name { color: #666; font-size: 14px; } .call-status { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: #f8f8f8; border-radius: 20px; } .status-indicator { width: 10px; height: 10px; border-radius: 50%; animation: pulse 2s infinite; } .status-indicator.available { background: #4CAF50; } .status-indicator.busy { background: #FF9800; animation: pulse 1s infinite; } .status-indicator.offline { background: #9E9E9E; animation: none; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .btn-secondary { padding: 8px 16px; background: white; border: 1px solid #ddd; border-radius: 5px; cursor: pointer; transition: all 0.3s; margin-left: 10px; } .btn-secondary:hover { background: #f5f5f5; border-color: #667eea; color: #667eea; } /* === ALERTE APPEL ENTRANT === */ .incoming-call-alert { display: none; background: linear-gradient(135deg, #FF6B6B, #FF8E53); color: white; padding: 20px; align-items: center; gap: 20px; animation: slideDown 0.5s; } .incoming-call-alert.active { display: flex; } @keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } } .call-icon { font-size: 40px; animation: ring 1s infinite; } @keyframes ring { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(20deg); } 75% { transform: rotate(-20deg); } } .call-info { flex: 1; } .call-title { font-size: 14px; opacity: 0.9; margin-bottom: 5px; } .call-center { font-size: 20px; font-weight: bold; margin-bottom: 5px; } .call-patient { font-size: 14px; opacity: 0.9; } .btn-accept { padding: 12px 30px; background: white; color: #FF6B6B; border: none; border-radius: 5px; font-size: 16px; font-weight: bold; cursor: pointer; transition: transform 0.2s; } .btn-accept:hover { transform: scale(1.05); } /* === CONTENEUR PRINCIPAL === */ .main-container { display: flex; flex: 1; overflow: hidden; } /* === SIDEBAR === */ .sidebar { width: 280px; background: white; border-right: 1px solid #e0e0e0; display: flex; flex-direction: column; } .sidebar h3 { padding: 20px; background: #f8f8f8; border-bottom: 1px solid #e0e0e0; font-size: 16px; color: #666; } .centers-list { flex: 1; overflow-y: auto; } .center-item { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.2s; } .center-item:hover { background: #f8f8f8; } .center-item.active { background: #f0f7ff; border-left: 3px solid #667eea; } .center-indicator { width: 12px; height: 12px; border-radius: 50%; margin-right: 15px; } .center-info { flex: 1; } .center-name { font-weight: 500; margin-bottom: 3px; } .center-phone { font-size: 12px; color: #999; } .center-status { color: #ddd; font-size: 10px; } .sidebar-footer { padding: 20px; background: #f8f8f8; border-top: 1px solid #e0e0e0; } .sidebar-footer h4 { font-size: 14px; color: #666; margin-bottom: 10px; } .daily-stats { display: flex; flex-direction: column; gap: 8px; } .stat-item { display: flex; justify-content: space-between; font-size: 13px; } .stat-value { font-weight: bold; color: #667eea; } /* === ZONE PRINCIPALE === */ .content { flex: 1; display: flex; flex-direction: column; background: #f5f5f5; } /* === ONGLETS === */ .tabs { display: flex; background: white; border-bottom: 1px solid #e0e0e0; overflow-x: auto; } .tab { padding: 12px 20px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; transition: all 0.3s; font-size: 14px; } .tab:hover { background: #f8f8f8; } .tab.active { font-weight: 500; border-bottom-width: 3px; } /* === WEBVIEW CONTAINER === */ .webview-container { flex: 1; position: relative; background: white; margin: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; } .no-center-selected { display: flex; justify-content: center; align-items: center; height: 100%; color: #999; font-size: 16px; } .webview-wrapper { width: 100%; height: 100%; display: flex; flex-direction: column; } .webview-toolbar { display: flex; align-items: center; gap: 10px; padding: 10px; background: #f8f8f8; border-bottom: 1px solid #e0e0e0; } .webview-toolbar button { padding: 5px 10px; background: white; border: 1px solid #ddd; border-radius: 3px; cursor: pointer; } .webview-toolbar button:hover { background: #f0f0f0; } .webview-url { flex: 1; font-size: 12px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .planning-webview { flex: 1; width: 100%; } /* === NOTES === */ .notes-section { padding: 20px; background: white; margin: 0 20px 20px 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .notes-section h4 { margin-bottom: 10px; color: #666; font-size: 14px; } #quickNotes { width: 100%; height: 80px; padding: 10px; border: 1px solid #ddd; border-radius: 5px; resize: vertical; font-family: inherit; font-size: 13px; } .btn-small { margin-top: 10px; padding: 6px 12px; background: #667eea; color: white; border: none; border-radius: 4px; font-size: 13px; cursor: pointer; } .btn-small:hover { background: #5a6fd8; } /* === MODAL === */ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); } .modal-content { background: white; margin: 10% auto; padding: 30px; width: 80%; max-width: 500px; border-radius: 8px; animation: fadeIn 0.3s; } @keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } } .close { float: right; font-size: 28px; font-weight: bold; cursor: pointer; color: #999; } .close:hover { color: #333; } .modal-content h2 { margin-bottom: 20px; color: #333; } .simulated-calls-list { margin: 20px 0; max-height: 300px; overflow-y: auto; } .simulated-call-item { padding: 15px; border: 1px solid #e0e0e0; border-radius: 5px; margin-bottom: 10px; cursor: pointer; transition: all 0.2s; } .simulated-call-item:hover { background: #f8f8f8; border-color: #667eea; } .call-name { font-weight: 500; margin-bottom: 5px; } .call-details { font-size: 13px; color: #666; }.choices{position:relative;overflow:hidden;margin-bottom:24px;font-size:16px}.choices:focus{outline:0}.choices:last-child{margin-bottom:0}.choices.is-open{overflow:visible}.choices.is-disabled .choices__inner,.choices.is-disabled .choices__input{background-color:#eaeaea;cursor:not-allowed;-webkit-user-select:none;user-select:none}.choices.is-disabled .choices__item{cursor:not-allowed}.choices [hidden]{display:none!important}.choices[data-type*=select-one]{cursor:pointer}.choices[data-type*=select-one] .choices__inner{padding-bottom:7.5px}.choices[data-type*=select-one] .choices__input{display:block;width:100%;padding:10px;border-bottom:1px solid #ddd;background-color:#fff;margin:0}.choices[data-type*=select-one] .choices__button{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);padding:0;background-size:8px;position:absolute;top:50%;right:0;margin-top:-10px;margin-right:25px;height:20px;width:20px;border-radius:10em;opacity:.25}.choices[data-type*=select-one] .choices__button:focus,.choices[data-type*=select-one] .choices__button:hover{opacity:1}.choices[data-type*=select-one] .choices__button:focus{box-shadow:0 0 0 2px #005f75}.choices[data-type*=select-one] .choices__item[data-placeholder] .choices__button{display:none}.choices[data-type*=select-one]::after{content:"";height:0;width:0;border-style:solid;border-color:#333 transparent transparent;border-width:5px;position:absolute;right:11.5px;top:50%;margin-top:-2.5px;pointer-events:none}.choices[data-type*=select-one].is-open::after{border-color:transparent transparent #333;margin-top:-7.5px}.choices[data-type*=select-one][dir=rtl]::after{left:11.5px;right:auto}.choices[data-type*=select-one][dir=rtl] .choices__button{right:auto;left:0;margin-left:25px;margin-right:0}.choices[data-type*=select-multiple] .choices__inner,.choices[data-type*=text] .choices__inner{cursor:text}.choices[data-type*=select-multiple] .choices__button,.choices[data-type*=text] .choices__button{position:relative;display:inline-block;margin:0-4px 0 8px;padding-left:16px;border-left:1px solid #003642;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);background-size:8px;width:8px;line-height:1;opacity:.75;border-radius:0}.choices[data-type*=select-multiple] .choices__button:focus,.choices[data-type*=select-multiple] .choices__button:hover,.choices[data-type*=text] .choices__button:focus,.choices[data-type*=text] .choices__button:hover{opacity:1}.choices__inner{display:inline-block;vertical-align:top;width:100%;background-color:#f9f9f9;padding:7.5px 7.5px 3.75px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;min-height:44px;overflow:hidden}.is-focused .choices__inner,.is-open .choices__inner{border-color:#b7b7b7}.is-open .choices__inner{border-radius:2.5px 2.5px 0 0}.is-flipped.is-open .choices__inner{border-radius:0 0 2.5px 2.5px}.choices__list{margin:0;padding-left:0;list-style:none}.choices__list--single{display:inline-block;padding:4px 16px 4px 4px;width:100%}[dir=rtl] .choices__list--single{padding-right:4px;padding-left:16px}.choices__list--single .choices__item{width:100%}.choices__list--multiple{display:inline}.choices__list--multiple .choices__item{display:inline-block;vertical-align:middle;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:500;margin-right:3.75px;margin-bottom:3.75px;background-color:#005f75;border:1px solid #004a5c;color:#fff;word-break:break-all;box-sizing:border-box}.choices__list--multiple .choices__item[data-deletable]{padding-right:5px}[dir=rtl] .choices__list--multiple .choices__item{margin-right:0;margin-left:3.75px}.choices__list--multiple .choices__item.is-highlighted{background-color:#004a5c;border:1px solid #003642}.is-disabled .choices__list--multiple .choices__item{background-color:#aaa;border:1px solid #919191}.choices__list--dropdown,.choices__list[aria-expanded]{display:none;z-index:1;position:absolute;width:100%;background-color:#fff;border:1px solid #ddd;top:100%;margin-top:-1px;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;overflow:hidden;word-break:break-all}.is-active.choices__list--dropdown,.is-active.choices__list[aria-expanded]{display:block}.is-open .choices__list--dropdown,.is-open .choices__list[aria-expanded]{border-color:#b7b7b7}.is-flipped .choices__list--dropdown,.is-flipped .choices__list[aria-expanded]{top:auto;bottom:100%;margin-top:0;margin-bottom:-1px;border-radius:.25rem .25rem 0 0}.choices__list--dropdown .choices__list,.choices__list[aria-expanded] .choices__list{position:relative;max-height:300px;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.choices__list--dropdown .choices__item,.choices__list[aria-expanded] .choices__item{position:relative;padding:10px;font-size:14px}[dir=rtl] .choices__list--dropdown .choices__item,[dir=rtl] .choices__list[aria-expanded] .choices__item{text-align:right}@media (min-width:640px){.choices__list--dropdown .choices__item--selectable[data-select-text],.choices__list[aria-expanded] .choices__item--selectable[data-select-text]{padding-right:100px}.choices__list--dropdown .choices__item--selectable[data-select-text]::after,.choices__list[aria-expanded] .choices__item--selectable[data-select-text]::after{content:attr(data-select-text);font-size:12px;opacity:0;position:absolute;right:10px;top:50%;transform:translateY(-50%)}[dir=rtl] .choices__list--dropdown .choices__item--selectable[data-select-text],[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable[data-select-text]{text-align:right;padding-left:100px;padding-right:10px}[dir=rtl] .choices__list--dropdown .choices__item--selectable[data-select-text]::after,[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable[data-select-text]::after{right:auto;left:10px}}.choices__list--dropdown .choices__item--selectable.is-highlighted,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted{background-color:#f2f2f2}.choices__list--dropdown .choices__item--selectable.is-highlighted::after,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:.5}.choices__item{cursor:default}.choices__item--selectable{cursor:pointer}.choices__item--disabled{cursor:not-allowed;-webkit-user-select:none;user-select:none;opacity:.5}.choices__heading{font-weight:600;font-size:12px;padding:10px;border-bottom:1px solid #f7f7f7;color:gray}.choices__button{text-indent:-9999px;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer}.choices__button:focus,.choices__input:focus{outline:0}.choices__input{display:inline-block;vertical-align:baseline;background-color:#f9f9f9;font-size:14px;margin-bottom:5px;border:0;border-radius:0;max-width:100%;padding:4px 0 4px 2px}.choices__input::-webkit-search-cancel-button,.choices__input::-webkit-search-decoration,.choices__input::-webkit-search-results-button,.choices__input::-webkit-search-results-decoration{display:none}.choices__input::-ms-clear,.choices__input::-ms-reveal{display:none;width:0;height:0}[dir=rtl] .choices__input{padding-right:2px;padding-left:0}.choices__placeholder{opacity:.5}