:root{font-family:Arial,sans-serif;line-height:1.5;font-weight:400;color:#1f2937;background:#f4f7fb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html,body,#root{width:100%;min-height:100%;margin:0;padding:0}body{min-width:320px;background:#f4f7fb}button,input,select,textarea{font:inherit}*,*:before,*:after{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;background:#f0f4fa;color:#1f2937}.page{width:100%;min-height:100vh;padding:28px 36px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.topbar h1{margin:0;color:#0d2f5b;font-size:22px;font-weight:800;letter-spacing:-.3px}.topbar-sub{margin:4px 0 0;color:#94a3b8;font-size:13px}.logout-btn{background:#0d2f5b;color:#fff;border:none;padding:10px 18px;border-radius:10px;cursor:pointer;font-weight:600;font-size:14px}.logout-btn:hover{background:#1e3a5f}.stats-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:22px 0}.stat-card{background:#fff;border-radius:16px;padding:20px 22px;box-shadow:0 2px 12px #0d2f5b12;border:1px solid rgba(13,47,91,.06)}.stat-label{font-size:12px;font-weight:600;color:#94a3b8;text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px}.stat-value{font-size:32px;font-weight:800;color:#0d2f5b;line-height:1}.overdue-value{color:#dc2626}.attention-value{color:#d97706}.clickable-card{border:none;text-align:left;cursor:pointer;width:100%;transition:transform .15s ease,box-shadow .15s ease}.clickable-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px #0d2f5b1f}.view-buttons{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.view-buttons button{padding:9px 18px;border:1.5px solid #e2e8f0;background:#fff;border-radius:10px;cursor:pointer;font-size:14px;font-weight:500;color:#64748b;transition:all .15s}.view-buttons button:hover{border-color:#0d2f5b;color:#0d2f5b}.view-buttons .active{background:#0d2f5b;color:#fff;border-color:#0d2f5b;font-weight:600}.unassigned-tab{border-color:#f59e0b!important;color:#b45309!important;display:flex;align-items:center;gap:6px}.unassigned-tab.active{background:#b45309!important;color:#fff!important}.unassigned-count{background:#dc2626;color:#fff;border-radius:999px;padding:1px 7px;font-size:11px;font-weight:700}.form-card,.table-card{background:#fff;border-radius:18px;padding:26px;box-shadow:0 2px 12px #0d2f5b12;border:1px solid rgba(13,47,91,.06);margin-bottom:22px}.form-card h3,.table-card h3{margin:0 0 18px;color:#0d2f5b;font-size:16px;font-weight:700}.count-label{font-size:13px;font-weight:400;color:#94a3b8;margin-left:8px}.field-input{padding:11px 14px;border:1.5px solid #e2e8f0;border-radius:10px;font-size:14px;color:#1f2937;width:100%;transition:border-color .15s;background:#fff}.field-input:focus{outline:none;border-color:#0d2f5b}.field-label{display:block;margin-bottom:6px;font-weight:600;font-size:13px;color:#374151}.task-grid{display:grid;grid-template-columns:1.2fr 1.5fr 1fr 1fr 1fr 1fr;gap:12px}.filter-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr auto;gap:12px;align-items:center}.staff-form-grid{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px;align-items:center}.admin-toggle-label{display:flex;align-items:center;gap:8px;font-size:14px;color:#374151;cursor:pointer;white-space:nowrap}.admin-toggle-label input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:#0d2f5b}.notes-block{margin-top:12px}.notes-input{width:100%;min-height:90px;padding:12px 14px;border:1.5px solid #e2e8f0;border-radius:10px;resize:vertical;font-size:14px;font-family:inherit}.notes-input:focus{outline:none;border-color:#0d2f5b}.form-actions{display:flex;gap:10px;margin-top:14px}.add-btn{background:#1d4ed8;color:#fff;border:none;border-radius:10px;padding:11px 18px;cursor:pointer;font-weight:600;font-size:14px}.add-btn:hover{background:#1e40af}.secondary-btn{background:#fff;color:#0d2f5b;border:1.5px solid #e2e8f0;border-radius:10px;padding:11px 18px;cursor:pointer;font-weight:600;font-size:14px}.secondary-btn:hover{background:#f8fbff;border-color:#0d2f5b}.danger-btn{background:#dc2626;color:#fff;border:none;border-radius:10px;padding:11px 18px;cursor:pointer;font-weight:600;font-size:14px}.danger-btn:hover{background:#b91c1c}.table-btn{background:#0d2f5b;color:#fff;border:none;padding:8px 12px;border-radius:8px;cursor:pointer;font-size:13px;font-weight:600}.table-btn:hover{background:#1e3a5f}.comment-btn{background:#f0f9ff;color:#0369a1;border:1.5px solid #bae6fd;border-radius:8px;padding:8px 12px;cursor:pointer;font-size:13px;font-weight:600}.comment-btn:hover{background:#e0f2fe}.sendback-btn{background:#fffbeb;color:#b45309;border:1.5px solid #f59e0b;border-radius:8px;padding:8px 12px;cursor:pointer;font-size:13px;font-weight:600}.sendback-btn:hover{background:#fef3c7}.small-btn{padding:8px 12px!important;font-size:13px!important}.task-table{width:100%;border-collapse:collapse}.task-table th{background:#f8fafc;padding:11px 14px;text-align:left;font-size:12px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.04em;border-bottom:2px solid #e2e8f0}.task-table td{padding:14px;border-bottom:1px solid #f1f5f9;vertical-align:top}.task-table tbody tr:hover{background:#f8fbff}.overdue-row{background:#fff5f5!important}.overdue-row:hover{background:#fef2f2!important}.returned-row{background:#fffbeb!important}.returned-row:hover{background:#fef9e7!important}.unassigned-row{background:#f0f9ff!important}.unassigned-row:hover{background:#e0f2fe!important}.task-card{background:#fff;border:1.5px solid #e2e8f0;border-radius:14px;padding:16px;margin-bottom:12px}.task-card.overdue-card{background:#fff5f5;border-color:#fecaca}.task-card.returned-card{background:#fffbeb;border-color:#fde68a}.task-card.unassigned-card{background:#f0f9ff;border-color:#bae6fd}.task-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px}.task-card-patient{font-size:11px;font-weight:700;color:#0369a1;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px}.task-card-title{font-size:15px;font-weight:700;color:#0d2f5b;line-height:1.3}.task-card-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:#6b7280;margin-bottom:8px}.task-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid #f1f5f9}.staff-card{background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:14px;padding:16px;margin-bottom:12px}.badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700}.badge.low{background:#dcfce7;color:#166534}.badge.normal{background:#dbeafe;color:#1d4ed8}.badge.high{background:#fff7ed;color:#c2410c}.badge.urgent{background:#fee2e2;color:#b91c1c}.returned-badge{display:inline-block;background:#fef3c7;color:#92400e;border-radius:6px;padding:2px 8px;font-size:11px;font-weight:700}.unassigned-badge{display:inline-block;background:#e0f2fe;color:#0369a1;border-radius:6px;padding:2px 8px;font-size:11px;font-weight:700}.overdue-text{display:inline-block;color:#dc2626;font-size:12px;font-weight:700}.due-today-text{display:inline-block;color:#d97706;font-size:12px;font-weight:700}.inline-select{width:100%;padding:8px 10px;border:1.5px solid #e2e8f0;border-radius:8px;font-size:13px}.action-stack{display:flex;flex-direction:column;gap:6px;min-width:110px}.task-notes{margin-top:6px;font-size:12px;color:#6b7280;white-space:pre-wrap;line-height:1.5}.error-box{background:#fee2e2;color:#b91c1c;padding:12px 16px;border-radius:10px;margin-bottom:16px;font-size:14px}.success-box{background:#dcfce7;color:#166534;padding:12px 16px;border-radius:10px;font-size:14px}.empty-text{text-align:center;color:#94a3b8;padding:32px 0;font-size:14px}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}.modal-box{background:#fff;border-radius:18px;padding:28px;width:100%;box-shadow:0 20px 60px #0003;max-height:90vh;display:flex;flex-direction:column;overflow-y:auto}.notes-preview{background:#f8fbff;border:1px solid #e2e8f0;border-radius:10px;padding:12px 14px;margin-bottom:16px;font-size:13px;color:#374151}.notes-preview-label{font-weight:700;color:#0d2f5b;margin-bottom:4px;font-size:11px;text-transform:uppercase;letter-spacing:.05em}.comment-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0}.comment-bubble{border:1px solid;border-radius:10px;padding:10px 12px;font-size:13px;color:#1f2937;white-space:pre-wrap;line-height:1.5}.comment-input{width:100%;padding:10px 12px;border-radius:10px;border:1.5px solid #e2e8f0;font-size:13px;resize:vertical;margin-bottom:10px;font-family:inherit}.comment-input:focus{outline:none;border-color:#0d2f5b}.login-wrapper{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.login-left{background:linear-gradient(145deg,#0a1f3f,#0d2f5b 40%,#1a4a8a);display:flex;align-items:center;justify-content:center;padding:60px 48px;position:relative;overflow:hidden}.login-left:before{content:"";position:absolute;width:400px;height:400px;background:#ffffff08;border-radius:50%;top:-100px;right:-100px}.login-left:after{content:"";position:absolute;width:300px;height:300px;background:#ffffff08;border-radius:50%;bottom:-80px;left:-80px}.login-brand{position:relative;z-index:1}.login-logo{width:64px;height:64px;border-radius:18px;background:linear-gradient(135deg,#3b82f6,#1d4ed8);display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:900;color:#fff;margin-bottom:24px;box-shadow:0 8px 24px #3b82f666;letter-spacing:-1px}.login-logo.small{width:42px;height:42px;border-radius:12px;font-size:18px;margin-bottom:0;flex-shrink:0}.login-title{font-size:34px;font-weight:900;color:#fff;margin:0 0 10px;line-height:1.2;letter-spacing:-.5px}.login-subtitle{font-size:15px;color:#fff9;margin:0 0 20px;font-weight:500;text-transform:uppercase;letter-spacing:.08em}.login-description{font-size:15px;color:#ffffffbf;line-height:1.7;margin:0 0 28px;max-width:340px}.login-features{display:flex;flex-direction:column;gap:8px}.login-feature{font-size:14px;color:#fffc;font-weight:500}.login-right{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f8fafc;padding:40px 24px}.login-mobile-brand{display:none;align-items:center;gap:14px;margin-bottom:32px}.login-mobile-title{font-size:18px;font-weight:800;color:#0d2f5b}.login-mobile-sub{font-size:12px;color:#94a3b8;margin-top:2px}.login-card{width:100%;max-width:380px;background:#fff;border-radius:20px;padding:36px;box-shadow:0 4px 24px #0d2f5b1a;border:1px solid rgba(13,47,91,.06)}.login-form-title{margin:0 0 6px;color:#0d2f5b;font-size:24px;font-weight:800}.login-form-sub{margin:0 0 24px;color:#94a3b8;font-size:14px}.login-input{display:block;width:100%;padding:13px 16px;border:1.5px solid #e2e8f0;border-radius:12px;font-size:15px;margin-bottom:12px;color:#1f2937;transition:border-color .15s}.login-input:focus{outline:none;border-color:#0d2f5b}.login-button{display:block;width:100%;background:linear-gradient(135deg,#0d2f5b,#1d4ed8);color:#fff;border:none;padding:14px;border-radius:12px;font-size:16px;font-weight:700;cursor:pointer;margin-top:4px;letter-spacing:.02em;transition:opacity .15s}.login-button:hover{opacity:.92}.login-footer{font-size:12px;color:#94a3b8;margin:14px 0 0;text-align:center}.desktop-only{display:block}.mobile-only{display:none}@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(3,1fr)}.task-grid,.filter-grid{grid-template-columns:1fr 1fr 1fr}}@media(max-width:768px){.page{padding:16px}.stats-grid{grid-template-columns:repeat(2,1fr)}.task-grid,.filter-grid,.staff-form-grid{grid-template-columns:1fr}.desktop-only{display:none}.mobile-only{display:block}.login-wrapper{grid-template-columns:1fr}.login-left{display:none}.login-mobile-brand{display:flex}.login-right{justify-content:flex-start;padding-top:60px}}.returned-tab{display:flex;align-items:center;gap:6px;border-color:#f59e0b!important;color:#b45309!important}.returned-tab.active{background:#b45309!important;color:#fff!important}.returned-count{background:#b45309;color:#fff;border-radius:999px;padding:1px 7px;font-size:11px;font-weight:700}.comment-count-badge{display:inline-block;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:2px 8px;font-size:11px;font-weight:700}input[type=date]:not(:focus):not([value=""]){color:#1f2937}input[type=date]::-webkit-date-and-time-value{text-align:left}input[type=date]:before{content:attr(placeholder);color:#9ca3af}input[type=date]:focus:before,input[type=date]:valid:before{display:none}input[type=date]{-webkit-appearance:none;appearance:none;padding:10px 12px;font-size:16px;line-height:1.2;height:44px;box-sizing:border-box}
