@font-face{font-family:'B Nazanin';src:url('./fonts/BNazanin.woff') format('woff');font-style:normal;font-weight:400;font-display:swap}
:root{--font-sans:'B Nazanin',Tahoma,sans-serif}
html,body,#root,button,input,select,textarea,.py-admin{font-family:'B Nazanin',Tahoma,sans-serif!important}
body{font-size:18px;background:radial-gradient(ellipse at 5% 0%,color-mix(in srgb,var(--theme-start) 23%,white),transparent 50%),#eef7f7!important}
button,input,select,textarea{font-size:18px}button{transition:box-shadow .16s,background-color .16s,filter .16s}
button:not(:disabled):hover{filter:brightness(1.025);box-shadow:0 5px 13px #16485414}
button:active:not(:disabled){box-shadow:inset 0 2px 4px #16485420}
button:disabled{cursor:not-allowed;opacity:.55}
button:not(.table-title):not([role=tab]){border-radius:11px}
.modern-primary,.new-case-button,.editor-actions button:not([data-variant=outline]){background-image:linear-gradient(140deg,#ffffff12,#00000009)!important;box-shadow:0 4px 10px #0f717522,inset 0 1px 0 #ffffff30}
.page-actions button,.modern-event button,.modern-cases button,.modern-theme button,.modern-schedule button,.py-toolbar button{min-height:37px;font-size:17px;border-color:#cee3e3;box-shadow:0 2px 4px #145f6410,inset 0 1px 0 #ffffffa0}
.sidebar,:root[data-theme=light] .sidebar{background:radial-gradient(ellipse at 100% 0%,#ffffff13,transparent 60%),linear-gradient(175deg,color-mix(in srgb,var(--theme-accent) 38%,#043242),#083747)!important;border-radius:20px;color:#d9f5ed;box-shadow:0 7px 25px #06394319;inset:66px 14px 14px auto}
.sidebar .brand strong{color:white;font-size:29px}.sidebar .brand span{color:#a0c7c9;font-size:14px}.sidebar .brand-mark{background:linear-gradient(135deg,var(--theme-start),var(--theme-accent))!important;color:white!important;box-shadow:0 6px 17px #031f352a!important}
.sidebar nav button,.sidebar .modern-admin{color:#c5e4e4!important;font-size:19px!important;font-weight:400}.sidebar nav button.active,.sidebar .modern-nav button.active:hover{background:linear-gradient(110deg,var(--theme-accent),var(--theme-start))!important;color:var(--theme-button-ink)!important;box-shadow:0 6px 16px #052c422b!important}
.sidebar nav button:hover,.sidebar .modern-admin:hover{background:#ffffff14!important}.sidebar nav em{background:#ffffff18;color:#c6fff1}.sidebar .modern-tools{border-color:#ffffff18}.sidebar .modern-tools summary{color:#a7cfce;font-size:17px}.sidebar-foot{background:#ffffff09!important;border:1px solid #ffffff14!important}.sidebar-foot span{color:#a5c9cb!important;font-size:14px}.sidebar-foot strong{color:white}
.main-shell{background:#f5fafa;border-color:#e1efed;box-shadow:0 7px 40px #28595405}.workspace{padding:22px 24px 45px!important}.page-head h1{font-size:32px!important}.page-head p{font-size:17px!important}.py-account-strip,.py-account-strip select,.py-account-strip a,.py-account-strip button{font-size:16px!important}.py-account-tools summary{font-size:16px}.topbar input{font-size:18px}.topbar .notification-button{overflow:visible}
.graphic-icon{width:23px;height:23px;flex-shrink:0}
.graphic-hero{position:relative;min-height:220px;padding:26px 32px;margin-bottom:23px;border-radius:24px;overflow:hidden;background:radial-gradient(ellipse at 75% 0%,#ffffff24,transparent 65%),linear-gradient(110deg,var(--theme-end),var(--theme-accent) 60%,var(--theme-start));color:var(--theme-button-ink);box-shadow:0 14px 30px #138c9b21}
.graphic-hero:before{content:'';position:absolute;width:420px;height:420px;left:-100px;top:-160px;border:1px solid #ffffff25;border-radius:50%}
.graphic-hero-copy{position:relative;z-index:1;max-width:65%}.graphic-hero h1{font-size:37px;font-weight:700;margin:13px 0 5px}.graphic-hero p{font-size:19px;margin:0}.graphic-hero small{font-size:16px}.graphic-hero-art{position:absolute;left:10px;top:0;width:38%;height:100%;object-fit:contain;pointer-events:none}
.graphic-hero-actions{display:flex;gap:11px;margin-top:20px;flex-wrap:wrap}.graphic-hero-actions button{display:flex;align-items:center;gap:8px;padding:8px 15px;background:white;color:#126477;border:1px solid #ffffff50;box-shadow:0 4px 13px #064e7722;font-size:18px}.graphic-hero-actions .graphic-ghost{background:#ffffff16;color:inherit}.graphic-hero-actions button>span{font-size:25px;line-height:1}.graphic-page-head{display:none!important}
.graphic-metrics article{position:relative;overflow:hidden;padding:18px 19px;box-shadow:0 5px 17px #183e4905}.graphic-metrics article:after{content:'';position:absolute;width:100px;height:100px;border-radius:50%;left:-34px;top:-34px;background:var(--metric-pale);opacity:.7}
.graphic-metric-top{position:relative;z-index:1;display:flex;align-items:center;gap:11px}.graphic-metric-icon{width:44px;height:47px;display:grid;place-items:center;border-radius:13px;color:var(--metric-color);background:linear-gradient(135deg,#fff,var(--metric-pale));border:1px solid var(--metric-pale);box-shadow:0 5px 9px var(--metric-pale);transform:rotate(-6deg);flex-shrink:0}.graphic-metric-icon svg{width:27px;height:27px;filter:drop-shadow(0 2px 0 #ffffff90)}
.graphic-metrics span{font-size:18px}.graphic-metrics strong{margin-top:2px;font-size:36px;line-height:1.15}.graphic-metrics small{display:block;color:var(--metric-color);margin-top:13px;font-size:14px}
.modern-dashboard .py-panel{border-radius:18px}.modern-dashboard .py-panel h2:before{content:'';display:inline-block;width:9px;height:19px;margin-left:10px;border-radius:5px;background:linear-gradient(var(--theme-start),var(--theme-accent));vertical-align:middle}.modern-dashboard h2{font-size:25px}.modern-event{padding:12px 0;gap:9px}.modern-event b{font-size:19px}.modern-event small{font-size:15px}.modern-event time{font-size:17px}.modern-event button{font-size:17px}
.graphic-chart-row{display:grid;grid-template-columns:1.4fr 1fr;gap:18px;margin-top:20px}.graphic-chart{padding:0!important;overflow:hidden;margin:0!important}.graphic-chart header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 8px}.graphic-chart h2{font-size:24px!important;margin:0!important}.graphic-chart header small{font-size:15px;color:#8199a3}.graphic-chart>svg{width:100%;height:185px;padding:8px 15px;overflow:visible;direction:ltr}.graphic-chart svg text{font-family:'B Nazanin',Tahoma;font-size:13px;fill:#456c7a}.graphic-chart .py-note{padding:0 20px 10px;font-size:14px;color:#7f969e}.graphic-donut-row{display:flex;align-items:center;gap:20px;padding:10px 22px 23px}.graphic-donut{width:145px;height:145px;border-radius:50%;display:grid;place-items:center;position:relative;flex-shrink:0;transform:rotate(-90deg)}.graphic-donut:before{content:'';position:absolute;inset:17px;border-radius:50%;background:white}.graphic-donut>div{z-index:1;position:relative;transform:rotate(90deg);text-align:center}.graphic-donut b{display:block;font-size:37px;line-height:1.1}.graphic-donut small{font-size:15px;color:#8196a1}.graphic-legend{flex:1;min-width:0}.graphic-legend>div{display:flex;align-items:center;gap:7px;font-size:16px;margin:5px 0;color:#6d8995}.graphic-legend i{width:7px;height:7px;border-radius:50%;flex-shrink:0}.graphic-legend b{margin-right:auto;color:#315e6b}
.modern-table thead th{font-size:19px}.modern-table th>button{font-size:19px;box-shadow:none;min-height:32px}.modern-table td{font-size:19px;line-height:1.55}.modern-table td .table-title{font-size:25px;color:var(--theme-accent)}.modern-table-tools,.modern-column-choices,.modern-paging{font-size:18px}.modern-table-tools>details{font-size:18px}.modern-status{font-size:17px}.modern-bulk{font-size:18px}.modern-bulk>.graphic-bulk-move{margin-top:10px}.graphic-status-select{width:100%;max-width:100%;border:1px solid #bedfd6;border-radius:9px;padding:7px 5px;background:#eefaf5;color:#226b5c;font-size:17px}.modern-table th.graphic-actions-column,.modern-table td.graphic-actions-column{position:sticky;left:0;background:#fff;box-shadow:3px 0 5px #204e5910;text-align:center;z-index:3}.modern-table th.graphic-actions-column{z-index:5;background:#f2f8f9}.modern-table .graphic-row-trigger{white-space:nowrap;font-size:18px;display:flex;gap:8px;justify-content:center;align-items:center;width:100%;padding:7px 9px;min-height:38px;color:#287481}.graphic-row-trigger span{font-size:24px;line-height:1}.modern-column-choices label{font-size:18px}.modern-column-choices{max-height:55vh;overflow:auto}
.graphic-dialog{border:1px solid #d7e9e8;border-radius:20px;margin:auto;padding:0;color:#234c5c;background:#fff;width:480px;max-width:94vw;max-height:88vh;overflow:auto;box-shadow:0 25px 80px #0c435b38;direction:rtl;font-family:'B Nazanin',Tahoma;font-size:20px}.graphic-dialog::backdrop{background:#16465435;backdrop-filter:blur(2px)}.graphic-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 20px;background:#ecf9f5;border-bottom:1px solid #dcefeb}.graphic-dialog h2{font-size:25px;margin:0;overflow-wrap:anywhere}.graphic-dialog>header button{border:0;border-radius:10px;background:#fff;color:#416f7b;padding:0 12px;min-height:37px;font-size:30px}.graphic-action-list{display:grid;gap:10px;padding:20px}.graphic-dialog button{font:inherit;border:1px solid #d6e7e6;background:linear-gradient(#fff,#f3faf9);padding:9px 14px;color:#276976}.graphic-action-list button{text-align:right}.graphic-move-body{padding:20px}.graphic-move-body select{width:100%;padding:10px;border:1px solid #cce3dd;border-radius:11px;background:#f6fbfa}.graphic-dialog .py-note{font-size:17px;line-height:1.8}.graphic-move-body .py-toolbar{justify-content:flex-end}.graphic-move-body>p{margin:0 0 12px}
.graphic-schedule-grid{display:grid;grid-template-columns:minmax(340px,390px) minmax(0,1fr);gap:20px;align-items:start}.graphic-calendar-panel{padding:20px!important;min-width:0}.graphic-calendar-panel h2{display:flex;align-items:center;gap:10px;font-size:25px!important}.graphic-calendar-panel h2:before{content:'▦';display:inline-grid;place-items:center;width:39px;height:42px;color:#149d8c;background:linear-gradient(135deg,#e1f9ed,#caf1ed);border:1px solid #c3eadf;border-radius:12px;box-shadow:0 4px 8px #148c8420;font-family:Tahoma;font-size:26px}.graphic-calendar-panel .py-toolbar{gap:7px;justify-content:space-between}.graphic-calendar-panel .py-toolbar button{font-size:16px;padding:7px 9px;background:linear-gradient(#fff,#edf8f5);color:#317976;border:1px solid #d2e7e2;border-radius:10px;box-shadow:0 3px 6px #11675e0c}.graphic-calendar-panel .py-toolbar strong{font-size:22px}.graphic-calendar-panel .py-calendar{gap:6px;margin-top:17px}.graphic-calendar-panel .py-calendar>b{font-size:14px;text-align:center}.graphic-calendar-panel .py-day{position:relative;min-height:44px;height:48px;padding:5px 2px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;background:linear-gradient(145deg,#fff,#edf7f5);border:1px solid #e1ede9;border-radius:11px;box-shadow:0 2px 4px #1a66690c;overflow:visible}.graphic-calendar-panel .py-day strong{font-size:23px;line-height:1.2}.graphic-calendar-panel .py-day .graphic-day-count{position:absolute;bottom:1px;left:3px;width:13px;height:13px;font-size:11px;line-height:13px;border-radius:50%;text-align:center;background:#cdeee4;color:#137766}.graphic-calendar-panel .py-day.has-events:after{content:'';position:absolute;bottom:4px;right:7px;width:4px;height:4px;border-radius:50%;background:#1cac98}.graphic-calendar-panel .py-day:hover{background:#def6ed;border-color:#93d3c4;box-shadow:0 4px 10px #1399801a}.graphic-calendar-panel .py-day.today{background:linear-gradient(140deg,var(--theme-start),var(--theme-accent));color:var(--theme-button-ink);border-color:transparent;box-shadow:0 4px 10px #17a99f25}.graphic-calendar-panel .py-day.selected{outline:2px solid var(--theme-accent);outline-offset:1px}.graphic-calendar-panel .py-event-list{margin-top:15px;padding-top:12px;border-top:1px solid #e2edeb;max-height:270px;overflow:auto}.graphic-calendar-panel .py-event-list button{display:block;width:100%;text-align:right;margin-top:7px;padding:9px;font-size:16px;white-space:normal;border:1px solid #cfe9e2;background:#f1faf7;border-radius:9px;color:#226c61}.graphic-calendar-panel .py-event-list h3{font-size:20px}.modern-schedule{margin-top:0!important}.modern-schedule h2{font-size:26px}.modern-schedule .py-field{max-width:180px;font-size:17px}.modern-schedule .py-toolbar{gap:10px}
/* A new case lives inside the main shell; existing cases retain their full-screen view. */
.embedded-case-overlay{background:transparent!important;backdrop-filter:none!important}
.main-shell>.embedded-new-editor,.embedded-new-editor{--embedded-left:30px;--embedded-width:calc(100vw - 290px);--embedded-top:155px;position:fixed!important;inset:auto!important;top:var(--embedded-top)!important;left:var(--embedded-left)!important;right:auto!important;bottom:14px!important;transform:none!important;translate:none!important;width:calc(var(--embedded-width) * var(--editor-scale,1))!important;min-width:min(620px,var(--embedded-width))!important;max-width:var(--embedded-width)!important;height:calc(100dvh - var(--embedded-top) - 14px)!important;max-height:calc(100dvh - var(--embedded-top) - 14px)!important;border-radius:20px!important;box-shadow:0 10px 40px #153f4d1c!important;resize:none!important}
.editor-header{min-height:74px!important;padding:10px 18px!important}.editor-title h2{font-size:25px!important}.editor-title p{font-size:16px!important}.editor-actions button{font-size:17px}.modern-case-summary{gap:16px;padding:8px 18px}.modern-case-summary span{font-size:16px;margin-bottom:0}.modern-case-summary b{font-size:18px}.modern-case-summary details{font-size:16px}.py-stage-panel{padding:8px 16px!important}.py-stage-tabs button{font-size:18px;padding:6px 13px!important}.py-stage-panel>small,.py-stage-panel details{font-size:15px}.editor-tablist{min-height:45px!important}.editor-tablist button{font-size:18px!important}.case-editor>.py-followup,.editor-tabs>.py-followup{font-size:16px!important;padding:6px 12px!important;margin:4px 16px!important}.field>span,.field input,.field textarea,.app-select,.editor-body input,.editor-body textarea{font-size:18px!important}.form-section>header p{font-size:16px!important}.form-section>header h3{font-size:25px!important}.case-missing-notice{font-size:16px!important}.py-panel .py-field,.py-panel input,.py-panel select{font-size:18px}.py-panel .py-note{font-size:16px}.py-login-card label,.py-login-card input,.py-login-card button{font-size:21px!important}.py-login-card h1{font-size:32px!important}.py-login-card p{font-size:18px!important}.py-account-tools a{font-size:17px!important}.modern-theme p,.modern-theme .theme-swatch{font-size:18px}.py-admin p,.py-admin td,.py-admin label,.py-admin input,.py-admin select,.py-admin button{font-size:19px!important}.py-admin th{font-size:20px!important}.py-draft-close button,.py-draft-close p{font-size:19px!important}
@media(max-width:1200px){.graphic-schedule-grid{grid-template-columns:340px minmax(0,1fr)}.graphic-hero h1{font-size:31px}.graphic-hero-copy{max-width:68%}.graphic-metrics article{padding:15px 12px}.graphic-metric-top{gap:7px}.graphic-metrics span{font-size:17px}.graphic-donut-row{flex-wrap:wrap}.graphic-donut{width:125px;height:125px}}
@media(max-width:1000px){.graphic-schedule-grid{grid-template-columns:1fr}.graphic-calendar-panel{max-width:470px;width:100%;justify-self:center}.graphic-chart-row{grid-template-columns:1fr}.graphic-chart>svg{height:200px}.graphic-donut-row{flex-wrap:nowrap}}
@media(max-width:800px){.sidebar,:root[data-theme=light] .sidebar{inset:0 0 0 auto;border-radius:0}.workspace{padding:18px 12px 45px!important}.graphic-hero{padding:20px 18px;min-height:235px}.graphic-hero-copy{max-width:100%;width:100%}.graphic-hero-art{opacity:.16;width:75%;left:-35px}.graphic-hero h1{font-size:30px}.graphic-hero p{font-size:18px}.graphic-hero-actions button{font-size:18px}.graphic-metrics{gap:10px}.graphic-metrics article{padding:15px 12px}.graphic-metric-top{gap:9px}.graphic-metric-icon{width:35px;height:39px}.graphic-metrics span{font-size:17px}.graphic-metrics strong{font-size:33px}.graphic-metrics small{font-size:14px}.graphic-chart-row{gap:15px}.graphic-legend>div{font-size:17px}.modern-table td{font-size:19px}.modern-table td:before{font-size:16px}.modern-table td .table-title{font-size:24px}.modern-table td.graphic-actions-column{position:static;box-shadow:none}.modern-table .graphic-row-trigger{width:auto;min-width:125px}.modern-table-tools .py-field{max-width:100%}.modern-table-tools select{font-size:17px}.modern-column-choices{max-height:50vh}.py-account-strip>strong{font-size:16px}.py-account-strip select{max-width:160px}.embedded-new-editor{min-width:0!important;max-width:var(--embedded-width)!important;width:var(--embedded-width)!important;border-radius:15px!important}.editor-title h2{font-size:20px!important}.editor-title p{font-size:14px!important}.editor-actions button{font-size:15px!important;height:32px}.editor-header{max-height:140px!important;min-height:85px!important}.modern-case-summary{max-height:93px;font-size:16px;padding:7px 12px}.modern-case-summary b{font-size:16px}.modern-case-summary>div{min-width:120px}.py-stage-tabs button{font-size:17px!important;padding:4px 9px!important}.py-stage-panel details{font-size:14px}.case-editor .editor-tablist button{font-size:17px!important}.editor-tabs>.py-followup,.case-editor>.py-followup{font-size:14px!important;padding:4px 9px!important;margin:3px 10px!important}.field>span{font-size:18px!important}.modern-event button{font-size:17px}.graphic-schedule-grid{gap:15px}.graphic-calendar-panel{padding:17px!important}.graphic-calendar-panel .py-calendar{gap:5px}.graphic-calendar-panel .py-calendar>b{font-size:13px}.graphic-calendar-panel .py-day{min-height:40px;height:44px}.graphic-dialog{width:94vw}.graphic-dialog h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
.embedded-new-editor{transition:none!important}
@media(max-width:800px){.embedded-new-editor .editor-header{display:flex;flex-direction:column;align-items:stretch!important;gap:7px!important;max-height:none!important;min-height:0!important;padding:8px 10px!important;overflow:visible!important}.embedded-new-editor .editor-title{width:100%;min-width:0!important;gap:8px}.embedded-new-editor .editor-title h2{font-size:21px!important;margin:0;line-height:1.45}.embedded-new-editor .editor-title p{display:none}.embedded-new-editor .editor-actions{width:100%;flex-wrap:wrap!important;overflow:visible!important;justify-content:flex-start;gap:5px!important}.embedded-new-editor .editor-actions button{font-size:16px!important;height:32px;padding:4px 8px}.embedded-new-editor .editor-actions .editor-close{margin-right:0}}
.graphic-home-grid{grid-template-columns:minmax(0,1fr) 340px;align-items:start}.graphic-home-main,.graphic-home-agenda{min-width:0;display:flex;flex-direction:column;gap:18px}.graphic-home-grid .py-panel{margin:0!important}.graphic-home-grid .graphic-chart-row{margin:0;gap:14px;grid-template-columns:1.1fr 1fr}.graphic-home-grid .graphic-chart h2{font-size:21px!important}.graphic-home-grid .graphic-chart header{padding:16px 16px 5px}.graphic-home-grid .graphic-chart header small{font-size:13px}.graphic-home-grid .graphic-donut-row{padding:10px 14px 18px;gap:12px;flex-wrap:wrap}.graphic-home-grid .graphic-donut{width:110px;height:110px}.graphic-home-grid .graphic-legend{min-width:80px}.graphic-home-grid .graphic-legend>div{font-size:15px}.graphic-home-grid .graphic-calendar-panel{max-width:none;width:100%}.graphic-home-grid .modern-event small{font-size:14px}.graphic-recent{padding:0!important;overflow:hidden}.graphic-recent>header{padding:16px 20px;display:flex;justify-content:space-between;align-items:center;gap:8px}.graphic-recent h2{margin:0!important}.graphic-recent button{background:transparent;border:0;color:var(--theme-accent);font:inherit}.graphic-recent-scroll{overflow-x:auto}.graphic-recent-table{width:100%;border-collapse:collapse;text-align:right}.graphic-recent-table th{padding:10px 14px;color:#7e969f;background:#f3f9f8;font-size:16px;font-weight:400;white-space:nowrap}.graphic-recent-table td{padding:15px 14px;border-top:1px solid #ecf2f1;font-size:17px}.graphic-recent-table .graphic-recent-number{font-size:22px;font-weight:bold;white-space:normal;overflow-wrap:anywhere;text-align:right}.graphic-recent-table .modern-status{font-size:15px}.graphic-event-panel>button{font-size:16px;padding:8px 12px;border:1px solid #d6e9e3;background:#f4fbf8;color:#218578;margin-top:10px}.graphic-home-agenda .modern-event{font-size:17px}.graphic-home-agenda .modern-event>div:first-child{width:100%}
@media(max-width:1200px){.graphic-home-grid{grid-template-columns:minmax(0,1fr) 310px}.graphic-home-grid .graphic-chart-row{grid-template-columns:1fr}.graphic-home-grid .graphic-donut-row{flex-wrap:nowrap}.graphic-home-grid .graphic-calendar-panel{padding:14px!important}.graphic-home-grid .py-calendar{gap:4px}}
@media(max-width:1050px){.graphic-home-grid{grid-template-columns:1fr}.graphic-home-agenda{display:grid;grid-template-columns:1fr 1fr}.graphic-home-grid .graphic-chart-row{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.graphic-home-agenda{display:flex}.graphic-home-grid .graphic-chart-row{grid-template-columns:1fr}.graphic-recent-table th,.graphic-recent-table td{padding:10px 8px;font-size:15px}.graphic-recent-table .graphic-recent-number{font-size:19px}.graphic-recent-table .modern-status{font-size:14px;padding:4px 6px}}
@media(max-width:800px){.modern-table td{height:auto!important;min-height:0}.modern-table td .table-title{min-height:0;box-shadow:none;line-height:1.5}.sidebar:not(.open){visibility:hidden;pointer-events:none}.sidebar.open{visibility:visible;pointer-events:auto}}
.modern-table td.graphic-actions-column{position:static;box-shadow:none}.modern-table th.graphic-actions-column{left:auto;box-shadow:none;z-index:2}
@media print{.graphic-hero,.graphic-chart-row,.graphic-metrics{box-shadow:none!important}.embedded-new-editor{position:static!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important}.graphic-dialog{box-shadow:none}}
/* Full-height editor scrolling and user-selected surface color */
body,.case-app,.main-shell{background-color:var(--theme-background,#f3fafb)!important}
.case-editor{overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable!important}
.case-editor .editor-header{position:sticky!important;top:0!important;z-index:20!important}
.case-editor .editor-tabs{overflow:visible!important;flex:none!important;min-height:0!important}
.case-editor .editor-body{overflow:visible!important;flex:none!important;height:auto!important;min-height:0!important}
.case-editor .editor-tablist{position:sticky!important;top:74px!important;z-index:18!important}
.case-editor .modern-case-summary,.case-editor .py-stage-panel{position:relative;z-index:16}
.py-admin{background-color:var(--theme-background,#f3fafb)!important}
@media(max-width:800px){.case-editor .editor-tablist{top:82px!important}.case-editor .editor-header{position:sticky!important;top:0!important}}
/* User-selectable card and outline colors */
:root{--theme-card:#ffffff;--theme-border:#d8e8eb;--card:var(--theme-card)!important;--py-card:var(--theme-card)!important;--border:var(--theme-border)!important;--py-border:var(--theme-border)!important}
.panel,.py-panel,.modern-stats article,.modern-table,.modern-table tr,.modern-table td,.graphic-dialog,.graphic-recent,.graphic-chart,.graphic-calendar-panel,.case-editor,.editor-header,.editor-tablist,.py-stage-panel,.py-followup,.py-compare,.editor-doc-list>article,.hearing-card,.action-card,.reminder-card{background-color:var(--theme-card)!important;border-color:var(--theme-border)!important}
.modern-table thead th,.modern-table th.graphic-actions-column{background-color:color-mix(in srgb,var(--theme-card) 88%,var(--theme-border))!important}
.field input,.field textarea,.app-select,.editor-body input,.editor-body textarea,.py-followup input,.py-followup select,.graphic-status-select,.graphic-dialog select,.graphic-dialog input,.graphic-dialog textarea{background-color:var(--theme-card)!important;border-color:var(--theme-border)!important}
.py-calendar .py-day:not(.today){background:linear-gradient(145deg,var(--theme-card),color-mix(in srgb,var(--theme-card) 86%,var(--theme-border)))!important;border-color:var(--theme-border)!important}
.graphic-donut:before,.reminder-dialog,.reminder-dialog-list>button,.py-preview,.form-section,.graphic-recent-table td{background-color:var(--theme-card)!important;border-color:var(--theme-border)!important}
.graphic-recent-table th,.modern-case-summary,.graphic-dialog>header{background-color:color-mix(in srgb,var(--theme-card) 88%,var(--theme-border))!important;border-color:var(--theme-border)!important}
.reminder-dialog{width:720px!important;max-width:calc(100vw - 24px)!important;max-height:90dvh!important;display:flex!important;flex-direction:column;overflow:hidden!important;color:#234c5c}
.reminder-dialog-list{min-height:0;overflow-y:auto;max-height:none!important;flex:1;padding:0 4px}
.reminder-dialog-list>button{width:100%;display:flex;align-items:center;gap:8px;padding:7px 8px;text-align:right;border-bottom:1px solid var(--theme-border);white-space:normal}
.reminder-row{display:flex;align-items:stretch;gap:8px;border-bottom:1px solid var(--theme-border)}
.reminder-row>.reminder-open{flex:1;border:0!important;border-radius:0!important}
.reminder-dismiss{align-self:center;white-space:nowrap!important;font-size:15px!important;padding:7px 9px!important;color:#a44747!important;border-color:#e4bcbc!important;background:transparent!important}
.reminder-dialog-list .reminder-case-details{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}
.reminder-case-details>b{font-size:20px;line-height:1.5}
.reminder-case-details>span{font-size:17px;line-height:1.35;color:inherit}
.reminder-dialog-list .date-chip{flex-shrink:0;min-width:80px}
.reminder-dialog-list .reminder-case-details>span:nth-of-type(2){display:none}
.reminder-case-details>b{font-size:18px!important}
.reminder-footer,.reminder-filter{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 0 0;border-top:1px solid var(--theme-border);font-size:18px}
.reminder-footer{flex-shrink:0}.reminder-footer button,.reminder-filter button{font:inherit;padding:8px 18px;border-radius:10px;border:1px solid var(--theme-border)}
@media(max-width:600px){.reminder-dialog{padding:18px 12px!important}.reminder-dialog-list>button{gap:8px;padding:12px 3px}.reminder-case-details>span{font-size:17px}.reminder-dialog-list .date-chip{min-width:64px;font-size:14px}}
.reminder-dialog-list .reminder-row{min-height:64px;max-height:82px;align-items:center}
.reminder-dialog-list .reminder-row>.reminder-open{display:flex;align-items:center;gap:10px;min-height:64px;padding:6px 8px!important}
.reminder-dialog-list .reminder-row .reminder-case-details{gap:1px}
.reminder-dialog-list .reminder-case-details>b{font-size:16px!important;line-height:1.25!important}
.reminder-dialog-list .reminder-case-details>span{font-size:13px!important;line-height:1.2!important}
.reminder-dialog-list .reminder-dismiss{font-size:12px!important;padding:5px 7px!important}


/* Account expiration calendar. Scoped to avoid changing the app's other controls. */
.jalali-picker-pop{position:relative;z-index:5;width:300px;max-width:100%;box-sizing:border-box;padding:12px;margin:8px 0;background:var(--theme-card,#fff);color:var(--theme-text,#234c5c);border:1px solid var(--theme-border,#b8dce2);border-radius:14px;box-shadow:0 6px 20px #0002;direction:rtl}
.jalali-picker-pop .jalali-picker-head,.jalali-picker-pop .jalali-picker-foot{display:flex;align-items:center;justify-content:space-between;gap:6px}
.jalali-picker-pop button{font-family:inherit!important;font-size:16px!important;line-height:1.2!important;min-width:0!important;min-height:32px!important;padding:5px!important;margin:0!important;white-space:nowrap!important;box-shadow:none!important;transform:none!important}
.jalali-picker-head strong{font-size:18px;text-align:center}
.jalali-weekdays,.jalali-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:8px;text-align:center}
.jalali-weekdays{font-size:15px}
.jalali-picker-pop .jalali-days button{width:100%;border-radius:8px;background:var(--theme-card,#fff)!important;color:inherit!important;border:1px solid var(--theme-border,#b8dce2)}
.jalali-picker-pop .jalali-days button:hover,.jalali-picker-pop .jalali-days button.selected{background:var(--theme-accent,#0d8b9a)!important;color:white!important}
.jalali-picker-pop button:focus-visible{outline:2px solid var(--theme-accent,#0d8b9a);outline-offset:2px}
.jalali-picker-pop [aria-current=date]{text-decoration:underline;text-underline-offset:4px}
.jalali-picker-foot{margin-top:8px;border-top:1px solid var(--theme-border,#b8dce2);padding-top:8px}
