*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;min-width:0}body{font-family:Arial,Helvetica,sans-serif;background:#e5e9ec;color:#222;overflow:hidden;min-width:0}button{font-family:inherit}.app{width:100%;height:100%;min-width:0;display:flex;flex-direction:column}.topbar{height:45px;flex-shrink:0;background:#225385;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 6px}.clinic-name{font-size:15px;font-weight:800;letter-spacing:.8px}.clinic-subtitle{font-size:7px;letter-spacing:1.2px;opacity:.8}.live-indicator{display:flex;align-items:center;gap:4px;font-size:8px;font-weight:700}.live-dot{width:6px;height:6px;background:#68c45a;border-radius:50%}.room-list{flex:1;min-height:0;min-width:0;width:100%;display:flex;flex-direction:column;gap:2px;padding:2px;overflow:hidden}.room{flex:1;min-height:0;min-width:0;width:100%;background:#fff;border:1px solid #c7cdd3;border-radius:4px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 1px 2px #0000001a}.room-header{height:22px;flex-shrink:0;background:#dce2e7;display:flex;align-items:center;justify-content:space-between;padding:0 5px}.room-number{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:800;color:#225385;text-transform:uppercase}.room-reset{width:30px;height:20px;flex-shrink:0;border:0;border-radius:4px;background:#aeb6bd;color:#fff;font-size:16px;line-height:20px;padding:0;cursor:pointer}.room-reset:hover{filter:brightness(1.06)}.room-content{flex:1;min-height:0;min-width:0;width:100%;padding:2px;display:flex;overflow:hidden}.empty-room{width:100%;height:100%;border-radius:4px;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none}.empty-room:hover{filter:brightness(1.05)}.empty-room-text{font-size:clamp(17px,2.8vw,26px);font-weight:800;text-align:center}.empty-room-hint{order:-1;margin-bottom:8px;font-size:8px;font-weight:700;opacity:.8;border:1px dashed rgba(255,255,255,.55);border-radius:3px;padding:5px 10px}.patient-stack{width:100%;height:100%;min-height:0;min-width:0;display:flex;flex-direction:row;align-items:stretch;gap:4px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;padding-bottom:1px;overscroll-behavior-x:contain}.patient-stack::-webkit-scrollbar{height:5px}.patient-stack::-webkit-scrollbar-track{background:#e1e6ea;border-radius:3px}.patient-stack::-webkit-scrollbar-thumb{background:#aeb6bd;border-radius:3px}.patient-stack::-webkit-scrollbar-thumb:hover{background:#909ba3}.patient-stack.has-single-patient .patient-card{flex:0 0 100%;width:100%;min-width:100%}.patient-stack.has-multiple-patients .patient-card{flex:0 0 70%;width:70%;min-width:70%}.patient-card{min-height:70px;height:100%;border:1px solid rgba(255,255,255,.35);border-radius:4px;overflow:hidden;display:flex;flex-direction:column;cursor:default!important;-webkit-user-drag:element;-webkit-user-select:none;user-select:none;scroll-snap-align:start;color:#fff}.patient-card:active,.patient-card *,.patient-card[draggable=true],.patient-card[draggable=true] *{cursor:default!important}.patient-card button{cursor:pointer!important}.patient-card input{cursor:text!important}.patient-card:hover{filter:brightness(1.03)}.patient-controls{flex-shrink:0;min-width:0;min-height:27px;height:27px;display:grid;grid-template-columns:minmax(0,1fr) 43px;align-items:center;gap:4px;padding:2px 4px}.patient-control-left{min-width:0;max-width:100%;display:flex;align-items:center;gap:3px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.patient-control-left::-webkit-scrollbar{display:none}.patient-type-button,.patient-small-button{height:23px;flex:0 0 auto;border:0;border-radius:4px;padding:0 7px;font-size:9px;font-weight:800;cursor:pointer;white-space:nowrap;text-transform:uppercase}.patient-type-button{min-width:43px;width:auto}.patient-small-button{min-width:31px;width:auto;max-width:42px;background:#d9d9d9;color:#222}.patient-type-button:hover,.patient-small-button:hover{filter:brightness(1.06)}.room-weight{width:43px;min-width:43px;max-width:43px;flex-shrink:0;display:flex;align-items:center;justify-content:flex-end;gap:2px;color:#fff;font-size:9px;font-weight:800}.room-weight input{width:34px;height:18px;min-width:34px;border:1px solid rgba(255,255,255,.65);border-radius:3px;background:#ffffffeb;color:#222;padding:0 3px;font-size:9px;font-weight:800;text-align:right;outline:none}.room-weight input:focus{border-color:#fff}.patient-info-row{flex-shrink:0;min-height:36px;height:36px;display:flex;align-items:center;justify-content:center;padding:0 7px;color:#fff;transform:translateY(-2px)}.patient-name-card{width:100%;min-width:0;flex:1;font-size:clamp(17px,3vw,26px);font-weight:800;color:#fff;text-transform:uppercase;text-align:center;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.patient-details-line{transform:translateY(-2px);flex-shrink:0;width:100%;min-width:0;height:14px;min-height:14px;display:flex;align-items:center;justify-content:center;gap:5px;padding:0 7px;color:#fff;overflow:hidden}.patient-detail-text{min-width:0;flex:0 1 auto;color:#fffffff5;font-size:8px;font-weight:800;line-height:10px;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.patient-detail-dash{flex-shrink:0;color:#fffc;font-size:8px;font-weight:800;line-height:10px}.patient-reason-room{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.patient-alerts-room{transform:translateY(-2px);flex-shrink:0;width:100%;min-width:0;height:14px;min-height:14px;display:flex;align-items:center;justify-content:center;gap:3px;padding:0 7px;overflow:hidden}.patient-alert-room{flex:0 1 auto;min-width:0;max-width:100%;background:#b54f52;color:#fff;border-radius:3px;padding:2px 4px;font-size:7px;font-weight:800;text-align:center;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.patient-status{transform:translateY(-2px);flex:1 1 0;min-height:45px;margin-top:2px;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:5px;cursor:default;-webkit-user-select:none;user-select:none}.patient-status:hover{filter:brightness(1.05)}.patient-status span{font-size:clamp(20px,3.5vw,32px);font-weight:800;line-height:1.05;text-transform:uppercase}.patient-status strong{min-height:1em;margin-top:5px;font-size:clamp(10px,1.6vw,15px);font-weight:800;line-height:1;text-transform:uppercase}.waiting-section{flex:0 0 180px;min-width:0;background:#dce2e7;border-top:1px solid #c0c7cd;padding:4px;display:flex;flex-direction:column}.waiting-header{height:20px;flex-shrink:0;display:flex;align-items:center;gap:6px;padding:0 3px;color:#225385;font-size:9px;font-weight:800}.waiting-count{min-width:16px;height:14px;padding:0 4px;border-radius:7px;background:#225385;color:#fff;display:flex;align-items:center;justify-content:center;font-size:8px}.waiting-sync{margin-left:auto;color:#777;font-size:7px}.waiting-list{flex:1;min-height:0;display:flex;flex-direction:column;gap:3px;overflow-y:auto;overflow-x:hidden}.waiting-empty{flex:1;min-height:34px;display:flex;align-items:center;justify-content:center;color:#777;font-size:8px;font-weight:700}.waiting-card{flex-shrink:0;width:100%;min-width:0;min-height:48px;background:#fff;border:1px solid #c5cbd0;border-radius:4px;padding:4px 5px;display:flex;align-items:center;gap:5px;cursor:grab;box-shadow:0 1px 2px #00000014}.waiting-card:hover{background:#f7f9fa;border-color:#225385}.waiting-main{min-width:0;flex:1}.waiting-name{font-size:10px;font-weight:800;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.waiting-details{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:3px;color:#687078;font-size:7px;font-weight:700;text-transform:uppercase}.waiting-weight{display:inline-flex;align-items:center;gap:2px}.waiting-weight input{width:46px;height:19px;border:1px solid #b8c0c6;border-radius:3px;padding:0 4px;background:#fff;color:#333;font-size:8px;font-weight:700;outline:none}.waiting-weight input:focus{border-color:#225385}.waiting-reason{margin-top:3px;color:#56616a;font-size:7px;font-weight:700;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.waiting-alerts{flex-shrink:0;max-width:90px;display:flex;flex-direction:column;gap:2px}.waiting-alert{background:#b54f52;color:#fff;border-radius:3px;padding:2px 4px;font-size:7px;font-weight:800;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.context-menu{position:fixed;z-index:1000;min-width:175px;max-width:90vw;background:#fff;border:1px solid #c8cdd2;border-radius:5px;box-shadow:0 5px 18px #00000040;padding:3px}.context-menu button{width:100%;min-height:30px;border:0;background:#fff;border-radius:3px;padding:5px 7px;display:flex;align-items:center;gap:7px;text-align:left;font-size:10px;font-weight:600;cursor:pointer;text-transform:uppercase}.context-menu button:hover{background:#edf2f6}.menu-color{width:12px;height:12px;border-radius:3px;flex-shrink:0}.modal-overlay{position:fixed;inset:0;z-index:2000;background:#0000006b;display:flex;align-items:center;justify-content:center}.modal{width:min(350px,calc(100% - 20px));background:#fff;border-radius:8px;padding:16px;box-shadow:0 10px 35px #0000004d}.modal h2{margin:0 0 6px;color:#225385;font-size:17px;text-transform:uppercase}.modal p{margin:0 0 13px;color:#555;font-size:12px}.patient-input{width:100%;height:38px;border:1px solid #b8bec4;border-radius:4px;padding:0 8px;font-size:15px;margin-bottom:13px;outline:none}.patient-input:focus{border-color:#225385}.modal-weight-row{display:flex;align-items:center;gap:5px}.modal-weight-row .patient-input{margin-bottom:13px}.modal-weight-row>span{margin-bottom:13px;color:#555;font-size:10px;font-weight:800}.weight-input{flex:1}.manual-time-row{margin-top:-2px}.manual-time-row label{display:block;margin-bottom:4px;color:#666;font-size:8px;font-weight:800;text-transform:uppercase}.manual-time-row .patient-input{margin-bottom:10px}.manual-defaults{display:flex;align-items:center;gap:5px;margin:-2px 0 12px}.manual-defaults span{display:inline-flex;align-items:center;justify-content:center;min-height:23px;padding:0 8px;border-radius:4px;background:#d9d9d9;color:#333;font-size:8px;font-weight:800}.manual-defaults span:first-child{background:#d5ad4a}.manual-defaults span:last-child{background:#295687;color:#fff}.modal-buttons{display:flex;justify-content:flex-end;gap:5px}.modal-buttons button{border:0;border-radius:4px;padding:7px 11px;font-size:10px;font-weight:700;cursor:pointer;text-transform:uppercase}.cancel-button{background:#ddd}.confirm-button{background:#225385;color:#fff}.loading{width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;font-size:15px;color:#225385}
