@font-face{font-family:inter;src:url(/_next/static/media/6c596dfcddeca1e9-s.p.woff2) format("woff2");font-display:swap;font-weight:100 900}@font-face{font-family:inter Fallback;src:local("Arial");ascent-override:89.79%;descent-override:22.36%;line-gap-override:0.00%;size-adjust:107.89%}.__className_53f2d8{font-family:inter,inter Fallback}.__variable_53f2d8{--font-latin:"inter","inter Fallback"}@font-face{font-family:plexArabic;src:url(/_next/static/media/38ca8bfd780ae6be-s.p.woff2) format("woff2");font-display:swap;font-weight:400}@font-face{font-family:plexArabic;src:url(/_next/static/media/0010010bfd451de0-s.p.woff2) format("woff2");font-display:swap;font-weight:500}@font-face{font-family:plexArabic;src:url(/_next/static/media/5cb8243e7203141c-s.p.woff2) format("woff2");font-display:swap;font-weight:600}@font-face{font-family:plexArabic;src:url(/_next/static/media/3de711fd864e0bd8-s.p.woff2) format("woff2");font-display:swap;font-weight:700}@font-face{font-family:plexArabic Fallback;src:local("Arial");ascent-override:108.50%;descent-override:41.50%;line-gap-override:0.00%;size-adjust:100.00%}.__className_7856f7{font-family:plexArabic,plexArabic Fallback}.__variable_7856f7{--font-arabic:"plexArabic","plexArabic Fallback"}:root{color-scheme:light;--bg:#f2f3f1;--surface:#fafaf8;--hover:#eceeeb;--border:#e3e5e2;--border-strong:#d2d6d2;--text:#1a1f24;--text-muted:#6b747d;--brand:#2f7d5b;--brand-strong:#236247;--brand-soft:#eef6f2;--now:#d64545;--report-notStarted:#d64545;--report-draft:#e09b1a;--report-signed:#2f9e5f;--font:var(--font-latin),var(--font-arabic),system-ui,-apple-system,"Segoe UI",sans-serif}*{box-sizing:border-box}body,html{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased}html[lang=ar] body{--font:var(--font-arabic),var(--font-latin),system-ui,sans-serif;line-height:1.6}button{font:inherit;color:inherit}.mono{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.app-header{justify-content:space-between;gap:16px;padding:10px 24px;background:var(--surface);border-bottom:1px solid var(--border);position:-webkit-sticky;position:sticky;top:0;z-index:20}.app-header,.brand{display:flex;align-items:center}.brand{gap:8px}.brand-mark{display:block;flex-shrink:0}.brand-name{font-weight:700;font-size:1.05rem}.header-actions{gap:12px}.header-actions,.user-chip{display:flex;align-items:center}.user-chip{gap:10px}.avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--brand);color:#fff;font-size:.78rem;font-weight:600}.user-name{font-weight:600;font-size:.875rem;line-height:1.2}.user-role{font-size:.75rem;color:var(--text-muted)}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border:1px solid var(--border-strong);border-radius:8px;background:var(--surface);cursor:pointer;font-size:.85rem;font-weight:500}.btn:hover:not(:disabled){background:var(--hover)}.btn:disabled{opacity:.5;cursor:default}.appt:focus-visible,.btn:focus-visible,.day-item:focus-visible,.day-tab:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.btn-icon{width:34px;padding:0}.btn-ghost{border-color:transparent}.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn-primary:hover:not(:disabled){background:var(--brand-strong)}.chevron-forward,[dir=rtl] .chevron-back{transform:scaleX(-1)}[dir=rtl] .chevron-forward{transform:none}.page{padding:16px 24px 32px;max-width:1280px;margin:0 auto}.timetable-card{padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:12px}.timetable-loading{padding:48px;text-align:center;color:var(--text-muted)}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding-bottom:14px}.toolbar-title{margin:0;font-size:1.15rem;font-weight:700}.toolbar-subtitle{margin:0;color:var(--text-muted);font-size:.85rem}.stat-warn{-webkit-margin-start:auto;margin-inline-start:auto;font-size:.8rem;color:var(--text-muted)}.toolbar-nav{display:flex;gap:6px}.toolbar>div:first-child+.toolbar-nav{-webkit-margin-start:auto;margin-inline-start:auto}.week-view{border:1px solid var(--border);border-radius:10px;overflow:hidden}.timetable{display:grid;grid-template-columns:48px repeat(7,minmax(0,1fr))}.tt-corner,.tt-day-header{border-bottom:1px solid var(--border)}.tt-day-header{display:flex;align-items:center;min-height:42px;justify-content:center;gap:6px;padding:8px 4px;-webkit-border-start:1px solid var(--border);border-inline-start:1px solid var(--border)}.tt-weekday{font-size:.78rem;color:var(--text-muted)}.tt-date{font-size:.95rem;font-weight:600}.tt-day-header.is-today .tt-date{display:inline-grid;place-items:center;min-width:26px;height:26px;border-radius:50%;background:var(--brand);color:#fff}.tt-day-header.is-today .tt-weekday{color:var(--brand);font-weight:600}.tt-hour-label{height:var(--hour-height);padding:0 6px;font-size:.7rem;color:var(--text-muted);text-align:end;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;transform:translateY(-.6em)}.tt-hour-label:first-child{transform:none;padding-top:2px}.tt-day{position:relative;-webkit-border-start:1px solid var(--border);border-inline-start:1px solid var(--border)}.tt-slot{height:var(--hour-height);border-bottom:1px solid var(--border)}.tt-slot:last-child{border-bottom:0}.tt-now{inset-inline:0;height:2px;background:var(--now);z-index:3;pointer-events:none}.appt,.tt-now{position:absolute}.appt{inset-inline:3px;display:flex;align-items:center;gap:5px;padding:0 7px;-webkit-padding-end:15px;padding-inline-end:15px;overflow:hidden;border:1px solid var(--border-strong);border-radius:5px;background:var(--surface);text-align:start;font-size:.76rem;line-height:1.2;cursor:pointer;z-index:1}.appt.is-selected,.appt:hover{border-color:var(--brand);background:var(--brand-soft);z-index:4}.appt-time{flex-shrink:0;color:var(--text-muted);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.appt-name{min-width:0;font-weight:600;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.appt.is-short .appt-name{-webkit-line-clamp:1;line-clamp:1}.appt.is-short:focus-visible,.appt.is-short:hover{height:auto!important;min-height:18px;padding-block:2px;z-index:5;box-shadow:0 2px 8px rgb(0 0 0/12%)}.appt.is-short:focus-visible .appt-name,.appt.is-short:hover .appt-name{-webkit-line-clamp:2;line-clamp:2}.appt.status-cancelled>*,.day-item.status-cancelled{opacity:.45}.appt.status-cancelled{border-style:dashed}.appt.status-cancelled:focus-visible>*,.appt.status-cancelled:hover>*{opacity:1}.status-cancelled .appt-name{text-decoration:line-through}.report-dot{display:inline-block;width:7px;height:7px;border-radius:50%;flex-shrink:0;background:var(--rc)}.appt .report-dot{position:absolute;top:calc(50% - 3.5px);inset-inline-end:5px}.report-notStarted{--rc:var(--report-notStarted)}.report-draft{--rc:var(--report-draft)}.report-signed{--rc:var(--report-signed)}.day-view{display:none}.day-tabs{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:4px;gap:4px}.day-tab{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0;border:0;border-radius:10px;background:none;cursor:pointer}.day-tab-weekday{font-size:.7rem;color:var(--text-muted)}.day-tab-date{font-size:.95rem;font-weight:600}.day-tab.is-today .day-tab-date,.day-tab.is-today .day-tab-weekday{color:var(--brand)}.day-tab.is-active{background:var(--brand)}.day-tab.is-active .day-tab-date,.day-tab.is-active .day-tab-weekday{color:#fff}.day-title{margin:16px 0 8px;font-size:.95rem;font-weight:600}.day-empty{padding:32px 0;text-align:center;color:var(--text-muted);font-size:.9rem}.day-list{list-style:none;margin:0;padding:0}.day-item{display:flex;align-items:center;gap:14px;width:100%;padding:12px 4px;border:0;border-bottom:1px solid var(--border);background:none;text-align:start;cursor:pointer}.day-item:active{background:var(--hover)}.day-item-time{width:44px;flex-shrink:0;font-size:.85rem;color:var(--text-muted);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.day-item-body{display:flex;flex-direction:column;min-width:0;flex:1 1}.day-item .appt-name{font-size:.95rem;line-height:1.3}.day-item-reason{font-size:.8rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-item .report-dot{width:9px;height:9px}.legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding-top:12px;font-size:.75rem;color:var(--text-muted)}.legend-item{display:inline-flex;align-items:center;gap:6px}.drawer-backdrop{position:fixed;inset:0;background:rgb(10 15 13/20%);z-index:40}.drawer{position:fixed;top:0;bottom:0;inset-inline-end:0;width:min(400px,100vw);display:flex;flex-direction:column;background:var(--surface);-webkit-border-start:1px solid var(--border);border-inline-start:1px solid var(--border);box-shadow:0 0 32px rgb(0 0 0/10%);z-index:50}.drawer-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:20px;border-bottom:1px solid var(--border)}.drawer-kicker{font-size:.78rem;color:var(--text-muted)}.drawer-title{margin:2px 0;font-size:1.25rem}.drawer-sub{margin:0;font-size:.85rem;color:var(--text-muted)}.detail-list{margin:0;padding:4px 20px;overflow-y:auto;flex:1 1}.detail-list>div{display:grid;grid-template-columns:120px 1fr;grid-gap:12px;gap:12px;padding:11px 0;border-bottom:1px solid var(--border)}.detail-list dt{font-size:.8rem;color:var(--text-muted)}.detail-list dd{margin:0;font-size:.875rem}.report-inline{display:inline-flex;align-items:center;gap:8px}.drawer-footer{display:flex;align-items:center;gap:12px;padding:16px 20px;border-top:1px solid var(--border)}.hint{font-size:.78rem;color:var(--text-muted)}@media (max-width:720px){.app-header{padding:8px 16px}.user-meta{display:none}.page{padding:12px 16px 24px}.timetable-card{padding:12px}.week-view{display:none}.day-view{display:block}.toolbar-subtitle{display:none}.stat-warn{order:3;width:100%;-webkit-margin-start:0;margin-inline-start:0}.toolbar-nav{-webkit-margin-start:auto;margin-inline-start:auto}.detail-list>div{grid-template-columns:1fr;gap:2px}}.login-page{min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:16px}.login-topbar{align-self:stretch;display:flex;justify-content:flex-end}.login-card{width:100%;max-width:400px;margin-top:8vh;padding:32px 28px;background:var(--surface);border:1px solid var(--border);border-radius:12px}.login-brand{margin-bottom:24px}.login-title{margin:0;font-size:1.35rem}.login-subtitle{margin:4px 0 24px;font-size:.875rem;color:var(--text-muted)}.login-form{gap:16px}.field,.login-form{display:flex;flex-direction:column}.field{gap:6px}.field-label{font-size:.85rem;font-weight:500}.input{width:100%;height:42px;padding:0 12px;border:1px solid var(--border-strong);border-radius:8px;background:#fff;color:var(--text);font:inherit;font-size:.95rem}.input:focus{outline:2px solid var(--brand);outline-offset:-1px;border-color:var(--brand)}[dir=rtl] .input{text-align:right}.password-wrap{position:relative;display:block}.password-wrap .input{-webkit-padding-end:42px;padding-inline-end:42px}.password-toggle{position:absolute;top:0;bottom:0;inset-inline-end:0;width:42px;display:grid;place-items:center;border:0;background:none;color:var(--text-muted);cursor:pointer}.password-toggle:focus-visible{outline:2px solid var(--brand);outline-offset:-4px;border-radius:8px}.form-error{margin:0;padding:10px 12px;border-radius:8px;background:#fdecec;color:#a12f2f;font-size:.85rem}.btn-block{width:100%;min-height:42px;font-size:.95rem}.doctor-picker{display:flex;align-items:center;gap:8px;-webkit-margin-start:auto;margin-inline-start:auto}.doctor-picker .input{width:auto;min-width:220px;height:36px}.doctor-picker+.toolbar-nav{-webkit-margin-start:0;margin-inline-start:0}.timetable.is-manage .tt-day{cursor:cell}.timetable.is-manage .tt-day .appt{cursor:pointer}.btn-danger{background:#c23b3b;border-color:#c23b3b;color:#fff}.btn-danger:hover:not(:disabled){background:#a83030}.btn-danger-ghost{border-color:transparent;color:#b33434}.btn-danger-ghost:hover:not(:disabled){background:#fdecec}.drawer-footer{flex-wrap:wrap}.drawer-error{margin:0 20px 12px}.dialog{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 32px);background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 48px rgb(0 0 0/18%);z-index:60}.dialog,.dialog form{display:flex;flex-direction:column}.dialog form{min-height:0}.dialog-header{padding:18px 20px 12px;border-bottom:1px solid var(--border)}.dialog-title{margin:0;font-size:1.15rem}.dialog-body{padding:16px 20px;overflow-y:auto;display:flex;flex-direction:column;gap:16px}.dialog-footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid var(--border)}.form-section{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;border:0}.form-section legend{padding:0;margin-bottom:4px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}[lang=ar] .form-section legend{text-transform:none;letter-spacing:0}.field-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:12px;gap:12px}.field-grid.three{grid-template-columns:1.3fr 1fr 1fr}.input-row{display:flex;gap:8px}.input-row .btn{min-height:42px}select.input{-moz-appearance:none;appearance:none;-webkit-appearance:none;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:40px;padding-inline-end:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b747d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:12px;cursor:pointer}[dir=rtl] select.input{background-position:left 16px center}.field-hint{font-size:.78rem;color:var(--text-muted)}.field-hint.ok{color:var(--brand)}@media (max-width:720px){.doctor-picker{order:4;width:100%;-webkit-margin-start:0;margin-inline-start:0}.doctor-picker .input{flex:1 1;min-width:0}.legend-desktop{display:none}.field-grid,.field-grid.three{grid-template-columns:1fr}.toolbar-nav{flex-wrap:wrap}}a.btn{text-decoration:none;color:inherit}a.btn-primary{color:#fff}.back-link{display:inline-flex;align-items:center;gap:6px;margin-bottom:12px;color:var(--text-muted);font-size:.875rem;text-decoration:none}.back-link:hover{color:var(--text)}[dir=rtl] .flip-rtl{display:inline-block;transform:scaleX(-1)}.report-layout{display:grid;grid-template-columns:260px minmax(0,1fr);grid-gap:16px;gap:16px;align-items:start}.report-card,.report-meta{background:var(--surface);border:1px solid var(--border);border-radius:12px}.report-meta{padding:16px;position:-webkit-sticky;position:sticky;top:72px}.report-patient{margin:0 0 12px;font-size:1.1rem}.meta-list{margin:0;display:flex;flex-direction:column;gap:10px}.meta-list dt{font-size:.75rem;color:var(--text-muted)}.meta-list dd{margin:2px 0 0;font-size:.875rem}.report-card{display:flex;flex-direction:column;min-height:70vh}.report-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border)}.report-title{margin:0;font-size:1.15rem}.report-status-line{display:flex;align-items:center;gap:6px;margin:4px 0 0;font-size:.8rem;color:var(--text-muted)}.report-actions{display:flex;gap:8px}.signed-banner{margin:0;padding:10px 20px;background:var(--brand-soft);color:var(--brand-strong);font-size:.85rem;border-bottom:1px solid var(--border)}.report-alert{margin:12px 20px 0}.btn-inline{min-height:26px;padding:0 8px;-webkit-margin-start:6px;margin-inline-start:6px;font-size:.8rem}.report-editor{display:flex;flex-direction:column;flex:1 1}.report-toolbar{display:flex;flex-wrap:wrap;gap:2px;padding:6px 14px;border-bottom:1px solid var(--border);position:-webkit-sticky;position:sticky;top:52px;background:var(--surface);z-index:2}.tool{display:grid;place-items:center;min-width:32px;height:32px;border:0;border-radius:6px;background:none;font-size:.9rem;cursor:pointer;color:var(--text)}.tool:hover:not(:disabled){background:var(--hover)}.tool.is-active{background:var(--brand-soft);color:var(--brand-strong)}.tool:disabled{opacity:.35;cursor:default}.tool-sep{width:1px;margin:6px 4px;background:var(--border-strong)}.report-doc{flex:1 1;min-height:50vh;padding:20px 28px 40px;outline:none;font-size:.95rem;line-height:1.6}.report-doc-loading{background:var(--surface)}.report-doc h2{margin:20px 0 4px;font-size:1rem;font-weight:700;color:var(--brand-strong)}.report-doc h2:first-child{margin-top:0}.report-doc h3{margin:14px 0 4px;font-size:.95rem}.report-doc p{margin:0 0 6px}.report-doc ol,.report-doc ul{margin:0 0 6px;-webkit-padding-start:24px;padding-inline-start:24px}.report-doc :is(p,h2,h3,li)[dir=auto]{text-align:start}.report-doc .is-editor-empty:before,.report-doc p.is-empty:first-child:before{content:attr(data-placeholder);color:var(--text-muted);pointer-events:none;float:inline-start;height:0}.report-editor.is-readonly .report-doc{cursor:default}.dialog-small{width:min(440px,calc(100vw - 32px))}.dialog-text{margin:0;font-size:.9rem;line-height:1.5}@media (max-width:900px){.report-layout{grid-template-columns:1fr}.report-meta{position:static}.report-doc{padding:16px}}@media print{.app-header,.back-link,.report-actions,.report-alert,.report-toolbar{display:none!important}.report-card,.report-meta,body{background:#fff}.page{padding:0;max-width:none}.report-layout{grid-template-columns:1fr}.report-card,.report-meta{border:0;position:static}.report-card{min-height:0}}.zone-note{color:var(--text-muted)}.ai-panel{border-bottom:1px solid var(--border)}.ai-panel:empty{display:none}.ai-compose{padding:14px 20px 16px;display:flex;flex-direction:column;gap:10px}.ai-title{margin:0;font-size:.95rem}.ai-hint{margin:0;font-size:.8rem;color:var(--text-muted);max-width:70ch}[dir] .ai-notes{text-align:start}.ai-external{margin:0;padding:8px 12px;border-radius:8px;border:1px solid #f0c27a;background:#fff6e5;color:#7a4b00;font-size:.8rem;font-weight:500}.ai-notes{min-height:110px;resize:vertical;font-family:var(--font);line-height:1.45;padding-block:8px}.ai-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}.ai-actions .btn-primary{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.ai-privacy{font-size:.75rem;color:var(--text-muted)}.ai-review{margin:0 20px 16px;padding:12px 14px;border:1px solid var(--border-strong);-webkit-border-start:3px solid var(--report-draft);border-inline-start:3px solid var(--report-draft);border-radius:8px;background:var(--bg)}.ai-review-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 12px}.ai-review-title{margin:0;font-size:.9rem}.ai-review-meta{font-size:.75rem;color:var(--text-muted)}.ai-nothing{margin:0;font-size:.85rem;color:var(--text-muted)}.ai-group h4{margin:10px 0 4px;font-size:.75rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em}.ai-group ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px}.ai-item{display:flex;align-items:baseline;gap:8px;font-size:.85rem;line-height:1.4}.ai-item:before{content:"";flex:none;width:7px;height:7px;border-radius:50%;transform:translateY(-1px);background:var(--text-muted)}.ai-item.sev-critical:before{background:var(--now)}.ai-item.sev-flag:before,.ai-item.sev-major:before{background:var(--report-draft)}.ai-item.sev-minor{color:var(--text-muted)}.sev-badge{flex:none;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em}.sev-critical .sev-badge{color:var(--now)}.sev-major .sev-badge{color:#a56a00}@media (max-width:720px){.ai-compose{padding:12px 14px 14px}.ai-review{margin:0 14px 14px}}@media print{.ai-panel{display:none!important}}.dictation{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.btn-record{display:inline-flex;align-items:center;gap:6px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.btn-record.is-recording{border-color:var(--now);color:var(--now)}.rec-dot{width:9px;height:9px;border-radius:50%;background:var(--now);animation:rec-pulse 1.2s ease-in-out infinite}@keyframes rec-pulse{50%{opacity:.3}}@media (prefers-reduced-motion:reduce){.rec-dot{animation:none}}.dictation-language .input{height:34px;width:auto;font-size:.85rem}.dictation-error{flex-basis:100%;margin:0}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.env-banner{padding:6px 16px;background:#fff6e5;border-bottom:1px solid #f0c27a;color:#7a4b00;font-size:.8rem;font-weight:600;text-align:center}