html,body,#root{height:100%;margin:0;padding:0}body{background-color:#f4f7f9;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;overflow:hidden}.app{--skill-col-width:60px;--row-height:32px;--header-top-height:40px;flex-direction:column;height:100%;display:flex}.app-header{background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);flex-shrink:0;justify-content:space-between;align-items:center;padding:12px 20px;display:flex;box-shadow:0 2px 10px #00000026}.header-left{flex-direction:column;justify-content:center;display:flex}.app-header h1{color:#fff;margin:0;font-size:1.4em;line-height:1.2}.info-lines{align-items:center;gap:15px;margin-top:4px;font-size:.8em;display:flex}.version-info{color:#999;font-weight:500}.version-info.saved{color:#28a745}.sync-info{color:#999;font-weight:500}.sync-info.sync-ok{color:#7ec8e3}.sync-info.sync-erreur,.sync-info.sync-hors-ligne{color:#e08a00;font-weight:600}.version-date{opacity:.7}.import-info{color:#7ec8e3;background:#7ec8e32e;border:1px solid #7ec8e359;border-radius:12px;align-items:center;gap:6px;max-width:320px;padding:3px 10px;font-weight:600;display:inline-flex}.import-info .file-label{opacity:.7;font-weight:500}.import-info .file-name{white-space:nowrap;text-overflow:ellipsis;max-width:220px;overflow:hidden}.header-actions{align-items:center;gap:10px;display:flex}.button-group{align-items:center;gap:6px;display:flex}.btn-header{cursor:pointer;letter-spacing:.2px;border:none;border-radius:8px;align-items:center;gap:5px;padding:8px 16px;font-size:.82em;font-weight:600;transition:all .25s;display:inline-flex;box-shadow:0 2px 4px #0003}.btn-header:hover{transform:translateY(-1px);box-shadow:0 4px 8px #00000040}.btn-header:active{transform:translateY(0);box-shadow:0 1px 2px #0003}.btn-import{color:#333;background:linear-gradient(135deg,#f6d365,#fda085)}.btn-import:hover{background:linear-gradient(135deg,#fda085,#f6d365)}.btn-save{color:#1a3a2a;background:linear-gradient(135deg,#43e97b,#38f9d7)}.btn-save:hover{background:linear-gradient(135deg,#38f9d7,#43e97b)}.btn-pdf{color:#2d1b4e;background:linear-gradient(135deg,#a18cd1,#fbc2eb)}.btn-pdf:hover{background:linear-gradient(135deg,#fbc2eb,#a18cd1)}.btn-pdf-service{color:#fff;background:linear-gradient(135deg,#667eea,#764ba2)}.btn-pdf-service:hover{background:linear-gradient(135deg,#764ba2,#667eea)}.drop-overlay{z-index:9999;color:#fff;box-sizing:border-box;background-color:#007bffd9;border:5px dashed #fff;flex-direction:column;justify-content:center;align-items:center;font-size:2em;font-weight:700;display:flex;position:fixed;inset:0}.drop-overlay span{margin-top:10px;font-size:.6em;font-weight:400}.management-panel{background:linear-gradient(#f8f9fa,#eef1f5);border:1px solid #e0e3e8;border-bottom:none;border-radius:12px 12px 0 0;flex-wrap:nowrap;flex-shrink:0;align-items:center;gap:8px;min-height:50px;margin:10px 10px 0;padding:10px 12px;display:flex;overflow-x:auto;box-shadow:0 2px 6px #00000014}.panel-btn{color:#fff;cursor:pointer;white-space:nowrap;border:none;border-radius:8px;flex-shrink:0;padding:7px 14px;font-size:.82em;font-weight:600;transition:all .25s}.panel-btn:hover{transform:translateY(-1px)}.btn-people{background:linear-gradient(135deg,#667eea,#5a6fd6);box-shadow:0 2px 4px #667eea4d}.btn-people:hover{box-shadow:0 4px 8px #667eea59}.btn-structure{background:linear-gradient(135deg,#a18cd1,#9b7dd4);box-shadow:0 2px 4px #a18cd14d}.btn-structure:hover{box-shadow:0 4px 8px #a18cd159}.btn-stats{color:#333;background:linear-gradient(135deg,#f7971e,#ffd200);box-shadow:0 2px 4px #f7971e4d}.btn-stats:hover{box-shadow:0 4px 8px #f7971e59}.search-group,.filter-group{flex:1 1 0;min-width:80px}.management-panel select,.management-panel input[type=text]{box-sizing:border-box;background:#fff;border:1px solid #d0d5dd;border-radius:8px;width:100%;padding:6px 10px;font-size:.9em;transition:border-color .2s,box-shadow .2s}.management-panel select:focus,.management-panel input[type=text]:focus{border-color:#667eea;outline:none;box-shadow:0 0 0 3px #667eea26}.action-btn{cursor:pointer;white-space:nowrap;border:none;border-radius:5px;flex-shrink:0;padding:5px 10px;font-size:.85em;font-weight:700;transition:all .2s}.toggle-multi-btn{color:#fff;background:#343a40;border-radius:8px;margin-left:10px}.toggle-multi-btn.open{background:#23272b}.btn-reset{color:#dc3545;cursor:pointer;background:#fff;border:2px solid #dc3545;border-radius:8px;flex-shrink:0;margin-left:5px;padding:4px 10px;font-weight:700;transition:all .2s}.btn-reset:hover{color:#fff;background:#dc3545}.zoom-controls{border-left:1px solid #d0d5dd;flex-shrink:0;align-items:center;gap:2px;margin-left:5px;padding-left:8px;display:flex}.zoom-controls.no-border{border-left:none;padding-left:0}.btn-zoom{color:#fff;text-align:center;cursor:pointer;background:#667eea;border:none;border-radius:6px;width:26px;height:26px;padding:0;font-size:.85em;line-height:26px;transition:all .2s}.btn-zoom:hover{background:#5a6fd6;transform:scale(1.1)}.inline-check{white-space:nowrap;cursor:pointer;align-items:center;gap:3px;margin-left:6px;font-size:.85em;display:flex}.inline-check input{margin:0}.inline-check.mobility{color:#856404}.skill-count-badge{color:#fff;white-space:nowrap;background-color:#17a2b8;border-radius:12px;flex-shrink:0;align-items:center;gap:5px;padding:4px 10px;font-size:.85em;font-weight:700;display:flex}.skill-count-badge.multi-mode{background-color:#6f42c1}.skill-count-badge .count-number{font-size:1.15em}.skill-count-badge .count-secondary{opacity:.75;font-size:.95em}.multi-filters-panel{background-color:#f8f9fa;border:1px solid #ddd;border-top:none;border-radius:0 0 8px 8px;flex-shrink:0;margin:0 10px 5px;padding:10px;font-size:.9em;box-shadow:0 2px 4px #0000000d}.multi-filter-row{align-items:flex-start;gap:10px;margin-bottom:8px;display:flex}.multi-filter-row.dashed{border-top:1px dashed #ddd;margin-bottom:0;padding-top:8px}.multi-filter-label{color:#555;text-align:right;flex-shrink:0;width:100px;padding-top:5px;font-weight:700}.multi-filter-container{flex-wrap:wrap;flex:1;align-items:center;gap:6px;display:flex}.multi-placeholder{color:#888;font-style:italic}.checkbox-pill{cursor:pointer;-webkit-user-select:none;user-select:none;color:#333;background-color:#fff;border:1px solid #0000;border-radius:15px;align-items:center;gap:5px;padding:4px 10px;font-size:.9em;font-weight:500;transition:all .2s;display:inline-flex}.checkbox-pill:hover{filter:brightness(.95)}.checkbox-pill input{cursor:pointer;accent-color:#333;pointer-events:none;margin:0}.checkbox-pill.active{font-weight:700;box-shadow:0 1px 2px #0000001a}.status-container{flex-shrink:0;justify-content:space-between;align-items:baseline;gap:10px;padding:0 10px;display:flex}.status-message{height:20px;margin:0 0 5px;font-size:.9em}.context-menu{z-index:10000;background:#fff;border:1px solid #ccc;border-radius:4px;min-width:120px;font-size:.9em;position:fixed;overflow:hidden;box-shadow:2px 2px 5px #0003}.context-menu-item{cursor:pointer;color:#333;align-items:center;gap:8px;padding:8px 15px;display:flex}.context-menu-item:hover{background-color:#f0f0f0}.context-menu-item.disabled{color:#ccc;pointer-events:none}@keyframes toast-fade{0%,75%{opacity:1}to{opacity:0}}.clipboard-toast{color:#fff;z-index:10001;background:#333;border-radius:5px;padding:10px 20px;animation:2s forwards toast-fade;position:fixed;bottom:20px;right:20px}.sync-toast{color:#fff;z-index:10002;background-color:#333;border-radius:30px;align-items:center;gap:10px;padding:10px 20px;display:flex;position:fixed;bottom:20px;left:50%;transform:translate(-50%);box-shadow:0 4px 6px #0003}.toast-success{background-color:#28a745}.toast-info{background-color:#17a2b8}.toast-danger{background-color:#dc3545}.empreinte{color:#999;white-space:nowrap;text-align:right;margin:0;font-size:.7em}.table-container{background-color:#fff;border-radius:8px;flex-grow:1;margin:5px 10px 10px;position:relative;overflow:auto;box-shadow:0 2px 4px #0000001a}.table-container.exporting{width:fit-content;height:auto;overflow:visible}.skills-table{border-collapse:separate;border-spacing:0;table-layout:fixed;border-top:1px solid #999;border-left:1px solid #999;width:max-content;min-width:100%;font-size:.8em}.skills-table th,.skills-table td{text-align:center;white-space:normal;vertical-align:middle;word-wrap:break-word;box-sizing:border-box;background-clip:padding-box;border-bottom:1px solid #999;border-right:1px solid #999;padding:4px;overflow:hidden}.skills-table tbody tr{height:var(--row-height)}.skills-table tbody td{height:var(--row-height);max-height:var(--row-height)}.skill-name-block{margin-bottom:2px;font-size:12px;font-weight:600;line-height:1.2;display:block}.skill-detail-block{color:#555;opacity:.9;font-size:10px;font-weight:400;line-height:1.1;display:block}.skills-table:not(.single-service-view) th:not(:first-child),.skills-table:not(.single-service-view) td:not(:first-child){width:var(--skill-col-width);min-width:var(--skill-col-width);max-width:var(--skill-col-width)}.skills-table.single-service-view{width:100%!important}.skills-table.single-service-view th:not(:first-child),.skills-table.single-service-view td:not(:first-child){width:auto}.service-header-row th:first-child{z-index:1000;vertical-align:middle;background-color:#fff;height:auto;position:sticky;top:0;left:0;width:150px!important;min-width:150px!important;max-width:150px!important}.service-header-row th:not(:first-child){z-index:900;height:var(--header-top-height);font-size:13px;position:sticky;top:0;box-shadow:0 1px #999}.skill-header-row th{top:var(--header-top-height);z-index:800;color:#333;vertical-align:top;background-color:#f0f0f0;padding-top:5px;position:sticky}.skills-table tbody td:first-child{z-index:700;background-color:#fff;font-weight:700;position:sticky;left:0;box-shadow:1px 0 #999;width:150px!important;min-width:150px!important;max-width:150px!important}.competence-cell{cursor:pointer;-webkit-user-select:none;user-select:none;font-size:11px;line-height:1.2;position:relative}.competence-cell .cell-detail{white-space:normal;color:#444;font-size:.9em;font-style:italic}.service-header-clickable{cursor:pointer;transition:opacity .2s}.cell-obsolete:after{content:"";pointer-events:none;z-index:1;background-color:#ffffff80;position:absolute;inset:0}.cell-obsolete{color:#888;font-style:italic}.person-row-archived{color:#999;text-decoration:line-through;background-color:#f2f2f2!important}.person-row-mobility{color:#c0392b;font-style:italic;font-weight:700;background-color:#fff5f5!important}.modal{z-index:2000;background-color:#0006;position:fixed;inset:0;overflow:auto}.modal-content{box-sizing:border-box;background-color:#fefefe;border:1px solid #888;border-radius:10px;width:80%;max-width:900px;margin:5% auto;padding:20px}.modal-header{justify-content:space-between;align-items:center;gap:10px;display:flex}.modal-header h2{margin:.6em 0}.close-btn{color:#aaa;float:right;cursor:pointer;background:0 0;border:none;padding:0;font-size:28px;font-weight:700;line-height:1}.close-btn:hover{color:#666}.form-group{margin-bottom:15px}.form-group input,.form-group select{box-sizing:border-box;border:1px solid #ccc;border-radius:4px;width:100%;padding:8px}.form-group.grow{flex:1}.form-group.color-field{width:80px}.form-group input[type=color]{height:38px}.form-grid{grid-template-columns:1fr 2fr;gap:20px;display:grid}.status-add-row{align-items:flex-end;gap:10px;display:flex}.status-add-row .form-group{margin-bottom:0}.comp-form-row{gap:10px;display:flex}.comp-form-actions{gap:5px;display:flex}.comp-form-actions button[type=button]{padding:8px}.modal-list,.people-list{border:1px solid #ddd;margin:0;padding:10px;list-style:none;overflow-y:auto}.modal-list{max-height:250px}.people-list{border-radius:4px;max-height:40vh;padding:0}.modal-list li{border-bottom:1px solid #eee;justify-content:space-between;align-items:center;padding:8px;display:flex}.modal-list li.active{outline-offset:-2px;outline:2px solid #667eea}.modal-list li .list-name{flex:1;font-weight:700}.skill-associated{border-left:5px solid #28a745}.color-box{border:1px solid #ccc;width:20px;height:20px;margin-right:10px;display:inline-block}.people-list li{background-color:#f9f9f9;border-bottom:1px solid #eee;justify-content:space-between;align-items:center;padding:10px;display:flex}.people-list li.person-archived{opacity:.6;background-color:#e9ecef}.people-list li.person-mobility{background-color:#fffbe6}.person-name{flex:1;font-weight:700}.person-name.archived{text-decoration:line-through}.person-name.mobility{color:#c0392b;font-style:italic}.person-date{color:#e67e22;margin-left:8px;font-size:.75em;font-weight:600}.person-right{align-items:center;gap:10px;display:flex}.status-badge{color:#222;white-space:nowrap;border:1px solid #0000001a;border-radius:12px;padding:4px 8px;font-size:.85em;font-weight:700}.row-actions{flex-shrink:0;align-items:center;gap:4px;display:flex}.manage-action-btn{color:#fff;cursor:pointer;background-color:#28a745;border:none;border-radius:4px;padding:8px 15px;font-weight:700}.btn-save-comp{background-color:#ff7878;flex-grow:1}.btn-status-manage{color:#fff;cursor:pointer;background-color:#17a2b8;border:none;border-radius:4px;padding:8px 12px}.btn-edit-service{margin-bottom:8px}.btn-blue{color:#fff;background-color:#007bff}.btn-red{color:#fff;background-color:#dc3545}.btn-teal{color:#fff;background-color:#17a2b8}.btn-orange{color:#fff;background-color:#fd7e14}.btn-yellow{color:#333;background-color:#ffc107}.btn-gray{color:#fff;background-color:#6c757d}.btn-move{background-color:#f8f9fa;border:1px solid #ccc}.btn-move:disabled{opacity:.3}.btn-crit{cursor:pointer;background:0 0;border:none;padding:2px 4px;font-size:1.2em}.cell-edit-actions{flex-wrap:wrap;justify-content:space-between;gap:5px;margin-top:20px;display:flex}.cell-edit-actions button{cursor:pointer;border:none;border-radius:5px;flex:1;min-width:80px;padding:10px;font-weight:700}.cell-save-btn{color:#fff;background-color:#28a745;flex:2!important}.cell-color-btn{color:#333;background-color:#ffc107}.cell-clear-btn{color:#fff;background-color:#dc3545}.cell-obsolete-btn{color:#fff;background-color:#6c757d;border:1px solid #ccc!important}.btn-toggled-on{box-shadow:inset 0 3px 5px #00000080;color:#ddd!important;background-color:#495057!important;border:2px solid #222!important}.stats-modal .modal-content{max-width:1100px;max-height:90vh;overflow-y:auto}.stat-tabs{flex-wrap:wrap;gap:5px;margin-bottom:15px;display:flex}.stat-tab{cursor:pointer;background:#fff;border:1px solid #ccc;border-radius:20px;padding:6px 14px;font-size:.85em;font-weight:500}.stat-tab.active{color:#fff;background:#e67e22;border-color:#e67e22}.stats-toolbar{align-items:center;gap:10px;margin-bottom:10px;display:flex}.stats-search{border:1px solid #ccc;border-radius:20px;flex:1;padding:6px 12px;font-size:.9em}.btn-stats-pdf{color:#fff;cursor:pointer;white-space:nowrap;background:#6f42c1;border:none;border-radius:20px;padding:6px 14px;font-size:.85em;font-weight:600}.btn-stats-pdf:disabled{opacity:.7;cursor:default}.stats-grid{grid-template-columns:1fr 1fr;gap:20px;margin-top:15px;display:grid}.stat-card{background:#f8f9fa;border:1px solid #e0e0e0;border-radius:10px;padding:15px}.stat-card h3{color:#444;border-bottom:2px solid #ddd;margin:0 0 12px;padding-bottom:6px;font-size:1em}.stat-card.full-width{grid-column:1/-1}.stat-bar-row{align-items:center;gap:8px;margin-bottom:6px;font-size:.85em;display:flex}.stat-bar-hoverable{cursor:pointer;position:relative}.stat-bar-label{text-align:right;color:#333;white-space:nowrap;text-overflow:ellipsis;flex-shrink:0;width:140px;font-weight:600;overflow:hidden}.stat-bar-track{background:#e9ecef;border-radius:10px;flex:1;height:20px;position:relative;overflow:hidden}.stat-bar-fill{color:#fff;border-radius:10px;justify-content:flex-end;align-items:center;min-width:fit-content;height:100%;padding-right:6px;font-size:.75em;font-weight:700;transition:width .5s;display:flex}.stat-bar-value{text-align:left;color:#333;flex-shrink:0;width:40px;font-weight:700}.holders-tooltip{z-index:2100;color:#fff;white-space:nowrap;background:#333;border-radius:6px;margin-top:4px;padding:8px 12px;font-size:.82em;display:none;position:absolute;top:100%;left:10%;box-shadow:0 4px 12px #0000004d}.holders-tooltip:before{content:"";border-bottom:6px solid #333;border-left:6px solid #0000;border-right:6px solid #0000;position:absolute;top:-6px;left:20px}.holders-tooltip.visible{display:block}.holders-tooltip .holder{border-bottom:1px solid #fff3;padding:2px 0}.holders-tooltip .no-holder{color:#fcc}.stat-kpi-row{flex-wrap:wrap;gap:15px;margin-bottom:10px;display:flex}.stat-kpi{text-align:center;background:#fff;border:1px solid #e0e0e0;border-radius:8px;flex:1;min-width:100px;padding:12px 8px}.stat-kpi .kpi-value{color:#2c3e50;font-size:2em;font-weight:800}.stat-kpi .kpi-label{color:#888;margin-top:2px;font-size:.75em}.stat-table{border-collapse:collapse;width:100%;font-size:.82em}.stat-table th,.stat-table td{text-align:center;border-bottom:1px solid #eee;padding:6px 8px}.stat-table th:first-child,.stat-table td:first-child,.stat-table .left{text-align:left}.stat-table th{background:#e9ecef;font-weight:700;position:sticky;top:0}.stat-table tr:hover{background:#f0f4ff}.stat-table .strong{font-weight:700}.stat-table .risk-cell{font-size:.85em}.stat-table .dash{color:#ccc}.row-danger{background:#fce4e4}.row-warning{background:#fff3cd}.nobody{color:red;font-weight:700}.stat-scroll{overflow:auto}.stat-hint{color:#888;margin-top:-8px;font-size:.8em}.stat-ok{color:#27ae60;font-weight:700}.stat-warn{color:#e67e22;font-size:.85em}.stat-empty{color:#999;text-align:center}.stat-empty.big{padding:40px}.stat-empty-left{color:#999}.chip-list{flex-wrap:wrap;gap:8px;display:flex}.chip{background:#fff3e0;border:1px solid #e67e22;border-radius:20px;padding:6px 12px;font-weight:600}
