@font-face{font-family:Vazirmatn;src:url(/fonts/Vazirmatn-Variable.woff2)format("woff2");font-style:normal;font-weight:100 900;font-display:swap}:root{--green:#114c26;--gold:#9d794e;--soft:#f4f7f5;--border:#dce5df;--muted:#6f7a73;color:#202621;background:var(--soft);direction:rtl;font-family:Vazirmatn,-apple-system,BlinkMacSystemFont,Segoe UI,Tahoma,Arial,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}.loading{min-height:100vh;color:var(--green);place-items:center;display:grid}.login-page{direction:ltr;grid-template-columns:1.1fr .9fr;min-height:100vh;display:grid}.login-section{direction:rtl;flex-direction:column;justify-content:center;padding:8vw;display:flex}.brand{align-items:center;gap:18px;max-width:520px;margin-bottom:34px;display:flex}.brand img{object-fit:contain;width:72px;height:72px}.brand span{color:var(--gold);font-size:11px;font-weight:700}.brand h1{color:var(--green);margin:5px 0;font-size:28px}.brand p{color:var(--muted);margin:0}.login-card{border:1px solid var(--border);background:#fff;gap:18px;width:100%;max-width:520px;padding:28px;display:grid}.login-title{color:var(--green);gap:10px;display:flex}.login-title h2{margin:0 0 4px;font-size:18px}.login-title p{color:var(--muted);margin:0;font-size:12px}.login-card label{gap:7px;font-size:13px;font-weight:700;display:grid}.login-card input{border:1px solid #ccd8d0;border-radius:4px;outline:none;height:45px;padding:0 12px}.login-card input:focus{border-color:var(--green)}.login-card>button{background:var(--green);color:#fff;border:0;border-radius:4px;height:45px;font-weight:700}.error{color:#8c3030;background:#fff1f1;padding:10px;font-size:12px}.login-cover{background:var(--green);color:#fff;direction:rtl;flex-direction:column;justify-content:center;padding:70px;display:flex}.cover-number{font-size:96px;font-weight:800;line-height:1}.login-cover strong{margin-top:20px;font-size:24px}.login-cover span{opacity:.7;margin-top:8px}.shell{direction:rtl;min-height:100vh;display:flex}.sidebar{border-left:1px solid var(--border);background:#fff;flex-direction:column;width:270px;min-height:100vh;display:flex;position:fixed;top:0;bottom:0;right:0}.sidebar-brand{border-bottom:1px solid var(--border);align-items:center;gap:11px;height:82px;padding:15px 20px;display:flex}.sidebar-brand img{object-fit:contain;width:44px;height:44px}.sidebar-brand div{display:grid}.sidebar-brand strong{color:var(--green)}.sidebar-brand span{color:var(--gold);font-size:10px}.sidebar nav{flex:1;align-content:start;gap:3px;padding:16px 12px;display:grid}.sidebar nav button{color:#566159;text-align:right;background:0 0;border:0;border-radius:4px;align-items:center;gap:10px;height:43px;padding:0 12px;display:flex}.sidebar nav button:hover,.sidebar nav button.active{color:var(--green);background:#edf4ef}.sidebar nav button.active{box-shadow:inset -3px 0 0 var(--green);font-weight:700}.sidebar-user{border-top:1px solid var(--border);gap:3px;padding:16px 20px;display:grid}.sidebar-user strong{font-size:12px}.sidebar-user span{color:var(--muted);font-size:10px}.workspace{width:calc(100% - 270px);min-height:100vh;margin-right:270px}.workspace header{border-bottom:1px solid var(--border);background:#fff;justify-content:space-between;align-items:center;height:82px;padding:0 38px;display:flex}.workspace header small{color:var(--gold)}.workspace header h1{color:var(--green);margin:2px 0 0;font-size:20px}.header-actions{align-items:center;gap:9px;display:flex}.role,.logout{border:1px solid var(--border);background:#fff;border-radius:4px;align-items:center;gap:6px;height:34px;padding:0 10px;font-size:11px;display:flex}.role{color:var(--green);background:#edf4ef}.logout{color:#59645d}.content{padding:34px}.metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.metrics article{border:1px solid var(--border);background:#fff;flex-direction:column;justify-content:space-between;min-height:130px;padding:18px;display:flex}.metrics span{font-size:12px;font-weight:700}.metrics strong{color:var(--green);font-size:32px}.metrics small{color:#919b94}.panels{grid-template-columns:1.6fr .7fr;gap:12px;margin-top:12px;display:grid}.panel{border:1px solid var(--border);background:#fff;min-height:220px;padding:20px}.panel.large{grid-row:span 2}.panel h2{color:var(--green);margin:0 0 6px;font-size:15px}.panel p{color:var(--muted);margin:0;font-size:12px}.placeholder{border:1px solid var(--border);min-height:520px;color:var(--muted);background:#fff;flex-direction:column;justify-content:center;align-items:center;display:flex}.placeholder h2{color:var(--green);margin-bottom:5px}.placeholder p{margin:0}.cases-view .panel{min-height:auto}.cases-table-wrap{border:1px solid var(--border);margin-top:18px;overflow-x:auto}.cases-table{border-collapse:collapse;table-layout:fixed;background:#fff;width:100%;max-width:100%}.cases-table th,.cases-table td{border-bottom:1px solid var(--border);text-align:right;text-overflow:ellipsis;white-space:nowrap;padding:13px 10px;font-size:12px;overflow:hidden}.cases-table th{color:var(--green);background:#f4f7f5;font-weight:700}.cases-table tbody tr:hover{background:#fafbf9}.cases-table tbody .case-row{cursor:pointer}.cases-table tbody .case-row:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}.cases-table tbody tr:last-child td{border-bottom:0}.cases-table td:first-child{text-align:right;color:var(--gold);direction:ltr;font-weight:700}.cases-table th:first-child,.cases-table td:first-child{width:18%}.cases-table th:nth-child(2),.cases-table td:nth-child(2){width:22%}.cases-table th:nth-child(3),.cases-table td:nth-child(3),.cases-table th:nth-child(4),.cases-table td:nth-child(4),.cases-table th:nth-child(5),.cases-table td:nth-child(5){width:14%}.cases-table th:nth-last-child(-n+2),.cases-table td:nth-last-child(-n+2){text-align:center;width:9%;padding-inline:4px}.cases-table th:nth-last-child(-n+2){text-overflow:initial}.cases-table td:nth-last-child(-n+2){color:var(--green);font-weight:700}.case-detail-view{gap:12px;width:100%;display:grid}.back-button{border:1px solid var(--border);width:fit-content;min-height:38px;color:var(--green);background:#fff;border-radius:4px;align-items:center;gap:7px;padding:0 12px;font-weight:700;display:inline-flex}.back-button:hover{border-color:var(--gold)}.detail-heading,.detail-card{border:1px solid var(--border);background:#fff;min-width:0;padding:20px}.detail-heading{border-top:3px solid var(--gold)}.detail-heading span{color:var(--muted);font-size:12px}.detail-heading h2{color:var(--green);margin:5px 0 0;font-size:22px}.detail-card h3{color:var(--green);margin:0 0 16px;font-size:15px}.detail-grid,.stage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.detail-field{background:#fafbf9;border:1px solid #e8eee9;gap:6px;min-width:0;padding:14px;display:grid}.detail-field span{color:var(--muted);font-size:11px}.detail-field strong{overflow-wrap:anywhere;color:#2b342e;font-size:13px}.phone-field strong{text-align:right;direction:ltr}.treatment-note strong{white-space:pre-wrap}.stage-card{border:1px solid var(--border);text-align:center;background:#f7faf8;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-width:0;min-height:130px;padding:18px;display:flex}.stage-card h4{color:var(--gold);margin:0 0 3px;font-size:14px}.stage-card strong{color:var(--green)}.stage-card span,.stage-card .stage-missing{color:var(--muted);font-size:12px}.detail-state{min-height:320px}.detail-error{border:1px solid #f0d0d0}@media (width<=760px){.cases-table{min-width:760px}.detail-grid,.stage-grid{grid-template-columns:1fr}.detail-heading,.detail-card{padding:16px}}@media (width<=1000px){.login-page{grid-template-columns:1fr}.login-cover{display:none}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
