*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f5f6fa;color:#333}button,input,select,textarea{font:inherit}.layout{display:flex;min-height:100vh}.sidebar{width:240px;background:#1a1a2e;color:#fff;padding:20px 0;position:sticky;top:0;height:100vh;overflow-y:auto;flex-shrink:0}.sidebar h2{padding:0 20px 20px;font-size:18px;border-bottom:1px solid #333;margin-bottom:10px}.sidebar a{display:block;padding:12px 20px;color:#ccc;text-decoration:none;font-size:14px}.sidebar a:hover,.sidebar a.active{background:#16213e;color:#4ecdc4}.main{flex:1;padding:24px}.header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:16px}.header h1{font-size:22px}.card{background:#fff;border-radius:8px;padding:20px;margin-bottom:16px;box-shadow:0 1px 3px #00000014}.btn{padding:8px 20px;border:none;border-radius:6px;cursor:pointer;font-size:14px}.btn-primary{background:#4ecdc4;color:#fff}.btn-danger{background:#e74c3c;color:#fff}.btn-success{background:#27ae60;color:#fff}.btn-warning{background:#f39c12;color:#fff}.btn-gray{background:#95a5a6;color:#fff}.btn-secondary{background:#5865f2;color:#fff}.btn-sm{padding:6px 12px;font-size:12px}table{width:100%;border-collapse:collapse}table th,table td{padding:10px 12px;text-align:left;border-bottom:1px solid #eee;font-size:13px;vertical-align:top}table th{background:#f8f9fa;font-weight:600}.badge{display:inline-block;padding:2px 10px;border-radius:12px;font-size:12px;text-transform:capitalize}.badge-pending{background:#fff3cd;color:#856404}.badge-approved{background:#d4edda;color:#155724}.badge-rejected{background:#f8d7da;color:#721c24}.badge-draft{background:#e2e3e5;color:#383d41}.badge-blue{background:#cce5ff;color:#004085}.login-box{max-width:400px;margin:100px auto;background:#fff;padding:40px;border-radius:8px;box-shadow:0 2px 10px #0000001a}.login-box h2{text-align:center;margin-bottom:24px}.form-group{margin-bottom:16px}.form-group label{display:block;margin-bottom:6px;font-weight:500;font-size:14px}.form-group input,.form-group select,.form-group textarea,.toolbar input,.toolbar select{width:100%;padding:8px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px}.form-group textarea{min-height:90px;resize:vertical}.flex{display:flex;gap:12px;align-items:center}.wrap{flex-wrap:wrap}.flex-grow{flex:1}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat-card{background:#fff;padding:20px;border-radius:8px;text-align:center;box-shadow:0 1px 3px #00000014}.stat-card .num{font-size:32px;font-weight:700;color:#4ecdc4}.stat-card .label{font-size:13px;color:#888;margin-top:4px}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.section-title{font-size:16px;font-weight:700;margin-bottom:14px}.chart-row,.trend-row{display:grid;grid-template-columns:180px 1fr 60px;gap:12px;align-items:center;margin-bottom:10px}.chart-label{font-size:13px;color:#555}.chart-bar,.trend-stack{height:12px;background:#edf0f7;border-radius:999px;overflow:hidden;display:flex}.chart-bar span{display:block;height:100%;background:linear-gradient(90deg,#4ecdc4,#1abc9c);border-radius:999px}.trend-approve{display:block;height:100%;background:#27ae60}.trend-reject{display:block;height:100%;background:#e74c3c}.chart-value{text-align:right;font-size:12px;color:#666}.legend-row{display:flex;gap:12px;margin-top:12px}.legend{font-size:12px;color:#666;padding-left:14px;position:relative}.legend:before{content:"";width:10px;height:10px;border-radius:50%;position:absolute;left:0;top:3px}.legend-approve:before{background:#27ae60}.legend-reject:before{background:#e74c3c}.inline-chip-wrap{display:flex;flex-wrap:wrap;gap:8px}.chip{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:#eef3ff;color:#34495e;font-size:12px}.chip-soft{background:#ecfff3}.muted{color:#7f8c8d}.small{font-size:12px}.page-loader{display:flex;justify-content:center;padding:48px 0}.pagination{display:flex;justify-content:center;align-items:center;gap:12px;padding:16px}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-box{background:#fff;border-radius:8px;padding:24px;max-width:720px;width:92%;max-height:88vh;overflow-y:auto}.large-modal{max-width:980px}.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:12px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.check-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #dde5f2;border-radius:999px;background:#f8fbff}.checkbox-grid{display:flex;flex-wrap:wrap;gap:10px}.table-actions{display:flex;flex-wrap:wrap;gap:8px}.detail-cell{background:#fbfcff}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.success-banner{background:#e9f9ef;color:#1d7c43}.error-banner{background:#fdecec;color:#c0392b}.role-pill{padding:5px 10px;border-radius:999px;background:#eef2ff;color:#3f51b5;font-size:12px;text-transform:uppercase}.empty-state{color:#95a5a6;padding:16px 0}.spin{display:inline-block;width:20px;height:20px;border:3px solid #eee;border-top-color:#4ecdc4;border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1100px){.stats,.dashboard-grid,.detail-grid,.form-grid{grid-template-columns:1fr 1fr}.sidebar{width:210px}}@media(max-width:860px){.layout{flex-direction:column}.sidebar{width:100%;position:static;height:auto;overflow-y:visible}.header{flex-direction:column;align-items:flex-start}.stats,.dashboard-grid,.detail-grid,.form-grid,.chart-row,.trend-row{grid-template-columns:1fr}}.direction-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.direction-card-button{border:1px solid #dde5f2;border-radius:12px;background:#f8fbff;padding:16px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:6px;color:#1f2d3d}.direction-card-button strong{font-size:15px}.direction-card-button span{font-size:12px;color:#6b7a90}.direction-card-button.is-active{border-color:#4ecdc4;box-shadow:0 0 0 1px #4ecdc440;background:#eefdfa}.tag-editor-section{border-top:1px solid #eef2f7;padding-top:20px;margin-top:20px}.tag-editor-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}.tag-editor-header h3,.tag-editor-header h4{margin-bottom:4px}.tag-editor-header p{margin:0;color:#7f8c8d;font-size:13px}.tag-editor-header.compact{margin-bottom:12px}.inline-editor-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto 72px;gap:10px;align-items:center;margin-bottom:10px}.inline-editor-row.with-suggested{grid-template-columns:28px minmax(0,1fr) auto auto 72px}.inline-editor-row input{width:100%;padding:8px 12px;border:1px solid #ddd;border-radius:6px}.suggested-badge{font-size:11px;line-height:18px;color:#92400e;background:#fef3c7;border:1px solid #fcd34d;border-radius:4px;padding:0 6px;white-space:nowrap;cursor:default}.inline-checkbox{display:flex;align-items:center;gap:6px;font-size:13px;color:#556270}.small-number-input{max-width:120px}.nested-editor-card{border:1px solid #e8edf5;border-radius:12px;padding:16px;margin-bottom:14px;background:#fafcff}.nested-editor-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}.nested-editor-head>strong{flex:1}.tag-editor-subsection{border-top:1px dashed #dce4f0;padding-top:14px;margin-top:14px}.toggle-row{margin-bottom:6px;color:#556270;font-size:13px}.card-note{margin-top:18px;padding:14px 16px;border-radius:10px;background:#f6f8fb;color:#607080}.detail-grid-wide{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:860px){.tag-editor-header,.nested-editor-head{flex-direction:column;align-items:flex-start}.inline-editor-row{grid-template-columns:1fr}.small-number-input{max-width:none}}.tag-editor-footer{margin-top:28px;padding-top:20px;border-top:1px solid #eef2f7;display:flex;justify-content:flex-end}.bi-card-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:14px}.bi-icon-tile{width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}.bi-icon-tile.teal{background:#e3faf7}.bi-icon-tile.indigo{background:#eef0ff}.bi-icon-tile.amber{background:#fdf0dc}.bi-card-head h3{font-size:16px;font-weight:700;color:#1f2d3d}.bi-card-head p{font-size:13px;color:#7f8c8d;margin-top:2px}.bi-steps{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px}.bi-step{display:inline-flex;align-items:center;gap:8px;background:#f6f8fb;border:1px solid #e8edf5;border-radius:999px;padding:4px 12px 4px 5px;font-size:12.5px;color:#556270}.bi-step-num{width:20px;height:20px;border-radius:50%;background:#fff;border:1px solid #d8e0ec;color:#64748b;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.bi-arrow{color:#b6c2d3}.bi-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px}.bi-file-label{cursor:pointer}.bi-file-label:hover{filter:brightness(.95)}.bi-file-label input[type=file]{display:none}.bi-selected-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid #dbe6f3;background:#f8fbff;border-radius:8px;padding:5px 8px 5px 6px;font-size:13px}.bi-selected-name{max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1f2d3d}.bi-dropzone{border:2px dashed #cdd8e6;border-radius:12px;background:#fafcfe;padding:26px 18px;text-align:center;transition:border-color .15s ease,background .15s ease}.bi-dropzone.is-over{border-color:#4ecdc4;background:#ecfdfa}.bi-drop-hint{font-size:13px;color:#7f8c8d;margin-top:6px}.bi-file-list{margin-top:16px;display:flex;flex-direction:column;gap:6px;max-height:260px;overflow-y:auto;text-align:left}.bi-file-row{display:flex;align-items:center;gap:10px;border:1px solid #e8edf5;background:#fff;border-radius:8px;padding:7px 10px;font-size:13px}.bi-file-row.is-pending{opacity:.55}.bi-file-status{width:18px;text-align:center;flex-shrink:0;font-weight:700}.bi-file-status.ok{color:#1d7c43}.bi-file-status.err{color:#c0392b}.bi-file-icon{height:24px;padding:0 5px;border-radius:4px;background:#1d6f42;color:#fff;font-size:9px;font-weight:700;letter-spacing:.5px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.bi-file-name{flex:1;min-width:0;color:#1f2d3d;overflow-wrap:anywhere}.bi-file-meta{color:#94a3b8;font-size:11.5px;white-space:nowrap;flex-shrink:0}.bi-file-remove{border:none;background:#f1f4f9;color:#64748b;width:24px;height:24px;border-radius:6px;cursor:pointer;font-size:12px;line-height:1;flex-shrink:0}.bi-file-remove:hover{background:#fdecec;color:#c0392b}.bi-list-foot{display:flex;align-items:center;gap:10px;margin-top:8px;font-size:12px;color:#7f8c8d}.bi-progress{margin-top:14px}.bi-progress-bar{height:8px;border-radius:999px;background:#edf0f7;overflow:hidden}.bi-progress-bar>span{display:block;height:100%;background:linear-gradient(90deg,#4ecdc4,#1abc9c);transition:width .25s ease}.bi-progress-text{font-size:12px;color:#556270;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bi-spin-sm{width:12px;height:12px;border-width:2px}.bi-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:8px;margin-top:12px}.bi-stat{border-radius:8px;padding:8px 6px;text-align:center}.bi-stat .num{font-size:18px;font-weight:700;line-height:1.2}.bi-stat .label{font-size:11px;margin-top:2px;opacity:.85}.bi-stat.total{background:#eef0ff;color:#4753e0}.bi-stat.ok{background:#e9f9ef;color:#1d7c43}.bi-stat.rebound{background:#e8f4fd;color:#1b6ca8}.bi-stat.warn{background:#fef3c7;color:#92400e}.bi-stat.dup{background:#f1f4f9;color:#64748b}.bi-stat.err{background:#fdecec;color:#c0392b}.bi-file-result{margin-top:8px;border:1px solid #e8edf5;border-radius:8px;overflow:hidden}.bi-file-result-head{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#f8fafd;cursor:pointer}.bi-file-result-head:hover{background:#f2f6fb}.bi-file-result-body{padding:4px 12px 10px;border-top:1px solid #eef2f7}.bi-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.bi-dot.ok{background:#27ae60}.bi-dot.err{background:#e74c3c}.bi-chevron{color:#94a3b8;font-size:12px;transition:transform .15s ease;flex-shrink:0}.bi-chevron.open{transform:rotate(90deg)}.bi-pending{margin-top:14px;border:1px solid #e6ebf2;border-radius:10px}.bi-pending-head{padding:12px 16px;background:#f8fafd;border-bottom:1px solid #e6ebf2}.bi-pending-body{padding:14px 16px}.bi-pending-group{border:1px solid #e8edf5;border-radius:10px;padding:12px 14px;margin-bottom:12px;background:#fff}.bi-group-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px;font-size:13px}.bi-name-badge{background:#fef3c7;color:#92400e;border-radius:999px;padding:2px 12px;font-weight:700;font-size:13px}.bi-count-chip{background:#eef2ff;color:#4753e0;border-radius:999px;padding:2px 10px;font-size:12px;white-space:nowrap}.bi-bind-dialog{margin-top:10px;border:1px solid #c8d4e4;border-radius:10px;padding:12px;background:#f7fafd}.cev-dist-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 40px}.cev-dist-title{font-size:14px;font-weight:700;color:#1f2d3d;margin-bottom:12px}.cev-dist-note{font-size:12px;font-weight:400;color:#94a3b8;margin-left:8px}.cev-bar-row{display:grid;grid-template-columns:96px minmax(0,1fr) 36px;gap:10px;align-items:center;margin-bottom:9px;padding:2px 4px;border-radius:6px}.cev-bar-row:hover{background:#f6f8fb}.cev-bar-label{font-size:12.5px;color:#556270;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cev-bar-track{display:block;height:12px;background:#edf0f7;border-radius:4px;overflow:hidden}.cev-bar-fill{display:block;height:100%;border-radius:0 4px 4px 0;transition:width .25s ease}.cev-bar-value{font-size:12px;color:#666;text-align:right;font-variant-numeric:tabular-nums}.cev-item{border:1px solid #e6ebf2;border-left:4px solid #cbd5e1;border-radius:10px;padding:13px 16px;margin-bottom:12px;background:#fff;transition:box-shadow .15s ease}.cev-item:hover{box-shadow:0 2px 12px #1f2d3d17}.cev-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}.cev-name{font-size:15px;font-weight:700;color:#1f2d3d}.cev-date{margin-left:auto;color:#94a3b8;font-size:12.5px;white-space:nowrap;font-variant-numeric:tabular-nums}.cev-actions{display:inline-flex;gap:6px}.cev-risk-badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}.cev-direction-badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;background:#cce5ff;color:#004085;white-space:nowrap}.cev-type-chip{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;background:#eef3ff;color:#34495e;white-space:nowrap}.cev-comment{font-size:13.5px;line-height:1.8;color:#2d3a48;white-space:pre-wrap;margin-bottom:8px}.cev-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:6px 20px;font-size:12.5px;color:#66707d}.cev-meta b{color:#3b4757;font-weight:600;margin-right:2px}.cev-meta-wide{grid-column:1 / -1}.cev-chip-wrap{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:4px}.cev-toggle-chip{border:1px solid #dde5f2;border-radius:999px;background:#f8fbff;color:#556270;font-size:13px;padding:6px 14px;cursor:pointer;transition:all .12s ease}.cev-toggle-chip:hover{border-color:#4ecdc4}.cev-toggle-chip.is-on{background:#4ecdc4;border-color:#4ecdc4;color:#fff}.cev-custom-type{width:150px;padding:6px 12px;border:1px dashed #cdd8e6;border-radius:999px;font-size:13px}.cev-import-report{margin-top:12px;border:1px solid #e8edf5;border-radius:10px;background:#f8fafd;padding:12px 16px;font-size:13.5px;color:#47536b;display:grid;gap:4px}@media(max-width:1100px){.cev-dist-grid{grid-template-columns:1fr}}
