@font-face{font-family:'Vazirmatn';src:url('/assets/fonts/Vazirmatn.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{--day-red:#d12244;--day-red-dark:#b61c39;--day-yellow:#f0c94b;--ink:#1f2937;--muted:#7a8492;--line:#e3e8ee;--panel:#fff;--canvas:#f4f7fb;--success:#209453;--danger:#c9384e}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:'Vazirmatn',Tahoma,Arial,sans-serif}body{background:#fff;color:var(--ink)}button,input,select,textarea{font:inherit}.hidden{display:none!important}
.login-page{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 12% 10%,rgba(240,201,75,.12),transparent 24%),radial-gradient(circle at 90% 90%,rgba(209,34,68,.11),transparent 25%),linear-gradient(180deg,#fff,#f8fafc)}
.login-card{width:min(370px,100%);border:1px solid rgba(209,34,68,.15);border-top:4px solid var(--day-red);border-radius:20px;background:rgba(255,255,255,.98);box-shadow:0 28px 80px rgba(45,24,32,.14);padding:28px}.login-brand{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:32px}.login-mark{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;background:#fff;box-shadow:0 12px 26px rgba(209,34,68,.16);overflow:hidden}.login-mark img{width:52px;height:52px;object-fit:contain;display:block}.login-brand-text{display:flex;flex-direction:column;gap:2px}.login-brand strong{font-size:22px;font-weight:500;color:#171717}.login-brand small{font-size:12px;color:var(--day-red);font-weight:700}.login-form{display:grid;gap:16px}.login-form label{display:grid;gap:7px}.login-form label span{color:#667085;font-size:12px}.login-form input{width:100%;height:43px;border:1px solid #dfe5ed;border-radius:9px;background:#fff;color:#20252b;padding:0 12px;outline:none}.login-form input:focus{border-color:var(--day-red);box-shadow:0 0 0 4px rgba(209,34,68,.1)}.login-submit,.primary-action{border:0;border-radius:10px;background:linear-gradient(135deg,var(--day-red),#ee3159);color:#fff;font-weight:800;cursor:pointer;box-shadow:0 10px 24px rgba(209,34,68,.18)}.login-submit{width:100%;height:43px}.form-error,.inline-message{padding:10px 12px;border-radius:9px;font-size:12px}.form-error{background:#fff1f4;color:#a91c37;border:1px solid #f0c9d2}.inline-message{margin-top:10px;background:#f6f8fb;border:1px solid #e4e9ef;color:#55606f}
.erp-app{min-height:100vh;background:var(--canvas)}.erp-header{height:68px;background:rgba(255,255,255,.98);border-bottom:1px solid #e3e8ee;display:grid;grid-template-columns:auto 1fr auto 1fr;align-items:center;padding:0 18px;position:sticky;top:0;z-index:20;box-shadow:0 4px 18px rgba(38,52,68,.05)}.header-brand,.header-center,.header-actions{display:flex;align-items:center;gap:10px}.header-brand div,.header-center div{display:flex;flex-direction:column}.header-brand small,.header-center small{font-size:10px;color:#8b949f}.header-logo{width:42px;height:42px;border-radius:12px;background:#fff;display:grid;place-items:center;overflow:hidden;box-shadow:0 8px 20px rgba(209,34,68,.12)}.header-logo img{width:38px;height:38px;object-fit:contain;display:block}.header-center{justify-self:center;padding:7px 14px;border:1px solid #edf0f3;border-radius:12px;background:#fff}.header-user-avatar{width:34px;height:34px!important;border-radius:50%!important;background:#fff3f5;color:var(--day-red);display:grid!important;place-items:center!important;font-weight:800}.header-actions{justify-self:end}.icon-button,.logout-button{height:36px;border:1px solid #e1e6ec;background:#fff;border-radius:9px;padding:0 13px;cursor:pointer}.logout-button{color:var(--day-red)}.cache-refresh-icon{width:38px;padding:0;display:grid;place-items:center;color:#087761;background:#e7f7f2;border-color:#a8ddcf}.cache-refresh-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.35;stroke-linecap:round;stroke-linejoin:round}.cache-refresh-icon:hover,.cache-refresh-icon:focus-visible{border-color:#3caa91;background:#d5f2e8;color:#056752;box-shadow:0 0 0 3px rgba(8,119,97,.14)}.cache-refresh-icon.is-busy svg{animation:day-spin .8s linear infinite}.cache-refresh-icon:disabled{cursor:wait}
.erp-app{min-height:100vh;background:var(--canvas)}.erp-header{height:68px;background:rgba(255,255,255,.98);border-bottom:1px solid #e3e8ee;display:grid;grid-template-columns:auto 1fr auto 1fr;align-items:center;padding:0 18px;position:sticky;top:0;z-index:20;box-shadow:0 4px 18px rgba(38,52,68,.05)}.header-brand,.header-center,.header-actions{display:flex;align-items:center;gap:10px}.header-brand div,.header-center div{display:flex;flex-direction:column}.header-brand small,.header-center small{font-size:10px;color:#8b949f}.header-logo{width:42px;height:42px;border-radius:12px;background:#fff;display:grid;place-items:center;overflow:hidden;box-shadow:0 8px 20px rgba(209,34,68,.12)}.header-logo img{width:38px;height:38px;object-fit:contain;display:block}.header-center{justify-self:center;padding:7px 14px;border:1px solid #edf0f3;border-radius:12px;background:#fff}.header-user-avatar{width:34px;height:34px!important;border-radius:50%!important;background:#fff3f5;color:var(--day-red);display:grid!important;place-items:center!important;font-weight:800}.header-actions{justify-self:end}.icon-button,.logout-button{height:36px;border:1px solid #e1e6ec;background:#fff;border-radius:9px;padding:0 13px;cursor:pointer}.logout-button{color:var(--day-red)}.notification-button{width:36px;padding:0;display:grid;place-items:center;color:#526476;background:#f7fafc}.notification-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.notification-button:hover,.notification-button:focus-visible{border-color:#cbd8e4;background:#edf4f8;color:#29485d;box-shadow:0 0 0 3px rgba(41,72,93,.08)}.cache-refresh-icon{width:38px;padding:0;display:grid;place-items:center;color:#087761;background:#e7f7f2;border-color:#a8ddcf}.cache-refresh-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.35;stroke-linecap:round;stroke-linejoin:round}.cache-refresh-icon:hover,.cache-refresh-icon:focus-visible{border-color:#3caa91;background:#d5f2e8;color:#056752;box-shadow:0 0 0 3px rgba(8,119,97,.14)}.cache-refresh-icon.is-busy svg{animation:day-spin .8s linear infinite}.cache-refresh-icon:disabled{cursor:wait}
.notification-button{position:relative}.notification-badge{position:absolute;top:-6px;left:-6px;min-width:16px;height:16px;padding:0 4px;border:2px solid #fff;border-radius:99px;background:#ca3c58;color:#fff;font-size:9px;font-weight:800;line-height:12px;display:grid;place-items:center;box-sizing:border-box}.notification-badge[hidden]{display:none}
.erp-body{display:flex;min-height:calc(100vh - 68px)}.sidebar-toggle{width:38px;height:38px;border:1px solid #e1e6ec;background:#fff;border-radius:10px;display:grid;place-items:center;cursor:pointer;color:#344255;font-weight:900}.sidebar-collapsed .erp-sidebar{width:0;flex-basis:0;padding:0;border-left:0;overflow:hidden}.sidebar-collapsed .erp-workspace{min-width:0}.erp-sidebar{transition:width .18s ease,flex-basis .18s ease,padding .18s ease}.erp-workspace{transition:padding .18s ease}.erp-sidebar{width:220px;flex:0 0 220px;background:#fff;border-left:1px solid #e1e6ed;padding:12px 10px;display:flex;flex-direction:column;gap:6px;position:sticky;top:68px;height:calc(100vh - 68px)}.sidebar-top-label{font-size:10px;color:#9aa2ad;padding:4px 10px 8px}.sidebar-item{height:48px;border:1px solid transparent;background:#fff;border-radius:11px;display:flex;align-items:center;gap:10px;padding:0 10px;color:#465260;cursor:pointer;text-align:right;transition:.15s ease}.sidebar-item:hover{background:#f8fafc;border-color:#edf0f3}.sidebar-item.active{background:linear-gradient(90deg,#fff9df,#fffdf4);border-color:#efd56f;color:#303740;box-shadow:0 5px 14px rgba(164,133,19,.06)}.sidebar-icon{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;background:#f0f4f8;border-radius:9px;color:#53667b}.sidebar-item.active .sidebar-icon{background:#fff;color:#8f6d00}.sidebar-spacer{flex:1}.sidebar-version{font-size:10px;color:#a0a7b0;padding:8px 10px;text-align:center}
.erp-workspace{flex:1;min-width:0;padding:18px}.erp-page{display:none}.erp-page.active{display:block}.page-title,.update-hero{background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px 20px;box-shadow:0 8px 24px rgba(40,58,75,.05)}.page-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.page-title h1,.update-hero h1{margin:0;font-size:22px}.page-title p,.update-hero p{margin:5px 0 0;color:#8b949f;font-size:12px}.page-title-badge,.update-version{padding:7px 14px;border-radius:999px;background:#fff9df;border:1px solid #efd982;font-size:11px}.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.dashboard-card,.welcome-card,.update-card,.backup-section{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 24px rgba(40,58,75,.05)}.dashboard-card{padding:20px}.dashboard-card span{display:block;color:#8a929d;font-size:11px;margin-bottom:8px}.dashboard-card strong{font-size:24px}.welcome-card{margin-top:14px;padding:22px}.welcome-card h2{margin:0 0 7px}.welcome-card p{margin:0;color:#747d88}
.update-hero{display:flex;align-items:center;gap:15px;margin-bottom:14px}.update-hero-icon{width:46px;height:46px;display:grid;place-items:center;color:#fff;background:var(--day-red);border-radius:13px;font-size:24px}.update-version{margin-right:auto}.update-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.update-card{padding:18px}.update-card-head{display:flex;gap:12px;align-items:center;margin-bottom:16px}.update-card-head h2{margin:0;font-size:17px}.update-card-head p{margin:4px 0 0;color:#8b949f;font-size:11px}.update-card-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:#fff0f3;color:var(--day-red)}.update-card-icon.secondary{background:#fff8dc;color:#a97800}.upload-zone{min-height:88px;border:2px dashed #e0a4af;background:#fffafb;border-radius:12px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;cursor:pointer;margin-bottom:12px}.upload-zone span{color:#8b929c;font-size:11px}.primary-action{width:100%;height:42px}.primary-action.compact{width:auto;padding:0 18px}.secondary-action{width:100%;height:42px;border:1px solid #e3e7ec;border-radius:9px;background:#fff;cursor:pointer}.status-list{border:1px solid #edf0f3;border-radius:11px;margin-bottom:12px;overflow:hidden}.status-list>div{min-height:46px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f3}.status-list>div:last-child{border-bottom:0}.status-list span{color:#8a929d;font-size:12px}.status-list strong{color:var(--success);font-size:12px}
.backup-section{margin-top:14px;padding:18px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.section-heading h2{margin:0;font-size:18px}.section-heading p{margin:4px 0 0;color:#8b949f;font-size:11px}.backup-table-wrap{overflow:auto;border:1px solid #edf0f3;border-radius:11px}.backup-table{width:100%;border-collapse:collapse;min-width:620px}.backup-table th,.backup-table td{padding:12px 13px;text-align:right;border-bottom:1px solid #edf0f3;font-size:12px}.backup-table th{background:#fafbfc;color:#6f7782;font-weight:700}.backup-table tr:last-child td{border-bottom:0}.backup-table .empty-row{text-align:center;color:#9aa2ad}.table-action{border:1px solid #e0e5eb;background:#fff;border-radius:8px;height:32px;padding:0 10px;cursor:pointer;color:#4c5968}.placeholder-page{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px}
@media(max-width:900px){.erp-header{grid-template-columns:auto 1fr auto}.header-center{display:none}.dashboard-grid,.update-grid{grid-template-columns:1fr}.section-heading{align-items:stretch;flex-direction:column}.primary-action.compact{width:100%}}
.auth-pending #authSection,.auth-pending #appSection{display:none!important}
.password-field{position:relative;display:block}.password-field input{padding-inline-end:44px!important}.password-field button{position:absolute;inset-inline-end:3px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:#65758a;display:grid;place-items:center;cursor:pointer}.password-field button:hover{background:#f1f5f9;color:var(--day-red)}.password-field button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.header-profile-trigger{border:0;cursor:pointer;font:inherit;text-align:right}.header-profile-trigger:hover{border-color:#e7c5cd;box-shadow:0 0 0 3px rgba(209,34,68,.06)}.header-user-avatar .profile-avatar{width:34px;height:34px}.header-user-avatar .profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-modern-page{max-width:1180px;margin:0 auto;padding:14px 18px 28px}.profile-modern-shell{overflow:hidden;background:#fff;border:1px solid #e7eaee;border-radius:20px;box-shadow:0 16px 46px rgba(29,35,42,.06),0 0 28px rgba(209,34,68,.025)}.profile-modern-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 26px;background:#fff;border-bottom:1px solid #edf0f2;position:relative}.profile-modern-hero:after{content:"";position:absolute;right:26px;bottom:-1px;width:86px;height:2px;border-radius:2px;background:#d12244;box-shadow:0 0 12px rgba(209,34,68,.28)}.profile-modern-identity{display:flex;align-items:center;gap:16px;min-width:0}.profile-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#fff3f5;color:var(--day-red);font-weight:800}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-modern-identity .avatar-xl{width:72px;height:72px;flex:0 0 72px}.profile-modern-identity h2{margin:0 0 4px;font-size:21px;color:#232a32}.profile-modern-identity span{color:#747d86;font-size:12px}.profile-modern-username{display:grid;gap:4px;justify-items:end;padding:9px 12px;border-radius:10px;background:#f8fafb;min-width:150px}.profile-modern-username small{font-size:9px;color:#87909a}.profile-modern-username b{font-size:12px;color:#3b444d;font-weight:800}.profile-modern-section{padding:22px 26px;border-bottom:1px solid #edf0f2;background:#fff}.profile-modern-section:last-child{border-bottom:0}.profile-modern-section-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:16px}.profile-modern-section-head>div:first-child{min-width:0}.profile-modern-section-head span{display:block;margin-bottom:2px;color:#d12244;font-size:9px;font-weight:900;letter-spacing:.15px}.profile-modern-section-head h3{margin:0 0 3px;font-size:15px;color:#2c333b}.profile-modern-section-head p{margin:0;color:#7b848d;font-size:10.5px;line-height:1.8}.profile-modern-form{display:grid;gap:12px;align-items:end}.profile-modern-form.two{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-modern-form.three{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-modern-form>label,.profile-inline-field{display:grid;gap:6px}.profile-modern-form>label>span,.profile-inline-field>span{font-size:10px;font-weight:750;color:#5f6872}.profile-modern-form input,.profile-inline-field input{width:100%;min-height:42px;border:1px solid #dce1e6;border-radius:10px;background:#fff;padding:9px 11px;color:#242b32;outline:none;transition:.15s}.profile-modern-form input:focus,.profile-inline-field input:focus{border-color:rgba(209,34,68,.46);box-shadow:0 0 0 3px rgba(209,34,68,.055),0 0 14px rgba(209,34,68,.055)}.profile-inline-field{max-width:520px}.profile-modern-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;grid-column:1/-1}.profile-modern-section-head>.profile-modern-actions{grid-column:auto}.profile-action{width:auto!important;min-height:38px!important;padding-inline:14px!important}.btn-ghost-danger{border:0!important;background:transparent!important;color:#a91d39!important;box-shadow:none!important}.btn-ghost-danger:hover{background:#fff2f5!important}.profile-switch{display:flex;align-items:center;gap:9px;cursor:pointer;user-select:none;color:#4b5560;white-space:nowrap}.profile-switch input{position:absolute;opacity:0;pointer-events:none}.profile-switch i{position:relative;width:38px;height:22px;border-radius:999px;background:#dfe3e7;transition:.18s;box-shadow:inset 0 0 0 1px #d4d9de}.profile-switch i:after{content:"";position:absolute;top:3px;right:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(24,30,36,.22);transition:.18s}.profile-switch input:checked+i{background:#d12244;box-shadow:0 0 0 3px rgba(209,34,68,.07),0 0 15px rgba(209,34,68,.12)}.profile-switch input:checked+i:after{transform:translateX(-16px)}.profile-switch b{font-size:10px;font-weight:750}.profile-avatar-preview{display:grid;grid-template-columns:78px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 0 0}.profile-avatar-preview img{width:78px;height:78px;object-fit:cover;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px #e0e4e8,0 7px 20px rgba(31,38,45,.08)}.profile-avatar-preview>div:nth-child(2){display:grid;gap:4px}.profile-avatar-preview b{font-size:12px}.profile-avatar-preview span{font-size:10px;color:#7c858f}.profile-avatar-preview>.profile-modern-actions{grid-column:auto}.profile-form-message{font-size:11px;color:#64748b}.profile-form-message.fail{color:#a91c37}.profile-form-message.ok{color:#207344}.profile-loading{padding:30px;background:#fff;border:1px solid var(--line);border-radius:14px;color:#64748b}.profile-loading.fail{color:#a91c37}.ltr{direction:ltr;text-align:left}
@media(max-width:820px){.profile-modern-page{padding:10px}.profile-modern-hero{align-items:flex-start;flex-direction:column}.profile-modern-username{justify-items:start}.profile-modern-section-head{align-items:flex-start;flex-direction:column}.profile-modern-form.two,.profile-modern-form.three{grid-template-columns:1fr}.profile-avatar-preview{grid-template-columns:72px 1fr}.profile-avatar-preview>.profile-modern-actions{grid-column:1/-1;justify-content:flex-start}}
.inline-message.ok{background:#effaf4;border-color:#bfe7cd;color:#207344}.inline-message.fail{background:#fff1f4;border-color:#f0c9d2;color:#a91c37}
.display-name-form{display:grid;grid-template-columns:minmax(220px,360px) auto minmax(90px,1fr);align-items:end;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid #edf0f3}.display-name-form label{display:grid;gap:6px}.display-name-form span{font-size:11px;color:#7a8492}.display-name-form input{height:40px;border:1px solid #dfe5ed;border-radius:9px;padding:0 12px;outline:none}.display-name-form input:focus{border-color:var(--day-red);box-shadow:0 0 0 4px rgba(209,34,68,.08)}.display-name-form small{font-size:11px;color:#64748b}
.compact-action{width:auto;height:38px;padding:0 14px;white-space:nowrap}
.users-page{display:none}.users-page.active{display:block}.users-shell{display:grid;gap:14px;overflow-x:auto;padding-bottom:6px}.users-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid rgba(209,34,68,.16);border-right:5px solid var(--day-red);border-radius:14px;padding:16px 18px;box-shadow:0 10px 28px rgba(40,58,75,.05)}.users-toolbar h1{margin:0;font-size:22px}.users-toolbar p{margin:5px 0 0;color:#7a8492;font-size:12px}.users-actions{display:flex;gap:8px;flex-wrap:wrap}.users-board{display:grid;grid-template-columns:minmax(300px,360px) minmax(560px,1fr);gap:14px;align-items:start;min-width:900px}.users-list-panel,.user-detail-panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 24px rgba(40,58,75,.05)}.users-list-panel{padding:12px;max-height:calc(100vh - 178px);display:flex;flex-direction:column;gap:10px;position:sticky;top:86px}.users-search{display:grid;gap:7px}.users-search span,.users-metrics span,.user-form-grid span{font-size:11px;color:#7a8492}.users-search input,.user-form-grid input{width:100%;height:39px;border:1px solid #dfe5ed;border-radius:9px;background:#fff;padding:0 11px;outline:none}.users-search input:focus,.user-form-grid input:focus{border-color:var(--day-red);box-shadow:0 0 0 4px rgba(209,34,68,.08)}.user-form-grid input:disabled{background:#fafbfc;color:#7b8490}.users-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px}.users-metrics>div{border:1px solid #edf0f3;border-radius:11px;padding:10px 12px;background:#fff}.users-metrics strong{display:block;margin-top:2px;font-size:20px}.users-list{display:grid;gap:7px;overflow:auto;padding-left:3px}.users-loading{padding:24px 10px;text-align:center;color:#8b949f;border:1px dashed #dfe5ed;border-radius:12px;background:#fff}.user-list-item{width:100%;min-height:56px;border:1px solid #e7ecf1;border-radius:12px;background:#fff;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:9px;text-align:right;padding:8px 9px;cursor:pointer;transition:.15s ease}.user-list-item:hover{border-color:#f0b4bf;box-shadow:0 8px 18px rgba(209,34,68,.06)}.user-list-item.active{border-color:var(--day-red);background:#fff9fb}.user-avatar,.user-detail-avatar-image{display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#fff1f4;color:var(--day-red);font-weight:900;border:1px solid #f1c1ca}.user-avatar{width:36px;height:36px}.user-avatar img,.user-detail-avatar-image img{width:100%;height:100%;object-fit:cover;display:block}.avatar-missing span{display:grid;place-items:center;width:100%;height:100%}.user-list-main{min-width:0;display:grid;gap:3px}.user-list-main strong{display:flex;align-items:center;gap:7px;min-width:0;font-size:13px;line-height:1.45;white-space:nowrap}.user-list-main strong span{min-width:0;overflow:hidden;text-overflow:ellipsis}.user-list-main strong small{flex:0 1 auto;max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6f7885;font-size:11px;font-weight:600;border-right:1px solid #e4e9ef;padding-right:7px}.user-list-main em{font-size:11px;color:#6f7885;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl;text-align:right}.user-detail-panel{padding:14px;min-height:500px}.user-empty-state{min-height:470px;border:1px dashed #dfe5ed;border-radius:13px;display:grid;place-items:center;text-align:center;align-content:center;gap:8px;color:#657384}.user-empty-state strong{font-size:18px;color:#253041}.user-edit-form{display:grid;gap:14px}.user-detail-head{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:12px;border-bottom:1px solid #edf0f3;padding-bottom:14px}.user-detail-avatar,.user-detail-avatar-image{width:58px;height:58px}.user-detail-head h2{margin:0;font-size:20px}.user-detail-head p{margin:4px 0 0;color:#7a8492;font-size:12px}.user-active-toggle{display:flex;align-items:center;gap:7px;border:1px solid #e4e9ef;border-radius:999px;padding:8px 10px;font-size:12px;background:#fff}.user-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.user-form-grid label{display:grid;gap:6px}.user-form-actions{display:flex;gap:9px;justify-content:flex-start}.empty-row{text-align:center;color:#9aa2ad}
@media(max-width:1100px){.users-shell{overflow-x:auto}.users-list-panel{position:sticky;top:86px}.user-form-grid{grid-template-columns:1fr 1fr}}@media(max-width:900px){.display-name-form{grid-template-columns:1fr}.users-toolbar{align-items:stretch;flex-direction:column}.user-detail-head{align-items:center;grid-template-columns:64px minmax(0,1fr) auto}.users-actions,.compact-action{width:100%}.users-actions button,.compact-action{width:100%}.user-form-grid{grid-template-columns:1fr 1fr}}

.task-card[draggable="true"]{cursor:grab}.task-card.dragging{opacity:.55}.kanban-column.drop-ready{border-color:var(--day-red);box-shadow:0 0 0 4px rgba(209,34,68,.08)}



.manager-picker-field{position:relative}.manager-picker{position:relative;display:block}.manager-picker input[type="text"],.manager-picker input:not([type]){padding-left:42px}.manager-picker #clearManagerBtn{position:absolute;left:8px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:0;border-radius:8px;background:#f4f7fb;color:#7b8490;font-size:18px;line-height:1;cursor:pointer}.manager-picker #clearManagerBtn:hover{background:#fff1f4;color:var(--day-red)}.manager-dropdown{position:absolute;z-index:30;top:calc(100% + 6px);right:0;left:0;display:grid;gap:4px;max-height:248px;overflow:auto;padding:7px;background:#fff;border:1px solid #dfe5ed;border-radius:12px;box-shadow:0 18px 40px rgba(24,39,58,.16)}.manager-option{width:100%;min-height:44px;border:0;border-radius:9px;background:#fff;display:grid;gap:2px;text-align:right;padding:8px 10px;cursor:pointer;color:#253041}.manager-option:hover,.manager-option:focus{background:#fff6f8;outline:0}.manager-option strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.manager-option small{font-size:11px;color:#7a8492;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.manager-option-empty{min-height:38px;color:#7a8492}.manager-option-empty.muted{display:block;padding:10px;text-align:center}.projects-page{display:none}.projects-page.active{display:block}.projects-shell{display:grid;gap:14px}.projects-head{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid rgba(209,34,68,.16);border-right:5px solid var(--day-red);border-radius:14px;padding:16px 18px;box-shadow:0 10px 28px rgba(40,58,75,.05)}.projects-head h1{margin:0;font-size:22px}.projects-head p{margin:5px 0 0;color:#7a8492;font-size:12px}.projects-actions{display:flex;gap:8px;flex-wrap:wrap}.projects-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:14px;align-items:start}.projects-list,.project-board-panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 24px rgba(40,58,75,.05)}.projects-list{padding:12px;display:grid;gap:8px;max-height:calc(100vh - 178px);overflow:auto;position:sticky;top:86px}.project-row{width:100%;border:1px solid #e7ecf1;border-radius:12px;background:#fff;padding:11px;text-align:right;display:grid;gap:8px;cursor:pointer}.project-row:hover{border-color:#f0b4bf}.project-row.active{background:#fff9fb;border-color:var(--day-red)}.project-row-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.project-row-top strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-row-progress{font-size:11px;color:#7a8492}.project-member-stack{display:flex;align-items:center;flex-direction:row-reverse}.project-avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#fff1f4;color:var(--day-red);font-size:11px;font-weight:900;border:1px solid #f1c1ca;margin-right:-7px}.project-avatar:first-child{margin-right:0}.project-avatar img{width:100%;height:100%;object-fit:cover}.project-board-panel{padding:12px;min-width:0}.project-board-header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf0f3;padding:4px 4px 12px;margin-bottom:12px}.project-board-header h2{margin:0;font-size:20px}.project-board-header span{font-size:12px;color:#7a8492}.project-board-tools{display:flex;align-items:center;gap:8px}.project-board-tools select{height:38px;border:1px solid #dfe5ed;border-radius:9px;background:#fff;padding:0 10px}.kanban-board{display:flex;gap:12px;align-items:stretch;overflow-x:auto;overflow-y:hidden;padding:4px 2px 12px;scrollbar-width:thin}.kanban-column{width:278px;min-width:278px;background:#f8fafc;border:1px solid #dde5ee;border-radius:14px;display:flex;flex-direction:column;max-height:calc(100vh - 246px);overflow:hidden}.kanban-column header{min-height:52px;background:linear-gradient(90deg,var(--column-color),var(--column-color));color:#fff;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px}.kanban-column header>div{min-width:0;display:flex;align-items:center;gap:8px}.kanban-column header b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kanban-column header .project-avatar{border-color:rgba(255,255,255,.55);background:rgba(255,255,255,.9);color:#243041}.column-gear{width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.18);color:#fff;display:grid;place-items:center;cursor:pointer}.column-add-task{margin:9px;border:1px dashed #f0a8b4;background:#fff7f9;color:var(--day-red);border-radius:10px;height:36px;cursor:pointer}.column-tasks{display:grid;gap:9px;overflow:auto;padding:0 9px 10px}.task-card{background:#fff;border:1px solid #dfe6ee;border-radius:13px;padding:10px;box-shadow:0 8px 18px rgba(34,46,60,.05);display:grid;gap:8px}.task-card-top{display:flex;align-items:start;justify-content:space-between;gap:8px}.task-card b{font-size:13px;line-height:1.55}.task-card p{margin:0;color:#64748b;font-size:11px;line-height:1.65}.task-done{width:26px;height:26px;border:1px solid #cfd8e3;border-radius:50%;background:#fff;color:var(--day-red);cursor:pointer;flex:0 0 26px}.task-card-meta{display:flex;align-items:center;gap:6px;color:#697586;font-size:11px}.task-check-mini{border-top:1px solid #edf0f3;padding-top:7px;color:#697586;font-size:11px}.task-card-actions{display:flex;gap:6px}.task-card-actions button{height:30px;border:1px solid #e3e7ec;background:#fff;border-radius:8px;cursor:pointer;font-size:11px}.project-add-column{width:170px;min-width:170px;border:1px dashed #cfd8e3;border-radius:14px;background:#fff;color:#526071;font-weight:800;cursor:pointer}.project-empty{border:1px dashed #dfe5ed;border-radius:13px;padding:28px;text-align:center;color:#7a8492;background:#fff}.project-empty.small,.project-empty.tiny{padding:14px;font-size:12px}.project-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.28);z-index:80;display:grid;place-items:center;padding:18px}.project-modal{width:min(760px,100%);max-height:min(86vh,760px);overflow:auto;background:#fff;border-radius:16px;border:1px solid #e3e8ee;box-shadow:0 30px 80px rgba(15,23,42,.24)}.project-modal>header{height:58px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f3;padding:0 16px}.project-modal h3{margin:0;font-size:18px}.project-modal>header button{width:34px;height:34px;border:1px solid #e3e7ec;background:#fff;border-radius:9px;cursor:pointer}.project-form{display:grid;gap:12px;padding:16px}.project-form label{display:grid;gap:6px;color:#6f7885;font-size:12px}.project-form input,.project-form select,.project-form textarea{width:100%;border:1px solid #dfe5ed;border-radius:10px;background:#fff;padding:10px;outline:none}.project-form textarea{min-height:90px;resize:vertical}.project-form input:focus,.project-form select:focus,.project-form textarea:focus{border-color:var(--day-red);box-shadow:0 0 0 4px rgba(209,34,68,.08)}.project-form fieldset{border:1px solid #edf0f3;border-radius:12px;padding:10px}.project-form legend{padding:0 8px;color:#6f7885;font-size:12px}.person-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:220px;overflow:auto}.person-checks label{display:flex;align-items:center;gap:8px;border:1px solid #edf0f3;border-radius:10px;padding:7px;background:#fff;color:#273244}.person-checks input{width:auto}.color-palette{display:flex;gap:8px;flex-wrap:wrap}.color-palette label{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;border:1px solid #e3e7ec;cursor:pointer}.color-palette input{display:none}.color-palette span{width:24px;height:24px;border-radius:8px;background:var(--swatch)}.color-palette input:checked+span{outline:3px solid rgba(209,34,68,.18)}.report-list,.my-tasks-list{display:grid;gap:8px;padding:16px 16px 0}.report-row,.my-task-row{border:1px solid #edf0f3;border-radius:12px;padding:10px;background:#fafbfc;display:grid;gap:5px}.report-row p{margin:0;color:#344255}.report-row small,.my-task-row small,.my-task-row span{color:#7a8492;font-size:11px}@media(max-width:1000px){.projects-layout{grid-template-columns:1fr}.projects-list{position:static;max-height:none}.project-board-header,.projects-head{align-items:stretch;flex-direction:column}.project-board-tools{justify-content:space-between;flex-wrap:wrap}.kanban-column{width:264px;min-width:264px}.person-checks{grid-template-columns:1fr}}
.person-picker{display:grid;gap:10px}.person-picker-selected{min-height:42px;border:1px solid #edf0f3;border-radius:12px;background:#fafbfc;padding:7px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.person-picker-placeholder{font-size:12px;color:#8b949f;padding:0 6px}.person-chip{height:32px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;display:inline-flex;align-items:center;gap:6px;padding:0 7px 0 10px;cursor:pointer;color:#243041;max-width:210px}.person-chip span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.person-chip b{color:var(--day-red);font-size:15px}.person-picker-search{display:grid;gap:6px}.person-picker-search span{font-size:11px;color:#7a8492}.person-picker-search input{height:40px;border:1px solid #dfe5ed;border-radius:10px;background:#fff;padding:0 12px;outline:none}.person-picker-search input:focus{border-color:var(--day-red);box-shadow:0 0 0 4px rgba(209,34,68,.08)}.person-picker-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:238px;overflow:auto;padding-left:2px}.person-option{min-height:48px;border:1px solid #edf0f3;border-radius:11px;background:#fff;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;text-align:right;padding:7px 9px;cursor:pointer;color:#253041}.person-option:hover{border-color:#f0b4bf;background:#fff9fb}.person-option.selected{border-color:var(--day-red);background:#fff6f8}.person-option span{min-width:0;display:grid;gap:2px}.person-option strong,.person-option small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.person-option strong{font-size:12px}.person-option small{font-size:10px;color:#7a8492}.person-option>b{font-size:10px;color:#8b949f;font-weight:700}.person-option.selected>b{color:var(--day-red)}.projects-empty-state{background:#fff;border:1px dashed #dfe5ed;border-radius:14px;min-height:190px;display:grid;place-items:center;align-content:center;gap:10px;text-align:center;color:#64748b;box-shadow:0 8px 24px rgba(40,58,75,.04)}.projects-empty-state strong{font-size:18px;color:#253041}.projects-empty-state span{font-size:12px}@media(max-width:760px){.person-picker-options{grid-template-columns:1fr}.person-chip{max-width:100%}}





.dashboard-tools{display:none!important}
.dashboard-card-label{display:flex!important;align-items:center;gap:7px}.dashboard-card-label svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:#8f2943}.dashboard-card-date{display:flex;align-items:center;justify-content:space-between;gap:12px}.cache-refresh-action{height:34px;border:1px solid rgba(148,163,184,.24);background:#fff;border-radius:999px;color:#475569;padding:0 10px;display:inline-flex;align-items:center;gap:7px;cursor:pointer;font-size:11px;font-weight:800;white-space:nowrap}.cache-refresh-action svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.cache-refresh-action:hover,.cache-refresh-action:focus-visible{border-color:rgba(37,111,136,.28);background:rgba(37,111,136,.06);color:#256f88;box-shadow:0 0 0 3px rgba(37,111,136,.1)}.cache-refresh-action.is-busy svg{animation:day-spin .8s linear infinite}.cache-refresh-action:disabled{opacity:.72;cursor:wait}.cache-refresh-message{display:block;margin-top:8px;color:#64748b;font-size:11px}@keyframes day-spin{to{transform:rotate(360deg)}}@media(max-width:900px){.dashboard-card-date{align-items:flex-start;flex-direction:column}.cache-refresh-action{width:max-content}}

/* Global rule: every searchable field and dynamic picker gets a subtle interaction glow. */
.person-picker-search input,
.users-search input,
.manager-picker input,
[data-person-search],
[data-search],
input[type="search"],
[role="combobox"] {
  box-shadow:
    0 0 0 1px rgba(37,111,136,.10),
    0 0 18px rgba(37,111,136,.10);
}
.person-picker-search input:hover,
.users-search input:hover,
.manager-picker input:hover,
[data-person-search]:hover,
[data-search]:hover,
input[type="search"]:hover,
[role="combobox"]:hover {
  box-shadow:
    0 0 0 1px rgba(37,111,136,.18),
    0 0 20px rgba(37,111,136,.14);
}
.person-picker-search input:focus,
.users-search input:focus,
.manager-picker input:focus,
[data-person-search]:focus,
[data-search]:focus,
input[type="search"]:focus,
[role="combobox"]:focus {
  border-color:#9bb4c5;
  box-shadow:
    0 0 0 3px rgba(37,111,136,.16),
    0 0 24px rgba(37,111,136,.20);
}

/* DAY ERP 1.1.77: no raw OS/browser-looking controls in the UI. */
select,
button,
input,
textarea {
  font-family: inherit;
}
select {
  -webkit-appearance: none;
  appearance: none;
  background-image: none;
}
input[type="range"] {
  cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator,
select::-ms-expand {
  display: none;
}

.project-avatar .avatar-fallback,.profile-avatar .avatar-fallback{display:none}
.project-avatar.avatar-unavailable,.profile-avatar.avatar-unavailable{display:grid!important;place-items:center!important}
.project-avatar.avatar-unavailable .avatar-fallback,.profile-avatar.avatar-unavailable .avatar-fallback{display:grid;place-items:center;width:100%;height:100%;font:inherit;color:inherit}

/* Page hierarchy: information bands lead; only repeated items use bordered surfaces. */
.erp-workspace{padding:22px 24px 30px;background:#f7fafc}
.page-title,.update-hero,.projects-head,.users-toolbar{background:transparent;border:0;border-right:4px solid var(--day-red);border-radius:0;box-shadow:none;padding:6px 0 14px 16px}
.page-title,.projects-head,.users-toolbar{margin-bottom:18px}
.page-title-badge,.update-version{background:#fff4d9;border-color:#f1d284;color:#7a5700}
.dashboard-grid{grid-template-columns:minmax(0,460px);gap:12px;max-width:460px}
.dashboard-card{min-height:122px;border-radius:8px;box-shadow:none;position:relative;overflow:hidden;transition:transform .16s ease,box-shadow .16s ease}
.dashboard-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(31,41,55,.08)}
.dashboard-card-datetime{background:#eef9f6;border-color:#bce4d8;border-right:4px solid #16856c;padding:0}
.dashboard-datetime-row{min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 18px}
.dashboard-datetime-row+ .dashboard-datetime-row{border-top:1px solid #cfe9e1}
.dashboard-datetime-row strong{font-size:18px;color:#126b59;white-space:nowrap}
.welcome-card{background:transparent;border:0;border-top:1px solid #dbe4ec;border-radius:0;box-shadow:none;margin-top:20px;padding:20px 0}
.update-card,.backup-section{border-radius:8px;box-shadow:none}
.update-card:first-child{border-right:4px solid var(--day-red)}
.update-card:nth-child(2){border-right:4px solid #1480a4}
.backup-section{background:#f0f6fb;border-color:#cfe0ec}
@media(max-width:700px){.erp-workspace{padding:16px}.dashboard-grid{grid-template-columns:1fr}.page-title,.update-hero,.projects-head,.users-toolbar{padding-left:10px}}








