.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;width:100%;background:var(--login-bg);position:relative;padding:1.5rem;transition:background var(--transition-normal)}.login-page:before{content:"";position:absolute;top:10%;left:15%;width:300px;height:300px;background:#c92c3a1f;border-radius:50%;filter:blur(80px);z-index:0;pointer-events:none}.login-page:after{content:"";position:absolute;bottom:10%;right:15%;width:350px;height:350px;background:#6366f11a;border-radius:50%;filter:blur(100px);z-index:0;pointer-events:none}.login-card{background:var(--login-card-bg);border:1px solid var(--login-card-border);-webkit-backdrop-filter:blur(var(--glass-blur));backdrop-filter:blur(var(--glass-blur));border-radius:var(--radius-lg);padding:2.5rem;width:100%;max-width:580px;box-shadow:0 20px 40px #00000014,var(--shadow-glow);z-index:1;animation:fadeIn var(--transition-normal) forwards;position:relative}.login-logo-container{display:flex;flex-direction:column;align-items:center;margin-bottom:2rem;text-align:center}.login-logo{font-family:var(--font-display);font-size:1.8rem;font-weight:800;color:var(--text-primary);letter-spacing:-.02em;display:flex;align-items:center;gap:.5rem;margin-bottom:.25rem}.login-logo span{color:var(--primary)}.login-subtitle{color:var(--text-muted);font-size:.85rem;text-transform:uppercase;letter-spacing:.1em;font-weight:600}.license-box-container{margin-bottom:1.5rem;border-top:1px solid var(--border);padding-top:1.25rem}.license-title{color:var(--text-primary);font-size:.85rem;font-weight:600;margin-bottom:.5rem}.license-textbox{background-color:var(--login-license-bg);border:1px solid var(--border);border-radius:var(--radius-md);color:var(--login-license-text);font-size:.78rem;height:140px;overflow-y:scroll;padding:.75rem;line-height:1.5;font-family:var(--font-sans)}.license-textbox p{margin-bottom:.5rem}.license-agree-wrapper{display:flex;align-items:flex-start;gap:.5rem;margin-top:.75rem;color:var(--text-secondary);font-size:.85rem;cursor:pointer}.license-agree-wrapper input[type=checkbox]{accent-color:var(--primary);margin-top:.2rem;cursor:pointer}.login-inputs-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.5rem}@media (max-width: 480px){.login-inputs-row{grid-template-columns:1fr}}.login-input-group{display:flex;flex-direction:column;gap:.4rem}.login-input-group label{font-size:.8rem;font-weight:500;color:var(--text-secondary)}.login-field{background-color:var(--login-input-bg);border:1px solid var(--login-input-border);border-radius:var(--radius-md);color:var(--login-input-text);padding:.65rem .9rem;font-size:.9rem;transition:all var(--transition-fast)}.login-field:focus{outline:none;border-color:var(--primary);background-color:var(--bg-card);box-shadow:0 0 0 3px var(--primary-glow)}.login-error{background-color:#ef444414;border:1px solid rgba(239,68,68,.2);color:#ef4444;padding:.75rem;border-radius:var(--radius-md);font-size:.8rem;margin-bottom:1.25rem;display:flex;align-items:center;gap:.5rem}.login-btn-row{display:flex;gap:1rem}.login-btn-row .btn{flex:1}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-sans);background-color:var(--bg-app);color:var(--text-primary);min-height:100vh;overflow-x:hidden;line-height:1.5;transition:background-color var(--transition-normal),color var(--transition-normal)}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--bg-app)}::-webkit-scrollbar-thumb{background:var(--text-muted);border-radius:var(--radius-full)}::-webkit-scrollbar-thumb:hover{background:var(--text-secondary)}.app-container{display:flex;min-height:100vh;position:relative}.main-content{flex:1;display:flex;flex-direction:column;min-width:0;padding:1.5rem;margin-left:260px;transition:margin-left var(--transition-normal)}@media (max-width: 768px){.main-content{margin-left:0;padding:5rem 1rem 1rem}}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in{animation:fadeIn var(--transition-normal) forwards}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.6rem 1.2rem;font-family:var(--font-sans);font-weight:500;font-size:.9rem;border-radius:var(--radius-md);border:1px solid transparent;cursor:pointer;transition:all var(--transition-fast);text-decoration:none}.btn-primary{background:linear-gradient(135deg,var(--primary),#a21a25);color:#fff;box-shadow:0 4px 10px var(--primary-glow)}.btn-primary:hover{transform:translateY(-1px);box-shadow:0 6px 14px var(--primary-glow);filter:brightness(1.1)}.btn-secondary{background-color:var(--bg-card);border-color:var(--border);color:var(--text-secondary)}.btn-secondary:hover{background-color:var(--bg-app);color:var(--text-primary);border-color:var(--text-muted)}.btn-danger{background-color:#ef4444;color:#fff}.btn-danger:hover{background-color:#dc2626}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;width:100vw;height:100vh;background-color:#0f172aad;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;z-index:999999!important;padding:1.5rem;overflow-y:auto}.modal-content{background-color:var(--bg-card);border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:0 25px 50px -12px #00000040;max-width:600px;width:100%;max-height:85vh;overflow-y:auto;padding:2rem;margin:auto;position:relative;animation:modalCenterPop .22s cubic-bezier(.16,1,.3,1) forwards}@keyframes modalCenterPop{0%{opacity:0;transform:scale(.96) translateY(-10px)}to{opacity:1;transform:scale(1) translateY(0)}}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;border-bottom:1px solid var(--border);padding-bottom:1rem}.modal-header h2{font-family:var(--font-display);font-weight:600;font-size:1.5rem}.modal-close-btn{background:none;border:none;color:var(--text-secondary);cursor:pointer;border-radius:var(--radius-sm);padding:.25rem;transition:all var(--transition-fast)}.modal-close-btn:hover{background-color:var(--border);color:var(--text-primary)}.form-group{margin-bottom:.6rem}.form-label{display:block;font-size:.82rem;font-weight:500;margin-bottom:.25rem;color:var(--text-secondary)}.form-label .required{color:var(--primary);margin-left:.15rem}.form-control{width:100%;padding:.45rem .75rem;font-size:.88rem;font-family:var(--font-sans);background-color:var(--bg-app);border:1px solid var(--border);border-radius:var(--radius-md);color:var(--text-primary);transition:all var(--transition-fast)}.form-control:focus{outline:none;border-color:var(--primary);background-color:var(--bg-card);box-shadow:0 0 0 3px var(--primary-glow)}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.spinner{width:1.5rem;height:1.5rem;border:2px solid rgba(0,0,0,.1);border-radius:50%;border-top-color:var(--primary);animation:spin .8s linear infinite}.metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem;margin-bottom:1.5rem}.metric-card{background-color:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md, 10px);padding:.65rem .85rem;display:flex;align-items:center;gap:.65rem;box-shadow:var(--shadow-sm);transition:transform var(--transition-fast),box-shadow var(--transition-fast);min-width:0}.metric-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.metric-icon-wrapper{width:2.15rem;height:2.15rem;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.metric-details{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}.metric-details h3{font-size:.8rem;text-transform:uppercase;color:var(--text-secondary);font-weight:700;letter-spacing:.025em;margin:0;line-height:1.2}.metric-details p{font-family:var(--font-display, inherit);font-size:1.3rem;font-weight:800;color:var(--text-primary);margin:.1rem 0;line-height:1.1}.metric-details span{font-size:.68rem;color:var(--text-muted);font-weight:500;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.board-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;margin-bottom:1.5rem}.board-title h1{font-family:var(--font-display);font-size:1.8rem;font-weight:700;color:var(--text-primary)}.board-title p{font-size:.85rem;color:var(--text-secondary)}.filters-container{background-color:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);padding:1.25rem;margin-bottom:1.5rem;box-shadow:var(--shadow-sm);transition:all var(--transition-normal)}.filters-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;cursor:pointer}.filters-header h3{font-size:.95rem;font-weight:600;display:flex;align-items:center;gap:.5rem}.filters-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin-top:1rem}.filters-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.25rem;border-top:1px solid var(--border);padding-top:1rem}.table-wrapper{background-color:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);overflow-x:hidden;margin-bottom:1.5rem;position:relative;width:100%}.dispatch-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;text-align:left;font-size:.76rem;transition:font-size var(--transition-fast)}.dispatch-table th{background-color:var(--bg-app);color:var(--text-secondary);font-weight:600;padding:.45rem .25rem;border-bottom:2px solid var(--border);white-space:nowrap;font-size:.74em;letter-spacing:.01em;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis}.sortable-th{transition:background-color var(--transition-fast),color var(--transition-fast)}.sortable-th:hover{background-color:#c92c3a14!important;color:var(--primary)!important}.sortable-th:hover .th-sort-icon-hint{opacity:.85!important;color:var(--primary)!important}.sortable-th.active-sort{font-weight:700!important;border-bottom:2px solid var(--primary)!important;background-color:#c92c3a0d!important}.table-loading-bar{position:absolute;top:0;left:0;width:100%;height:3px;background:#c92c3a1a;overflow:hidden;z-index:25;border-top-left-radius:var(--radius-md);border-top-right-radius:var(--radius-md)}.table-loading-bar-inner{width:100%;height:100%;background:linear-gradient(90deg,#c92c3a,#ff6b6b,#c92c3a);animation:tableLoadingBarAnim 1.2s cubic-bezier(.4,0,.2,1) infinite}@keyframes tableLoadingBarAnim{0%{transform:translate(-100%)}50%{transform:translate(0)}to{transform:translate(100%)}}.dispatch-table td{padding:.35rem .25rem;border-bottom:1px solid var(--border);vertical-align:middle;color:var(--text-primary);white-space:normal;word-break:break-word;line-height:1.25;background-color:var(--bg-card);font-size:.88em}.dispatch-table tr:hover td{background-color:#00000005}.cell-wrap-text{white-space:normal!important;word-break:break-word!important;line-height:1.22;display:block}.cell-truncate,.cell-truncate-sm,.cell-truncate-lg,.notes-cell{width:100%;white-space:normal;word-break:break-word;line-height:1.22;display:block}.dispatch-table th.actions-col,.dispatch-table td.actions-col{background-color:var(--bg-card);min-width:76px;white-space:nowrap;padding:.35rem .5rem!important;text-align:center}.dispatch-table th.actions-col{background-color:var(--bg-app)}.actions-cell-wrapper{display:inline-flex;flex-direction:column;align-items:center;gap:.28rem;white-space:nowrap}.btn-action-icon{width:28px!important;height:28px!important;min-width:28px!important;max-width:28px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:var(--radius-sm, 6px)!important;cursor:pointer!important;transition:all .15s ease!important;box-sizing:border-box!important;line-height:1!important}.btn-action-icon:hover{transform:translateY(-1px)!important}.btn-action-compact{height:26px!important;padding:0 .55rem!important;font-size:.72rem!important;font-weight:600!important;border-radius:var(--radius-sm, 6px)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:.25rem!important;white-space:nowrap!important;cursor:pointer!important;transition:all .15s ease!important;box-sizing:border-box!important;line-height:1!important}.colored-cell{font-weight:600;text-align:center;border-radius:4px;padding:.15rem .25rem;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78em;letter-spacing:.01em}.mobile-cards-container{display:none;flex-direction:column;gap:1rem;margin-bottom:1.5rem}.mobile-card{background-color:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);padding:1.25rem;box-shadow:var(--shadow-sm)}.mobile-card-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--border);padding-bottom:.75rem;margin-bottom:.75rem}.mobile-card-title h4{font-family:var(--font-display);font-size:1.05rem;font-weight:600}.mobile-card-title span{font-size:.8rem;color:var(--text-secondary)}.mobile-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:.75rem;font-size:.85rem}.mobile-card-item{display:flex;flex-direction:column}.mobile-card-label{font-weight:500;color:var(--text-muted);font-size:.75rem}.mobile-card-value{color:var(--text-primary);font-weight:500}.mobile-card-notes{background-color:var(--bg-app);padding:.5rem;border-radius:var(--radius-sm);font-size:.8rem;color:var(--text-secondary);margin-bottom:.75rem}.mobile-card-actions{display:flex;justify-content:flex-end;gap:.5rem;border-top:1px solid var(--border);padding-top:.75rem}@media (max-width: 1024px){.table-wrapper{display:none}.mobile-cards-container{display:flex}}.pagination-container{display:flex;justify-content:space-between;align-items:center;background-color:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);padding:.75rem 1.25rem;box-shadow:var(--shadow-sm);flex-wrap:wrap;gap:1rem}.pagination-info{font-size:.85rem;color:var(--text-secondary)}.pagination-buttons{display:flex;align-items:center;gap:.25rem}.pagination-btn{background-color:var(--bg-card);border:1px solid var(--border);color:var(--text-secondary);padding:.4rem .75rem;border-radius:var(--radius-sm);cursor:pointer;font-size:.85rem;transition:all var(--transition-fast)}.pagination-btn:hover:not(:disabled){background-color:var(--bg-app);color:var(--text-primary);border-color:var(--text-muted)}.pagination-btn.active{background-color:var(--primary);color:#fff;border-color:var(--primary)}.pagination-btn:disabled{opacity:.5;cursor:not-allowed}.profile-grid{display:grid;grid-template-columns:250px 1fr;gap:2rem;margin-top:1rem}@media (max-width: 768px){.profile-grid{grid-template-columns:1fr}}.avatar-section{display:flex;flex-direction:column;align-items:center;background-color:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:2rem;box-shadow:var(--shadow-sm);text-align:center}.avatar-preview-container{position:relative;width:120px;height:120px;border-radius:var(--radius-full);overflow:hidden;border:3px solid var(--primary);margin-bottom:1.5rem;background-color:var(--bg-app);display:flex;align-items:center;justify-content:center;font-size:3rem;font-family:var(--font-display);font-weight:700;color:var(--primary)}.avatar-preview{width:100%;height:100%;object-fit:cover}.avatar-upload-input{display:none}.avatar-upload-btn{font-size:.85rem;padding:.5rem 1rem}.profile-form-section{background-color:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:2rem;box-shadow:var(--shadow-sm)}.section-title{font-family:var(--font-display);font-size:1.25rem;font-weight:600;margin-bottom:1.5rem;border-bottom:1px solid var(--border);padding-bottom:.5rem}.dashboard-table-wrapper{background-color:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:0 1px 3px #0000000a;overflow-x:auto;position:relative;width:100%}.dashboard-table{width:100%;border-collapse:separate;border-spacing:0;text-align:left;font-size:.83rem}.dashboard-table th{background-color:#f8fafc;color:#475569;font-weight:700;font-size:.72rem;letter-spacing:.04em;text-transform:uppercase;padding:.75rem 1rem;border-bottom:1px solid var(--border);white-space:nowrap}.dashboard-table td{padding:.75rem 1rem;border-bottom:1px solid var(--border);vertical-align:middle;color:var(--text-primary);background-color:var(--bg-card);transition:background-color .12s ease}.dashboard-table tbody tr:last-child td{border-bottom:none}.dashboard-table tbody tr:hover td{background-color:#f8fafc}.dashboard-table tr.redraw-row td{background-color:#fff}.dashboard-table tr.redraw-row:hover td{background-color:#fffbf5!important}.dashboard-table tr.redraw-row td:first-child{border-left:3px solid #ef4444}.btn-action-reassign{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:.25rem!important;height:26px!important;padding:0 .58rem!important;font-size:.72rem!important;font-weight:700!important;border-radius:var(--radius-sm, 6px)!important;background:linear-gradient(135deg,#f59e0b,#ea580c)!important;color:#fff!important;border:1px solid #d97706!important;box-shadow:0 1px 2px #ea580c40!important;cursor:pointer!important;transition:all .15s ease!important;white-space:nowrap!important;letter-spacing:.01em!important;text-decoration:none!important;box-sizing:border-box!important;line-height:1!important}.btn-action-reassign:hover{background:linear-gradient(135deg,#ea580c,#c2410c)!important;border-color:#b45309!important;transform:translateY(-1px)!important;box-shadow:0 2px 6px #ea580c59!important;color:#fff!important}.btn-action-reassign:active{transform:translateY(0)!important}.btn-action-reassign:active{transform:translateY(0)}.redraw-card-header{padding:1.1rem 1.5rem;background:linear-gradient(135deg,#fff5f5,#fff);border-bottom:1px solid rgba(239,68,68,.18);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.85rem}.redraw-badge-count{font-size:.72rem;background:#dc2626;color:#fff;padding:2px 9px;border-radius:12px;font-weight:700;letter-spacing:.02em;box-shadow:0 2px 4px #dc262640;display:inline-flex;align-items:center}.order-number-tag{display:inline-block;font-family:var(--font-mono, monospace);font-weight:700;font-size:.8rem;color:#0f172a;background:#f1f5f9;border:1px solid #e2e8f0;padding:2px 6px;border-radius:4px}.draw-type-pill{display:inline-block;padding:2px 8px;border-radius:4px;font-size:.72rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase}.draw-type-pill.routine{background-color:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}.draw-type-pill.stat{background-color:#fef2f2;color:#991b1b;border:1px solid #fecaca}.draw-type-pill.pickup{background-color:#f0f9ff;color:#0369a1;border:1px solid #bae6fd}.draw-type-pill.redraw{background-color:#fff7ed;color:#9a3412;border:1px solid #fed7aa}.failed-draw-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0f172aa6;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:flex-start;justify-content:center;padding-top:clamp(2rem,8vh,6rem);padding-left:1rem;padding-right:1rem;z-index:999999}.failed-draw-card{width:100%;max-width:640px;background-color:var(--bg-card, #ffffff);border:2px solid #ef4444;border-radius:16px;box-shadow:0 25px 60px -15px #dc262659,0 10px 25px -5px #00000040;overflow:hidden;cursor:pointer;position:relative;transition:transform .2s ease,box-shadow .2s ease}.failed-draw-card:hover{transform:translateY(-2px);box-shadow:0 30px 70px -12px #dc262673}.failed-draw-glow-bar{height:5px;width:100%}.failed-draw-glow-bar.stat-glow{background:linear-gradient(90deg,#ef4444,#f97316,#ef4444);background-size:200% 100%;animation:shimmerBar 2s infinite linear}.failed-draw-glow-bar.routine-glow{background:linear-gradient(90deg,#3b82f6,#6366f1,#3b82f6);background-size:200% 100%;animation:shimmerBar 2s infinite linear}@keyframes shimmerBar{0%{background-position:100% 0}to{background-position:-100% 0}}.failed-draw-header{padding:1.15rem 1.4rem;display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#fef2f2,#fff1f2);border-bottom:1px solid #fecaca}[data-theme=dark] .failed-draw-header{background:linear-gradient(135deg,#ef444426,#b91c1c26);border-bottom:1px solid rgba(239,68,68,.3)}.failed-draw-beacon{position:relative;width:42px;height:42px;border-radius:10px;background-color:#fee2e2;border:1px solid #fca5a5;display:flex;align-items:center;justify-content:center;flex-shrink:0}.failed-beacon-pulse{position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;border-radius:12px;border:2px solid #ef4444;animation:beaconPulse 1.8s infinite cubic-bezier(.4,0,.6,1);opacity:.7}@keyframes beaconPulse{0%{transform:scale(.95);opacity:.8}50%{transform:scale(1.15);opacity:.2}to{transform:scale(1.25);opacity:0}}.failed-draw-title{margin:0;font-size:1.12rem;font-weight:800;color:#991b1b;letter-spacing:-.01em}[data-theme=dark] .failed-draw-title{color:#f87171}.failed-draw-subtitle{margin:.2rem 0 0;font-size:.76rem;color:#7f1d1d}[data-theme=dark] .failed-draw-subtitle{color:#fca5a5}.draw-urgency-chip{font-size:.7rem;font-weight:800;padding:1px 7px;border-radius:999px;letter-spacing:.03em;text-transform:uppercase}.draw-urgency-chip.chip-stat{background-color:#dc2626;color:#fff;box-shadow:0 2px 6px #dc26264d}.draw-urgency-chip.chip-routine{background-color:#2563eb;color:#fff;box-shadow:0 2px 6px #2563eb4d}.failed-draw-counter{font-size:.72rem;font-weight:700;background-color:#00000014;color:#64748b;padding:1px 6px;border-radius:4px}.failed-draw-icon-btn,.failed-draw-close-btn{background:transparent;border:none;cursor:pointer;padding:6px;border-radius:6px;color:#64748b;display:flex;align-items:center;justify-content:center;transition:all .15s ease}.failed-draw-icon-btn:hover,.failed-draw-close-btn:hover{background-color:#00000012;color:#0f172a}.failed-draw-body{padding:1.25rem 1.4rem;display:flex;flex-direction:column;gap:1rem}.failed-draw-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:.85rem}@media (max-width: 580px){.failed-draw-grid{grid-template-columns:1fr}}.failed-info-box{background-color:var(--bg-app, #f8fafc);border:1px solid var(--border, #e2e8f0);border-radius:10px;padding:.75rem .95rem}.failed-info-box .info-label{font-size:.7rem;font-weight:700;color:var(--text-muted, #64748b);text-transform:uppercase;letter-spacing:.04em;display:flex;align-items:center;gap:4px;margin-bottom:4px}.patient-name-highlight{font-size:1.1rem;font-weight:800;color:var(--text-primary, #0f172a)}.patient-sub-details{font-size:.75rem;color:var(--text-secondary, #475569);margin-top:2px}.facility-name-highlight{font-size:.95rem;font-weight:700;color:var(--text-primary, #0f172a);display:flex;align-items:center;gap:6px;flex-wrap:wrap}.facility-id-pill{font-size:.72rem;font-weight:800;color:var(--primary, #2563eb);background-color:#2563eb1a;border:1px solid rgba(37,99,235,.25);padding:1px 6px;border-radius:4px}.facility-sub-details{font-size:.75rem;color:var(--text-secondary, #475569);margin-top:2px}.failed-reason-callout{background-color:#fef2f2;border:1px solid #fecaca;border-left:4px solid #dc2626;border-radius:8px;padding:.85rem 1rem}[data-theme=dark] .failed-reason-callout{background-color:#dc26261a;border:1px solid rgba(220,38,38,.3);border-left:4px solid #ef4444}.reason-header{font-size:.72rem;font-weight:800;color:#dc2626;letter-spacing:.03em}.reason-time{font-size:.72rem;color:#64748b;display:flex;align-items:center;gap:3px}.reason-content-text{font-size:.96rem;color:#991b1b;margin:4px 0 6px}[data-theme=dark] .reason-content-text{color:#fca5a5}.reason-meta-bar{font-size:.78rem;color:#475569}.reason-notes-text{font-size:.78rem;font-style:italic;color:#64748b;margin-top:5px;padding-top:5px;border-top:1px dashed rgba(220,38,38,.2)}.failed-draw-footer{padding:.9rem 1.4rem;background-color:var(--bg-app, #f8fafc);border-top:1px solid var(--border, #e2e8f0);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem}.btn-reassign-now-pulsing{display:inline-flex;align-items:center;gap:.45rem;padding:.55rem 1.15rem;background:linear-gradient(135deg,#dc2626,#b91c1c);color:#fff;border:none;border-radius:8px;font-size:.88rem;font-weight:700;cursor:pointer;box-shadow:0 4px 14px #dc262659;transition:all .18s ease;animation:pulseButton 2s infinite ease-in-out}.btn-reassign-now-pulsing:hover{background:linear-gradient(135deg,#b91c1c,#991b1b);transform:translateY(-1px);box-shadow:0 6px 18px #dc262673}@keyframes pulseButton{0%{box-shadow:0 0 #dc262699}70%{box-shadow:0 0 0 10px #dc262600}to{box-shadow:0 0 #dc262600}}.failed-queue-nav{display:flex;align-items:center;gap:4px}.nav-arrow-btn{background:var(--bg-card, #ffffff);border:1px solid var(--border, #cbd5e1);border-radius:4px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-secondary)}.nav-arrow-btn:disabled{opacity:.35;cursor:not-allowed}.failed-alert-floating-bell{position:fixed;bottom:24px;right:28px;z-index:99999;background:#dc2626;color:#fff;border:2px solid #ffffff;border-radius:999px;padding:10px 18px;cursor:pointer;box-shadow:0 10px 30px #dc262673;display:flex;align-items:center;gap:8px;transition:transform .2s ease,box-shadow .2s ease}.failed-alert-floating-bell:hover{transform:scale(1.05);box-shadow:0 14px 35px #dc26268c}.failed-alert-floating-inner{display:flex;align-items:center;gap:7px}.failed-alert-pulse-ring{position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border-radius:999px;border:2px solid #dc2626;animation:beaconPulse 1.8s infinite cubic-bezier(.4,0,.6,1);pointer-events:none}.phleb-portal-wrapper{max-width:540px;margin:0 auto;min-height:100vh;background-color:var(--bg-app, #f4f6f9);color:var(--text-primary, #0f172a);padding:0 0 4rem;font-family:var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);-webkit-tap-highlight-color:transparent;transition:background-color .2s ease,color .2s ease}.phleb-top-bar{position:sticky;top:0;z-index:50;background:var(--bg-card, #ffffff);border-bottom:1px solid var(--border, #e2e8f0);padding:.65rem .85rem;display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 8px #0000000a}.phleb-top-left{display:flex;align-items:center;gap:.6rem}.phleb-avatar-badge{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.95rem;box-shadow:0 3px 8px #2563eb40;flex-shrink:0}.phleb-user-meta{display:flex;flex-direction:column}.phleb-user-name{font-weight:800;font-size:.9rem;color:var(--text-primary, #0f172a);line-height:1.15}.phleb-user-role-tag{font-size:.66rem;font-weight:700;color:#2563eb;letter-spacing:.03em;text-transform:uppercase;margin-top:1px}[data-theme=dark] .phleb-user-role-tag{color:#38bdf8}.phleb-top-actions{display:flex;align-items:center;gap:.35rem}.phleb-icon-btn{width:34px;height:34px;border-radius:9px;border:1px solid var(--border, #e2e8f0);background:var(--bg-card, #ffffff);color:var(--text-secondary, #475569);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s ease}.phleb-icon-btn:hover{background:var(--bg-app, #f1f5f9);color:var(--text-primary, #0f172a)}.phleb-icon-btn:active{transform:scale(.92)}.spin-anim{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.phleb-stats-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem;padding:.65rem .75rem .25rem}.phleb-stat-box{border-radius:10px;padding:.45rem .3rem;text-align:center;transition:transform .15s ease}.phleb-stat-box.pending-box{background:#fffbeb;border:1px solid #fde68a}.phleb-stat-box.stat-box{background:#fef2f2;border:1px solid #fecaca}.phleb-stat-box.done-box{background:#f0fdf4;border:1px solid #bbf7d0}[data-theme=dark] .phleb-stat-box.pending-box{background:#f59e0b1f;border-color:#f59e0b4d}[data-theme=dark] .phleb-stat-box.stat-box{background:#ef44441f;border-color:#ef44444d}[data-theme=dark] .phleb-stat-box.done-box{background:#22c55e1f;border-color:#22c55e4d}.phleb-stat-num{font-size:1.18rem;font-weight:900;line-height:1.1}.phleb-stat-box.pending-box .phleb-stat-num{color:#d97706}.phleb-stat-box.stat-box .phleb-stat-num{color:#dc2626}.phleb-stat-box.done-box .phleb-stat-num{color:#16a34a}[data-theme=dark] .phleb-stat-box.pending-box .phleb-stat-num{color:#fbbf24}[data-theme=dark] .phleb-stat-box.stat-box .phleb-stat-num{color:#f87171}[data-theme=dark] .phleb-stat-box.done-box .phleb-stat-num{color:#4ade80}.phleb-stat-label{font-size:.62rem;font-weight:800;text-transform:uppercase;letter-spacing:.03em;margin-top:.15rem}.phleb-stat-box.pending-box .phleb-stat-label{color:#92400e}.phleb-stat-box.stat-box .phleb-stat-label{color:#991b1b}.phleb-stat-box.done-box .phleb-stat-label{color:#166534}[data-theme=dark] .phleb-stat-box.pending-box .phleb-stat-label{color:#fde68a}[data-theme=dark] .phleb-stat-box.stat-box .phleb-stat-label{color:#fca5a5}[data-theme=dark] .phleb-stat-box.done-box .phleb-stat-label{color:#bbf7d0}.phleb-tabs-container{padding:.35rem .75rem .2rem}.phleb-tabs{display:flex;background:var(--border, #e2e8f0);border-radius:10px;padding:3px;gap:3px}[data-theme=dark] .phleb-tabs{background:#1e293b;border:1px solid #334155}.phleb-tab-btn{flex:1;padding:.42rem .25rem;border-radius:8px;border:none;background:transparent;color:var(--text-secondary, #475569);font-size:.75rem;font-weight:700;cursor:pointer;transition:all .15s ease;text-align:center}.phleb-tab-btn.active{background:var(--bg-card, #ffffff);color:var(--text-primary, #0f172a);box-shadow:0 1px 4px #00000014}[data-theme=dark] .phleb-tab-btn.active{background:#2563eb;color:#fff;box-shadow:0 2px 8px #2563eb66}.phleb-task-list{padding:.5rem .65rem;display:flex;flex-direction:column;gap:.75rem}.phleb-facility-group{background:var(--bg-card, #ffffff);border:1px solid var(--border, #e2e8f0);border-radius:14px;overflow:hidden;box-shadow:0 2px 10px #00000008}[data-theme=dark] .phleb-facility-group{background:#151c2c;border-color:#222c3f;box-shadow:0 4px 16px #0000004d}.phleb-facility-header{padding:.65rem .75rem;background:#f8fafc;border-bottom:1px solid var(--border, #e2e8f0);display:flex;flex-direction:column;gap:.3rem}[data-theme=dark] .phleb-facility-header{background:#0f172a99;border-color:#222c3f}.phleb-facility-top-row{display:flex;align-items:center;gap:.5rem;width:100%}.phleb-facility-icon-wrap{width:28px;height:28px;border-radius:8px;background:#eff6ff;color:#2563eb;display:flex;align-items:center;justify-content:center;flex-shrink:0}[data-theme=dark] .phleb-facility-icon-wrap{background:#38bdf826;color:#38bdf8}.phleb-facility-name{font-weight:800;font-size:.84rem;color:var(--text-primary, #0f172a);line-height:1.25;flex:1;word-break:break-word}[data-theme=dark] .phleb-facility-name{color:#f8fafc}.phleb-facility-contact-actions{display:flex;align-items:center;gap:.25rem;flex-shrink:0}.phleb-facility-sub-row{display:flex;align-items:center;justify-content:space-between;padding-left:2.15rem;gap:.35rem}.phleb-facility-city{font-size:.7rem;font-weight:700;color:var(--text-muted, #64748b);display:flex;align-items:center;gap:.2rem}.phleb-patient-count-pill{font-size:.66rem;font-weight:800;background:#eff6ff;color:#2563eb;padding:.12rem .45rem;border-radius:999px;border:1px solid #bfdbfe;flex-shrink:0}[data-theme=dark] .phleb-patient-count-pill{background:#38bdf826;color:#38bdf8;border-color:#38bdf84d}.phleb-contact-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;background:var(--bg-card, #ffffff);color:var(--text-secondary, #475569);border:1px solid var(--border, #cbd5e1);text-decoration:none;transition:all .15s ease}[data-theme=dark] .phleb-contact-btn{background:#1e293b;border-color:#334155;color:#cbd5e1}.phleb-patient-card{padding:.85rem .8rem;border-bottom:1px solid var(--border, #e2e8f0);display:flex;flex-direction:column;gap:.65rem;background:var(--bg-card, #ffffff)}[data-theme=dark] .phleb-patient-card{background:#151c2c;border-color:#222c3f}.phleb-patient-card:last-child{border-bottom:none}.phleb-patient-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem}.phleb-patient-name{font-size:.95rem;font-weight:900;color:var(--text-primary, #0f172a);line-height:1.2}[data-theme=dark] .phleb-patient-name{color:#fff}.phleb-patient-sub{font-size:.74rem;color:var(--text-secondary, #475569);margin-top:.15rem;display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}.phleb-room-tag{background:#f1f5f9;color:#1e293b;border:1px solid #cbd5e1;padding:.08rem .45rem;border-radius:5px;font-weight:700;font-size:.7rem}[data-theme=dark] .phleb-room-tag{background:#334155b3;color:#e2e8f0;border-color:#475569}.phleb-badge-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem;flex-shrink:0}.phleb-urgency-badge{font-size:.64rem;font-weight:900;letter-spacing:.04em;padding:.15rem .5rem;border-radius:6px;text-transform:uppercase;display:inline-block;text-align:center}.phleb-urgency-badge.stat{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;box-shadow:0 2px 6px #dc262659}.phleb-urgency-badge.trough{background:#f3e8ff;color:#7e22ce;border:1px solid #d8b4fe}.phleb-urgency-badge.pickup{background:#ecfeff;color:#0891b2;border:1px solid #a5f3fc}.phleb-urgency-badge.routine{background:#f1f5f9;color:#475569;border:1px solid #cbd5e1}[data-theme=dark] .phleb-urgency-badge.routine{background:#1e293b;color:#94a3b8;border-color:#334155}.phleb-status-badge{font-size:.64rem;font-weight:800;padding:.15rem .5rem;border-radius:6px;text-transform:uppercase;display:inline-block;text-align:center}.phleb-status-badge.pend{background:#fffbeb;color:#b45309;border:1px solid #fde68a}.phleb-status-badge.new-order{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.phleb-status-badge.dispatched{background:#e0f2fe;color:#0369a1;border:1px solid #bae6fd}.phleb-status-badge.accepted{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.phleb-status-badge.arrived{background:#faf5ff;color:#7e22ce;border:1px solid #e9d5ff}.phleb-status-badge.done{background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0}.phleb-status-badge.unable{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.phleb-status-badge.default{background:#f1f5f9;color:#475569;border:1px solid #cbd5e1}.phleb-test-row{background:#f8fafc;border:1px solid var(--border, #e2e8f0);border-radius:10px;padding:.55rem .75rem;display:flex;flex-direction:column;gap:.2rem}[data-theme=dark] .phleb-test-row{background:#0b0f19;border-color:#222c3f}.phleb-test-label{font-size:.62rem;font-weight:800;color:var(--text-muted, #64748b);text-transform:uppercase;letter-spacing:.05em;display:flex;align-items:center;gap:.3rem}.phleb-test-value{font-size:.88rem;font-weight:800;color:var(--text-primary, #0f172a);line-height:1.3;letter-spacing:.01em}[data-theme=dark] .phleb-test-value{color:#f8fafc}.phleb-test-value-sub{font-size:.78rem;font-weight:600;color:#475569;margin-top:1px}[data-theme=dark] .phleb-test-value-sub{color:#94a3b8}.phleb-notes-row{font-size:.74rem;color:#78350f;background:#fffbeb;border:1px solid #fde68a;border-left:3px solid #f59e0b;border-radius:8px;padding:.5rem .65rem;display:flex;align-items:flex-start;gap:.35rem;line-height:1.35}[data-theme=dark] .phleb-notes-row{background:#f59e0b1f;border-color:#f59e0b4d;border-left-color:#f59e0b;color:#fef3c7}.phleb-action-container{display:flex;flex-direction:column;gap:.45rem;margin-top:.25rem;width:100%}.phleb-action-row{display:flex;gap:.4rem;align-items:center;width:100%}.phleb-act-btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:42px!important;height:42px!important;padding:0 1rem;border-radius:10px;border:none;font-size:.85rem;font-weight:800;letter-spacing:.01em;cursor:pointer;transition:transform .15s ease,filter .15s ease;-webkit-user-select:none;user-select:none;box-sizing:border-box;text-align:center}.phleb-act-btn:hover{filter:brightness(1.06)}.phleb-act-btn:active{transform:scale(.97)}.phleb-act-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.phleb-act-primary{width:100%!important;min-height:42px!important;height:42px!important}.phleb-act-accept{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 3px 10px #2563eb47}.phleb-act-arrived{background:linear-gradient(135deg,#8b5cf6,#7c3aed);color:#fff;box-shadow:0 3px 10px #8b5cf647}.phleb-act-drawn{flex:2;min-height:42px!important;height:42px!important;background:linear-gradient(135deg,#10b981,#059669);color:#fff;box-shadow:0 3px 10px #10b98140}.phleb-act-unable{flex:1;min-height:42px!important;height:42px!important;background:#fff;color:#dc2626;border:1.5px solid #fca5a5}[data-theme=dark] .phleb-act-unable{background:#ef444426;color:#f87171;border-color:#ef444466}.phleb-history-btn{width:42px;min-width:42px;height:42px!important;min-height:42px!important;border-radius:10px;border:1.5px solid var(--border, #cbd5e1);background:var(--bg-card, #ffffff);color:var(--text-secondary, #475569);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s ease;flex-shrink:0}.phleb-history-btn:hover{background:var(--bg-app, #f1f5f9);color:var(--text-primary, #0f172a)}.phleb-history-btn:active{transform:scale(.94)}[data-theme=dark] .phleb-history-btn{background:#1e293b;border-color:#334155;color:#cbd5e1}.phleb-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172ab3;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);z-index:100;display:flex;align-items:flex-end;justify-content:center}.phleb-bottom-sheet{width:100%;max-width:540px;background:var(--bg-card, #ffffff);border-top:1px solid var(--border, #e2e8f0);border-radius:20px 20px 0 0;padding:1.25rem 1.15rem 2rem;box-shadow:0 -10px 40px #00000040;animation:slide-up .25s ease-out;display:flex;flex-direction:column;gap:.85rem}[data-theme=dark] .phleb-bottom-sheet{background:#151c2c;border-color:#222c3f;box-shadow:0 -10px 40px #0009}@keyframes slide-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}.phleb-sheet-handle{width:38px;height:4px;border-radius:999px;background:#cbd5e1;margin:0 auto .3rem}[data-theme=dark] .phleb-sheet-handle{background:#475569}.phleb-sheet-title{font-size:1.05rem;font-weight:800;color:var(--text-primary, #0f172a)}[data-theme=dark] .phleb-sheet-title{color:#fff}.phleb-sheet-desc{font-size:.82rem;color:var(--text-secondary, #475569);line-height:1.4}[data-theme=dark] .phleb-sheet-desc{color:#94a3b8}.phleb-form-group{display:flex;flex-direction:column;gap:.35rem}.phleb-form-label{font-size:.72rem;font-weight:800;color:var(--text-secondary, #475569);text-transform:uppercase;letter-spacing:.04em}[data-theme=dark] .phleb-form-label{color:#cbd5e1}.phleb-select,.phleb-textarea{width:100%;background:var(--bg-app, #f8fafc);border:1.5px solid var(--border, #cbd5e1);border-radius:10px;color:var(--text-primary, #0f172a);padding:.65rem .75rem;font-size:.88rem;outline:none;font-family:inherit;transition:border-color .15s ease}[data-theme=dark] .phleb-select,[data-theme=dark] .phleb-textarea{background:#0b0f19;border-color:#334155;color:#fff}.phleb-select:focus,.phleb-textarea:focus{border-color:#2563eb}.phleb-sheet-actions{display:flex;gap:.65rem;margin-top:.35rem}.phleb-empty-state{text-align:center;padding:2.5rem 1.25rem;display:flex;flex-direction:column;align-items:center;gap:.75rem;background:var(--bg-card, #ffffff);border-radius:16px;border:1px solid var(--border, #e2e8f0)}[data-theme=dark] .phleb-empty-state{background:#151c2c;border-color:#222c3f}.phleb-empty-icon{width:54px;height:54px;border-radius:18px;background:#eff6ff;color:#2563eb;display:flex;align-items:center;justify-content:center}[data-theme=dark] .phleb-empty-icon{background:#38bdf81f;color:#38bdf8}.history-timeline{display:flex;flex-direction:column;gap:.85rem;position:relative;padding-left:1.25rem;margin:1rem 0}.history-timeline:before{content:"";position:absolute;left:6px;top:6px;bottom:6px;width:2px;background:var(--border, #e2e8f0)}[data-theme=dark] .history-timeline:before{background:#334155}.history-timeline-item{position:relative}.history-timeline-dot{position:absolute;left:-1.25rem;top:3px;width:14px;height:14px;border-radius:50%;background:#2563eb;border:2.5px solid var(--bg-card, #ffffff);box-shadow:0 0 0 2px #2563eb66}[data-theme=dark] .history-timeline-dot{border-color:#1e293b}.history-timeline-content{background:var(--bg-app, #f8fafc);border:1px solid var(--border, #e2e8f0);border-radius:10px;padding:.75rem .85rem}[data-theme=dark] .history-timeline-content{background:#0f172a99;border-color:#334155}.history-header{display:flex;align-items:center;justify-content:space-between;gap:.4rem}.history-status-tag{font-size:.7rem;font-weight:800;padding:.15rem .45rem;border-radius:5px;text-transform:uppercase}.history-time{font-size:.7rem;color:var(--text-muted, #64748b);font-weight:600}.history-actor{font-size:.76rem;color:var(--text-primary, #0f172a);margin-top:.25rem}[data-theme=dark] .history-actor{color:#e2e8f0}.history-reason-box{margin-top:.35rem;font-size:.75rem;color:#dc2626;background:#fef2f2;border:1px solid #fee2e2;padding:.35rem .55rem;border-radius:6px;font-weight:600}[data-theme=dark] .history-reason-box{color:#fca5a5;background:#ef44441f;border-color:#ef444440}.phleb-main-container{padding:.75rem;max-width:540px;margin:0 auto}.phleb-toast-pill{position:fixed;top:65px;left:50%;transform:translate(-50%);background:#0f172a;color:#fff;padding:.65rem 1.25rem;border-radius:9999px;box-shadow:0 10px 30px #0006;border:1px solid #38bdf8;z-index:1000;font-size:.88rem;font-weight:700;pointer-events:none;animation:slide-up .25s cubic-bezier(.16,1,.3,1);white-space:nowrap}[data-theme=dark] .phleb-toast-pill{background:#1e293b;border-color:#38bdf8;box-shadow:0 10px 30px #0009}.phleb-loading-box{text-align:center;padding:4rem 1rem;color:var(--text-muted, #64748b)}.phleb-spinner{display:inline-block;width:36px;height:36px;border:3.5px solid var(--border, #e2e8f0);border-top-color:#2563eb;border-radius:50%;animation:spin .8s linear infinite}.phleb-loading-text{margin-top:1rem;font-weight:700;font-size:.95rem}.phleb-home-view{display:flex;flex-direction:column;gap:1.25rem;padding-top:.5rem}.phleb-home-hero{background:linear-gradient(135deg,#1e293b,#0f172a);color:#fff;padding:1.25rem 1.15rem;border-radius:16px;box-shadow:0 4px 20px #0f172a26}[data-theme=dark] .phleb-home-hero{background:linear-gradient(135deg,#0f172a,#020617);border:1px solid #1e293b}.phleb-hero-pill{display:inline-flex;align-items:center;gap:.45rem;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;background:#2563eb4d;color:#60a5fa;padding:.25rem .65rem;border-radius:999px;border:1px solid rgba(96,165,250,.3);margin-bottom:.65rem}.phleb-live-dot{width:7px;height:7px;background:#22c55e;border-radius:50%;box-shadow:0 0 8px #22c55e;animation:pulse-dot 1.8s infinite}@keyframes pulse-dot{0%,to{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.85)}}.phleb-hero-title{font-size:1.45rem;font-weight:900;margin:0;color:#fff;letter-spacing:-.02em}.phleb-hero-desc{font-size:.84rem;color:#94a3b8;margin:.35rem 0 0;line-height:1.4}.phleb-priority-cards-grid{display:grid;grid-template-columns:1fr;gap:1rem}.phleb-priority-card{width:100%;text-align:left;background:var(--bg-card, #ffffff);border-radius:18px;padding:1.25rem;border:2px solid var(--border, #e2e8f0);box-shadow:0 4px 16px #0000000a;cursor:pointer;transition:all .2s cubic-bezier(.16,1,.3,1);display:flex;flex-direction:column;gap:.85rem}.phleb-priority-card:active{transform:scale(.98)}.phleb-priority-routine{border-color:#93c5fd;background:linear-gradient(180deg,#fff,#f0f7ff)}.phleb-priority-routine:hover{border-color:#2563eb;box-shadow:0 8px 24px #2563eb26}[data-theme=dark] .phleb-priority-routine{background:linear-gradient(180deg,#1e293b,#0f172a);border-color:#1d4ed8}.phleb-priority-stat{border-color:#fca5a5;background:linear-gradient(180deg,#fff,#fff1f2);box-shadow:0 4px 18px #dc262614}.phleb-priority-stat:hover{border-color:#dc2626;box-shadow:0 8px 26px #dc262633}[data-theme=dark] .phleb-priority-stat{background:linear-gradient(180deg,#2a1215,#17090b);border-color:#b91c1c}.phleb-priority-top{display:flex;align-items:center;justify-content:space-between}.phleb-priority-icon-wrapper{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center}.phleb-priority-icon-wrapper.routine-icon{background:#dbeafe;color:#1d4ed8}[data-theme=dark] .phleb-priority-icon-wrapper.routine-icon{background:#2563eb40;color:#60a5fa}.phleb-priority-icon-wrapper.stat-icon{background:#fee2e2;color:#dc2626;animation:stat-shake 2s ease-in-out infinite}@keyframes stat-shake{0%,to{transform:scale(1)}50%{transform:scale(1.06)}}[data-theme=dark] .phleb-priority-icon-wrapper.stat-icon{background:#dc262640;color:#f87171}.phleb-priority-badge{font-size:.78rem;font-weight:800;padding:.35rem .75rem;border-radius:999px;letter-spacing:.02em}.routine-badge{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}[data-theme=dark] .routine-badge{background:#2563eb33;color:#93c5fd;border-color:#1d4ed8}.stat-badge{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}[data-theme=dark] .stat-badge{background:#dc262633;color:#fca5a5;border-color:#991b1b}.stat-pulse-text{font-weight:900;color:#dc2626}[data-theme=dark] .stat-pulse-text{color:#f87171}.phleb-priority-title{font-size:1.4rem;font-weight:900;color:var(--text-primary, #0f172a);margin:0;letter-spacing:-.01em}.phleb-priority-sub{font-size:.86rem;color:var(--text-secondary, #64748b);margin:.25rem 0 0;line-height:1.35}.phleb-priority-footer{display:flex;align-items:center;justify-content:space-between;padding-top:.75rem;border-top:1px solid var(--border, #e2e8f0)}.phleb-priority-meta{font-size:.8rem;color:var(--text-secondary, #64748b)}.phleb-priority-meta strong{color:var(--text-primary, #0f172a);font-weight:800}.phleb-priority-cta{display:flex;align-items:center;gap:.25rem;font-size:.86rem;font-weight:800;color:#2563eb}.phleb-priority-cta.stat-cta{color:#dc2626}.phleb-home-summary-box{background:var(--bg-card, #ffffff);border:1px solid var(--border, #e2e8f0);border-radius:14px;display:flex;align-items:center;justify-content:space-around;padding:.85rem .5rem;box-shadow:0 2px 8px #00000008}.phleb-summary-item{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.2rem}.phleb-summary-label{font-size:.68rem;font-weight:800;color:var(--text-muted, #64748b);text-transform:uppercase;letter-spacing:.03em}.phleb-summary-val{font-size:1.25rem;font-weight:900;color:var(--text-primary, #0f172a)}.phleb-summary-val.pending-val{color:#d97706}.phleb-summary-val.stat-val{color:#dc2626}.phleb-summary-sep{width:1px;height:28px;background:var(--border, #e2e8f0)}.phleb-screen-view{display:flex;flex-direction:column;gap:.85rem}.phleb-sub-bar{display:flex;align-items:center;justify-content:space-between;padding:.25rem 0;gap:.5rem}.phleb-nav-back-btn{display:inline-flex;align-items:center;gap:.4rem;background:var(--bg-card, #ffffff);border:1px solid var(--border, #e2e8f0);padding:.45rem .85rem;border-radius:10px;font-size:.84rem;font-weight:700;color:var(--text-primary, #0f172a);cursor:pointer;box-shadow:0 1px 3px #0000000d;transition:all .15s ease}.phleb-nav-back-btn:hover{background:var(--bg-app, #f1f5f9)}.phleb-nav-back-btn:active{transform:scale(.96)}.phleb-breadcrumb{display:flex;align-items:center;gap:.35rem;font-size:.8rem;font-weight:700;color:var(--text-secondary, #64748b);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.phleb-crumb-parent{color:var(--text-muted, #64748b)}.phleb-crumb-current{color:var(--text-primary, #0f172a);font-weight:800}.phleb-tag-badge{font-size:.72rem;font-weight:900;padding:.25rem .65rem;border-radius:999px;text-transform:uppercase}.phleb-tag-badge.routine{background:#dbeafe;color:#1d4ed8}.phleb-tag-badge.stat{background:#fee2e2;color:#b91c1c}.phleb-section-header{display:flex;flex-direction:column;gap:.65rem}.phleb-section-title{font-size:1.25rem;font-weight:900;margin:0;color:var(--text-primary, #0f172a);letter-spacing:-.01em}.phleb-section-subtitle{font-size:.82rem;color:var(--text-secondary, #64748b);margin:.2rem 0 0}.phleb-search-box{position:relative;width:100%}.phleb-search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--text-muted, #94a3b8);pointer-events:none}.phleb-search-input{width:100%;background:var(--bg-card, #ffffff);border:1px solid var(--border, #e2e8f0);border-radius:12px;padding:.65rem 2.25rem;font-size:.88rem;color:var(--text-primary, #0f172a);outline:none;transition:border-color .15s ease,box-shadow .15s ease;box-sizing:border-box}.phleb-search-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb26}.phleb-search-clear{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:#cbd5e1;border:none;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#1e293b}.phleb-filter-radio-group{display:flex;align-items:center;gap:.45rem;width:100%;margin-top:.65rem;background:var(--bg-app, #f1f5f9);padding:4px;border-radius:12px;border:1px solid var(--border, #e2e8f0)}[data-theme=dark] .phleb-filter-radio-group{background:#1e293b;border-color:#334155}.phleb-filter-radio-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:.35rem;padding:.5rem;border-radius:8px;font-size:.8rem;font-weight:700;color:var(--text-secondary, #64748b);cursor:pointer;transition:all .15s ease;-webkit-user-select:none;user-select:none;border:1px solid transparent;text-align:center}.phleb-filter-radio-btn input[type=radio]{display:none}.phleb-filter-radio-btn:hover{color:var(--text-primary, #0f172a)}.phleb-filter-radio-btn.active{background:var(--bg-card, #ffffff);color:var(--text-primary, #0f172a);box-shadow:0 2px 6px #00000014;border-color:var(--border, #e2e8f0)}[data-theme=dark] .phleb-filter-radio-btn.active{background:#0f172a;color:#f8fafc;border-color:#475569}.phleb-filter-radio-btn.routine.active{color:#1d4ed8;border-color:#bfdbfe;background:#eff6ff}[data-theme=dark] .phleb-filter-radio-btn.routine.active{color:#60a5fa;border-color:#1e40af;background:#1e40af40}.phleb-filter-radio-btn.stat.active{color:#e11d48;border-color:#fecdd3;background:#fff1f2}[data-theme=dark] .phleb-filter-radio-btn.stat.active{color:#fb7185;border-color:#9f1239;background:#9f123940}.phleb-filter-count{font-size:.72rem;padding:1px 6px;border-radius:999px;background:#00000012;font-weight:800}[data-theme=dark] .phleb-filter-count{background:#ffffff1a}.phleb-filter-radio-btn.routine.active .phleb-filter-count{background:#dbeafe;color:#1d4ed8}.phleb-filter-radio-btn.stat.active .phleb-filter-count{background:#ffe4e6;color:#e11d48}.phleb-fac-id-badge{font-size:.72rem;font-weight:800;color:#2563eb;background:#eff6ff;border:1px solid #bfdbfe;padding:1px 6px;border-radius:5px;margin-left:6px;vertical-align:middle;display:inline-block}[data-theme=dark] .phleb-fac-id-badge{color:#60a5fa;background:#2563eb33;border-color:#1e40af}.phleb-badge-stat{display:inline-flex;align-items:center;gap:3px;padding:3px 8px;border-radius:6px;background-color:#fff1f2;color:#e11d48;font-size:.76rem;font-weight:800;border:1px solid #fecdd3;white-space:nowrap}[data-theme=dark] .phleb-badge-stat{background-color:#e11d4826;border-color:#9f1239;color:#fb7185}.phleb-badge-routine{display:inline-flex;align-items:center;gap:3px;padding:3px 8px;border-radius:6px;background-color:#eff6ff;color:#2563eb;font-size:.76rem;font-weight:800;border:1px solid #bfdbfe;white-space:nowrap}[data-theme=dark] .phleb-badge-routine{background-color:#2563eb26;border-color:#1e40af;color:#60a5fa}.phleb-facilities-list{display:flex;flex-direction:column;gap:.65rem}.phleb-facility-row-card{background:var(--bg-card, #ffffff);border:1.5px solid var(--border, #e2e8f0);border-radius:14px;padding:.95rem 1.15rem;display:flex;flex-direction:column;align-items:stretch;gap:.75rem;cursor:pointer;transition:all .15s ease;box-shadow:0 2px 6px #00000005}.phleb-fac-top-row{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;width:100%}.phleb-fac-bottom-row{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap;padding-top:.65rem;border-top:1px solid var(--border, #f1f5f9);width:100%}.phleb-facility-row-card:hover{border-color:#2563eb;transform:translateY(-1px);box-shadow:0 6px 16px #0000000f}.phleb-facility-row-card:active{transform:scale(.99)}.phleb-facility-row-card.is-starred{border-color:#facc15;background:linear-gradient(180deg,var(--bg-card, #ffffff) 0%,rgba(254,240,138,.12) 100%)}[data-theme=dark] .phleb-facility-row-card.is-starred{border-color:#ca8a04;background:linear-gradient(180deg,#1e293b,#a1620726)}.phleb-facility-main-info{display:flex;flex-direction:column;gap:.35rem;flex:1 1 auto;min-width:0;overflow:hidden}.phleb-fac-title-row{display:flex;align-items:flex-start;gap:.6rem;min-width:0;width:100%}.phleb-fac-icon-wrap{width:28px;height:28px;border-radius:8px;background:#f1f5f9;color:#334155;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}[data-theme=dark] .phleb-fac-icon-wrap{background:#334155;color:#cbd5e1}.phleb-fac-title-content{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 auto;overflow:hidden}.phleb-facility-heading{font-size:.96rem;font-weight:800;color:var(--text-primary, #0f172a);margin:0;line-height:1.35;word-break:break-word;white-space:normal}.phleb-fac-right-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-left:10px}.phleb-star-toggle-btn{background:transparent;border:none;padding:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:6px;transition:transform .15s ease;flex-shrink:0}.phleb-star-toggle-btn:hover{transform:scale(1.2)}.phleb-star-toggle-btn:active{transform:scale(.9)}.phleb-fac-meta-row{display:flex;align-items:center;gap:.65rem;font-size:.78rem;color:var(--text-secondary, #64748b)}.phleb-fac-phone-btn{display:inline-flex;align-items:center;gap:.25rem;color:#2563eb;font-weight:700;text-decoration:none;background:#eff6ff;padding:.15rem .45rem;border-radius:6px}[data-theme=dark] .phleb-fac-phone-btn{background:#2563eb33;color:#93c5fd}.phleb-fac-right-actions{display:flex;align-items:center;gap:.65rem;flex-shrink:0}.phleb-patient-count-stack{display:flex;flex-direction:column;align-items:flex-end}.phleb-pending-pill{font-size:.74rem;font-weight:800;padding:.25rem .55rem;border-radius:999px;letter-spacing:.02em}.phleb-pending-pill.routine{background:#dbeafe;color:#1e40af}.phleb-pending-pill.stat{background:#fee2e2;color:#991b1b}.phleb-done-pill{display:inline-flex;align-items:center;gap:.25rem;font-size:.74rem;font-weight:800;color:#16a34a;background:#dcfce7;padding:.25rem .55rem;border-radius:999px}[data-theme=dark] .phleb-done-pill{background:#16a34a33;color:#4ade80}.phleb-chevron-arrow{color:var(--text-muted, #94a3b8)}.phleb-facility-banner{background:var(--bg-card, #ffffff);border:1.5px solid var(--border, #e2e8f0);border-radius:14px;padding:1rem 1.15rem;box-shadow:0 2px 8px #00000008}.phleb-facility-banner-top{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.phleb-banner-name{font-size:1.2rem;font-weight:900;color:var(--text-primary, #0f172a);margin:0}.phleb-banner-sub{font-size:.8rem;color:var(--text-secondary, #64748b);margin-top:.25rem}.phleb-banner-phone{color:#2563eb;font-weight:700;text-decoration:none}.phleb-banner-stats{text-align:right;flex-shrink:0}.phleb-banner-badge{font-size:.76rem;font-weight:800;background:var(--bg-app, #f1f5f9);padding:.3rem .65rem;border-radius:8px;color:var(--text-primary, #0f172a)}.phleb-patient-list-header{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:.15rem;padding:.2rem 0}.phleb-list-title{font-size:1.05rem;font-weight:800;margin:0;color:var(--text-primary, #0f172a);text-align:left}.phleb-list-hint{font-size:.76rem;color:var(--text-muted, #64748b);text-align:left}.phleb-patients-stack{display:flex;flex-direction:column;gap:.75rem}.phleb-pt-card{background:var(--bg-card, #ffffff);border:1.5px solid var(--border, #e2e8f0);border-radius:14px;padding:.95rem 1.05rem;cursor:pointer;transition:all .15s ease;display:flex;flex-direction:column;gap:.6rem;box-shadow:0 2px 8px #00000008}.phleb-pt-card:hover{border-color:#2563eb;box-shadow:0 6px 18px #00000014}.phleb-pt-card:active{transform:scale(.99)}.phleb-pt-card.is-completed{background:#f0fdf4!important;border-color:#86efac!important}[data-theme=dark] .phleb-pt-card.is-completed{background:#16a34a1f!important;border-color:#166534!important}.phleb-pt-card.is-stat-order{background:#fff1f2;border-color:#fecdd3;box-shadow:0 2px 8px #e11d480d}.phleb-pt-card.is-stat-order:hover{border-color:#fb7185;box-shadow:0 6px 16px #e11d481f}[data-theme=dark] .phleb-pt-card.is-stat-order{background:#e11d4814;border-color:#881337}.phleb-pt-card.is-routine-order{background:#f0f7ff;border-color:#bfdbfe;box-shadow:0 2px 8px #2563eb0a}.phleb-pt-card.is-routine-order:hover{border-color:#60a5fa;box-shadow:0 6px 16px #2563eb1a}[data-theme=dark] .phleb-pt-card.is-routine-order{background:#2563eb14;border-color:#1e3a8a}.phleb-order-type-chip{font-size:.68rem;font-weight:800;padding:2px 6px;border-radius:5px;text-transform:uppercase;letter-spacing:.02em}.phleb-order-type-chip.stat{background:#ffe4e6;color:#e11d48;border:1px solid #fecdd3}.phleb-order-type-chip.routine{background:#dbeafe;color:#1d4ed8;border:1px solid #bfdbfe}.phleb-pt-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;margin-bottom:.45rem}.phleb-pt-title-area{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .5rem;flex:1 1 auto;min-width:0}.phleb-pt-index{font-size:.76rem;font-weight:800;color:var(--text-muted, #94a3b8);flex-shrink:0}.phleb-pt-name{font-size:1.02rem;font-weight:800;color:var(--text-primary, #0f172a);margin:0;word-break:break-word}[data-theme=dark] .phleb-status-tag.pending{background:#f59e0b33;color:#fde68a;border:1px solid rgba(245,158,11,.4)}.phleb-pt-vitals-row{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;font-size:.8rem;background:var(--bg-app, #f8fafc);padding:.45rem .65rem;border-radius:8px}.phleb-vital-item{display:inline-flex;align-items:center;gap:.25rem}.vital-label{color:var(--text-muted, #64748b);font-weight:600}.vital-val{color:var(--text-primary, #0f172a);font-weight:700}.room-val{color:#2563eb;font-weight:800}[data-theme=dark] .room-val{color:#38bdf8}.phleb-pt-tests-box{display:flex;align-items:flex-start;gap:.45rem;font-size:.82rem;color:var(--text-primary, #0f172a)}.phleb-tests-label{display:inline-flex;align-items:center;gap:.25rem;color:var(--text-muted, #64748b);font-weight:700;flex-shrink:0}.phleb-tests-text{font-weight:700;color:#0284c7;line-height:1.3}.phleb-pt-extra-row{display:flex;align-items:center;gap:.5rem;font-size:.74rem}.phleb-lab-drop-pill{background:#e0f2fe;color:#0369a1;padding:.2rem .5rem;border-radius:6px;font-weight:700}[data-theme=dark] .phleb-lab-drop-pill{background:#0284c733;color:#7dd3fc}.phleb-note-snippet{color:var(--text-muted, #64748b);font-style:italic;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}.phleb-pt-card-footer{display:flex;align-items:center;justify-content:space-between;padding-top:.45rem;border-top:1px solid var(--border, #f1f5f9);font-size:.8rem;font-weight:700;color:#2563eb}.phleb-pt-card.is-completed .phleb-pt-card-footer{color:#16a34a}.phleb-action-screen-view{gap:1rem}.phleb-action-patient-card{background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;border-radius:18px;padding:1.25rem;box-shadow:0 6px 20px #00000026;display:flex;flex-direction:column;gap:.95rem}.phleb-action-top-strip{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem}.phleb-action-badge-type{display:inline-block;font-size:.68rem;font-weight:900;letter-spacing:.04em;background:#ffffff26;padding:.2rem .5rem;border-radius:6px;margin-bottom:.35rem;color:#38bdf8}.phleb-action-patient-name{font-size:1.45rem;font-weight:900;margin:0;letter-spacing:-.01em}.phleb-history-icon-btn{width:36px;height:36px;border-radius:10px;background:#ffffff1f;border:1px solid rgba(255,255,255,.2);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s ease}.phleb-history-icon-btn:hover{background:#ffffff40}.phleb-action-grid-details{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;background:#00000040;padding:.65rem;border-radius:12px}.action-detail-cell{display:flex;flex-direction:column;gap:.15rem}.cell-label{font-size:.64rem;font-weight:800;text-transform:uppercase;color:#94a3b8;letter-spacing:.03em}.cell-val{font-size:.95rem;font-weight:800;color:#fff}.room-highlight{color:#38bdf8}.stat-text{color:#f87171}.phleb-action-tests-row{background:#ffffff14;padding:.75rem .85rem;border-radius:12px;display:flex;flex-direction:column;gap:.3rem}.action-tests-header{display:flex;align-items:center;gap:.35rem;font-size:.74rem;font-weight:800;text-transform:uppercase;color:#38bdf8}.action-tests-content{font-size:.95rem;font-weight:800;color:#fff}.action-tests-content-sub{font-size:.8rem;color:#94a3b8}.phleb-action-form-card{background:var(--bg-card, #ffffff);border:1.5px solid var(--border, #e2e8f0);border-radius:18px;padding:1.25rem;box-shadow:0 4px 16px #0000000a;display:flex;flex-direction:column;gap:1.15rem}.phleb-form-section-title{font-size:1.1rem;font-weight:900;margin:0;color:var(--text-primary, #0f172a)}.phleb-collected-toggle-box{background:#f8fafc;border:2px solid #e2e8f0;border-radius:14px;padding:1rem 1.15rem;display:flex;align-items:center;gap:.95rem;cursor:pointer;transition:all .2s cubic-bezier(.16,1,.3,1)}.phleb-collected-toggle-box.is-active{background:#f0fdf4;border-color:#16a34a;box-shadow:0 4px 14px #16a34a26}[data-theme=dark] .phleb-collected-toggle-box{background:#1e293b;border-color:#334155}[data-theme=dark] .phleb-collected-toggle-box.is-active{background:#16a34a26;border-color:#22c55e}.phleb-big-checkbox{width:38px;height:38px;border-radius:10px;border:2px solid #cbd5e1;background:#fff;display:flex;align-items:center;justify-content:center;transition:all .15s ease;flex-shrink:0}.phleb-big-checkbox.checked{background:#16a34a;border-color:#16a34a;color:#fff;box-shadow:0 3px 10px #16a34a66}.phleb-toggle-title{font-size:1.05rem;font-weight:800;color:var(--text-primary, #0f172a)}.phleb-collected-toggle-box.is-active .phleb-toggle-title{color:#15803d}[data-theme=dark] .phleb-collected-toggle-box.is-active .phleb-toggle-title{color:#4ade80}.phleb-toggle-desc{font-size:.78rem;color:var(--text-secondary, #64748b);margin-top:.15rem}.phleb-form-field-group{display:flex;flex-direction:column;gap:.45rem}.phleb-field-label{display:flex;align-items:center;gap:.4rem;font-size:.82rem;font-weight:800;color:var(--text-primary, #0f172a)}.phleb-field-select,.phleb-field-input{width:100%;background:var(--bg-card, #ffffff);border:1.5px solid var(--border, #cbd5e1);border-radius:12px;padding:.75rem .95rem;font-size:.92rem;font-weight:700;color:var(--text-primary, #0f172a);outline:none;transition:all .15s ease;box-sizing:border-box}.phleb-field-select:focus,.phleb-field-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb26}.reason-select{border-color:#fca5a5;background:#fef2f2;color:#991b1b}[data-theme=dark] .reason-select{background:#dc262626;border-color:#b91c1c;color:#fca5a5}.phleb-action-btn-row{display:grid;grid-template-columns:100px 1fr;gap:.75rem;margin-top:.5rem}.phleb-btn-secondary{height:52px;background:var(--bg-app, #f1f5f9);border:1.5px solid var(--border, #cbd5e1);border-radius:14px;font-size:.95rem;font-weight:800;color:var(--text-secondary, #475569);cursor:pointer;transition:all .15s ease}.phleb-btn-secondary:active{transform:scale(.97)}.phleb-btn-save-primary{height:52px;background:linear-gradient(135deg,#16a34a,#15803d);color:#fff;border:none;border-radius:14px;font-size:1.05rem;font-weight:900;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:.5rem;box-shadow:0 4px 16px #16a34a59;transition:all .15s ease}.phleb-btn-save-primary:hover{background:linear-gradient(135deg,#15803d,#166534);box-shadow:0 6px 20px #16a34a73}.phleb-btn-save-primary:active{transform:scale(.98)}.phleb-btn-save-primary:disabled{opacity:.65;cursor:not-allowed}@media (max-width: 380px){.phleb-action-grid-details{grid-template-columns:repeat(2,1fr);gap:.65rem}.phleb-action-btn-row{grid-template-columns:1fr}.phleb-btn-secondary{order:2;height:44px}.phleb-btn-save-primary{order:1}}.phleb-header-done-pill{display:inline-flex;align-items:center;gap:.25rem;background:#dcfce7;color:#15803d;font-size:.68rem;font-weight:800;padding:.15rem .5rem;border-radius:999px;border:1px solid #bbf7d0;cursor:pointer;transition:all .15s ease}.phleb-header-done-pill:hover{background:#bbf7d0;transform:scale(1.05)}[data-theme=dark] .phleb-header-done-pill{background:#22c55e33;color:#4ade80;border-color:#22c55e66}.phleb-shift-progress-card{background:var(--bg-card, #ffffff);border:1.5px solid var(--border, #e2e8f0);border-radius:16px;padding:1rem 1.15rem;box-shadow:0 2px 10px #00000008;display:flex;flex-direction:column;gap:.75rem;transition:all .15s ease}.phleb-shift-progress-card:hover{border-color:#16a34a;box-shadow:0 4px 16px #16a34a1a}.phleb-progress-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.phleb-progress-title-wrap{display:flex;align-items:center;gap:.65rem}.phleb-progress-icon-circle{width:34px;height:34px;border-radius:10px;background:#f0fdf4;border:1px solid #bbf7d0;display:flex;align-items:center;justify-content:center;flex-shrink:0}[data-theme=dark] .phleb-progress-icon-circle{background:#22c55e26;border-color:#22c55e4d}.phleb-progress-title{font-size:.96rem;font-weight:800;color:var(--text-primary, #0f172a);line-height:1.2}.phleb-progress-sub{font-size:.74rem;color:var(--text-secondary, #64748b);margin-top:2px}.phleb-done-counter-pill{display:flex;align-items:baseline;gap:.25rem;background:#f0fdf4;padding:.35rem .75rem;border-radius:999px;border:1px solid #86efac}[data-theme=dark] .phleb-done-counter-pill{background:#22c55e26;border-color:#22c55e4d}.phleb-done-count-num{font-size:1.2rem;font-weight:900;color:#16a34a}[data-theme=dark] .phleb-done-count-num{color:#4ade80}.phleb-done-count-total{font-size:.76rem;font-weight:700;color:#15803d}[data-theme=dark] .phleb-done-count-total{color:#86efac}.phleb-progress-bar-bg{width:100%;height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden}[data-theme=dark] .phleb-progress-bar-bg{background:#334155}.phleb-progress-bar-fill{height:100%;background:linear-gradient(90deg,#22c55e,#16a34a);border-radius:999px;transition:width .4s cubic-bezier(.16,1,.3,1)}.phleb-progress-footer{display:flex;align-items:center;justify-content:space-between;font-size:.78rem}.phleb-progress-pct-label{font-weight:700;color:var(--text-secondary, #64748b)}.phleb-view-done-link{display:inline-flex;align-items:center;gap:.2rem;font-weight:800;color:#16a34a}.phleb-view-done-link:hover{color:#15803d}.phleb-status-tag{font-size:.72rem;font-weight:700;padding:.22rem .55rem;border-radius:6px;display:inline-flex;align-items:center;gap:.25rem;white-space:nowrap;flex-shrink:0;text-transform:none}.phleb-status-tag.done{background:#16a34a;color:#fff}.phleb-status-tag.stat{background:#dc2626;color:#fff}.phleb-status-tag.pending{background:#fef3c7;color:#92400e;border:1px solid #fde68a}.phleb-status-tag.unable{background:#fee2e2;color:#dc2626;border:1px solid #fca5a5}[data-theme=dark] .phleb-status-tag.unable{background:#dc262633;color:#fca5a5;border-color:#b91c1c}.phleb-pt-card.is-exception{background:#fff5f5;border-color:#fca5a5}[data-theme=dark] .phleb-pt-card.is-exception{background:#dc262614;border-color:#7f1d1d}.phleb-fac-visited-badge{display:inline-flex;align-items:center;gap:5px;background:#16a34a1f;color:#15803d;font-size:.74rem;font-weight:600;padding:3px 8px;border-radius:6px;margin-top:3px;width:fit-content;max-width:100%;white-space:normal;word-break:break-word}[data-theme=dark] .phleb-fac-visited-badge{background:#16a34a33;color:#4ade80}.phleb-fac-scheduled-badge{display:inline-flex;align-items:center;gap:5px;background:#0284c71a;color:#0284c7;font-size:.74rem;font-weight:600;padding:3px 8px;border-radius:6px;margin-top:3px;width:fit-content;max-width:100%;white-space:normal;word-break:break-word}[data-theme=dark] .phleb-fac-scheduled-badge{background:#0284c733;color:#38bdf8}.phleb-mark-visited-btn{display:inline-flex;align-items:center;gap:5px;background:#0284c7;color:#fff;border:none;font-size:.76rem;font-weight:600;padding:6px 11px;border-radius:7px;cursor:pointer;transition:all .15s ease;white-space:nowrap;flex-shrink:0}.phleb-mark-visited-btn:hover{background:#0369a1;transform:translateY(-1px)}.phleb-mark-visited-btn.is-visited{background:#16a34a}.phleb-mark-visited-btn.is-visited:hover{background:#15803d}.phleb-facility-visited-banner-row{display:flex;align-items:center;gap:8px;background:#16a34a1f;border:1px solid rgba(22,163,74,.25);color:#15803d;font-size:.8rem;padding:8px 12px;border-radius:8px;margin-top:10px}[data-theme=dark] .phleb-facility-visited-banner-row{background:#16a34a33;color:#4ade80;border-color:#4ade804d}.phleb-banner-edit-visit-btn{margin-left:auto;background:none;border:1px solid currentColor;color:inherit;font-size:.72rem;font-weight:600;padding:2px 8px;border-radius:4px;cursor:pointer}.phleb-banner-actions-row{display:flex;align-items:center;gap:8px;margin-top:10px;flex-wrap:wrap}.phleb-banner-btn-visit{display:inline-flex;align-items:center;gap:6px;background:#0284c7;color:#fff;border:none;font-size:.82rem;font-weight:600;padding:8px 14px;border-radius:8px;cursor:pointer;transition:all .15s ease}.phleb-banner-btn-visit:hover{background:#0369a1}.phleb-banner-btn-add-pt{display:inline-flex;align-items:center;gap:6px;background:var(--bg-card, #ffffff);color:#0284c7;border:1px solid #0284c7;font-size:.82rem;font-weight:600;padding:8px 14px;border-radius:8px;cursor:pointer;transition:all .15s ease}.phleb-banner-btn-add-pt:hover{background:#0284c714}.phleb-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172aa6;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:9999;display:flex;align-items:center;justify-content:center;padding:1rem;animation:phlebFadeIn .2s ease-out}.phleb-modal-dialog{background:var(--bg-card, #ffffff);border:1px solid var(--border, #e2e8f0);border-radius:16px;width:100%;max-width:480px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 25px -5px #0003,0 8px 10px -6px #00000026;display:flex;flex-direction:column}[data-theme=dark] .phleb-modal-dialog{background:#1e293b;border-color:#334155;color:#f1f5f9}.phleb-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--border, #e2e8f0)}[data-theme=dark] .phleb-modal-header{border-color:#334155}.phleb-modal-title{display:flex;align-items:center;gap:8px;font-size:1.05rem;font-weight:700;margin:0}.phleb-modal-close-btn{background:none;border:none;color:#64748b;cursor:pointer;padding:4px;border-radius:6px;display:flex}.phleb-modal-close-btn:hover{background:#0000000d;color:#0f172a}.phleb-modal-body{padding:1.25rem;display:flex;flex-direction:column;gap:1rem}.phleb-status-pill-grid{display:grid;grid-template-columns:1fr;gap:8px}.phleb-status-pill-btn{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:10px;border:1.5px solid var(--border, #e2e8f0);background:var(--bg-card, #ffffff);color:var(--text-primary, #1e293b);font-size:.86rem;font-weight:600;cursor:pointer;text-align:left;transition:all .15s ease}[data-theme=dark] .phleb-status-pill-btn{background:#0f172a;border-color:#334155;color:#f1f5f9}.phleb-status-pill-btn.active{border-color:#0284c7;background:#0284c714;color:#0284c7}[data-theme=dark] .phleb-status-pill-btn.active{background:#0284c733;border-color:#38bdf8;color:#38bdf8}.phleb-modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:1rem 1.25rem;border-top:1px solid var(--border, #e2e8f0);background:var(--bg-card, #ffffff)}[data-theme=dark] .phleb-modal-footer{border-color:#334155;background:#1e293b}.phleb-modal-btn-cancel{height:44px;padding:0 1.25rem;background:#f1f5f9;border:1.5px solid #cbd5e1;border-radius:10px;font-size:.92rem;font-weight:700;color:#475569;cursor:pointer;white-space:nowrap;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;transition:all .15s ease;box-sizing:border-box}.phleb-modal-btn-cancel:hover{background:#e2e8f0;color:#1e293b}[data-theme=dark] .phleb-modal-btn-cancel{background:#334155;border-color:#475569;color:#cbd5e1}[data-theme=dark] .phleb-modal-btn-cancel:hover{background:#475569;color:#fff}.phleb-modal-btn-confirm{height:44px;padding:0 1.35rem;background:linear-gradient(135deg,#16a34a,#15803d);border:none;border-radius:10px;font-size:.94rem;font-weight:800;color:#fff;cursor:pointer;white-space:nowrap;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;box-shadow:0 2px 8px #16a34a59;transition:all .15s ease;box-sizing:border-box}.phleb-modal-btn-confirm:hover{background:linear-gradient(135deg,#15803d,#166534);box-shadow:0 4px 14px #16a34a73}.phleb-modal-btn-confirm:active{transform:scale(.98)}.phleb-modal-btn-confirm:disabled,.phleb-modal-btn-cancel:disabled{opacity:.6;cursor:not-allowed}@media (max-width: 440px){.phleb-modal-footer{display:grid;grid-template-columns:1fr 1.6fr;gap:8px;padding:.85rem 1rem}.phleb-modal-btn-cancel,.phleb-modal-btn-confirm{width:100%;padding:0 .5rem;font-size:.88rem}}.phleb-btn-arrival{display:inline-flex;align-items:center;gap:5px;background:linear-gradient(135deg,#16a34a,#15803d);color:#fff;border:none;font-size:.76rem;font-weight:700;padding:6px 12px;border-radius:7px;cursor:pointer;transition:all .15s ease;white-space:nowrap;flex-shrink:0;box-shadow:0 1px 3px #16a34a40}.phleb-btn-arrival:hover{background:linear-gradient(135deg,#15803d,#166534);transform:translateY(-1px);box-shadow:0 2px 5px #16a34a59}.phleb-btn-departure{display:inline-flex;align-items:center;gap:5px;background:linear-gradient(135deg,#0284c7,#0369a1);color:#fff;border:none;font-size:.76rem;font-weight:700;padding:6px 12px;border-radius:7px;cursor:pointer;transition:all .15s ease;white-space:nowrap;flex-shrink:0;box-shadow:0 1px 3px #0284c740}.phleb-btn-departure:hover{background:linear-gradient(135deg,#0369a1,#075985);transform:translateY(-1px);box-shadow:0 2px 5px #0284c759}.phleb-btn-completed-visit{display:inline-flex;align-items:center;gap:4px;background:#f1f5f9;color:#475569;border:1px solid #cbd5e1;font-size:.74rem;font-weight:600;padding:5px 10px;border-radius:6px;cursor:pointer;transition:all .15s ease;white-space:nowrap;flex-shrink:0}.phleb-btn-completed-visit:hover{background:#e2e8f0;color:#1e293b}[data-theme=dark] .phleb-btn-completed-visit{background:#1e293b;color:#cbd5e1;border-color:#334155}[data-theme=dark] .phleb-arr-dep-banner{background-color:#0f172a!important;border-color:#1e293b!important}[data-theme=dark] .phleb-fac-arrival-badge.is-arrived{background:#16a34a33!important;color:#4ade80!important;border-color:#4ade804d!important}[data-theme=dark] .phleb-fac-arrival-badge.is-departed{background:#0284c733!important;color:#38bdf8!important;border-color:#38bdf84d!important}.phleb-facility-row-card.is-active-arrival{border:2px solid #16a34a!important;background:linear-gradient(135deg,#f0fdf4,#fff)!important;box-shadow:0 4px 14px #16a34a29!important;position:relative}[data-theme=dark] .phleb-facility-row-card.is-active-arrival{border:2px solid #22c55e!important;background:linear-gradient(135deg,#16a34a26,#1e293b)!important;box-shadow:0 4px 16px #22c55e33!important}.stat-scoreboard-container{display:flex;flex-direction:column;gap:1.5rem;width:100%;animation:fadeIn .3s ease;color:var(--text-primary)}@keyframes fadeIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.stat-scoreboard-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;background:var(--bg-card);padding:1.25rem 1.6rem;border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.stat-header-left{display:flex;align-items:center;gap:1rem}.stat-header-icon-box{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;box-shadow:0 4px 14px #ef444459;flex-shrink:0}.stat-header-title{font-family:var(--font-display);font-size:1.45rem;font-weight:800;letter-spacing:-.02em;margin:0;display:flex;align-items:center;gap:.6rem}.stat-live-badge{display:inline-flex;align-items:center;gap:5px;background:#fee2e2;color:#dc2626;font-size:.72rem;font-weight:800;padding:2px 8px;border-radius:999px;border:1px solid #fca5a5;text-transform:uppercase;letter-spacing:.05em}.stat-pulse-dot{width:7px;height:7px;border-radius:50%;background:#dc2626;animation:statPulse 1.5s infinite}@keyframes statPulse{0%{transform:scale(.95);box-shadow:0 0 #dc2626b3}70%{transform:scale(1.2);box-shadow:0 0 0 6px #dc262600}to{transform:scale(.95);box-shadow:0 0 #dc262600}}.stat-header-subtitle{font-size:.85rem;color:var(--text-muted);margin-top:2px}.stat-header-controls{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.stat-date-filter-group{display:inline-flex;align-items:center;background:var(--bg-app, #f1f5f9);padding:3px;border-radius:var(--radius-md, 8px);border:1px solid var(--border, #e2e8f0);gap:2px}.stat-date-btn{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;font-size:.78rem;font-weight:700;border:none;background:transparent;color:var(--text-secondary, #64748b);border-radius:6px;cursor:pointer;transition:all .15s ease}.stat-date-btn:hover{color:var(--text-primary, #0f172a)}.stat-date-btn.active{background:var(--bg-card, #ffffff);color:var(--text-primary, #0f172a);box-shadow:0 1px 3px #00000014}.stat-refresh-badge{display:flex;align-items:center;gap:6px;font-size:.82rem;color:var(--text-secondary);background:var(--bg-app);padding:7px 12px;border-radius:var(--radius-md);border:1px solid var(--border);font-variant-numeric:tabular-nums;font-weight:600}.stat-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:var(--radius-md);font-size:.82rem;font-weight:700;cursor:pointer;transition:all var(--transition-fast);border:1px solid var(--border);background:var(--bg-card);color:var(--text-primary)}.stat-btn:hover{background:var(--bg-app);border-color:#cbd5e1}.stat-btn-primary{background:var(--primary);color:#fff;border-color:var(--primary)}.stat-btn-primary:hover{background:var(--primary-hover);color:#fff}.stat-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}.stat-kpi-card{background:var(--bg-card);border-radius:var(--radius-lg);padding:1.15rem 1.25rem;border:1px solid var(--border);box-shadow:var(--shadow-sm);display:flex;flex-direction:column;position:relative;overflow:hidden;transition:transform var(--transition-fast),box-shadow var(--transition-fast)}.stat-kpi-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.stat-kpi-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.stat-kpi-label{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.stat-kpi-icon{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center}.stat-kpi-value{font-family:var(--font-display);font-size:2rem;font-weight:800;line-height:1;color:var(--text-primary);margin-bottom:.35rem}.stat-kpi-sub{font-size:.75rem;color:var(--text-muted)}.kpi-total .stat-kpi-icon{background:#3b82f61f;color:#2563eb}.kpi-ontrack .stat-kpi-icon{background:#22c55e1f;color:#16a34a}.kpi-ontrack .stat-kpi-value{color:#16a34a}.kpi-warning .stat-kpi-icon{background:#f59e0b26;color:#d97706}.kpi-warning .stat-kpi-value{color:#d97706}.kpi-breach .stat-kpi-icon{background:#ef444426;color:#dc2626}.kpi-breach .stat-kpi-value{color:#dc2626}.kpi-done .stat-kpi-icon{background:#6366f11f;color:#6366f1}.kpi-compliance .stat-kpi-icon{background:#0ea5e91f;color:#0284c7}.stat-regions-strip{display:flex;gap:.85rem;overflow-x:auto;padding-bottom:.4rem}.stat-region-pill{flex:1;min-width:170px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);padding:.75rem 1rem;display:flex;flex-direction:column;gap:4px;cursor:pointer;transition:all var(--transition-fast)}.stat-region-pill.active{border-color:var(--primary);background:var(--primary-glow)}.stat-region-pill-top{display:flex;justify-content:space-between;align-items:center;font-size:.82rem;font-weight:700}.stat-region-target{font-size:.7rem;color:var(--text-muted);background:var(--bg-app);padding:1px 6px;border-radius:4px}.stat-region-pill-stats{display:flex;align-items:baseline;justify-content:space-between;margin-top:2px}.stat-region-active-count{font-size:1.25rem;font-weight:800;font-family:var(--font-display)}.stat-region-overdue-tag{font-size:.7rem;font-weight:700;color:#dc2626;background:#fee2e2;padding:1px 5px;border-radius:4px}.stat-urgent-section{background:#fff1f2;border:1px solid #fecdd3;border-radius:var(--radius-lg);padding:1rem 1.25rem;display:flex;flex-direction:column;gap:.75rem}.stat-urgent-title-row{display:flex;align-items:center;justify-content:space-between;color:#9f1239;font-weight:800;font-size:.92rem}.stat-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;background:var(--bg-card);padding:.85rem 1.25rem;border-radius:var(--radius-md);border:1px solid var(--border)}.stat-search-box{display:flex;align-items:center;gap:8px;background:var(--bg-app);border:1px solid var(--border);padding:6px 12px;border-radius:var(--radius-md);flex:1;max-width:380px}.stat-search-input{border:none;background:transparent;outline:none;font-size:.82rem;width:100%;color:inherit}.stat-filter-pills{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.stat-filter-chip{padding:5px 11px;border-radius:999px;font-size:.75rem;font-weight:700;cursor:pointer;border:1px solid var(--border);background:var(--bg-app);color:var(--text-secondary);transition:all var(--transition-fast)}.stat-filter-chip.active{background:var(--primary);color:#fff;border-color:var(--primary)}.stat-cards-container{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:1.25rem}.stat-order-card{background:#fff;border-radius:12px;border:1px solid #e2e8f0;box-shadow:0 2px 6px #0000000a;padding:1.25rem;display:flex;flex-direction:column;gap:.85rem;position:relative;transition:transform var(--transition-fast),box-shadow var(--transition-fast)}.stat-order-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px #00000014}.stat-order-card.status-breach{border-left:5px solid #ef4444}.stat-order-card.status-warning{border-left:5px solid #f59e0b}.stat-order-card.status-ontrack{border-left:5px solid #16a34a}.stat-order-card.status-done{border-left:5px solid #64748b;opacity:.9}.stat-card-top-row{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}.stat-card-patient-info{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.stat-card-patient-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.stat-card-patient-name{font-family:var(--font-sans);font-size:1.08rem;font-weight:800;color:#0f172a;margin:0;line-height:1.25;letter-spacing:-.01em}.stat-room-badge{font-size:.72rem;font-weight:700;background:#e0f2fe;color:#0369a1;padding:2px 7px;border-radius:5px;border:1px solid #bae6fd;white-space:nowrap}.stat-card-meta-line{font-size:.74rem;color:#64748b;margin-top:1px}.stat-tat-timer-badge{display:flex;align-items:center;gap:5px;padding:4px 10px;border-radius:6px;font-weight:800;font-size:.78rem;font-variant-numeric:tabular-nums;white-space:nowrap;flex-shrink:0}.timer-breach{background:#fee2e2;color:#dc2626;border:1px solid #fca5a5;animation:pulseBreach 2s infinite}@keyframes pulseBreach{0%,to{opacity:1}50%{opacity:.85}}.timer-warning{background:#fef3c7;color:#b45309;border:1px solid #fde68a}.timer-ontrack{background:#dcfce7;color:#15803d;border:1px solid #86efac}.timer-done{background:#f1f5f9;color:#475569;border:1px solid #cbd5e1}.stat-card-facility-block{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:.65rem .85rem;display:flex;flex-direction:column;gap:3px}.stat-card-facility-name-row{display:flex;align-items:center;gap:6px;min-width:0}.stat-card-facility-title{font-weight:700;font-size:.88rem;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.stat-card-facility-id-tag{font-size:.7rem;color:#64748b;background:#fff;border:1px solid #cbd5e1;padding:1px 5px;border-radius:4px;font-weight:600;flex-shrink:0}.stat-card-facility-city-row{display:flex;align-items:center;gap:5px;font-size:.76rem;color:#475569;padding-left:20px}.stat-card-tests-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:.65rem .85rem;display:flex;flex-direction:column;gap:2px}.stat-card-tests-label{display:flex;align-items:center;gap:5px;color:#64748b;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.stat-card-tests-content{font-weight:700;color:#0f172a;font-size:.86rem;line-height:1.35;word-break:break-word}.stat-card-assigned-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;background:#f8fafc;border:1px solid #e2e8f0;padding:.55rem .85rem;border-radius:8px;font-size:.78rem}.stat-flab-badge{font-size:.68rem;font-weight:800;background:#e0e7ff;color:#4338ca;padding:1px 5px;border-radius:4px;border:1px solid #c7d2fe}.stat-progress-bar-container{display:flex;flex-direction:column;gap:4px}.stat-progress-bar-track{width:100%;height:7px;border-radius:4px;background:#e2e8f0;overflow:hidden;position:relative}.stat-progress-bar-fill{height:100%;border-radius:4px;transition:width .4s ease}.fill-ontrack{background:linear-gradient(90deg,#22c55e,#16a34a)}.fill-warning{background:linear-gradient(90deg,#f59e0b,#d97706)}.fill-breach{background:linear-gradient(90deg,#ef4444,#dc2626)}.fill-done{background:#64748b}.stat-progress-bar-labels{display:flex;justify-content:space-between;font-size:.7rem;color:var(--text-muted)}.stat-card-view-details-btn{background:transparent;border:none;color:var(--primary);font-size:.78rem;font-weight:700;cursor:pointer;display:flex;align-items:center;gap:4px;padding:3px 0;transition:opacity .15s ease}.stat-card-view-details-btn:hover{text-decoration:underline;opacity:.85}.stat-table-wrapper{overflow-x:auto;background:var(--bg-card);border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.stat-table{width:100%;border-collapse:collapse;font-size:.85rem;text-align:left}.stat-table th{background:var(--bg-app);padding:.75rem 1rem;font-size:.74rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid var(--border)}.stat-table td{padding:.85rem 1rem;border-bottom:1px solid var(--border)}.stat-table tr:hover{background:#00000004}.benchmark-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:999999;display:flex;align-items:center;justify-content:center;padding:1rem}.benchmark-modal-card{background:var(--bg-card);border-radius:var(--radius-lg);width:100%;max-width:520px;box-shadow:var(--shadow-lg);border:1px solid var(--border);overflow:hidden;animation:fadeIn .2s ease;color:var(--text-primary)}:root{--font-sans: "Inter", system-ui, -apple-system, sans-serif;--font-display: "Outfit", sans-serif;--primary: #c92c3a;--primary-hover: #b02431;--primary-glow: rgba(201, 44, 58, .12);--bg-app: #f4f6f9;--bg-card: #ffffff;--bg-sidebar: #ffffff;--sidebar-active-bg: linear-gradient(135deg, #c92c3a 0%, #a21a25 100%);--sidebar-hover-bg: #f1f5f9;--text-primary: #0f172a;--text-secondary: #475569;--text-muted: #64748b;--text-on-dark: #ffffff;--border: #e2e8f0;--border-focus: #c92c3a;--status-pending: #ff9900;--status-dispatched: #2eaf4a;--status-done: #64748b;--login-bg: linear-gradient(135deg, #eef2f6 0%, #e2e8f0 50%, #f8fafc 100%);--login-card-bg: rgba(255, 255, 255, .95);--login-card-border: #cbd5e1;--login-input-bg: #ffffff;--login-input-border: #cbd5e1;--login-input-text: #0f172a;--login-license-bg: #f8fafc;--login-license-text: #334155;--shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, .05);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .06), 0 2px 4px -1px rgba(0, 0, 0, .03);--shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, .08), 0 4px 6px -2px rgba(0, 0, 0, .03);--shadow-glow: 0 0 20px rgba(201, 44, 58, .08);--glass-bg: rgba(255, 255, 255, .85);--glass-border: rgba(226, 232, 240, .8);--glass-blur: 16px;--radius-sm: 6px;--radius-md: 10px;--radius-lg: 16px;--radius-full: 9999px;--transition-fast: .15s ease;--transition-normal: .25s cubic-bezier(.4, 0, .2, 1);--font-size-table-1x: 13px;--font-size-table-2x: 16px;--font-size-table-3x: 20px}[data-theme=dark]{--bg-app: #0b0f19;--bg-card: #151c2c;--bg-sidebar: #090c14;--sidebar-active-bg: linear-gradient(135deg, #c92c3a 0%, #a21a25 100%);--sidebar-hover-bg: rgba(255, 255, 255, .05);--text-primary: #f3f4f6;--text-secondary: #9ca3af;--text-muted: #6b7280;--border: #222c3f;--glass-bg: rgba(21, 28, 44, .7);--glass-border: rgba(34, 44, 63, .4);--login-bg: linear-gradient(135deg, #0b0f19 0%, #1a1625 50%, #111a2e 100%);--login-card-bg: rgba(21, 28, 44, .85);--login-card-border: rgba(255, 255, 255, .08);--login-input-bg: rgba(9, 12, 20, .6);--login-input-border: rgba(255, 255, 255, .12);--login-input-text: #ffffff;--login-license-bg: rgba(9, 12, 20, .8);--login-license-text: #a0aec0;--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .3), 0 2px 4px -1px rgba(0, 0, 0, .2);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .4), 0 4px 6px -2px rgba(0, 0, 0, .2);--shadow-glow: 0 0 25px rgba(201, 44, 58, .15)}
