:root{font-family:Tahoma,Arial,sans-serif;color:#172225;background:#f3f7f6;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:#f3f7f6}button,input,textarea,select{font:inherit}button{cursor:pointer}svg{width:20px;height:20px}.auth-page,.splash{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 15%,#ccfbf1,transparent 32%),linear-gradient(135deg,#f8fffd,#e6f1ef)}.auth-panel{width:min(430px,100%);background:#fff;border:1px solid #dbe8e5;border-radius:28px;padding:34px;box-shadow:0 24px 80px #0f766e1c;text-align:center}.brand-mark{width:66px;height:66px;border-radius:20px;display:grid;place-items:center;margin:0 auto 16px;background:#0f766e;color:#fff;font-size:40px;font-weight:900}.brand-mark.small{width:42px;height:42px;border-radius:14px;margin:0;font-size:28px}.eyebrow{margin:0 0 5px;color:#0f766e;font-size:12px;font-weight:800;letter-spacing:.08em}.auth-panel h1{margin:4px 0 8px;font-size:28px}.muted{color:#64748b;line-height:1.7}.stack{display:flex;flex-direction:column;gap:15px;margin-top:24px;text-align:right}label{display:block;margin-bottom:7px;font-weight:700;font-size:14px}input,textarea,select{width:100%;border:1px solid #cbdad7;background:#fff;border-radius:12px;padding:11px 13px;outline:none;transition:.2s}input:focus,textarea:focus,select:focus{border-color:#0f766e;box-shadow:0 0 0 3px #14b8a622}textarea{min-height:96px;resize:vertical}.primary-btn,.secondary-btn{border:0;border-radius:12px;padding:11px 18px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary-btn{background:#0f766e;color:#fff}.primary-btn:hover{background:#0b5e58}.primary-btn:disabled{opacity:.6}.primary-btn.compact{padding:10px 14px}.secondary-btn{background:#eef4f2;color:#24413e}.text-btn{border:0;background:none;color:#0f766e;font-weight:700;margin-top:16px}.error-box{background:#fff1f2;color:#be123c;border:1px solid #fecdd3;padding:11px;border-radius:10px}.splash{color:#0f766e;font-weight:800}.app-shell{min-height:100vh;display:flex;direction:rtl}.sidebar{width:282px;background:#063f3c;color:#ecfdf5;position:fixed;inset:0 0 0 auto;display:flex;flex-direction:column;z-index:40}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:22px;border-bottom:1px solid #ffffff18}.sidebar-brand>div:nth-child(2){display:flex;flex-direction:column;min-width:0}.sidebar-brand strong,.sidebar-brand span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-brand span{font-size:12px;color:#a7f3d0;margin-top:3px}.sidebar nav{padding:14px 10px;display:flex;flex-direction:column;gap:4px;overflow:auto}.sidebar nav button,.logout{border:0;background:transparent;color:#d5f6ed;display:flex;align-items:center;gap:12px;text-align:right;padding:11px 13px;border-radius:12px}.sidebar nav button:hover,.sidebar nav button.active{background:#fff;color:#064e4a;font-weight:800}.logout{margin:auto 12px 16px;background:#ffffff10}.mobile-close{display:none;margin-right:auto;border:0;background:transparent;color:#fff}.main{margin-right:282px;width:calc(100% - 282px);min-height:100vh}.main>header{height:86px;display:flex;align-items:center;gap:15px;padding:0 28px;background:#ffffffed;border-bottom:1px solid #dce8e5;position:sticky;top:0;z-index:20;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.main>header h1{margin:0;font-size:24px}.main>header .primary-btn{margin-right:auto}.menu-btn{display:none;border:1px solid #dbe7e4;background:#fff;border-radius:10px;padding:9px}.main>main{padding:28px;max-width:1500px;margin:auto}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.metric{min-height:135px;padding:22px;border-radius:24px;background:#fff;box-shadow:0 8px 25px #0f172a0b;display:flex;align-items:center;justify-content:space-between;border:1px solid #e4ecea}.metric:nth-child(1){background:#0f766e;color:#fff}.metric:nth-child(2){background:#0369a1;color:#fff}.metric:nth-child(3){background:#f59e0b;color:#172225}.metric:nth-child(4){background:#be123c;color:#fff}.metric span{font-size:14px;opacity:.78}.metric strong{display:block;font-size:28px;margin-top:8px}.metric svg{width:34px;height:34px;opacity:.72}.panel{background:#fff;border:1px solid #e0eae7;border-radius:24px;box-shadow:0 10px 30px #0f172a08;overflow:hidden}.records-page{display:grid;gap:18px}.queue-search-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 15px;border:1px solid #dbe7e4;border-radius:16px;background:#fff}.queue-search-bar>span{flex:0 0 auto;color:#64748b;font-size:13px;font-weight:700}.filed-prescriptions-note{display:flex;align-items:center;gap:14px;padding:16px 18px;border:1px solid #99f6e4;border-radius:18px;background:#ecfdf5;color:#134e4a}.filed-prescriptions-note>svg{flex:0 0 auto;width:30px;height:30px}.filed-prescriptions-note div{display:flex;flex-direction:column;gap:4px}.filed-prescriptions-note span{color:#46645f;line-height:1.6}.appointment-board{padding:20px;border:1px solid #dbe7e4;border-radius:24px;background:linear-gradient(145deg,#fff,#f0fdfa);box-shadow:0 10px 30px #0f172a08}.appointment-board-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.appointment-board-head h2{margin:0;font-size:21px}.appointment-board-head>span{padding:7px 11px;border-radius:999px;background:#dff8f1;color:#075e59;font-weight:800}.queue-focus{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.queue-focus>div{display:flex;flex-direction:column;gap:5px;padding:15px 17px;border-radius:16px}.queue-focus span{font-size:13px;opacity:.78}.queue-focus strong{font-size:20px}.current-patient{background:#075e59;color:#fff}.next-patient{border:1px solid #fcd34d;background:#fffbeb;color:#854d0e}.timer-warning{display:flex;align-items:center;gap:12px;margin-bottom:15px;padding:13px 15px;border:1px solid #f59e0b;border-radius:14px;background:#fffbeb;color:#92400e;animation:timer-pulse 1.4s ease-in-out infinite}.timer-warning>svg{flex:0 0 auto}.timer-warning div{display:flex;flex-direction:column;gap:3px}.timer-empty{margin:0;padding:18px;border:1px dashed #b8d2cd;border-radius:14px;color:#64748b;text-align:center}.appointment-timer-grid{display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:13px}.appointment-timer-card{display:flex;flex-direction:column;gap:14px;min-height:220px;padding:16px;border:2px solid #dbe7e4;border-radius:18px;background:#fff}.appointment-timer-card.running{border-color:#14b8a6}.appointment-timer-card.warning{border-color:#f59e0b;background:#fffbeb}.appointment-timer-card.overtime{border-color:#ef4444;background:#fff1f2}.appointment-timer-card.finished{border-color:#cbd5e1;background:#f8fafc}.timer-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.timer-card-top>div{min-width:0;display:flex;flex-direction:column;gap:5px}.timer-card-top strong{overflow:hidden;font-size:17px;text-overflow:ellipsis;white-space:nowrap}.timer-card-top span{color:#64748b;font-size:13px}.timer-card-top em{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#e2e8f0;color:#475569;font-size:12px;font-style:normal;font-weight:800}.queue-badge{width:fit-content;padding:4px 8px;border-radius:999px;background:#e0f2fe;color:#075985!important;font-weight:800}.queue-card-controls{flex:0 0 auto;display:flex;align-items:center;gap:4px}.queue-card-controls button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:#e6f5f2;color:#0f766e}.queue-card-controls button.danger{background:#fee2e2;color:#b91c1c}.queue-card-controls svg{width:16px;height:16px}.running .timer-card-top em{background:#ccfbf1;color:#0f766e}.warning .timer-card-top em{background:#fef3c7;color:#92400e}.overtime .timer-card-top em{background:#fee2e2;color:#b91c1c}.timer-display{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:74px;border-radius:14px;background:#f1f7f5}.timer-display small{color:#64748b}.timer-display strong{margin-top:5px;color:#075e59;font-size:29px;direction:ltr}.warning .timer-display strong{color:#b45309}.overtime .timer-display strong{color:#be123c}.timer-actions{display:flex;gap:8px}.timer-actions button{flex:1;padding:9px 10px}.workflow-actions{flex-wrap:wrap}.workflow-actions .prescription-action{flex-basis:100%;background:#1d4ed8}.archive-panel .toolbar>div{display:flex;flex-direction:column}.archive-panel .toolbar h2{margin:0}.archive-restore{padding:7px 12px}.timer-extend{background:#e0f2fe;color:#075985}.timer-finish{background:#fee2e2;color:#b91c1c}@keyframes timer-pulse{50%{box-shadow:0 0 0 5px #f59e0b18}}.toolbar{min-height:72px;padding:14px 20px;border-bottom:1px solid #e5ecea;display:flex;align-items:center;justify-content:space-between;gap:12px}.toolbar h2{margin:0}.search{position:relative;width:min(420px,100%)}.search svg{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#94a3b8}.search input{padding-right:42px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{padding:13px 15px;border-bottom:1px solid #e9efed;text-align:right;white-space:nowrap;max-width:260px;overflow:hidden;text-overflow:ellipsis}th{background:#f7faf9;color:#44605c}tbody tr:hover{background:#f8fbfa}.actions{display:flex;gap:4px}.actions button{border:0;background:transparent;border-radius:8px;padding:7px;color:#0f766e}.actions button:hover{background:#e6f5f2}.actions button.danger{color:#dc2626}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;display:grid;place-items:center;padding:20px;z-index:100}.modal{width:min(720px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:24px;padding:24px;box-shadow:0 25px 80px #0005}.modal.large{width:min(1050px,100%)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.modal-head h2{margin:0}.modal-head button{border:0;background:#eef3f2;border-radius:10px;padding:8px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid .wide{grid-column:1/-1}.field-hint{display:block;margin-top:6px;color:#64748b;line-height:1.5}.modal-actions{display:flex;justify-content:flex-start;gap:10px;margin-top:8px}.medicine-picker,.medicine-search-box{position:relative}.medicine-search-box>svg{position:absolute;right:13px;top:50%;width:19px;transform:translateY(-50%);color:#64748b}.medicine-search-box input{padding-right:42px}.medicine-name-error{margin:7px 2px 0;color:#b91c1c;font-size:13px;font-weight:700}.medicine-results{position:absolute;z-index:30;top:47px;right:0;left:0;max-height:330px;overflow:auto;background:#fff;border:1px solid #cbd5e1;border-radius:14px;box-shadow:0 18px 45px #0f172a26;padding:6px}.medicine-results button{width:100%;border:0;border-bottom:1px solid #eef2f7;background:#fff;padding:10px 12px;display:grid;grid-template-columns:minmax(150px,auto) minmax(100px,auto) 1fr;gap:10px;text-align:right;cursor:pointer}.medicine-results button:hover{background:#f0fdfa}.medicine-results button span{color:#0f766e}.medicine-results button small{direction:ltr;text-align:left;color:#64748b}.medicine-results .add-manual-medicine{display:flex;align-items:center;justify-content:center;gap:7px;border:1px dashed #0f766e;color:#0f766e;background:#ecfdf5;border-radius:10px;margin-top:6px;font-weight:800}.medicine-results .add-manual-medicine svg{width:18px}.selected-medicines{margin-top:12px;display:grid;gap:9px}.selected-medicines>p{margin:0;padding:13px;border:1px dashed #cbd5e1;border-radius:12px;color:#64748b;text-align:center}.selected-medicine-row{display:grid;grid-template-columns:minmax(210px,.9fr) 1.1fr 42px;gap:9px;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:8px}.selected-medicine-row>div{display:flex;align-items:center;gap:8px}.selected-medicine-row>div span{display:grid;place-items:center;min-width:27px;height:27px;border-radius:50%;background:#ccfbf1;color:#115e59;font-weight:800}.selected-medicine-row .medicine-name-input{direction:ltr;text-align:left;font-weight:800;color:#0f172a;min-width:0}.selected-medicine-row .remove-medicine{border:0;border-radius:9px;background:#fee2e2;color:#b91c1c;height:42px}.selected-medicine-row .remove-medicine svg{width:18px}.patient-file-modal .modal-head{align-items:flex-start}.patient-file-modal .eyebrow{margin-bottom:4px}.patient-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}.patient-summary span{padding:12px;border:1px solid #dbe7e4;border-radius:12px;background:#f8fbfa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.patient-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.patient-history-section{border:1px solid #dbe7e4;border-radius:16px;overflow:hidden}.patient-history-section>header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:#f0fdfa}.patient-history-section h3{margin:0}.patient-history-section>header span{display:grid;place-items:center;min-width:28px;height:28px;border-radius:50%;background:#0f766e;color:#fff;font-weight:800}.patient-history-section>p{margin:0;padding:18px;color:#64748b;text-align:center}.patient-history-row{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:11px 13px;border-top:1px solid #e9efed}.patient-history-row>div{min-width:0;display:flex;flex-direction:column;gap:4px}.patient-history-row small{color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:330px}.patient-history-row button{flex:0 0 auto;border:0;border-radius:9px;padding:8px;background:#e6f5f2;color:#0f766e}.patient-history-actions{display:flex;flex:0 0 auto;flex-direction:row!important;gap:5px;min-width:auto!important}.user-grid{display:grid;grid-template-columns:380px 1fr;gap:18px}.user-row{width:100%;border:0;border-bottom:1px solid #e9efed;background:#fff;padding:15px 18px;display:grid;grid-template-columns:1fr auto;gap:3px 10px;text-align:right}.user-row.selected{background:#eaf7f4}.user-row div{display:flex;flex-direction:column}.user-row span{font-size:12px;color:#64748b}.user-row em{font-style:normal;font-size:12px;padding:5px 9px;border-radius:999px}.user-row em.ok{color:#047857;background:#d1fae5}.user-row em.off{color:#b91c1c;background:#fee2e2}.toggle-link{grid-column:2;font-weight:700;color:#0f766e!important}.permissions{padding:20px}.permissions h2,.settings-panel h2{margin-top:0}.permission-table{border:1px solid #dce8e5;border-radius:14px;overflow:auto;margin:16px 0}.perm-row{min-width:680px;display:grid;grid-template-columns:2fr repeat(5,1fr);align-items:center;border-bottom:1px solid #e5ecea;padding:10px}.perm-row:last-child{border-bottom:0}.perm-row.head{background:#f1f7f5}.perm-row input{width:18px;height:18px;margin:auto}.empty{min-height:220px;display:grid;place-items:center;color:#64748b}.backup-card{max-width:780px;margin:auto;border-radius:28px;background:#075e59;color:#fff;padding:40px;box-shadow:0 20px 60px #0f766e30}.backup-card>svg{width:48px;height:48px}.backup-card h2{font-size:28px}.backup-card p{color:#c8f3e8;line-height:1.8}.backup-card .primary-btn{background:#fff;color:#075e59}.backup-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.backup-actions .secondary-btn{background:#dff8f1;color:#075e59}.restore-button{cursor:pointer;margin:0}.restore-button input{display:none}.settings-panel{padding:26px}.settings-panel form{margin-top:22px}.settings-note{color:#475569;line-height:1.8;background:#f0fdfa;border:1px solid #99f6e4;border-radius:12px;padding:12px 14px}.print-options-modal{width:min(680px,100%)}.print-options-modal .modal-head{align-items:flex-start}.print-options-modal .modal-head p{color:#64748b;margin:7px 0 0}.print-options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.print-option-card{min-height:190px;border:2px solid #99f6e4;border-radius:20px;background:#f0fdfa;color:#134e4a;padding:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;cursor:pointer}.print-option-card:hover{border-color:#0f766e;transform:translateY(-2px)}.print-option-card.full{border-color:#bfdbfe;background:#eff6ff;color:#1e3a8a}.print-option-card.full:hover{border-color:#2563eb}.print-option-card svg{width:38px;height:38px}.print-option-card strong{font-size:19px}.print-option-card span{line-height:1.7;color:#475569}.print-doc{display:none}.prescription-a5{direction:rtl;background:transparent!important}.rx-template{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;width:148mm;height:210mm;object-fit:fill;print-color-adjust:exact;-webkit-print-color-adjust:exact}.rx-print-layer{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.rx-patient{position:absolute;top:30.8mm;right:24mm;width:50mm;height:7mm;padding:.5mm 1mm;background:transparent;text-align:right;line-height:6mm;font-size:13px;font-weight:700}.rx-date{position:absolute;top:31.5mm;left:31mm;width:33mm;padding:.5mm;background:transparent;text-align:center;font-size:11px}.rx-age{position:absolute;top:31.5mm;left:3mm;width:17mm;padding:.5mm;background:transparent;text-align:center;font-size:11px}.rx-medicines{position:absolute;top:51mm;left:9mm;width:107mm;height:124mm;white-space:pre-wrap;direction:ltr;text-align:left;line-height:1.9;font-family:Arial,sans-serif}.rx-medicine-entry{margin-bottom:2.4mm}.rx-medicine-entry strong{display:block;direction:ltr;text-align:left}.rx-medicine-entry span{display:block;margin-top:.5mm;padding-left:6mm;direction:auto;text-align:left;font-size:.9em;font-weight:500}.rx-consultation{position:absolute;top:181.5mm;left:28mm;width:88mm;height:7mm;padding:.5mm 1mm;background:transparent;font-size:10px;text-align:right}@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}.user-grid{grid-template-columns:1fr}.permissions{min-height:300px}.appointment-timer-grid{grid-template-columns:repeat(2,minmax(250px,1fr))}}@media(max-width:760px){.sidebar{transform:translate(100%);transition:.25s;width:min(300px,86vw)}.sidebar.open{transform:none}.mobile-close,.menu-btn{display:block}.main{margin-right:0;width:100%}.main>header{padding:0 15px;height:76px}.main>main{padding:15px}.cards,.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.auth-panel{padding:26px 20px}.primary-btn.compact{font-size:0}.primary-btn.compact svg{margin:0}.toolbar,.queue-search-bar{align-items:stretch;flex-direction:column}.search{width:100%}.print-options-grid{grid-template-columns:1fr}.selected-medicine-row{grid-template-columns:1fr 42px}.selected-medicine-row>div{grid-column:1/-1}.medicine-results button{grid-template-columns:1fr;gap:3px}.patient-summary,.patient-history-grid,.appointment-timer-grid,.appointment-board-head,.queue-focus{grid-template-columns:1fr}.appointment-board-head{align-items:stretch;flex-direction:column}.timer-actions{flex-direction:column}}@media print{body *{visibility:hidden!important}.print-doc,.print-doc *{visibility:visible!important}.print-doc{display:block!important;position:absolute;top:0;right:0;bottom:0;left:0;margin:0;background-color:#fff}.print-doc.a5{page:a5page;width:148mm;height:210mm;overflow:hidden}.print-doc.a4{page:a4page;width:210mm;min-height:297mm;padding:15mm}.print-doc.a4 header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #0f766e;padding-bottom:5mm}.print-doc.a4 h2{text-align:center;margin:10mm}.print-line{display:grid;grid-template-columns:40mm 1fr;border-bottom:1px solid #ddd;padding:4mm}.print-line span{white-space:pre-wrap}.print-doc.a4 footer{margin-top:20mm;border-top:1px solid #ddd;padding-top:5mm}@page a5page{size:A5 portrait;margin:0}@page a4page{size:A4 portrait;margin:10mm}}.patient-file-head-actions{display:flex;align-items:center;gap:8px}.patient-file-head-actions .secondary-btn.compact{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.board-head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.board-head-actions>span{padding:7px 11px;border-radius:999px;background:#dff8f1;color:#075e59;font-weight:800}.daily-stat-chips{display:flex;flex-wrap:wrap;gap:8px;margin:-4px 0 14px}.daily-stat-chips span{padding:7px 11px;border:1px solid #dbe7e4;border-radius:999px;background:#fff;color:#475569;font-size:13px}.daily-stat-chips strong{color:#075e59;font-size:16px}.timer-warning.expired{border-color:#ef4444;background:#fff1f2;color:#9f1239;animation:timer-expired-pulse 1s ease-in-out infinite}@keyframes timer-expired-pulse{50%{box-shadow:0 0 0 6px #ef444420}}.appointment-timer-card.paused{border-color:#8b5cf6;background:#faf5ff}.paused .timer-display strong{color:#6d28d9}.wait-time-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:10px;background:#f8fafc;color:#475569;font-size:13px}.wait-time-line strong{color:#0f172a;direction:ltr}.timer-display>span{margin-top:5px;color:#475569;font-size:12px;font-weight:700}.complaint-line{color:#334155!important;font-weight:700}.ahead-count{color:#0f766e!important;font-weight:800}.quick-note-box{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:7px;padding:8px 9px;border:1px solid #dbe7e4;border-radius:11px;background:#f8fbfa}.quick-note-box.has-note{border-color:#f59e0b;background:#fffbeb}.quick-note-box svg{width:18px;color:#d97706}.quick-note-box input{min-width:0;padding:7px 9px;border:0;background:transparent;outline:none;font-size:13px}.quick-note-box small{color:#0f766e;white-space:nowrap}.timer-pause{background:#ede9fe;color:#6d28d9}.timer-requeue{background:#ecfccb;color:#3f6212;flex-basis:100%}.finished-today{margin-top:18px;border:1px solid #dbe7e4;border-radius:14px;overflow:hidden;background:#fff}.finished-today-head,.finished-today-row{display:grid;grid-template-columns:minmax(130px,1.3fr) repeat(4,minmax(90px,1fr)) auto;gap:8px;align-items:center;padding:9px 11px;border-top:1px solid #edf2f1;font-size:12px}.finished-today-head{display:flex;justify-content:space-between;border-top:0;background:#f8fafc}.finished-today-row>span:first-child{font-weight:800;color:#0f172a}.medical-history-only{margin:0 0 14px;padding:13px 15px;border:1px solid #fed7aa;border-radius:14px;background:#fff7ed}.medical-history-only strong{color:#9a3412}.medical-history-only p{margin:7px 0 0;color:#475569;white-space:pre-wrap}.patient-summary.expanded{grid-template-columns:repeat(3,minmax(0,1fr))}.patient-current-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:15px}.patient-current-summary>div{display:flex;flex-direction:column;gap:5px;padding:12px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;min-width:0}.patient-current-summary span{color:#64748b;font-size:12px}.patient-current-summary strong{white-space:pre-wrap;overflow-wrap:anywhere}.patient-history-grid.comprehensive{grid-template-columns:1.15fr .85fr;align-items:start}.patient-history-row.detailed{align-items:flex-start}.patient-history-row.detailed>div:first-child{flex:1}.patient-history-row.detailed small{max-width:none;white-space:pre-wrap;overflow:visible;text-overflow:clip;line-height:1.55}.history-alert{color:#92400e!important;background:#fffbeb;padding:4px 6px;border-radius:7px}.empty-history-action{padding:18px;text-align:center}.empty-history-action p{color:#64748b}.prescription-preview-wrap{display:grid;place-items:center;margin:0 0 18px;padding:14px;border-radius:18px;background:#e9efed;overflow:auto}.prescription-preview-sheet{position:relative;width:296px;height:420px;flex:0 0 auto;overflow:hidden;background:#fff;box-shadow:0 8px 28px #0f172a28;color:#10233b}.prescription-preview-sheet>img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:fill}.preview-patient{position:absolute;top:62.9px;right:48.4px;width:148px;height:12px;text-align:right;font-size:9px;line-height:11px;font-weight:700;white-space:nowrap;overflow:hidden}.preview-date-parts{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.preview-date-parts span{position:absolute;top:63.44px;height:10px;line-height:10px;text-align:center;font-size:8px;font-weight:700;color:#16365d;direction:ltr}.preview-date-day{left:100.2px;width:12.6px}.preview-date-month{left:84.4px;width:10.6px}.preview-date-year-last{left:76.2px;width:4.4px}.preview-age{position:absolute;top:63.44px;left:12.8px;width:28px;height:10px;line-height:10px;text-align:center;font-size:8px;font-weight:700;color:#16365d}.preview-medicines{position:absolute;top:102px;left:36.8px;width:192.4px;height:224px;direction:ltr;text-align:left;line-height:1.38;font-family:Arial,sans-serif;overflow:hidden}.preview-medicine-entry{margin:0 0 6.8px;width:144px}.preview-medicine-entry strong{display:block;white-space:nowrap;overflow:visible}.preview-medicine-entry span{display:block;margin-top:1.8px;padding-left:0;width:144px;font-size:.83em;direction:rtl;text-align:left;font-family:Tahoma,Arial,sans-serif}.preview-notes-section{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.preview-notes-separator{position:absolute;top:333px;left:40px;width:193px;border-top:1px solid #10233b}.preview-notes-title{position:absolute;top:336px;right:62px;font-size:7.5px;font-weight:700;direction:rtl}.preview-notes{position:absolute;top:343px;left:40px;width:193px;height:27px;text-align:right;font-size:8px;line-height:1.4;white-space:pre-wrap;overflow:hidden;direction:rtl;font-weight:600}.print-browser-note{margin:12px 0 0;color:#64748b;text-align:center;font-size:12px}.rx-patient{top:31.8mm;right:24mm;width:52mm;height:7mm;font-size:15px;line-height:5.5mm}.rx-date{top:32mm;left:37mm;width:29mm;font-size:13px;font-weight:700;direction:ltr}.rx-age{top:32mm;left:5mm;width:17mm;font-size:13px;font-weight:700}.rx-medicines{top:51mm;left:20mm;width:97mm;height:123mm;padding-left:2mm;line-height:1.65;overflow:hidden}.rx-medicine-entry{margin-bottom:3mm}.rx-medicine-entry strong{overflow-wrap:anywhere;letter-spacing:.05px}.rx-medicine-entry span{margin-top:.6mm;padding-left:5mm;line-height:1.45}.rx-consultation{top:181.8mm;left:29mm;width:88mm;min-height:8mm;height:auto;padding:.5mm 1mm;font-size:12.5px;line-height:1.35;font-weight:600;white-space:pre-wrap;overflow:hidden}@media(max-width:760px){.board-head-actions{align-items:stretch;flex-direction:column}.patient-summary.expanded,.patient-current-summary,.patient-history-grid.comprehensive{grid-template-columns:1fr}.finished-today-row{grid-template-columns:1fr 1fr}.finished-today-row button{grid-column:1 / -1}}@media print{html,body,.prescription-a5{margin:0!important;padding:0!important}}.dashboard-day-note{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:11px 14px;border:1px solid #dbe7e4;border-radius:14px;background:#f8fbfa;color:#475569}.dashboard-day-note strong{color:#075e59}.dashboard-day-note span{font-size:13px}.clinic-workflow.appointment-board{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.queue-search-bar{padding:9px 12px;border-radius:12px}.appointment-timer-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:10px}.appointment-timer-card{gap:9px;min-height:0;padding:12px;border-width:1px;border-radius:14px;box-shadow:0 4px 14px #0f172a08}.appointment-timer-card.running,.appointment-timer-card.paused,.appointment-timer-card.overtime{border-width:2px}.timer-card-top strong{font-size:16px}.wait-time-line,.quick-note-box{padding:6px 8px}.timer-actions.workflow-actions{gap:6px}.timer-actions.workflow-actions button{min-height:36px}.daily-report-panel{overflow:hidden}.daily-report-toolbar>div{display:flex;flex-direction:column;gap:4px}.daily-report-toolbar>div span{color:#64748b;font-size:12px}.daily-report-toolbar>b{padding:6px 10px;border-radius:999px;background:#e6f5f2;color:#075e59}@media(max-width:760px){.dashboard-day-note{align-items:flex-start;flex-direction:column}.appointment-timer-grid{grid-template-columns:1fr}}@media print{@page{margin:0!important}html,body{margin:0!important;padding:0!important}.prescription-a5{position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:0!important;margin:0!important;padding:0!important}}.admin-today-metric{background:#fff3a8!important;border:1px solid #e6b800!important;box-shadow:0 8px 20px #b482001f}.admin-today-metric strong,.admin-today-metric svg{color:#a66b00}.print-offsets-title{grid-column:1/-1;display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:12px;background:#f8fafc;border:1px dashed #cbd5e1}.print-offsets-title strong{font-size:15px;color:#0f766e}.print-offsets-title span{font-size:12px;color:#64748b}.appointment-timer-card .timer-actions.workflow-actions button,.appointment-timer-card .secondary-btn,.appointment-timer-card .primary-btn{min-height:30px;padding:6px 9px;border-radius:9px;font-size:12px;gap:5px}.appointment-timer-card .timer-actions.workflow-actions button svg,.appointment-timer-card .secondary-btn svg,.appointment-timer-card .primary-btn svg{width:15px;height:15px}.admin-today-button{width:100%;text-align:right;cursor:default}.dashboard-permission-box{margin:14px 0 18px;padding:14px;border:1px solid #fde68a;background:#fffbeb;border-radius:14px}.dashboard-permission-box>strong{display:block;margin-bottom:4px;color:#92400e}.dashboard-permission-box>span{display:block;color:#78716c;font-size:12px;margin-bottom:10px}.dashboard-permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.dashboard-permission-grid label{display:flex;align-items:center;gap:7px;margin:0;font-weight:700;font-size:13px}.dashboard-permission-grid input{width:17px;height:17px;margin:0}.patient-file-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0;padding-bottom:10px;border-bottom:1px solid #e2e8f0}.patient-file-tabs button{border:1px solid #cbdad7;background:#f8fafc;color:#334155;border-radius:10px;padding:7px 12px;font-weight:800;font-size:13px}.patient-file-tabs button.active{background:#0f766e;color:#fff;border-color:#0f766e}.patient-history-grid.single-tab{grid-template-columns:1fr}.archive-actions{display:flex;gap:6px;flex-wrap:wrap}.archive-actions .hard-delete{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}.archive-actions .hard-delete svg{width:15px;height:15px}@media(max-width:700px){.appointment-timer-card .timer-actions.workflow-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.appointment-timer-card .timer-actions.workflow-actions button{width:100%}.patient-file-tabs button{flex:1 1 auto}}.procedure-multi-select{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.procedure-choice{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:7px 10px;border:1px solid #d7e4e1;border-radius:10px;background:#fff;color:#334155;cursor:pointer}.procedure-choice.active{border-color:#0f766e;background:#eaf8f5;color:#075e59;font-weight:800}.procedure-check-dot{width:9px;height:9px;border:1.5px solid #94a3b8;border-radius:50%;background:#fff;flex:0 0 auto}.procedure-choice.active .procedure-check-dot{border-color:#0f766e;background:#0f766e;box-shadow:0 0 0 3px #ccfbf1}.procedure-multi-select .field-hint{flex-basis:100%}.patient-lookup-field{position:relative}.patient-lookup-results{position:absolute;top:calc(100% - 20px);right:0;left:0;z-index:60;max-height:270px;overflow:auto;border:1px solid #cbd5e1;border-radius:12px;background:#fff;box-shadow:0 14px 34px #0f172a25}.patient-lookup-results button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:0;border-bottom:1px solid #eef2f7;background:#fff;text-align:right;cursor:pointer}.patient-lookup-results button:hover{background:#f0fdfa}.patient-lookup-results button:last-child{border-bottom:0}.patient-lookup-results button div{display:flex;flex-direction:column;gap:3px;min-width:0}.patient-lookup-results button strong{color:#0f172a}.patient-lookup-results button span{color:#64748b;font-size:12px}.patient-lookup-results button em{color:#0f766e;font-size:11px;white-space:nowrap;font-style:normal}.field-hint.warning{color:#b45309}.next-patient-mini{display:inline-flex;align-items:center;gap:8px;max-width:100%;margin:0 0 9px;padding:6px 10px;border:1px solid #bae6fd;border-radius:999px;background:#f0f9ff;color:#475569;font-size:12px}.next-patient-mini span{color:#0369a1;font-weight:800}.next-patient-mini strong{color:#0f172a}.next-patient-mini small{color:#64748b}.records-pagination{display:flex;align-items:center;justify-content:center;gap:12px;padding:14px 10px 2px;color:#475569;font-size:13px}.records-pagination button:disabled{opacity:.45;cursor:not-allowed}.reset-today-btn{white-space:nowrap}.dashboard-day-note>div{display:flex;flex-direction:column;gap:4px}.patient-file-print-a4{direction:rtl;color:#172033;font-family:Arial,Tahoma,sans-serif}.patient-print-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:5mm;border-bottom:2px solid #0f766e}.patient-print-header h1{margin:0;font-size:23px}.patient-print-header p{margin:2mm 0 0;color:#64748b}.patient-print-identity{margin-top:6mm}.patient-print-identity h2{margin:0 0 4mm;color:#075e59}.patient-print-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.5mm 6mm;padding:4mm;border:1px solid #dbe7e4;border-radius:3mm;background:#f8fbfa}.patient-print-medical-history{margin:5mm 0;padding:4mm;border:1px solid #fed7aa;border-radius:3mm;background:#fffaf2}.patient-print-medical-history h3,.patient-print-timeline h3{margin:0 0 2.5mm;font-size:17px;color:#7c2d12}.patient-print-medical-history p{margin:0;white-space:pre-wrap;line-height:1.55}.patient-print-event{break-inside:avoid;page-break-inside:avoid;margin:0 0 3.5mm;padding:3.5mm 4mm;border:1px solid #dbe7e4;border-radius:2.5mm;background:#fff}.patient-print-event-head{display:flex;align-items:center;justify-content:space-between;gap:6mm;margin-bottom:2mm}.patient-print-event-head strong{direction:ltr;color:#075e59}.patient-print-event-head span{font-weight:800;color:#334155}.patient-print-event p{margin:1.2mm 0;line-height:1.55;white-space:pre-wrap}.patient-print-medicines{direction:auto}.patient-print-footer{margin-top:6mm;padding-top:3mm;border-top:1px solid #cbd5e1;display:flex;justify-content:space-between;gap:5mm;color:#64748b;font-size:11px}@media(max-width:760px){.procedure-choice{flex:1 1 calc(50% - 8px);justify-content:center}.next-patient-mini{border-radius:12px;flex-wrap:wrap}.records-pagination{flex-wrap:wrap}}@media print{body.clinic-printing,body.clinic-printing #root,body.clinic-printing .app-shell{min-height:0!important;height:auto!important;overflow:visible!important;background:#fff!important}body.clinic-printing .app-shell>.sidebar,body.clinic-printing .app-shell>.main,body.clinic-printing .app-shell>.modal-backdrop{display:none!important}body.clinic-printing .print-doc{display:block!important;visibility:visible!important}body.clinic-printing .patient-file-print-a4{position:static!important;inset:auto!important;width:auto!important;min-height:0!important;padding:0!important;margin:0!important;page:patientfilepage}@page patientfilepage{size:A4 portrait;margin:10mm}}.rx-separator-setting{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;border:1px solid #dbe7e4;border-radius:12px;background:#f8fbfa;color:#334155;font-weight:700}.rx-separator-setting input{width:18px;height:18px;accent-color:#0f766e}.patient-lookup-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(100px,.55fr);gap:12px;align-items:end}.appointment-patient-lookup{position:relative}.appointment-lookup-results{position:relative;top:auto;right:auto;left:auto;width:100%;z-index:15;margin-top:8px;max-height:250px;overflow:auto}.patient-search-status{padding:12px 14px;border:1px dashed #cbd5e1;border-radius:11px;background:#f8fafc;color:#475569;font-size:13px}.patient-search-status.no-match{color:#7c2d12;background:#fff7ed;border-color:#fed7aa}.linked-patient-hint{display:inline-block;margin-top:5px;color:#047857!important;font-weight:700}.raster-preview-wrap{min-height:460px}.prescription-raster-preview{display:block;width:min(100%,370px);height:auto;aspect-ratio:148 / 210;object-fit:contain;background:#fff;box-shadow:0 8px 28px #0f172a28}.preview-loading{display:grid;place-items:center;min-height:420px;width:min(100%,370px);color:#64748b;background:#fff;border:1px dashed #cbd5e1;border-radius:14px}@media(max-width:760px){.patient-lookup-grid{grid-template-columns:1fr}.raster-preview-wrap{min-height:0}.preview-loading{min-height:360px}}.appointment-timer-card.procedure-changed-flash{animation:procedureChangedPulse .7s ease-in-out 4;outline:3px solid rgba(245,158,11,.85);outline-offset:2px}.procedure-change-badge{display:inline-flex;align-items:center;gap:6px;width:fit-content;margin-top:5px;padding:4px 8px;border-radius:999px;background:#f59e0b2e;font-weight:800}.procedure-change-badge svg{width:15px;height:15px}@keyframes procedureChangedPulse{0%,to{filter:none}50%{filter:brightness(1.12)}}@media(prefers-reduced-motion:reduce){.appointment-timer-card.procedure-changed-flash{animation:none}}.appointment-duration-input{min-width:0}.appointment-duration-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.appointment-duration-row input{width:160px;max-width:100%;flex:0 1 160px}.appointment-duration-row button{max-width:100%}.manual-timer-control{margin-top:8px;border:1px solid var(--border, #d4e3df);border-radius:9px;padding:7px 10px}.manual-timer-control summary{font-size:.88rem;cursor:pointer;font-weight:600}.manual-timer-control form{display:flex;flex-wrap:wrap;align-items:end;gap:9px;margin-top:8px}.manual-timer-control label{display:flex;flex-direction:column;gap:4px;font-size:.84rem}.manual-timer-control input{width:100px;max-width:100%;padding:8px;border:1px solid #bed2cf;border-radius:7px}.manual-timer-control button{font-size:.8rem}.prescription-editor-exports{display:flex;flex-direction:column;gap:9px;padding:12px;border:1px solid #d2deec;border-radius:10px;background:#f7fafc}.prescription-editor-exports>div{display:flex;gap:10px;flex-wrap:wrap}.prescription-editor-exports>span{color:#43576d;font-size:.9rem}.prescription-editor-exports button{flex:1;min-width:160px}.print-options-grid .rx-export-full{grid-column:1 / -1}@media(max-width:640px){.prescription-editor-exports>div{flex-direction:column}}.patient-save-review{display:flex;flex-direction:column;gap:10px;border:1px solid #b8d9d4;border-radius:14px;padding:16px;background:#f7fcfb;margin:4px 0 10px}.patient-save-review h3{font-size:17px;margin:0;color:#0f514a}.patient-save-review .muted{margin:0 0 4px;font-size:13px}.patient-save-option,.patient-new-confirm{display:flex;align-items:center;gap:10px;font-weight:700;border:1px solid #d8e8e5;border-radius:9px;padding:9px 11px;background:#fff}.patient-save-option input,.patient-new-confirm input{width:17px;height:17px;flex:0 0 auto;accent-color:#0f766e}.patient-save-search{display:flex;flex-direction:column;gap:8px}.patient-save-search>label{font-weight:700;color:#134e4a}.patient-save-search>input{width:100%}.patient-save-search-results{max-height:215px;overflow:auto;border:1px solid #d5e5e2;border-radius:10px;background:#fff}.patient-save-search-results button{width:100%;border:0;border-bottom:1px solid #e7efed;padding:10px;background:#fff;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;text-align:right;cursor:pointer}.patient-save-search-results button.selected{background:#d8f5eb;outline:2px solid #0f766e}.patient-save-search-results button:disabled{cursor:not-allowed;opacity:.62}.patient-save-search-results button strong{color:#123b35}.patient-save-search-results button span{font-size:12px;color:#526b69}.patient-save-search-results button em{margin-right:auto;font-size:12px;color:#0f766e;font-style:normal}.patient-merge-warning{padding:10px;border-right:3px solid #d97706;background:#fff7ed;border-radius:6px;color:#713f12;font-size:13px}.patient-new-confirm{font-weight:600;color:#92400e;background:#fffaf0}.patient-save-search .error{color:#b91c1c}@media(max-width:650px){.patient-save-review{padding:10px}.patient-save-search-results button{flex-direction:column;align-items:flex-start}.patient-save-search-results button em{margin-right:0}}.history-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:18px}.history-filters label{display:grid;gap:6px;min-width:160px}.history-filters input,.history-filters select{padding:10px;border:1px solid #d7e2e6;border-radius:9px;background:#fff;color:#10233b}.history-panel>.field-hint{padding:0 18px}.history-panel>.toolbar{gap:12px;flex-wrap:wrap}.history-panel>.toolbar input{padding:10px;border:1px solid #d7e2e6;border-radius:9px}.brand-mark svg{width:70%;height:70%;stroke-width:2}.records-pagination{flex-wrap:wrap;gap:12px}@media(max-width:600px){.history-filters label{flex:1}.records-pagination span{width:100%;text-align:center}}.permissions-center{max-width:1500px;margin:0 auto;color:#153d45}.permission-hero{display:flex;align-items:center;gap:18px;background:linear-gradient(135deg,#075e59,#0e7970);color:#fff;border-radius:20px;padding:26px;margin-bottom:20px}.permission-hero-icon{display:grid;place-items:center;background:#ffffff1f;border:1px solid #ffffff36;border-radius:17px;width:64px;height:64px;flex-shrink:0}.permission-hero-icon svg{width:34px;height:34px}.permission-hero h2{color:#fff;font-size:25px;margin:2px 0}.permission-hero p{color:#bce3d8;margin:0;font-size:12px}.permission-hero span{font-size:13px;color:#d9f1e8}.permission-hero>button{margin-right:auto;background:#fff;color:#075e59}.permission-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:20px;align-items:start}.permission-user-panel,.permission-workspace{background:#fff;border:1px solid #dce7e4;border-radius:18px;padding:20px}.permission-user-panel{position:sticky;top:16px}.permission-user-panel h3{display:flex;justify-content:space-between;margin:0 0 16px}.permission-user-panel h3 span{background:#edf5f3;padding:1px 9px;border-radius:8px;font-size:13px}.permission-search{display:flex;align-items:center;gap:8px;border:1px solid #d8e5e1;background:#f7faf9;border-radius:10px;padding:0 11px}.permission-search input{border:0;outline:none;background:transparent;width:100%;padding:12px 0}.permission-search svg{width:17px;color:#748b88}.permission-user-list{display:grid;gap:8px;margin-top:15px;max-height:620px;overflow:auto}.permission-user-list>button{display:flex;align-items:center;gap:10px;text-align:right;background:transparent;border:1px solid transparent;border-radius:12px;padding:11px}.permission-user-list>button:hover{background:#f1f7f5}.permission-user-list>button.selected{background:#e9f5ee;border-color:#a4d4bf}.permission-user-list small,.permission-user-list strong{display:block}.permission-user-list strong{font-size:13px}.permission-user-list small{font-size:11px;color:#66837f}.permission-user-list em{font-size:10px;font-style:normal;margin-right:auto;color:#69807b}.user-avatar{display:grid;place-items:center;border-radius:10px;background:#dceee7;color:#075e59;width:34px;height:38px;flex-shrink:0;font-weight:700}.permission-user-pages{display:flex;justify-content:space-between;align-items:center;margin-top:14px;font-size:12px}.permission-user-pages button{border:1px solid #dce7e4;border-radius:7px;padding:6px;background:#f7faf9}.permission-profile-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8efec;padding-bottom:18px;gap:10px}.permission-profile-header h3{margin:0;font-size:20px}.permission-profile-header span{font-size:12px;color:#64817b}.draft-badge,.saved-badge{padding:6px 10px;border-radius:8px;background:#fff1ce;color:#846425!important}.saved-badge{background:#eaf5ef;color:#2c6f52!important}.permission-editor{padding:0;border:0;min-width:0}.permission-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:18px 0 12px}.permission-tools .permission-search{flex:1;min-width:180px}.permission-tools>button,.permission-copy>button,.permission-group-tools>button{background:#f4f8f6;border:1px solid #d8e5df;border-radius:8px;padding:9px 11px;font-size:12px}.permission-copy{display:flex;gap:10px;margin-bottom:18px}.permission-copy select{flex:1;min-width:0;border:1px solid #d8e5df;border-radius:8px;padding:10px;background:#fff}.permission-copy button{display:flex;align-items:center;gap:6px}.permission-copy svg{width:15px}.permission-group{border:1px solid #dce8e2;border-radius:13px;margin-bottom:13px;overflow:hidden}.permission-group-heading{display:flex;align-items:center;justify-content:space-between;background:#f6faf8;width:100%;padding:16px 18px;border:0;text-align:right}.permission-group-heading strong{display:block;font-size:15px}.permission-group-heading small{display:block;font-size:11px;color:#698980;margin-top:3px}.permission-group-heading svg{width:18px;color:#64817b}.permission-group-heading[aria-expanded=true] svg{transform:rotate(180deg)}.permission-basics{display:flex;flex-wrap:wrap;gap:12px;padding:13px 18px;border-top:1px solid #e8efeb}.permission-basics label{display:flex;align-items:center;gap:7px;font-size:12px;cursor:pointer}.permission-basics input{accent-color:#087166;width:17px;height:17px}.permission-group-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:7px 18px 13px}.permission-group-tools span{font-size:11px;color:#71827a;margin-right:auto}.permission-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 18px 18px}.permission-action{display:flex;align-items:center;justify-content:space-between;border:1px solid #e0e9e4;padding:12px;border-radius:10px;gap:8px;background:#fcfdfc;cursor:pointer}.permission-action.enabled{background:#f0f8f3;border-color:#b8dbc8}.permission-action strong{display:block;font-size:12px}.permission-action small{display:block;font-size:10px;margin-top:4px;color:#6c8075}.permission-action input{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;width:34px;height:20px;background:#cbd6d0;border-radius:15px;flex-shrink:0;cursor:pointer;border:0}.permission-action input:before{content:"";display:block;position:absolute;top:3px;left:3px;width:14px;height:14px;background:#fff;border-radius:50%;transition:transform .15s}.permission-action input:checked{background:#087166}.permission-action input:checked:before{transform:translate(14px)}.permission-action input:disabled{opacity:.4;cursor:not-allowed}.permission-action.dangerous strong{color:#ab3c36}.permission-save-bar{display:flex;align-items:center;gap:10px;position:sticky;bottom:10px;border:1px solid #d3e3d9;border-radius:12px;padding:14px;background:#f9fcfa;box-shadow:0 5px 22px #124e3512;margin-top:20px}.permission-save-bar>span{font-size:12px;color:#73847b;margin-left:auto}.permission-save-bar button{white-space:nowrap}.permission-empty{text-align:center;padding:80px 20px;color:#678277}.permission-empty svg{width:50px;height:50px;color:#afcabe}.permission-feedback{padding:14px 18px;border-radius:10px;margin-bottom:15px;display:flex;gap:9px;align-items:center}.permission-feedback.error{background:#fff0ed;color:#9b4234}.permission-feedback.success{background:#e6f6eb;color:#286f4c}.permission-info{padding:14px;background:#f2f8f4;border-radius:10px;font-size:13px}.permission-basic-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.permission-basic-cards fieldset{border:1px solid #d8e6de;padding:12px;border-radius:10px}.permission-basic-cards legend{font-weight:700;font-size:13px}.permission-basic-cards fieldset>div{display:flex;flex-wrap:wrap;gap:12px}.permission-basic-cards label{display:flex;align-items:center;gap:6px;font-size:12px}.permission-basic-cards input{accent-color:#087166}@media(max-width:1000px){.permission-layout{grid-template-columns:230px minmax(0,1fr)}.permission-action-grid{grid-template-columns:1fr}.permission-group-tools span{width:100%}}@media(max-width:700px){.permission-layout{grid-template-columns:1fr}.permission-user-panel{position:static}.permission-user-list{max-height:200px}.permission-hero{padding:18px;flex-wrap:wrap}.permission-hero>button{margin-right:0}.permission-hero h2{font-size:21px}.permission-save-bar{flex-wrap:wrap}.permission-save-bar>span{width:100%}.permission-basic-cards{grid-template-columns:1fr}}.medicine-edit-scope{border:0;margin:0;padding:0;min-width:0}.medicine-edit-scope:disabled{opacity:.65}.permission-account-actions{display:flex;flex-wrap:wrap;align-items:start;gap:12px;padding-top:12px;font-size:12px}.permission-account-actions details{border:1px solid #dce7e2;border-radius:9px;padding:8px 11px}.permission-account-actions summary{cursor:pointer}.permission-account-actions form{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.permission-account-actions label{display:grid;gap:4px}.permission-account-actions input,.permission-account-actions select{padding:9px;border:1px solid #dce7e2;border-radius:7px}.modal.with-linked-history{width:min(1000px,96vw);max-height:92vh;overflow:auto}.patient-history-inline{margin-top:20px;padding:20px;border:1px solid #cfe2d7;border-radius:14px;background:#f6faf7}.patient-history-inline>header{display:flex;justify-content:space-between;gap:12px;align-items:center}.patient-history-inline header strong{display:flex;gap:8px;align-items:center;color:#126452}.patient-history-inline header p{font-size:12px;color:#74897d}.patient-history-inline header>div:last-child{display:flex;gap:6px}.linked-patient-summary{padding:14px;background:#fff;border-radius:10px;margin:14px 0}.linked-patient-summary>strong{display:block}.linked-patient-summary span{font-size:12px;color:#718576}.linked-patient-summary p,.inline-history-rows p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8;margin:6px 0}.inline-history-rows{max-height:460px;overflow:auto;overscroll-behavior:contain}.inline-history-rows article{padding:14px;background:#fff;border:1px solid #e1eae4;border-radius:10px;margin:10px 0}.inline-history-rows h4{margin:0 0 9px;color:#2f7160}.patient-history-inline .patient-history-tabs{display:flex;flex-wrap:wrap;gap:6px}.patient-history-inline .patient-history-tabs button{border:1px solid #d6e2d9;border-radius:8px;padding:8px;background:#fff;font-size:12px}.patient-history-inline .patient-history-tabs button.active{background:#0b7060;color:#fff}@media(max-width:600px){.patient-history-inline{padding:12px}.patient-history-inline>header{align-items:flex-start;flex-direction:column}}.patient-file-v23{width:min(1080px,96vw);max-height:94vh;overflow:auto}.patient-file-v23 h2{display:flex;align-items:center;gap:10px}.patient-clinical-overview{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 10px}.patient-health-card{padding:18px;border:1px solid #cae3da;border-radius:14px;background:#f1f8f5}.patient-health-card.chronic{border-color:#f1d7a1;background:#fff9ec}.patient-health-card h3{font-size:15px;color:#115e50;margin:0 0 10px}.patient-health-card p,.patient-file-identity p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;margin:6px 0}.patient-file-private-note{color:#52675e;font-size:12px;margin:10px 0 18px}.patient-file-identity{border:1px solid #dce7e2;padding:12px 16px;border-radius:10px;margin:10px 0;background:#fbfcfb}.patient-file-identity summary{cursor:pointer;font-weight:700;color:#345b4c}.patient-events{display:grid;gap:12px}.patient-event{padding:18px;border:1px solid #d6e3dd;border-right:4px solid #22816c;border-radius:12px;background:#fff}.patient-event>header{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border-bottom:1px solid #edf1ee;padding-bottom:12px;margin-bottom:12px}.patient-event header>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.event-kind{font-size:12px;color:#08614f;background:#edf7f3;padding:5px 9px;border-radius:7px}.event-archive{font-size:11px;color:#6d6c66;background:#f3f2ee;padding:4px 7px;border-radius:7px}.patient-event-fields p{display:grid;grid-template-columns:140px minmax(0,1fr);gap:10px;margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.patient-event>details{border-top:1px dashed #dce5df;margin-top:12px;padding-top:10px;color:#586b61;font-size:12px}.patient-event>details summary{cursor:pointer}.patient-event>details p{overflow-wrap:anywhere;white-space:pre-wrap}.patient-event .patient-history-actions button{display:flex;align-items:center;gap:5px;width:auto;padding:7px 10px}.patient-file-v23 .patient-file-tabs{position:sticky;top:0;background:#fff;z-index:1;padding:10px 0;flex-wrap:wrap}@media(max-width:600px){.patient-clinical-overview{grid-template-columns:1fr}.patient-file-v23 .modal-head{align-items:flex-start;flex-direction:column}.patient-event{padding:12px}.patient-event-fields p{grid-template-columns:1fr;gap:3px}.patient-file-v23 .patient-file-head-actions{flex-wrap:wrap}.patient-file-v23 .patient-file-tabs button{font-size:12px}}@media screen{:root{color:#173047;background:#f2f6fa;font-family:Segoe UI,Tahoma,Arial,sans-serif}body{background:#f2f6fa}.app-shell,.main{color:#173047}.sidebar{background:#182d3f;color:#dce8ee;border-inline-end:1px solid #243e53;box-shadow:none}.sidebar-brand{border-bottom:1px solid #355065;padding-bottom:20px}.sidebar-brand strong{color:#53dbd2}.sidebar-brand span,.sidebar .eyebrow{color:#b1c8d7}.sidebar nav button,.sidebar .logout-btn{color:#ccdae3;border-radius:9px}.sidebar nav button:hover{background:#234257;color:#fff}.sidebar nav button.active{background:#12636d;color:#fff;box-shadow:inset -3px 0 #43d5cd}.main>header{background:#fff;border-bottom:1px solid #e1e9ef;box-shadow:none}.main>header h1{color:#183449;font-weight:750}.panel,.stat-card,.metric-card,.settings-panel,.backup-card,.workflow-card,.patient-health-card{border:1px solid #e4ecf2;border-radius:13px;background:#fff;box-shadow:0 3px 14px #203a5107}.panel{padding:22px}.primary-btn{background:#09878b;color:#fff;border-color:#09878b;border-radius:9px;box-shadow:none}.primary-btn:hover{background:#087176}.secondary-btn{background:#fff;color:#20394e;border:1px solid #cdd9e3;border-radius:9px;box-shadow:none}.secondary-btn:hover{background:#edf6f8}input,textarea,select{border:1px solid #d4dfe8;border-radius:9px;background:#fff;color:#20394e;padding:11px 12px}input:focus,textarea:focus,select:focus{outline:2px solid #15999a32;border-color:#15999a}label{color:#344e63}.muted,.field-hint{color:#687f91}.eyebrow{color:#0c868a}.table-wrap{border:1px solid #e4ecf2;border-radius:12px}thead th{background:#f0f5f9;color:#3c5568;border-bottom:1px solid #dce6ee}tbody td{border-bottom:1px solid #edf1f5}tbody tr:hover{background:#f4fafb}.modal{border:1px solid #dfE8ef;border-radius:17px;box-shadow:0 18px 65px #132e4930}.modal-head{border-bottom:1px solid #e7edf3;padding-bottom:16px}.modal-head h2{color:#183449}.patient-file-modal{width:min(1180px,96vw)}.patient-health-card{background:#fff}.patient-health-card h3{background:#edf5fc;color:#17658c;padding:12px;border-radius:9px;margin:0 0 12px}.patient-health-card.chronic h3{background:#eaf8f6;color:#137c7d}.patient-health-card p{background:#f5f8fb;border-radius:8px;padding:12px;white-space:pre-wrap}.patient-file-tabs{background:#f3f7fa;border-radius:9px;padding:4px}.patient-file-tabs button{border-radius:7px;color:#5b7185}.patient-file-tabs button.active{background:#fff;color:#07868a;border-color:#12a2a1}.patient-event{border:1px solid #dfe8f0;border-inline-start:3px solid #149c9c;border-radius:10px;box-shadow:none}.patient-event header{background:#f8fbfd}.patient-event .event-kind{color:#087e84;background:#e5f6f4}.patient-file-identity{border:1px solid #e3ebf2;background:#f8fbfd;border-radius:9px;padding:12px}.patient-file-private-note{background:#f0f7fb;color:#527286;border-radius:8px;padding:10px 13px}.optional-patient-file{display:flex;align-items:center;gap:10px;background:#eef8f6;padding:12px;border-radius:9px}.optional-patient-file input{width:18px;height:18px;accent-color:#09878b}.records-pagination button{border-radius:8px;background:#fff;border:1px solid #d7e3ec;color:#226173}.patient-events{content-visibility:auto;contain-intrinsic-size:auto 500px}@media(max-width:700px){.panel{padding:13px}.patient-clinical-overview{grid-template-columns:1fr}.patient-file-head-actions{gap:6px}.patient-file-tabs{overflow-x:auto;flex-wrap:nowrap}.patient-file-tabs button{white-space:nowrap}.modal{padding:15px}.patient-event-fields{grid-template-columns:1fr}}}@font-face{font-family:ClinicArabic;src:url(/fonts/clinic-arabic-regular.woff2) format("woff2");font-weight:400 600;font-style:normal;font-display:swap}@font-face{font-family:ClinicArabic;src:url(/fonts/clinic-arabic-bold.woff2) format("woff2");font-weight:650 900;font-style:normal;font-display:swap}@media screen{:root{--clinic-ink:#172e43;--clinic-muted:#708397;--clinic-teal:#008b8f;--clinic-line:#e3ebf2;--clinic-bg:#f2f6fa}body .app-shell,body .modal-backdrop,body .auth-page,body .patient-file-stage{font-family:ClinicArabic,Segoe UI,Tahoma,sans-serif;font-size:14px;color:var(--clinic-ink);line-height:1.65}.app-shell button,.modal-backdrop button,.patient-file-stage button{font:inherit;line-height:1.4;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;transition:background-color .12s,border-color .12s}.app-shell button:disabled,.modal-backdrop button:disabled,.patient-file-stage button:disabled{opacity:.45;cursor:not-allowed}.app-shell .sidebar{width:236px;background:#1a2f42;padding:10px 14px 18px;color:#d7e3ec}.app-shell .sidebar-brand{padding:18px 8px 24px;gap:10px;border-bottom:none}.sidebar-brand strong{font-size:21px;letter-spacing:.5px;color:#51ddd4}.sidebar-brand span{font-size:11px;color:#aec2d1;margin-top:3px}.sidebar .brand-mark.small{background:transparent;color:#5fe1d8;width:40px;height:40px}.sidebar .brand-mark svg{width:35px;height:35px;stroke-width:2.3}.sidebar nav{gap:7px;padding:4px 0}.sidebar nav button{width:100%;padding:14px 15px;justify-content:flex-start;border:0;font-size:14px;color:#cedce7;gap:12px}.sidebar nav button.active{background:#196575;border-radius:7px;box-shadow:inset -3px 0 #41d6ca;color:#fff}.sidebar nav button svg{width:19px;height:19px;color:#b7d3df;stroke-width:1.7}.sidebar .logout{border-top:1px solid #3b5062;margin-top:auto;padding:16px 8px 0;background:transparent;color:#b7cad8}.app-shell>.main{margin-right:236px;width:calc(100% - 236px);background:var(--clinic-bg)}.main>header{height:90px;padding:0 30px;background:#f5f8fb;border:0;-webkit-backdrop-filter:none;backdrop-filter:none}.main>header h1{font-size:28px;font-weight:800;color:#172d41;line-height:1.4}.main .eyebrow{color:#658097;font-size:10px;letter-spacing:1px}.main>main{padding:4px 30px 30px;max-width:none}.app-shell .panel,.app-shell .backup-card,.app-shell .settings-panel{border:1px solid #e5edf4;border-radius:12px;box-shadow:0 3px 18px #25425c05;padding:22px}.app-shell .toolbar{margin-bottom:20px;gap:12px}.app-shell .toolbar h2{font-size:20px;font-weight:750;margin:0}.app-shell .search{border:1px solid #dfe7ef;border-radius:8px;background:#f8fafc;min-height:43px}.app-shell .search input{border:0;background:transparent;padding:10px 8px;min-width:0}.app-shell .table-wrap{border:1px solid #e2eaf1;border-radius:9px;overflow:auto}.app-shell table{border-collapse:collapse;width:100%;font-size:13px}.app-shell th{padding:15px 16px;background:#f1f6fa;font-weight:700;color:#657c90;border-bottom:1px solid #e0e8f0;white-space:nowrap}.app-shell td{padding:17px 16px;vertical-align:middle;color:#284157;border-bottom:1px solid #edf1f5}.app-shell tr:last-child td{border-bottom:0}.app-shell .actions{gap:7px;flex-wrap:nowrap}.app-shell .actions button{padding:8px;border:1px solid #dce6ee;background:#fff;min-width:34px;min-height:34px;color:#53768b}.primary-btn,.app-shell .primary-btn,.modal-backdrop .primary-btn{background:#008c8e;border:1px solid #008c8e;color:#fff;min-height:42px;padding:10px 18px;font-weight:700;border-radius:8px}.secondary-btn,.app-shell .secondary-btn,.modal-backdrop .secondary-btn{background:#fff;border:1px solid #cbd9e4;color:#1e354b;min-height:42px;padding:10px 16px;font-weight:600;border-radius:8px}.app-shell .primary-btn:hover,.patient-file-stage .primary-btn:hover{background:#00777b}.app-shell input,.app-shell select,.app-shell textarea,.modal-backdrop input,.modal-backdrop select,.modal-backdrop textarea{font-family:inherit;font-size:14px;border-radius:8px;line-height:1.7}.app-shell .cards{gap:16px}.app-shell .card{border:1px solid #e3eaf1;border-radius:12px;box-shadow:none}.appointment-timer-card{border:1px solid #dce6ef;border-radius:12px;box-shadow:0 3px 14px #243a5005;background:#fff}.patient-file-stage{position:fixed;top:0;right:236px;bottom:0;left:0;z-index:115;background:#f2f6fa;overflow:auto;overscroll-behavior:contain;padding:0 30px 32px;scrollbar-width:thin;scrollbar-color:#c8d5df transparent}.patient-file-page{max-width:1420px;width:100%;margin:0 auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}.patient-file-page .patient-file-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;height:100px;margin:0;padding:0;border:0;background:transparent}.patient-file-toolbar h1{font-size:30px;line-height:1.3;margin:0;color:#142b40;font-weight:800}.patient-file-toolbar .eyebrow{font-size:10px;color:#6e879b;margin:0 0 4px;letter-spacing:1.2px}.patient-file-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.patient-file-stage button{min-height:40px;padding:10px 15px;font-size:13px;white-space:nowrap}.patient-file-stage button svg{width:18px;height:18px;stroke-width:1.9;flex-shrink:0}.patient-file-stage .file-icon-button{width:38px;min-height:38px;padding:8px;background:transparent;border:1px solid #dce5ed;color:#688095}.patient-identity-card,.patient-file-page .patient-health-card,.patient-history-card{border:1px solid #e5edf3;background:#fff;border-radius:12px;box-shadow:0 4px 16px #18354a04}.patient-identity-card{display:grid;grid-template-columns:minmax(240px,.9fr) minmax(0,1.8fr);gap:28px;align-items:center;padding:28px 30px;margin:0 0 20px;min-height:150px}.patient-identity-title{display:flex;align-items:center;gap:16px;border-left:1px solid #e4ebf2;padding-left:25px;min-height:95px}.patient-avatar{width:55px;height:55px;border-radius:50%;background:#eaf7f6;color:#118f90;display:grid;place-items:center;flex-shrink:0}.patient-avatar svg{width:27px;height:27px;stroke-width:1.6}.file-caption{font-size:11px;color:#71889b}.patient-identity-title h2{font-size:26px;font-weight:800;line-height:1.5;margin:2px 0 5px;color:#152f44;overflow-wrap:anywhere}.patient-identity-title p{margin:0;color:#768c9e;font-size:12px}.patient-identity-title p b{font-weight:600;margin-right:8px}.patient-demographics{display:grid;grid-template-columns:1fr 1fr;grid-auto-flow:column;grid-template-rows:repeat(3,auto);gap:12px 38px;margin:0;min-width:0}.patient-demographics>div{display:flex;align-items:baseline;gap:18px;min-width:0}.patient-demographics dt{font-size:12px;color:#7b8e9f;min-width:42px}.patient-demographics dd{margin:0;font-size:14px;color:#243c51;overflow-wrap:anywhere}.patient-file-page .patient-clinical-overview{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0}.patient-file-page .patient-health-card,.patient-file-page .patient-health-card.chronic{padding:14px;background:#fff;border-color:#e5edf3;border-radius:12px}.patient-file-page .patient-health-card h3{font-size:15px;font-weight:750;display:flex;align-items:center;gap:9px;background:#edf5fc;color:#15618b;border:0;border-radius:8px;padding:12px 15px;margin:0 0 12px;line-height:1.6}.patient-file-page .patient-health-card h3 svg{width:19px;height:19px;flex-shrink:0}.patient-file-page .patient-health-card.chronic h3{background:#edf9f6;color:#137c7f}.patient-file-page .patient-health-card p{padding:13px 15px;min-height:52px;background:#f5f8fb;font-size:14px;color:#425b70;border-radius:7px;margin:0;white-space:pre-wrap;line-height:1.8}.patient-file-page .patient-file-private-note{display:flex;align-items:center;gap:6px;justify-content:flex-end;font-size:10px;color:#8195a6;background:transparent;margin:9px 0 14px;padding:0}.patient-file-private-note svg{width:13px;height:13px}.patient-file-page .patient-file-identity{background:#fff;border:1px solid #e4edf4;border-radius:9px;padding:11px 16px;font-size:12px;margin:0 0 12px}.patient-file-identity summary{color:#698195;font-weight:500}.patient-history-card{padding:22px 18px 12px;margin-top:18px}.patient-history-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 4px 18px;border:0}.patient-history-title h2{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:800;margin:0;color:#17334a}.patient-history-title h2 svg{width:22px;height:22px;color:#345c76}.patient-history-title p{font-size:11px;color:#8b9aa9;margin:4px 32px 0}.patient-file-page .patient-file-tabs{position:static;display:flex;align-items:stretch;gap:0;flex-wrap:nowrap;background:#f2f6fa;border:0;border-radius:7px;padding:0;margin:0 0 16px;overflow:auto}.patient-file-page .patient-file-tabs button{flex:1;position:relative;font-size:12px;font-weight:500;line-height:1.5;color:#6c8193;background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;padding:13px 10px;min-height:46px;box-shadow:none}.patient-file-page .patient-file-tabs button+button:before{content:"";height:17px;width:1px;background:#e0e8ef;position:absolute;right:0;top:15px}.patient-file-page .patient-file-tabs button.active{color:#008e8d;background:#fff;border-bottom-color:#0f9c9c;font-weight:750}.patient-file-tabs button span{font-size:10px;margin-right:3px;opacity:.65}.patient-file-page .patient-events{display:grid;gap:10px;content-visibility:visible;contain-intrinsic-size:none}.patient-file-page .patient-event{position:relative;display:grid;grid-template-columns:155px minmax(0,1fr) auto;gap:22px;align-items:center;padding:18px 18px 18px 16px;border:1px solid #e0e8ef;border-radius:9px;background:#fff;box-shadow:none;min-height:116px}.patient-file-page .event-date{align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border-left:1px solid #e8eef4;position:relative;padding-left:18px}.patient-file-page .event-date strong{font-size:12px;font-weight:600;color:#244056;text-align:center;line-height:1.7}.patient-file-page .event-kind{font-size:10px;border:0;border-radius:6px;color:#12766f;background:#dff6ed;padding:4px 18px}.patient-file-page .kind-prescriptions .event-kind{background:#e6f1ff;color:#356ca3}.patient-file-page .kind-visits .event-kind{background:#fff1cc;color:#8b6e20}.patient-file-page .kind-medical_reports .event-kind{background:#efeafd;color:#7a59a3}.event-dot{position:absolute;right:-23px;top:calc(50% - 5px);width:10px;height:10px;background:#11a08d;border-radius:50%;box-shadow:0 0 0 3px #fff}.kind-prescriptions .event-dot{background:#1592d2}.kind-visits .event-dot{background:#e6b52b}.kind-medical_reports .event-dot{background:#9e7ad3}.patient-file-page .event-body{min-width:0}.patient-file-page .patient-event-fields p{display:grid;grid-template-columns:115px minmax(0,1fr);gap:10px;margin:4px 0;line-height:1.8;font-size:12px}.patient-file-page .patient-event-fields p b{font-weight:600;color:#3a536a}.patient-file-page .patient-event-fields p span{color:#5c7183;white-space:pre-wrap;overflow-wrap:anywhere}.patient-file-page .kind-prescriptions .patient-event-fields p span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.patient-file-page .kind-prescriptions:has(details[open]) .patient-event-fields p span{display:block}.patient-file-page .event-metadata{border:0;border-top:1px dashed #e8edf2;margin-top:9px;padding-top:7px;font-size:10px;color:#7c91a2}.event-metadata summary{cursor:pointer;color:#93a2af}.event-metadata p{white-space:pre-wrap;overflow-wrap:anywhere}.patient-file-page .event-details-link{border:0;background:transparent;color:#277db1;min-height:26px;font-size:11px;padding:0;gap:6px;justify-content:flex-start;margin-top:6px}.patient-file-page .patient-history-actions.event-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.patient-file-page .event-actions .file-action{border:1px solid #cad7e2;border-radius:7px;background:#fff;color:#2c4358;padding:9px 12px;min-height:36px;font-size:11px;display:inline-flex;gap:6px;width:auto}.patient-file-page .event-actions .file-action-view{border-color:#91ccd4;background:#edfafb;color:#117887}.patient-file-page .event-actions svg{width:16px;height:16px}.patient-file-page .event-archive{font-size:9px;background:#f2f4f6;color:#8a969e;padding:2px 8px;border-radius:4px}.patient-file-page .file-pagination{display:flex;justify-content:space-between;align-items:center;border:0;margin:14px 0 0;padding:0;font-size:11px;color:#8597a7}.file-pagination>div{display:flex;gap:6px}.patient-file-page .file-pagination button{padding:7px 10px;min-height:32px;font-size:11px;background:#fff;border:1px solid #d9e4ed;color:#547388}.file-pagination button svg{width:14px;height:14px}.file-loading,.file-empty{text-align:center;padding:38px;color:#8b9baa}.file-empty>svg{width:36px;height:36px;color:#b9cbd6}.file-empty h3{font-size:16px;color:#6d8498}.file-empty p{font-size:12px}.file-loading svg{width:18px;height:18px;vertical-align:middle;margin-left:8px}@media(min-width:1600px){.patient-file-stage{padding-inline:40px}.patient-identity-card{grid-template-columns:1fr 2fr}}@media(max-width:1100px){.patient-file-stage{padding-inline:20px}.patient-identity-card{grid-template-columns:1fr 1.4fr;padding:22px;gap:18px}.patient-avatar{display:none}.patient-demographics{gap:10px 15px}.patient-file-page .patient-event{grid-template-columns:125px 1fr;gap:15px}.patient-file-page .event-actions{grid-column:2}.patient-identity-title h2{font-size:22px}.patient-file-stage button{font-size:12px;padding:9px 11px}}@media(max-width:760px){.app-shell>.main{margin-right:0;width:100%}.app-shell .sidebar{width:min(300px,86vw)}.main>main{padding:12px}.main>header{padding:0 16px;height:78px}.main>header h1{font-size:23px}.patient-file-stage{top:0;right:0;bottom:0;left:0;padding:0 14px 20px}.patient-file-page .patient-file-toolbar{height:auto;min-height:110px;padding:18px 0;align-items:flex-start;flex-wrap:wrap}.patient-file-toolbar h1{font-size:26px}.patient-file-head-actions{gap:7px}.patient-file-head-actions .primary-btn,.patient-file-head-actions .secondary-btn{min-height:36px;padding:8px 10px}.patient-identity-card{grid-template-columns:1fr;padding:20px;margin-bottom:14px}.patient-identity-title{border:0;border-bottom:1px solid #e7edf2;padding:0 0 15px;min-height:0}.patient-avatar{display:grid;width:45px;height:45px}.patient-demographics{grid-template-columns:1fr 1fr;gap:10px 18px}.patient-demographics>div{display:block}.patient-demographics dd{font-size:13px;margin-top:2px}.patient-file-page .patient-clinical-overview{grid-template-columns:1fr;gap:12px}.patient-file-page .patient-health-card h3{font-size:14px}.patient-history-card{padding:17px 12px 12px}.patient-history-title{flex-wrap:wrap}.patient-history-title h2{font-size:19px}.patient-file-page .patient-file-tabs button{flex:none;min-width:100px}.patient-file-page .patient-event{grid-template-columns:1fr;padding:15px;gap:10px}.patient-file-page .event-date{flex-direction:row;justify-content:flex-start;border:0;border-bottom:1px solid #edf2f6;padding:0 0 10px;gap:9px;flex-wrap:wrap}.patient-file-page .event-date strong{font-size:11px}.event-dot{position:static;width:8px;height:8px;box-shadow:none}.patient-file-page .event-actions{grid-column:auto;justify-content:flex-start}.patient-file-page .patient-event-fields p{grid-template-columns:105px 1fr;font-size:12px}.patient-file-page .file-pagination{gap:10px;align-items:flex-start;flex-wrap:wrap}}}@media screen{.print-options-backdrop{z-index:140}.patient-file-stage .patient-file-head-actions .primary-btn,.patient-file-stage .patient-file-head-actions .secondary-btn{font-size:13px}.app-shell:has(.patient-file-stage) .sidebar nav button.active{background:transparent;box-shadow:none}.app-shell:has(.patient-file-stage) .sidebar nav button:has(.lucide-users-round){background:#196575;box-shadow:inset -3px 0 #41d6ca;color:#fff}}@media screen{.queue-patient-results{background:#fff;border:1px solid #dce8eb;border-radius:14px;margin:10px 0 20px;padding:16px}.queue-patient-results article{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #e5edef;padding:12px 0}.queue-patient-results article:first-of-type{margin-top:12px}.queue-patient-results small{display:block;color:#5a7181;margin-top:6px}.queue-lookup-actions,.bulk-selection-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.bulk-selection-toolbar{padding:12px 0;justify-content:space-between}.queue-add-dialog label{display:grid;gap:8px;margin:16px 0}.queue-add-dialog select{padding:12px;border:1px solid #cbdde2;border-radius:10px;background:#fff;color:#173047}.queue-lookup .modal-backdrop{z-index:145}input[type=checkbox]{accent-color:#008c8e;width:18px;height:18px}@media(max-width:760px){.queue-patient-results article{align-items:flex-start;flex-direction:column}.queue-lookup-actions{width:100%}}}@media screen{.patient-file-stage{background:#eef5fb;padding:24px 24px 30px}.patient-file-page{max-width:1480px}.patient-profile-hero{background:#fff;border:1px solid #dce7f0;border-radius:12px;padding:0 24px 14px;margin-bottom:18px}.patient-file-page .patient-profile-hero .patient-file-toolbar{height:70px;min-height:70px;padding:0;border-bottom:1px solid #e1eaf1}.patient-profile-tools{display:flex;gap:6px}.patient-file-toolbar h1{font-size:29px;color:#10263d}.patient-profile-hero .patient-identity-card{display:flex;justify-content:space-between;gap:24px;padding:26px 0 12px;margin:0;border:0;border-radius:0;box-shadow:none;min-height:140px;background:transparent}.patient-profile-hero .patient-identity-title{border:0;padding:0;min-height:0;align-items:center;gap:18px}.patient-profile-hero .patient-avatar{width:68px;height:68px;background:#edf5fb;color:#82a9c1;display:grid}.patient-profile-hero .patient-avatar svg{width:36px;height:36px}.patient-profile-hero h2{font-size:32px;color:#0f2339;font-weight:800;margin:0 0 12px}.patient-key-facts{display:flex;gap:0;align-items:center;flex-wrap:wrap;color:#2b4962;font-size:13px}.patient-key-facts>span{display:inline-flex;align-items:center;gap:8px;padding:0 14px;border-left:1px solid #d9e5ef;min-height:25px}.patient-key-facts>span:first-child{padding-right:0}.patient-key-facts>span:last-child{border:0}.patient-key-facts svg{width:20px;height:20px;color:#365874}.patient-key-facts b{font-weight:500}.patient-key-facts small{font-size:11px;color:#6d8498}.patient-profile-hero .patient-file-head-actions{flex-direction:row;flex-wrap:wrap;flex-shrink:0;gap:10px;justify-content:flex-start}.patient-profile-hero .patient-file-head-actions button{padding:13px 17px;min-height:45px;font-size:14px}.patient-more-identity{font-size:11px;color:#657f93}.patient-more-identity summary{cursor:pointer}.patient-more-identity dl{display:flex;gap:28px;flex-wrap:wrap;margin:12px 0 0}.patient-more-identity dl>div{display:flex;gap:10px}.patient-more-identity dt{font-weight:700}.patient-more-identity dd{margin:0;overflow-wrap:anywhere}.patient-file-page .patient-clinical-overview{gap:16px}.patient-file-page .patient-health-card,.patient-file-page .patient-health-card.chronic{padding:22px 20px;border-radius:12px;background:#fff;border-color:#dce7f0;min-height:205px}.patient-file-page .patient-health-card h3,.patient-file-page .patient-health-card.chronic h3{background:transparent;padding:0;margin:0 0 18px;border-radius:0;color:#122c42;font-weight:800;font-size:19px;gap:14px;line-height:1.7}.clinical-icon{display:inline-grid;place-items:center;flex-shrink:0;background:#e4f7f5;color:#119c9c;width:48px;height:48px;border-radius:50%}.patient-file-page .patient-health-card h3 svg{width:25px;height:25px}.patient-file-page .patient-health-card p{background:#f4f7fb;border-radius:10px;padding:18px;font-size:15px;line-height:1.9;color:#294258;min-height:82px}.patient-history-card{padding:20px 18px 14px;border-color:#dce7f0;border-radius:12px;margin-top:14px}.patient-history-title{margin:0 2px 16px}.patient-history-title h2{font-size:25px;color:#0f263e}.patient-history-title h2 svg{width:25px;height:25px;color:#109fa2}.patient-history-title p{margin-right:61px;font-size:11px;color:#6c8295}.patient-file-page .patient-file-tabs{background:#f5f9fc;margin-bottom:12px}.patient-file-page .patient-file-tabs button{padding:10px 7px;font-size:11px;min-height:40px}.patient-file-page .patient-event{grid-template-columns:155px minmax(0,1fr) auto;gap:16px;padding:16px;min-height:122px;border:1px solid #e0e8ef;border-radius:10px;content-visibility:auto;contain-intrinsic-size:auto 122px}.patient-file-page .event-date{padding-left:14px;align-items:center;gap:9px}.patient-file-page .event-date strong{font-size:15px;font-weight:750;color:#17324a}.patient-file-page .event-kind{font-size:12px;padding:5px 16px;background:#ddf5f3;color:#00898f}.event-dot{display:none}.event-preview-grid{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(100px,1fr) minmax(130px,1.5fr);gap:0}.event-preview-grid>div{padding:0 12px;border-left:1px solid #e2eaf1;min-width:0;display:flex;flex-direction:column;gap:8px}.event-preview-grid>div:last-child{border-left:0}.event-preview-grid b{font-size:12px;color:#23435c}.event-preview-grid span{font-size:12px;color:#3d5870;line-height:1.9;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:pre-wrap}.patient-file-page .event-metadata{font-size:12px;margin-top:10px;padding-top:6px}.patient-file-page .event-metadata summary{color:#6a879d;font-size:10px}.patient-file-page .patient-event-fields p{font-size:13px;grid-template-columns:115px minmax(0,1fr)}.patient-file-page .kind-prescriptions .event-metadata .patient-event-fields p span{display:block;-webkit-line-clamp:unset}.patient-file-page .event-actions{flex-direction:row;gap:7px;flex-wrap:wrap;max-width:265px;justify-content:flex-start}.patient-file-page .event-actions .file-action{padding:10px 12px;font-size:12px;border-radius:7px;min-height:40px;background:#fff;color:#29485f;border:1px solid #a8becd}.patient-file-page .event-actions .file-action-view{border-color:#70bfc1;color:#008c91;background:#effcfc}.file-opening-status{padding:10px 15px;background:#e8f8f6;border:1px solid #bfe3e0;color:#116e72;border-radius:9px}@media(max-width:1250px){.patient-profile-hero h2{font-size:26px}.patient-profile-hero .patient-avatar{width:54px;height:54px}.patient-profile-hero .patient-file-head-actions{flex-direction:column}.patient-file-page .patient-event{grid-template-columns:135px minmax(0,1fr)}.patient-file-page .event-actions{grid-column:2;max-width:none;flex-direction:row}.patient-file-page .patient-health-card h3{font-size:17px}.patient-key-facts>span{padding:0 9px}}@media(max-width:760px){.patient-file-stage{padding:12px 10px 20px}.patient-profile-hero{padding:0 15px 12px}.patient-file-page .patient-profile-hero .patient-file-toolbar{height:56px;min-height:56px;padding:0;flex-wrap:nowrap;align-items:center}.patient-file-toolbar h1{font-size:23px}.patient-profile-hero .patient-identity-card{display:flex;flex-direction:column;align-items:stretch;padding:20px 0 12px;gap:16px;min-height:0}.patient-profile-hero .patient-identity-title{border:0;align-items:flex-start;padding:0;gap:12px}.patient-profile-hero h2{font-size:24px}.patient-profile-hero .patient-avatar{width:44px;height:44px}.patient-profile-hero .patient-avatar svg{width:26px;height:26px}.patient-key-facts{gap:7px;font-size:11px}.patient-key-facts>span{padding:0 6px;border:0}.patient-key-facts svg{width:16px;height:16px}.patient-profile-hero .patient-file-head-actions{flex-direction:row}.patient-profile-hero .patient-file-head-actions button{min-height:40px;padding:10px 12px;font-size:12px}.patient-file-page .patient-health-card,.patient-file-page .patient-health-card.chronic{min-height:0;padding:16px}.patient-file-page .patient-health-card h3{font-size:17px;gap:10px;margin-bottom:12px}.clinical-icon{width:40px;height:40px}.patient-file-page .patient-health-card p{font-size:14px;padding:14px;min-height:60px}.patient-history-title h2{font-size:21px}.patient-history-card{padding:15px 10px}.patient-file-page .patient-event{grid-template-columns:1fr;padding:13px;gap:10px}.patient-file-page .event-date{flex-direction:row;justify-content:flex-start;align-items:center;border-left:0;padding:0 0 10px}.patient-file-page .event-date strong{font-size:13px}.patient-file-page .event-actions{grid-column:auto;max-width:none}.event-preview-grid{grid-template-columns:1fr}.event-preview-grid>div{padding:8px 0;border-left:0;border-bottom:1px solid #edf2f6;gap:3px}.event-preview-grid>div:last-child{border-bottom:0}.patient-file-page .patient-event-fields p{grid-template-columns:1fr;gap:2px}.patient-file-page .event-actions .file-action{font-size:11px;padding:9px 11px;min-height:36px}}}@media screen{.patient-file-page .workspace-form fieldset,.patient-inline-identity fieldset{border:0;padding:0;margin:0;min-width:0}.patient-file-page .workspace-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0}.patient-file-page label{display:flex;flex-direction:column;gap:8px;font-weight:600;color:#18334c}.patient-file-page input,.patient-file-page textarea{box-sizing:border-box;width:100%;border:1px solid #d6e3ed;border-radius:10px;background:#f8fbfd;color:#18334c;padding:12px;font:inherit;resize:vertical}.patient-file-page input:focus,.patient-file-page textarea:focus{outline:2px solid #32bbb5;outline-offset:1px}.patient-file-page .visit-workspace{margin:20px 0;padding:24px;background:#fff;border:1px solid #dce8ef;border-radius:16px}.patient-file-page .workspace-requests{padding:18px;background:#eefaf9;border-radius:12px;margin:20px 0}.patient-file-page .workspace-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.patient-file-page .workspace-actions span{color:#647a8c;font-size:13px}.patient-file-page .patient-inline-identity{padding:0 18px 16px}.patient-file-page .patient-health-card textarea{background:#f4f8fb;min-height:110px}.patient-file-page fieldset:disabled{opacity:.85}.patient-file-page .patient-event:focus-within{border-color:#27aaa5}@media(max-width:760px){.patient-file-page .workspace-grid{grid-template-columns:1fr}.patient-file-page .visit-workspace{padding:14px}}}@media screen{.patient-file-page .patient-event.selected-visit{border-color:#159e9a;background:#f0fbfa;box-shadow:inset -4px 0 #159e9a}.patient-file-page .visit-workspace{scroll-margin-top:18px}}@media screen{.patient-file-stage{background:#e9f5fd;padding:10px 26px 20px}.patient-file-page{max-width:1460px}.patient-file-page .patient-workspace-topbar{display:flex;justify-content:space-between;align-items:center;min-height:32px;margin-bottom:8px;color:#71869b;font-size:12px}.patient-file-page .patient-workspace-topbar .patient-profile-tools{display:flex;gap:6px}.patient-file-page .patient-workspace-topbar .file-icon-button{min-height:28px;width:28px;padding:5px}.patient-file-page .patient-inline-identity{padding:0}.patient-file-page .patient-profile-hero{background:#fff;border:1px solid #deebf1;border-radius:11px;padding:10px 18px 12px;margin:0 0 12px;box-shadow:0 2px 9px #25496105}.patient-file-page .patient-file-toolbar{min-height:0;height:auto;padding:0;margin:0 0 6px;display:flex;justify-content:space-between}.patient-file-page .patient-file-toolbar h1{display:flex;align-items:center;gap:9px;font-size:19px;font-weight:800;margin:0;color:#18354e}.patient-file-page .patient-file-toolbar h1 svg{width:22px;color:#008a96}.patient-file-page .identity-edit-trigger{border:0;background:none;color:#688394;min-height:24px;font-size:11px;padding:0 4px}.patient-file-page .workspace-grid.patient-demographics-row{display:grid;grid-template-columns:2.6fr .65fr 1.65fr 1fr;gap:18px;margin:0 0 8px}.patient-file-page label{font-size:13px;font-weight:700;gap:4px;line-height:1.5}.patient-file-page input,.patient-file-page select,.patient-file-page textarea{font-family:inherit;font-size:13px;line-height:1.5;border-radius:5px;border:1px solid #d9e1e8;background:#fff;padding:5px 10px;color:#253e53;box-sizing:border-box;width:100%;min-width:0}.patient-file-page input,.patient-file-page select{height:34px}.patient-file-page input[readonly]{background:#e9edf2;color:#647385}.patient-file-page textarea{min-height:42px;resize:vertical}.patient-file-page input::placeholder,.patient-file-page textarea::placeholder{color:#8a939c}.patient-file-page .save-patient-data{display:flex;margin-right:auto;min-height:34px;padding:6px 17px;border-radius:5px;font-size:12px}.patient-file-page .patient-clinical-overview{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 12px}.patient-file-page .patient-health-card,.patient-file-page .patient-health-card.chronic{padding:12px 16px;min-height:0;border:1px solid #deebf1;border-radius:10px;background:#fff}.patient-file-page .patient-health-card h3,.patient-file-page .patient-health-card.chronic h3{font-size:17px;display:flex;align-items:center;gap:9px;margin:0 0 8px;line-height:1.5;color:#1d3449}.patient-file-page .patient-health-card h3 svg{width:21px;height:21px;color:#008792}.patient-file-page .patient-health-card textarea{background:#fff;min-height:76px;height:76px}.patient-file-page .patient-file-private-note{font-size:10px;line-height:1.2;margin:0 6px 7px;color:#79919e}.patient-file-page .patient-file-private-note svg{width:12px;height:12px}.patient-file-page .patient-history-card.visit-workspace{border-radius:10px;border:1px solid #deebf1;padding:14px 18px 10px;margin:0 0 12px;background:#fff}.patient-file-page .patient-history-title{display:flex;align-items:center;gap:20px;margin:0 0 6px}.patient-file-page .patient-history-title h2{font-size:18px;font-weight:800;display:flex;align-items:center;gap:9px;margin:0;line-height:1.5}.patient-file-page .patient-history-title h2 svg{color:#008792;width:22px;height:22px}.patient-file-page .workspace-date-badge{display:flex;align-items:center;gap:8px;font-size:12px;color:#087783;background:#d5f5f6;border-radius:5px;padding:6px 10px}.patient-file-page .workspace-date-badge svg{width:17px;height:17px}.patient-file-page .workspace-outline{border:1px solid #9fcbd1;color:#0d7581;background:#f3fbfc;border-radius:5px;min-height:30px;padding:5px 15px;font-size:12px}.patient-file-page .new-workspace-visit{margin-right:auto}.patient-file-page .workspace-date-input{display:block;width:142px;height:28px;margin:0 0 6px auto;font-size:11px;color:#458294;border-color:#d7e8ee}.patient-file-page .workspace-visit-fields{display:grid;grid-template-columns:1fr 1.15fr 1.85fr;gap:18px;margin:0 0 10px}.patient-file-page .workspace-symptoms{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:12px}.patient-file-page .workspace-symptoms textarea{height:44px}.patient-file-page .rx-table-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 5px}.patient-file-page .rx-table-heading h3,.patient-file-page .workspace-requests h3{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:800;margin:0;line-height:1.5}.patient-file-page .rx-table-heading svg,.patient-file-page .workspace-requests h3 svg{width:21px;height:21px;color:#008792}.patient-file-page .catalog-toggle{font-size:10px;color:#658596;background:transparent;border:0;min-height:24px;padding:2px 5px}.patient-file-page .catalog-toggle svg{width:13px;height:13px}.patient-file-page .rx-table-scroll{overflow-x:auto;border:1px solid #e0e8ed;border-radius:7px}.patient-file-page .rx-table-scroll table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}.patient-file-page .rx-table-scroll th{padding:5px 10px;background:#f0f6fa;border-left:1px solid #e5edf2;text-align:center}.patient-file-page .rx-table-scroll th:first-child{width:42%}.patient-file-page .rx-table-scroll th:nth-child(2){width:32%}.patient-file-page .rx-table-scroll th:nth-child(3){width:21%}.patient-file-page .rx-table-scroll th:last-child{width:38px}.patient-file-page .rx-table-scroll td{padding:3px 5px;border:1px solid #e5edf2}.patient-file-page .rx-table-scroll input{height:29px;padding:4px 8px;font-size:12px}.patient-file-page .add-medicine-row{margin:3px auto 6px 0;display:flex}.patient-file-page .row-delete,.patient-file-page .row-edit{width:29px;min-height:26px;height:26px;padding:4px;border-radius:5px;border:1px solid #f4c8c8;color:#dc5260;background:#fff3f3}.patient-file-page .row-edit{border-color:#b3d5e9;color:#1c759e;background:#eef8ff}.patient-file-page .row-delete svg,.patient-file-page .row-edit svg{width:15px;height:15px}.patient-file-page .workspace-requests{padding:9px 12px 7px;border:1px solid #77d1d8;background:#effcfc;border-radius:9px;margin:4px 0 7px}.patient-file-page .workspace-requests h3{margin-bottom:8px}.patient-file-page .request-composer{display:flex;gap:10px;margin-bottom:7px}.patient-file-page .request-composer>input{flex:1}.patient-file-page .request-composer>select{width:145px}.patient-file-page .request-composer .primary-btn{min-height:32px;padding:4px 25px;border-radius:5px;font-size:12px}.patient-file-page .request-row{display:flex;align-items:center;gap:9px;min-height:34px;background:#fff;border:1px solid #e1e9ee;padding:3px 8px}.patient-file-page .request-row:first-child{border-radius:7px 7px 0 0}.patient-file-page .request-row:last-child{border-radius:0 0 7px 7px}.patient-file-page .request-badge{min-width:77px;text-align:center;border-radius:18px;padding:3px 10px;font-size:11px;font-weight:700;color:#53637c;background:#f0f3f7}.patient-file-page .request-التحاليل{background:#eeeaff;color:#574bb0}.patient-file-page .request-الأشعة{background:#e2f4ff;color:#286d9b}.patient-file-page .request-التعليمات{background:#dff9e5;color:#368957}.patient-file-page .request-text{flex:1;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.patient-file-page .request-note{display:flex;align-items:center;gap:5px;font-size:10px;color:#68818b;margin-top:6px}.patient-file-page .request-note svg{width:14px;height:14px}.patient-file-page .request-raw{font-size:10px;color:#7b929a;margin-top:3px}.patient-file-page .workspace-catalog{padding:12px;background:#f6fafc;border:1px solid #dae6ed;border-radius:7px;margin:6px 0}.patient-file-page .workspace-actions{display:flex;justify-content:flex-start;gap:8px}.patient-file-page .workspace-actions .primary-btn,.patient-file-page .workspace-actions .secondary-btn{min-height:35px;padding:6px 15px;border-radius:5px;font-size:12px}.patient-file-page .workspace-actions span[role=status]{margin-right:auto;font-size:10px}.patient-file-page .workspace-history{padding:9px 16px;border:1px solid #deebf1;background:#fff;border-radius:10px;margin:0}.patient-file-page .workspace-history .patient-history-title{justify-content:space-between;margin-bottom:5px}.patient-file-page .workspace-history h2{font-size:17px}.patient-file-page .workspace-history .patient-history-title p{display:none}.patient-file-page .history-selection-help{font-size:11px;color:#687e8d}.patient-file-page .workspace-history .patient-file-tabs{background:none;margin:4px 0;padding:0;gap:4px;border:0;justify-content:flex-start;overflow:auto}.patient-file-page .workspace-history .patient-file-tabs button{min-height:24px;font-size:10px;padding:3px 8px;border-radius:4px}.patient-file-page .workspace-history .patient-events{gap:0}.patient-file-page .workspace-history .patient-event{display:block;border:1px solid #e1e8ee;border-radius:6px;padding:0;min-height:0;content-visibility:visible;contain-intrinsic-size:none;margin:2px 0;background:#fff}.patient-file-page .event-select-row{width:100%;display:grid;grid-template-columns:1fr 1fr 1.5fr 1.1fr;gap:12px;border:0;background:transparent;min-height:32px;padding:4px 12px;font-size:12px;text-align:right}.patient-file-page .workspace-history .patient-event.selected-visit{background:#dff6f8;box-shadow:none;border-color:#9ed9dd}.patient-file-page .history-selection-badge,.patient-file-page .history-rx-badge{justify-self:start;background:#e4f9e8;color:#4a8655;border-radius:6px;padding:2px 10px;font-size:10px}.patient-file-page .history-selection-badge{background:#d5f4f7;color:#0d8692}.patient-file-page .history-date{display:flex;gap:8px;align-items:center;justify-content:flex-end}.patient-file-page .history-date svg{width:15px;height:15px}.patient-file-page .workspace-history .event-date,.patient-file-page .workspace-history .event-preview-grid{display:none}.patient-file-page .workspace-history .event-body{padding:0 12px}.patient-file-page .workspace-history .event-metadata{border:0;margin:0;padding:0}.patient-file-page .workspace-history .event-metadata summary{font-size:9px;color:#8da0ac;line-height:1.3}.patient-file-page .workspace-history .event-actions{display:none}.patient-file-page .workspace-history .file-pagination{margin:5px 0 0;font-size:10px;padding:4px 0}.patient-file-page .workspace-history .file-pagination button{min-height:24px;padding:3px 9px;font-size:10px}@media(max-width:760px){.patient-file-stage{top:0;right:0;bottom:0;left:0;padding:8px}.patient-file-page .workspace-grid.patient-demographics-row{grid-template-columns:1fr 1fr;gap:10px}.patient-file-page .patient-clinical-overview{grid-template-columns:1fr}.patient-file-page .patient-profile-hero,.patient-file-page .patient-history-card.visit-workspace{padding:12px}.patient-file-page .workspace-visit-fields{grid-template-columns:1fr 1fr}.patient-file-page .workspace-visit-fields label:last-child{grid-column:1/-1}.patient-file-page .workspace-symptoms{grid-template-columns:1fr}.patient-file-page .request-composer{flex-wrap:wrap}.patient-file-page .request-composer>input{flex-basis:100%}.patient-file-page .request-composer>select{flex:1}.patient-file-page .request-text{min-width:0}.patient-file-page .patient-history-title{flex-wrap:wrap;gap:8px}.patient-file-page .patient-health-card h3,.patient-file-page .patient-health-card.chronic h3{font-size:15px}.patient-file-page .rx-table-scroll table{min-width:560px}.patient-file-page .history-selection-help{font-size:10px}.patient-file-page .event-select-row{grid-template-columns:1fr 1fr;gap:6px;font-size:11px}.patient-file-page .workspace-actions{flex-wrap:wrap}.patient-file-page .workspace-actions span[role=status]{width:100%}.patient-file-page .identity-edit-trigger{display:none}}}@media screen{.patient-file-page .patient-profile-hero .patient-file-toolbar{height:30px;min-height:30px;padding:0;margin:0 0 5px;border:0;flex-wrap:nowrap}.patient-file-page .patient-profile-hero .patient-file-toolbar h1{font-size:19px;white-space:nowrap;margin:0}.patient-file-page .workspace-form{position:relative}.patient-file-page .workspace-date-input{position:absolute;right:230px;top:-40px;width:145px;height:32px;margin:0;opacity:0;cursor:pointer}.patient-file-page .workspace-history .clinical-icon{width:auto;height:auto;background:transparent}.app-shell:has(.patient-file-stage) .sidebar nav button:has(.lucide-users-round){background:#008d9f;box-shadow:none;border-radius:6px}@media(max-width:760px){.patient-file-page .workspace-date-input{position:static;opacity:1;width:142px;height:28px;margin-bottom:8px}}}@media screen{.patient-file-page .history-sections{font-size:10px;color:#7891a2;margin:2px 0 5px}.patient-file-page .history-sections>summary{cursor:pointer}.patient-file-page .workspace-history .event-body{position:relative;padding:0 12px}.patient-file-page .workspace-history .event-metadata:not([open])>summary{position:absolute;left:6px;top:-29px;font-size:0;cursor:pointer;list-style:none;min-height:0}.patient-file-page .workspace-history .event-metadata:not([open])>summary:after{content:"⋯";font-size:17px;color:#7f9aac}.patient-file-page .workspace-history .event-select-row{padding-left:28px}.patient-file-page .workspace-history .event-metadata[open]{padding:8px}}@media screen{.app-shell:has(.patient-file-stage){--workspace-sidebar:clamp(160px,13.02vw,220px)}.app-shell:has(.patient-file-stage)>.sidebar{width:var(--workspace-sidebar);padding:15px 7px;background:linear-gradient(180deg,#10273f,#103451);color:#edf5ff}.app-shell:has(.patient-file-stage) .sidebar-brand{display:flex;flex-direction:column;gap:8px;padding:4px 6px 19px;text-align:center;border:0}.app-shell:has(.patient-file-stage) .sidebar-brand>div:nth-child(2){text-align:center}.app-shell:has(.patient-file-stage) .sidebar-brand strong{color:#fff;font-size:20px;letter-spacing:0;white-space:nowrap}.app-shell:has(.patient-file-stage) .sidebar-brand span{font-size:12px;color:#b7cbe0}.app-shell:has(.patient-file-stage) .brand-mark.small{width:43px;height:43px;color:#11c9cf}.app-shell:has(.patient-file-stage) .brand-mark.small svg{width:43px;height:43px;fill:currentColor;stroke-width:0}.app-shell:has(.patient-file-stage) .sidebar .mobile-close{display:none}.app-shell:has(.patient-file-stage) .sidebar nav{gap:7px}.app-shell:has(.patient-file-stage) .sidebar nav button{padding:12px 10px;min-height:48px;font-size:14px;gap:12px;color:#f1f6fe;border-radius:6px;box-shadow:none;background:none}.app-shell:has(.patient-file-stage) .sidebar nav button:has(.lucide-users-round){background:none}.app-shell:has(.patient-file-stage) .sidebar nav button.active,.app-shell:has(.patient-file-stage) .sidebar nav button.active:has(.lucide-users-round){background:#008ca5;color:#fff}.app-shell:has(.patient-file-stage) .sidebar nav button svg{width:20px;height:20px}.app-shell:has(.patient-file-stage) .logout{margin-top:auto;color:#fff;font-size:13px;border-top:1px solid #42617a;border-radius:0;padding-top:24px}.patient-file-stage{inset:0 var(--workspace-sidebar,236px) 0 0;padding:8px 15px 20px;background:linear-gradient(115deg,#eaf8ff,#f3fbff);overflow:auto}.patient-file-page{width:100%;max-width:none;margin:0;color:#17355b;font-size:13px}.patient-file-page .patient-workspace-topbar{height:40px;min-height:40px;margin:0 0 9px;flex-direction:row;justify-content:space-between;color:#395d86}.patient-file-page .workspace-breadcrumb{display:flex;align-items:center;gap:13px;font-size:13px;font-weight:600}.patient-file-page .workspace-breadcrumb svg{width:19px;height:19px}.patient-file-page .patient-profile-tools{opacity:.72}.patient-file-page .patient-inline-identity{padding:0;margin:0}.patient-file-page .patient-profile-hero{padding:16px 15px 18px;margin:0 0 14px;border:1px solid #dfebf3;border-radius:10px;box-shadow:none;min-height:156px;position:relative}.patient-file-page .patient-profile-hero .patient-file-toolbar{height:34px;min-height:34px;margin:0 0 21px;padding:0;align-items:flex-start}.patient-file-page .patient-file-toolbar h1{font-size:17px!important;color:#19375a}.patient-file-page .current-encounter-badge{font-size:12px;color:#007867;background:#e8fff7;border:1px solid #8ee9cc;border-radius:6px;padding:7px 13px;white-space:nowrap}.patient-file-page .workspace-grid.patient-demographics-row{grid-template-columns:1.15fr 1.65fr .85fr 1fr;gap:20px;margin:0;padding-left:188px;min-height:57px}.patient-file-page .identity-number{grid-column:1;grid-row:1}.patient-file-page .identity-name{grid-column:2;grid-row:1}.patient-file-page .identity-age{grid-column:3;grid-row:1}.patient-file-page .identity-phone{grid-column:4;grid-row:1}.patient-file-page label{font-size:13px;line-height:1.6;gap:5px;font-weight:650;color:#426183;margin:0}.patient-file-page input,.patient-file-page select,.patient-file-page textarea{font-size:13px;color:#233f66;border:1px solid #d6e2ee;border-radius:4px;padding:7px 10px;background:#fff;line-height:1.65;font-weight:400}.patient-file-page input,.patient-file-page select{height:39px}.patient-file-page textarea{display:block}.patient-file-page input[readonly]{background:#f1f6fa;color:#304d6b}.patient-file-page .save-patient-data{position:absolute;left:15px;bottom:18px;height:44px;min-height:44px;padding:9px 15px;margin:0;font-size:13px;border-radius:6px;background:linear-gradient(100deg,#00a7b3,#008d9f);color:#fff}.patient-file-page .patient-clinical-overview{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:0 0 15px;direction:ltr}.patient-file-page .patient-health-card,.patient-file-page .patient-health-card.chronic{direction:rtl;padding:14px 15px 13px;min-height:175px;border:1px solid #dfebf3;border-radius:9px;background:#fff}.patient-file-page .patient-health-card h3,.patient-file-page .patient-health-card.chronic h3{font-size:16px;line-height:1.5;display:flex;align-items:center;gap:7px;margin:0 0 10px;color:#183659;font-weight:800;height:30px}.patient-file-page .patient-health-card h3>svg{width:21px;height:21px;color:#1d4772}.patient-file-page .clinical-edit{margin-right:auto;background:#f5faff;border:1px solid #d6e5f1;border-radius:5px;width:31px;height:31px;min-height:31px;padding:7px;color:#2c587e}.patient-file-page .clinical-edit svg{width:15px;height:15px}.patient-file-page .patient-health-card textarea{height:120px;min-height:120px;line-height:1.85;resize:vertical;border-color:#e0e7ef;background:#fff;padding:9px 11px}.patient-file-page .patient-file-private-note{display:none}.patient-file-page .patient-history-card.visit-workspace{padding:14px 15px 16px;margin:0 0 15px;border:1px solid #dfebf3;border-radius:9px;background:#fff}.patient-file-page .visit-workspace>.patient-history-title{height:38px;min-height:38px;gap:15px;margin:0 0 12px;position:relative}.patient-file-page .patient-history-title h2{font-size:17px;color:#19365a;font-weight:800;gap:8px}.patient-file-page .patient-history-title h2 svg{color:#234c78;width:22px;height:22px}.patient-file-page .new-workspace-visit{order:1;margin:0;padding:7px 12px;height:35px;min-height:35px;color:#fff;background:#00a1b1;border:1px solid #00a1b1;font-size:13px;border-radius:5px}.patient-file-page .workspace-date-badge{order:2;margin-right:auto;display:flex;flex-direction:row;gap:9px;align-items:center;font-size:12px;color:#007b8a;background:#e6faf9;border:1px solid #a0e3e4;border-radius:5px;padding:6px 10px;height:36px;font-weight:700;position:relative}.patient-file-page .workspace-date-badge input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;z-index:1;cursor:pointer}.patient-file-page .workspace-date-badge input::-webkit-calendar-picker-indicator{opacity:0;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;cursor:pointer}.patient-file-page .workspace-date-value{font-size:12px;direction:ltr;display:inline-block;min-width:93px;text-align:center}.patient-file-page .workspace-date-badge svg{width:18px;height:18px}.patient-file-page .workspace-visit-fields{display:grid;grid-template-columns:1.2fr 1fr 2.4fr;column-gap:20px;row-gap:0;margin-bottom:0}.patient-file-page .workspace-visit-fields label:first-child{grid-column:1;grid-row:1}.patient-file-page .workspace-visit-fields label:nth-child(2){grid-column:2;grid-row:1}.patient-file-page .workspace-visit-fields .visit-diagnosis{grid-column:1/-1;grid-row:2;margin-top:12px;padding:0;width:calc(50% - 10px)}.patient-file-page .workspace-visit-fields .visit-diagnosis input{width:100%}.patient-file-page .workspace-symptoms{display:grid;grid-template-columns:1fr 1fr;column-gap:20px;row-gap:10px;margin:0 0 20px}.patient-file-page .workspace-symptoms label:first-child{grid-column:2;grid-row:1;margin-top:-66px}.patient-file-page .workspace-symptoms label:last-child{grid-column:1/-1;grid-row:2;margin-top:0}.patient-file-page .workspace-symptoms textarea{height:42px;min-height:42px;resize:vertical}.patient-file-page .workspace-rx-requests{display:grid;grid-template-columns:1fr 1fr;gap:14px;direction:ltr}.patient-file-page .workspace-rx-requests>fieldset{min-width:0;direction:rtl;padding:13px 0 0!important;border:1px solid #e3edf5!important;border-radius:5px;align-self:stretch}.patient-file-page .workspace-rx-requests>.requests-panel{position:relative}.patient-file-page .workspace-medicine-table{padding:0 9px 10px}.patient-file-page .rx-table-heading{margin:0 0 15px;min-height:28px;gap:5px;position:relative}.patient-file-page .rx-table-heading h3{font-size:15px;color:#17375c;font-weight:800;gap:7px}.patient-file-page .rx-table-heading svg{width:19px;height:19px;color:#416e94}.patient-file-page .catalog-toggle{position:absolute;left:0;top:27px;z-index:1;background:#fff;font-size:9px;padding:0 2px;min-height:18px;color:#678ba2}.patient-file-page .rx-table-scroll{border:1px solid #dbe8f2;border-radius:4px;overflow:auto}.patient-file-page .rx-table-scroll table{font-size:12px;min-width:0}.patient-file-page .rx-table-scroll th{font-size:12px;background:#f0f7fc;padding:9px 5px;color:#375a81;font-weight:750}.patient-file-page .rx-table-scroll th:first-child{width:37%}.patient-file-page .rx-table-scroll th:nth-child(2){width:39%}.patient-file-page .rx-table-scroll th:nth-child(3){width:17%}.patient-file-page .rx-table-scroll th:last-child{width:7%}.patient-file-page .rx-table-scroll td{padding:3px;border:1px solid #e0eaf1}.patient-file-page .rx-table-scroll input{font-size:11px;height:32px;padding:3px 5px}.patient-file-page .row-delete,.patient-file-page .row-edit{width:27px;height:28px;min-height:28px;border:1px solid #d9e5ef;background:#f5faff;color:#008ed5;border-radius:4px;padding:6px}.patient-file-page .row-delete{color:#ff354e;background:#fff;border-color:transparent}.patient-file-page .add-medicine-row{width:100%;height:38px;min-height:38px;margin:8px 0 0;color:#008e9d;background:#e7fbf8;border:1px solid #a3e5df;border-radius:4px;font-size:13px}.patient-file-page .workspace-requests{border:0;background:#fff;padding:0 9px 10px;border-radius:0;margin:0}.patient-file-page .workspace-requests h3{font-size:15px;color:#17375c;font-weight:800;margin:0 0 15px;line-height:1.7;gap:7px;min-height:28px}.patient-file-page .workspace-requests h3 svg{width:20px;height:20px;color:#416e94}.patient-file-page .request-composer{gap:7px;margin:0 0 8px;align-items:stretch;direction:rtl;flex-wrap:nowrap}.patient-file-page .request-composer>input{min-width:0;flex:1;height:36px;font-size:10px;padding:6px}.patient-file-page .request-composer>select{width:74px;height:36px;font-size:10px;padding:3px}.patient-file-page .request-composer .primary-btn{font-size:12px;padding:5px 9px;min-height:36px;background:#00a5b0;gap:3px;border-radius:5px;flex-shrink:0}.patient-file-page .request-row{min-height:35px;padding:3px 6px;border:1px solid #e2ebf2;gap:6px}.patient-file-page .workspace-rx-requests .request-row{border-top:0;border-radius:0}.patient-file-page .request-badge{min-width:55px;font-size:10px;border-radius:0;padding:0;color:#244c73;background:none!important;font-weight:600}.patient-file-page .request-text{font-size:11px;line-height:1.5;min-width:0}.patient-file-page .request-table-head{display:grid;grid-template-columns:65px 1fr 65px;background:#f1f7fb;border:1px solid #dce7f0;min-height:30px;font-size:11px;color:#375c83;font-weight:700;align-items:center;text-align:center}.patient-file-page .request-note{display:none}.patient-file-page .request-raw{font-size:9px;margin-top:0}.patient-file-page .request-raw:not([open])>summary{position:absolute;bottom:1px;left:8px;list-style:none;font-size:0;cursor:pointer}.patient-file-page .request-raw:not([open])>summary:after{content:"⋯";font-size:16px;color:#8aa3b8}.patient-file-page .workspace-actions{display:flex;justify-content:center;gap:16px;margin:12px 0 0;position:relative;padding-bottom:0}.patient-file-page .workspace-actions .primary-btn,.patient-file-page .workspace-actions .secondary-btn{min-width:285px;min-height:42px;font-size:14px;border-radius:5px;padding:8px 20px}.patient-file-page .workspace-actions .primary-btn{background:linear-gradient(100deg,#00a7b3,#008d9f)}.patient-file-page .workspace-actions .secondary-btn{border:1px solid #00acb7;color:#0098a9;background:#fff}.patient-file-page .workspace-actions span[role=status]{position:absolute;bottom:-14px;font-size:9px;color:#7191a4;display:none}.patient-file-page .workspace-actions:has(button:disabled) span[role=status]{display:block}.patient-file-page .workspace-history{padding:14px 15px;border:1px solid #dfeaf2;border-radius:9px;background:#fff;position:relative}.patient-file-page .workspace-history .patient-history-title{min-height:30px;margin:0 0 5px;justify-content:space-between;gap:10px}.patient-file-page .workspace-history h2{font-size:17px;white-space:nowrap}.patient-file-page .history-selection-help{display:flex;align-items:center;gap:5px;font-size:11px;color:#42678b;padding-left:20px}.patient-file-page .history-selection-help svg{width:14px;height:14px;color:#147cff}.patient-file-page .history-sections{font-size:9px;margin:0 0 6px;color:#7998ab}.patient-file-page .history-sections:not([open]){position:absolute;left:8px;top:13px;margin:0}.patient-file-page .history-sections:not([open])>summary{list-style:none;font-size:0;cursor:pointer}.patient-file-page .history-sections:not([open])>summary:after{content:"⋯";font-size:18px;color:#8aa3b8}.patient-file-page .history-table-head,.patient-file-page .event-select-row{display:grid;grid-template-columns:28px 1.05fr .85fr 1fr 2.2fr 1.3fr 45px;align-items:center;gap:8px;text-align:center}.patient-file-page .history-table-head{background:#f1f7fb;border:1px solid #dce7f0;border-radius:5px 5px 0 0;min-height:31px;font-size:12px;color:#375c83;font-weight:700;padding:5px 9px}.patient-file-page .workspace-history .patient-event{border:1px solid #dce7f0;border-top:0;border-radius:0;margin:0;position:relative;background:#fff}.patient-file-page .workspace-history .patient-event:last-child{border-radius:0 0 5px 5px}.patient-file-page .workspace-history .patient-event.selected-visit{background:#dbfbfc;border-color:#c2eaef}.patient-file-page .event-select-row{min-height:34px;padding:5px 9px;font-size:12px;color:#284973}.patient-file-page .history-date{justify-content:center;font-size:12px}.patient-file-page .history-rx-badge{font-size:10px;border-radius:16px;background:#defcf0;color:#008a70;padding:3px 8px;justify-self:center;white-space:normal}.patient-file-page .history-row-arrow svg{color:#2387ff;width:20px;height:20px}.patient-file-page .history-diagnosis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.patient-file-page .workspace-history .event-metadata:not([open])>summary{left:3px;top:-30px}.patient-file-page .workspace-history .event-metadata:not([open])>summary:after{font-size:13px;opacity:.5}.patient-file-page .workspace-history .file-pagination{margin-top:6px;font-size:10px}.patient-file-page .patient-file-legacy,.patient-file-page .patient-file-link-review{font-size:10px;color:#7795aa;margin:10px 0 0}.patient-file-page .patient-file-legacy[open],.patient-file-page .patient-file-link-review[open]{background:#fff;border:1px solid #deebf3;padding:15px;border-radius:7px}.patient-file-page .patient-file-link-review fieldset{border:0;padding:0;margin:0;min-width:0}.patient-file-page .patient-file-link-review label.patient-save-option:first-of-type,.patient-file-page .patient-file-link-review label.patient-save-option:last-of-type{display:none}.patient-file-page .patient-file-link-review .patient-save-option{flex-direction:row;align-items:center;justify-content:flex-start;gap:8px}.patient-file-page .patient-file-link-review input[type=radio],.patient-file-page .patient-file-link-review input[type=checkbox]{width:16px;height:16px;flex-shrink:0}@media(min-width:1500px){.patient-file-stage{padding:10px 20px 25px}.patient-file-page{font-size:15px}.patient-file-page .patient-profile-hero{padding:20px;min-height:183px}.patient-file-page .patient-clinical-overview{gap:20px}.patient-file-page .patient-health-card,.patient-file-page .patient-health-card.chronic{padding:18px 20px}.patient-file-page .patient-health-card textarea{height:140px}.patient-file-page .patient-file-toolbar h1{font-size:20px!important}.patient-file-page input,.patient-file-page select,.patient-file-page textarea{font-size:15px;height:44px}.patient-file-page .patient-health-card h3{font-size:19px}.patient-file-page .patient-history-card.visit-workspace{padding:18px 20px}.patient-file-page .workspace-symptoms textarea{height:48px}.patient-file-page .workspace-actions .primary-btn,.patient-file-page .workspace-actions .secondary-btn{min-height:49px}.patient-file-page .event-select-row{min-height:39px;font-size:14px}}@media(max-width:1050px)and (min-width:761px){.patient-file-page .workspace-grid.patient-demographics-row{padding-left:0;grid-template-columns:1fr 1fr}.patient-file-page .identity-number{grid-column:1;grid-row:2}.patient-file-page .identity-name{grid-column:1;grid-row:1}.patient-file-page .identity-age{grid-column:2;grid-row:1}.patient-file-page .identity-phone{grid-column:2;grid-row:2}.patient-file-page .patient-profile-hero{padding-bottom:68px}.patient-file-page .workspace-rx-requests{grid-template-columns:1fr}.patient-file-page .history-table-head,.patient-file-page .event-select-row{grid-template-columns:20px 1fr .8fr 1fr 1.2fr 1fr 20px;font-size:11px;gap:4px}.patient-file-page .workspace-actions .primary-btn,.patient-file-page .workspace-actions .secondary-btn{min-width:0;flex:1}}@media(max-width:760px){.patient-file-stage{top:0;right:0;bottom:0;left:0;padding:8px}.patient-file-page .patient-workspace-topbar{height:auto;min-height:38px}.patient-file-page .workspace-breadcrumb{font-size:11px;gap:6px}.patient-file-page .patient-profile-hero{padding:13px 12px 65px;min-height:0}.patient-file-page .patient-profile-hero .patient-file-toolbar{height:auto;min-height:32px;margin-bottom:13px;gap:6px;flex-wrap:wrap}.patient-file-page .current-encounter-badge{font-size:10px;padding:5px}.patient-file-page .workspace-grid.patient-demographics-row{padding:0;grid-template-columns:1fr 1fr;gap:10px}.patient-file-page .identity-number{grid-column:2;grid-row:2}.patient-file-page .identity-name{grid-column:1;grid-row:1}.patient-file-page .identity-age{grid-column:2;grid-row:1}.patient-file-page .identity-phone{grid-column:1;grid-row:2}.patient-file-page .save-patient-data{left:12px;bottom:12px;height:36px;min-height:36px;font-size:12px}.patient-file-page .patient-clinical-overview{grid-template-columns:1fr;gap:10px;margin-bottom:14px}.patient-file-page .patient-health-card,.patient-file-page .patient-health-card.chronic{padding:12px;min-height:0}.patient-file-page .patient-health-card textarea{height:90px;min-height:90px}.patient-file-page .patient-health-card h3{font-size:15px}.patient-file-page .patient-history-card.visit-workspace{padding:12px}.patient-file-page .visit-workspace>.patient-history-title{height:auto;min-height:38px;flex-wrap:wrap;gap:8px;margin-bottom:12px}.patient-file-page .workspace-date-badge{margin:0;order:3;width:100%;justify-content:flex-start;font-size:11px}.patient-file-page .new-workspace-visit{margin-right:auto}.patient-file-page .workspace-visit-fields{grid-template-columns:1fr 1fr;gap:10px}.patient-file-page .workspace-visit-fields .visit-diagnosis{grid-column:1/-1;grid-row:2;padding:0;margin:0;width:100%}.patient-file-page .workspace-visit-fields .visit-diagnosis input{width:100%}.patient-file-page .workspace-symptoms{grid-template-columns:1fr;gap:10px;margin:10px 0 15px}.patient-file-page .workspace-symptoms label:first-child{grid-column:1;grid-row:1;margin:0}.patient-file-page .workspace-symptoms label:last-child{grid-column:1;grid-row:2;margin:0}.patient-file-page .workspace-rx-requests{grid-template-columns:1fr;gap:12px}.patient-file-page .rx-table-heading h3,.patient-file-page .workspace-requests h3{font-size:14px}.patient-file-page .rx-table-scroll table{min-width:0}.patient-file-page .request-composer{flex-wrap:wrap}.patient-file-page .request-composer>input{flex-basis:100%}.patient-file-page .request-composer>select{flex:1}.patient-file-page .workspace-actions{flex-direction:column;gap:8px}.patient-file-page .workspace-actions .primary-btn,.patient-file-page .workspace-actions .secondary-btn{width:100%;min-width:0;min-height:42px;font-size:13px}.patient-file-page .workspace-history{padding:12px 8px}.patient-file-page .workspace-history .patient-history-title{flex-direction:column;align-items:flex-start}.patient-file-page .history-selection-help{font-size:10px;padding-left:0}.patient-file-page .history-sections:not([open]){top:10px}.patient-file-page .history-table-head{display:none}.patient-file-page .workspace-history .event-select-row{grid-template-columns:20px 1fr 1fr 25px;gap:6px;padding:8px;font-size:11px}.patient-file-page .history-index{grid-column:1;grid-row:1/3}.patient-file-page .history-date{grid-column:2;grid-row:1;font-size:11px}.patient-file-page .history-visit-type{grid-column:3;grid-row:1}.patient-file-page .history-procedure{grid-column:2;grid-row:2}.patient-file-page .history-diagnosis{grid-column:2/4;grid-row:3}.patient-file-page .history-rx-badge{grid-column:3;grid-row:2;font-size:9px}.patient-file-page .history-row-arrow{grid-column:4;grid-row:1/4}}}.medicine-name-suggestions{z-index:10050;overflow:auto;border:1px solid #9ed6da;border-radius:10px;background:#fff;box-shadow:0 10px 30px #10233b26;padding:5px;direction:rtl;color:#123346;font:14px Tahoma,Arial,sans-serif}.medicine-name-suggestions button{display:block;width:100%;text-align:start;background:#fff;color:#123346;border:0;border-radius:6px;padding:10px;cursor:pointer}.medicine-name-suggestions button[aria-selected=true],.medicine-name-suggestions button:hover{background:#e0f6f7}.medicine-name-suggestions strong,.medicine-name-suggestions small{display:block;overflow-wrap:anywhere}.medicine-name-suggestions small{font-size:11px;color:#536b7b;margin-top:4px}.medicine-name-suggestions p{padding:8px;margin:0;font-size:12px}.medicine-name-suggestions .medicine-suggestions-retry{color:#008b97;text-align:center}.patient-file-page .workspace-rx-requests{grid-template-columns:minmax(0,1fr);direction:rtl}.patient-file-page .workspace-rx-requests>.requests-panel,.patient-file-page .workspace-rx-requests>.medicine-panel{width:100%;grid-column:1}.patient-file-page .workspace-rx-requests>.requests-panel{grid-row:1}.patient-file-page .workspace-rx-requests>.medicine-panel{grid-row:2}.workspace-visit-fields .procedure-multi-select{display:flex;flex-wrap:wrap;gap:5px;border:0;padding:0}.workspace-visit-fields .procedure-choice{font-size:12px;padding:6px}.service-census{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.service-census>span{padding:7px 11px;border:1px solid #cce6e8;border-radius:8px;background:#effafa}.compact-activity-log{margin-bottom:14px;padding:12px}.compact-activity-log>summary{cursor:pointer;font-weight:700}.compact-activity-log table{font-size:13px}.compact-activity-log .pager{display:flex;gap:10px;justify-content:center;padding:8px}.patient-inline-identity>[role=status],.workspace-actions>[role=status]{color:#087d7d}.conflict-review{margin:10px 0;padding:10px;border:1px solid #e3b6ad;border-radius:8px;background:#fff9f5}.conflict-field{margin:10px 0}.conflict-field>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.conflict-field pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;max-height:160px;overflow:auto;background:#fff;padding:8px;border:1px solid #ddd}.conflict-field input[type=radio]{width:auto;min-height:0}.procedure-multi-select.procedure-compact,.workspace-visit-fields .procedure-multi-select.procedure-compact{display:block;position:relative;min-width:0;width:100%;padding:0;border:0;margin:0}.procedure-dropdown{position:relative;width:100%;min-width:0}.procedure-dropdown>summary{display:flex;align-items:center;gap:8px;list-style:none;min-height:42px;padding:9px 12px;border:1px solid #cbdde5;border-radius:7px;background:#fff;color:#24455d;cursor:pointer;font:inherit;font-size:13px}.procedure-dropdown>summary::-webkit-details-marker{display:none}.procedure-dropdown>summary:focus-visible{outline:2px solid #0096a6;outline-offset:2px}.procedure-dropdown>summary[aria-disabled=true]{cursor:default;opacity:.65}.procedure-chevron{margin-inline-start:auto;font-size:19px;line-height:1}.procedure-dropdown[open] .procedure-chevron{transform:rotate(180deg)}.procedure-count{font-size:11px;background:#e1f6f6;border-radius:20px;padding:1px 7px;color:#087d85}.procedure-popover{position:absolute;inset-inline:0;top:calc(100% + 5px);z-index:60;min-width:210px;padding:7px;border:1px solid #c7e1e5;border-radius:9px;background:#fff;box-shadow:0 8px 24px #14364c24}.procedure-options{max-height:220px;overflow:auto;overscroll-behavior:contain}.procedure-popover .procedure-choice,.workspace-visit-fields .procedure-popover .procedure-choice{display:flex;flex:none;align-items:center;justify-content:flex-start;width:100%;min-height:35px;margin:0 0 3px;padding:7px 9px;font-size:12px;border:1px solid transparent;white-space:normal;text-align:start}.procedure-popover .procedure-choice.active{border-color:#b4e2e3;background:#eafbfa}.procedure-popover .procedure-check-dot{flex-shrink:0;border-radius:3px}.procedure-done{width:100%;margin-top:6px;min-height:34px;border:0;border-radius:6px;background:#0095a5;color:#fff;font:inherit;font-size:12px;cursor:pointer}.procedure-selected{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.procedure-tag{display:inline-flex;align-items:center;gap:5px;max-width:100%;border:1px solid #b9e3e5;border-radius:6px;background:#eafbfa;color:#126674;padding:3px 7px;font-size:11px;line-height:1.6}.procedure-tag>span{overflow-wrap:anywhere}.procedure-tag>button{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:24px;min-height:24px;padding:0;border:0;border-radius:4px;background:transparent;color:#126674;font-size:18px;cursor:pointer}.procedure-tag>button:hover{background:#d1eeee}@media screen{.patient-file-page .request-composer>input[name=request_draft]{font-size:18px;line-height:1.5;height:44px;padding:7px 10px}.patient-file-page .request-raw textarea[name=notes]{font-size:18px;line-height:1.6;padding:8px 10px}}@media screen{:is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]),textarea,select){font-size:18px!important;line-height:20px!important}.patient-file-page .rx-table-scroll input,.patient-file-page .workspace-date-input,.patient-file-page .request-composer>select{font-size:16px!important;line-height:18px!important}}
