html[data-crm-theme]{--card:#F8F4EE;--ring:#B45309;--input:#E4D9BC;--muted:#F1E9DA;--accent:#f2daba;--border:#E4D9BC;--radius:0.3rem;--chart-1:#B45309;--chart-2:#78716C;--chart-3:#A16207;--chart-4:#78716C;--chart-5:#CA8A04;--popover:#F8F4EE;--primary:#B45309;--sidebar:#F1E9DA;--font-mono:Fira Code, monospace;--font-sans:Oxanium, IRANYekanX, sans-serif;--secondary:#E4C090;--background:#FDFBF7;--font-serif:Merriweather, IRANYekanX, serif;--foreground:#4A3B33;--destructive:#991B1B;--shadow-blur:3px;--shadow-color:hsl(28 18% 25%);--sidebar-ring:#B45309;--shadow-spread:0px;--shadow-opacity:0.18;--sidebar-accent:#A16207;--sidebar-border:#E4D9BC;--card-foreground:#4A3B33;--shadow-offset-x:0px;--shadow-offset-y:2px;--sidebar-primary:#B45309;--muted-foreground:#78716C;--accent-foreground:#57534E;--popover-foreground:#4A3B33;--primary-foreground:#FFFFFF;--sidebar-foreground:#4A3B33;--secondary-foreground:#57534E;--destructive-foreground:#FFFFFF;--sidebar-accent-foreground:#FFFFFF;--sidebar-primary-foreground:#FFFFFF;}
html[data-crm-theme="dark"]{--card:#292524;--ring:#F97316;--input:#44403C;--muted:#201d1a;--accent:#1e4252;--border:#44403C;--radius:.3rem;--chart-1:#F97316;--chart-2:#0EA5E9;--chart-3:#EAB308;--chart-4:#A8A29E;--chart-5:#78716C;--popover:#292524;--primary:#F97316;--sidebar:#292524;--secondary:#57534E;--background:#1C1917;--foreground:#F5F5F4;--destructive:#DC2626;--shadow-color:hsl(0 0% 5%);--sidebar-ring:#F97316;--sidebar-accent:#0EA5E9;--sidebar-border:#44403C;--card-foreground:#F5F5F4;--sidebar-primary:#F97316;--muted-foreground:#A8A29E;--accent-foreground:#E7E5E4;--popover-foreground:#F5F5F4;--primary-foreground:#FFFFFF;--sidebar-foreground:#F5F5F4;--secondary-foreground:#E7E5E4;--destructive-foreground:#FFFFFF;--sidebar-accent-foreground:#0C2A4D;--sidebar-primary-foreground:#FFFFFF;}
html[data-crm-theme]{--color-card:var(--card);--color-ring:var(--ring);--color-input:var(--input);--color-muted:var(--muted);--color-accent:var(--accent);--color-border:var(--border);--color-radius:var(--radius);--color-chart-1:var(--chart-1);--color-chart-2:var(--chart-2);--color-chart-3:var(--chart-3);--color-chart-4:var(--chart-4);--color-chart-5:var(--chart-5);--color-popover:var(--popover);--color-primary:var(--primary);--color-sidebar:var(--sidebar);--color-font-mono:var(--font-mono);--color-font-sans:var(--font-sans);--color-secondary:var(--secondary);--color-background:var(--background);--color-font-serif:var(--font-serif);--color-foreground:var(--foreground);--color-destructive:var(--destructive);--color-shadow-blur:var(--shadow-blur);--color-shadow-color:var(--shadow-color);--color-sidebar-ring:var(--sidebar-ring);--color-shadow-spread:var(--shadow-spread);--color-shadow-opacity:var(--shadow-opacity);--color-sidebar-accent:var(--sidebar-accent);--color-sidebar-border:var(--sidebar-border);--color-card-foreground:var(--card-foreground);--color-shadow-offset-x:var(--shadow-offset-x);--color-shadow-offset-y:var(--shadow-offset-y);--color-sidebar-primary:var(--sidebar-primary);--color-muted-foreground:var(--muted-foreground);--color-accent-foreground:var(--accent-foreground);--color-popover-foreground:var(--popover-foreground);--color-primary-foreground:var(--primary-foreground);--color-sidebar-foreground:var(--sidebar-foreground);--color-secondary-foreground:var(--secondary-foreground);--color-destructive-foreground:var(--destructive-foreground);--color-sidebar-accent-foreground:var(--sidebar-accent-foreground);--color-sidebar-primary-foreground:var(--sidebar-primary-foreground);--ac-canvas:var(--background);--ac-paper:var(--card);--ac-soft:var(--muted);--ac-ink:var(--foreground);--ac-muted:var(--muted-foreground);--ac-line:var(--border);--ac-primary:var(--primary);--ac-on-primary:var(--primary-foreground);--ac-focus:var(--ring);--ac-accent:var(--primary);--ac-accent-soft:var(--accent);--ac-shadow:0 2px 3px color-mix(in srgb,var(--shadow-color) 18%,transparent);}
html[data-crm-theme] body[data-crm-design="admincn"]{font-family:var(--crm-personal-font,IRANYekanX),sans-serif!important;zoom:var(--crm-ui-scale,1)}
html[data-crm-theme] [data-crm-design="admincn"] :is(.crm-side-rail,.crm-workspace-sidebar){background:var(--sidebar)!important;border-color:var(--sidebar-border)!important}
html[data-crm-theme] [data-crm-design="admincn"] :is(.card,.crm-profile-card,.attendance-panel,.crm-client-summary,.crm-client-table,.crm-data-table,.crm-dashboard-panel){border-radius:var(--crm-ui-radius,var(--radius))!important}
html[data-crm-theme] [data-crm-design="admincn"] :is(input:not([type=checkbox]):not([type=radio]),textarea,select,.btn,.crm-profile-button){border-radius:var(--crm-ui-radius,var(--radius))!important}
html[data-crm-theme] [data-crm-design="admincn"] :is(.btn-primary,.crm-profile-button:not(.crm-profile-secondary)){background:var(--primary);border-color:var(--primary);color:var(--primary-foreground)}
html[data-crm-layout="compact"] :is(.crm-personal-workspace,.crm-profile,.crm-apps,.crm-attendance,.crm-workspace-page>main){max-width:1180px;margin-inline:auto}
.crm-customizer{width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;margin:12px auto auto 12px;padding:22px;border:1px solid var(--border);border-radius:14px;background:var(--popover);color:var(--foreground);box-shadow:0 18px 80px #0003;direction:rtl;font-family:IRANYekanX,sans-serif}
.crm-customizer::backdrop{background:#0004;backdrop-filter:blur(3px)}.crm-customizer header{display:flex;justify-content:space-between;align-items:center;gap:12px}.crm-customizer h2{font-size:17px;margin:0}.crm-customizer p{font-size:11px;line-height:1.9;color:var(--muted-foreground)}.crm-customizer label{display:grid;gap:8px;font-size:12px;margin-top:18px}.crm-customizer select{width:100%;padding:9px;background:var(--muted);border:1px solid var(--border);color:var(--foreground);font:inherit}.crm-customizer button{font:inherit;color:var(--foreground);background:var(--muted);border:1px solid var(--border);border-radius:7px;padding:8px 12px;cursor:pointer}.crm-customizer footer{display:flex;justify-content:space-between;gap:10px;margin-top:22px}.crm-customizer [data-customizer-close]{font-size:20px}.crm-customizer output{display:block;font-size:11px;margin-top:12px;color:var(--muted-foreground)}
.crm-wheel-weekday{display:block;font:11px/1.8 IRANYekanX,sans-serif;color:var(--ac-muted);min-width:50px;text-align:center}.crm-wheel-field-control{flex-wrap:wrap}.crm-wheel-weekday{flex-basis:100%}

html[data-crm-palette="neutral"]{--primary:#52525b;--ring:#71717a;--accent:#e4e4e7;--background:#fafafa;--card:#fff;--popover:#fff;--muted:#f4f4f5;--sidebar:#f4f4f5;--border:#d4d4d8;--foreground:#27272a;--muted-foreground:#71717a}
html[data-crm-palette="neutral"][data-crm-theme="dark"]{--primary:#d4d4d8;--primary-foreground:#18181b;--ring:#a1a1aa;--accent:#3f3f46;--background:#18181b;--card:#27272a;--popover:#27272a;--muted:#202023;--sidebar:#27272a;--border:#52525b;--foreground:#fafafa;--muted-foreground:#a1a1aa}

.crm-avatar-drop{display:grid;justify-items:center;gap:10px;padding:24px;border:2px dashed var(--border);border-radius:14px;background:var(--muted);text-align:center}.crm-avatar-drop[data-dragging=true]{border-color:var(--primary);background:var(--accent)}.crm-avatar-drop>span{font-size:11px;color:var(--muted-foreground)}.crm-avatar-preview{width:160px;height:160px;display:grid;place-items:center;border-radius:50%;overflow:hidden;border:5px solid var(--card);outline:1px solid var(--border);background:var(--accent)}.crm-avatar-preview canvas{width:100%;height:100%;object-fit:cover}.crm-avatar-preview span{font-size:40px;color:var(--primary)}.crm-avatar-adjust{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px;background:var(--muted);border-radius:10px}.crm-avatar-adjust label{grid-column:1/-1}.crm-avatar-adjust input[type=range]{width:100%;accent-color:var(--primary)}

.crm-skyline{overflow:hidden}.crm-skyline header{display:flex;align-items:start;justify-content:space-between;gap:20px;flex-wrap:wrap}.crm-skyline h2{font-size:20px;color:var(--foreground)}.crm-skyline p,.crm-skyline header>div>span{font-size:11px;color:var(--muted-foreground);line-height:1.9}.crm-skyline form{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.crm-skyline-stats{display:flex;gap:28px;flex-wrap:wrap;border-block:1px solid var(--border);padding:14px 0;margin:18px 0;font-size:11px}.crm-skyline-stats b{font-size:23px;color:var(--primary);margin-inline-end:7px}.crm-skyline-scene{display:block;width:min(100%,700px);max-height:360px;margin:0 auto;overflow:visible}.crm-skyline-building{--block:var(--border);outline:none}.crm-skyline-building.has-activity{--block:var(--primary)}.crm-skyline-roof{fill:color-mix(in srgb,var(--block) 70%,var(--card))}.crm-skyline-side{fill:color-mix(in srgb,var(--block) 78%,#000)}.crm-skyline-front{fill:var(--block)}.crm-skyline-building:is(:hover,:focus) polygon{stroke:var(--foreground);stroke-width:1.5}.crm-skyline-building text{font:11px IRANYekanX,sans-serif;fill:var(--muted-foreground)}.crm-skyline-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(32px,1fr));gap:4px;direction:rtl}.crm-skyline-days a{display:grid;text-align:center;gap:5px;font-size:10px;color:var(--foreground);text-decoration:none;padding:7px 2px;border:1px solid var(--border);border-radius:5px;background:var(--muted)}.crm-skyline-days .has-activity{background:var(--accent);border-color:var(--primary)}.crm-skyline-note{margin:14px 0 0}.crm-skyline summary{font-size:12px;cursor:pointer}.crm-skyline select{max-width:200px}@media(max-width:600px){.crm-skyline-stats{gap:14px}.crm-skyline-stats b{font-size:19px}.crm-skyline header{gap:10px}}

html[data-crm-theme] .crm-date-wheel{--wheel-bg:var(--popover);--wheel-text:var(--popover-foreground);--wheel-line:var(--border);--wheel-accent:var(--primary)}
html[data-crm-layout="compact"] .crm-command-center{width:100%;max-width:1180px;margin-inline:auto}
.crm-customizer-options{display:flex;border:1px solid var(--border);border-radius:7px;padding:3px;gap:3px;background:var(--muted)}.crm-customizer-options button{flex:1;border:0;background:transparent;font-size:11px;padding:8px 5px;min-width:0;white-space:nowrap}.crm-customizer-options button[aria-pressed=true]{background:var(--card);box-shadow:0 1px 4px #0002;color:var(--primary)}
@media(max-width:600px){.crm-customizer{margin:12px auto}.crm-customizer-options button{min-height:40px}}
