:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}body{margin:0}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}*{box-sizing:border-box}body{color:#263238;direction:rtl;background:#f5f7fb;margin:0;font-family:Segoe UI,Tahoma,Arial,sans-serif}button,input,textarea,select{font-family:inherit}.login-page{background:radial-gradient(circle at 100% 0,#eeeaff,#0000 35%),#f5f7fb;justify-content:center;align-items:center;min-height:100vh;padding:20px;display:flex}.login-card{text-align:center;background:#fff;border-radius:24px;width:100%;max-width:430px;padding:42px 36px;box-shadow:0 15px 50px #1e235a1f}.logo{color:#fff;background:#6d5dfc;border-radius:20px;justify-content:center;align-items:center;width:65px;height:65px;margin:0 auto 18px;font-size:38px;font-weight:700;display:flex;box-shadow:0 8px 20px #6d5dfc4d}.login-card h1{margin:5px 0;font-size:27px}.login-card p{color:##7a7f8c;margin:0 0 30px}.login-card form{text-align:right}.login-card label{margin:15px 0 7px;font-size:14px;font-weight:600;display:block}.login-card input{background:0 0;border:1px solid #e0e2e8;border-radius:12px;outline:none;width:100%;padding:14px;font-size:15px;transition:all .2s}.login-card input:focus{border-color:#6d5dfc;box-shadow:0 0 0 3px #6d5dfc1a}.login-card form button{color:#fff;cursor:pointer;background:#6d5dfc;border:none;border-radius:12px;width:100%;margin-top:24px;padding:14px;font-size:16px;font-weight:600}.login-card form button:hover{background:#5b4bea}.error{color:#c62828;background:#fff0f0;border-radius:10px;margin-top:15px;padding:11px;font-size:13px}.app{min-height:100vh}.header{background:#fff;border-bottom:1px solid #eceef3;justify-content:space-between;align-items:center;height:76px;padding:0 30px;display:flex}.header h2{margin:0;font-size:21px}.header span{color:#8a8f9d;margin-top:3px;font-size:12px;display:block}.user-area{align-items:center;gap:15px;display:flex}.user-area>span{color:#555;font-size:13px}.logout{color:#555;cursor:pointer;background:#f3f3f7;border:none;border-radius:10px;padding:9px 15px}.logout:hover{background:#ececf3}.navigation{background:#fff;border-bottom:1px solid #eceef3;gap:8px;padding:13px 30px;display:flex;overflow-x:auto}.navigation button{color:#656a78;cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:10px;padding:10px 19px}.navigation button:hover{color:#6d5dfc;background:#f3f2ff}.navigation button.active{color:#fff;background:#6d5dfc}.content{max-width:1200px;margin:auto;padding:30px}.welcome{justify-content:space-between;align-items:center;margin-bottom:25px;display:flex}body:not(.dark-theme) .welcome h1{letter-spacing:-.3px;font-size:23px;font-weight:700;color:#0f172a!important}.welcome p{color:#818694;margin:7px 0 0}.date{color:#707584;font-size:14px}.stats{grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:22px;display:grid}.stat-card{background:#fff;border-radius:18px;align-items:center;gap:16px;padding:21px;display:flex;box-shadow:0 5px 25px #1419460d}.stat-card>span{background:#f0eeff;border-radius:14px;justify-content:center;align-items:center;width:48px;height:48px;font-size:23px;display:flex}.stat-card small{color:#858a97;margin-bottom:4px;display:block}.stat-card strong{font-size:27px}.panel{background:#fff;border-radius:20px;padding:23px;box-shadow:0 5px 25px #1419460d}.panel-title{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.panel-title h2{margin:0;font-size:19px}.panel-title p{color:#8a8e9a;margin:5px 0 0;font-size:13px}.primary{color:#fff;cursor:pointer;background:#6d5dfc;border:none;border-radius:10px;padding:10px 17px}.primary:hover{background:#5b4bea}.secondary{color:#555;cursor:pointer;background:#fff;border:1px solid #e0e2e8;border-radius:10px;padding:10px 17px}.patients{border-top:1px solid #eee}.patient-row{border-bottom:1px solid #eee;grid-template-columns:48px 1fr 100px 140px;align-items:center;gap:15px;min-height:72px;display:grid}.patient-avatar{color:#6d5dfc;background:#eeeafe;border-radius:13px;justify-content:center;align-items:center;width:43px;height:43px;font-weight:700;display:flex}.patient-info strong{display:block}.patient-info span{color:#8b8f9b;margin-top:4px;font-size:12px;display:block}.patient-detail small{color:#999;font-size:11px;display:block}.patient-detail span{margin-top:3px;font-size:13px;display:block}.empty{text-align:center;color:#888;padding:35px}.loading{color:#6d5dfc;justify-content:center;align-items:center;min-height:100vh;display:flex}.patient-profile-header{background:linear-gradient(135deg,#fff 0%,#faf9ff 100%);border:1px solid #eceaf8;border-radius:22px;grid-template-columns:70px minmax(0,1fr) 170px;align-items:center;gap:24px;margin-bottom:20px;padding:24px;display:grid;box-shadow:0 7px 28px #1419460f}.patient-profile-avatar{color:#6d5dfc;background:#eeeafe;border-radius:18px;justify-content:center;align-items:center;width:64px;height:64px;font-size:27px;font-weight:700;display:flex;box-shadow:0 5px 14px #6d5dfc1f}.patient-profile-main{border-right:1px solid #e6e7ed;min-width:0;padding-right:24px}.patient-profile-main h1{overflow-wrap:anywhere;word-break:break-word;margin:0 0 8px;line-height:1.5}.patient-profile-main p{overflow-wrap:anywhere;word-break:break-word;margin:0;line-height:1.8}.patient-profile-main p strong{margin-right:7px;line-height:1.8;display:inline-block}.patient-profile-status{border-right:1px solid #e6e7ed;min-width:0;padding-right:22px;line-height:1.8}.patient-profile-status span{color:#8a8f9d;margin-bottom:9px;font-size:12px;line-height:1.7;display:block}.patient-profile-status strong{color:#263238;overflow-wrap:anywhere;word-break:break-word;font-size:15px;line-height:1.8;display:block}.patient-info-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:100%;margin-top:20px;display:grid}.info-box{background:#fafbfe;border:1px solid #eceef3;border-radius:14px;min-width:0;padding:15px 16px;overflow:hidden}.info-box small{color:#8a8f9d;margin-bottom:8px;font-size:12px;line-height:1.5;display:block}.info-box strong{color:#263238;overflow-wrap:anywhere;word-break:break-word;min-width:0;font-size:14px;font-weight:600;line-height:1.8;display:block}.visit-section{background:#fff;border:1px solid #eceef3;border-radius:20px;margin-bottom:20px;padding:22px;box-shadow:0 5px 25px #1419460d}.visit-section-title{border-bottom:1px solid #eceef3;justify-content:space-between;align-items:center;margin-bottom:18px;padding-bottom:14px;display:flex}.visit-section-title h2{margin:0;font-size:18px}.visit-section-title small{color:#8a8f9d;font-size:12px}.visit-card,.medical-card{background:#fff;border:1px solid #eceef3;border-radius:16px;margin-bottom:14px;padding:18px;transition:all .2s}.visit-card:last-child,.medical-card:last-child{margin-bottom:0}.visit-card:hover,.medical-card:hover{border-color:#d9d4ff;box-shadow:0 6px 20px #6d5dfc12}.visit-card-header,.medical-card-header{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px;display:flex}.visit-card-title{align-items:center;gap:13px;display:flex}.visit-card-title strong{font-size:15px;line-height:1.7}.visit-card-title small{color:#858a97;margin-right:5px;font-size:12px;line-height:1.7}.visit-actions,.prescription-actions{gap:7px;display:flex}.visit-actions button,.prescription-actions button,.edit-button,.delete-button{cursor:pointer;border:none;border-radius:9px;padding:7px 11px;font-size:12px}.edit-button{color:#5b4bea;background:#f0eeff}.delete-button{color:#d64545;background:#fff1f1}.visit-card-grid,.medical-card-grid{grid-template-columns:repeat(2,1fr);gap:16px;display:grid}.visit-detail{background:#fafbfe;border-radius:12px;min-width:0;padding:15px 16px}.visit-detail small{color:#8b8f9b;margin-bottom:7px;font-size:11px;line-height:1.5;display:block}.visit-detail span{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font-size:13px;line-height:1.8;display:block}.complaints-title{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.complaints-title label{margin:0;font-size:15px;font-weight:700}.complaints-title small{color:#8a8f9d;margin-top:4px;font-size:12px;display:block}.complaints-count{color:#6d5dfc;background:#eeeafe;border-radius:20px;padding:7px 12px;font-size:12px;font-weight:600}.complaints-container{flex-direction:column;gap:18px;display:flex}.complaints-category{background:#fafbfe;border:1px solid #eceef3;border-radius:16px;padding:15px}.complaints-category-title{border-bottom:1px solid #e7e8ee;align-items:center;gap:10px;margin-bottom:12px;padding-bottom:10px;display:flex}.complaints-category-title strong{color:#343746;font-size:14px}.complaints-category-title span{color:#969aa7;direction:ltr;font-size:12px}.complaints-grid{grid-template-columns:repeat(2,1fr);gap:9px;display:grid}.complaint-option{color:#343746;text-align:right;cursor:pointer;background:#fff;border:1px solid #e2e4eb;border-radius:12px;align-items:center;gap:10px;width:100%;min-height:68px;padding:11px 12px;transition:background .2s,border-color .2s,box-shadow .2s,transform .15s;display:flex}.complaint-option:hover{background:#f9f8ff;border-color:#bcb5ff;transform:translateY(-1px)}.complaint-check{color:#fff;border:2px solid #d5d7df;border-radius:7px;flex:0 0 24px;justify-content:center;align-items:center;width:24px;height:24px;font-size:14px;font-weight:700;transition:background .2s,border-color .2s;display:flex}.complaint-text{flex-direction:column;gap:4px;min-width:0;display:flex}.complaint-text strong{font-size:13px;line-height:1.4}.complaint-text small{color:#8b8f9b;text-align:right;direction:ltr;font-size:11px}.complaint-option.selected{background:#f0eeff;border-color:#6d5dfc;box-shadow:0 4px 14px #6d5dfc24}.complaint-option.selected .complaint-check{background:#6d5dfc;border-color:#6d5dfc}.complaint-option.selected .complaint-text strong{color:#5143d6}.complaint-option.selected .complaint-text small{color:#6f67b8}.other-complaint{border-top:1px solid #e7e8ee;margin-top:16px;padding-top:16px}.other-complaint label{margin-bottom:8px;font-size:14px;font-weight:600;display:block}.other-complaint textarea{resize:vertical;background:#fff;border:1px solid #e0e2e8;border-radius:12px;outline:none;width:100%;padding:12px;font-size:14px}.other-complaint textarea:focus{border-color:#6d5dfc;box-shadow:0 0 0 3px #6d5dfc1a}.visit-complaints-display{grid-column:1/-1}.visit-complaints-display>small{color:#777c89;margin-bottom:9px;font-size:12px;display:block}.selected-complaints-list{flex-wrap:wrap;gap:10px;display:flex}.selected-complaint{background:#f0eeff;border:1px solid #ddd8ff;border-radius:9px;align-items:center;gap:9px;padding:9px 12px;display:flex}.selected-complaint strong{color:#5143d6;font-size:12px;line-height:1.7}.selected-complaint span{color:#7771a8;direction:ltr;font-size:10px;line-height:1.7}.other-complaint-display{background:#fafafa;border-right:3px solid #6d5dfc;border-radius:8px;margin-top:9px;padding:9px 11px;font-size:12px}.other-complaint-display strong{color:#5143d6}.prescription-form-panel,.visit-form-panel,.appointment-form-panel{background:#fbfaff;border:1px solid #e5e1ff;border-radius:20px;margin-bottom:20px;padding:22px}.prescription-form,.visit-form,.appointment-form{flex-direction:column;gap:18px;display:flex}.form-grid{grid-template-columns:repeat(2,1fr);gap:14px;display:grid}.form-field.full{grid-column:1/-1}.form-field label{margin-bottom:7px;font-size:13px;font-weight:600;display:block}.form-field input,.form-field textarea,.form-field select,.prescription-form input,.prescription-form textarea,.prescription-form select{background:#fff;border:1px solid #dedfe7;border-radius:11px;outline:none;width:100%;padding:11px 12px;font-size:13px}.form-field input:focus,.form-field textarea:focus,.form-field select:focus{border-color:#6d5dfc;box-shadow:0 0 0 3px #6d5dfc14}.form-field textarea{resize:vertical;min-height:85px}.field-warning{color:#c62828;margin-top:6px;font-size:11px;display:block}.form-error{margin-top:4px}.form-actions{justify-content:flex-end;gap:9px;padding-top:5px;display:flex}.form-actions .primary{min-width:110px}.prescription-doctor-row,.prescription-visit-row{grid-template-columns:repeat(2,1fr);gap:14px;display:grid}.prescription-items-header{justify-content:space-between;align-items:center;margin-top:4px;display:flex}.prescription-items-header h3{margin:0;font-size:16px}.add-medication-button{color:#fff;cursor:pointer;background:#6d5dfc;border:none;border-radius:10px;padding:9px 14px;font-size:12px;font-weight:600}.add-medication-button:hover{background:#5b4bea}.prescription-items{flex-direction:column;gap:12px;display:flex}.prescription-item-form{background:#fff;border:1px solid #e6e3f5;border-radius:15px;padding:15px}.prescription-item-header{justify-content:space-between;align-items:center;margin-bottom:13px;display:flex}.prescription-item-header strong{color:#5143d6;font-size:13px}.prescription-item-header button{color:#d64545;cursor:pointer;background:#fff1f1;border:none;border-radius:8px;padding:6px 9px;font-size:11px}.prescriptions-list{flex-direction:column;gap:16px;display:flex}.prescription-card{background:#fff;border:1px solid #e8e7ef;border-radius:18px;padding:22px;transition:all .2s;box-shadow:0 4px 18px #1419460a}.prescription-card:hover{border-color:#d8d2ff;box-shadow:0 7px 24px #6d5dfc14}.prescription-card-header{border-bottom:1px solid #eceef3;justify-content:space-between;align-items:flex-start;gap:22px;margin-bottom:18px;padding-bottom:18px;display:flex}.prescription-title{align-items:center;gap:13px;display:flex}.prescription-icon{color:#6d5dfc;background:#f0eeff;border-radius:11px;justify-content:center;align-items:center;width:38px;height:38px;font-size:18px;display:flex}.prescription-title strong{font-size:15px;line-height:1.7;display:block}.prescription-title small{color:#8a8f9d;margin-top:6px;font-size:11px;line-height:1.7;display:block}.prescription-doctor-row,.prescription-visit-row{align-items:center;margin-bottom:10px;font-size:13px}.prescription-card-grid{grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:20px;display:grid}.prescription-detail{background:#fafbfe;border-radius:11px;min-width:0;padding:14px 15px}.prescription-detail small{color:#8b8f9b;margin-bottom:8px;font-size:10px;line-height:1.5;display:block}.prescription-detail span{overflow-wrap:anywhere;word-break:break-word;font-size:13px;font-weight:600;line-height:1.8;display:block}.prescription-medications{margin-top:18px}.prescription-medications-title{align-items:center;gap:10px;margin-bottom:14px;display:flex}.prescription-medications-title strong{font-size:14px;line-height:1.7}.prescription-items-display{flex-direction:column;gap:9px;display:flex}.prescription-medication-card{background:#faf9ff;border:1px solid #e8e5fb;border-radius:12px;grid-template-columns:34px 1fr;gap:14px;width:100%;min-width:0;padding:15px;display:grid;overflow:hidden}.medication-number{color:#5b4bea;background:#eeeafe;border-radius:9px;justify-content:center;align-items:center;width:30px;height:30px;font-size:12px;font-weight:700;display:flex}.medication-main{width:100%;min-width:0;overflow:hidden}.medication-main>strong{overflow-wrap:anywhere;word-break:break-word;width:100%;margin-bottom:12px;font-size:14px;font-weight:700;line-height:1.7;display:block}.medication-details{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;width:100%;min-width:0;display:grid}.medication-details>div{background:#fff;border:1px solid #e4e6ec;border-radius:10px;width:100%;min-width:0;padding:11px 12px;overflow:hidden}.medication-details>div small{color:#8a8f9c;margin-bottom:5px;font-size:11px;font-weight:600;line-height:1.5;display:block}.medication-details>div span{color:#3f4653;white-space:normal;overflow-wrap:anywhere;word-break:break-word;width:100%;min-width:0;font-size:13px;font-weight:600;line-height:1.8;display:block}.medication-notes{color:#666b78;overflow-wrap:anywhere;word-break:break-word;background:#fafbfc;border:1px solid #eeeef2;border-radius:9px;margin-top:12px;padding:10px 12px;font-size:12px;line-height:1.9}.medication-notes small{color:#8a8f9c;margin-bottom:4px;font-size:11px;display:block}.medication-notes p{white-space:normal;overflow-wrap:anywhere;word-break:break-word;margin:0}.prescription-general-notes{overflow-wrap:anywhere;word-break:break-word;background:#fafafa;border-right:3px solid #6d5dfc;border-radius:8px;margin-top:18px;padding:13px 15px;font-size:12px;line-height:2}.appointments-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.appointments-tabs{gap:8px;display:flex}.appointment-tab{cursor:pointer;color:#656a78;background:#fff;border:1px solid #e0e2e8;border-radius:12px;align-items:center;gap:8px;padding:10px 16px;display:flex}.appointment-tab strong{color:#6d5dfc;background:#f3f2ff;border-radius:20px;padding:2px 9px;font-size:12px}.appointment-tab.active{color:#5143d6;background:#f0eeff;border-color:#6d5dfc}.search-box{background:#fff;border:1px solid #e0e2e8;border-radius:12px;align-items:center;gap:8px;padding:10px 14px;display:flex}.search-box input{border:none;outline:none;flex:1;font-size:13px}.appointments-page-list{flex-direction:column;gap:12px;display:flex}.appointment-page-card{background:#fff;border:1px solid #eceef3;border-radius:14px;grid-template-columns:90px 1fr 140px 120px auto;align-items:center;gap:16px;padding:14px 16px;display:grid}.appointment-page-time{flex-direction:column;display:flex}.appointment-page-time span{color:#8a8f9d;margin-top:3px;font-size:11px}.appointment-page-patient{align-items:center;gap:10px;min-width:0;display:flex}.appointment-page-patient span{color:#8b8f9b;margin-top:3px;font-size:12px;display:block}.appointment-page-doctor small,.appointment-page-status small,.appointment-page-notes small{color:#8b8f9b;margin-bottom:4px;font-size:11px;display:block}.appointment-status{color:#5143d6;background:#f0eeff;border-radius:20px;padding:5px 11px;font-size:11px;font-weight:600;display:inline-block}.status-confirmed{color:#2e7d32;background:#e8f5e9}.status-completed{color:#1565c0;background:#e3f2fd}.status-cancelled{color:#c62828;background:#fff1f1}.status-pending{color:#8a6416;background:#fff8e1}.appointment-page-actions{gap:6px;display:flex}.view-button{color:#5143d6;cursor:pointer;background:#f0eeff;border:none;border-radius:9px;padding:7px 11px;font-size:12px}.section-count{color:#6d5dfc;background:#f0eeff;border-radius:20px;padding:6px 12px;font-size:12px;font-weight:600}.back-button{color:#6d5dfc;cursor:pointer;background:0 0;border:none;padding:0 0 14px;font-size:13px}.patient-file-shortcuts{grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px;display:grid}.shortcut-card{text-align:center;background:#fff;border:1px solid #eceef3;border-radius:16px;flex-direction:column;align-items:center;gap:6px;padding:20px;font-size:26px;display:flex}.shortcut-card span{color:#263238;font-size:13px;font-weight:600}.shortcut-card small{color:#8a8f9d;font-size:11px}.shortcut-card.active-shortcut{background:#faf9ff;border-color:#d8d2ff}@media (width<=700px){.header{height:auto;min-height:70px;padding:13px 16px}.user-area>span{display:none}.navigation{padding:10px 15px}.content{padding:18px 15px}.welcome{display:block}.welcome h1{font-size:23px}.date{margin-top:8px}.stats{grid-template-columns:1fr;gap:10px}.panel{padding:16px}.panel-title{align-items:flex-start}.patient-row{grid-template-columns:43px 1fr;padding:13px 0}.patient-detail{display:none}.login-card{padding:32px 22px}.form-grid{grid-template-columns:1fr}.patient-profile-بخقة{grid-template-columns:55px minmax(0,1fr);gap:16px;padding:18px}.patient-profile-avatar{border-radius:15px;width:52px;height:52px;font-size:22px}.patient-profile-main{padding-right:14px}.patient-profile-main h1{margin-bottom:10px;font-size:20px}.patient-profile-main p{line-height:2}.patient-profile-status{border-top:1px solid #e6e7ed;border-right:none;grid-column:1/-1;margin-top:4px;padding:16px 0 0}.patient-info-grid{grid-template-columns:1fr}.visit-section{border-radius:17px;padding:15px}.visit-card,.medical-card{padding:14px}.visit-card-header,.medical-card-header{display:block}.visit-actions{margin-top:10px}.visit-card-grid,.medical-card-grid{grid-template-columns:1fr}.visit-detail{padding:14px}.complaints-category{padding:11px}.complaints-grid{grid-template-columns:1fr}.complaint-option{min-height:64px;padding:10px}.complaint-text strong{font-size:13px}.complaint-text small{font-size:10px}.complaints-title{align-items:flex-start}.complaints-count{white-space:nowrap}.prescription-form-panel,.visit-form-panel,.appointment-form-panel{border-radius:17px;padding:15px}.prescription-doctor-row,.prescription-visit-row{grid-template-columns:1fr}.prescription-items-header{align-items:flex-start;gap:10px}.prescription-items-header h3{font-size:14px}.add-medication-button{white-space:nowrap}.prescription-card{padding:16px}.prescription-card-header{margin-bottom:16px;padding-bottom:16px;display:block}.prescription-actions{justify-content:flex-start;margin-top:10px}.prescription-card-grid{grid-template-columns:1fr;gap:9px}.prescription-detail{padding:11px 12px}.prescription-medication-card{grid-template-columns:30px minmax(0,1fr);gap:10px;padding:12px}.medication-details{grid-template-columns:1fr;gap:8px}.medication-details>div{padding:10px 11px}.medication-details>div span{font-size:12px}.appointment-page-card{grid-template-columns:1fr;gap:10px}.appointment-page-actions{justify-content:flex-start}.patient-file-shortcuts{grid-template-columns:1fr}}@media print{@page{size:A4 portrait;margin:14mm 12mm}html,body{width:100%;min-height:100%;direction:rtl!important;background:#fff!important}body{font-size:12pt;line-height:1.65;color:#111827!important;margin:0!important}.header,.navigation,.appointments-toolbar,.patient-file-shortcuts,.page-header,.back-button,.panel-title button,.visit-form,.prescription-form,.visit-actions,.prescription-actions,.add-medication-button,.logout,button,input[type=button],input[type=submit],input[type=reset]{display:none!important}.app,.content,.patient-file-page{direction:rtl!important;width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important}.panel,.medical-card,.prescription-card,.patient-profile-header{break-inside:avoid;page-break-inside:avoid;box-shadow:none!important;color:#111827!important;background:#fff!important;border:1px solid #cbd5e1!important}.panel{margin:0 0 12px!important;padding:14px!important}.medical-list,.prescriptions-list{display:block!important}.medical-card,.prescription-card{margin:0 0 10px!important;padding:12px!important}.prescription-medication-card,.medication-details>div,.info-box,.visit-detail,.selected-complaint,.other-complaint-display{color:#111827!important;background:#fff!important;border-color:#cbd5e1!important}.medical-card-grid,.patient-info-grid,.medication-details{gap:10px!important}h1,h2,h3{page-break-after:avoid;color:#111827!important}.medical-card-header,.panel-title{page-break-after:avoid}.panel-title,.medical-card-header,.info-box,.visit-detail,.prescription-medication-card{break-inside:avoid;page-break-inside:avoid}*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}}body.dark-theme{color:#e2e8f0;background:#0f172a}body.dark-theme .login-page{background:radial-gradient(circle at 100% 0,#1e1b4b,#0000 35%),#0f172a}body.dark-theme .header,body.dark-theme .navigation,body.dark-theme .panel,body.dark-theme .visit-section,body.dark-theme .prescription-card,body.dark-theme .stat-card,body.dark-theme .login-card,body.dark-theme .shortcut-card,body.dark-theme .appointment-page-card,body.dark-theme .search-box{color:#f8fafc;background:#1e293b;border-color:#334155}body.dark-theme h1,body.dark-theme h2,body.dark-theme h3,body.dark-theme strong{color:#f1f5f9}body.dark-theme p,body.dark-theme small,body.dark-theme span{color:#94a3b8}body.dark-theme input,body.dark-theme textarea,body.dark-theme select{color:#f8fafc;background:#0f172a;border-color:#334155}body.dark-theme input:focus,body.dark-theme textarea:focus{border-color:#818cf8}body.dark-theme .info-box,body.dark-theme .visit-detail,body.dark-theme .prescription-detail,body.dark-theme .complaints-category,body.dark-theme .complaint-option{color:#e2e8f0;background:#0f172a;border-color:#334155}body.dark-theme .patient-profile-header{background:linear-gradient(135deg,#1e293b 0%,#0f172a 100%);border-color:#334155}body.dark-theme .prescription-medication-card{background:#0f172a;border-color:#334155}body.dark-theme .medication-details>div{background:#1e293b;border-color:#334155}body.dark-theme .medication-details>div span{color:#cbd5e1}body.dark-theme .logout,body.dark-theme .secondary,body.dark-theme .appointment-tab{color:#e2e8f0;background:#334155;border-color:#475569}body.dark-theme .navigation button{color:#94a3b8}body.dark-theme .navigation button:hover{color:#818cf8;background:#334155}.visit-form .form-field input,.visit-form .form-field textarea,.visit-form .form-field select{box-sizing:border-box!important;color:#111827!important;-webkit-text-fill-color:#111827!important;opacity:1!important;visibility:visible!important;caret-color:#111827!important;width:100%!important;text-shadow:none!important;background:#fff!important;font-family:Segoe UI,Tahoma,Arial,sans-serif!important;font-weight:500!important}.visit-form .form-field select{appearance:none!important;color:#111827!important;-webkit-text-fill-color:#111827!important;background-color:#fff!important;min-height:46px!important;padding:12px 14px!important}.visit-form .form-field select option{color:#111827!important;-webkit-text-fill-color:#111827!important;background-color:#fff!important}.visit-form .form-field input[type=date]{appearance:none!important;color:#111827!important;-webkit-text-fill-color:#111827!important;opacity:1!important;--lightningcss-light:initial!important;--lightningcss-dark: !important;color-scheme:light!important;caret-color:#111827!important;background:#fff!important;min-height:46px!important;padding:11px 12px!important}.visit-form .form-field textarea{color:#111827!important;-webkit-text-fill-color:#111827!important;opacity:1!important;visibility:visible!important;caret-color:#111827!important;min-height:100px!important;text-shadow:none!important;background:#fff!important;padding:12px 14px!important;line-height:1.7!important}.visit-form .form-field input:not([type=date]){color:#111827!important;-webkit-text-fill-color:#111827!important;opacity:1!important;visibility:visible!important;caret-color:#111827!important;background:#fff!important;min-height:46px!important}.visit-form .form-field input::placeholder,.visit-form .form-field textarea::placeholder{color:#9ca3af!important;-webkit-text-fill-color:#9ca3af!important;opacity:1!important}@media (width<=700px){.visit-form .form-field input,.visit-form .form-field textarea,.visit-form .form-field select{color:#111827!important;-webkit-text-fill-color:#111827!important;opacity:1!important;visibility:visible!important;text-shadow:none!important;caret-color:#111827!important;background:#fff!important;font-size:16px!important;font-weight:500!important}.visit-form .form-field textarea{min-height:105px!important}.visit-form .form-field select{min-height:48px!important}.visit-form .form-field input[type=date]{--lightningcss-light:initial!important;--lightningcss-dark: !important;color-scheme:light!important;min-height:48px!important}}.items-grid{grid-template-columns:1fr 1fr;gap:6px 12px;display:grid}.items-grid .item{margin-bottom:0;position:relative}.items-grid .item:nth-child(odd):after{content:"";inset-inline-end:-7px;background:#dce5e8;width:1px;position:absolute;top:4px;bottom:4px}.visit-actions{z-index:2;flex-wrap:wrap;align-items:center;gap:8px;position:relative;display:flex!important}.print-button{color:#fff;cursor:pointer;white-space:nowrap;background:#6d5dfc;border:none;border-radius:10px;justify-content:center;align-items:center;gap:6px;min-height:36px;padding:8px 14px;font-family:inherit;font-size:13px;font-weight:600;transition:all .2s;visibility:visible!important;opacity:1!important;display:inline-flex!important}.print-button:hover{opacity:.9;transform:translateY(-1px)}.print-button:active{transform:translateY(0)}.visit-actions .print-button:focus-visible,.visit-actions .edit-button:focus-visible,.visit-actions .delete-button:focus-visible{outline-offset:2px;outline:3px solid #6d5dfc59}@media (width<=600px){.visit-actions{justify-content:flex-start;width:100%}.print-button{padding:8px 12px;font-size:12px}}.patient-file-number{color:#5143d6;direction:ltr;background:#eeeafe;border-radius:20px;margin-top:6px;padding:3px 10px;font-size:11px;font-weight:700;display:inline-block}.patient-file-number-line{color:#8a8f9d;text-align:right;direction:ltr;margin:0;font-size:13px}.status-attended{color:#00695c;background:#e0f2f1}.status-noshow{color:#ad1457;background:#fce4ec}.calendar-panel{overflow:hidden}.calendar-nav{flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;margin-bottom:18px;display:flex}.calendar-nav strong{text-align:center;min-width:160px;font-size:15px}.calendar-grid-header{text-align:center;color:#8a8f9d;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:6px;font-size:12px;font-weight:700;display:grid}.calendar-grid{grid-template-columns:repeat(7,1fr);gap:6px;display:grid}.calendar-cell{cursor:pointer;background:#fff;border:1px solid #eceef3;border-radius:12px;flex-direction:column;gap:4px;min-height:92px;padding:6px;transition:all .15s;display:flex}.calendar-cell:hover{background:#fbfaff;border-color:#d9d4ff}.calendar-cell-date{color:#343746;font-size:12px;font-weight:700}.calendar-cell-muted{background:#fafbfc}.calendar-cell-muted .calendar-cell-date{color:#c3c6cf}.calendar-cell-today{border-color:#6d5dfc}.calendar-cell-today .calendar-cell-date{color:#6d5dfc}.calendar-cell-selected{background:#f0eeff;border-color:#6d5dfc}.calendar-cell-chips{flex-direction:column;gap:3px;display:flex}.calendar-chip{color:#5143d6;text-overflow:ellipsis;white-space:nowrap;background:#f0eeff;border-radius:6px;padding:2px 6px;font-size:10px;overflow:hidden}.calendar-chip-more{color:#8a8f9d;padding:2px 6px;font-size:10px}.calendar-day-details{border-top:1px solid #eceef3;margin-top:22px;padding-top:18px}.calendar-day-details h3{margin:0 0 14px;font-size:15px}.calendar-week-grid{grid-template-columns:repeat(7,1fr);gap:8px;display:grid}.calendar-week-day{background:#fff;border:1px solid #eceef3;border-radius:12px;min-height:220px;padding:10px}.calendar-week-day-today{background:#fbfaff;border-color:#6d5dfc}.calendar-week-day-header{color:#8a8f9d;border-bottom:1px solid #eceef3;flex-direction:column;align-items:center;gap:3px;margin-bottom:8px;padding-bottom:8px;font-size:11px;display:flex}.calendar-week-day-header strong{color:#263238;font-size:16px}.calendar-week-day-list{flex-direction:column;gap:6px;display:flex}.calendar-chip-block{cursor:pointer;flex-direction:column;gap:2px;padding:6px 8px;display:flex}.calendar-chip-block strong{font-size:11px}.calendar-chip-block span{font-size:10px}.calendar-week-empty{color:#c3c6cf;text-align:center;margin:0;padding:10px 0;font-size:11px}@media (width<=700px){.calendar-grid-header{font-size:10px}.calendar-cell{min-height:64px;padding:4px}.calendar-cell-chips{display:none}.calendar-week-grid{grid-template-columns:1fr}}.stat-card small{margin-bottom:4px;display:block}.stat-trend{color:#8a8f9d;margin-top:4px;font-size:11px}.simple-bar-chart{flex-direction:column;gap:10px;display:flex}.simple-bar-row{grid-template-columns:110px 1fr 34px;align-items:center;gap:10px;display:grid}.simple-bar-label{color:#4a5568;text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.simple-bar-track{background:#f3f2ff;border-radius:8px;height:12px;overflow:hidden}.simple-bar-fill{border-radius:8px;height:100%;transition:width .3s}.simple-bar-value{color:#343746;text-align:left;direction:ltr;font-size:12px;font-weight:700}.simple-trend-chart{width:100%;height:130px;display:block}@media (width<=700px){.dashboard-charts-grid{grid-template-columns:1fr!important}.simple-bar-row{grid-template-columns:80px 1fr 28px}.simple-bar-label{font-size:11px}}.notifications-wrapper,.notifications-bell{position:relative}.notifications-badge{color:#fff;text-align:center;background:#d64545;border-radius:20px;min-width:16px;padding:1px 5px;font-size:10px;font-weight:700;line-height:1.5;position:absolute;top:-4px;left:-4px}.notifications-dropdown{z-index:50;background:#fff;border:1px solid #eceef3;border-radius:14px;width:320px;max-height:380px;padding:10px;position:absolute;top:calc(100% + 10px);left:0;overflow-y:auto;box-shadow:0 12px 35px #14194626}.notifications-dropdown-title{border-bottom:1px solid #eceef3;margin-bottom:6px;padding:6px 8px 10px;font-size:13px;font-weight:700}.notification-item{text-align:right;cursor:pointer;color:#343746;background:0 0;border:none;border-radius:10px;align-items:flex-start;gap:8px;width:100%;padding:9px 8px;font-size:12px;line-height:1.6;display:flex}.notification-item:hover{background:#f9f8ff}.notification-icon{flex:none;font-size:15px}body.dark-theme .notifications-dropdown{background:#1e293b;border-color:#334155}body.dark-theme .notification-item{color:#e2e8f0}body.dark-theme .notification-item:hover{background:#334155}@media (width<=700px){.notifications-dropdown{width:260px;left:-70px}}.pagination-controls{border-top:1px solid #eceef3;justify-content:center;align-items:center;gap:16px;margin-top:20px;padding-top:16px;display:flex}.pagination-info{color:#656a78;text-align:center;min-width:100px;font-size:13px}body.dark-theme .pagination-controls{border-color:#334155}.login-logo{justify-content:center;align-items:center;width:120px;height:120px;margin:0 auto 18px;display:flex}.login-logo img{object-fit:contain;width:100%;height:100%;display:block}.user-area{flex-wrap:wrap}.header{flex-wrap:wrap;gap:8px}.header-title{text-align:left}.header-title h2{color:#1f2937;margin:0;font-size:21px;font-weight:700}.header-title span{color:#475569;margin-top:3px;font-size:12px;font-weight:500;display:block}body.dark-theme .header-title h2{color:#f8fafc}body.dark-theme .header-title span{color:#cbd5e1}.header-icons{align-items:center;gap:8px;display:flex}.icon-button{color:#555;cursor:pointer;background:#f3f3f7;border:none;border-radius:10px;flex:none;justify-content:center;align-items:center;width:38px;height:38px;font-size:16px;display:flex}.icon-button:hover{background:#ececf3}body.dark-theme .icon-button{color:#e2e8f0;background:#334155}.user-menu-wrapper{position:relative}.user-menu-trigger{color:#fff;cursor:pointer;background:#6d5dfc;border:none;border-radius:10px;flex:none;justify-content:center;align-items:center;width:38px;height:38px;font-size:15px;font-weight:700;display:flex}.user-menu-backdrop{z-index:40;background:0 0;position:fixed;inset:0}.user-menu-dropdown{z-index:50;background:#fff;border:1px solid #eceef3;border-radius:14px;width:200px;padding:12px;position:absolute;top:calc(100% + 10px);left:0;box-shadow:0 12px 35px #14194626}.user-menu-info{border-bottom:1px solid #eceef3;margin-bottom:8px;padding:4px 6px 12px}.user-menu-info strong{color:#263238;overflow-wrap:anywhere;font-size:13px;display:block}.user-menu-info span{color:#8a8f9d;margin-top:4px;font-size:11px;display:block}.user-menu-logout{color:#d64545;cursor:pointer;text-align:right;background:#fff1f1;border:none;border-radius:9px;width:100%;padding:9px 10px;font-size:13px;font-weight:600}.user-menu-logout:hover{background:#ffe3e3}body.dark-theme .user-menu-dropdown{background:#1e293b;border-color:#334155}body.dark-theme .user-menu-info{border-color:#334155}body.dark-theme .user-menu-info strong{color:#f1f5f9}.navigation{scrollbar-width:none;-ms-overflow-style:none}.navigation::-webkit-scrollbar{display:none}@media (width<=700px){.header{flex-direction:row-reverse;justify-content:space-between;align-items:center;min-height:60px;padding:10px 16px}.header-title{text-align:right;min-width:0;overflow:hidden}.header-title h2{white-space:nowrap;text-overflow:ellipsis;font-size:15px;overflow:hidden}.header-title span{white-space:nowrap;text-overflow:ellipsis;font-size:10px;overflow:hidden}.icon-button,.user-menu-trigger{width:34px;height:34px;font-size:14px}.header-icons,.navigation{gap:6px}.navigation button{padding:8px 14px;font-size:13px}}.dashboard-charts-grid{align-items:stretch;width:100%;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;display:grid!important}.dashboard-charts-grid .panel,.content>.panel{box-sizing:border-box;width:100%;min-width:0;overflow:hidden}.dashboard-charts-grid .panel-title h2,.content>.panel .panel-title h2{font-weight:700;line-height:1.5;color:#1f2937!important}.dashboard-charts-grid .panel-title p,.content>.panel .panel-title p{color:#64748b!important}.simple-bar-label{font-weight:600;color:#334155!important}.simple-bar-value{font-weight:700;color:#1f2937!important}.simple-bar-track{background:#eeeefe}.simple-trend-chart{width:100%;min-width:0;max-width:100%}.content>.panel .patient-info strong{color:#1f2937!important}.content>.panel .patient-info span,.content>.panel .patient-detail small{color:#64748b!important}.content>.panel .patient-detail span{color:#1f2937!important}.dashboard-charts-grid *{max-width:100%}@media (width<=700px){.dashboard-charts-grid{grid-template-columns:1fr!important;gap:14px!important}.dashboard-charts-grid .panel{width:100%!important;min-width:0!important}.dashboard-charts-grid .panel-title h2,.content>.panel .panel-title h2{font-size:16px}.dashboard-charts-grid .panel-title p,.content>.panel .panel-title p{font-size:12px}.simple-bar-row{grid-template-columns:85px minmax(0,1fr) 28px!important;gap:8px!important}.simple-bar-label,.simple-bar-value{font-size:11px!important}}body.dark-theme .dashboard-charts-grid .panel-title h2,body.dark-theme .content>.panel .panel-title h2{color:#f1f5f9!important}body.dark-theme .dashboard-charts-grid .panel-title p,body.dark-theme .content>.panel .panel-title p{color:#94a3b8!important}body.dark-theme .simple-bar-label{color:#cbd5e1!important}body.dark-theme .simple-bar-value{color:#f1f5f9!important}body.dark-theme .simple-bar-track{background:#27234f}body.dark-theme .content>.panel .patient-info strong{color:#f1f5f9!important}body.dark-theme .content>.panel .patient-info span,body.dark-theme .content>.panel .patient-detail small{color:#94a3b8!important}body.dark-theme .content>.panel .patient-detail span{color:#f1f5f9!important}.dashboard-charts-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:18px!important;width:100%!important;height:auto!important;display:grid!important}.dashboard-charts-grid .panel{height:auto!important;min-height:0!important;max-height:none!important;position:relative!important;overflow:visible!important}.dashboard-charts-grid .simple-bar-chart{height:auto!important;min-height:0!important;max-height:none!important;position:relative!important}.dashboard-charts-grid .simple-bar-row{height:30px!important;min-height:30px!important;position:relative!important}@media (width<=700px){.dashboard-charts-grid{grid-template-columns:1fr!important;gap:16px!important;height:auto!important;display:grid!important}.dashboard-charts-grid .panel{width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding-bottom:18px!important;display:block!important;position:relative!important;overflow:visible!important}.dashboard-charts-grid .panel-title{height:auto!important;min-height:0!important;margin-bottom:16px!important;position:relative!important}.dashboard-charts-grid .simple-bar-chart{flex-direction:column!important;gap:10px!important;width:100%!important;height:auto!important;min-height:0!important;display:flex!important}.dashboard-charts-grid .simple-bar-row{grid-template-columns:85px minmax(0,1fr) 28px!important;width:100%!important;height:30px!important;min-height:30px!important;margin:0!important;display:grid!important}}.dashboard-charts-grid+.dashboard-charts-grid,.dashboard-charts-grid+.panel{margin-top:18px!important}@media (width<=700px){.dashboard-charts-grid+.dashboard-charts-grid,.dashboard-charts-grid+.panel{margin-top:16px!important}}.dashboard-charts-grid:first-of-type{margin-top:18px!important}.content>.panel:has(.simple-trend-chart){height:auto!important;min-height:190px!important;margin-bottom:24px!important;position:relative!important;overflow:visible!important}.content>.panel:has(.simple-trend-chart) .simple-trend-chart{width:100%!important;height:130px!important;min-height:130px!important;margin-top:12px!important;display:block!important}@media (width<=700px){.content>.panel:has(.simple-trend-chart){height:auto!important;min-height:205px!important;margin-bottom:20px!important;padding-bottom:20px!important}.content>.panel:has(.simple-trend-chart) .simple-trend-chart{height:130px!important;min-height:130px!important;margin-top:14px!important}.dashboard-charts-grid:first-of-type{margin-top:0!important}}.patients{flex-direction:column!important;gap:14px!important;width:100%!important;display:flex!important}.patient-card{box-sizing:border-box!important;background:#fff!important;border:1px solid #e5e7eb!important;border-radius:18px!important;grid-template-columns:52px minmax(0,1fr) 90px 110px auto!important;align-items:center!important;gap:16px!important;width:100%!important;min-width:0!important;min-height:96px!important;padding:16px!important;display:grid!important;position:relative!important;box-shadow:0 4px 16px #1419460f!important}.patient-card:hover{border-color:#d8d2ff!important;box-shadow:0 7px 22px #6d5dfc1a!important}.patient-card .patient-avatar.large{color:#5143d6!important;background:#eeeafe!important;border-radius:15px!important;justify-content:center!important;align-items:center!important;width:52px!important;min-width:52px!important;height:52px!important;font-size:20px!important;font-weight:700!important;display:flex!important}.patient-card-info{min-width:0!important;overflow:hidden!important}.patient-card-info h3{color:#1f2937!important;overflow-wrap:anywhere!important;word-break:break-word!important;margin:0 0 7px!important;font-size:16px!important;font-weight:700!important;line-height:1.6!important}.patient-card-info p{color:#475569!important;overflow-wrap:anywhere!important;word-break:break-word!important;margin:0!important;font-size:13px!important;line-height:1.6!important}.patient-card-info .patient-file-number{color:#5143d6!important;direction:ltr!important;background:#f0eeff!important;border:1px solid #ded9ff!important;border-radius:20px!important;margin-top:7px!important;padding:4px 10px!important;font-size:11px!important;font-weight:700!important;display:inline-block!important}.patient-card-detail{box-sizing:border-box!important;background:#fafbfe!important;border:1px solid #eceef3!important;border-radius:12px!important;min-width:0!important;padding:11px 12px!important}.patient-card-detail small{color:#64748b!important;margin-bottom:5px!important;font-size:11px!important;line-height:1.5!important;display:block!important}.patient-card-detail strong{color:#1f2937!important;overflow-wrap:anywhere!important;word-break:break-word!important;font-size:13px!important;font-weight:700!important;line-height:1.6!important;display:block!important}.patient-card .view-button{color:#5143d6!important;cursor:pointer!important;background:#f0eeff!important;border:none!important;border-radius:10px!important;min-width:84px!important;padding:9px 13px!important;font-size:12px!important;font-weight:700!important}.patient-file-page{width:100%!important;min-width:0!important}.patient-file-page>.panel,.patient-file-page>.visit-section{box-sizing:border-box!important;background:#fff!important;border:1px solid #e5e7eb!important;border-radius:20px!important;width:100%!important;min-width:0!important;margin:0 0 20px!important;padding:22px!important;position:relative!important;overflow:visible!important;box-shadow:0 5px 22px #1419460e!important}.patient-file-page>.panel+.panel,.patient-file-page>.panel+.visit-section,.patient-file-page>.visit-section+.panel,.patient-file-page>.visit-section+.visit-section{margin-top:20px!important}.patient-profile-header{box-sizing:border-box!important;background:linear-gradient(135deg,#fff 0%,#faf9ff 100%)!important;border:1px solid #e4e1f5!important;border-radius:22px!important;width:100%!important;min-width:0!important;position:relative!important;overflow:visible!important;box-shadow:0 7px 28px #14194612!important}.patient-profile-main h1{color:#1f2937!important;font-weight:800!important}.patient-profile-main p{color:#475569!important}.patient-profile-main p strong{color:#1f2937!important}.patient-profile-status span{color:#64748b!important}.patient-profile-status strong{color:#1f2937!important}.patient-info-grid{box-sizing:border-box!important;width:100%!important;min-width:0!important}.info-box{box-sizing:border-box!important;background:#fafbfe!important;border:1px solid #e5e7eb!important;border-radius:14px!important;min-width:0!important;overflow:visible!important}.info-box small{color:#64748b!important}.info-box strong{color:#1f2937!important}.visit-section{box-sizing:border-box!important;background:#fff!important;border:1px solid #e5e7eb!important;border-radius:20px!important;width:100%!important;min-width:0!important;margin-bottom:20px!important;padding:22px!important;position:relative!important;overflow:visible!important;box-shadow:0 5px 22px #1419460e!important}.visit-section-title{box-sizing:border-box!important;border-bottom:1px solid #e5e7eb!important;width:100%!important;min-width:0!important;margin-bottom:18px!important;padding-bottom:14px!important;position:relative!important}.visit-section-title h2{color:#1f2937!important;font-weight:700!important}.visit-section-title small{color:#64748b!important}.visit-card,.medical-card,.prescription-card{box-sizing:border-box!important;background:#fff!important;border:1px solid #e5e7eb!important;border-radius:16px!important;width:100%!important;min-width:0!important;margin:0 0 14px!important;padding:18px!important;position:relative!important;overflow:visible!important}.visit-card:last-child,.medical-card:last-child,.prescription-card:last-child{margin-bottom:0!important}.visit-card-grid,.medical-card-grid{box-sizing:border-box!important;width:100%!important;min-width:0!important}.visit-detail{box-sizing:border-box!important;background:#fafbfe!important;border:1px solid #eceef3!important;border-radius:12px!important;min-width:0!important}.visit-detail small,.medical-card small{color:#64748b!important}.visit-detail p,.medical-card p{color:#1f2937!important;overflow-wrap:anywhere!important;word-break:break-word!important}.medical-list,.prescriptions-list,.appointments-list{flex-direction:column!important;gap:14px!important;width:100%!important;min-width:0!important;display:flex!important}.appointment-card{box-sizing:border-box!important;background:#fff!important;border:1px solid #e5e7eb!important;border-radius:15px!important;width:100%!important;min-width:0!important;padding:16px!important;overflow:visible!important}.appointment-card strong{color:#1f2937!important}.appointment-card small{color:#64748b!important}.patient-file-shortcuts{box-sizing:border-box!important;width:100%!important;min-width:0!important;margin-top:20px!important;margin-bottom:20px!important}.shortcut-card{background:#fff!important;border:1px solid #e5e7eb!important;border-radius:16px!important;min-width:0!important;box-shadow:0 4px 15px #1419460d!important}.shortcut-card span{color:#1f2937!important}.shortcut-card small{color:#64748b!important}@media (width<=700px){.patients{gap:12px!important}.patient-card{border-radius:17px!important;grid-template-columns:48px minmax(0,1fr)!important;gap:12px!important;min-height:0!important;padding:14px!important;display:grid!important}.patient-card .patient-avatar.large{width:48px!important;min-width:48px!important;height:48px!important}.patient-card-info{align-self:center!important}.patient-card-info h3{color:#111827!important;font-size:16px!important;line-height:1.6!important}.patient-card-info p{color:#475569!important;font-size:12px!important}.patient-card-detail{grid-column:span 1!important;width:100%!important}.patient-card-detail:first-of-type{grid-column:1/2!important}.patient-card-detail:nth-of-type(2){grid-column:2/3!important}.patient-card .view-button{grid-column:1/-1!important;width:100%!important;min-height:42px!important;margin-top:2px!important}.patient-file-page>.panel,.patient-file-page>.visit-section{border-radius:17px!important;margin-bottom:16px!important;padding:15px!important}.patient-file-page>.panel+.panel,.patient-file-page>.panel+.visit-section,.patient-file-page>.visit-section+.panel,.patient-file-page>.visit-section+.visit-section{margin-top:16px!important}.patient-profile-header{border-radius:18px!important;grid-template-columns:52px minmax(0,1fr)!important;gap:13px!important;margin-bottom:16px!important;padding:16px!important;display:grid!important}.patient-profile-avatar{border-radius:14px!important;width:50px!important;height:50px!important}.patient-profile-main{border-right:none!important;min-width:0!important;padding-right:0!important}.patient-profile-main h1{color:#111827!important;margin-bottom:7px!important;font-size:19px!important;line-height:1.6!important}.patient-profile-main p{color:#475569!important;font-size:12px!important;line-height:1.9!important}.patient-profile-status{border-top:1px solid #e5e7eb!important;border-right:none!important;grid-column:1/-1!important;margin-top:3px!important;padding:13px 0 0!important}.patient-profile-status strong{color:#1f2937!important}.patient-info-grid{grid-template-columns:1fr!important;gap:10px!important;margin-top:14px!important}.info-box{padding:12px 13px!important}.info-box small{color:#64748b!important}.info-box strong{color:#1f2937!important;font-size:13px!important}.visit-section{border-radius:17px!important;margin-bottom:16px!important;padding:14px!important}.visit-section-title{align-items:flex-start!important;gap:8px!important;margin-bottom:14px!important;padding-bottom:12px!important;display:flex!important}.visit-section-title h2{color:#1f2937!important;font-size:16px!important}.visit-section-title small{font-size:11px!important}.visit-card,.medical-card,.prescription-card{border-radius:14px!important;margin-bottom:12px!important;padding:13px!important}.visit-card-header,.medical-card-header{gap:10px!important;margin-bottom:14px!important}.visit-card-grid,.medical-card-grid{grid-template-columns:1fr!important;gap:10px!important}.visit-detail{padding:12px!important}.medical-list,.prescriptions-list,.appointments-list{gap:11px!important}.appointment-card{border-radius:14px!important;grid-template-columns:1fr!important;gap:10px!important;padding:13px!important;display:grid!important}.patient-file-shortcuts{grid-template-columns:1fr!important;gap:10px!important;margin-top:16px!important}.shortcut-card{padding:15px!important}}body:not(.dark-theme) .patient-card h3,body:not(.dark-theme) .patient-profile-main h1,body:not(.dark-theme) .visit-section-title h2,body:not(.dark-theme) .panel-title h2{color:#1f2937!important}body:not(.dark-theme) .patient-card p,body:not(.dark-theme) .patient-profile-main p,body:not(.dark-theme) .panel-title p{color:#475569!important}body:not(.dark-theme) .patient-card-detail strong,body:not(.dark-theme) .info-box strong,body:not(.dark-theme) .visit-detail p,body:not(.dark-theme) .medical-card p,body:not(.dark-theme) .appointment-card strong{color:#1f2937!important}body.dark-theme .patient-card,body.dark-theme .patient-file-page>.panel,body.dark-theme .patient-file-page>.visit-section,body.dark-theme .patient-profile-header,body.dark-theme .visit-section,body.dark-theme .visit-card,body.dark-theme .medical-card,body.dark-theme .prescription-card,body.dark-theme .appointment-card,body.dark-theme .shortcut-card{background:#1e293b!important;border-color:#334155!important}body.dark-theme .patient-card-info h3,body.dark-theme .patient-profile-main h1,body.dark-theme .visit-section-title h2,body.dark-theme .patient-card-detail strong,body.dark-theme .info-box strong,body.dark-theme .visit-detail p,body.dark-theme .medical-card p,body.dark-theme .appointment-card strong,body.dark-theme .shortcut-card span{color:#f1f5f9!important}body.dark-theme .patient-card-info p,body.dark-theme .patient-profile-main p,body.dark-theme .patient-card-detail small,body.dark-theme .info-box small,body.dark-theme .visit-section-title small,body.dark-theme .visit-detail small,body.dark-theme .medical-card small,body.dark-theme .appointment-card small,body.dark-theme .shortcut-card small{color:#cbd5e1!important}body.dark-theme .patient-info strong,body.dark-theme .patient-detail span{color:#f8fafc!important}body.dark-theme .patient-info span,body.dark-theme .patient-detail small{color:#cbd5e1!important}body.dark-theme .patient-card strong,body.dark-theme .patient-card span,body.dark-theme .patient-card small{color:#f8fafc!important}body.dark-theme .patient-card small{color:#cbd5e1!important}body.dark-theme .patient-profile-main h1{color:#f8fafc!important}body.dark-theme .patient-profile-main p{color:#e2e8f0!important}body.dark-theme .patient-profile-main p strong{color:#f8fafc!important}body.dark-theme .patient-profile-status span{color:#cbd5e1!important}body.dark-theme .patient-profile-status strong{color:#f8fafc!important}body.dark-theme .patient-info-grid .info-box{background:#0f172a!important;border-color:#334155!important}body.dark-theme .patient-info-grid .info-box small{color:#cbd5e1!important}body.dark-theme .patient-info-grid .info-box strong{color:#f8fafc!important}body.dark-theme .patient-file-page p,body.dark-theme .patient-file-page span,صثمؤخWE body.dark-theme .patient-file-page small{color:#cbd5e1!important}body.dark-theme .patient-file-page strong,body.dark-theme .patient-file-page h1,body.dark-theme .patient-file-page h2,body.dark-theme .patient-file-page h3,body.dark-theme .visit-section-title h3,body.dark-theme .visit-section-title strong{color:#f8fafc!important}.header-title h2{background-image:url(/images/logo.png);background-position:50%;background-repeat:no-repeat;background-size:contain;width:52px;height:52px;margin:0;padding:0;font-size:0;line-height:0}@media (width<=700px){.header-title h2{width:60px;height:60px}}.page-header h1,.page-header p{color:#111827!important}body.dark-theme .page-header h1{color:#f8fafc!important}body.dark-theme .page-header p{color:#cbd5e1!important}body.dark-theme .patient-card-detail{color:#f8fafc!important;background:#334155!important;border-color:#475569!important}body.dark-theme .patient-card-detail small{color:#cbd5e1!important}body.dark-theme .patient-card-detail strong{color:#fff!important}body.dark-theme .patient-file-number{color:#e2e8f0!important;background:#334155!important;border-color:#475569!important}.page-header{margin-bottom:18px!important}.search-box{box-sizing:border-box;border-radius:12px;min-height:48px;margin-bottom:14px;padding:10px 14px!important}.search-box+.patients-count{margin-bottom:14px}.patients{flex-direction:column;gap:12px;display:flex}.patients .patient-card:first-child{margin-top:2px}@media (width<=700px){.page-header{margin-bottom:16px!important}.search-box{min-height:50px;margin-bottom:12px;padding:11px 13px!important}.search-box input{font-size:14px}.search-box+.patients-count{margin-bottom:12px}.patients{gap:12px}}.search-box~.patients,.search-box~.patients-count,.patients .patient-card:first-child{border-top:none!important}.pregnancy-status-editor-actions{justify-content:center;align-items:center;width:100%;display:flex;gap:14px!important;margin-top:18px!important}.pregnancy-status-editor-actions button{min-width:100px}@media (width<=700px){.pregnancy-status-editor-actions{justify-content:center;gap:12px!important;margin-top:20px!important}.pregnancy-status-editor-actions button{min-width:95px}}.notifications-dropdown-title{justify-content:space-between;align-items:center;gap:12px;display:flex}.notifications-refresh{color:#5143d6;cursor:pointer;white-space:nowrap;background:#f5f3ff;border:1px solid #e0e2e8;border-radius:8px;padding:7px 10px;font-size:12px;font-weight:600}.notifications-refresh:disabled{opacity:.6;cursor:wait}.notifications-error{text-align:center;color:#b42318;padding:14px}.notifications-error p{margin:0 0 12px;line-height:1.7}body.dark-theme .notifications-refresh{color:#f8fafc;background:#312e81;border-color:#4f46e5}body.dark-theme .notifications-error{color:#fca5a5}
