@font-face{font-family:'Vazirmatn';src:url('/assets/fonts/Vazirmatn.woff2') format('woff2');font-weight:400;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:#2563EB;--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}.sidebar-item[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:#2563EB;background:#eef4ff;border-color:#c9d8ff}.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:#7ea6ff;background:#e5edff;color:#1d4ed8;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.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:#2563EB;background:#eef4ff;border-color:#c9d8ff}.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:#7ea6ff;background:#e5edff;color:#1d4ed8;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.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}
#appSection.day-connected-shell .erp-header :is(.sidebar-toggle,.notification-button,.cache-refresh-icon){height:40px;min-height:40px;border:1px solid #cbd6e6;border-radius:8px;background:#f3f6fb;color:#304b70;box-shadow:none;display:inline-flex;align-items:center;justify-content:center;flex:none}
#appSection.day-connected-shell .erp-header :is(.sidebar-toggle,.notification-button,.cache-refresh-icon):hover{background:#e7eef9;border-color:#aebfda;color:#193c71}
#appSection.day-connected-shell .erp-header :is(.sidebar-toggle,.notification-button,.cache-refresh-icon):focus-visible{outline:2px solid #285cc4;outline-offset:2px}
#appSection.day-connected-shell .erp-header .sidebar-toggle{width:40px;padding:0}
#appSection.day-connected-shell .erp-header .notification-button{position:relative;overflow:visible}
#appSection.day-connected-shell .erp-header .notification-button svg{width:20px;height:20px;flex:none}
#appSection.day-connected-shell .erp-header .notification-badge{top:-10px;right:-7px;left:auto;transform:none;min-width:19px;height:19px;padding:0 3px;border:2px solid #fff;border-radius:10px;background:#b92349;color:#fff!important;font:800 11px/1 Vazir,sans-serif!important;direction:ltr;unicode-bidi:isolate;white-space:nowrap;display:grid;place-items:center;box-sizing:border-box;pointer-events:none}
#appSection.day-connected-shell .erp-header .notification-badge[hidden]{display:none}
#appSection.day-connected-shell .erp-header .cache-refresh-icon{width:40px;padding:0}
#appSection.day-connected-shell .erp-header .logout-button{height:40px;border-radius:8px}
@media(max-width:900px){#appSection.day-connected-shell .erp-header .sidebar-toggle{width:auto;min-width:76px;padding:0 10px}}
@media(max-width:430px){#appSection.day-connected-shell .erp-header .notification-button svg{width:18px;height:18px}}
.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-left:48px!important}.password-field button{position:absolute;left:3px;top:50%;transform:translateY(-50%);width:40px;height:40px;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:#f2f5ff;border-color:#d8e0fb;border-right:4px solid #5B5BD6;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 #e2e7fb}
.dashboard-datetime-row strong{font-size:18px;color:#3f4aa8;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}}









/* DAY ERP 1.2.0 — minimal colored navigation */
.erp-sidebar{width:226px;flex-basis:226px;padding:14px 12px;gap:3px;background:#fff;border-left:1px solid #e8edf2;box-shadow:none}
.sidebar-top-label{padding:4px 12px 9px;color:#98a2af;font-size:10px;font-weight:700}
.sidebar-item{position:relative;height:44px;border:0!important;border-radius:8px;background:transparent!important;padding:0 11px;gap:11px;color:#344255;box-shadow:none!important;font-weight:650}
.sidebar-item:hover{background:#f7f9fb!important;color:#202b38}
.sidebar-item::before{content:"";position:absolute;right:0;top:9px;bottom:9px;width:3px;border-radius:99px;background:transparent;transition:.15s ease}
.sidebar-item.active{background:color-mix(in srgb,var(--module-color) 8%,#fff)!important;color:#1f2937}
.sidebar-item.active::before{background:var(--module-color)}
.sidebar-icon{width:27px;height:27px;flex:0 0 27px;display:grid;place-items:center;background:transparent!important;border-radius:0;color:var(--module-color);transition:transform .15s ease}
.sidebar-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sidebar-item:hover .sidebar-icon{transform:translateX(-1px)}
.sidebar-item.active .sidebar-icon{background:transparent!important;color:var(--module-color)}
.sidebar-unread{margin-inline-start:auto;min-width:18px;height:18px;border-radius:999px;background:#D12244;color:#fff;font-size:9px;display:grid;place-items:center;padding:0 5px}
.sidebar-spacer{min-height:16px}
.sidebar-version{border-top:1px solid #eef1f4;margin-top:4px;padding-top:12px;color:#8b95a2}
.module-loading{padding:28px;color:#64748b}


/* DAY ERP 1.3.12 — mobile navigation shell */
.mobile-sidebar-backdrop{display:none}
@media(max-width:900px){
  .erp-body{min-height:calc(100dvh - 64px);display:block}
  .erp-workspace{width:100%;min-width:0;padding-inline:0;overflow-x:hidden}
  .erp-sidebar{position:fixed!important;z-index:1050;top:64px;right:0;bottom:0;height:auto!important;width:min(82vw,310px)!important;max-width:310px;flex-basis:auto!important;padding:12px 10px!important;transform:translateX(105%);transition:transform .2s ease;box-shadow:-18px 0 40px rgba(15,23,42,.16);overflow-y:auto;background:#fff}
  #appSection.mobile-sidebar-open .erp-sidebar{transform:translateX(0)}
  #appSection.sidebar-collapsed .erp-sidebar{width:min(82vw,310px)!important;padding:12px 10px!important;border-left:1px solid #e8edf2!important;overflow-y:auto}
  .mobile-sidebar-backdrop{position:fixed;z-index:1040;inset:64px 0 0;border:0;background:rgba(15,23,42,.30);padding:0;margin:0;width:100%;height:auto;cursor:pointer}
  .mobile-sidebar-backdrop:not([hidden]){display:block}
  body.mobile-sidebar-lock{overflow:hidden}
  .sidebar-toggle{display:grid!important;position:relative;z-index:1060;flex:0 0 40px;width:40px;height:40px}
  .sidebar-item{min-height:46px;height:auto;padding-block:7px}
}
.sidebar-toggle-icon{display:grid;place-items:center;width:18px;height:18px}
.sidebar-toggle-icon svg{width:18px;height:18px;stroke-width:2.4}
.sidebar-toggle-label{display:none}
#appSection .mobile-sidebar-switch[hidden]{display:none!important}
#appSection .mobile-sidebar-switch:not([hidden]){display:flex;align-items:center;justify-content:flex-start;gap:10px;box-sizing:border-box;flex:0 0 auto;width:100%;min-width:0;min-height:44px;height:auto;margin:0 0 10px;padding:9px 12px;border:1px solid #c3d1e5;border-radius:8px;background:#e8eef8;color:#253b62;box-shadow:none;font:inherit;font-size:13px;font-weight:700;line-height:1.5;text-align:right;cursor:pointer}
#appSection .mobile-sidebar-switch svg{width:20px;height:20px;flex:0 0 20px}
#appSection .mobile-sidebar-switch .sidebar-menu-switch-label{display:block;min-width:0;white-space:nowrap}
#appSection .mobile-sidebar-switch:not([hidden]):hover{background:#dce7f6;color:#193c71}
#appSection .mobile-sidebar-switch:not([hidden]):focus-visible{outline:2px solid #285cc4;outline-offset:2px}
@media(max-width:900px){
  #appSection.day-connected-shell .erp-header{grid-template-columns:auto minmax(0,1fr) auto}
  #appSection.day-connected-shell .sidebar-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;width:auto;min-width:76px;height:44px;padding:0 10px;font-size:13px;font-weight:700}
  .sidebar-toggle-label{display:inline}
  #appSection .mobile-sidebar-switch:not([hidden]){min-height:48px}
}
@media(max-width:430px){
  .erp-header{min-height:60px;padding-inline:10px;gap:8px}
  .erp-body{min-height:calc(100dvh - 60px)}
  .erp-sidebar{top:60px}
  .mobile-sidebar-backdrop{inset:60px 0 0}
  #appSection.day-connected-shell .header-brand>div,
  #appSection.day-connected-shell .day-module-mark{display:none}
}


/* DAY ERP 1.3.12 — unified system tools */
.system-tools-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:start}
.system-tool-card{min-width:0;display:flex;flex-direction:column;gap:10px;border-right:4px solid #dfe4ea!important}
.system-tool-card.update-tool-card{border-right-color:var(--day-red)!important}.system-tool-card.backup-tool-card{border-right-color:#1480a4!important}.system-tool-card.source-tool-card{border-right-color:#d3a915!important}
.update-card-icon.source{background:#fff8dc;color:#806713;font:700 12px/1.2 Consolas,monospace}
.system-tool-list{display:grid;gap:7px;max-height:310px;overflow:auto;margin-top:2px}
.system-tool-file{border:1px solid #e7ebf0;border-radius:9px;background:#fafbfc;padding:9px;display:grid;gap:7px;min-width:0}
.system-tool-file>div:first-child{min-width:0;display:grid;gap:2px}.system-tool-file b{font-size:10px;overflow-wrap:anywhere}.system-tool-file small{font-size:10px;color:#7a8492}.system-tool-file-actions{display:flex!important;flex-direction:row!important;gap:6px}.system-tool-file .table-action{width:auto}.table-action.danger{color:var(--day-red);border-color:#ecc5cd;background:#fff7f9}
.system-tool-empty{padding:17px 8px;text-align:center;color:#8a929d;font-size:11px;border:1px dashed #e1e5ea;border-radius:9px}
@media(max-width:1100px){.system-tools-grid{grid-template-columns:1fr!important}}

/* DAY ERP 1.3.25 — focused module sidebar */
.module-focus-panel[hidden]{display:none!important}
.module-focus-panel{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;gap:10px;padding:0 1px}
#appSection.module-sidebar-mode .erp-sidebar>.sidebar-top-label,
#appSection.module-sidebar-mode .erp-sidebar>.sidebar-item[data-page],
#appSection.module-sidebar-mode .erp-sidebar>.sidebar-spacer,
#appSection.module-sidebar-mode .erp-sidebar>.sidebar-version{display:none!important}
#appSection.module-sidebar-mode .erp-sidebar{width:246px;flex-basis:246px;padding:12px 11px;overflow-y:auto}
.module-sidebar-back{min-height:40px;border:1px solid #e2e7ed;border-radius:9px;background:#fff;color:#566273;display:flex;align-items:center;gap:8px;padding:0 11px;cursor:pointer;text-align:right;font-weight:750}
.module-sidebar-back:hover{background:#f7f9fb;color:#273445}
.module-sidebar-back>span:first-child{font-size:18px;color:var(--focus-color,#D12244)}
.module-focus-heading{display:flex;align-items:center;gap:10px;padding:12px 10px 13px;border-bottom:1px solid #edf0f3}
.module-focus-mark{width:4px;height:36px;border-radius:99px;background:var(--focus-color,#D12244)}
.module-focus-heading>div{display:grid;gap:2px}
.module-focus-heading small{font-size:9px;color:#98a2af}
.module-focus-heading strong{font-size:14px;color:#263244}
.module-focus-nav{display:grid;gap:5px;padding-bottom:10px}
.module-focus-group{display:grid;gap:3px}
.module-sidebar-module,.module-sidebar-item{width:100%;border:0;cursor:pointer;text-align:right;font-family:inherit}
.module-sidebar-module{min-height:50px;border-radius:9px;background:transparent;color:#344255;display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 9px}
.module-sidebar-module:hover{background:#f7f9fb}
.module-sidebar-module.active{background:color-mix(in srgb,var(--focus-color,#D12244) 8%,#fff);color:#202a37}
.module-sidebar-module-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:8px;background:#f3f5f7;color:#687588;font-size:9px;font-weight:900}
.module-sidebar-module.active .module-sidebar-module-icon{background:var(--focus-color,#D12244);color:#fff}
.module-sidebar-module>span:nth-child(2){display:grid;gap:2px;min-width:0}
.module-sidebar-module b{font-size:11.5px}.module-sidebar-module small{font-size:8.5px;color:#8a94a2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.module-sidebar-module i{font-style:normal;color:#9aa4b0;font-size:11px;transition:transform .15s ease}
.module-focus-group.is-open .module-sidebar-module i{transform:rotate(180deg)}
.module-focus-children{display:none;gap:2px;padding:2px 40px 5px 4px}.module-focus-group.is-open .module-focus-children{display:grid}
.module-sidebar-item{position:relative;min-height:35px;border-radius:7px;background:transparent;color:#647184;padding:7px 12px;font-size:10.5px}
.module-sidebar-item:hover{background:#f7f9fb;color:#263244}.module-sidebar-item.active{background:color-mix(in srgb,var(--focus-color,#D12244) 8%,#fff);color:#202a37;font-weight:800}
.module-sidebar-item.active::before{content:"";position:absolute;right:0;top:8px;bottom:8px;width:3px;border-radius:99px;background:var(--focus-color,#D12244)}
.module-sidebar-item-root{min-height:42px;padding-inline:12px;font-size:11.5px}
@media(max-width:900px){#appSection.module-sidebar-mode .erp-sidebar{width:min(86vw,320px)!important;max-width:320px!important;padding:12px 10px!important}.module-sidebar-back{min-height:44px}.module-sidebar-item{min-height:40px}}


/* DAY ERP 1.3.25 — meaningful card policy */
.day-card-pruned,
.day-card-container-pruned{
  display:none!important;
}
.module-stat[data-card-target],
.hr-quick-card[data-self-jump],
.module-stat[data-team-target]{
  cursor:pointer;
}
.module-stat[data-card-target]:hover,
.module-stat[data-team-target]:hover{
  border-color:#d7dde5;
  box-shadow:0 5px 18px rgba(28,38,52,.06);
  transform:translateY(-1px);
}
.module-stat[data-card-target]:focus-visible,
.module-stat[data-team-target]:focus-visible{
  outline:2px solid rgba(209,34,68,.28);
  outline-offset:2px;
}
